@evercam/api 1.0.0-003291add
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 +6 -0
- package/dist/api/api/3dFirebaseApi.d.ts +183 -0
- package/dist/api/api/adminApi.d.ts +377 -0
- package/dist/api/api/aiApi.d.ts +128 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/api/client/axios.d.ts +14 -0
- package/dist/api/api/client/customErrors.d.ts +90 -0
- package/dist/api/api/client/index.d.ts +5 -0
- package/dist/api/api/client/interceptors.d.ts +10 -0
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +337 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/api/exNvrApi.d.ts +43 -0
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +148 -0
- package/dist/api/api/ptzApi.d.ts +45 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/api/webRtcApi.d.ts +22 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/types/360.d.ts +281 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +597 -0
- package/dist/api/types/anpr.d.ts +114 -0
- package/dist/api/types/auditLogs.d.ts +99 -0
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +29 -0
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/api/types/axios.d.ts +71 -0
- package/dist/api/types/bim.d.ts +153 -0
- package/dist/api/types/camera.d.ts +535 -0
- package/dist/api/types/comments.d.ts +55 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/api/types/compare.d.ts +72 -0
- package/dist/api/types/connector.d.ts +19 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/api/types/copilot.d.ts +162 -0
- package/dist/api/types/countries.d.ts +500 -0
- package/dist/api/types/credentials.d.ts +6 -0
- package/dist/api/types/detections.d.ts +124 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/api/types/errors.d.ts +49 -0
- package/dist/api/types/gateReport.d.ts +332 -0
- package/dist/api/types/hdd.d.ts +88 -0
- package/dist/api/types/index.d.ts +65 -0
- package/dist/api/types/ingest.d.ts +147 -0
- package/dist/api/types/kit.d.ts +383 -0
- package/dist/api/types/map.d.ts +16 -0
- package/dist/api/types/media.d.ts +115 -0
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/nvr.d.ts +36 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +133 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/api/types/progressPhoto.d.ts +78 -0
- package/dist/api/types/project.d.ts +247 -0
- package/dist/api/types/recording.d.ts +125 -0
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +27 -0
- package/dist/api/types/routeParams.d.ts +52 -0
- package/dist/api/types/router.d.ts +86 -0
- package/dist/api/types/shared.d.ts +219 -0
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/api/types/sim.d.ts +114 -0
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +91 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/api/types/timelapse.d.ts +106 -0
- package/dist/api/types/user.d.ts +345 -0
- package/dist/api/types/vendorModel.d.ts +15 -0
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/voyageControl.d.ts +6 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/api/types/widget.d.ts +252 -0
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/api/utils.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3707 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +301 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +50 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export type Compare = {
|
|
3
|
+
cameraExid: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
embedCode: string;
|
|
6
|
+
embedTime: boolean;
|
|
7
|
+
fileName: string;
|
|
8
|
+
frames: number;
|
|
9
|
+
fromDate: string;
|
|
10
|
+
id: number;
|
|
11
|
+
exid: string;
|
|
12
|
+
mediaUrls: {
|
|
13
|
+
gif: string;
|
|
14
|
+
mp4: string;
|
|
15
|
+
};
|
|
16
|
+
public: boolean;
|
|
17
|
+
requesterEmail: string;
|
|
18
|
+
requesterName: string;
|
|
19
|
+
status: string;
|
|
20
|
+
thumbnailUrl: string;
|
|
21
|
+
title: string;
|
|
22
|
+
toDate: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
export declare enum CompareStatus {
|
|
26
|
+
Processing = 0,
|
|
27
|
+
Completed = 1,
|
|
28
|
+
Failed = 2
|
|
29
|
+
}
|
|
30
|
+
export type CompareRequestPayload = {
|
|
31
|
+
compareExid: string;
|
|
32
|
+
name: string;
|
|
33
|
+
beforeDate: string;
|
|
34
|
+
afterDate: string;
|
|
35
|
+
cameraExid: string;
|
|
36
|
+
embed: string;
|
|
37
|
+
bim?: boolean;
|
|
38
|
+
custom?: boolean;
|
|
39
|
+
options?: {
|
|
40
|
+
type: string;
|
|
41
|
+
beforeSnap: string;
|
|
42
|
+
afterSnap: string;
|
|
43
|
+
};
|
|
44
|
+
createAnimation: boolean;
|
|
45
|
+
evercamWatermark: boolean;
|
|
46
|
+
logo?: CompareLogoPosition;
|
|
47
|
+
};
|
|
48
|
+
export type CompareLogoPosition = {
|
|
49
|
+
id?: number;
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
};
|
|
55
|
+
export type AdminCompare = {
|
|
56
|
+
id: number;
|
|
57
|
+
compareExid: string;
|
|
58
|
+
exid: string;
|
|
59
|
+
projectId: string;
|
|
60
|
+
apiId: string;
|
|
61
|
+
apiKey: string;
|
|
62
|
+
name: string;
|
|
63
|
+
fullname: string;
|
|
64
|
+
camera: string;
|
|
65
|
+
status: number;
|
|
66
|
+
embedCode: string;
|
|
67
|
+
insertedAt: DateType;
|
|
68
|
+
};
|
|
69
|
+
export type AdminCompareQueryParams = PaginationParams & {
|
|
70
|
+
name: string;
|
|
71
|
+
camera: string;
|
|
72
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type ConnectorDetail = {
|
|
2
|
+
login: string;
|
|
3
|
+
hostname: string;
|
|
4
|
+
provider: string;
|
|
5
|
+
};
|
|
6
|
+
export declare enum Connector {
|
|
7
|
+
Aconex = "aconex",
|
|
8
|
+
Procore = "procore",
|
|
9
|
+
Autodesk = "autodesk",
|
|
10
|
+
AutodeskViewer = "autodesk_viewer",
|
|
11
|
+
VoyageControl = "voyage_control",
|
|
12
|
+
Ring = "ring",
|
|
13
|
+
XWeather = "xweather"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ProcoreType {
|
|
16
|
+
Observations = "observations",
|
|
17
|
+
Photos = "photos"
|
|
18
|
+
}
|
|
19
|
+
export type ConnectorResponsePayload = Array<ConnectorDetail>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export type CreateCoolifyAppRequestPayload = {
|
|
3
|
+
startDate: DateType;
|
|
4
|
+
modelVersion: string;
|
|
5
|
+
snapshotRequestTimeout: string | number;
|
|
6
|
+
serverUuid: string;
|
|
7
|
+
branch: string;
|
|
8
|
+
useThirdParty: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type SaveCoolifyAppRequestPayload = {
|
|
11
|
+
contextCameraExid: string;
|
|
12
|
+
coolifyServiceId: string;
|
|
13
|
+
modelVersion: string;
|
|
14
|
+
startTime: string;
|
|
15
|
+
branchName: string;
|
|
16
|
+
snapshotRequestTimeout: string | number;
|
|
17
|
+
serverUuid: string;
|
|
18
|
+
useThirdParty: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type CoolifyApp = {
|
|
21
|
+
id: number;
|
|
22
|
+
projectExid: ProjectExid;
|
|
23
|
+
anprCameraExid: CameraExid;
|
|
24
|
+
contextCameraExid: CameraExid;
|
|
25
|
+
modelVersion: string;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
insertedAt: DateType;
|
|
28
|
+
updatedAt: DateType;
|
|
29
|
+
};
|
|
30
|
+
export type RegisterCoolifyAppResponsePayload = {
|
|
31
|
+
created: boolean;
|
|
32
|
+
id: number;
|
|
33
|
+
data: CoolifyApp;
|
|
34
|
+
count: number;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@evercam/api/types";
|
|
2
|
+
export declare enum CopilotMessageAuthor {
|
|
3
|
+
Copilot = "copilot",
|
|
4
|
+
User = "user",
|
|
5
|
+
System = "system"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CopilotMessageType {
|
|
8
|
+
Text = "text",
|
|
9
|
+
Progress = "progress",
|
|
10
|
+
Error = "error",
|
|
11
|
+
Json = "json"
|
|
12
|
+
}
|
|
13
|
+
export type CopilotMessage = {
|
|
14
|
+
content: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
type: CopilotMessageType;
|
|
17
|
+
id?: number;
|
|
18
|
+
conversationId?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare enum CopilotStepId {
|
|
21
|
+
SendToLLM = "send_to_llm",
|
|
22
|
+
FunctionCallRequest = "function_call_request",
|
|
23
|
+
ExecFunctionCall = "exec_function_call",
|
|
24
|
+
SendToUser = "send_to_user",
|
|
25
|
+
RequestMissingFields = "request_missing_fields",
|
|
26
|
+
CompletedFieldsResponse = "completed_fields_response",
|
|
27
|
+
SendRawToolCallResponse = "send_raw_tool_call_response",
|
|
28
|
+
SubmitToolOutputsToLLM = "submit_tool_outputs_to_llm",
|
|
29
|
+
CancelCall = "cancel_call",
|
|
30
|
+
RequestAgentCall = "request_agent_call",
|
|
31
|
+
ExecAgentCall = "exec_agent_call"
|
|
32
|
+
}
|
|
33
|
+
export declare enum CopilotMissingFieldsLabels {
|
|
34
|
+
ProjectExid = "Project",
|
|
35
|
+
CameraExid = "Camera",
|
|
36
|
+
FromDate = "Start date",
|
|
37
|
+
ToDate = "End date"
|
|
38
|
+
}
|
|
39
|
+
export type CopilotMissingField<T = unknown> = {
|
|
40
|
+
name: string;
|
|
41
|
+
label: string;
|
|
42
|
+
value: unknown;
|
|
43
|
+
type: string;
|
|
44
|
+
toolId: string;
|
|
45
|
+
error?: T;
|
|
46
|
+
};
|
|
47
|
+
export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
|
|
48
|
+
export type UserConversations = CopilotConversation & {
|
|
49
|
+
Message: CopilotMessage[];
|
|
50
|
+
};
|
|
51
|
+
export declare enum CopilotSocketEvent {
|
|
52
|
+
ConversationStart = "conversation:start",
|
|
53
|
+
ConversationCreated = "conversation:created",
|
|
54
|
+
LLMMessageChunk = "llm:message:chunk",
|
|
55
|
+
LLMMessageComplete = "llm:message:complete",
|
|
56
|
+
LLMMessageLoading = "llm:message:loading",
|
|
57
|
+
LLMRequestCancel = "llm:request:cancel",
|
|
58
|
+
LLMRequestCanceled = "llm:request:canceled",
|
|
59
|
+
UserMessage = "user:message",
|
|
60
|
+
ContextError = "chat:contextError",
|
|
61
|
+
ChatError = "chat:chatError",
|
|
62
|
+
MissingFields = "chat:missingFields",
|
|
63
|
+
MissingFieldsCompleted = "chat:missingFields:completed",
|
|
64
|
+
SystemToolCallResponse = "system:toolCall:response",
|
|
65
|
+
ChangeProvider = "chat:changeProvider"
|
|
66
|
+
}
|
|
67
|
+
export type CopilotConversation = {
|
|
68
|
+
id: number;
|
|
69
|
+
user: string;
|
|
70
|
+
model: string;
|
|
71
|
+
context: string;
|
|
72
|
+
cameraExid: CameraExid;
|
|
73
|
+
projectExid: ProjectExid;
|
|
74
|
+
startDate: string;
|
|
75
|
+
endDate: string;
|
|
76
|
+
messagesCount: number;
|
|
77
|
+
};
|
|
78
|
+
export declare enum CopilotProvider {
|
|
79
|
+
Gemini = "gemini",
|
|
80
|
+
ChatGPT = "chatgpt"
|
|
81
|
+
}
|
|
82
|
+
export declare enum CopilotSuggestion {
|
|
83
|
+
UserManual = "user_manual",
|
|
84
|
+
GateReport = "gate_report",
|
|
85
|
+
Weather = "weather",
|
|
86
|
+
Clip = "clip",
|
|
87
|
+
Timelapse = "timelapse",
|
|
88
|
+
Chart = "chart",
|
|
89
|
+
SmartSearch = "smart_search"
|
|
90
|
+
}
|
|
91
|
+
export declare enum CopilotChatProvider {
|
|
92
|
+
Gemini = "gemini",
|
|
93
|
+
ChatGpt = "chatGpt"
|
|
94
|
+
}
|
|
95
|
+
export declare enum CopilotLayout {
|
|
96
|
+
Floating = "floating"
|
|
97
|
+
}
|
|
98
|
+
export declare enum CopilotToolId {
|
|
99
|
+
GetReports = "getReports",
|
|
100
|
+
GetVehiclesDetections = "getVehiclesDetections",
|
|
101
|
+
GetVehiclesDetectionsCounts = "getVehiclesDetectionsCounts",
|
|
102
|
+
GetWeather = "getWeather",
|
|
103
|
+
CreateClip = "createClip",
|
|
104
|
+
NavigateToPage = "navigateToPage",
|
|
105
|
+
CreateTimelapse = "createTimelapse",
|
|
106
|
+
RequestMissingFields = "requestMissingFields",
|
|
107
|
+
RenderCharts = "renderCharts",
|
|
108
|
+
SmartSearch = "smartSearch"
|
|
109
|
+
}
|
|
110
|
+
export type CopilotSystemToolCallResponse<I = unknown, O = unknown> = {
|
|
111
|
+
toolId?: CopilotToolId;
|
|
112
|
+
input?: I;
|
|
113
|
+
output?: O;
|
|
114
|
+
isAgent?: boolean;
|
|
115
|
+
};
|
|
116
|
+
export type CopilotCamera = {
|
|
117
|
+
name: string;
|
|
118
|
+
exid: CameraExid;
|
|
119
|
+
status: CameraStatus;
|
|
120
|
+
featureFlags?: CameraFeatureFlag[];
|
|
121
|
+
};
|
|
122
|
+
export type CopilotProject = {
|
|
123
|
+
name: string;
|
|
124
|
+
exid: ProjectExid;
|
|
125
|
+
status: ProjectStatus;
|
|
126
|
+
featureFlags?: ProjectFeatureFlag[];
|
|
127
|
+
cameras?: CopilotCamera[];
|
|
128
|
+
};
|
|
129
|
+
export type CopilotMessageContext = {
|
|
130
|
+
pageId?: AnalyticsEventPageId;
|
|
131
|
+
selectedCamera?: CopilotCamera;
|
|
132
|
+
selectedProject?: CopilotProject;
|
|
133
|
+
};
|
|
134
|
+
export type CopilotMessageStep = {
|
|
135
|
+
args: string[];
|
|
136
|
+
depth: number;
|
|
137
|
+
id?: number;
|
|
138
|
+
message_id?: number;
|
|
139
|
+
step: CopilotStepId;
|
|
140
|
+
timestamp: string;
|
|
141
|
+
};
|
|
142
|
+
export declare enum CopilotMissingFieldComponent {
|
|
143
|
+
Select = "SelectField",
|
|
144
|
+
DateTime = "DateTimeField",
|
|
145
|
+
Schedule = "ScheduleField",
|
|
146
|
+
MultiOptions = "MultiOptionsField",
|
|
147
|
+
Switch = "SwitchField"
|
|
148
|
+
}
|
|
149
|
+
export declare enum CopilotMissingFieldName {
|
|
150
|
+
ProjectExid = "projectExid",
|
|
151
|
+
CameraExid = "cameraExid",
|
|
152
|
+
FromDate = "fromDate",
|
|
153
|
+
ToDate = "toDate",
|
|
154
|
+
Schedule = "schedule",
|
|
155
|
+
Duration = "duration"
|
|
156
|
+
}
|
|
157
|
+
export declare enum CopilotMissingFieldType {
|
|
158
|
+
Boolean = "boolean",
|
|
159
|
+
String = "string",
|
|
160
|
+
Number = "number"
|
|
161
|
+
}
|
|
162
|
+
export type CopilotCompletedFields = Record<string, unknown>;
|