@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.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +105 -96
- package/dist/api/api/aiApi.d.ts +131 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +62 -35
- 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 +89 -66
- 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 +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +66 -37
- package/dist/api/types/anpr.d.ts +36 -6
- 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 +32 -4
- package/dist/api/types/axios.d.ts +12 -12
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +238 -126
- 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 +2 -0
- package/dist/api/types/detections.d.ts +9 -10
- 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 +9 -23
- 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 +11 -2
- package/dist/api/types/ingest.d.ts +200 -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 +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- 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 +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +75 -24
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +108 -0
- package/dist/api/types/ring.d.ts +16 -16
- 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 +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -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 +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- 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 +42 -32
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2331 -966
- 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 +530 -43
- 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 +67 -0
- package/dist/shared/types/report.d.ts +107 -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 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FootageCreateUpdatePayload, HDDCreateUpdatePayload, HDDsQueryParams } from "@evercam/api/types/hdd";
|
|
2
2
|
import type { OAuthClient, OAuthClientWithSecret, AdminCreateOAuthClientPayload, UpdateOAuthClientPayload } from "@evercam/api/types/oauth";
|
|
3
|
-
import type {
|
|
3
|
+
import type { CameraUpdateRequestPayload, PaginatedItems, AdminCamera, Camera, CameraHddInfo, AdminProjectDetail, AdminProjectListItem, AdminHdd, AdminUser, ProgressPhotosCreateUpdateRequestPayload, Kit, PatchPayload, AdminMediaFilterQueryParams, Media, MediaDeleteRequestPayload, AuditLogsParams, AuditLog, SnapshotExtractionQueryParams, SnapshotExtractionCreatePayload, SnapshotExtraction, CameraCreateRequestPayload, CameraDeletePayload, SnapshotTestPayload, SnapshotTestResponse, DuplicatedCameraFields, DuplicatedCameraResponse, MergeDuplicatedCameraPayload, FetchCameraQueryParams, DeleteSnapshotQueryParams, CameraNote, GetCameraNotesParams, CreateCameraNotePayload, CompanyQueryParams, CompanySummary, CompanyUpdatePayload, CompanyUpdateResponse, SsoProvider, SsoUpdatePayload, SsoCreatePayload, SuppressionsQueryParams, Suppression, CreatedSnapshotExtraction, SnapshotExtractionType, KitQueryParams, KitMetricStatsEntry, CamerasStatusLogsQueryParams, CamerasStatusLog, CameraAuditLogsQueryParams, CameraAuditLog, NvrQueryParams, Nvr, AdminNvr, SiteVisitCamerasQueryParams, SiteVisitCamera, OfflineCameraQueryParams, OfflineCamera, OfflineCameraNoteResponse, UserStatsResponse, UserCameraResponse, UserProjectResponse, ProjectCamera, ProjectsQueryParams, ProjectStatusStats, ProjectCreateRequestPayload, ProjectCreateResponse, ProjectUpdateRequestPayload, RouterQueryParams, Router, RouterCreatePayload, RouterUpdatePayload, GlobalSearchQueryParams, SimCreateUpdatePayload, SimsQueryParams, Sim, SendSmsPayload, SendSmsResponse, SmsHistory, SmsQueryParams, Sms, ProgressPhotosQueryParams, ProgressPhotoItem, progressPhotosHistoryQueryParams, ProgressPhotosHistory, ProgressPhotoUpdateResponse, AdminUserUpdateRequestPayload, AdminQueryParams, Admin, ImpersonateUserResponse, AdminUserQueryParams, AdminCompareQueryParams, AdminCompare, NvrCreatePayload, WidgetsListRequestPayload, AdminWidget, AdminWidgetFull, AdminApiKey, AdminApiKeysRequestParams, UpdateAdminApiKeyPayload, WidgetPayload, PaginationParams, KitStorageQueryParams, AdminCompanyUser, AdminCompanyProject, CompanyKit, CompanyCameraSummary, KitStorage, KitFootageRequestPayload, CommentsListRequestPayload, AdminComment, AdminProjectUsersResponsePayload, KitFootage, KitAlarmItem, KitSupportChecklist, RecycleBin, RecycleBinQueryParams, TransferCloudRecordingsQueryParams, SnapshotTransfer, SnapshotTransfersQueryParams, CheckCameraPortPayload, CameraStatusLog, CameraStatus, KitBox, KitBoxCreatePayload, KitBoxQueryParams, AdminInvite, AdminSearchItem, WithZohoParams, ZohoDeskTicketSearchResponse, JsonObject, ProjectStorageQueryParams, ProjectStorage, StorageProvider, AnprExtraction, AnprExtractionCreatePayload } from "@evercam/api/types";
|
|
4
4
|
import { KitMetricId } from "@evercam/api/types";
|
|
5
5
|
import { Tag } from "@evercam/api/types/tag";
|
|
6
6
|
import type { AxiosRequestConfig } from "axios";
|
|
@@ -10,43 +10,36 @@ type AxiosPaginationRequestParams = AxiosRequestConfig & {
|
|
|
10
10
|
export declare const AdminApi: {
|
|
11
11
|
mediaHub: {
|
|
12
12
|
getAllMedia(params: {
|
|
13
|
-
params: Partial<
|
|
13
|
+
params: Partial<AdminMediaFilterQueryParams>;
|
|
14
14
|
}): Promise<PaginatedItems<Media>>;
|
|
15
15
|
deleteMedia(params: Partial<MediaDeleteRequestPayload>): Promise<void>;
|
|
16
16
|
};
|
|
17
17
|
auditLogs: {
|
|
18
18
|
getAuditLogs(params: AxiosRequestConfig & {
|
|
19
19
|
params: Partial<AuditLogsParams>;
|
|
20
|
-
}): Promise<PaginatedItems<AuditLog
|
|
20
|
+
}): Promise<PaginatedItems<AuditLog>>;
|
|
21
21
|
};
|
|
22
22
|
cameras: {
|
|
23
23
|
getCamerasStats(params: {
|
|
24
24
|
params: {
|
|
25
25
|
email?: string;
|
|
26
26
|
};
|
|
27
|
-
}): Promise<
|
|
28
|
-
rebootCamera(cameraId: string): Promise<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
unmaskSecretKeys: boolean;
|
|
36
|
-
}): Promise<StorageProvidersResponsePayload>;
|
|
37
|
-
createStorageProvider(cameraId: string, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
38
|
-
updateStorageProvider(cameraId: string, providerId: number, payload: StorageProvider): Promise<StorageProvidersResponsePayload>;
|
|
39
|
-
getStorageDetails(): Promise<JsonObject>;
|
|
27
|
+
}): Promise<Partial<Record<CameraStatus, number>>>;
|
|
28
|
+
rebootCamera(cameraId: string): Promise<void>;
|
|
29
|
+
focusCamera(cameraId: string, device: string): Promise<void>;
|
|
30
|
+
getStorageProviders(cameraId: string, params?: {
|
|
31
|
+
unmaskSecretKeys?: boolean;
|
|
32
|
+
}): Promise<StorageProvider[]>;
|
|
33
|
+
createStorageProvider(cameraId: string, payload: StorageProvider): Promise<StorageProvider>;
|
|
34
|
+
updateStorageProvider(cameraId: string, providerId: number, payload: StorageProvider): Promise<StorageProvider>;
|
|
40
35
|
getSnapshotExtractions(params: AxiosRequestConfig & {
|
|
41
|
-
params: Partial<
|
|
36
|
+
params: Partial<SnapshotExtractionQueryParams>;
|
|
42
37
|
}): Promise<PaginatedItems<SnapshotExtraction>>;
|
|
43
38
|
createCameras(payload: CameraCreateRequestPayload): Promise<{
|
|
44
|
-
cameras: [
|
|
39
|
+
cameras: [Camera];
|
|
45
40
|
}>;
|
|
46
41
|
deleteCamera(exid: string, payload: CameraDeletePayload): Promise<void>;
|
|
47
|
-
restoreCamera(exid: string): Promise<
|
|
48
|
-
message: string;
|
|
49
|
-
}>;
|
|
42
|
+
restoreCamera(exid: string): Promise<AdminCamera>;
|
|
50
43
|
testSnapshot(payload: SnapshotTestPayload): Promise<SnapshotTestResponse>;
|
|
51
44
|
getDuplicateCameras(params: {
|
|
52
45
|
params: {
|
|
@@ -62,7 +55,7 @@ export declare const AdminApi: {
|
|
|
62
55
|
}, extraConfig?: AxiosRequestConfig): Promise<PaginatedItems<AdminCamera>>;
|
|
63
56
|
getCompares(params: {
|
|
64
57
|
params: AdminCompareQueryParams;
|
|
65
|
-
}): Promise<PaginatedItems<AdminCompare
|
|
58
|
+
}): Promise<PaginatedItems<AdminCompare>>;
|
|
66
59
|
getCameraDetails(exid: string): Promise<AdminCamera>;
|
|
67
60
|
getCameraStatusLogs(exid: string, params: {
|
|
68
61
|
params: {
|
|
@@ -72,12 +65,10 @@ export declare const AdminApi: {
|
|
|
72
65
|
}): Promise<CameraStatusLog[]>;
|
|
73
66
|
deleteSnapshots(cameraId: string, params: DeleteSnapshotQueryParams): Promise<void>;
|
|
74
67
|
transferCloudRecordings(cameraId: string, params: TransferCloudRecordingsQueryParams): Promise<void>;
|
|
75
|
-
refreshDeviceSettings(cameraId: string): Promise<
|
|
76
|
-
|
|
77
|
-
saveCameraNote(cameraId: string, params: CreateCameraNotePayload): Promise<{
|
|
78
|
-
message: string;
|
|
68
|
+
refreshDeviceSettings(cameraId: string): Promise<{
|
|
69
|
+
hddInfo: CameraHddInfo | CameraHddInfo[];
|
|
79
70
|
}>;
|
|
80
|
-
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<
|
|
71
|
+
update(cameraId: string, params: CameraUpdateRequestPayload): Promise<AdminCamera>;
|
|
81
72
|
transferOwnership(cameraId: string, newOwnerId: number): Promise<void>;
|
|
82
73
|
portCheck(payload: {
|
|
83
74
|
params: CheckCameraPortPayload;
|
|
@@ -96,27 +87,22 @@ export declare const AdminApi: {
|
|
|
96
87
|
getCompanies(params: {
|
|
97
88
|
params: Partial<CompanyQueryParams>;
|
|
98
89
|
}): Promise<PaginatedItems<CompanySummary>>;
|
|
99
|
-
updateCompany(id: string, params: CompanyUpdatePayload): Promise<
|
|
90
|
+
updateCompany(id: string, params: CompanyUpdatePayload): Promise<CompanyUpdateResponse>;
|
|
100
91
|
deleteCompany(params: {
|
|
101
92
|
ids: string | string[];
|
|
102
93
|
}): Promise<{
|
|
103
94
|
success: true;
|
|
104
95
|
}>;
|
|
105
|
-
reSyncCompanies(params: {
|
|
106
|
-
companyIds: string[];
|
|
107
|
-
}): Promise<{
|
|
108
|
-
success: true;
|
|
109
|
-
}>;
|
|
110
96
|
};
|
|
111
97
|
sso: {
|
|
112
|
-
getProviders(params
|
|
98
|
+
getProviders(params?: {
|
|
113
99
|
params: PaginationParams;
|
|
114
|
-
}): Promise<
|
|
115
|
-
|
|
116
|
-
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
117
|
-
deleteProviders(ids: string[]): Promise<{
|
|
118
|
-
success: true;
|
|
100
|
+
}): Promise<{
|
|
101
|
+
items: SsoProvider[];
|
|
119
102
|
}>;
|
|
103
|
+
updateProvider(id: number, params: SsoUpdatePayload): Promise<SsoProvider>;
|
|
104
|
+
createProvider(params: SsoCreatePayload): Promise<SsoProvider>;
|
|
105
|
+
deleteProviders(ids: number[]): Promise<void>;
|
|
120
106
|
};
|
|
121
107
|
oauthClients: {
|
|
122
108
|
index(): Promise<{
|
|
@@ -132,83 +118,95 @@ export declare const AdminApi: {
|
|
|
132
118
|
performEmailing(template: string, params: JsonObject): Promise<void>;
|
|
133
119
|
suppressions(params: {
|
|
134
120
|
params: SuppressionsQueryParams;
|
|
135
|
-
}): Promise<PaginatedItems<Suppression
|
|
121
|
+
}): Promise<PaginatedItems<Suppression>>;
|
|
136
122
|
deleteSuppression(id: number): Promise<void>;
|
|
137
123
|
};
|
|
138
124
|
extractions: {
|
|
139
125
|
updateCloudRecordings(cameraId: string, params: JsonObject): Promise<void>;
|
|
140
|
-
addExtraction(cameraId: string, params:
|
|
141
|
-
getExtractionStatus(cameraId: string, extractionId: number, params: {
|
|
142
|
-
type: SnapshotExtractionType;
|
|
143
|
-
}): Promise<{
|
|
144
|
-
status: string;
|
|
145
|
-
jpegs: number;
|
|
146
|
-
}>;
|
|
126
|
+
addExtraction(cameraId: string, params: SnapshotExtractionCreatePayload): Promise<CreatedSnapshotExtraction>;
|
|
147
127
|
deleteSnapshotExtraction(cameraId: string, extractionId: number, params: {
|
|
148
128
|
type: SnapshotExtractionType;
|
|
129
|
+
hardDelete?: boolean;
|
|
149
130
|
}): Promise<void>;
|
|
131
|
+
getExtraction(cameraExid: string, extractionId: number): Promise<SnapshotExtraction>;
|
|
132
|
+
reprocessExtraction(cameraId: string, extractionId: number): Promise<CreatedSnapshotExtraction>;
|
|
133
|
+
};
|
|
134
|
+
anprExtractions: {
|
|
135
|
+
list(cameraExid: string): Promise<{
|
|
136
|
+
data: AnprExtraction[];
|
|
137
|
+
}>;
|
|
138
|
+
create(cameraExid: string, payload: AnprExtractionCreatePayload): Promise<{
|
|
139
|
+
data: AnprExtraction;
|
|
140
|
+
}>;
|
|
141
|
+
delete(cameraExid: string, id: number): Promise<{
|
|
142
|
+
message: string;
|
|
143
|
+
}>;
|
|
150
144
|
};
|
|
151
145
|
kits: {
|
|
152
146
|
getAllKits(params: AxiosRequestConfig & {
|
|
153
147
|
params: KitQueryParams;
|
|
154
|
-
}): Promise<PaginatedItems<Kit
|
|
148
|
+
}): Promise<PaginatedItems<Kit>>;
|
|
155
149
|
getKit(kitId: number): Promise<Kit>;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
getKitStats({ kitId, metric, fromDate, toDate, }: {
|
|
150
|
+
updateKit(id: number, params: PatchPayload<Kit>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
151
|
+
deleteKit(id: number, params: JsonObject): Promise<void>;
|
|
152
|
+
getKitStats<T = KitMetricStatsEntry>({ kitId, metric, fromDate, toDate, }: {
|
|
160
153
|
kitId: number;
|
|
161
154
|
metric: KitMetricId;
|
|
162
155
|
fromDate: string;
|
|
163
156
|
toDate: string;
|
|
164
|
-
}): Promise<
|
|
157
|
+
}): Promise<T[]>;
|
|
165
158
|
attachTag(kitId: number, tagId: number): Promise<void>;
|
|
166
159
|
detachTag(kitId: number, tagId: number): Promise<void>;
|
|
167
160
|
getStorages(params: {
|
|
168
|
-
params:
|
|
169
|
-
}): Promise<PaginatedItems<KitStorage
|
|
161
|
+
params: Partial<KitStorageQueryParams>;
|
|
162
|
+
}): Promise<PaginatedItems<KitStorage>>;
|
|
170
163
|
getFootage(id: number, params?: {
|
|
171
164
|
params?: KitFootageRequestPayload;
|
|
172
165
|
}): Promise<KitFootage[]>;
|
|
173
166
|
getAlarms(kitId: number): Promise<KitAlarmItem[]>;
|
|
167
|
+
runSupportChecklist(kitId: number): Promise<KitSupportChecklist>;
|
|
168
|
+
transferProject(kitId: number, projectExid: string): Promise<Kit>;
|
|
174
169
|
getBoxes(params: {
|
|
175
170
|
params: Partial<KitBoxQueryParams>;
|
|
176
171
|
}): Promise<PaginatedItems<KitBox>>;
|
|
177
172
|
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
173
|
+
updateBox(id: string, params: KitBoxCreatePayload): Promise<KitBox>;
|
|
178
174
|
};
|
|
179
175
|
logs: {
|
|
180
176
|
getAllCamerasStatusLogs(params: {
|
|
181
|
-
params:
|
|
177
|
+
params: CamerasStatusLogsQueryParams;
|
|
182
178
|
}): Promise<{
|
|
183
|
-
data:
|
|
179
|
+
data: CamerasStatusLog[];
|
|
184
180
|
}>;
|
|
185
|
-
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog
|
|
186
|
-
|
|
181
|
+
getCameraLogs(cameraId: string, params: CameraAuditLogsQueryParams): Promise<PaginatedItems<CameraAuditLog>>;
|
|
182
|
+
};
|
|
183
|
+
notes: {
|
|
184
|
+
togglePin(id: string | number): Promise<CameraNote>;
|
|
185
|
+
getNotes(cameraExid: string, params?: GetCameraNotesParams): Promise<PaginatedItems<CameraNote>>;
|
|
186
|
+
createNote(cameraExid: string, params: CreateCameraNotePayload): Promise<CameraNote>;
|
|
187
187
|
};
|
|
188
188
|
nvrs: {
|
|
189
189
|
getNvrs(params: {
|
|
190
190
|
params: NvrQueryParams;
|
|
191
|
-
}): Promise<PaginatedItems<
|
|
191
|
+
}): Promise<PaginatedItems<AdminNvr>>;
|
|
192
192
|
createNvr(params: NvrCreatePayload): Promise<Nvr>;
|
|
193
|
-
updateNvr(id:
|
|
194
|
-
rebootNVR(cameraId: string): Promise<
|
|
195
|
-
message: string;
|
|
196
|
-
}>;
|
|
193
|
+
updateNvr(id: number, params: PatchPayload<Nvr>): Promise<Nvr>;
|
|
194
|
+
rebootNVR(cameraId: string): Promise<void>;
|
|
197
195
|
};
|
|
198
196
|
recycleBin: {
|
|
199
197
|
getAllDeleted(params: {
|
|
200
198
|
params: RecycleBinQueryParams;
|
|
201
|
-
}): Promise<PaginatedItems<RecycleBin
|
|
199
|
+
}): Promise<PaginatedItems<RecycleBin>>;
|
|
202
200
|
restore(params: {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
camera_ids?: number[];
|
|
202
|
+
project_ids?: number[];
|
|
203
|
+
kit_ids?: number[];
|
|
206
204
|
}): Promise<void>;
|
|
207
205
|
};
|
|
208
206
|
offlineCameras: {
|
|
209
207
|
getSiteVisitCameras(params: {
|
|
210
208
|
params: Partial<SiteVisitCamerasQueryParams>;
|
|
211
|
-
}): Promise<PaginatedItems<
|
|
209
|
+
}): Promise<PaginatedItems<SiteVisitCamera>>;
|
|
212
210
|
getOfflineCameras(params: {
|
|
213
211
|
params: Partial<OfflineCameraQueryParams>;
|
|
214
212
|
}): Promise<PaginatedItems<OfflineCamera>>;
|
|
@@ -223,22 +221,20 @@ export declare const AdminApi: {
|
|
|
223
221
|
show(exid: string, params?: WithZohoParams): Promise<{
|
|
224
222
|
data: AdminProjectDetail;
|
|
225
223
|
}>;
|
|
226
|
-
getUsers(id: string): Promise<
|
|
224
|
+
getUsers(id: string): Promise<AdminProjectUsersResponsePayload>;
|
|
227
225
|
getCameras(id: string): Promise<{
|
|
228
226
|
data: ProjectCamera[];
|
|
229
227
|
}>;
|
|
230
228
|
getProjectsStats(): Promise<ProjectStatusStats>;
|
|
231
229
|
createProject(params: ProjectCreateRequestPayload): Promise<ProjectCreateResponse>;
|
|
232
230
|
updateProject(projectExid: string, params: Partial<ProjectUpdateRequestPayload>): Promise<ProjectCreateResponse>;
|
|
233
|
-
deleteProject(projectExid: string): Promise<
|
|
234
|
-
success: boolean;
|
|
235
|
-
}>;
|
|
231
|
+
deleteProject(projectExid: string): Promise<void>;
|
|
236
232
|
addToProject(projectExid: string, params: {
|
|
237
233
|
cameraExids: string[];
|
|
238
234
|
}): Promise<void>;
|
|
239
235
|
getProjectStorages(params: {
|
|
240
236
|
params: Partial<ProjectStorageQueryParams>;
|
|
241
|
-
}): Promise<PaginatedItems<ProjectStorage
|
|
237
|
+
}): Promise<PaginatedItems<ProjectStorage>>;
|
|
242
238
|
retryProjectStorage(id: number): Promise<{
|
|
243
239
|
message: string;
|
|
244
240
|
}>;
|
|
@@ -246,12 +242,12 @@ export declare const AdminApi: {
|
|
|
246
242
|
routers: {
|
|
247
243
|
getRouters(params: {
|
|
248
244
|
params: Partial<RouterQueryParams>;
|
|
249
|
-
}): Promise<PaginatedItems<Router
|
|
245
|
+
}): Promise<PaginatedItems<Router>>;
|
|
250
246
|
getRouterTypes(): Promise<string[]>;
|
|
251
247
|
createRouter(params: RouterCreatePayload): Promise<{
|
|
252
248
|
routerId: number;
|
|
253
249
|
}>;
|
|
254
|
-
updateRouter(id: number, params:
|
|
250
|
+
updateRouter(id: number, params: RouterUpdatePayload): Promise<{
|
|
255
251
|
success: boolean;
|
|
256
252
|
}>;
|
|
257
253
|
deleteRouter(id: number): Promise<void>;
|
|
@@ -264,8 +260,8 @@ export declare const AdminApi: {
|
|
|
264
260
|
};
|
|
265
261
|
hdds: {
|
|
266
262
|
getHdds(payload: {
|
|
267
|
-
projectId:
|
|
268
|
-
companyId:
|
|
263
|
+
projectId: number;
|
|
264
|
+
companyId: number;
|
|
269
265
|
}): Promise<AdminHdd[]>;
|
|
270
266
|
getAllHdds(params: {
|
|
271
267
|
params: Partial<HDDsQueryParams>;
|
|
@@ -279,34 +275,40 @@ export declare const AdminApi: {
|
|
|
279
275
|
};
|
|
280
276
|
shares: {
|
|
281
277
|
getInvites(params: AxiosPaginationRequestParams): Promise<PaginatedItems<AdminInvite>>;
|
|
278
|
+
resendInvite(id: number): Promise<{
|
|
279
|
+
invite: AdminInvite;
|
|
280
|
+
}>;
|
|
281
|
+
cancelInvite(id: number): Promise<{
|
|
282
|
+
invite: AdminInvite;
|
|
283
|
+
}>;
|
|
282
284
|
};
|
|
283
285
|
sims: {
|
|
284
286
|
deleteSim(simId: number): Promise<{
|
|
285
287
|
deleted: boolean;
|
|
286
288
|
}>;
|
|
287
|
-
createSim(params:
|
|
289
|
+
createSim(params: SimCreateUpdatePayload): Promise<{
|
|
288
290
|
success: boolean;
|
|
289
291
|
}>;
|
|
290
|
-
updateSim(simId: number, params: SimCreateUpdatePayload): Promise<{
|
|
292
|
+
updateSim(simId: number, params: Partial<SimCreateUpdatePayload>): Promise<{
|
|
291
293
|
success: boolean;
|
|
292
294
|
}>;
|
|
293
295
|
getSims(params: {
|
|
294
296
|
params: Partial<SimsQueryParams>;
|
|
295
|
-
}): Promise<PaginatedItems<Sim
|
|
297
|
+
}): Promise<PaginatedItems<Sim>>;
|
|
296
298
|
getSimProviders(): Promise<string[]>;
|
|
297
299
|
getBillPayers(): Promise<string[]>;
|
|
298
300
|
};
|
|
299
301
|
sms: {
|
|
300
302
|
sendSms(number: string, params: SendSmsPayload): Promise<SendSmsResponse>;
|
|
301
|
-
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<
|
|
303
|
+
getSimHistory(number: string, params: AxiosPaginationRequestParams): Promise<PaginatedItems<SmsHistory>>;
|
|
302
304
|
getSms(params: {
|
|
303
305
|
params: Partial<SmsQueryParams>;
|
|
304
|
-
}): Promise<PaginatedItems<Sms
|
|
306
|
+
}): Promise<PaginatedItems<Sms>>;
|
|
305
307
|
};
|
|
306
308
|
progressPhotos: {
|
|
307
309
|
getProgressPhotos(params: {
|
|
308
310
|
params: Partial<ProgressPhotosQueryParams>;
|
|
309
|
-
}): Promise<PaginatedItems<ProgressPhotoItem
|
|
311
|
+
}): Promise<PaginatedItems<ProgressPhotoItem>>;
|
|
310
312
|
getProgressPhotosHistory(params: {
|
|
311
313
|
params: Partial<progressPhotosHistoryQueryParams>;
|
|
312
314
|
}): Promise<ProgressPhotosHistory>;
|
|
@@ -315,7 +317,7 @@ export declare const AdminApi: {
|
|
|
315
317
|
}): Promise<{
|
|
316
318
|
progressPhoto: string;
|
|
317
319
|
}>;
|
|
318
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
320
|
+
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotoUpdateResponse>;
|
|
319
321
|
};
|
|
320
322
|
tags: {
|
|
321
323
|
index(): Promise<Tag[]>;
|
|
@@ -327,15 +329,9 @@ export declare const AdminApi: {
|
|
|
327
329
|
updateUser(id: number, params: Partial<AdminUserUpdateRequestPayload>): Promise<AdminUser>;
|
|
328
330
|
getAdmins(params: {
|
|
329
331
|
params: Partial<AdminQueryParams>;
|
|
330
|
-
}): Promise<PaginatedItems<Admin
|
|
331
|
-
deleteAdmin(email: string): Promise<void | {
|
|
332
|
-
message: string;
|
|
333
|
-
}>;
|
|
334
|
-
makeAdmin(email: string): Promise<void | {
|
|
335
|
-
message: string;
|
|
336
|
-
}>;
|
|
332
|
+
}): Promise<PaginatedItems<Admin>>;
|
|
337
333
|
deleteUser(email: string, params: {
|
|
338
|
-
|
|
334
|
+
verifEmail: string;
|
|
339
335
|
}): Promise<void | {
|
|
340
336
|
message: string;
|
|
341
337
|
}>;
|
|
@@ -343,19 +339,26 @@ export declare const AdminApi: {
|
|
|
343
339
|
getUsers(params: {
|
|
344
340
|
params: Partial<AdminUserQueryParams>;
|
|
345
341
|
}): Promise<PaginatedItems<AdminUser>>;
|
|
346
|
-
show(id: number, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
342
|
+
show(id: number | string, params?: WithZohoParams): Promise<UserStatsResponse>;
|
|
347
343
|
getProjects(id: number): Promise<UserProjectResponse>;
|
|
348
344
|
getCameras(id: number): Promise<UserCameraResponse>;
|
|
349
345
|
getUserPasswordResetLink(email: string): Promise<{
|
|
350
346
|
passwordResetLink: string;
|
|
351
347
|
}>;
|
|
352
348
|
};
|
|
349
|
+
apiKeys: {
|
|
350
|
+
index(params: {
|
|
351
|
+
params: Partial<AdminApiKeysRequestParams>;
|
|
352
|
+
}): Promise<PaginatedItems<AdminApiKey>>;
|
|
353
|
+
update(id: number, payload: UpdateAdminApiKeyPayload): Promise<AdminApiKey>;
|
|
354
|
+
delete(id: number): Promise<void>;
|
|
355
|
+
};
|
|
353
356
|
widgets: {
|
|
354
357
|
index(params: {
|
|
355
358
|
params: Partial<WidgetsListRequestPayload>;
|
|
356
359
|
}): Promise<PaginatedItems<AdminWidget>>;
|
|
357
360
|
show(id: number): Promise<AdminWidgetFull>;
|
|
358
|
-
update(id: number, payload: WidgetPayload): Promise<AdminWidgetFull>;
|
|
361
|
+
update(id: number, payload: Partial<WidgetPayload>): Promise<AdminWidgetFull>;
|
|
359
362
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
360
363
|
};
|
|
361
364
|
zohoDesk: {
|
|
@@ -364,7 +367,13 @@ export declare const AdminApi: {
|
|
|
364
367
|
comments: {
|
|
365
368
|
index(params: {
|
|
366
369
|
params: Partial<CommentsListRequestPayload>;
|
|
367
|
-
}): Promise<PaginatedItems<
|
|
370
|
+
}): Promise<PaginatedItems<AdminComment>>;
|
|
371
|
+
};
|
|
372
|
+
snapshotTransfers: {
|
|
373
|
+
index(params: AxiosRequestConfig & {
|
|
374
|
+
params: Partial<SnapshotTransfersQueryParams>;
|
|
375
|
+
}): Promise<PaginatedItems<SnapshotTransfer>>;
|
|
376
|
+
cancel(id: number): Promise<SnapshotTransfer>;
|
|
368
377
|
};
|
|
369
378
|
};
|
|
370
379
|
export {};
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams,
|
|
1
|
+
import { AnprQueryParams, CameraFovChangesResponse, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceResponse, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, ObservationEvent, ObservationEventsQueryParams, ObservationEventsCountsQueryParams, ObservationEventsExportQueryParams, ObservationApprovalUpdateResponse, ObservationEventCount, ObservationType, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse, AiPrompt, AiPromptCreatePayload, AiPromptCreateResponse, AiPromptDeleteResponse, AiPromptListResponse, AiPromptQueryParams, AiPromptUpdatePayload, AiPromptUpdateResponse, AiSubpromptCreatePayload, AiObservationType, AiObservationTypeCreatePayload, AiObservationTypeCreateResponse, AiObservationTypeDeleteResponse, AiObservationTypeListResponse, AiObservationTypeQueryParams, AiObservationTypeUpdatePayload, AiObservationTypeUpdateResponse, ObservationConfig, UpsertObservationConfigPayload, AiApiKey, AiApiKeyCreatePayload, AiApiKeyCreateResponse, AiApiKeyDeleteResponse, AiApiKeyQueryParams, AiApiKeyUpdatePayload, AiApiKeyUpdateResponse, APIEnvelope, AppActionResponse, AppRuntimeState, CoolifyProjectOption, CoolifyServerOption, CreateGateReportAppPayload, CreateGateReportAppResponse, GateReportAppEvents, GateReportAppsQueryParams, GateReportManagedApp, UpdateGateReportAppPayload, CreateSiteAnalyticsAppPayload, CreateSiteAnalyticsAppResponse, DeleteSiteAnalyticsAppResponse, ModelOption, SiteAnalyticsManagedApp, SiteAnalyticsManagementListParams, UpdateSiteAnalyticsAppPayload, ObservationEventQueryParams, ObservationEventListResponse, ObservationModelOption, ObservationEventReviewPayload, ObservationEventReviewResponse, Walk360Activity, Walk360Config, Walk360ConfigSummary, Walk360ProcessedSession, Walk360WorkerAction } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const getAiApiUrl: () => string;
|
|
4
4
|
export declare const getAiApiUrlV2: () => string;
|
|
@@ -22,18 +22,18 @@ export declare const AiApi: {
|
|
|
22
22
|
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<string[]>;
|
|
23
23
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
24
24
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
25
|
-
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
25
|
};
|
|
27
26
|
brainTool: {
|
|
28
27
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
28
|
};
|
|
30
29
|
roi: {
|
|
31
30
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
31
|
+
listROIs(params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
32
32
|
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
|
-
createdBy
|
|
33
|
+
createdBy?: string;
|
|
34
34
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
35
|
updateROI({ updatedBy, id, ...params }: Partial<GateReportRoiRequestPayload> & {
|
|
36
|
-
updatedBy
|
|
36
|
+
updatedBy?: string;
|
|
37
37
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
38
|
deleteROI({ id, updatedBy }: {
|
|
39
39
|
id: number;
|
|
@@ -48,9 +48,29 @@ export declare const AiApi: {
|
|
|
48
48
|
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<{
|
|
49
49
|
segments: SegmentsByLabel;
|
|
50
50
|
}>;
|
|
51
|
-
|
|
51
|
+
getSegmentsPresenceDateIntervals({ cameraExid, ...params }: SegmentsCountsParams): Promise<SegmentsPresenceResponse>;
|
|
52
|
+
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceResponse>;
|
|
52
53
|
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
53
54
|
};
|
|
55
|
+
observations: {
|
|
56
|
+
getEvents({ projectExid, ...params }: {
|
|
57
|
+
projectExid: ProjectExid;
|
|
58
|
+
} & ObservationEventsQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<ObservationEvent>>;
|
|
59
|
+
getCounts({ projectExid, ...params }: {
|
|
60
|
+
projectExid: ProjectExid;
|
|
61
|
+
} & ObservationEventsCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<APIEnvelope<ObservationEventCount[]>>;
|
|
62
|
+
getConfiguredTypes(projectExid: ProjectExid, extraParams?: AxiosRequestConfig): Promise<APIEnvelope<ObservationType[]>>;
|
|
63
|
+
exportEvents({ projectExid, ...params }: {
|
|
64
|
+
projectExid: ProjectExid;
|
|
65
|
+
} & ObservationEventsExportQueryParams, extraParams?: AxiosRequestConfig): Promise<Blob | {
|
|
66
|
+
message: string;
|
|
67
|
+
}>;
|
|
68
|
+
updateEventApproval({ projectExid, eventId, isApproved, }: {
|
|
69
|
+
projectExid: ProjectExid;
|
|
70
|
+
eventId: number;
|
|
71
|
+
isApproved: boolean | null;
|
|
72
|
+
}): Promise<ObservationApprovalUpdateResponse>;
|
|
73
|
+
};
|
|
54
74
|
siteAnalytics: {
|
|
55
75
|
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
56
76
|
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
@@ -83,7 +103,7 @@ export declare const AiApi: {
|
|
|
83
103
|
payload: SmartSearchBackendQuery;
|
|
84
104
|
limit: number;
|
|
85
105
|
page: number;
|
|
86
|
-
}): Promise<
|
|
106
|
+
}): Promise<Blob>;
|
|
87
107
|
getDetectionsHeatmapData(projectExid: ProjectExid, params: {
|
|
88
108
|
cameraExid: CameraExid;
|
|
89
109
|
fromDate: DateType | string | null;
|
|
@@ -92,6 +112,16 @@ export declare const AiApi: {
|
|
|
92
112
|
operator?: SmartSearchOperatorType;
|
|
93
113
|
}): Promise<SmartSearchHeatmapData[]>;
|
|
94
114
|
};
|
|
115
|
+
siteAnalyticsManagement: {
|
|
116
|
+
listApps(params?: SiteAnalyticsManagementListParams): Promise<PaginatedItems<SiteAnalyticsManagedApp>>;
|
|
117
|
+
createApp(payload: CreateSiteAnalyticsAppPayload): Promise<CreateSiteAnalyticsAppResponse>;
|
|
118
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<SiteAnalyticsManagedApp>>;
|
|
119
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateSiteAnalyticsAppPayload): Promise<APIEnvelope<SiteAnalyticsManagedApp>>;
|
|
120
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<DeleteSiteAnalyticsAppResponse>;
|
|
121
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
122
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
123
|
+
listModelVersions(): Promise<APIEnvelope<ModelOption[]>>;
|
|
124
|
+
};
|
|
95
125
|
coolify: {
|
|
96
126
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
97
127
|
createAppOnCoolify({ projectExid, cameraExid, payload, }: {
|
|
@@ -122,6 +152,100 @@ export declare const AiApi: {
|
|
|
122
152
|
restartService(serviceId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
123
153
|
};
|
|
124
154
|
fovChanges: {
|
|
125
|
-
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<
|
|
155
|
+
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<CameraFovChangesResponse>;
|
|
156
|
+
};
|
|
157
|
+
prompts: {
|
|
158
|
+
list(params?: AiPromptQueryParams): Promise<AiPromptListResponse>;
|
|
159
|
+
get(promptId: number): Promise<AiPrompt>;
|
|
160
|
+
create(payload: AiPromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
161
|
+
update(promptId: number, payload: AiPromptUpdatePayload): Promise<AiPromptUpdateResponse>;
|
|
162
|
+
delete(promptId: number): Promise<AiPromptDeleteResponse>;
|
|
163
|
+
listSubprompts(promptId: number): Promise<AiPrompt[]>;
|
|
164
|
+
createSubprompt(promptId: number, payload: AiSubpromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
165
|
+
};
|
|
166
|
+
observations360: {
|
|
167
|
+
getWalkConfig(projectExid: string): Promise<{
|
|
168
|
+
data: Walk360Config;
|
|
169
|
+
}>;
|
|
170
|
+
saveWalkConfig(projectExid: string, payload: {
|
|
171
|
+
enabled: boolean;
|
|
172
|
+
startDate: string | null;
|
|
173
|
+
activities: Walk360Activity[];
|
|
174
|
+
maxParallelWalks?: number;
|
|
175
|
+
visionProvider?: string;
|
|
176
|
+
coolifyServerUuid?: string | null;
|
|
177
|
+
}): Promise<{
|
|
178
|
+
data: Walk360Config;
|
|
179
|
+
}>;
|
|
180
|
+
listProcessedWalks(projectExid: string): Promise<{
|
|
181
|
+
data: Walk360ProcessedSession[];
|
|
182
|
+
}>;
|
|
183
|
+
listWalkTypes(): Promise<{
|
|
184
|
+
data: AiObservationType[];
|
|
185
|
+
}>;
|
|
186
|
+
listConfigs(): Promise<{
|
|
187
|
+
data: Walk360ConfigSummary[];
|
|
188
|
+
}>;
|
|
189
|
+
deleteWalkConfig(projectExid: string): Promise<{
|
|
190
|
+
deleted: boolean;
|
|
191
|
+
}>;
|
|
192
|
+
setWorkerState(projectExid: string, state: AppRuntimeState): Promise<{
|
|
193
|
+
data: Walk360WorkerAction;
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
196
|
+
observationTypes: {
|
|
197
|
+
list(params?: AiObservationTypeQueryParams): Promise<AiObservationTypeListResponse>;
|
|
198
|
+
get(observationTypeId: number): Promise<AiObservationType>;
|
|
199
|
+
create(payload: AiObservationTypeCreatePayload): Promise<AiObservationTypeCreateResponse>;
|
|
200
|
+
update(observationTypeId: number, payload: AiObservationTypeUpdatePayload): Promise<AiObservationTypeUpdateResponse>;
|
|
201
|
+
delete(observationTypeId: number): Promise<AiObservationTypeDeleteResponse>;
|
|
202
|
+
};
|
|
203
|
+
siteAnalyticsObservations: {
|
|
204
|
+
getConfig(cameraExid: string): Promise<ObservationConfig>;
|
|
205
|
+
upsertConfig(cameraExid: string, payload: UpsertObservationConfigPayload): Promise<ObservationConfig>;
|
|
206
|
+
deleteConfig(cameraExid: string): Promise<{
|
|
207
|
+
deleted: boolean;
|
|
208
|
+
count: number;
|
|
209
|
+
message: string;
|
|
210
|
+
}>;
|
|
211
|
+
};
|
|
212
|
+
apiKeys: {
|
|
213
|
+
list(params?: AiApiKeyQueryParams): Promise<AiApiKey[]>;
|
|
214
|
+
purposes(): Promise<string[]>;
|
|
215
|
+
get(keyId: number): Promise<AiApiKey>;
|
|
216
|
+
create(payload: AiApiKeyCreatePayload): Promise<AiApiKeyCreateResponse>;
|
|
217
|
+
update(keyId: number, payload: AiApiKeyUpdatePayload): Promise<AiApiKeyUpdateResponse>;
|
|
218
|
+
delete(keyId: number, revoke?: boolean): Promise<AiApiKeyDeleteResponse>;
|
|
219
|
+
};
|
|
220
|
+
observationEvents: {
|
|
221
|
+
list(params?: ObservationEventQueryParams): Promise<ObservationEventListResponse>;
|
|
222
|
+
frameUrl(eventId: number, options?: {
|
|
223
|
+
thumbnail?: boolean;
|
|
224
|
+
token?: string | null;
|
|
225
|
+
}): string;
|
|
226
|
+
projects(): Promise<{
|
|
227
|
+
data: Array<{
|
|
228
|
+
projectExid: string;
|
|
229
|
+
total: number;
|
|
230
|
+
}>;
|
|
231
|
+
}>;
|
|
232
|
+
models(): Promise<APIEnvelope<ObservationModelOption[]>>;
|
|
233
|
+
review(projectExid: string, eventId: number, payload: ObservationEventReviewPayload): Promise<ObservationEventReviewResponse>;
|
|
234
|
+
};
|
|
235
|
+
gateReportManagement: {
|
|
236
|
+
listApps(params?: GateReportAppsQueryParams): Promise<PaginatedItems<GateReportManagedApp>>;
|
|
237
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
238
|
+
listAppEvents(projectExid?: ProjectExid): Promise<APIEnvelope<GateReportAppEvents[]>>;
|
|
239
|
+
createApp(payload: CreateGateReportAppPayload): Promise<CreateGateReportAppResponse>;
|
|
240
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateGateReportAppPayload): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
241
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<{
|
|
242
|
+
deleted: boolean;
|
|
243
|
+
count: number;
|
|
244
|
+
message: string;
|
|
245
|
+
}>;
|
|
246
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
247
|
+
listCoolifyProjects(): Promise<APIEnvelope<CoolifyProjectOption[]>>;
|
|
248
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
249
|
+
listImageTags(): Promise<APIEnvelope<string[]>>;
|
|
126
250
|
};
|
|
127
251
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@evercam/api/types";
|
|
1
|
+
import type { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, PaginatedItems, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleAssignmentLogBatch, RoleAssignmentLogsParams, RoleResourceType } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const AuthzApi: {
|
|
4
4
|
roles: {
|
|
@@ -17,8 +17,10 @@ export declare const AuthzApi: {
|
|
|
17
17
|
addPermission(id: number, action: string): Promise<void>;
|
|
18
18
|
deletePermission(id: number, action: string): Promise<void>;
|
|
19
19
|
getRoleUsers(id: number): Promise<AuthzRoleUser[]>;
|
|
20
|
-
assignUsers(
|
|
21
|
-
|
|
20
|
+
assignUsers(roleId: number, emails: Array<string>, resourceId?: string): Promise<void>;
|
|
21
|
+
getAssignments(params: AxiosRequestConfig & {
|
|
22
|
+
params: Partial<RoleAssignmentLogsParams>;
|
|
23
|
+
}): Promise<PaginatedItems<RoleAssignmentLogBatch>>;
|
|
22
24
|
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<AuthzUserRolesResponse>;
|
|
23
25
|
};
|
|
24
26
|
projectRoles: {
|