@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c
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/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +120 -96
- package/dist/api/api/aiApi.d.ts +188 -53
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/client/interceptors.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +86 -28
- package/dist/api/api/evercamLabsApi.d.ts +9 -18
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +90 -65
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +41 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +141 -71
- package/dist/api/types/anpr.d.ts +134 -0
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +72 -0
- package/dist/api/types/automation.d.ts +40 -3
- package/dist/api/types/axios.d.ts +12 -11
- package/dist/api/types/bim.d.ts +70 -12
- package/dist/api/types/camera.d.ts +244 -128
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +3 -0
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/detections.d.ts +10 -11
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +59 -49
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +15 -3
- package/dist/api/types/ingest.d.ts +207 -20
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +32 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +72 -0
- package/dist/api/types/progressPhoto.d.ts +39 -25
- package/dist/api/types/project.d.ts +77 -24
- package/dist/api/types/recording.d.ts +9 -15
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +7 -19
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +80 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +98 -13
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +12 -37
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +6 -9
- package/dist/api/types/user.d.ts +48 -34
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2635 -1120
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +702 -42
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +80 -0
- package/dist/shared/types/report.d.ts +108 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -157
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, GeoJSONPolygon, Operator, PaginationParams, ProjectUserWithRole, RoleSubRole } from "@evercam/api/types";
|
|
2
2
|
export type ProjectExid = Exid;
|
|
3
3
|
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
4
|
export type Project = {
|
|
@@ -10,7 +10,7 @@ export type Project = {
|
|
|
10
10
|
endDate: string;
|
|
11
11
|
exid: ProjectExid;
|
|
12
12
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
-
geographicBounds?:
|
|
13
|
+
geographicBounds?: GeoJSONPolygon | null;
|
|
14
14
|
id: string | number;
|
|
15
15
|
insertedAt?: string;
|
|
16
16
|
name: string;
|
|
@@ -20,6 +20,7 @@ export type Project = {
|
|
|
20
20
|
ownerEmail?: string;
|
|
21
21
|
ownerName?: string;
|
|
22
22
|
startedAt?: string;
|
|
23
|
+
startDate?: string | null;
|
|
23
24
|
status?: ProjectStatus;
|
|
24
25
|
timezone?: string;
|
|
25
26
|
unrestrictedCameras?: Camera[];
|
|
@@ -40,7 +41,7 @@ export type AdminProjectListItem = {
|
|
|
40
41
|
endDate: string | null;
|
|
41
42
|
startDate: string | null;
|
|
42
43
|
archiveTier: ProjectArchiveTier | null;
|
|
43
|
-
featureFlags: Array<ProjectFeatureFlag
|
|
44
|
+
featureFlags: Array<ProjectFeatureFlag>;
|
|
44
45
|
zohoId: string | null;
|
|
45
46
|
ownerEmail: string | null;
|
|
46
47
|
companyId: number | null;
|
|
@@ -48,6 +49,7 @@ export type AdminProjectListItem = {
|
|
|
48
49
|
ownerName: string | null;
|
|
49
50
|
archived: boolean;
|
|
50
51
|
cameras?: AdminProjectCameraRef[];
|
|
52
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
51
53
|
};
|
|
52
54
|
export type AdminProjectDetail = AdminProjectListItem & {
|
|
53
55
|
userId: number;
|
|
@@ -62,11 +64,19 @@ export declare enum ProjectArchiveTier {
|
|
|
62
64
|
Full = "Full",
|
|
63
65
|
Partial = "Partial",
|
|
64
66
|
Minimal = "Minimal",
|
|
65
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
67
|
+
ScheduledForDeletion = "Scheduled for Deletion",
|
|
68
|
+
No = "No"
|
|
66
69
|
}
|
|
67
70
|
export type UpdateCameraRestrictionPayload = {
|
|
68
71
|
isAccessRestricted?: boolean;
|
|
69
72
|
};
|
|
73
|
+
export type CameraPosition = {
|
|
74
|
+
cameraExid: CameraExid;
|
|
75
|
+
position: number;
|
|
76
|
+
};
|
|
77
|
+
export type ReorderCamerasPayload = {
|
|
78
|
+
positions: CameraPosition[];
|
|
79
|
+
};
|
|
70
80
|
export type Logo = {
|
|
71
81
|
id: number;
|
|
72
82
|
projectId: number;
|
|
@@ -88,10 +98,10 @@ export declare enum ProjectFeatureFlag {
|
|
|
88
98
|
MediaHubSharing = "archives_sharing",
|
|
89
99
|
GateReportAnprBased = "anpr_sourced",
|
|
90
100
|
NoLicensePlate = "no_license_plate",
|
|
91
|
-
DefaultToProjectApp = "default_to_project_app",
|
|
92
101
|
SmartSearch = "smart_search",
|
|
93
102
|
PpeMonitoring = "ppe_monitoring",
|
|
94
|
-
NoGdpr = "no_gdpr"
|
|
103
|
+
NoGdpr = "no_gdpr",
|
|
104
|
+
Chat = "chat"
|
|
95
105
|
}
|
|
96
106
|
export type ProjectBatteryReading = {
|
|
97
107
|
exid: number;
|
|
@@ -109,6 +119,7 @@ export type ProjectsQueryParams = PaginationParams & {
|
|
|
109
119
|
status: ProjectStatus;
|
|
110
120
|
cameras: string;
|
|
111
121
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
122
|
+
featureFlagsOperator?: Operator;
|
|
112
123
|
archived: string;
|
|
113
124
|
};
|
|
114
125
|
export type ProjectCreateRequestPayload = {
|
|
@@ -117,18 +128,30 @@ export type ProjectCreateRequestPayload = {
|
|
|
117
128
|
ownerId: number;
|
|
118
129
|
cameras: string[];
|
|
119
130
|
};
|
|
120
|
-
export type
|
|
121
|
-
|
|
131
|
+
export type CreatedProject = {
|
|
132
|
+
id: number;
|
|
122
133
|
exid: string;
|
|
134
|
+
name: string;
|
|
135
|
+
userId: number;
|
|
136
|
+
zohoId: string | null;
|
|
137
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
138
|
+
};
|
|
139
|
+
export type ProjectCreateResponse = Record<"project", CreatedProject>;
|
|
140
|
+
export type TransferOwnershipProject = {
|
|
123
141
|
id: number;
|
|
142
|
+
exid: string;
|
|
143
|
+
name: string;
|
|
124
144
|
userId: number;
|
|
125
|
-
zohoId: string;
|
|
145
|
+
zohoId: string | null;
|
|
146
|
+
status: ProjectStatus;
|
|
126
147
|
};
|
|
148
|
+
export type ProjectTransferOwnershipResponse = Record<"project", TransferOwnershipProject>;
|
|
127
149
|
export type ProjectUpdateRequestPayload = {
|
|
128
150
|
name: string;
|
|
129
151
|
timezone: string;
|
|
130
152
|
featureFlags: ProjectFeatureFlag[];
|
|
131
153
|
cameras: string[];
|
|
154
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
132
155
|
};
|
|
133
156
|
export type ProjectStatusStats = {
|
|
134
157
|
nil: number;
|
|
@@ -150,12 +173,17 @@ export type ProjectUserProperty = {
|
|
|
150
173
|
lastSeenAt: string;
|
|
151
174
|
persona: string;
|
|
152
175
|
};
|
|
153
|
-
export type
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
176
|
+
export type AdminProjectInvite = {
|
|
177
|
+
id: number;
|
|
178
|
+
email: string;
|
|
179
|
+
role: ProjectRole;
|
|
180
|
+
permissions: string[];
|
|
181
|
+
subRoles: RoleSubRole[];
|
|
182
|
+
};
|
|
183
|
+
export type AdminProjectUsersResponsePayload = {
|
|
184
|
+
users: ProjectUserWithRole[];
|
|
185
|
+
invites: AdminProjectInvite[];
|
|
186
|
+
errors: ProjectUserError[];
|
|
159
187
|
};
|
|
160
188
|
export type ProjectRole = {
|
|
161
189
|
id: number;
|
|
@@ -163,6 +191,7 @@ export type ProjectRole = {
|
|
|
163
191
|
};
|
|
164
192
|
export type ProjectMember = {
|
|
165
193
|
id: string;
|
|
194
|
+
key?: string;
|
|
166
195
|
email: string;
|
|
167
196
|
fullname: string;
|
|
168
197
|
lastSeenAt?: string;
|
|
@@ -172,10 +201,12 @@ export type ProjectMember = {
|
|
|
172
201
|
resourceId: string;
|
|
173
202
|
roleId: number;
|
|
174
203
|
}>;
|
|
175
|
-
company?:
|
|
204
|
+
company?: {
|
|
205
|
+
name: string;
|
|
206
|
+
} | null;
|
|
176
207
|
};
|
|
177
208
|
export type ProjectInvite = {
|
|
178
|
-
id
|
|
209
|
+
id: number;
|
|
179
210
|
email: string;
|
|
180
211
|
role?: ProjectRole;
|
|
181
212
|
permissions?: string[];
|
|
@@ -193,6 +224,7 @@ export type ProjectMembersResponsePayload = {
|
|
|
193
224
|
export type ProjectMembersRequestPayload = {
|
|
194
225
|
roleId: number;
|
|
195
226
|
emails: string[];
|
|
227
|
+
message?: string;
|
|
196
228
|
overrideRole?: Partial<{
|
|
197
229
|
permissions?: string[];
|
|
198
230
|
subRoles?: Array<{
|
|
@@ -217,20 +249,41 @@ export type ProjectUsersResponsePayload = {
|
|
|
217
249
|
invites: ProjectInvite[];
|
|
218
250
|
errors: ProjectUserError[];
|
|
219
251
|
};
|
|
252
|
+
export type MentionableUser = {
|
|
253
|
+
id: number;
|
|
254
|
+
fullname: string;
|
|
255
|
+
email: string;
|
|
256
|
+
};
|
|
220
257
|
export type ProjectStorageQueryParams = PaginationParams & {
|
|
221
258
|
cameraName: string;
|
|
222
259
|
cameraExid: CameraExid;
|
|
260
|
+
projectName: string;
|
|
261
|
+
projectExid: string;
|
|
262
|
+
archiveTier: ProjectArchiveTier;
|
|
263
|
+
status: ProjectStorageStatus;
|
|
264
|
+
requester: string;
|
|
265
|
+
createdAtFrom: string;
|
|
266
|
+
createdAtTo: string;
|
|
267
|
+
scheduleAtFrom: string;
|
|
268
|
+
scheduleAtTo: string;
|
|
269
|
+
};
|
|
270
|
+
export type ProjectStorageCamera = {
|
|
271
|
+
archiveId: number;
|
|
272
|
+
name: string;
|
|
273
|
+
exid: CameraExid;
|
|
223
274
|
status: ProjectStorageStatus;
|
|
275
|
+
errorMessage: string | null;
|
|
224
276
|
};
|
|
225
277
|
export type ProjectStorage = {
|
|
226
278
|
id: number;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
279
|
+
exid: string;
|
|
280
|
+
name: string;
|
|
281
|
+
archiveTier: ProjectArchiveTier | null;
|
|
282
|
+
endDate: string | null;
|
|
283
|
+
requester: string | null;
|
|
284
|
+
scheduleAt: string | null;
|
|
285
|
+
insertedAt: DateType;
|
|
286
|
+
cameras: ProjectStorageCamera[];
|
|
234
287
|
};
|
|
235
288
|
export declare enum ProjectStorageStatus {
|
|
236
289
|
New = "new",
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { ApiCredentials } from "@evercam/api/types";
|
|
1
|
+
import { ApiCredentials, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
import { CancelToken } from "axios";
|
|
3
3
|
export type Snapshot = {
|
|
4
4
|
createdAt: string;
|
|
5
5
|
data: string;
|
|
6
6
|
status?: string;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type SnapshotRequestPayload = {
|
|
9
9
|
apiKey?: string;
|
|
10
10
|
apiId?: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
cancelToken?: object;
|
|
13
13
|
includeImage?: boolean;
|
|
14
|
+
view?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export type AvailableDaysRequestPayload = {
|
|
16
17
|
cameraId: string;
|
|
17
18
|
year: string;
|
|
18
19
|
month: string;
|
|
19
20
|
payload?: ApiCredentials;
|
|
21
|
+
cancelToken?: CancelToken;
|
|
20
22
|
};
|
|
21
23
|
export type AvailableDaysResponsePayload = {
|
|
22
24
|
days: Array<number>;
|
|
@@ -39,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
|
|
|
39
41
|
notes?: string;
|
|
40
42
|
}>;
|
|
41
43
|
};
|
|
42
|
-
export type SnapshotRangeRequestPayload = {
|
|
44
|
+
export type SnapshotRangeRequestPayload = PaginationParams & {
|
|
43
45
|
from: string;
|
|
44
46
|
to: string;
|
|
45
|
-
limit?: number;
|
|
46
|
-
page?: number;
|
|
47
47
|
schedule?: boolean;
|
|
48
48
|
count?: number;
|
|
49
49
|
};
|
|
@@ -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,
|
|
@@ -77,6 +76,7 @@ export declare enum CloudRecordingDuration {
|
|
|
77
76
|
Month = 30,
|
|
78
77
|
ThreeMonths = 90
|
|
79
78
|
}
|
|
79
|
+
export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
|
|
80
80
|
export declare enum CloudRecordingStatus {
|
|
81
81
|
On = "on",
|
|
82
82
|
Off = "off",
|
|
@@ -104,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
|
|
|
104
104
|
}
|
|
105
105
|
export declare enum VpnServer {
|
|
106
106
|
None = "None",
|
|
107
|
-
OpenVPN1 = "OpenVPN1",
|
|
108
|
-
OpenVPN2 = "OpenVPN2",
|
|
109
|
-
OpenVPN3 = "OpenVPN3",
|
|
110
|
-
OpenVPN4 = "OpenVPN4",
|
|
111
|
-
OpenVPN5 = "OpenVPN5",
|
|
112
|
-
PPTP1 = "PPTP1",
|
|
113
|
-
PPTP2 = "PPTP2",
|
|
114
107
|
WireGuard1 = "WireGuard1",
|
|
115
108
|
WireGuard2 = "WireGuard2",
|
|
116
109
|
WireGuard3 = "WireGuard3",
|
|
@@ -120,5 +113,6 @@ export declare enum VpnServer {
|
|
|
120
113
|
WireGuard7 = "WireGuard7",
|
|
121
114
|
WireGuard8 = "WireGuard8",
|
|
122
115
|
WireGuard9 = "WireGuard9",
|
|
123
|
-
WireGuard10 = "WireGuard10"
|
|
116
|
+
WireGuard10 = "WireGuard10",
|
|
117
|
+
WgHub = "WgHub"
|
|
124
118
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export declare enum RecycleBinItemType {
|
|
3
|
+
Camera = "camera",
|
|
4
|
+
Project = "project",
|
|
5
|
+
Kit = "kit"
|
|
6
|
+
}
|
|
2
7
|
export type RecycleBin = {
|
|
3
|
-
id
|
|
8
|
+
id: number;
|
|
4
9
|
exid: string;
|
|
5
10
|
name: string;
|
|
6
|
-
type:
|
|
11
|
+
type: RecycleBinItemType;
|
|
7
12
|
deletedBy: string;
|
|
8
13
|
deletedAt: DateType;
|
|
9
14
|
};
|
|
10
15
|
export type RecycleBinQueryParams = PaginationParams & {
|
|
16
|
+
exid: string;
|
|
11
17
|
name: string;
|
|
12
18
|
type: string;
|
|
13
19
|
deletedBy: string;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Evercam Reports engine (evercam-agent-kit), as the admin app sees it.
|
|
3
|
+
*
|
|
4
|
+
* These mirror `evercam_reports/api/schemas.py`. The engine speaks camelCase over
|
|
5
|
+
* the wire, so the admin client reads it with `preserveCasing: true` and these are
|
|
6
|
+
* the shapes as received. Named `Chat*`, after the product; the Vue 3 agent app's
|
|
7
|
+
* own workflow types live in `packages/agent`, unreachable here.
|
|
8
|
+
*/
|
|
9
|
+
/** What kind of conversation this is. Chat only ever opens `chat`. */
|
|
10
|
+
export declare enum ChatMode {
|
|
11
|
+
Report = "report",
|
|
12
|
+
Chat = "chat"
|
|
13
|
+
}
|
|
14
|
+
/** Whose conversations a list covers. Only an admin is ever given `all`. */
|
|
15
|
+
export declare enum ChatScope {
|
|
16
|
+
Mine = "mine",
|
|
17
|
+
Account = "account",
|
|
18
|
+
All = "all"
|
|
19
|
+
}
|
|
20
|
+
/** A flat token tally, as the engine reports it. */
|
|
21
|
+
export type ChatUsage = {
|
|
22
|
+
inputTokens?: number;
|
|
23
|
+
outputTokens?: number;
|
|
24
|
+
cacheCreationInputTokens?: number;
|
|
25
|
+
cacheReadInputTokens?: number;
|
|
26
|
+
};
|
|
27
|
+
/** One recorded tool step in a turn's trace, compacted by the engine. */
|
|
28
|
+
export type ChatTraceStep = {
|
|
29
|
+
step?: number | null;
|
|
30
|
+
tool?: string | null;
|
|
31
|
+
result?: string | null;
|
|
32
|
+
durationMs?: number | null;
|
|
33
|
+
usage?: ChatUsage | null;
|
|
34
|
+
args?: unknown;
|
|
35
|
+
};
|
|
36
|
+
/** One stored turn, as the engine returns it inside a conversation. */
|
|
37
|
+
export type ChatTurn = {
|
|
38
|
+
id: string;
|
|
39
|
+
userText?: string | null;
|
|
40
|
+
assistantText?: string | null;
|
|
41
|
+
thinkingSummary?: string | null;
|
|
42
|
+
artifact?: unknown;
|
|
43
|
+
/** The agent's tool steps for this answer. Absent on turns stored before traces. */
|
|
44
|
+
trace?: ChatTraceStep[] | null;
|
|
45
|
+
/** This turn's own token usage. */
|
|
46
|
+
usage?: ChatUsage | null;
|
|
47
|
+
runId?: string | null;
|
|
48
|
+
at?: string | null;
|
|
49
|
+
};
|
|
50
|
+
/** A conversation in full, with its transcript, cost ledger and per-turn traces. */
|
|
51
|
+
export type ChatSession = {
|
|
52
|
+
id: string;
|
|
53
|
+
environment: string;
|
|
54
|
+
mode: string;
|
|
55
|
+
title: string | null;
|
|
56
|
+
projectExid: string | null;
|
|
57
|
+
projectName: string | null;
|
|
58
|
+
cameraExids: string[] | null;
|
|
59
|
+
turns: ChatTurn[];
|
|
60
|
+
savedReportId: string | null;
|
|
61
|
+
createdBy: string | null;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
|
+
usage?: ChatUsage | null;
|
|
65
|
+
usageByModel?: Record<string, ChatUsage> | null;
|
|
66
|
+
model?: string | null;
|
|
67
|
+
/** Money as a string, or `null` (never `0`) when the conversation is unpriced. */
|
|
68
|
+
costUsd?: string | null;
|
|
69
|
+
priceBasis?: Record<string, unknown> | null;
|
|
70
|
+
};
|
|
71
|
+
/** One conversation as a list row — metadata and cost, without the transcript. */
|
|
72
|
+
export type ChatSummary = {
|
|
73
|
+
id: string;
|
|
74
|
+
environment: string;
|
|
75
|
+
mode: string;
|
|
76
|
+
title: string | null;
|
|
77
|
+
projectExid: string | null;
|
|
78
|
+
projectName: string | null;
|
|
79
|
+
cameraExids: string[] | null;
|
|
80
|
+
createdBy: string | null;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
turnCount: number;
|
|
84
|
+
usage?: ChatUsage | null;
|
|
85
|
+
model?: string | null;
|
|
86
|
+
costUsd?: string | null;
|
|
87
|
+
};
|
|
88
|
+
/** A page of conversations for the admin viewer. */
|
|
89
|
+
export type ChatListPage = {
|
|
90
|
+
chats: ChatSummary[];
|
|
91
|
+
total: number;
|
|
92
|
+
/** The scope the engine actually applied. */
|
|
93
|
+
scope: ChatScope;
|
|
94
|
+
};
|
|
95
|
+
/** Query params the admin conversations list accepts. */
|
|
96
|
+
export type ChatListParams = {
|
|
97
|
+
scope?: ChatScope;
|
|
98
|
+
mode?: ChatMode;
|
|
99
|
+
projectExid?: string;
|
|
100
|
+
createdBy?: string;
|
|
101
|
+
excludeEvercam?: boolean;
|
|
102
|
+
q?: string;
|
|
103
|
+
from?: string;
|
|
104
|
+
to?: string;
|
|
105
|
+
sort?: string;
|
|
106
|
+
direction?: "asc" | "desc";
|
|
107
|
+
offset?: number;
|
|
108
|
+
limit?: number;
|
|
109
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type RingCompleteLinkingPayload = {
|
|
2
|
+
nonce: string;
|
|
3
|
+
time: string;
|
|
4
|
+
};
|
|
5
|
+
/** The only auto-import status complete-linking returns today. */
|
|
6
|
+
export declare const RING_AUTO_IMPORT_QUEUED = "queued";
|
|
7
|
+
export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
|
|
8
|
+
export type RingCompleteLinkingResponsePayload = {
|
|
9
|
+
status: string;
|
|
10
|
+
/** Absent when the API did not schedule an import. */
|
|
11
|
+
autoImport?: RingAutoImportStatus;
|
|
12
|
+
};
|
|
13
|
+
export type RingDevice = {
|
|
14
|
+
deviceId: string;
|
|
15
|
+
name: string;
|
|
16
|
+
/** Resolved from Ring's `device-status`; null when Ring did not return it. */
|
|
17
|
+
online: boolean | null;
|
|
18
|
+
deviceType: string | null;
|
|
19
|
+
firmwareVersion: string | null;
|
|
20
|
+
/** Always null — Ring's API does not expose device power level. */
|
|
21
|
+
batteryLife: number | null;
|
|
22
|
+
location: string | null;
|
|
23
|
+
imported: boolean;
|
|
24
|
+
cameraExid?: string;
|
|
25
|
+
projectExid?: string;
|
|
26
|
+
projectName?: string;
|
|
27
|
+
};
|
|
28
|
+
export type RingDevicesResponsePayload = {
|
|
29
|
+
devices: RingDevice[];
|
|
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
|
+
};
|
package/dist/api/types/roi.d.ts
CHANGED
|
@@ -3,23 +3,15 @@ export declare enum RoiType {
|
|
|
3
3
|
AnprContext = "anpr_context",
|
|
4
4
|
ExclusionZone = "exclusion_zone",
|
|
5
5
|
WorkflowArea = "workflow_area",
|
|
6
|
-
SiteAnalytics = "site_analytics"
|
|
6
|
+
SiteAnalytics = "site_analytics",
|
|
7
|
+
Ppe = "ppe_roi"
|
|
7
8
|
}
|
|
8
9
|
export declare enum RoiShapeType {
|
|
9
10
|
Polygon = "polygon",
|
|
10
11
|
Line = "line",
|
|
11
12
|
Direction = "direction",
|
|
12
|
-
Rectangle = "rectangle"
|
|
13
|
-
ROIBox = "ROIBox"
|
|
13
|
+
Rectangle = "rectangle"
|
|
14
14
|
}
|
|
15
|
-
export type RoiShape = {
|
|
16
|
-
id: number | null;
|
|
17
|
-
name: string;
|
|
18
|
-
x1: number;
|
|
19
|
-
x2: number;
|
|
20
|
-
y1: number;
|
|
21
|
-
y2: number;
|
|
22
|
-
};
|
|
23
15
|
export declare enum RoiDirection {
|
|
24
16
|
Arrived = "arrived",
|
|
25
17
|
Left = "left",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaginationParams, SimSummary } from "@evercam/api/types";
|
|
2
2
|
export type RouterBillPayer = {
|
|
3
3
|
name: string;
|
|
4
4
|
};
|
|
@@ -7,30 +7,31 @@ export type SimProvider = {
|
|
|
7
7
|
};
|
|
8
8
|
export type Router = {
|
|
9
9
|
id?: number;
|
|
10
|
-
|
|
10
|
+
kitSerial?: string;
|
|
11
|
+
kitName?: string;
|
|
12
|
+
rmsId?: number | null;
|
|
11
13
|
routerType: string;
|
|
12
14
|
routerUserId: string;
|
|
13
15
|
routerPassword: string;
|
|
14
16
|
serialNumber: number | null;
|
|
15
17
|
rmsUrl?: string;
|
|
16
|
-
externalHost?: string;
|
|
17
18
|
routerHttpPort: number | null;
|
|
18
19
|
vpnPassword: string;
|
|
19
20
|
vpnUserId: string;
|
|
20
21
|
vpnServer: string;
|
|
21
|
-
netbirdUrl
|
|
22
|
+
netbirdUrl?: string;
|
|
22
23
|
status: RouterStatus;
|
|
23
24
|
powerType: PowerType;
|
|
24
|
-
powerSchedule:
|
|
25
|
-
battery
|
|
25
|
+
powerSchedule: PowerSchedule;
|
|
26
|
+
battery: {
|
|
26
27
|
lastVoltage: number;
|
|
27
28
|
lastSeen: string;
|
|
28
|
-
};
|
|
29
|
-
sims:
|
|
29
|
+
} | null;
|
|
30
|
+
sims: SimSummary[];
|
|
30
31
|
billPayers?: Array<RouterBillPayer>;
|
|
31
32
|
simProviders?: Array<SimProvider>;
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
lastSms?: string;
|
|
34
|
+
lastSmsAt?: string;
|
|
34
35
|
};
|
|
35
36
|
export declare enum PowerType {
|
|
36
37
|
Mains = "mains",
|
|
@@ -66,9 +67,13 @@ export type RouterCreatePayload = {
|
|
|
66
67
|
routerHttpPort: number;
|
|
67
68
|
powerType: PowerType;
|
|
68
69
|
powerSchedule: PowerSchedule;
|
|
70
|
+
status: RouterStatus;
|
|
69
71
|
vpnServer?: string;
|
|
70
72
|
netbirdUrl?: string;
|
|
71
73
|
};
|
|
74
|
+
export type RouterUpdatePayload = Partial<RouterCreatePayload> & {
|
|
75
|
+
kitId?: number | null;
|
|
76
|
+
};
|
|
72
77
|
export type RouterQRScanResult = {
|
|
73
78
|
raw: string;
|
|
74
79
|
timestamp: string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { DateType } from "@evercam/api/types";
|
|
2
|
+
export declare enum Operator {
|
|
3
|
+
AND = "and",
|
|
4
|
+
OR = "or"
|
|
5
|
+
}
|
|
2
6
|
type sortby = string;
|
|
3
7
|
type sortDirection = "asc" | "desc";
|
|
4
8
|
export type SortingUrlParam = `${sortby}|${sortDirection}`;
|
|
@@ -105,25 +109,18 @@ export declare enum InfoPage {
|
|
|
105
109
|
DroneView = "drone-view",
|
|
106
110
|
Compare = "compare",
|
|
107
111
|
Timeline = "timeline",
|
|
108
|
-
WeatherReport = "weather-report"
|
|
112
|
+
WeatherReport = "weather-report",
|
|
113
|
+
Cameras = "cameras"
|
|
109
114
|
}
|
|
110
115
|
export declare enum DownloadFileType {
|
|
111
116
|
Jpeg = "jpeg",
|
|
112
117
|
Pdf = "pdf",
|
|
113
118
|
Csv = "csv"
|
|
114
119
|
}
|
|
115
|
-
export declare enum
|
|
116
|
-
|
|
120
|
+
export declare enum PromiseSettledStatus {
|
|
121
|
+
Fulfilled = "fulfilled",
|
|
122
|
+
Rejected = "rejected"
|
|
117
123
|
}
|
|
118
|
-
export type FeedbackPayload = {
|
|
119
|
-
id?: number;
|
|
120
|
-
user: string;
|
|
121
|
-
text: string;
|
|
122
|
-
type: string;
|
|
123
|
-
context: FeedbackContext;
|
|
124
|
-
messageId?: number;
|
|
125
|
-
conversationId?: number;
|
|
126
|
-
};
|
|
127
124
|
export type Stringified<T> = string & {
|
|
128
125
|
[P in keyof T]: {
|
|
129
126
|
"_ value": T[P];
|
|
@@ -133,18 +130,41 @@ export interface JSON {
|
|
|
133
130
|
stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
|
|
134
131
|
parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
|
|
135
132
|
}
|
|
133
|
+
export type TuplePoint2D = [number, number];
|
|
134
|
+
export type TuplePoint3D = [number, number, number];
|
|
135
|
+
export type Point2D = {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
};
|
|
139
|
+
export type Point3D = {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
z: number;
|
|
143
|
+
};
|
|
144
|
+
export type GeoPoint = {
|
|
145
|
+
lat: number;
|
|
146
|
+
lng: number;
|
|
147
|
+
};
|
|
136
148
|
export type Exid = string;
|
|
137
|
-
export type EntityByExid<Entity
|
|
149
|
+
export type EntityByExid<Entity> = Record<Exid, Entity>;
|
|
138
150
|
export type BatteryVoltage = {
|
|
139
151
|
date: DateType;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
};
|
|
152
|
+
maxValue: number;
|
|
153
|
+
minValue: number;
|
|
154
|
+
};
|
|
155
|
+
export declare enum GlobalSearchResource {
|
|
156
|
+
Projects = "projects",
|
|
157
|
+
Users = "users",
|
|
158
|
+
Cameras = "cameras",
|
|
159
|
+
Companies = "companies",
|
|
160
|
+
Sims = "sims",
|
|
161
|
+
Routers = "routers"
|
|
162
|
+
}
|
|
143
163
|
export type GlobalSearchQueryParams = PaginationParams & {
|
|
144
|
-
resource:
|
|
164
|
+
resource: GlobalSearchResource;
|
|
145
165
|
term: string;
|
|
146
|
-
email
|
|
147
|
-
featureFlag
|
|
166
|
+
email?: string;
|
|
167
|
+
featureFlag?: string;
|
|
148
168
|
};
|
|
149
169
|
export type TimelineDateInterval = {
|
|
150
170
|
fromDate: string;
|
|
@@ -159,16 +179,6 @@ export declare enum TimelinePrecision {
|
|
|
159
179
|
Minute = "minute",
|
|
160
180
|
Events = "events"
|
|
161
181
|
}
|
|
162
|
-
export type EntityStatsQueryParams = {
|
|
163
|
-
period: "day" | "week" | "month";
|
|
164
|
-
startDate: string;
|
|
165
|
-
endDate: string;
|
|
166
|
-
};
|
|
167
|
-
export type EntityStat = {
|
|
168
|
-
period: string;
|
|
169
|
-
name: string;
|
|
170
|
-
count: number;
|
|
171
|
-
};
|
|
172
182
|
export declare enum TaskStatus {
|
|
173
183
|
Idle = "idle",
|
|
174
184
|
Loading = "loading",
|