@deepintel-ltd/farmpro-contracts 1.16.9 → 1.16.11

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 (34) hide show
  1. package/dist/routes/admin.routes.d.ts +1036 -0
  2. package/dist/routes/admin.routes.d.ts.map +1 -1
  3. package/dist/routes/admin.routes.js +29 -1
  4. package/dist/routes/agent-workflows.routes.d.ts +246 -246
  5. package/dist/routes/agents.routes.d.ts +16 -16
  6. package/dist/routes/fertigation.routes.d.ts +80 -80
  7. package/dist/routes/field-monitoring.routes.d.ts +8 -8
  8. package/dist/routes/field-observations.routes.d.ts +28 -28
  9. package/dist/routes/health.routes.d.ts +66 -0
  10. package/dist/routes/health.routes.d.ts.map +1 -1
  11. package/dist/routes/livestock-groups.routes.d.ts +8 -8
  12. package/dist/routes/livestock.routes.d.ts +50 -50
  13. package/dist/routes/payments.routes.d.ts +20 -20
  14. package/dist/routes/pest-disease-risk.routes.d.ts +4 -4
  15. package/dist/routes/soil-tests.routes.d.ts +40 -40
  16. package/dist/schemas/admin.schemas.d.ts +267 -0
  17. package/dist/schemas/admin.schemas.d.ts.map +1 -1
  18. package/dist/schemas/admin.schemas.js +38 -0
  19. package/dist/schemas/agent-workflows.schemas.d.ts +206 -206
  20. package/dist/schemas/agents.schemas.d.ts +16 -16
  21. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  22. package/dist/schemas/field-monitoring.schemas.d.ts +8 -8
  23. package/dist/schemas/field-observations.schemas.d.ts +20 -20
  24. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  25. package/dist/schemas/field-observations.schemas.js +3 -2
  26. package/dist/schemas/health.schemas.d.ts +33 -0
  27. package/dist/schemas/health.schemas.d.ts.map +1 -1
  28. package/dist/schemas/health.schemas.js +1 -0
  29. package/dist/schemas/livestock.schemas.d.ts +50 -50
  30. package/dist/schemas/monitoring-visualization.schemas.js +4 -4
  31. package/dist/schemas/payments.schemas.d.ts +20 -20
  32. package/dist/schemas/pest-disease-risk.schemas.d.ts +2 -2
  33. package/dist/schemas/soil-tests.schemas.d.ts +42 -42
  34. package/package.json +1 -1
@@ -267,7 +267,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
267
267
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
268
268
  userNotes: string | null;
269
269
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
270
- analysisStatus: "pending" | "completed" | "failed" | "processing";
270
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
271
271
  analysisCompletedAt: Date | null;
272
272
  identifiedCrop: string | null;
273
273
  identifiedCropConfidence: number | null;
@@ -350,7 +350,7 @@ export declare const observationAttributesSchema: z.ZodObject<{
350
350
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
351
351
  userNotes: string | null;
352
352
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
353
- analysisStatus: "pending" | "completed" | "failed" | "processing";
353
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
354
354
  analysisCompletedAt: Date | null;
355
355
  identifiedCrop: string | null;
356
356
  identifiedCropConfidence: number | null;
@@ -729,7 +729,7 @@ export declare const observationResourceSchema: z.ZodObject<{
729
729
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
730
730
  userNotes: string | null;
731
731
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
732
- analysisStatus: "pending" | "completed" | "failed" | "processing";
732
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
733
733
  analysisCompletedAt: Date | null;
734
734
  identifiedCrop: string | null;
735
735
  identifiedCropConfidence: number | null;
@@ -812,7 +812,7 @@ export declare const observationResourceSchema: z.ZodObject<{
812
812
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
813
813
  userNotes: string | null;
814
814
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
815
- analysisStatus: "pending" | "completed" | "failed" | "processing";
815
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
816
816
  analysisCompletedAt: Date | null;
817
817
  identifiedCrop: string | null;
818
818
  identifiedCropConfidence: number | null;
@@ -902,7 +902,7 @@ export declare const observationResourceSchema: z.ZodObject<{
902
902
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
903
903
  userNotes: string | null;
904
904
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
905
- analysisStatus: "pending" | "completed" | "failed" | "processing";
905
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
906
906
  analysisCompletedAt: Date | null;
907
907
  identifiedCrop: string | null;
908
908
  identifiedCropConfidence: number | null;
@@ -992,7 +992,7 @@ export declare const observationResourceSchema: z.ZodObject<{
992
992
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
993
993
  userNotes: string | null;
994
994
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
995
- analysisStatus: "pending" | "completed" | "failed" | "processing";
995
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
996
996
  analysisCompletedAt: Date | null;
997
997
  identifiedCrop: string | null;
998
998
  identifiedCropConfidence: number | null;
@@ -1494,7 +1494,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1494
1494
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1495
1495
  userNotes: string | null;
1496
1496
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1497
- analysisStatus: "pending" | "completed" | "failed" | "processing";
1497
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
1498
1498
  analysisCompletedAt: Date | null;
1499
1499
  identifiedCrop: string | null;
1500
1500
  identifiedCropConfidence: number | null;
@@ -1577,7 +1577,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1577
1577
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1578
1578
  userNotes: string | null;
1579
1579
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1580
- analysisStatus: "pending" | "completed" | "failed" | "processing";
1580
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
1581
1581
  analysisCompletedAt: Date | null;
1582
1582
  identifiedCrop: string | null;
1583
1583
  identifiedCropConfidence: number | null;
@@ -1667,7 +1667,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1667
1667
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1668
1668
  userNotes: string | null;
1669
1669
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1670
- analysisStatus: "pending" | "completed" | "failed" | "processing";
1670
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
1671
1671
  analysisCompletedAt: Date | null;
1672
1672
  identifiedCrop: string | null;
1673
1673
  identifiedCropConfidence: number | null;
@@ -1757,7 +1757,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1757
1757
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1758
1758
  userNotes: string | null;
1759
1759
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1760
- analysisStatus: "pending" | "completed" | "failed" | "processing";
1760
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
1761
1761
  analysisCompletedAt: Date | null;
1762
1762
  identifiedCrop: string | null;
1763
1763
  identifiedCropConfidence: number | null;
@@ -1873,7 +1873,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1873
1873
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1874
1874
  userNotes: string | null;
1875
1875
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1876
- analysisStatus: "pending" | "completed" | "failed" | "processing";
1876
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
1877
1877
  analysisCompletedAt: Date | null;
1878
1878
  identifiedCrop: string | null;
1879
1879
  identifiedCropConfidence: number | null;
@@ -1975,7 +1975,7 @@ export declare const observationResponseSchema: z.ZodObject<{
1975
1975
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1976
1976
  userNotes: string | null;
1977
1977
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1978
- analysisStatus: "pending" | "completed" | "failed" | "processing";
1978
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
1979
1979
  analysisCompletedAt: Date | null;
1980
1980
  identifiedCrop: string | null;
1981
1981
  identifiedCropConfidence: number | null;
@@ -2302,7 +2302,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2302
2302
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2303
2303
  userNotes: string | null;
2304
2304
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2305
- analysisStatus: "pending" | "completed" | "failed" | "processing";
2305
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
2306
2306
  analysisCompletedAt: Date | null;
2307
2307
  identifiedCrop: string | null;
2308
2308
  identifiedCropConfidence: number | null;
@@ -2385,7 +2385,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2385
2385
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2386
2386
  userNotes: string | null;
2387
2387
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2388
- analysisStatus: "pending" | "completed" | "failed" | "processing";
2388
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
2389
2389
  analysisCompletedAt: Date | null;
2390
2390
  identifiedCrop: string | null;
2391
2391
  identifiedCropConfidence: number | null;
@@ -2475,7 +2475,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2475
2475
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2476
2476
  userNotes: string | null;
2477
2477
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2478
- analysisStatus: "pending" | "completed" | "failed" | "processing";
2478
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
2479
2479
  analysisCompletedAt: Date | null;
2480
2480
  identifiedCrop: string | null;
2481
2481
  identifiedCropConfidence: number | null;
@@ -2565,7 +2565,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2565
2565
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2566
2566
  userNotes: string | null;
2567
2567
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2568
- analysisStatus: "pending" | "completed" | "failed" | "processing";
2568
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
2569
2569
  analysisCompletedAt: Date | null;
2570
2570
  identifiedCrop: string | null;
2571
2571
  identifiedCropConfidence: number | null;
@@ -2681,7 +2681,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2681
2681
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2682
2682
  userNotes: string | null;
2683
2683
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2684
- analysisStatus: "pending" | "completed" | "failed" | "processing";
2684
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
2685
2685
  analysisCompletedAt: Date | null;
2686
2686
  identifiedCrop: string | null;
2687
2687
  identifiedCropConfidence: number | null;
@@ -2783,7 +2783,7 @@ export declare const observationListResponseSchema: z.ZodObject<{
2783
2783
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2784
2784
  userNotes: string | null;
2785
2785
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2786
- analysisStatus: "pending" | "completed" | "failed" | "processing";
2786
+ analysisStatus: "pending" | "failed" | "processing" | "completed";
2787
2787
  analysisCompletedAt: Date | null;
2788
2788
  identifiedCrop: string | null;
2789
2789
  identifiedCropConfidence: number | null;
@@ -2857,7 +2857,7 @@ export declare const observationListQuerySchema: z.ZodObject<{
2857
2857
  'page[size]'?: number | undefined;
2858
2858
  'filter[startDate]'?: string | undefined;
2859
2859
  'filter[endDate]'?: string | undefined;
2860
- 'filter[status]'?: "pending" | "completed" | "failed" | "processing" | undefined;
2860
+ 'filter[status]'?: "pending" | "failed" | "processing" | "completed" | undefined;
2861
2861
  'filter[crop]'?: string | undefined;
2862
2862
  'filter[fieldId]'?: string | undefined;
2863
2863
  'filter[observationType]'?: string | undefined;
@@ -2867,7 +2867,7 @@ export declare const observationListQuerySchema: z.ZodObject<{
2867
2867
  'page[size]'?: number | undefined;
2868
2868
  'filter[startDate]'?: string | undefined;
2869
2869
  'filter[endDate]'?: string | undefined;
2870
- 'filter[status]'?: "pending" | "completed" | "failed" | "processing" | undefined;
2870
+ 'filter[status]'?: "pending" | "failed" | "processing" | "completed" | undefined;
2871
2871
  'filter[crop]'?: string | undefined;
2872
2872
  'filter[fieldId]'?: string | undefined;
2873
2873
  'filter[observationType]'?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"field-observations.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/field-observations.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -10,8 +10,9 @@ export const observationAttributesSchema = z
10
10
  fieldId: z.string().uuid().nullable(),
11
11
  farmId: z.string().uuid(),
12
12
  uploadedBy: z.string().uuid(),
13
- photoUrl: z.string().url(),
14
- photoThumbnail: z.string().url().nullable(),
13
+ // Relative /files/view/... paths (same as documents) or absolute legacy/signed URLs
14
+ photoUrl: z.string().min(1),
15
+ photoThumbnail: z.string().min(1).nullable(),
15
16
  location: z
16
17
  .object({
17
18
  lat: z.number().min(-90).max(90),
@@ -49,6 +49,19 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
49
49
  message?: string | undefined;
50
50
  responseTime?: number | undefined;
51
51
  }>;
52
+ queue: z.ZodOptional<z.ZodObject<{
53
+ status: z.ZodEnum<["healthy", "unhealthy", "degraded"]>;
54
+ message: z.ZodOptional<z.ZodString>;
55
+ responseTime: z.ZodOptional<z.ZodNumber>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ status: "healthy" | "unhealthy" | "degraded";
58
+ message?: string | undefined;
59
+ responseTime?: number | undefined;
60
+ }, {
61
+ status: "healthy" | "unhealthy" | "degraded";
62
+ message?: string | undefined;
63
+ responseTime?: number | undefined;
64
+ }>>;
52
65
  storage: z.ZodOptional<z.ZodObject<{
53
66
  status: z.ZodEnum<["healthy", "unhealthy", "degraded"]>;
54
67
  message: z.ZodOptional<z.ZodString>;
@@ -86,6 +99,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
86
99
  message?: string | undefined;
87
100
  responseTime?: number | undefined;
88
101
  };
102
+ queue?: {
103
+ status: "healthy" | "unhealthy" | "degraded";
104
+ message?: string | undefined;
105
+ responseTime?: number | undefined;
106
+ } | undefined;
89
107
  storage?: {
90
108
  status: "healthy" | "unhealthy" | "degraded";
91
109
  message?: string | undefined;
@@ -107,6 +125,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
107
125
  message?: string | undefined;
108
126
  responseTime?: number | undefined;
109
127
  };
128
+ queue?: {
129
+ status: "healthy" | "unhealthy" | "degraded";
130
+ message?: string | undefined;
131
+ responseTime?: number | undefined;
132
+ } | undefined;
110
133
  storage?: {
111
134
  status: "healthy" | "unhealthy" | "degraded";
112
135
  message?: string | undefined;
@@ -133,6 +156,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
133
156
  message?: string | undefined;
134
157
  responseTime?: number | undefined;
135
158
  };
159
+ queue?: {
160
+ status: "healthy" | "unhealthy" | "degraded";
161
+ message?: string | undefined;
162
+ responseTime?: number | undefined;
163
+ } | undefined;
136
164
  storage?: {
137
165
  status: "healthy" | "unhealthy" | "degraded";
138
166
  message?: string | undefined;
@@ -159,6 +187,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
159
187
  message?: string | undefined;
160
188
  responseTime?: number | undefined;
161
189
  };
190
+ queue?: {
191
+ status: "healthy" | "unhealthy" | "degraded";
192
+ message?: string | undefined;
193
+ responseTime?: number | undefined;
194
+ } | undefined;
162
195
  storage?: {
163
196
  status: "healthy" | "unhealthy" | "degraded";
164
197
  message?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"health.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/health.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"health.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/health.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -17,6 +17,7 @@ export const healthCheckResponseSchema = z.object({
17
17
  services: z.object({
18
18
  database: serviceHealthSchema,
19
19
  redis: serviceHealthSchema,
20
+ queue: serviceHealthSchema.optional(),
20
21
  storage: serviceHealthSchema.optional(),
21
22
  timescale: serviceHealthSchema.optional(),
22
23
  }),