@evercam/api 1.0.0-cfcbc946a → 1.0.0-d0847b9fa

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 (145) hide show
  1. package/README.md +4 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +217 -0
  3. package/dist/api/api/adminApi.d.ts +381 -0
  4. package/dist/api/api/aiApi.d.ts +214 -0
  5. package/dist/api/api/authzApi.d.ts +40 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/api/evercamApi.d.ts +357 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +45 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  14. package/dist/api/api/index.d.ts +13 -0
  15. package/dist/api/api/ingestApi.d.ts +162 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  17. package/dist/api/api/videoWallApi.d.ts +9 -0
  18. package/dist/api/api/weatherApi.d.ts +9 -0
  19. package/dist/api/index.d.ts +3 -13
  20. package/dist/api/types/360.d.ts +375 -0
  21. package/dist/api/types/aconex.d.ts +143 -0
  22. package/dist/api/types/admin.d.ts +51 -0
  23. package/dist/api/types/aiConfigs.d.ts +242 -0
  24. package/dist/{types → api/types}/analytics.d.ts +220 -80
  25. package/dist/{types → api/types}/anpr.d.ts +56 -13
  26. package/dist/{types → api/types}/auditLogs.d.ts +19 -1
  27. package/dist/api/types/authz.d.ts +132 -0
  28. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  29. package/dist/api/types/automation.d.ts +114 -0
  30. package/dist/{types → api/types}/axios.d.ts +31 -11
  31. package/dist/{types → api/types}/bim.d.ts +38 -9
  32. package/dist/{types → api/types}/camera.d.ts +118 -151
  33. package/dist/api/types/comments.d.ts +58 -0
  34. package/dist/api/types/company.d.ts +115 -0
  35. package/dist/{types → api/types}/compare.d.ts +20 -5
  36. package/dist/api/types/connector.d.ts +21 -0
  37. package/dist/api/types/coolify.d.ts +36 -0
  38. package/dist/{types → api/types}/copilot.d.ts +11 -9
  39. package/dist/{types → api/types}/countries.d.ts +0 -7
  40. package/dist/{types → api/types}/credentials.d.ts +1 -0
  41. package/dist/api/types/detections.d.ts +117 -0
  42. package/dist/api/types/drone.d.ts +107 -0
  43. package/dist/{types → api/types}/errors.d.ts +25 -0
  44. package/dist/{types → api/types}/gateReport.d.ts +49 -168
  45. package/dist/api/types/gateReportManagement.d.ts +170 -0
  46. package/dist/api/types/hammertech.d.ts +98 -0
  47. package/dist/{types → api/types}/hdd.d.ts +26 -1
  48. package/dist/{types → api/types}/index.d.ts +21 -3
  49. package/dist/api/types/ingest.d.ts +234 -0
  50. package/dist/{types → api/types}/kit.d.ts +130 -56
  51. package/dist/api/types/map.d.ts +16 -0
  52. package/dist/{types → api/types}/media.d.ts +10 -3
  53. package/dist/api/types/notification.d.ts +96 -0
  54. package/dist/api/types/oauth.d.ts +62 -0
  55. package/dist/api/types/observationEvents.d.ts +61 -0
  56. package/dist/api/types/observations.d.ts +85 -0
  57. package/dist/api/types/planner.d.ts +124 -0
  58. package/dist/api/types/posthog.d.ts +53 -0
  59. package/dist/api/types/procore.d.ts +229 -0
  60. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  61. package/dist/api/types/project.d.ts +254 -0
  62. package/dist/{types → api/types}/recording.d.ts +10 -16
  63. package/dist/api/types/recycleBin.d.ts +14 -0
  64. package/dist/api/types/ring.d.ts +53 -0
  65. package/dist/{types → api/types}/roi.d.ts +2 -9
  66. package/dist/{types → api/types}/routeParams.d.ts +5 -2
  67. package/dist/{types → api/types}/router.d.ts +20 -1
  68. package/dist/{types → api/types}/shared.d.ts +31 -38
  69. package/dist/api/types/shares.d.ts +45 -0
  70. package/dist/{types → api/types}/sim.d.ts +6 -6
  71. package/dist/api/types/siteAnalytics.d.ts +285 -0
  72. package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
  73. package/dist/api/types/siteView.d.ts +73 -0
  74. package/dist/api/types/smartSeach.d.ts +5 -0
  75. package/dist/api/types/snapshots.d.ts +104 -0
  76. package/dist/api/types/socket.d.ts +4 -0
  77. package/dist/api/types/sso.d.ts +55 -0
  78. package/dist/api/types/storageProvider.d.ts +19 -0
  79. package/dist/api/types/storyblok.d.ts +27 -0
  80. package/dist/{types → api/types}/streaming.d.ts +4 -25
  81. package/dist/api/types/systemCheck.d.ts +11 -0
  82. package/dist/api/types/tag.d.ts +12 -0
  83. package/dist/api/types/time.d.ts +7 -0
  84. package/dist/{types → api/types}/timelapse.d.ts +7 -11
  85. package/dist/{types → api/types}/user.d.ts +106 -40
  86. package/dist/api/types/videoWall.d.ts +66 -0
  87. package/dist/api/types/weather.d.ts +153 -0
  88. package/dist/{types → api/types}/widget.d.ts +96 -16
  89. package/dist/api/types/xweather.d.ts +12 -0
  90. package/dist/index.d.ts +2 -3
  91. package/dist/index.js +2918 -1085
  92. package/dist/index.js.map +1 -1
  93. package/dist/index.umd.cjs +1 -1
  94. package/dist/index.umd.cjs.map +1 -1
  95. package/dist/shared/api/index.d.ts +3 -0
  96. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  97. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  98. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  99. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  100. package/dist/shared/types/components.d.ts +374 -0
  101. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  102. package/dist/shared/types/imagePlayer.d.ts +41 -0
  103. package/dist/shared/types/index.d.ts +7 -0
  104. package/dist/shared/types/observations.d.ts +21 -0
  105. package/dist/shared/types/rbac.d.ts +67 -0
  106. package/dist/shared/types/timeline.d.ts +10 -0
  107. package/package.json +8 -5
  108. package/dist/api/3dFirebaseApi.d.ts +0 -9
  109. package/dist/api/adminApi.d.ts +0 -304
  110. package/dist/api/aiApi.d.ts +0 -110
  111. package/dist/api/authzApi.d.ts +0 -21
  112. package/dist/api/evercamApi.d.ts +0 -266
  113. package/dist/api/evercamLabsApi.d.ts +0 -46
  114. package/dist/api/ingestApi.d.ts +0 -65
  115. package/dist/api/videoWallApi.d.ts +0 -9
  116. package/dist/api/weatherApi.d.ts +0 -27
  117. package/dist/types/360.d.ts +0 -83
  118. package/dist/types/aconex.d.ts +0 -45
  119. package/dist/types/automation.d.ts +0 -6
  120. package/dist/types/comments.d.ts +0 -36
  121. package/dist/types/company.d.ts +0 -46
  122. package/dist/types/connector.d.ts +0 -16
  123. package/dist/types/coolify.d.ts +0 -18
  124. package/dist/types/detections.d.ts +0 -76
  125. package/dist/types/devices.d.ts +0 -228
  126. package/dist/types/drone.d.ts +0 -17
  127. package/dist/types/ingest.d.ts +0 -43
  128. package/dist/types/map.d.ts +0 -4
  129. package/dist/types/notification.d.ts +0 -27
  130. package/dist/types/planner.d.ts +0 -28
  131. package/dist/types/procore.d.ts +0 -76
  132. package/dist/types/project.d.ts +0 -120
  133. package/dist/types/shares.d.ts +0 -192
  134. package/dist/types/siteAnalytics.d.ts +0 -84
  135. package/dist/types/snapshots.d.ts +0 -50
  136. package/dist/types/storageServers.d.ts +0 -4
  137. package/dist/types/time.d.ts +0 -19
  138. package/dist/types/vendorModel.d.ts +0 -15
  139. package/dist/types/videoWall.d.ts +0 -33
  140. package/dist/types/weather.d.ts +0 -83
  141. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  142. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  143. /package/dist/{types → api/types}/nvr.d.ts +0 -0
  144. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
  145. /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
@@ -0,0 +1,242 @@
1
+ import { PaginatedItems, PaginationParams } from "@evercam/api/types";
2
+ export declare enum AiApp {
3
+ GateReport = "gate_report",
4
+ Ppe = "ppe",
5
+ SiteAnalytics = "site_analytics"
6
+ }
7
+ export declare enum AiProvider {
8
+ Gemini = "gemini",
9
+ OpenAi = "openai",
10
+ Anthropic = "anthropic"
11
+ }
12
+ export declare enum AiConfigsPromptDialogMode {
13
+ Create = "create",
14
+ Edit = "edit",
15
+ View = "view",
16
+ Subprompt = "subprompt"
17
+ }
18
+ export declare enum AiConfigsKeyDialogMode {
19
+ Create = "create",
20
+ Rotate = "rotate",
21
+ Rename = "rename"
22
+ }
23
+ export interface AiAppConfig {
24
+ bg: string;
25
+ fg: string;
26
+ border: string;
27
+ icon: string;
28
+ }
29
+ export declare const AI_APP_CONFIGS: Record<AiApp | "generic", AiAppConfig>;
30
+ export interface AiProviderConfig {
31
+ bg: string;
32
+ fg: string;
33
+ icon: string;
34
+ }
35
+ export declare const AI_PROVIDER_CONFIGS: Record<AiProvider, AiProviderConfig>;
36
+ export declare enum AiPromptModel {
37
+ Gemini3Pro = "gemini-3-pro",
38
+ Gemini3FlashPreview = "gemini-3-flash-preview",
39
+ Gemini25Pro = "gemini-2.5-pro",
40
+ Gemini25Flash = "gemini-2.5-flash",
41
+ Gemini20Flash = "gemini-2.0-flash",
42
+ Gpt5 = "gpt-5",
43
+ Gpt5Mini = "gpt-5-mini",
44
+ Gpt4o = "gpt-4o",
45
+ Gpt4oMini = "gpt-4o-mini",
46
+ ClaudeOpus45 = "claude-opus-4-5",
47
+ ClaudeSonnet46 = "claude-sonnet-4-6",
48
+ ClaudeHaiku45 = "claude-haiku-4-5"
49
+ }
50
+ export declare enum AiPromptType {
51
+ Prompt = "prompt",
52
+ Parent = "parent",
53
+ Subprompt = "subprompt"
54
+ }
55
+ export interface AiPrompt {
56
+ id: number;
57
+ title: string | null;
58
+ purpose: string | null;
59
+ app: string | null;
60
+ model: string | null;
61
+ prompt: string;
62
+ outputSchema: Record<string, unknown> | null;
63
+ createdBy: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
+ promptType: AiPromptType;
67
+ parentId: number | null;
68
+ subpromptCount: number;
69
+ }
70
+ export interface AiPromptCreatePayload {
71
+ title?: string | null;
72
+ purpose: string;
73
+ app: string;
74
+ model?: string | null;
75
+ prompt: string;
76
+ outputSchema?: Record<string, unknown> | null;
77
+ promptType?: AiPromptType.Prompt | AiPromptType.Parent;
78
+ }
79
+ export interface AiPromptUpdatePayload {
80
+ title?: string | null;
81
+ purpose?: string;
82
+ app?: string;
83
+ model?: string | null;
84
+ prompt?: string;
85
+ outputSchema?: Record<string, unknown> | null;
86
+ }
87
+ export type AiPromptQueryParams = PaginationParams & {
88
+ app?: string;
89
+ purpose?: string;
90
+ model?: string;
91
+ search?: string;
92
+ createdBy?: string;
93
+ promptType?: AiPromptType;
94
+ includeSubprompts?: boolean;
95
+ };
96
+ export interface AiSubpromptCreatePayload {
97
+ title?: string | null;
98
+ purpose: string;
99
+ model?: string | null;
100
+ prompt: string;
101
+ outputSchema?: Record<string, unknown> | null;
102
+ }
103
+ export type AiPromptListResponse = PaginatedItems<AiPrompt>;
104
+ export interface AiPromptCreateResponse {
105
+ created: boolean;
106
+ data: AiPrompt;
107
+ message: string;
108
+ }
109
+ export interface AiPromptUpdateResponse {
110
+ updated: boolean;
111
+ id: number | string;
112
+ message: string;
113
+ }
114
+ export interface AiPromptDeleteResponse {
115
+ deleted: boolean;
116
+ count: number;
117
+ message: string;
118
+ }
119
+ export interface AiApiKey {
120
+ id: number;
121
+ projectExid: string;
122
+ provider: string;
123
+ name: string;
124
+ purpose: string;
125
+ enabled: boolean;
126
+ autoGenerated: boolean;
127
+ firstUsedAt: string | null;
128
+ lastUsedAt: string | null;
129
+ insertedAt: string;
130
+ updatedAt: string;
131
+ }
132
+ export interface AiApiKeyCreatePayload {
133
+ projectExid: string;
134
+ provider: string;
135
+ name?: string;
136
+ purpose?: string;
137
+ apiKey?: string;
138
+ enabled?: boolean;
139
+ }
140
+ export interface AiApiKeyUpdatePayload {
141
+ name?: string;
142
+ enabled?: boolean;
143
+ apiKey?: string;
144
+ }
145
+ export type AiApiKeyQueryParams = {
146
+ projectExid?: string;
147
+ provider?: string;
148
+ purpose?: string;
149
+ enabled?: boolean;
150
+ };
151
+ export interface AiApiKeyCreateResponse {
152
+ created: boolean;
153
+ data: AiApiKey;
154
+ message: string;
155
+ }
156
+ export interface AiApiKeyUpdateResponse {
157
+ updated: boolean;
158
+ id: number | string;
159
+ message: string;
160
+ }
161
+ export interface AiApiKeyDeleteResponse {
162
+ deleted: boolean;
163
+ count: number;
164
+ message: string;
165
+ }
166
+ export declare enum AiObservationFeasibilityStatus {
167
+ Prod = "prod",
168
+ Beta = "beta",
169
+ Parked = "parked"
170
+ }
171
+ export declare enum AiObservationTimeDetection {
172
+ PerSecond = "per_second",
173
+ PerMinute = "per_minute",
174
+ Hourly = "hourly",
175
+ Daily = "daily"
176
+ }
177
+ export interface AiObservationFeasibilityConfig {
178
+ bg: string;
179
+ fg: string;
180
+ border: string;
181
+ label: string;
182
+ }
183
+ export declare const AI_OBSERVATION_FEASIBILITY_CONFIGS: Record<AiObservationFeasibilityStatus, AiObservationFeasibilityConfig>;
184
+ export interface AiObservationType {
185
+ id: number;
186
+ observationCode: string;
187
+ name: string;
188
+ description: string | null;
189
+ type: string;
190
+ rules: Record<string, unknown> | null;
191
+ timeDetection: string | null;
192
+ every: number | null;
193
+ severity: number | null;
194
+ feasibilityStatus: AiObservationFeasibilityStatus;
195
+ promptId: number | null;
196
+ promptName: string | null;
197
+ insertedAt: string;
198
+ updatedAt: string;
199
+ }
200
+ export interface AiObservationTypeCreatePayload {
201
+ observationCode: string;
202
+ name: string;
203
+ description?: string | null;
204
+ type: string;
205
+ rules?: Record<string, unknown> | null;
206
+ timeDetection?: string | null;
207
+ every?: number | null;
208
+ severity?: number | null;
209
+ feasibilityStatus: AiObservationFeasibilityStatus;
210
+ promptId?: number | null;
211
+ }
212
+ export type AiObservationTypeUpdatePayload = Partial<Omit<AiObservationTypeCreatePayload, "observationCode">>;
213
+ export type AiObservationTypeQueryParams = {
214
+ search?: string;
215
+ feasibilityStatus?: string;
216
+ type?: string;
217
+ page?: number;
218
+ limit?: number;
219
+ };
220
+ export interface AiObservationTypeListResponse {
221
+ items: AiObservationType[];
222
+ total: number;
223
+ page: number;
224
+ limit: number;
225
+ from: number;
226
+ to: number;
227
+ }
228
+ export interface AiObservationTypeCreateResponse {
229
+ created: boolean;
230
+ data: AiObservationType;
231
+ message: string;
232
+ }
233
+ export interface AiObservationTypeUpdateResponse {
234
+ updated: boolean;
235
+ id: number | string;
236
+ message: string;
237
+ }
238
+ export interface AiObservationTypeDeleteResponse {
239
+ deleted: boolean;
240
+ count: number;
241
+ message: string;
242
+ }