@evercam/api 1.0.0-0ddf6c628 → 1.0.0-112ba26f5

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 (87) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +105 -96
  4. package/dist/api/api/aiApi.d.ts +131 -7
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/evercamApi.d.ts +62 -35
  7. package/dist/api/api/evercamLabsApi.d.ts +9 -18
  8. package/dist/api/api/exNvrApi.d.ts +1 -1
  9. package/dist/api/api/index.d.ts +1 -0
  10. package/dist/api/api/ingestApi.d.ts +89 -66
  11. package/dist/api/api/reportsApi.d.ts +15 -0
  12. package/dist/api/types/360.d.ts +178 -86
  13. package/dist/api/types/admin.d.ts +37 -3
  14. package/dist/api/types/aiConfigs.d.ts +244 -0
  15. package/dist/api/types/analytics.d.ts +66 -37
  16. package/dist/api/types/anpr.d.ts +36 -6
  17. package/dist/api/types/apiKey.d.ts +70 -0
  18. package/dist/api/types/auditLogs.d.ts +179 -21
  19. package/dist/api/types/authz.d.ts +72 -0
  20. package/dist/api/types/automation.d.ts +32 -4
  21. package/dist/api/types/axios.d.ts +12 -12
  22. package/dist/api/types/bim.d.ts +55 -12
  23. package/dist/api/types/camera.d.ts +238 -126
  24. package/dist/api/types/comments.d.ts +67 -26
  25. package/dist/api/types/company.d.ts +11 -5
  26. package/dist/api/types/compare.d.ts +1 -1
  27. package/dist/api/types/connector.d.ts +2 -0
  28. package/dist/api/types/detections.d.ts +9 -10
  29. package/dist/api/types/drone.d.ts +95 -6
  30. package/dist/api/types/emailMessages.d.ts +27 -0
  31. package/dist/api/types/errors.d.ts +19 -2
  32. package/dist/api/types/gateReport.d.ts +9 -23
  33. package/dist/api/types/gateReportManagement.d.ts +170 -0
  34. package/dist/api/types/hammertech.d.ts +98 -0
  35. package/dist/api/types/hdd.d.ts +1 -1
  36. package/dist/api/types/index.d.ts +11 -2
  37. package/dist/api/types/ingest.d.ts +200 -20
  38. package/dist/api/types/kit.d.ts +97 -117
  39. package/dist/api/types/map.d.ts +12 -0
  40. package/dist/api/types/media.d.ts +31 -3
  41. package/dist/api/types/notification.d.ts +52 -2
  42. package/dist/api/types/nvr.d.ts +39 -8
  43. package/dist/api/types/observationEvents.d.ts +167 -0
  44. package/dist/api/types/observations.d.ts +89 -0
  45. package/dist/api/types/planner.d.ts +98 -8
  46. package/dist/api/types/posthog.d.ts +56 -0
  47. package/dist/api/types/progressPhoto.d.ts +38 -25
  48. package/dist/api/types/project.d.ts +75 -24
  49. package/dist/api/types/recording.d.ts +8 -13
  50. package/dist/api/types/recycleBin.d.ts +8 -2
  51. package/dist/api/types/reports.d.ts +108 -0
  52. package/dist/api/types/ring.d.ts +16 -16
  53. package/dist/api/types/roi.d.ts +3 -11
  54. package/dist/api/types/routeParams.d.ts +1 -0
  55. package/dist/api/types/router.d.ts +15 -10
  56. package/dist/api/types/shared.d.ts +39 -29
  57. package/dist/api/types/shares.d.ts +0 -13
  58. package/dist/api/types/sim.d.ts +18 -6
  59. package/dist/api/types/siteAnalytics.d.ts +3 -5
  60. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  61. package/dist/api/types/siteView.d.ts +79 -0
  62. package/dist/api/types/snapshots.d.ts +98 -13
  63. package/dist/api/types/socket.d.ts +4 -0
  64. package/dist/api/types/sso.d.ts +11 -37
  65. package/dist/api/types/storageProvider.d.ts +16 -5
  66. package/dist/api/types/storyblok.d.ts +0 -13
  67. package/dist/api/types/timelapse.d.ts +6 -9
  68. package/dist/api/types/user.d.ts +42 -32
  69. package/dist/api/types/widget.d.ts +13 -4
  70. package/dist/api/utils.d.ts +1 -1
  71. package/dist/index.js +2331 -966
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.umd.cjs +1 -1
  74. package/dist/index.umd.cjs.map +1 -1
  75. package/dist/shared/types/components.d.ts +530 -43
  76. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  77. package/dist/shared/types/droneUpload.d.ts +93 -0
  78. package/dist/shared/types/imagePlayer.d.ts +8 -1
  79. package/dist/shared/types/index.d.ts +5 -0
  80. package/dist/shared/types/observations.d.ts +25 -0
  81. package/dist/shared/types/rbac.d.ts +67 -0
  82. package/dist/shared/types/report.d.ts +107 -0
  83. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  84. package/dist/shared/utils/datePresets.d.ts +31 -0
  85. package/package.json +4 -2
  86. package/dist/api/types/copilot.d.ts +0 -162
  87. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,23 +1,24 @@
1
- import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
2
- export type ProgressPhotosCreateUpdateRequestPayload = {
3
- cameraExids?: string;
4
- notifyDays?: string;
5
- compareDelay?: AutomationType;
6
- notifyTime?: string;
7
- provider?: string;
8
- type?: string;
9
- config?: {
10
- compareDelay?: AutomationType;
11
- period?: number;
12
- recipients?: string;
13
- projectId?: number;
14
- companyId?: number;
15
- catergoryId?: string;
16
- };
17
- subject?: string;
18
- isPaused?: boolean;
19
- timezone?: string;
20
- };
1
+ import { Automation, AutomationEmailRecipient, DateType, PaginationParams } from "@evercam/api/types";
2
+ export type ProgressPhotosConfig = Partial<{
3
+ compareDelay: number;
4
+ period: number;
5
+ recipients: string;
6
+ projectId: number;
7
+ companyId: number;
8
+ categoryId: string;
9
+ }>;
10
+ export type ProgressPhotosCreateUpdateRequestPayload = Partial<{
11
+ cameraExids: string;
12
+ notifyDays: string;
13
+ compareDelay: number;
14
+ notifyTime: string;
15
+ provider: string;
16
+ type: string;
17
+ config: ProgressPhotosConfig;
18
+ subject: string;
19
+ isPaused: boolean;
20
+ timezone: string;
21
+ }>;
21
22
  export type ProgressPhotosUnSubscribeParams = {
22
23
  email: string;
23
24
  token?: string;
@@ -28,6 +29,15 @@ export type ProgressPhotosResponsePayload = {
28
29
  export type ProgressPhotoItemResponsePayload = {
29
30
  progressPhotos: Automation;
30
31
  };
32
+ export type ProgressPhotoUpdateResponse = {
33
+ id: string;
34
+ cameraIds: string;
35
+ cameraNames: string;
36
+ requesterName: string;
37
+ requesterEmail: string;
38
+ createdAt: string;
39
+ notifyDays: string;
40
+ };
31
41
  export declare enum AutomationDialogType {
32
42
  Create = "create",
33
43
  Edit = "edit",
@@ -39,18 +49,20 @@ export type CameraOption = {
39
49
  };
40
50
  export interface ProgressPhotoItem {
41
51
  id: number;
42
- cameras: CameraOption[] | string[] | string;
52
+ name: string;
53
+ type: string;
54
+ cameras: Array<CameraOption | string> | string;
43
55
  insertedAt: string;
44
56
  provider: string;
45
57
  config: {
46
- recipients: string | string[];
58
+ recipients: string | AutomationEmailRecipient[];
47
59
  sendSnapshotAs: string;
48
60
  };
49
61
  isPaused: boolean;
50
62
  notifyDays: string | string[];
51
63
  notifyTime: string;
52
- api_id: string;
53
- api_key: string;
64
+ apiId: string;
65
+ apiKey: string;
54
66
  timezone: string;
55
67
  exid: string;
56
68
  fullname: string;
@@ -62,7 +74,7 @@ export type ProgressPhotosQueryParams = PaginationParams & {
62
74
  timezone: string;
63
75
  cameras: string;
64
76
  };
65
- export type progressPhotosHistoryQueryParams = {
77
+ export type progressPhotosHistoryQueryParams = PaginationParams & {
66
78
  insertedAt: DateType[];
67
79
  recipients: string;
68
80
  subject: string;
@@ -75,4 +87,5 @@ export type ProgressPhotosHistory = {
75
87
  failedCameraIds: string;
76
88
  subject: string;
77
89
  recipients: string;
90
+ insertedAt: string;
78
91
  };
@@ -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?: unknown;
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 | string>;
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,13 +128,24 @@ export type ProjectCreateRequestPayload = {
117
128
  ownerId: number;
118
129
  cameras: string[];
119
130
  };
120
- export type ProjectCreateResponse = {
121
- name: string;
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;
@@ -150,12 +172,17 @@ export type ProjectUserProperty = {
150
172
  lastSeenAt: string;
151
173
  persona: string;
152
174
  };
153
- export type ProjectUsers = {
154
- cameras: {
155
- exid: string;
156
- name: string;
157
- }[];
158
- users: Record<string, ProjectUserProperty[]>;
175
+ export type AdminProjectInvite = {
176
+ id: number;
177
+ email: string;
178
+ role: ProjectRole;
179
+ permissions: string[];
180
+ subRoles: RoleSubRole[];
181
+ };
182
+ export type AdminProjectUsersResponsePayload = {
183
+ users: ProjectUserWithRole[];
184
+ invites: AdminProjectInvite[];
185
+ errors: ProjectUserError[];
159
186
  };
160
187
  export type ProjectRole = {
161
188
  id: number;
@@ -163,6 +190,7 @@ export type ProjectRole = {
163
190
  };
164
191
  export type ProjectMember = {
165
192
  id: string;
193
+ key?: string;
166
194
  email: string;
167
195
  fullname: string;
168
196
  lastSeenAt?: string;
@@ -172,10 +200,12 @@ export type ProjectMember = {
172
200
  resourceId: string;
173
201
  roleId: number;
174
202
  }>;
175
- company?: string | null;
203
+ company?: {
204
+ name: string;
205
+ } | null;
176
206
  };
177
207
  export type ProjectInvite = {
178
- id?: string;
208
+ id: number;
179
209
  email: string;
180
210
  role?: ProjectRole;
181
211
  permissions?: string[];
@@ -218,20 +248,41 @@ export type ProjectUsersResponsePayload = {
218
248
  invites: ProjectInvite[];
219
249
  errors: ProjectUserError[];
220
250
  };
251
+ export type MentionableUser = {
252
+ id: number;
253
+ fullname: string;
254
+ email: string;
255
+ };
221
256
  export type ProjectStorageQueryParams = PaginationParams & {
222
257
  cameraName: string;
223
258
  cameraExid: CameraExid;
259
+ projectName: string;
260
+ projectExid: string;
261
+ archiveTier: ProjectArchiveTier;
262
+ status: ProjectStorageStatus;
263
+ requester: string;
264
+ createdAtFrom: string;
265
+ createdAtTo: string;
266
+ scheduleAtFrom: string;
267
+ scheduleAtTo: string;
268
+ };
269
+ export type ProjectStorageCamera = {
270
+ archiveId: number;
271
+ name: string;
272
+ exid: CameraExid;
224
273
  status: ProjectStorageStatus;
274
+ errorMessage: string | null;
225
275
  };
226
276
  export type ProjectStorage = {
227
277
  id: number;
228
- cameraExid: CameraExid;
229
- cameraName: string;
230
- projectExid: string;
231
- projectName: string;
232
- status: ProjectStorageStatus;
233
- requestor: string;
234
- created_at: DateType;
278
+ exid: string;
279
+ name: string;
280
+ archiveTier: ProjectArchiveTier | null;
281
+ endDate: string | null;
282
+ requester: string | null;
283
+ scheduleAt: string | null;
284
+ insertedAt: DateType;
285
+ cameras: ProjectStorageCamera[];
235
286
  };
236
287
  export declare enum ProjectStorageStatus {
237
288
  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 NearestSnapshotRequestPayload = {
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
  };
@@ -76,6 +76,7 @@ export declare enum CloudRecordingDuration {
76
76
  Month = 30,
77
77
  ThreeMonths = 90
78
78
  }
79
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
79
80
  export declare enum CloudRecordingStatus {
80
81
  On = "on",
81
82
  Off = "off",
@@ -103,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
103
104
  }
104
105
  export declare enum VpnServer {
105
106
  None = "None",
106
- OpenVPN1 = "OpenVPN1",
107
- OpenVPN2 = "OpenVPN2",
108
- OpenVPN3 = "OpenVPN3",
109
- OpenVPN4 = "OpenVPN4",
110
- OpenVPN5 = "OpenVPN5",
111
- PPTP1 = "PPTP1",
112
- PPTP2 = "PPTP2",
113
107
  WireGuard1 = "WireGuard1",
114
108
  WireGuard2 = "WireGuard2",
115
109
  WireGuard3 = "WireGuard3",
@@ -119,5 +113,6 @@ export declare enum VpnServer {
119
113
  WireGuard7 = "WireGuard7",
120
114
  WireGuard8 = "WireGuard8",
121
115
  WireGuard9 = "WireGuard9",
122
- WireGuard10 = "WireGuard10"
116
+ WireGuard10 = "WireGuard10",
117
+ WgHub = "WgHub"
123
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?: number;
8
+ id: number;
4
9
  exid: string;
5
10
  name: string;
6
- type: string;
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,108 @@
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
+ q?: string;
102
+ from?: string;
103
+ to?: string;
104
+ sort?: string;
105
+ direction?: "asc" | "desc";
106
+ offset?: number;
107
+ limit?: number;
108
+ };
@@ -1,8 +1,23 @@
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
+ };
1
13
  export type RingDevice = {
2
14
  deviceId: string;
3
15
  name: string;
4
- deviceType: string;
16
+ /** Resolved from Ring's `device-status`; null when Ring did not return it. */
17
+ online: boolean | null;
18
+ deviceType: string | null;
5
19
  firmwareVersion: string | null;
20
+ /** Always null — Ring's API does not expose device power level. */
6
21
  batteryLife: number | null;
7
22
  location: string | null;
8
23
  imported: boolean;
@@ -13,21 +28,6 @@ export type RingDevice = {
13
28
  export type RingDevicesResponsePayload = {
14
29
  devices: RingDevice[];
15
30
  };
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
31
  export type RingMoveDevicePayload = {
32
32
  projectExid: string;
33
33
  };
@@ -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,6 +1,7 @@
1
1
  export type RouteParams = {
2
2
  projectExid?: string;
3
3
  cameraExid?: string;
4
+ mediaExid?: string;
4
5
  timestamp?: string;
5
6
  fromDate?: string;
6
7
  toDate?: string;
@@ -1,4 +1,4 @@
1
- import { Camera, PaginationParams, Project, Sim } from "@evercam/api/types";
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
- kitId: number | null;
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: string;
22
+ netbirdUrl?: string;
22
23
  status: RouterStatus;
23
24
  powerType: PowerType;
24
- powerSchedule: string;
25
- battery?: {
25
+ powerSchedule: PowerSchedule;
26
+ battery: {
26
27
  lastVoltage: number;
27
28
  lastSeen: string;
28
- };
29
- sims: Array<Pick<Sim, "id" | "number">>;
29
+ } | null;
30
+ sims: SimSummary[];
30
31
  billPayers?: Array<RouterBillPayer>;
31
32
  simProviders?: Array<SimProvider>;
32
- projects?: Pick<Project, "exid" | "id" | "name">[];
33
- cameras?: Pick<Camera, "id" | "name">[];
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;