@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.
@@ -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: GateReportROIShapeType;
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
- isactive?: boolean;
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: string[];
317
+ camerasExid: CameraExid[];
323
318
  id: number;
324
319
  name: string;
325
320
  fromDate: string;
326
- roiType: GateReportROIShapeType;
327
- isactive: boolean;
321
+ roiType: RoiShapeType;
322
+ isActive: boolean;
328
323
  directionFilter: string;
329
324
  sort: string;
330
325
  };
331
- export type GateReportROICreateRequestPayload = {
332
- id?: number;
333
- roi: {
334
- cameraex: string;
335
- name: string;
336
- roiType: string;
337
- isactive: true;
338
- fromDate: string;
339
- shapes: Record<string, unknown>[];
340
- directionFilter: string;
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 "./storageServers";
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";
@@ -16,7 +16,9 @@ export declare enum MobileAssetsType {
16
16
  }
17
17
  export declare enum IngestVersions {
18
18
  V1 = "v1",
19
- V2 = "v2"
19
+ V2 = "v2",
20
+ V3 = "v3",
21
+ V4 = "v4"
20
22
  }
21
23
  export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
22
24
  projectId: string;
@@ -25,6 +25,7 @@ export type Media = {
25
25
  projectExid?: string;
26
26
  thumbnailUrl?: string;
27
27
  mediaUrl?: string;
28
+ camera?: string;
28
29
  };
29
30
  export declare enum MediaType {
30
31
  EditedImage = "edit",
@@ -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
+ };
@@ -193,6 +193,7 @@ export type ProjectMembersResponsePayload = {
193
193
  export type ProjectMembersRequestPayload = {
194
194
  roleId: number;
195
195
  emails: string[];
196
+ message?: string;
196
197
  overrideRole?: Partial<{
197
198
  permissions?: string[];
198
199
  subRoles?: Array<{
@@ -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,5 @@
1
+ import { CameraExid } from "@evercam/api/types";
2
+ export type SmartSearchQueriesRequestPayload = {
3
+ camerasExid: CameraExid[];
4
+ name?: string;
5
+ };
@@ -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
+ }