@deepintel-ltd/farmpro-contracts 1.16.0 → 1.16.1
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.
- package/dist/routes/live-monitor.routes.d.ts +29 -9
- package/dist/routes/live-monitor.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +169 -41
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.js +4 -4
- package/dist/routes/pest-disease-risk.routes.d.ts +22 -22
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/schemas/agents.schemas.d.ts +144 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +35 -0
- package/dist/schemas/live-monitor.schemas.d.ts +44 -12
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.d.ts +323 -40
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +30 -0
- package/dist/schemas/pest-disease-risk.schemas.d.ts +20 -20
- package/dist/schemas/team-payments.schemas.d.ts +30 -30
- package/package.json +1 -1
|
@@ -98,9 +98,9 @@ export declare const satelliteImageryResponseSchema: z.ZodObject<{
|
|
|
98
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
99
|
source: "sentinel-2" | "landsat-8" | "openweather-agro";
|
|
100
100
|
fieldId: string;
|
|
101
|
+
imageUrl: string;
|
|
101
102
|
cloudCoverage: number;
|
|
102
103
|
resolution: string;
|
|
103
|
-
imageUrl: string;
|
|
104
104
|
captureDate: string;
|
|
105
105
|
bounds: {
|
|
106
106
|
north: number;
|
|
@@ -116,9 +116,9 @@ export declare const satelliteImageryResponseSchema: z.ZodObject<{
|
|
|
116
116
|
}, {
|
|
117
117
|
source: "sentinel-2" | "landsat-8" | "openweather-agro";
|
|
118
118
|
fieldId: string;
|
|
119
|
+
imageUrl: string;
|
|
119
120
|
cloudCoverage: number;
|
|
120
121
|
resolution: string;
|
|
121
|
-
imageUrl: string;
|
|
122
122
|
captureDate: string;
|
|
123
123
|
bounds: {
|
|
124
124
|
north: number;
|
|
@@ -171,12 +171,12 @@ export declare const ndviHeatmapResponseSchema: z.ZodObject<{
|
|
|
171
171
|
label: z.ZodString;
|
|
172
172
|
}, "strip", z.ZodTypeAny, {
|
|
173
173
|
value: number;
|
|
174
|
-
color: string;
|
|
175
174
|
label: string;
|
|
175
|
+
color: string;
|
|
176
176
|
}, {
|
|
177
177
|
value: number;
|
|
178
|
-
color: string;
|
|
179
178
|
label: string;
|
|
179
|
+
color: string;
|
|
180
180
|
}>, "many">;
|
|
181
181
|
source: z.ZodString;
|
|
182
182
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -193,8 +193,8 @@ export declare const ndviHeatmapResponseSchema: z.ZodObject<{
|
|
|
193
193
|
};
|
|
194
194
|
colorScale: {
|
|
195
195
|
value: number;
|
|
196
|
-
color: string;
|
|
197
196
|
label: string;
|
|
197
|
+
color: string;
|
|
198
198
|
}[];
|
|
199
199
|
}, {
|
|
200
200
|
source: string;
|
|
@@ -210,8 +210,8 @@ export declare const ndviHeatmapResponseSchema: z.ZodObject<{
|
|
|
210
210
|
};
|
|
211
211
|
colorScale: {
|
|
212
212
|
value: number;
|
|
213
|
-
color: string;
|
|
214
213
|
label: string;
|
|
214
|
+
color: string;
|
|
215
215
|
}[];
|
|
216
216
|
}>;
|
|
217
217
|
export declare const soilMoistureHeatmapQuerySchema: z.ZodObject<{
|
|
@@ -273,12 +273,12 @@ export declare const soilMoistureHeatmapResponseSchema: z.ZodObject<{
|
|
|
273
273
|
label: z.ZodString;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
275
|
value: number;
|
|
276
|
-
color: string;
|
|
277
276
|
label: string;
|
|
277
|
+
color: string;
|
|
278
278
|
}, {
|
|
279
279
|
value: number;
|
|
280
|
-
color: string;
|
|
281
280
|
label: string;
|
|
281
|
+
color: string;
|
|
282
282
|
}>, "many">;
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
284
|
fieldId: string;
|
|
@@ -290,8 +290,8 @@ export declare const soilMoistureHeatmapResponseSchema: z.ZodObject<{
|
|
|
290
290
|
} | null;
|
|
291
291
|
colorScale: {
|
|
292
292
|
value: number;
|
|
293
|
-
color: string;
|
|
294
293
|
label: string;
|
|
294
|
+
color: string;
|
|
295
295
|
}[];
|
|
296
296
|
moistureImageUrl: string | null;
|
|
297
297
|
hasRasterData: boolean;
|
|
@@ -313,8 +313,8 @@ export declare const soilMoistureHeatmapResponseSchema: z.ZodObject<{
|
|
|
313
313
|
} | null;
|
|
314
314
|
colorScale: {
|
|
315
315
|
value: number;
|
|
316
|
-
color: string;
|
|
317
316
|
label: string;
|
|
317
|
+
color: string;
|
|
318
318
|
}[];
|
|
319
319
|
moistureImageUrl: string | null;
|
|
320
320
|
hasRasterData: boolean;
|
|
@@ -670,14 +670,14 @@ export declare const timelapseFrameSchema: z.ZodObject<{
|
|
|
670
670
|
frameIndex: z.ZodNumber;
|
|
671
671
|
}, "strip", z.ZodTypeAny, {
|
|
672
672
|
date: string;
|
|
673
|
-
cloudCoverage: number;
|
|
674
673
|
imageUrl: string;
|
|
674
|
+
cloudCoverage: number;
|
|
675
675
|
ndviMean: number | null;
|
|
676
676
|
frameIndex: number;
|
|
677
677
|
}, {
|
|
678
678
|
date: string;
|
|
679
|
-
cloudCoverage: number;
|
|
680
679
|
imageUrl: string;
|
|
680
|
+
cloudCoverage: number;
|
|
681
681
|
ndviMean: number | null;
|
|
682
682
|
frameIndex: number;
|
|
683
683
|
}>;
|
|
@@ -691,14 +691,14 @@ export declare const timelapseResponseSchema: z.ZodObject<{
|
|
|
691
691
|
frameIndex: z.ZodNumber;
|
|
692
692
|
}, "strip", z.ZodTypeAny, {
|
|
693
693
|
date: string;
|
|
694
|
-
cloudCoverage: number;
|
|
695
694
|
imageUrl: string;
|
|
695
|
+
cloudCoverage: number;
|
|
696
696
|
ndviMean: number | null;
|
|
697
697
|
frameIndex: number;
|
|
698
698
|
}, {
|
|
699
699
|
date: string;
|
|
700
|
-
cloudCoverage: number;
|
|
701
700
|
imageUrl: string;
|
|
701
|
+
cloudCoverage: number;
|
|
702
702
|
ndviMean: number | null;
|
|
703
703
|
frameIndex: number;
|
|
704
704
|
}>, "many">;
|
|
@@ -724,8 +724,8 @@ export declare const timelapseResponseSchema: z.ZodObject<{
|
|
|
724
724
|
};
|
|
725
725
|
frames: {
|
|
726
726
|
date: string;
|
|
727
|
-
cloudCoverage: number;
|
|
728
727
|
imageUrl: string;
|
|
728
|
+
cloudCoverage: number;
|
|
729
729
|
ndviMean: number | null;
|
|
730
730
|
frameIndex: number;
|
|
731
731
|
}[];
|
|
@@ -740,8 +740,8 @@ export declare const timelapseResponseSchema: z.ZodObject<{
|
|
|
740
740
|
};
|
|
741
741
|
frames: {
|
|
742
742
|
date: string;
|
|
743
|
-
cloudCoverage: number;
|
|
744
743
|
imageUrl: string;
|
|
744
|
+
cloudCoverage: number;
|
|
745
745
|
ndviMean: number | null;
|
|
746
746
|
frameIndex: number;
|
|
747
747
|
}[];
|
|
@@ -2477,12 +2477,13 @@ export declare const photoMapPinsResponseSchema: z.ZodObject<{
|
|
|
2477
2477
|
};
|
|
2478
2478
|
}[] | undefined;
|
|
2479
2479
|
}>;
|
|
2480
|
-
export declare const cameraTypeEnum: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
2480
|
+
export declare const cameraTypeEnum: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
2481
2481
|
export declare const cameraStatusEnum: z.ZodEnum<["ONLINE", "OFFLINE", "ERROR", "MAINTENANCE", "RECORDING"]>;
|
|
2482
|
+
export declare const cameraIngestModeEnum: z.ZodEnum<["ftp_push", "device_agent"]>;
|
|
2482
2483
|
export declare const cameraSchema: z.ZodObject<{
|
|
2483
2484
|
id: z.ZodString;
|
|
2484
2485
|
name: z.ZodString;
|
|
2485
|
-
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
2486
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
2486
2487
|
location: z.ZodObject<{
|
|
2487
2488
|
lat: z.ZodNumber;
|
|
2488
2489
|
lng: z.ZodNumber;
|
|
@@ -2499,8 +2500,12 @@ export declare const cameraSchema: z.ZodObject<{
|
|
|
2499
2500
|
direction: z.ZodNullable<z.ZodNumber>;
|
|
2500
2501
|
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
2501
2502
|
streamEnabled: z.ZodBoolean;
|
|
2503
|
+
ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
|
|
2504
|
+
expectedIntervalSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2505
|
+
lastIngestAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2506
|
+
ftpUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2502
2507
|
}, "strip", z.ZodTypeAny, {
|
|
2503
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2508
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2504
2509
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2505
2510
|
id: string;
|
|
2506
2511
|
name: string;
|
|
@@ -2513,8 +2518,12 @@ export declare const cameraSchema: z.ZodObject<{
|
|
|
2513
2518
|
lastFrameAt: string | null;
|
|
2514
2519
|
fieldOfView: number | null;
|
|
2515
2520
|
streamEnabled: boolean;
|
|
2521
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2522
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2523
|
+
lastIngestAt?: string | null | undefined;
|
|
2524
|
+
ftpUsername?: string | null | undefined;
|
|
2516
2525
|
}, {
|
|
2517
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2526
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2518
2527
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2519
2528
|
id: string;
|
|
2520
2529
|
name: string;
|
|
@@ -2527,13 +2536,17 @@ export declare const cameraSchema: z.ZodObject<{
|
|
|
2527
2536
|
lastFrameAt: string | null;
|
|
2528
2537
|
fieldOfView: number | null;
|
|
2529
2538
|
streamEnabled: boolean;
|
|
2539
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2540
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2541
|
+
lastIngestAt?: string | null | undefined;
|
|
2542
|
+
ftpUsername?: string | null | undefined;
|
|
2530
2543
|
}>;
|
|
2531
2544
|
export declare const camerasResponseSchema: z.ZodObject<{
|
|
2532
2545
|
fieldId: z.ZodString;
|
|
2533
2546
|
cameras: z.ZodArray<z.ZodObject<{
|
|
2534
2547
|
id: z.ZodString;
|
|
2535
2548
|
name: z.ZodString;
|
|
2536
|
-
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
2549
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
2537
2550
|
location: z.ZodObject<{
|
|
2538
2551
|
lat: z.ZodNumber;
|
|
2539
2552
|
lng: z.ZodNumber;
|
|
@@ -2550,8 +2563,12 @@ export declare const camerasResponseSchema: z.ZodObject<{
|
|
|
2550
2563
|
direction: z.ZodNullable<z.ZodNumber>;
|
|
2551
2564
|
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
2552
2565
|
streamEnabled: z.ZodBoolean;
|
|
2566
|
+
ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
|
|
2567
|
+
expectedIntervalSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2568
|
+
lastIngestAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2569
|
+
ftpUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2553
2570
|
}, "strip", z.ZodTypeAny, {
|
|
2554
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2571
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2555
2572
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2556
2573
|
id: string;
|
|
2557
2574
|
name: string;
|
|
@@ -2564,8 +2581,12 @@ export declare const camerasResponseSchema: z.ZodObject<{
|
|
|
2564
2581
|
lastFrameAt: string | null;
|
|
2565
2582
|
fieldOfView: number | null;
|
|
2566
2583
|
streamEnabled: boolean;
|
|
2584
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2585
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2586
|
+
lastIngestAt?: string | null | undefined;
|
|
2587
|
+
ftpUsername?: string | null | undefined;
|
|
2567
2588
|
}, {
|
|
2568
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2589
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2569
2590
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2570
2591
|
id: string;
|
|
2571
2592
|
name: string;
|
|
@@ -2578,12 +2599,16 @@ export declare const camerasResponseSchema: z.ZodObject<{
|
|
|
2578
2599
|
lastFrameAt: string | null;
|
|
2579
2600
|
fieldOfView: number | null;
|
|
2580
2601
|
streamEnabled: boolean;
|
|
2602
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2603
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2604
|
+
lastIngestAt?: string | null | undefined;
|
|
2605
|
+
ftpUsername?: string | null | undefined;
|
|
2581
2606
|
}>, "many">;
|
|
2582
2607
|
totalCameras: z.ZodNumber;
|
|
2583
2608
|
}, "strip", z.ZodTypeAny, {
|
|
2584
2609
|
fieldId: string;
|
|
2585
2610
|
cameras: {
|
|
2586
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2611
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2587
2612
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2588
2613
|
id: string;
|
|
2589
2614
|
name: string;
|
|
@@ -2596,12 +2621,16 @@ export declare const camerasResponseSchema: z.ZodObject<{
|
|
|
2596
2621
|
lastFrameAt: string | null;
|
|
2597
2622
|
fieldOfView: number | null;
|
|
2598
2623
|
streamEnabled: boolean;
|
|
2624
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2625
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2626
|
+
lastIngestAt?: string | null | undefined;
|
|
2627
|
+
ftpUsername?: string | null | undefined;
|
|
2599
2628
|
}[];
|
|
2600
2629
|
totalCameras: number;
|
|
2601
2630
|
}, {
|
|
2602
2631
|
fieldId: string;
|
|
2603
2632
|
cameras: {
|
|
2604
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2633
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2605
2634
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2606
2635
|
id: string;
|
|
2607
2636
|
name: string;
|
|
@@ -2614,12 +2643,16 @@ export declare const camerasResponseSchema: z.ZodObject<{
|
|
|
2614
2643
|
lastFrameAt: string | null;
|
|
2615
2644
|
fieldOfView: number | null;
|
|
2616
2645
|
streamEnabled: boolean;
|
|
2646
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2647
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2648
|
+
lastIngestAt?: string | null | undefined;
|
|
2649
|
+
ftpUsername?: string | null | undefined;
|
|
2617
2650
|
}[];
|
|
2618
2651
|
totalCameras: number;
|
|
2619
2652
|
}>;
|
|
2620
2653
|
export declare const createCameraSchema: z.ZodObject<{
|
|
2621
2654
|
name: z.ZodString;
|
|
2622
|
-
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
2655
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
2623
2656
|
latitude: z.ZodNumber;
|
|
2624
2657
|
longitude: z.ZodNumber;
|
|
2625
2658
|
streamUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -2628,8 +2661,10 @@ export declare const createCameraSchema: z.ZodObject<{
|
|
|
2628
2661
|
manufacturer: z.ZodOptional<z.ZodString>;
|
|
2629
2662
|
model: z.ZodOptional<z.ZodString>;
|
|
2630
2663
|
resolution: z.ZodOptional<z.ZodString>;
|
|
2664
|
+
ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
|
|
2665
|
+
expectedIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
2631
2666
|
}, "strip", z.ZodTypeAny, {
|
|
2632
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2667
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2633
2668
|
name: string;
|
|
2634
2669
|
latitude: number;
|
|
2635
2670
|
longitude: number;
|
|
@@ -2638,9 +2673,11 @@ export declare const createCameraSchema: z.ZodObject<{
|
|
|
2638
2673
|
resolution?: string | undefined;
|
|
2639
2674
|
manufacturer?: string | undefined;
|
|
2640
2675
|
fieldOfView?: number | undefined;
|
|
2676
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2677
|
+
expectedIntervalSeconds?: number | undefined;
|
|
2641
2678
|
streamUrl?: string | undefined;
|
|
2642
2679
|
}, {
|
|
2643
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
2680
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2644
2681
|
name: string;
|
|
2645
2682
|
latitude: number;
|
|
2646
2683
|
longitude: number;
|
|
@@ -2649,8 +2686,254 @@ export declare const createCameraSchema: z.ZodObject<{
|
|
|
2649
2686
|
resolution?: string | undefined;
|
|
2650
2687
|
manufacturer?: string | undefined;
|
|
2651
2688
|
fieldOfView?: number | undefined;
|
|
2689
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2690
|
+
expectedIntervalSeconds?: number | undefined;
|
|
2652
2691
|
streamUrl?: string | undefined;
|
|
2653
2692
|
}>;
|
|
2693
|
+
export declare const cameraFtpProvisioningSchema: z.ZodObject<{
|
|
2694
|
+
host: z.ZodString;
|
|
2695
|
+
port: z.ZodNumber;
|
|
2696
|
+
username: z.ZodString;
|
|
2697
|
+
password: z.ZodString;
|
|
2698
|
+
path: z.ZodString;
|
|
2699
|
+
recommendedIntervalSeconds: z.ZodNumber;
|
|
2700
|
+
checklist: z.ZodArray<z.ZodString, "many">;
|
|
2701
|
+
}, "strip", z.ZodTypeAny, {
|
|
2702
|
+
path: string;
|
|
2703
|
+
password: string;
|
|
2704
|
+
host: string;
|
|
2705
|
+
port: number;
|
|
2706
|
+
username: string;
|
|
2707
|
+
recommendedIntervalSeconds: number;
|
|
2708
|
+
checklist: string[];
|
|
2709
|
+
}, {
|
|
2710
|
+
path: string;
|
|
2711
|
+
password: string;
|
|
2712
|
+
host: string;
|
|
2713
|
+
port: number;
|
|
2714
|
+
username: string;
|
|
2715
|
+
recommendedIntervalSeconds: number;
|
|
2716
|
+
checklist: string[];
|
|
2717
|
+
}>;
|
|
2718
|
+
export declare const createCameraResponseSchema: z.ZodObject<{
|
|
2719
|
+
id: z.ZodString;
|
|
2720
|
+
name: z.ZodString;
|
|
2721
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
2722
|
+
location: z.ZodObject<{
|
|
2723
|
+
lat: z.ZodNumber;
|
|
2724
|
+
lng: z.ZodNumber;
|
|
2725
|
+
}, "strip", z.ZodTypeAny, {
|
|
2726
|
+
lat: number;
|
|
2727
|
+
lng: number;
|
|
2728
|
+
}, {
|
|
2729
|
+
lat: number;
|
|
2730
|
+
lng: number;
|
|
2731
|
+
}>;
|
|
2732
|
+
status: z.ZodEnum<["ONLINE", "OFFLINE", "ERROR", "MAINTENANCE", "RECORDING"]>;
|
|
2733
|
+
lastFrameUrl: z.ZodNullable<z.ZodString>;
|
|
2734
|
+
lastFrameAt: z.ZodNullable<z.ZodString>;
|
|
2735
|
+
direction: z.ZodNullable<z.ZodNumber>;
|
|
2736
|
+
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
2737
|
+
streamEnabled: z.ZodBoolean;
|
|
2738
|
+
ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
|
|
2739
|
+
expectedIntervalSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2740
|
+
lastIngestAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2741
|
+
ftpUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2742
|
+
} & {
|
|
2743
|
+
ftp: z.ZodOptional<z.ZodObject<{
|
|
2744
|
+
host: z.ZodString;
|
|
2745
|
+
port: z.ZodNumber;
|
|
2746
|
+
username: z.ZodString;
|
|
2747
|
+
password: z.ZodString;
|
|
2748
|
+
path: z.ZodString;
|
|
2749
|
+
recommendedIntervalSeconds: z.ZodNumber;
|
|
2750
|
+
checklist: z.ZodArray<z.ZodString, "many">;
|
|
2751
|
+
}, "strip", z.ZodTypeAny, {
|
|
2752
|
+
path: string;
|
|
2753
|
+
password: string;
|
|
2754
|
+
host: string;
|
|
2755
|
+
port: number;
|
|
2756
|
+
username: string;
|
|
2757
|
+
recommendedIntervalSeconds: number;
|
|
2758
|
+
checklist: string[];
|
|
2759
|
+
}, {
|
|
2760
|
+
path: string;
|
|
2761
|
+
password: string;
|
|
2762
|
+
host: string;
|
|
2763
|
+
port: number;
|
|
2764
|
+
username: string;
|
|
2765
|
+
recommendedIntervalSeconds: number;
|
|
2766
|
+
checklist: string[];
|
|
2767
|
+
}>>;
|
|
2768
|
+
}, "strip", z.ZodTypeAny, {
|
|
2769
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2770
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2771
|
+
id: string;
|
|
2772
|
+
name: string;
|
|
2773
|
+
location: {
|
|
2774
|
+
lat: number;
|
|
2775
|
+
lng: number;
|
|
2776
|
+
};
|
|
2777
|
+
direction: number | null;
|
|
2778
|
+
lastFrameUrl: string | null;
|
|
2779
|
+
lastFrameAt: string | null;
|
|
2780
|
+
fieldOfView: number | null;
|
|
2781
|
+
streamEnabled: boolean;
|
|
2782
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2783
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2784
|
+
lastIngestAt?: string | null | undefined;
|
|
2785
|
+
ftpUsername?: string | null | undefined;
|
|
2786
|
+
ftp?: {
|
|
2787
|
+
path: string;
|
|
2788
|
+
password: string;
|
|
2789
|
+
host: string;
|
|
2790
|
+
port: number;
|
|
2791
|
+
username: string;
|
|
2792
|
+
recommendedIntervalSeconds: number;
|
|
2793
|
+
checklist: string[];
|
|
2794
|
+
} | undefined;
|
|
2795
|
+
}, {
|
|
2796
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2797
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2798
|
+
id: string;
|
|
2799
|
+
name: string;
|
|
2800
|
+
location: {
|
|
2801
|
+
lat: number;
|
|
2802
|
+
lng: number;
|
|
2803
|
+
};
|
|
2804
|
+
direction: number | null;
|
|
2805
|
+
lastFrameUrl: string | null;
|
|
2806
|
+
lastFrameAt: string | null;
|
|
2807
|
+
fieldOfView: number | null;
|
|
2808
|
+
streamEnabled: boolean;
|
|
2809
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2810
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2811
|
+
lastIngestAt?: string | null | undefined;
|
|
2812
|
+
ftpUsername?: string | null | undefined;
|
|
2813
|
+
ftp?: {
|
|
2814
|
+
path: string;
|
|
2815
|
+
password: string;
|
|
2816
|
+
host: string;
|
|
2817
|
+
port: number;
|
|
2818
|
+
username: string;
|
|
2819
|
+
recommendedIntervalSeconds: number;
|
|
2820
|
+
checklist: string[];
|
|
2821
|
+
} | undefined;
|
|
2822
|
+
}>;
|
|
2823
|
+
export declare const cameraSnapshotSummarySchema: z.ZodObject<{
|
|
2824
|
+
id: z.ZodString;
|
|
2825
|
+
imageUrl: z.ZodString;
|
|
2826
|
+
capturedAt: z.ZodString;
|
|
2827
|
+
triggerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2828
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
2829
|
+
}, "strip", z.ZodTypeAny, {
|
|
2830
|
+
id: string;
|
|
2831
|
+
imageUrl: string;
|
|
2832
|
+
capturedAt: string;
|
|
2833
|
+
metadata?: unknown;
|
|
2834
|
+
triggerType?: string | null | undefined;
|
|
2835
|
+
}, {
|
|
2836
|
+
id: string;
|
|
2837
|
+
imageUrl: string;
|
|
2838
|
+
capturedAt: string;
|
|
2839
|
+
metadata?: unknown;
|
|
2840
|
+
triggerType?: string | null | undefined;
|
|
2841
|
+
}>;
|
|
2842
|
+
export declare const cameraDetailsResponseSchema: z.ZodObject<{
|
|
2843
|
+
id: z.ZodString;
|
|
2844
|
+
name: z.ZodString;
|
|
2845
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
2846
|
+
location: z.ZodObject<{
|
|
2847
|
+
lat: z.ZodNumber;
|
|
2848
|
+
lng: z.ZodNumber;
|
|
2849
|
+
}, "strip", z.ZodTypeAny, {
|
|
2850
|
+
lat: number;
|
|
2851
|
+
lng: number;
|
|
2852
|
+
}, {
|
|
2853
|
+
lat: number;
|
|
2854
|
+
lng: number;
|
|
2855
|
+
}>;
|
|
2856
|
+
status: z.ZodEnum<["ONLINE", "OFFLINE", "ERROR", "MAINTENANCE", "RECORDING"]>;
|
|
2857
|
+
lastFrameUrl: z.ZodNullable<z.ZodString>;
|
|
2858
|
+
lastFrameAt: z.ZodNullable<z.ZodString>;
|
|
2859
|
+
direction: z.ZodNullable<z.ZodNumber>;
|
|
2860
|
+
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
2861
|
+
streamEnabled: z.ZodBoolean;
|
|
2862
|
+
ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
|
|
2863
|
+
expectedIntervalSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2864
|
+
lastIngestAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2865
|
+
ftpUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2866
|
+
} & {
|
|
2867
|
+
snapshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2868
|
+
id: z.ZodString;
|
|
2869
|
+
imageUrl: z.ZodString;
|
|
2870
|
+
capturedAt: z.ZodString;
|
|
2871
|
+
triggerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2872
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
2873
|
+
}, "strip", z.ZodTypeAny, {
|
|
2874
|
+
id: string;
|
|
2875
|
+
imageUrl: string;
|
|
2876
|
+
capturedAt: string;
|
|
2877
|
+
metadata?: unknown;
|
|
2878
|
+
triggerType?: string | null | undefined;
|
|
2879
|
+
}, {
|
|
2880
|
+
id: string;
|
|
2881
|
+
imageUrl: string;
|
|
2882
|
+
capturedAt: string;
|
|
2883
|
+
metadata?: unknown;
|
|
2884
|
+
triggerType?: string | null | undefined;
|
|
2885
|
+
}>, "many">>;
|
|
2886
|
+
}, "strip", z.ZodTypeAny, {
|
|
2887
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2888
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2889
|
+
id: string;
|
|
2890
|
+
name: string;
|
|
2891
|
+
location: {
|
|
2892
|
+
lat: number;
|
|
2893
|
+
lng: number;
|
|
2894
|
+
};
|
|
2895
|
+
direction: number | null;
|
|
2896
|
+
lastFrameUrl: string | null;
|
|
2897
|
+
lastFrameAt: string | null;
|
|
2898
|
+
fieldOfView: number | null;
|
|
2899
|
+
streamEnabled: boolean;
|
|
2900
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2901
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2902
|
+
lastIngestAt?: string | null | undefined;
|
|
2903
|
+
ftpUsername?: string | null | undefined;
|
|
2904
|
+
snapshots?: {
|
|
2905
|
+
id: string;
|
|
2906
|
+
imageUrl: string;
|
|
2907
|
+
capturedAt: string;
|
|
2908
|
+
metadata?: unknown;
|
|
2909
|
+
triggerType?: string | null | undefined;
|
|
2910
|
+
}[] | undefined;
|
|
2911
|
+
}, {
|
|
2912
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
2913
|
+
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
2914
|
+
id: string;
|
|
2915
|
+
name: string;
|
|
2916
|
+
location: {
|
|
2917
|
+
lat: number;
|
|
2918
|
+
lng: number;
|
|
2919
|
+
};
|
|
2920
|
+
direction: number | null;
|
|
2921
|
+
lastFrameUrl: string | null;
|
|
2922
|
+
lastFrameAt: string | null;
|
|
2923
|
+
fieldOfView: number | null;
|
|
2924
|
+
streamEnabled: boolean;
|
|
2925
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
2926
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
2927
|
+
lastIngestAt?: string | null | undefined;
|
|
2928
|
+
ftpUsername?: string | null | undefined;
|
|
2929
|
+
snapshots?: {
|
|
2930
|
+
id: string;
|
|
2931
|
+
imageUrl: string;
|
|
2932
|
+
capturedAt: string;
|
|
2933
|
+
metadata?: unknown;
|
|
2934
|
+
triggerType?: string | null | undefined;
|
|
2935
|
+
}[] | undefined;
|
|
2936
|
+
}>;
|
|
2654
2937
|
export declare const terrainQuerySchema: z.ZodObject<{
|
|
2655
2938
|
resolution: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
2656
2939
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2870,12 +3153,12 @@ export declare const elevationHeatmapResponseSchema: z.ZodObject<{
|
|
|
2870
3153
|
label: z.ZodString;
|
|
2871
3154
|
}, "strip", z.ZodTypeAny, {
|
|
2872
3155
|
value: number;
|
|
2873
|
-
color: string;
|
|
2874
3156
|
label: string;
|
|
3157
|
+
color: string;
|
|
2875
3158
|
}, {
|
|
2876
3159
|
value: number;
|
|
2877
|
-
color: string;
|
|
2878
3160
|
label: string;
|
|
3161
|
+
color: string;
|
|
2879
3162
|
}>, "many">;
|
|
2880
3163
|
dataSource: z.ZodString;
|
|
2881
3164
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2896,8 +3179,8 @@ export declare const elevationHeatmapResponseSchema: z.ZodObject<{
|
|
|
2896
3179
|
};
|
|
2897
3180
|
colorScale: {
|
|
2898
3181
|
value: number;
|
|
2899
|
-
color: string;
|
|
2900
3182
|
label: string;
|
|
3183
|
+
color: string;
|
|
2901
3184
|
}[];
|
|
2902
3185
|
dataSource: string;
|
|
2903
3186
|
}, {
|
|
@@ -2918,8 +3201,8 @@ export declare const elevationHeatmapResponseSchema: z.ZodObject<{
|
|
|
2918
3201
|
};
|
|
2919
3202
|
colorScale: {
|
|
2920
3203
|
value: number;
|
|
2921
|
-
color: string;
|
|
2922
3204
|
label: string;
|
|
3205
|
+
color: string;
|
|
2923
3206
|
}[];
|
|
2924
3207
|
dataSource: string;
|
|
2925
3208
|
}>;
|
|
@@ -3256,12 +3539,12 @@ export declare const slopeResponseSchema: z.ZodObject<{
|
|
|
3256
3539
|
label: z.ZodString;
|
|
3257
3540
|
}, "strip", z.ZodTypeAny, {
|
|
3258
3541
|
value: number;
|
|
3259
|
-
color: string;
|
|
3260
3542
|
label: string;
|
|
3543
|
+
color: string;
|
|
3261
3544
|
}, {
|
|
3262
3545
|
value: number;
|
|
3263
|
-
color: string;
|
|
3264
3546
|
label: string;
|
|
3547
|
+
color: string;
|
|
3265
3548
|
}>, "many">;
|
|
3266
3549
|
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3267
3550
|
slopeClass: z.ZodString;
|
|
@@ -3279,6 +3562,7 @@ export declare const slopeResponseSchema: z.ZodObject<{
|
|
|
3279
3562
|
}, "strip", z.ZodTypeAny, {
|
|
3280
3563
|
unit: "percent" | "degrees";
|
|
3281
3564
|
fieldId: string;
|
|
3565
|
+
imageUrl: string | null;
|
|
3282
3566
|
classification: {
|
|
3283
3567
|
description: string;
|
|
3284
3568
|
color: string;
|
|
@@ -3288,7 +3572,6 @@ export declare const slopeResponseSchema: z.ZodObject<{
|
|
|
3288
3572
|
areaHectares: number;
|
|
3289
3573
|
areaPercent: number;
|
|
3290
3574
|
}[];
|
|
3291
|
-
imageUrl: string | null;
|
|
3292
3575
|
bounds: {
|
|
3293
3576
|
north: number;
|
|
3294
3577
|
south: number;
|
|
@@ -3303,8 +3586,8 @@ export declare const slopeResponseSchema: z.ZodObject<{
|
|
|
3303
3586
|
};
|
|
3304
3587
|
colorScale: {
|
|
3305
3588
|
value: number;
|
|
3306
|
-
color: string;
|
|
3307
3589
|
label: string;
|
|
3590
|
+
color: string;
|
|
3308
3591
|
}[];
|
|
3309
3592
|
recommendations?: {
|
|
3310
3593
|
recommendation: string;
|
|
@@ -3314,6 +3597,7 @@ export declare const slopeResponseSchema: z.ZodObject<{
|
|
|
3314
3597
|
}, {
|
|
3315
3598
|
unit: "percent" | "degrees";
|
|
3316
3599
|
fieldId: string;
|
|
3600
|
+
imageUrl: string | null;
|
|
3317
3601
|
classification: {
|
|
3318
3602
|
description: string;
|
|
3319
3603
|
color: string;
|
|
@@ -3323,7 +3607,6 @@ export declare const slopeResponseSchema: z.ZodObject<{
|
|
|
3323
3607
|
areaHectares: number;
|
|
3324
3608
|
areaPercent: number;
|
|
3325
3609
|
}[];
|
|
3326
|
-
imageUrl: string | null;
|
|
3327
3610
|
bounds: {
|
|
3328
3611
|
north: number;
|
|
3329
3612
|
south: number;
|
|
@@ -3338,8 +3621,8 @@ export declare const slopeResponseSchema: z.ZodObject<{
|
|
|
3338
3621
|
};
|
|
3339
3622
|
colorScale: {
|
|
3340
3623
|
value: number;
|
|
3341
|
-
color: string;
|
|
3342
3624
|
label: string;
|
|
3625
|
+
color: string;
|
|
3343
3626
|
}[];
|
|
3344
3627
|
recommendations?: {
|
|
3345
3628
|
recommendation: string;
|
|
@@ -3464,6 +3747,7 @@ export declare const aspectResponseSchema: z.ZodObject<{
|
|
|
3464
3747
|
}>>;
|
|
3465
3748
|
}, "strip", z.ZodTypeAny, {
|
|
3466
3749
|
fieldId: string;
|
|
3750
|
+
imageUrl: string | null;
|
|
3467
3751
|
classification: {
|
|
3468
3752
|
direction: "flat" | "N" | "S" | "NE" | "E" | "SE" | "SW" | "W" | "NW";
|
|
3469
3753
|
color: string;
|
|
@@ -3473,7 +3757,6 @@ export declare const aspectResponseSchema: z.ZodObject<{
|
|
|
3473
3757
|
maxDegrees: number;
|
|
3474
3758
|
sunExposure: "low" | "medium" | "high";
|
|
3475
3759
|
}[];
|
|
3476
|
-
imageUrl: string | null;
|
|
3477
3760
|
bounds: {
|
|
3478
3761
|
north: number;
|
|
3479
3762
|
south: number;
|
|
@@ -3497,6 +3780,7 @@ export declare const aspectResponseSchema: z.ZodObject<{
|
|
|
3497
3780
|
} | undefined;
|
|
3498
3781
|
}, {
|
|
3499
3782
|
fieldId: string;
|
|
3783
|
+
imageUrl: string | null;
|
|
3500
3784
|
classification: {
|
|
3501
3785
|
direction: "flat" | "N" | "S" | "NE" | "E" | "SE" | "SW" | "W" | "NW";
|
|
3502
3786
|
color: string;
|
|
@@ -3506,7 +3790,6 @@ export declare const aspectResponseSchema: z.ZodObject<{
|
|
|
3506
3790
|
maxDegrees: number;
|
|
3507
3791
|
sunExposure: "low" | "medium" | "high";
|
|
3508
3792
|
}[];
|
|
3509
|
-
imageUrl: string | null;
|
|
3510
3793
|
bounds: {
|
|
3511
3794
|
north: number;
|
|
3512
3795
|
south: number;
|