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