@evercam/api 1.0.0-39e7bbc90 → 1.0.0-3b5285e06
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/api/api/adminApi.d.ts +17 -2
- package/dist/api/api/aiApi.d.ts +53 -49
- package/dist/api/api/evercamApi.d.ts +35 -1
- package/dist/api/api/evercamLabsApi.d.ts +1 -2
- package/dist/api/api/ingestApi.d.ts +2 -0
- package/dist/api/types/analytics.d.ts +54 -41
- package/dist/api/types/anpr.d.ts +11 -0
- package/dist/api/types/axios.d.ts +2 -1
- package/dist/api/types/camera.d.ts +6 -2
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +10 -5
- package/dist/api/types/detections.d.ts +4 -1
- package/dist/api/types/gateReport.d.ts +16 -24
- package/dist/api/types/index.d.ts +4 -1
- package/dist/api/types/ingest.d.ts +3 -1
- package/dist/api/types/media.d.ts +1 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/project.d.ts +1 -0
- package/dist/api/types/recording.d.ts +1 -2
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/siteAnalytics.d.ts +4 -14
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/index.js +837 -724
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprDirection, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, Timestamp } from "@evercam/api/types";
|
|
1
|
+
import { AnprDirection, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, RoiShapeType, Timestamp } from "@evercam/api/types";
|
|
2
2
|
export declare enum GateReportDetectionType {
|
|
3
3
|
Auto = "auto",
|
|
4
4
|
Manual = "manual",
|
|
@@ -263,14 +263,9 @@ type X1 = number;
|
|
|
263
263
|
type Y1 = number;
|
|
264
264
|
type X2 = number;
|
|
265
265
|
type Y2 = number;
|
|
266
|
-
export declare enum GateReportROIShapeType {
|
|
267
|
-
Rectangle = "rectangle",
|
|
268
|
-
Direction = "direction",
|
|
269
|
-
Line = "line"
|
|
270
|
-
}
|
|
271
266
|
export type GateReportROIShape = {
|
|
272
267
|
coordinates: [[X1, Y1], [X2, Y2]];
|
|
273
|
-
type:
|
|
268
|
+
type: RoiShapeType;
|
|
274
269
|
};
|
|
275
270
|
export type GateReportROI = {
|
|
276
271
|
cameraex?: string;
|
|
@@ -278,7 +273,7 @@ export type GateReportROI = {
|
|
|
278
273
|
directionFilter?: string;
|
|
279
274
|
id?: number;
|
|
280
275
|
insertedAt?: Timestamp;
|
|
281
|
-
|
|
276
|
+
isActive?: boolean;
|
|
282
277
|
name?: string;
|
|
283
278
|
roiType?: string;
|
|
284
279
|
updatedAt?: Timestamp;
|
|
@@ -319,27 +314,24 @@ export type ProcessedDaysQueryParams = {
|
|
|
319
314
|
eventType: GateReportEventType;
|
|
320
315
|
};
|
|
321
316
|
export type RoisQueryParams = {
|
|
322
|
-
camerasExid:
|
|
317
|
+
camerasExid: CameraExid[];
|
|
323
318
|
id: number;
|
|
324
319
|
name: string;
|
|
325
320
|
fromDate: string;
|
|
326
|
-
roiType:
|
|
327
|
-
|
|
321
|
+
roiType: RoiShapeType;
|
|
322
|
+
isActive: boolean;
|
|
328
323
|
directionFilter: string;
|
|
329
324
|
sort: string;
|
|
330
325
|
};
|
|
331
|
-
export type
|
|
332
|
-
id
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
note: string;
|
|
342
|
-
};
|
|
343
|
-
createdBy: string;
|
|
326
|
+
export type GateReportRoiRequestPayload = {
|
|
327
|
+
id: number;
|
|
328
|
+
cameraExid: string;
|
|
329
|
+
name: string;
|
|
330
|
+
roiType: string;
|
|
331
|
+
isActive: true;
|
|
332
|
+
fromDate: string;
|
|
333
|
+
shapes: GateReportROIShape[];
|
|
334
|
+
directionFilter: string;
|
|
335
|
+
note: string;
|
|
344
336
|
};
|
|
345
337
|
export {};
|
|
@@ -30,7 +30,7 @@ export * from "./shares";
|
|
|
30
30
|
export * from "./sim";
|
|
31
31
|
export * from "./systemCheck";
|
|
32
32
|
export * from "./planner";
|
|
33
|
-
export * from "./
|
|
33
|
+
export * from "./storageProvider";
|
|
34
34
|
export * from "./streaming";
|
|
35
35
|
export * from "./storyblok";
|
|
36
36
|
export * from "./time";
|
|
@@ -59,3 +59,6 @@ export * from "./xweather";
|
|
|
59
59
|
export * from "./posthog";
|
|
60
60
|
export * from "./recycleBin";
|
|
61
61
|
export * from "./authz";
|
|
62
|
+
export * from "./oauth";
|
|
63
|
+
export * from "./ring";
|
|
64
|
+
export * from "./smartSeach";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type OAuthClient = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
redirectUris: string[];
|
|
6
|
+
logoUrl: string | null;
|
|
7
|
+
scopes: string[];
|
|
8
|
+
active: boolean;
|
|
9
|
+
description: string | null;
|
|
10
|
+
owner: {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
} | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
};
|
|
18
|
+
export type OAuthClientWithSecret = OAuthClient & {
|
|
19
|
+
clientSecret: string;
|
|
20
|
+
};
|
|
21
|
+
export type CreateOAuthClientPayload = {
|
|
22
|
+
name: string;
|
|
23
|
+
redirectUris: string[];
|
|
24
|
+
scopes?: string[];
|
|
25
|
+
description?: string;
|
|
26
|
+
logoUrl?: string;
|
|
27
|
+
};
|
|
28
|
+
export type AdminCreateOAuthClientPayload = CreateOAuthClientPayload & {
|
|
29
|
+
clientId?: string;
|
|
30
|
+
clientSecret?: string;
|
|
31
|
+
};
|
|
32
|
+
export type UpdateOAuthClientPayload = {
|
|
33
|
+
name?: string;
|
|
34
|
+
redirectUris?: string[];
|
|
35
|
+
scopes?: string[];
|
|
36
|
+
description?: string;
|
|
37
|
+
logoUrl?: string;
|
|
38
|
+
active?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type OAuthScopeDetail = {
|
|
41
|
+
scope: string;
|
|
42
|
+
description: string;
|
|
43
|
+
group: string;
|
|
44
|
+
};
|
|
45
|
+
export type OAuthConsentInfo = {
|
|
46
|
+
client: {
|
|
47
|
+
name: string;
|
|
48
|
+
logoUrl: string | null;
|
|
49
|
+
description: string | null;
|
|
50
|
+
};
|
|
51
|
+
scopes: OAuthScopeDetail[];
|
|
52
|
+
};
|
|
53
|
+
export type OAuthConsentPayload = {
|
|
54
|
+
clientId: string;
|
|
55
|
+
scope: string;
|
|
56
|
+
redirectUri: string;
|
|
57
|
+
state: string;
|
|
58
|
+
decision: "allow" | "deny";
|
|
59
|
+
};
|
|
60
|
+
export type OAuthConsentResponse = {
|
|
61
|
+
redirectUrl: string;
|
|
62
|
+
};
|
|
@@ -56,8 +56,7 @@ export type SnapshotRangeResponsePayload = {
|
|
|
56
56
|
snapshots: Array<SnapshotInstance>;
|
|
57
57
|
};
|
|
58
58
|
export declare enum BrainTool {
|
|
59
|
-
Detections = "detections"
|
|
60
|
-
Segmentation = "sam"
|
|
59
|
+
Detections = "detections"
|
|
61
60
|
}
|
|
62
61
|
export declare enum CloudRecordingFrequency {
|
|
63
62
|
EverySecond = 60,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type RingDevice = {
|
|
2
|
+
deviceId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
deviceType: string;
|
|
5
|
+
firmwareVersion: string | null;
|
|
6
|
+
batteryLife: number | null;
|
|
7
|
+
location: string | null;
|
|
8
|
+
imported: boolean;
|
|
9
|
+
cameraExid?: string;
|
|
10
|
+
projectExid?: string;
|
|
11
|
+
projectName?: string;
|
|
12
|
+
};
|
|
13
|
+
export type RingDevicesResponsePayload = {
|
|
14
|
+
devices: RingDevice[];
|
|
15
|
+
};
|
|
16
|
+
export type RingImportDevicesPayload = {
|
|
17
|
+
deviceIds: string[];
|
|
18
|
+
projectExid: string;
|
|
19
|
+
deviceNames?: Record<string, string>;
|
|
20
|
+
};
|
|
21
|
+
export type RingImportResponsePayload = {
|
|
22
|
+
cameras: Array<{
|
|
23
|
+
exid: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}>;
|
|
26
|
+
project: {
|
|
27
|
+
exid: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type RingMoveDevicePayload = {
|
|
32
|
+
projectExid: string;
|
|
33
|
+
};
|
|
34
|
+
export type RingMoveDeviceResponsePayload = {
|
|
35
|
+
status: string;
|
|
36
|
+
cameraExid: string;
|
|
37
|
+
projectExid: string;
|
|
38
|
+
};
|
|
39
|
+
export type RingLiveViewPayload = {
|
|
40
|
+
sdpOffer: string;
|
|
41
|
+
};
|
|
42
|
+
export type RingLiveViewResponse = {
|
|
43
|
+
sdpAnswer: string;
|
|
44
|
+
sessionUrl: string;
|
|
45
|
+
iceServers: Array<{
|
|
46
|
+
urls: string;
|
|
47
|
+
username?: string;
|
|
48
|
+
credential?: string;
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
51
|
+
export type RingStopLiveViewResponse = {
|
|
52
|
+
status: string;
|
|
53
|
+
};
|
|
@@ -103,6 +103,7 @@ export type SmartSearchBackendQuery = {
|
|
|
103
103
|
conditions: SmartSearchBackendQueryCondition[];
|
|
104
104
|
}[];
|
|
105
105
|
returnType: SmartSearchReturnType;
|
|
106
|
+
timeSchedule?: Schedule;
|
|
106
107
|
};
|
|
107
108
|
export declare enum SmartSearchTargets {
|
|
108
109
|
Tracking = "tracking",
|
|
@@ -139,13 +140,9 @@ export declare enum SmartSearchConditionTypes {
|
|
|
139
140
|
}
|
|
140
141
|
export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | DateRangeFilter | SiteAnalyticsView;
|
|
141
142
|
export type SmartSearchBackendQueryPayload = {
|
|
142
|
-
cameraExid: string;
|
|
143
143
|
name: string;
|
|
144
144
|
description: string;
|
|
145
|
-
query:
|
|
146
|
-
req: SmartSearchBackendQuery;
|
|
147
|
-
timeSchedule?: Schedule | undefined;
|
|
148
|
-
};
|
|
145
|
+
query: SmartSearchBackendQuery;
|
|
149
146
|
fromDate?: DateType;
|
|
150
147
|
toDate?: DateType;
|
|
151
148
|
author: string;
|
|
@@ -158,10 +155,7 @@ export type SmartSearchBackendQueryPayload = {
|
|
|
158
155
|
export type SavedQuery = {
|
|
159
156
|
description: string;
|
|
160
157
|
id: number;
|
|
161
|
-
query:
|
|
162
|
-
req: SmartSearchBackendQuery;
|
|
163
|
-
timeSchedule?: Schedule | undefined;
|
|
164
|
-
};
|
|
158
|
+
query: SmartSearchBackendQuery;
|
|
165
159
|
params: Record<string, string>;
|
|
166
160
|
components?: Omit<SmartSearchPart, "id">[];
|
|
167
161
|
toDate?: DateType;
|
|
@@ -281,11 +275,7 @@ type SmartSearchResultItemByType = {
|
|
|
281
275
|
[SmartSearchReturnType.FirstLastSeen]: SmartSearchResultItemFirstLastSeen;
|
|
282
276
|
[SmartSearchReturnType.All]: SmartSearchResultItemAll;
|
|
283
277
|
};
|
|
284
|
-
export type SmartSearchResponse<R extends SmartSearchReturnType = SmartSearchReturnType.FirstLastSeen> =
|
|
285
|
-
data: PaginatedItems<SmartSearchResultItemByType[R]>;
|
|
286
|
-
message?: string;
|
|
287
|
-
success: boolean;
|
|
288
|
-
};
|
|
278
|
+
export type SmartSearchResponse<R extends SmartSearchReturnType = SmartSearchReturnType.FirstLastSeen> = PaginatedItems<SmartSearchResultItemByType[R]>;
|
|
289
279
|
export type SmartSearchMinifiedPart = {
|
|
290
280
|
t: SmartSearchComponentType;
|
|
291
281
|
v: unknown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DateType } from "@evercam/api/types";
|
|
2
|
+
export type StorageProvider = {
|
|
3
|
+
id?: number;
|
|
4
|
+
cameraId: number;
|
|
5
|
+
type: string;
|
|
6
|
+
provider: string;
|
|
7
|
+
url: string;
|
|
8
|
+
startDate: DateType;
|
|
9
|
+
endDate: DateType;
|
|
10
|
+
config: Record<string, any>;
|
|
11
|
+
insertedAt?: DateType;
|
|
12
|
+
};
|
|
13
|
+
export type StorageProvidersResponsePayload = {
|
|
14
|
+
providers: StorageProvider[];
|
|
15
|
+
};
|
|
16
|
+
export declare enum ProjectStorageProvider {
|
|
17
|
+
Seaweedfs = "seaweedfs",
|
|
18
|
+
S3 = "s3"
|
|
19
|
+
}
|