@deepintel-ltd/farmpro-contracts 1.7.14 → 1.7.20

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 (126) hide show
  1. package/dist/index.d.ts +18 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +17 -0
  4. package/dist/routes/agent-workflows.routes.d.ts +88 -88
  5. package/dist/routes/agents.routes.d.ts +3266 -6
  6. package/dist/routes/agents.routes.d.ts.map +1 -1
  7. package/dist/routes/agents.routes.js +130 -1
  8. package/dist/routes/analytics.routes.d.ts +20 -20
  9. package/dist/routes/cooperative.routes.d.ts +1327 -0
  10. package/dist/routes/cooperative.routes.d.ts.map +1 -0
  11. package/dist/routes/cooperative.routes.js +47 -0
  12. package/dist/routes/documents.routes.d.ts +855 -58
  13. package/dist/routes/documents.routes.d.ts.map +1 -1
  14. package/dist/routes/documents.routes.js +43 -1
  15. package/dist/routes/equipment.routes.d.ts +38 -38
  16. package/dist/routes/extension.routes.d.ts +2431 -0
  17. package/dist/routes/extension.routes.d.ts.map +1 -0
  18. package/dist/routes/extension.routes.js +75 -0
  19. package/dist/routes/farm-status.routes.d.ts +315 -0
  20. package/dist/routes/farm-status.routes.d.ts.map +1 -0
  21. package/dist/routes/farm-status.routes.js +26 -0
  22. package/dist/routes/farms.routes.d.ts +775 -0
  23. package/dist/routes/farms.routes.d.ts.map +1 -1
  24. package/dist/routes/farms.routes.js +15 -1
  25. package/dist/routes/fertigation.routes.d.ts +148 -148
  26. package/dist/routes/field-monitoring.routes.d.ts +557 -52
  27. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  28. package/dist/routes/field-monitoring.routes.js +23 -1
  29. package/dist/routes/field-observations.routes.d.ts +56 -56
  30. package/dist/routes/fields.routes.d.ts +156 -155
  31. package/dist/routes/fields.routes.d.ts.map +1 -1
  32. package/dist/routes/finance.routes.d.ts +3493 -0
  33. package/dist/routes/finance.routes.d.ts.map +1 -1
  34. package/dist/routes/finance.routes.js +158 -1
  35. package/dist/routes/geofences.routes.d.ts.map +1 -1
  36. package/dist/routes/index.d.ts +18 -0
  37. package/dist/routes/index.d.ts.map +1 -1
  38. package/dist/routes/index.js +12 -0
  39. package/dist/routes/irrigation.routes.d.ts +6 -6
  40. package/dist/routes/live-monitor.routes.d.ts +513 -0
  41. package/dist/routes/live-monitor.routes.d.ts.map +1 -0
  42. package/dist/routes/live-monitor.routes.js +81 -0
  43. package/dist/routes/livestock-map.routes.d.ts +4 -4
  44. package/dist/routes/measurements.routes.d.ts +13 -4
  45. package/dist/routes/measurements.routes.d.ts.map +1 -1
  46. package/dist/routes/monitoring-visualization.routes.d.ts +40 -33
  47. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  48. package/dist/routes/monitoring-visualization.routes.js +7 -4
  49. package/dist/routes/notifications.routes.d.ts +1350 -0
  50. package/dist/routes/notifications.routes.d.ts.map +1 -0
  51. package/dist/routes/notifications.routes.js +66 -0
  52. package/dist/routes/pest-disease-risk.routes.d.ts +20 -20
  53. package/dist/routes/prescription-maps.routes.d.ts +567 -20
  54. package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
  55. package/dist/routes/prescription-maps.routes.js +18 -1
  56. package/dist/routes/soil-tests.routes.d.ts +30 -30
  57. package/dist/routes/subscriptions.routes.d.ts +14 -14
  58. package/dist/routes/team-payments.routes.d.ts +9571 -0
  59. package/dist/routes/team-payments.routes.d.ts.map +1 -0
  60. package/dist/routes/team-payments.routes.js +262 -0
  61. package/dist/routes/weather.routes.d.ts +545 -52
  62. package/dist/routes/weather.routes.d.ts.map +1 -1
  63. package/dist/routes/weather.routes.js +13 -1
  64. package/dist/routes/yield-prediction.routes.d.ts +30 -30
  65. package/dist/schemas/agent-workflows.schemas.d.ts +92 -92
  66. package/dist/schemas/agents.schemas.d.ts +1121 -0
  67. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  68. package/dist/schemas/agents.schemas.js +181 -0
  69. package/dist/schemas/analytics.schemas.d.ts +56 -56
  70. package/dist/schemas/cooperative.schemas.d.ts +560 -0
  71. package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
  72. package/dist/schemas/cooperative.schemas.js +71 -0
  73. package/dist/schemas/documents.schemas.d.ts +248 -48
  74. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  75. package/dist/schemas/documents.schemas.js +38 -0
  76. package/dist/schemas/equipment.schemas.d.ts +30 -30
  77. package/dist/schemas/extension.schemas.d.ts +1204 -0
  78. package/dist/schemas/extension.schemas.d.ts.map +1 -0
  79. package/dist/schemas/extension.schemas.js +68 -0
  80. package/dist/schemas/farm-status.schemas.d.ts +451 -0
  81. package/dist/schemas/farm-status.schemas.d.ts.map +1 -0
  82. package/dist/schemas/farm-status.schemas.js +44 -0
  83. package/dist/schemas/farms.schemas.d.ts +591 -0
  84. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  85. package/dist/schemas/farms.schemas.js +44 -0
  86. package/dist/schemas/fertigation.schemas.d.ts +50 -50
  87. package/dist/schemas/field-monitoring.schemas.d.ts +318 -42
  88. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  89. package/dist/schemas/field-monitoring.schemas.js +9 -0
  90. package/dist/schemas/field-observations.schemas.d.ts +45 -44
  91. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  92. package/dist/schemas/fields.schemas.d.ts +188 -186
  93. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  94. package/dist/schemas/fields.schemas.js +10 -2
  95. package/dist/schemas/finance.schemas.d.ts +1057 -0
  96. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  97. package/dist/schemas/finance.schemas.js +170 -0
  98. package/dist/schemas/irrigation.schemas.d.ts +8 -8
  99. package/dist/schemas/live-monitor.schemas.d.ts +596 -0
  100. package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
  101. package/dist/schemas/live-monitor.schemas.js +107 -0
  102. package/dist/schemas/livestock-map.schemas.d.ts +10 -10
  103. package/dist/schemas/measurements.schemas.d.ts +21 -8
  104. package/dist/schemas/measurements.schemas.d.ts.map +1 -1
  105. package/dist/schemas/measurements.schemas.js +13 -6
  106. package/dist/schemas/monitoring-visualization.schemas.d.ts +47 -40
  107. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  108. package/dist/schemas/monitoring-visualization.schemas.js +24 -16
  109. package/dist/schemas/notifications.schemas.d.ts +464 -0
  110. package/dist/schemas/notifications.schemas.d.ts.map +1 -0
  111. package/dist/schemas/notifications.schemas.js +40 -0
  112. package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
  113. package/dist/schemas/prescription-maps.schemas.d.ts +41 -18
  114. package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
  115. package/dist/schemas/prescription-maps.schemas.js +8 -0
  116. package/dist/schemas/recommendations.schemas.d.ts +2 -2
  117. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  118. package/dist/schemas/subscriptions.schemas.d.ts +22 -22
  119. package/dist/schemas/team-payments.schemas.d.ts +2604 -0
  120. package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
  121. package/dist/schemas/team-payments.schemas.js +151 -0
  122. package/dist/schemas/weather.schemas.d.ts +789 -112
  123. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  124. package/dist/schemas/weather.schemas.js +37 -0
  125. package/dist/schemas/yield-prediction.schemas.d.ts +12 -12
  126. package/package.json +1 -1
@@ -0,0 +1,1327 @@
1
+ import { z } from 'zod';
2
+ export declare const cooperativeRouter: {
3
+ getDashboard: {
4
+ pathParams: z.ZodObject<{
5
+ orgId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ orgId: string;
8
+ }, {
9
+ orgId: string;
10
+ }>;
11
+ summary: "Get cooperative dashboard";
12
+ description: "Aggregate stats across all member farms in the organization. Requires COOPERATIVE tier.";
13
+ method: "GET";
14
+ path: "/organizations/:orgId/cooperative/dashboard";
15
+ responses: {
16
+ 200: z.ZodObject<{
17
+ data: z.ZodObject<{
18
+ type: z.ZodLiteral<"cooperative-dashboard">;
19
+ id: z.ZodString;
20
+ attributes: z.ZodObject<{
21
+ organizationId: z.ZodString;
22
+ memberFarmCount: z.ZodNumber;
23
+ totalHectares: z.ZodNumber;
24
+ aggregateHealthScore: z.ZodNullable<z.ZodNumber>;
25
+ healthBreakdown: z.ZodObject<{
26
+ healthy: z.ZodNumber;
27
+ warning: z.ZodNumber;
28
+ critical: z.ZodNumber;
29
+ unknown: z.ZodNumber;
30
+ }, "strip", z.ZodTypeAny, {
31
+ unknown: number;
32
+ critical: number;
33
+ warning: number;
34
+ healthy: number;
35
+ }, {
36
+ unknown: number;
37
+ critical: number;
38
+ warning: number;
39
+ healthy: number;
40
+ }>;
41
+ activeAlerts: z.ZodNumber;
42
+ criticalFarms: z.ZodNumber;
43
+ totalFields: z.ZodNumber;
44
+ computedAt: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ organizationId: string;
47
+ totalFields: number;
48
+ computedAt: string;
49
+ activeAlerts: number;
50
+ memberFarmCount: number;
51
+ totalHectares: number;
52
+ aggregateHealthScore: number | null;
53
+ healthBreakdown: {
54
+ unknown: number;
55
+ critical: number;
56
+ warning: number;
57
+ healthy: number;
58
+ };
59
+ criticalFarms: number;
60
+ }, {
61
+ organizationId: string;
62
+ totalFields: number;
63
+ computedAt: string;
64
+ activeAlerts: number;
65
+ memberFarmCount: number;
66
+ totalHectares: number;
67
+ aggregateHealthScore: number | null;
68
+ healthBreakdown: {
69
+ unknown: number;
70
+ critical: number;
71
+ warning: number;
72
+ healthy: number;
73
+ };
74
+ criticalFarms: number;
75
+ }>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ type: "cooperative-dashboard";
78
+ id: string;
79
+ attributes: {
80
+ organizationId: string;
81
+ totalFields: number;
82
+ computedAt: string;
83
+ activeAlerts: number;
84
+ memberFarmCount: number;
85
+ totalHectares: number;
86
+ aggregateHealthScore: number | null;
87
+ healthBreakdown: {
88
+ unknown: number;
89
+ critical: number;
90
+ warning: number;
91
+ healthy: number;
92
+ };
93
+ criticalFarms: number;
94
+ };
95
+ }, {
96
+ type: "cooperative-dashboard";
97
+ id: string;
98
+ attributes: {
99
+ organizationId: string;
100
+ totalFields: number;
101
+ computedAt: string;
102
+ activeAlerts: number;
103
+ memberFarmCount: number;
104
+ totalHectares: number;
105
+ aggregateHealthScore: number | null;
106
+ healthBreakdown: {
107
+ unknown: number;
108
+ critical: number;
109
+ warning: number;
110
+ healthy: number;
111
+ };
112
+ criticalFarms: number;
113
+ };
114
+ }>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ data: {
117
+ type: "cooperative-dashboard";
118
+ id: string;
119
+ attributes: {
120
+ organizationId: string;
121
+ totalFields: number;
122
+ computedAt: string;
123
+ activeAlerts: number;
124
+ memberFarmCount: number;
125
+ totalHectares: number;
126
+ aggregateHealthScore: number | null;
127
+ healthBreakdown: {
128
+ unknown: number;
129
+ critical: number;
130
+ warning: number;
131
+ healthy: number;
132
+ };
133
+ criticalFarms: number;
134
+ };
135
+ };
136
+ }, {
137
+ data: {
138
+ type: "cooperative-dashboard";
139
+ id: string;
140
+ attributes: {
141
+ organizationId: string;
142
+ totalFields: number;
143
+ computedAt: string;
144
+ activeAlerts: number;
145
+ memberFarmCount: number;
146
+ totalHectares: number;
147
+ aggregateHealthScore: number | null;
148
+ healthBreakdown: {
149
+ unknown: number;
150
+ critical: number;
151
+ warning: number;
152
+ healthy: number;
153
+ };
154
+ criticalFarms: number;
155
+ };
156
+ };
157
+ }>;
158
+ 401: z.ZodObject<{
159
+ errors: z.ZodArray<z.ZodObject<{
160
+ id: z.ZodOptional<z.ZodString>;
161
+ links: z.ZodOptional<z.ZodObject<{
162
+ about: z.ZodOptional<z.ZodString>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ about?: string | undefined;
165
+ }, {
166
+ about?: string | undefined;
167
+ }>>;
168
+ status: z.ZodOptional<z.ZodString>;
169
+ code: z.ZodOptional<z.ZodString>;
170
+ title: z.ZodOptional<z.ZodString>;
171
+ detail: z.ZodOptional<z.ZodString>;
172
+ source: z.ZodOptional<z.ZodObject<{
173
+ pointer: z.ZodOptional<z.ZodString>;
174
+ parameter: z.ZodOptional<z.ZodString>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ pointer?: string | undefined;
177
+ parameter?: string | undefined;
178
+ }, {
179
+ pointer?: string | undefined;
180
+ parameter?: string | undefined;
181
+ }>>;
182
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ status?: string | undefined;
185
+ code?: string | undefined;
186
+ id?: string | undefined;
187
+ links?: {
188
+ about?: string | undefined;
189
+ } | undefined;
190
+ meta?: Record<string, unknown> | undefined;
191
+ title?: string | undefined;
192
+ detail?: string | undefined;
193
+ source?: {
194
+ pointer?: string | undefined;
195
+ parameter?: string | undefined;
196
+ } | undefined;
197
+ }, {
198
+ status?: string | undefined;
199
+ code?: string | undefined;
200
+ id?: string | undefined;
201
+ links?: {
202
+ about?: string | undefined;
203
+ } | undefined;
204
+ meta?: Record<string, unknown> | undefined;
205
+ title?: string | undefined;
206
+ detail?: string | undefined;
207
+ source?: {
208
+ pointer?: string | undefined;
209
+ parameter?: string | undefined;
210
+ } | undefined;
211
+ }>, "many">;
212
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ errors: {
215
+ status?: string | undefined;
216
+ code?: string | undefined;
217
+ id?: string | undefined;
218
+ links?: {
219
+ about?: string | undefined;
220
+ } | undefined;
221
+ meta?: Record<string, unknown> | undefined;
222
+ title?: string | undefined;
223
+ detail?: string | undefined;
224
+ source?: {
225
+ pointer?: string | undefined;
226
+ parameter?: string | undefined;
227
+ } | undefined;
228
+ }[];
229
+ meta?: Record<string, unknown> | undefined;
230
+ }, {
231
+ errors: {
232
+ status?: string | undefined;
233
+ code?: string | undefined;
234
+ id?: string | undefined;
235
+ links?: {
236
+ about?: string | undefined;
237
+ } | undefined;
238
+ meta?: Record<string, unknown> | undefined;
239
+ title?: string | undefined;
240
+ detail?: string | undefined;
241
+ source?: {
242
+ pointer?: string | undefined;
243
+ parameter?: string | undefined;
244
+ } | undefined;
245
+ }[];
246
+ meta?: Record<string, unknown> | undefined;
247
+ }>;
248
+ 403: z.ZodObject<{
249
+ errors: z.ZodArray<z.ZodObject<{
250
+ id: z.ZodOptional<z.ZodString>;
251
+ links: z.ZodOptional<z.ZodObject<{
252
+ about: z.ZodOptional<z.ZodString>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ about?: string | undefined;
255
+ }, {
256
+ about?: string | undefined;
257
+ }>>;
258
+ status: z.ZodOptional<z.ZodString>;
259
+ code: z.ZodOptional<z.ZodString>;
260
+ title: z.ZodOptional<z.ZodString>;
261
+ detail: z.ZodOptional<z.ZodString>;
262
+ source: z.ZodOptional<z.ZodObject<{
263
+ pointer: z.ZodOptional<z.ZodString>;
264
+ parameter: z.ZodOptional<z.ZodString>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ pointer?: string | undefined;
267
+ parameter?: string | undefined;
268
+ }, {
269
+ pointer?: string | undefined;
270
+ parameter?: string | undefined;
271
+ }>>;
272
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ status?: string | undefined;
275
+ code?: string | undefined;
276
+ id?: string | undefined;
277
+ links?: {
278
+ about?: string | undefined;
279
+ } | undefined;
280
+ meta?: Record<string, unknown> | undefined;
281
+ title?: string | undefined;
282
+ detail?: string | undefined;
283
+ source?: {
284
+ pointer?: string | undefined;
285
+ parameter?: string | undefined;
286
+ } | undefined;
287
+ }, {
288
+ status?: string | undefined;
289
+ code?: string | undefined;
290
+ id?: string | undefined;
291
+ links?: {
292
+ about?: string | undefined;
293
+ } | undefined;
294
+ meta?: Record<string, unknown> | undefined;
295
+ title?: string | undefined;
296
+ detail?: string | undefined;
297
+ source?: {
298
+ pointer?: string | undefined;
299
+ parameter?: string | undefined;
300
+ } | undefined;
301
+ }>, "many">;
302
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ errors: {
305
+ status?: string | undefined;
306
+ code?: string | undefined;
307
+ id?: string | undefined;
308
+ links?: {
309
+ about?: string | undefined;
310
+ } | undefined;
311
+ meta?: Record<string, unknown> | undefined;
312
+ title?: string | undefined;
313
+ detail?: string | undefined;
314
+ source?: {
315
+ pointer?: string | undefined;
316
+ parameter?: string | undefined;
317
+ } | undefined;
318
+ }[];
319
+ meta?: Record<string, unknown> | undefined;
320
+ }, {
321
+ errors: {
322
+ status?: string | undefined;
323
+ code?: string | undefined;
324
+ id?: string | undefined;
325
+ links?: {
326
+ about?: string | undefined;
327
+ } | undefined;
328
+ meta?: Record<string, unknown> | undefined;
329
+ title?: string | undefined;
330
+ detail?: string | undefined;
331
+ source?: {
332
+ pointer?: string | undefined;
333
+ parameter?: string | undefined;
334
+ } | undefined;
335
+ }[];
336
+ meta?: Record<string, unknown> | undefined;
337
+ }>;
338
+ 404: z.ZodObject<{
339
+ errors: z.ZodArray<z.ZodObject<{
340
+ id: z.ZodOptional<z.ZodString>;
341
+ links: z.ZodOptional<z.ZodObject<{
342
+ about: z.ZodOptional<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ about?: string | undefined;
345
+ }, {
346
+ about?: string | undefined;
347
+ }>>;
348
+ status: z.ZodOptional<z.ZodString>;
349
+ code: z.ZodOptional<z.ZodString>;
350
+ title: z.ZodOptional<z.ZodString>;
351
+ detail: z.ZodOptional<z.ZodString>;
352
+ source: z.ZodOptional<z.ZodObject<{
353
+ pointer: z.ZodOptional<z.ZodString>;
354
+ parameter: z.ZodOptional<z.ZodString>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ pointer?: string | undefined;
357
+ parameter?: string | undefined;
358
+ }, {
359
+ pointer?: string | undefined;
360
+ parameter?: string | undefined;
361
+ }>>;
362
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ status?: string | undefined;
365
+ code?: string | undefined;
366
+ id?: string | undefined;
367
+ links?: {
368
+ about?: string | undefined;
369
+ } | undefined;
370
+ meta?: Record<string, unknown> | undefined;
371
+ title?: string | undefined;
372
+ detail?: string | undefined;
373
+ source?: {
374
+ pointer?: string | undefined;
375
+ parameter?: string | undefined;
376
+ } | undefined;
377
+ }, {
378
+ status?: string | undefined;
379
+ code?: string | undefined;
380
+ id?: string | undefined;
381
+ links?: {
382
+ about?: string | undefined;
383
+ } | undefined;
384
+ meta?: Record<string, unknown> | undefined;
385
+ title?: string | undefined;
386
+ detail?: string | undefined;
387
+ source?: {
388
+ pointer?: string | undefined;
389
+ parameter?: string | undefined;
390
+ } | undefined;
391
+ }>, "many">;
392
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
393
+ }, "strip", z.ZodTypeAny, {
394
+ errors: {
395
+ status?: string | undefined;
396
+ code?: string | undefined;
397
+ id?: string | undefined;
398
+ links?: {
399
+ about?: string | undefined;
400
+ } | undefined;
401
+ meta?: Record<string, unknown> | undefined;
402
+ title?: string | undefined;
403
+ detail?: string | undefined;
404
+ source?: {
405
+ pointer?: string | undefined;
406
+ parameter?: string | undefined;
407
+ } | undefined;
408
+ }[];
409
+ meta?: Record<string, unknown> | undefined;
410
+ }, {
411
+ errors: {
412
+ status?: string | undefined;
413
+ code?: string | undefined;
414
+ id?: string | undefined;
415
+ links?: {
416
+ about?: string | undefined;
417
+ } | undefined;
418
+ meta?: Record<string, unknown> | undefined;
419
+ title?: string | undefined;
420
+ detail?: string | undefined;
421
+ source?: {
422
+ pointer?: string | undefined;
423
+ parameter?: string | undefined;
424
+ } | undefined;
425
+ }[];
426
+ meta?: Record<string, unknown> | undefined;
427
+ }>;
428
+ };
429
+ };
430
+ getMembers: {
431
+ pathParams: z.ZodObject<{
432
+ orgId: z.ZodString;
433
+ }, "strip", z.ZodTypeAny, {
434
+ orgId: string;
435
+ }, {
436
+ orgId: string;
437
+ }>;
438
+ summary: "List cooperative member farms";
439
+ description: "Member farms with health status. Requires COOPERATIVE tier.";
440
+ method: "GET";
441
+ path: "/organizations/:orgId/cooperative/members";
442
+ responses: {
443
+ 200: z.ZodObject<{
444
+ data: z.ZodArray<z.ZodObject<{
445
+ type: z.ZodLiteral<"cooperative-members">;
446
+ id: z.ZodString;
447
+ attributes: z.ZodObject<{
448
+ farmId: z.ZodString;
449
+ farmName: z.ZodString;
450
+ ownerName: z.ZodString;
451
+ ownerEmail: z.ZodString;
452
+ fieldCount: z.ZodNumber;
453
+ totalHectares: z.ZodNumber;
454
+ healthScore: z.ZodNullable<z.ZodNumber>;
455
+ healthStatus: z.ZodEnum<["healthy", "warning", "critical", "unknown"]>;
456
+ activeAlerts: z.ZodNumber;
457
+ lastActivityAt: z.ZodNullable<z.ZodString>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ farmId: string;
460
+ farmName: string;
461
+ healthScore: number | null;
462
+ healthStatus: "unknown" | "critical" | "warning" | "healthy";
463
+ fieldCount: number;
464
+ activeAlerts: number;
465
+ totalHectares: number;
466
+ ownerName: string;
467
+ ownerEmail: string;
468
+ lastActivityAt: string | null;
469
+ }, {
470
+ farmId: string;
471
+ farmName: string;
472
+ healthScore: number | null;
473
+ healthStatus: "unknown" | "critical" | "warning" | "healthy";
474
+ fieldCount: number;
475
+ activeAlerts: number;
476
+ totalHectares: number;
477
+ ownerName: string;
478
+ ownerEmail: string;
479
+ lastActivityAt: string | null;
480
+ }>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ type: "cooperative-members";
483
+ id: string;
484
+ attributes: {
485
+ farmId: string;
486
+ farmName: string;
487
+ healthScore: number | null;
488
+ healthStatus: "unknown" | "critical" | "warning" | "healthy";
489
+ fieldCount: number;
490
+ activeAlerts: number;
491
+ totalHectares: number;
492
+ ownerName: string;
493
+ ownerEmail: string;
494
+ lastActivityAt: string | null;
495
+ };
496
+ }, {
497
+ type: "cooperative-members";
498
+ id: string;
499
+ attributes: {
500
+ farmId: string;
501
+ farmName: string;
502
+ healthScore: number | null;
503
+ healthStatus: "unknown" | "critical" | "warning" | "healthy";
504
+ fieldCount: number;
505
+ activeAlerts: number;
506
+ totalHectares: number;
507
+ ownerName: string;
508
+ ownerEmail: string;
509
+ lastActivityAt: string | null;
510
+ };
511
+ }>, "many">;
512
+ meta: z.ZodObject<{
513
+ totalMembers: z.ZodNumber;
514
+ }, "strip", z.ZodTypeAny, {
515
+ totalMembers: number;
516
+ }, {
517
+ totalMembers: number;
518
+ }>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ meta: {
521
+ totalMembers: number;
522
+ };
523
+ data: {
524
+ type: "cooperative-members";
525
+ id: string;
526
+ attributes: {
527
+ farmId: string;
528
+ farmName: string;
529
+ healthScore: number | null;
530
+ healthStatus: "unknown" | "critical" | "warning" | "healthy";
531
+ fieldCount: number;
532
+ activeAlerts: number;
533
+ totalHectares: number;
534
+ ownerName: string;
535
+ ownerEmail: string;
536
+ lastActivityAt: string | null;
537
+ };
538
+ }[];
539
+ }, {
540
+ meta: {
541
+ totalMembers: number;
542
+ };
543
+ data: {
544
+ type: "cooperative-members";
545
+ id: string;
546
+ attributes: {
547
+ farmId: string;
548
+ farmName: string;
549
+ healthScore: number | null;
550
+ healthStatus: "unknown" | "critical" | "warning" | "healthy";
551
+ fieldCount: number;
552
+ activeAlerts: number;
553
+ totalHectares: number;
554
+ ownerName: string;
555
+ ownerEmail: string;
556
+ lastActivityAt: string | null;
557
+ };
558
+ }[];
559
+ }>;
560
+ 401: z.ZodObject<{
561
+ errors: z.ZodArray<z.ZodObject<{
562
+ id: z.ZodOptional<z.ZodString>;
563
+ links: z.ZodOptional<z.ZodObject<{
564
+ about: z.ZodOptional<z.ZodString>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ about?: string | undefined;
567
+ }, {
568
+ about?: string | undefined;
569
+ }>>;
570
+ status: z.ZodOptional<z.ZodString>;
571
+ code: z.ZodOptional<z.ZodString>;
572
+ title: z.ZodOptional<z.ZodString>;
573
+ detail: z.ZodOptional<z.ZodString>;
574
+ source: z.ZodOptional<z.ZodObject<{
575
+ pointer: z.ZodOptional<z.ZodString>;
576
+ parameter: z.ZodOptional<z.ZodString>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ pointer?: string | undefined;
579
+ parameter?: string | undefined;
580
+ }, {
581
+ pointer?: string | undefined;
582
+ parameter?: string | undefined;
583
+ }>>;
584
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ status?: string | undefined;
587
+ code?: string | undefined;
588
+ id?: string | undefined;
589
+ links?: {
590
+ about?: string | undefined;
591
+ } | undefined;
592
+ meta?: Record<string, unknown> | undefined;
593
+ title?: string | undefined;
594
+ detail?: string | undefined;
595
+ source?: {
596
+ pointer?: string | undefined;
597
+ parameter?: string | undefined;
598
+ } | undefined;
599
+ }, {
600
+ status?: string | undefined;
601
+ code?: string | undefined;
602
+ id?: string | undefined;
603
+ links?: {
604
+ about?: string | undefined;
605
+ } | undefined;
606
+ meta?: Record<string, unknown> | undefined;
607
+ title?: string | undefined;
608
+ detail?: string | undefined;
609
+ source?: {
610
+ pointer?: string | undefined;
611
+ parameter?: string | undefined;
612
+ } | undefined;
613
+ }>, "many">;
614
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ errors: {
617
+ status?: string | undefined;
618
+ code?: string | undefined;
619
+ id?: string | undefined;
620
+ links?: {
621
+ about?: string | undefined;
622
+ } | undefined;
623
+ meta?: Record<string, unknown> | undefined;
624
+ title?: string | undefined;
625
+ detail?: string | undefined;
626
+ source?: {
627
+ pointer?: string | undefined;
628
+ parameter?: string | undefined;
629
+ } | undefined;
630
+ }[];
631
+ meta?: Record<string, unknown> | undefined;
632
+ }, {
633
+ errors: {
634
+ status?: string | undefined;
635
+ code?: string | undefined;
636
+ id?: string | undefined;
637
+ links?: {
638
+ about?: string | undefined;
639
+ } | undefined;
640
+ meta?: Record<string, unknown> | undefined;
641
+ title?: string | undefined;
642
+ detail?: string | undefined;
643
+ source?: {
644
+ pointer?: string | undefined;
645
+ parameter?: string | undefined;
646
+ } | undefined;
647
+ }[];
648
+ meta?: Record<string, unknown> | undefined;
649
+ }>;
650
+ 403: z.ZodObject<{
651
+ errors: z.ZodArray<z.ZodObject<{
652
+ id: z.ZodOptional<z.ZodString>;
653
+ links: z.ZodOptional<z.ZodObject<{
654
+ about: z.ZodOptional<z.ZodString>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ about?: string | undefined;
657
+ }, {
658
+ about?: string | undefined;
659
+ }>>;
660
+ status: z.ZodOptional<z.ZodString>;
661
+ code: z.ZodOptional<z.ZodString>;
662
+ title: z.ZodOptional<z.ZodString>;
663
+ detail: z.ZodOptional<z.ZodString>;
664
+ source: z.ZodOptional<z.ZodObject<{
665
+ pointer: z.ZodOptional<z.ZodString>;
666
+ parameter: z.ZodOptional<z.ZodString>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ pointer?: string | undefined;
669
+ parameter?: string | undefined;
670
+ }, {
671
+ pointer?: string | undefined;
672
+ parameter?: string | undefined;
673
+ }>>;
674
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ status?: string | undefined;
677
+ code?: string | undefined;
678
+ id?: string | undefined;
679
+ links?: {
680
+ about?: string | undefined;
681
+ } | undefined;
682
+ meta?: Record<string, unknown> | undefined;
683
+ title?: string | undefined;
684
+ detail?: string | undefined;
685
+ source?: {
686
+ pointer?: string | undefined;
687
+ parameter?: string | undefined;
688
+ } | undefined;
689
+ }, {
690
+ status?: string | undefined;
691
+ code?: string | undefined;
692
+ id?: string | undefined;
693
+ links?: {
694
+ about?: string | undefined;
695
+ } | undefined;
696
+ meta?: Record<string, unknown> | undefined;
697
+ title?: string | undefined;
698
+ detail?: string | undefined;
699
+ source?: {
700
+ pointer?: string | undefined;
701
+ parameter?: string | undefined;
702
+ } | undefined;
703
+ }>, "many">;
704
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ errors: {
707
+ status?: string | undefined;
708
+ code?: string | undefined;
709
+ id?: string | undefined;
710
+ links?: {
711
+ about?: string | undefined;
712
+ } | undefined;
713
+ meta?: Record<string, unknown> | undefined;
714
+ title?: string | undefined;
715
+ detail?: string | undefined;
716
+ source?: {
717
+ pointer?: string | undefined;
718
+ parameter?: string | undefined;
719
+ } | undefined;
720
+ }[];
721
+ meta?: Record<string, unknown> | undefined;
722
+ }, {
723
+ errors: {
724
+ status?: string | undefined;
725
+ code?: string | undefined;
726
+ id?: string | undefined;
727
+ links?: {
728
+ about?: string | undefined;
729
+ } | undefined;
730
+ meta?: Record<string, unknown> | undefined;
731
+ title?: string | undefined;
732
+ detail?: string | undefined;
733
+ source?: {
734
+ pointer?: string | undefined;
735
+ parameter?: string | undefined;
736
+ } | undefined;
737
+ }[];
738
+ meta?: Record<string, unknown> | undefined;
739
+ }>;
740
+ 404: z.ZodObject<{
741
+ errors: z.ZodArray<z.ZodObject<{
742
+ id: z.ZodOptional<z.ZodString>;
743
+ links: z.ZodOptional<z.ZodObject<{
744
+ about: z.ZodOptional<z.ZodString>;
745
+ }, "strip", z.ZodTypeAny, {
746
+ about?: string | undefined;
747
+ }, {
748
+ about?: string | undefined;
749
+ }>>;
750
+ status: z.ZodOptional<z.ZodString>;
751
+ code: z.ZodOptional<z.ZodString>;
752
+ title: z.ZodOptional<z.ZodString>;
753
+ detail: z.ZodOptional<z.ZodString>;
754
+ source: z.ZodOptional<z.ZodObject<{
755
+ pointer: z.ZodOptional<z.ZodString>;
756
+ parameter: z.ZodOptional<z.ZodString>;
757
+ }, "strip", z.ZodTypeAny, {
758
+ pointer?: string | undefined;
759
+ parameter?: string | undefined;
760
+ }, {
761
+ pointer?: string | undefined;
762
+ parameter?: string | undefined;
763
+ }>>;
764
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ status?: string | undefined;
767
+ code?: string | undefined;
768
+ id?: string | undefined;
769
+ links?: {
770
+ about?: string | undefined;
771
+ } | undefined;
772
+ meta?: Record<string, unknown> | undefined;
773
+ title?: string | undefined;
774
+ detail?: string | undefined;
775
+ source?: {
776
+ pointer?: string | undefined;
777
+ parameter?: string | undefined;
778
+ } | undefined;
779
+ }, {
780
+ status?: string | undefined;
781
+ code?: string | undefined;
782
+ id?: string | undefined;
783
+ links?: {
784
+ about?: string | undefined;
785
+ } | undefined;
786
+ meta?: Record<string, unknown> | undefined;
787
+ title?: string | undefined;
788
+ detail?: string | undefined;
789
+ source?: {
790
+ pointer?: string | undefined;
791
+ parameter?: string | undefined;
792
+ } | undefined;
793
+ }>, "many">;
794
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
795
+ }, "strip", z.ZodTypeAny, {
796
+ errors: {
797
+ status?: string | undefined;
798
+ code?: string | undefined;
799
+ id?: string | undefined;
800
+ links?: {
801
+ about?: string | undefined;
802
+ } | undefined;
803
+ meta?: Record<string, unknown> | undefined;
804
+ title?: string | undefined;
805
+ detail?: string | undefined;
806
+ source?: {
807
+ pointer?: string | undefined;
808
+ parameter?: string | undefined;
809
+ } | undefined;
810
+ }[];
811
+ meta?: Record<string, unknown> | undefined;
812
+ }, {
813
+ errors: {
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
+ meta?: Record<string, unknown> | undefined;
829
+ }>;
830
+ };
831
+ };
832
+ sendBulkAlert: {
833
+ pathParams: z.ZodObject<{
834
+ orgId: z.ZodString;
835
+ }, "strip", z.ZodTypeAny, {
836
+ orgId: string;
837
+ }, {
838
+ orgId: string;
839
+ }>;
840
+ summary: "Send bulk alert to member farms";
841
+ description: "Create alerts across organization member farms. Requires COOPERATIVE tier.";
842
+ method: "POST";
843
+ body: z.ZodObject<{
844
+ data: z.ZodObject<{
845
+ type: z.ZodLiteral<"cooperative-bulk-alerts">;
846
+ attributes: z.ZodObject<{
847
+ title: z.ZodString;
848
+ message: z.ZodString;
849
+ severity: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "critical"]>>;
850
+ farmIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
851
+ recommendation: z.ZodOptional<z.ZodString>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ message: string;
854
+ title: string;
855
+ severity: "critical" | "low" | "medium" | "high";
856
+ recommendation?: string | undefined;
857
+ farmIds?: string[] | undefined;
858
+ }, {
859
+ message: string;
860
+ title: string;
861
+ recommendation?: string | undefined;
862
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
863
+ farmIds?: string[] | undefined;
864
+ }>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ type: "cooperative-bulk-alerts";
867
+ attributes: {
868
+ message: string;
869
+ title: string;
870
+ severity: "critical" | "low" | "medium" | "high";
871
+ recommendation?: string | undefined;
872
+ farmIds?: string[] | undefined;
873
+ };
874
+ }, {
875
+ type: "cooperative-bulk-alerts";
876
+ attributes: {
877
+ message: string;
878
+ title: string;
879
+ recommendation?: string | undefined;
880
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
881
+ farmIds?: string[] | undefined;
882
+ };
883
+ }>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ data: {
886
+ type: "cooperative-bulk-alerts";
887
+ attributes: {
888
+ message: string;
889
+ title: string;
890
+ severity: "critical" | "low" | "medium" | "high";
891
+ recommendation?: string | undefined;
892
+ farmIds?: string[] | undefined;
893
+ };
894
+ };
895
+ }, {
896
+ data: {
897
+ type: "cooperative-bulk-alerts";
898
+ attributes: {
899
+ message: string;
900
+ title: string;
901
+ recommendation?: string | undefined;
902
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
903
+ farmIds?: string[] | undefined;
904
+ };
905
+ };
906
+ }>;
907
+ path: "/organizations/:orgId/cooperative/bulk-alert";
908
+ responses: {
909
+ 201: z.ZodObject<{
910
+ data: z.ZodObject<{
911
+ type: z.ZodLiteral<"cooperative-bulk-alerts">;
912
+ id: z.ZodString;
913
+ attributes: z.ZodObject<{
914
+ alertsCreated: z.ZodNumber;
915
+ farmsNotified: z.ZodNumber;
916
+ farmIds: z.ZodArray<z.ZodString, "many">;
917
+ }, "strip", z.ZodTypeAny, {
918
+ farmIds: string[];
919
+ alertsCreated: number;
920
+ farmsNotified: number;
921
+ }, {
922
+ farmIds: string[];
923
+ alertsCreated: number;
924
+ farmsNotified: number;
925
+ }>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ type: "cooperative-bulk-alerts";
928
+ id: string;
929
+ attributes: {
930
+ farmIds: string[];
931
+ alertsCreated: number;
932
+ farmsNotified: number;
933
+ };
934
+ }, {
935
+ type: "cooperative-bulk-alerts";
936
+ id: string;
937
+ attributes: {
938
+ farmIds: string[];
939
+ alertsCreated: number;
940
+ farmsNotified: number;
941
+ };
942
+ }>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ data: {
945
+ type: "cooperative-bulk-alerts";
946
+ id: string;
947
+ attributes: {
948
+ farmIds: string[];
949
+ alertsCreated: number;
950
+ farmsNotified: number;
951
+ };
952
+ };
953
+ }, {
954
+ data: {
955
+ type: "cooperative-bulk-alerts";
956
+ id: string;
957
+ attributes: {
958
+ farmIds: string[];
959
+ alertsCreated: number;
960
+ farmsNotified: number;
961
+ };
962
+ };
963
+ }>;
964
+ 400: z.ZodObject<{
965
+ errors: z.ZodArray<z.ZodObject<{
966
+ id: z.ZodOptional<z.ZodString>;
967
+ links: z.ZodOptional<z.ZodObject<{
968
+ about: z.ZodOptional<z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ about?: string | undefined;
971
+ }, {
972
+ about?: string | undefined;
973
+ }>>;
974
+ status: z.ZodOptional<z.ZodString>;
975
+ code: z.ZodOptional<z.ZodString>;
976
+ title: z.ZodOptional<z.ZodString>;
977
+ detail: z.ZodOptional<z.ZodString>;
978
+ source: z.ZodOptional<z.ZodObject<{
979
+ pointer: z.ZodOptional<z.ZodString>;
980
+ parameter: z.ZodOptional<z.ZodString>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ pointer?: string | undefined;
983
+ parameter?: string | undefined;
984
+ }, {
985
+ pointer?: string | undefined;
986
+ parameter?: string | undefined;
987
+ }>>;
988
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ status?: string | undefined;
991
+ code?: string | undefined;
992
+ id?: string | undefined;
993
+ links?: {
994
+ about?: string | undefined;
995
+ } | undefined;
996
+ meta?: Record<string, unknown> | undefined;
997
+ title?: string | undefined;
998
+ detail?: string | undefined;
999
+ source?: {
1000
+ pointer?: string | undefined;
1001
+ parameter?: string | undefined;
1002
+ } | undefined;
1003
+ }, {
1004
+ status?: string | undefined;
1005
+ code?: string | undefined;
1006
+ id?: string | undefined;
1007
+ links?: {
1008
+ about?: string | undefined;
1009
+ } | undefined;
1010
+ meta?: Record<string, unknown> | undefined;
1011
+ title?: string | undefined;
1012
+ detail?: string | undefined;
1013
+ source?: {
1014
+ pointer?: string | undefined;
1015
+ parameter?: string | undefined;
1016
+ } | undefined;
1017
+ }>, "many">;
1018
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ errors: {
1021
+ status?: string | undefined;
1022
+ code?: string | undefined;
1023
+ id?: string | undefined;
1024
+ links?: {
1025
+ about?: string | undefined;
1026
+ } | undefined;
1027
+ meta?: Record<string, unknown> | undefined;
1028
+ title?: string | undefined;
1029
+ detail?: string | undefined;
1030
+ source?: {
1031
+ pointer?: string | undefined;
1032
+ parameter?: string | undefined;
1033
+ } | undefined;
1034
+ }[];
1035
+ meta?: Record<string, unknown> | undefined;
1036
+ }, {
1037
+ errors: {
1038
+ status?: string | undefined;
1039
+ code?: string | undefined;
1040
+ id?: string | undefined;
1041
+ links?: {
1042
+ about?: string | undefined;
1043
+ } | undefined;
1044
+ meta?: Record<string, unknown> | undefined;
1045
+ title?: string | undefined;
1046
+ detail?: string | undefined;
1047
+ source?: {
1048
+ pointer?: string | undefined;
1049
+ parameter?: string | undefined;
1050
+ } | undefined;
1051
+ }[];
1052
+ meta?: Record<string, unknown> | undefined;
1053
+ }>;
1054
+ 401: z.ZodObject<{
1055
+ errors: z.ZodArray<z.ZodObject<{
1056
+ id: z.ZodOptional<z.ZodString>;
1057
+ links: z.ZodOptional<z.ZodObject<{
1058
+ about: z.ZodOptional<z.ZodString>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ about?: string | undefined;
1061
+ }, {
1062
+ about?: string | undefined;
1063
+ }>>;
1064
+ status: z.ZodOptional<z.ZodString>;
1065
+ code: z.ZodOptional<z.ZodString>;
1066
+ title: z.ZodOptional<z.ZodString>;
1067
+ detail: z.ZodOptional<z.ZodString>;
1068
+ source: z.ZodOptional<z.ZodObject<{
1069
+ pointer: z.ZodOptional<z.ZodString>;
1070
+ parameter: z.ZodOptional<z.ZodString>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ pointer?: string | undefined;
1073
+ parameter?: string | undefined;
1074
+ }, {
1075
+ pointer?: string | undefined;
1076
+ parameter?: string | undefined;
1077
+ }>>;
1078
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ status?: string | undefined;
1081
+ code?: string | undefined;
1082
+ id?: string | undefined;
1083
+ links?: {
1084
+ about?: string | undefined;
1085
+ } | undefined;
1086
+ meta?: Record<string, unknown> | undefined;
1087
+ title?: string | undefined;
1088
+ detail?: string | undefined;
1089
+ source?: {
1090
+ pointer?: string | undefined;
1091
+ parameter?: string | undefined;
1092
+ } | undefined;
1093
+ }, {
1094
+ status?: string | undefined;
1095
+ code?: string | undefined;
1096
+ id?: string | undefined;
1097
+ links?: {
1098
+ about?: string | undefined;
1099
+ } | undefined;
1100
+ meta?: Record<string, unknown> | undefined;
1101
+ title?: string | undefined;
1102
+ detail?: string | undefined;
1103
+ source?: {
1104
+ pointer?: string | undefined;
1105
+ parameter?: string | undefined;
1106
+ } | undefined;
1107
+ }>, "many">;
1108
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ errors: {
1111
+ status?: string | undefined;
1112
+ code?: string | undefined;
1113
+ id?: string | undefined;
1114
+ links?: {
1115
+ about?: string | undefined;
1116
+ } | undefined;
1117
+ meta?: Record<string, unknown> | undefined;
1118
+ title?: string | undefined;
1119
+ detail?: string | undefined;
1120
+ source?: {
1121
+ pointer?: string | undefined;
1122
+ parameter?: string | undefined;
1123
+ } | undefined;
1124
+ }[];
1125
+ meta?: Record<string, unknown> | undefined;
1126
+ }, {
1127
+ errors: {
1128
+ status?: string | undefined;
1129
+ code?: string | undefined;
1130
+ id?: string | undefined;
1131
+ links?: {
1132
+ about?: string | undefined;
1133
+ } | undefined;
1134
+ meta?: Record<string, unknown> | undefined;
1135
+ title?: string | undefined;
1136
+ detail?: string | undefined;
1137
+ source?: {
1138
+ pointer?: string | undefined;
1139
+ parameter?: string | undefined;
1140
+ } | undefined;
1141
+ }[];
1142
+ meta?: Record<string, unknown> | undefined;
1143
+ }>;
1144
+ 403: z.ZodObject<{
1145
+ errors: z.ZodArray<z.ZodObject<{
1146
+ id: z.ZodOptional<z.ZodString>;
1147
+ links: z.ZodOptional<z.ZodObject<{
1148
+ about: z.ZodOptional<z.ZodString>;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ about?: string | undefined;
1151
+ }, {
1152
+ about?: string | undefined;
1153
+ }>>;
1154
+ status: z.ZodOptional<z.ZodString>;
1155
+ code: z.ZodOptional<z.ZodString>;
1156
+ title: z.ZodOptional<z.ZodString>;
1157
+ detail: z.ZodOptional<z.ZodString>;
1158
+ source: z.ZodOptional<z.ZodObject<{
1159
+ pointer: z.ZodOptional<z.ZodString>;
1160
+ parameter: z.ZodOptional<z.ZodString>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ pointer?: string | undefined;
1163
+ parameter?: string | undefined;
1164
+ }, {
1165
+ pointer?: string | undefined;
1166
+ parameter?: string | undefined;
1167
+ }>>;
1168
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ status?: string | undefined;
1171
+ code?: string | undefined;
1172
+ id?: string | undefined;
1173
+ links?: {
1174
+ about?: string | undefined;
1175
+ } | undefined;
1176
+ meta?: Record<string, unknown> | undefined;
1177
+ title?: string | undefined;
1178
+ detail?: string | undefined;
1179
+ source?: {
1180
+ pointer?: string | undefined;
1181
+ parameter?: string | undefined;
1182
+ } | undefined;
1183
+ }, {
1184
+ status?: string | undefined;
1185
+ code?: string | undefined;
1186
+ id?: string | undefined;
1187
+ links?: {
1188
+ about?: string | undefined;
1189
+ } | undefined;
1190
+ meta?: Record<string, unknown> | undefined;
1191
+ title?: string | undefined;
1192
+ detail?: string | undefined;
1193
+ source?: {
1194
+ pointer?: string | undefined;
1195
+ parameter?: string | undefined;
1196
+ } | undefined;
1197
+ }>, "many">;
1198
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ errors: {
1201
+ status?: string | undefined;
1202
+ code?: string | undefined;
1203
+ id?: string | undefined;
1204
+ links?: {
1205
+ about?: string | undefined;
1206
+ } | undefined;
1207
+ meta?: Record<string, unknown> | undefined;
1208
+ title?: string | undefined;
1209
+ detail?: string | undefined;
1210
+ source?: {
1211
+ pointer?: string | undefined;
1212
+ parameter?: string | undefined;
1213
+ } | undefined;
1214
+ }[];
1215
+ meta?: Record<string, unknown> | undefined;
1216
+ }, {
1217
+ errors: {
1218
+ status?: string | undefined;
1219
+ code?: string | undefined;
1220
+ id?: string | undefined;
1221
+ links?: {
1222
+ about?: string | undefined;
1223
+ } | undefined;
1224
+ meta?: Record<string, unknown> | undefined;
1225
+ title?: string | undefined;
1226
+ detail?: string | undefined;
1227
+ source?: {
1228
+ pointer?: string | undefined;
1229
+ parameter?: string | undefined;
1230
+ } | undefined;
1231
+ }[];
1232
+ meta?: Record<string, unknown> | undefined;
1233
+ }>;
1234
+ 404: z.ZodObject<{
1235
+ errors: z.ZodArray<z.ZodObject<{
1236
+ id: z.ZodOptional<z.ZodString>;
1237
+ links: z.ZodOptional<z.ZodObject<{
1238
+ about: z.ZodOptional<z.ZodString>;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ about?: string | undefined;
1241
+ }, {
1242
+ about?: string | undefined;
1243
+ }>>;
1244
+ status: z.ZodOptional<z.ZodString>;
1245
+ code: z.ZodOptional<z.ZodString>;
1246
+ title: z.ZodOptional<z.ZodString>;
1247
+ detail: z.ZodOptional<z.ZodString>;
1248
+ source: z.ZodOptional<z.ZodObject<{
1249
+ pointer: z.ZodOptional<z.ZodString>;
1250
+ parameter: z.ZodOptional<z.ZodString>;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ pointer?: string | undefined;
1253
+ parameter?: string | undefined;
1254
+ }, {
1255
+ pointer?: string | undefined;
1256
+ parameter?: string | undefined;
1257
+ }>>;
1258
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ status?: string | undefined;
1261
+ code?: string | undefined;
1262
+ id?: string | undefined;
1263
+ links?: {
1264
+ about?: string | undefined;
1265
+ } | undefined;
1266
+ meta?: Record<string, unknown> | undefined;
1267
+ title?: string | undefined;
1268
+ detail?: string | undefined;
1269
+ source?: {
1270
+ pointer?: string | undefined;
1271
+ parameter?: string | undefined;
1272
+ } | undefined;
1273
+ }, {
1274
+ status?: string | undefined;
1275
+ code?: string | undefined;
1276
+ id?: string | undefined;
1277
+ links?: {
1278
+ about?: string | undefined;
1279
+ } | undefined;
1280
+ meta?: Record<string, unknown> | undefined;
1281
+ title?: string | undefined;
1282
+ detail?: string | undefined;
1283
+ source?: {
1284
+ pointer?: string | undefined;
1285
+ parameter?: string | undefined;
1286
+ } | undefined;
1287
+ }>, "many">;
1288
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ errors: {
1291
+ status?: string | undefined;
1292
+ code?: string | undefined;
1293
+ id?: string | undefined;
1294
+ links?: {
1295
+ about?: string | undefined;
1296
+ } | undefined;
1297
+ meta?: Record<string, unknown> | undefined;
1298
+ title?: string | undefined;
1299
+ detail?: string | undefined;
1300
+ source?: {
1301
+ pointer?: string | undefined;
1302
+ parameter?: string | undefined;
1303
+ } | undefined;
1304
+ }[];
1305
+ meta?: Record<string, unknown> | undefined;
1306
+ }, {
1307
+ errors: {
1308
+ status?: string | undefined;
1309
+ code?: string | undefined;
1310
+ id?: string | undefined;
1311
+ links?: {
1312
+ about?: string | undefined;
1313
+ } | undefined;
1314
+ meta?: Record<string, unknown> | undefined;
1315
+ title?: string | undefined;
1316
+ detail?: string | undefined;
1317
+ source?: {
1318
+ pointer?: string | undefined;
1319
+ parameter?: string | undefined;
1320
+ } | undefined;
1321
+ }[];
1322
+ meta?: Record<string, unknown> | undefined;
1323
+ }>;
1324
+ };
1325
+ };
1326
+ };
1327
+ //# sourceMappingURL=cooperative.routes.d.ts.map