@evercam/api 1.0.0-9633bd3c5 → 1.0.0-9670187dd

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