@evercam/api 1.0.0-3b6f67124 → 1.0.0-3c7f69373

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 (63) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +63 -24
  2. package/dist/api/api/adminApi.d.ts +10 -9
  3. package/dist/api/api/aiApi.d.ts +95 -3
  4. package/dist/api/api/authzApi.d.ts +4 -1
  5. package/dist/api/api/evercamApi.d.ts +32 -13
  6. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  7. package/dist/api/api/index.d.ts +1 -0
  8. package/dist/api/api/ingestApi.d.ts +20 -8
  9. package/dist/api/api/workflowsApi.d.ts +15 -0
  10. package/dist/api/types/360.d.ts +125 -42
  11. package/dist/api/types/aiConfigs.d.ts +102 -12
  12. package/dist/api/types/analytics.d.ts +26 -24
  13. package/dist/api/types/auditLogs.d.ts +0 -1
  14. package/dist/api/types/authz.d.ts +71 -0
  15. package/dist/api/types/automation.d.ts +32 -4
  16. package/dist/api/types/axios.d.ts +9 -8
  17. package/dist/api/types/bim.d.ts +11 -5
  18. package/dist/api/types/camera.d.ts +28 -22
  19. package/dist/api/types/comments.d.ts +9 -2
  20. package/dist/api/types/company.d.ts +1 -2
  21. package/dist/api/types/connector.d.ts +2 -0
  22. package/dist/api/types/detections.d.ts +1 -0
  23. package/dist/api/types/drone.d.ts +1 -2
  24. package/dist/api/types/errors.d.ts +13 -1
  25. package/dist/api/types/gateReport.d.ts +0 -11
  26. package/dist/api/types/gateReportManagement.d.ts +2 -7
  27. package/dist/api/types/hammertech.d.ts +98 -0
  28. package/dist/api/types/index.d.ts +6 -2
  29. package/dist/api/types/ingest.d.ts +88 -1
  30. package/dist/api/types/kit.d.ts +43 -51
  31. package/dist/api/types/media.d.ts +7 -2
  32. package/dist/api/types/notification.d.ts +52 -2
  33. package/dist/api/types/observationEvents.d.ts +141 -0
  34. package/dist/api/types/observations.d.ts +84 -0
  35. package/dist/api/types/planner.d.ts +1 -8
  36. package/dist/api/types/posthog.d.ts +20 -0
  37. package/dist/api/types/project.d.ts +14 -2
  38. package/dist/api/types/recording.d.ts +5 -5
  39. package/dist/api/types/ring.d.ts +16 -16
  40. package/dist/api/types/roi.d.ts +2 -10
  41. package/dist/api/types/routeParams.d.ts +1 -0
  42. package/dist/api/types/shared.d.ts +2 -23
  43. package/dist/api/types/shares.d.ts +0 -13
  44. package/dist/api/types/siteAnalytics.d.ts +1 -3
  45. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  46. package/dist/api/types/siteView.d.ts +6 -1
  47. package/dist/api/types/socket.d.ts +4 -0
  48. package/dist/api/types/storyblok.d.ts +0 -13
  49. package/dist/api/types/timelapse.d.ts +1 -8
  50. package/dist/api/types/user.d.ts +16 -3
  51. package/dist/api/types/workflows.d.ts +108 -0
  52. package/dist/api/utils.d.ts +1 -0
  53. package/dist/index.js +1372 -803
  54. package/dist/index.js.map +1 -1
  55. package/dist/index.umd.cjs +1 -1
  56. package/dist/index.umd.cjs.map +1 -1
  57. package/dist/shared/types/components.d.ts +221 -33
  58. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  59. package/dist/shared/types/index.d.ts +2 -0
  60. package/dist/shared/types/observations.d.ts +25 -0
  61. package/package.json +3 -1
  62. package/dist/api/types/copilot.d.ts +0 -162
  63. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -109,25 +109,14 @@ export declare enum InfoPage {
109
109
  DroneView = "drone-view",
110
110
  Compare = "compare",
111
111
  Timeline = "timeline",
112
- WeatherReport = "weather-report"
112
+ WeatherReport = "weather-report",
113
+ Cameras = "cameras"
113
114
  }
114
115
  export declare enum DownloadFileType {
115
116
  Jpeg = "jpeg",
116
117
  Pdf = "pdf",
117
118
  Csv = "csv"
118
119
  }
119
- export declare enum FeedbackContext {
120
- CopilotMessage = "copilot_message"
121
- }
122
- export type FeedbackPayload = {
123
- id?: number;
124
- user: string;
125
- text: string;
126
- type: string;
127
- context: FeedbackContext;
128
- messageId?: number;
129
- conversationId?: number;
130
- };
131
120
  export type Stringified<T> = string & {
132
121
  [P in keyof T]: {
133
122
  "_ value": T[P];
@@ -178,16 +167,6 @@ export declare enum TimelinePrecision {
178
167
  Minute = "minute",
179
168
  Events = "events"
180
169
  }
181
- export type EntityStatsQueryParams = {
182
- period: "day" | "week" | "month";
183
- startDate: string;
184
- endDate: string;
185
- };
186
- export type EntityStat = {
187
- period: string;
188
- name: string;
189
- count: number;
190
- };
191
170
  export declare enum TaskStatus {
192
171
  Idle = "idle",
193
172
  Loading = "loading",
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
33
33
  email: string;
34
34
  name: string;
35
35
  }>;
36
- export type ShareCreateRequestPayload = {
37
- email: string[] | string;
38
- message?: string;
39
- permission?: string;
40
- rights: string;
41
- apiId?: string;
42
- apiKey?: string;
43
- };
44
36
  export type ShareCreateResponsePayload = {
45
37
  shares: Share[];
46
38
  shareRequests: ShareRequest[];
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
51
43
  Used = 1,
52
44
  Failed = -2
53
45
  }
54
- export declare enum ShareVisibility {
55
- PublicDiscoverable = "publicDiscoverable",
56
- PublicUndiscoverable = "publicUndiscoverable",
57
- Private = "private"
58
- }
@@ -232,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
232
232
  feature: CameraFeatureFlag;
233
233
  processedIntervals: TimelineDateInterval[];
234
234
  };
235
- export type SmartSearchRequestPayload = {
235
+ export type SmartSearchRequestPayload = PaginationParams & {
236
236
  cameraExids?: CameraExid[];
237
237
  drawingIds?: _360FloorId[];
238
238
  walkIds?: string[];
@@ -240,8 +240,6 @@ export type SmartSearchRequestPayload = {
240
240
  payload: SmartSearchBackendQuery;
241
241
  fromDate?: string;
242
242
  toDate?: string;
243
- page?: number;
244
- limit?: number;
245
243
  threshold?: number;
246
244
  };
247
245
  type SmartSearchResultItemBase = {
@@ -0,0 +1,127 @@
1
+ import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
2
+ export declare enum VisionProvider {
3
+ Gemini = "gemini",
4
+ Gemma = "gemma"
5
+ }
6
+ export declare const VISION_PROVIDER_OPTIONS: {
7
+ text: string;
8
+ value: VisionProvider;
9
+ }[];
10
+ export type SiteAnalyticsCoolifyStatus = {
11
+ appUuid: string | null;
12
+ name: string | null;
13
+ serverUuid: string | null;
14
+ serverName: string | null;
15
+ appUrl: string | null;
16
+ status: string | null;
17
+ isRunning: boolean;
18
+ updatedAt: string | null;
19
+ };
20
+ export type SiteAnalyticsProjectMeta = {
21
+ exid: ProjectExid;
22
+ name: string | null;
23
+ timezone: string | null;
24
+ featureFlags: string[] | null;
25
+ };
26
+ export type SiteAnalyticsCameraMeta = {
27
+ exid: CameraExid;
28
+ name: string | null;
29
+ status: string | null;
30
+ featureFlags: string[] | null;
31
+ };
32
+ export type SiteAnalyticsManagedApp = {
33
+ id: number;
34
+ projectExid: ProjectExid;
35
+ cameraExid: CameraExid;
36
+ coolifyAppId: string | null;
37
+ appVersion: string;
38
+ modelId: number | null;
39
+ startDate: DateType | null;
40
+ endDate: DateType | null;
41
+ startHour: number;
42
+ endHour: number;
43
+ source: string;
44
+ override: boolean;
45
+ timeIncreaseFrequency: number;
46
+ skipWeekends: boolean;
47
+ tracking: boolean;
48
+ observations: boolean;
49
+ visionProvider?: VisionProvider | null;
50
+ insertedAt: DateType | null;
51
+ updatedAt: DateType | null;
52
+ coolify: SiteAnalyticsCoolifyStatus | null;
53
+ project: SiteAnalyticsProjectMeta | null;
54
+ camera: SiteAnalyticsCameraMeta | null;
55
+ lastTrackingAt: DateType | null;
56
+ };
57
+ export type CreateSiteAnalyticsAppPayload = {
58
+ projectExid: ProjectExid;
59
+ cameraExid: CameraExid;
60
+ coolifyServerUuid: string;
61
+ appVersion?: string;
62
+ modelId?: number | null;
63
+ startDate?: DateType | null;
64
+ endDate?: DateType | null;
65
+ startHour?: number;
66
+ endHour?: number;
67
+ source?: string;
68
+ override?: boolean;
69
+ skipWeekends?: boolean;
70
+ timeIncreaseFrequency?: number;
71
+ tracking?: boolean;
72
+ observations?: boolean;
73
+ observationPromptId?: number | null;
74
+ visionProvider?: VisionProvider;
75
+ };
76
+ export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
77
+ export type ModelOption = {
78
+ modelId: number;
79
+ version: string;
80
+ };
81
+ export type SiteAnalyticsAppConfigFormValue = {
82
+ appVersion: string;
83
+ modelId: number | null;
84
+ startDate: string | null;
85
+ endDate: string | null;
86
+ startHour: number;
87
+ endHour: number;
88
+ source: string;
89
+ override: boolean;
90
+ timeIncreaseFrequency: number;
91
+ skipWeekends: boolean;
92
+ };
93
+ export type SiteAnalyticsManagementListParams = PaginationParams & {
94
+ projectExid?: ProjectExid;
95
+ includeStatus?: boolean;
96
+ };
97
+ export type CreateSiteAnalyticsAppResponse = {
98
+ created: boolean;
99
+ id: number | null;
100
+ data: SiteAnalyticsManagedApp | null;
101
+ count: number | null;
102
+ message: string;
103
+ };
104
+ export type DeleteSiteAnalyticsAppResponse = {
105
+ deleted: boolean;
106
+ count: number;
107
+ message: string;
108
+ };
109
+ export type ObservationConfigActivity = {
110
+ observationTypeId: number;
111
+ every: number | null;
112
+ };
113
+ export type ObservationConfig = {
114
+ id: number;
115
+ cameraExid: CameraExid;
116
+ projectExid: ProjectExid | null;
117
+ enabled: boolean;
118
+ activities: ObservationConfigActivity[];
119
+ createdBy: string | null;
120
+ insertedAt: DateType | null;
121
+ updatedAt: DateType | null;
122
+ };
123
+ export type UpsertObservationConfigPayload = {
124
+ projectExid?: ProjectExid;
125
+ enabled: boolean;
126
+ activities: ObservationConfigActivity[];
127
+ };
@@ -23,6 +23,7 @@ export type ForgeUrn = {
23
23
  displayName: string;
24
24
  urn: string;
25
25
  isModelHostedByEvercamACC?: boolean;
26
+ savedViews?: Record<string, ForgeView>;
26
27
  };
27
28
  export type ForgeAccAlignmentData = {
28
29
  bbox: {
@@ -30,6 +31,11 @@ export type ForgeAccAlignmentData = {
30
31
  max: Point2D;
31
32
  };
32
33
  transform: number[];
34
+ coordinateSystem?: {
35
+ context?: {
36
+ type?: string;
37
+ };
38
+ } | null;
33
39
  };
34
40
  export type TimelineItem = {
35
41
  taskNumber: number;
@@ -55,7 +61,6 @@ export type ForgeProjectData = {
55
61
  urns?: ForgeUrn[];
56
62
  accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
57
63
  timeline?: TimelineItem[];
58
- savedView?: ForgeView;
59
64
  markers?: ForgeMarker[];
60
65
  };
61
66
  export type ItwinModel = {
@@ -0,0 +1,4 @@
1
+ export type SocketAuthResponsePayload = {
2
+ wsToken: string;
3
+ expiresIn: number;
4
+ };
@@ -1,17 +1,4 @@
1
1
  import type { JsonObject, JsonValue } from "@evercam/api/types";
2
- export type StoryblokAsset = {
3
- id: number | null;
4
- alt: string | null;
5
- name: string;
6
- focus: string | null;
7
- title: string | null;
8
- filename: string;
9
- copyright: string | null;
10
- fieldtype: "asset";
11
- source?: string;
12
- metaData?: JsonObject;
13
- isExternalUrl?: boolean;
14
- };
15
2
  export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
16
3
  id: number;
17
4
  uuid: string;
@@ -1,4 +1,4 @@
1
- import { DateType, Point2D, Schedule } from "@evercam/api/types";
1
+ import { Point2D, Schedule } from "@evercam/api/types";
2
2
  export declare enum TimelapseStatus {
3
3
  Pending = 11,
4
4
  Completed = 5,
@@ -54,13 +54,6 @@ export declare enum TimelapseType {
54
54
  Year = "year",
55
55
  FullProject = "full_project"
56
56
  }
57
- export type TimelapseFilterQueryParams = {
58
- from?: DateType;
59
- to?: DateType;
60
- period?: TimelapsePeriod;
61
- duration?: number;
62
- schedule?: Schedule;
63
- };
64
57
  export type TimelapseCreationRequestPayload = {
65
58
  title: string;
66
59
  duration: number;
@@ -151,6 +151,21 @@ export type SessionsListRequestPayload = {
151
151
  limit: number;
152
152
  page: number;
153
153
  };
154
+ export type AuthorizedApp = {
155
+ id: number;
156
+ clientId: string;
157
+ clientName: string;
158
+ clientDescription: string | null;
159
+ logoUrl: string | null;
160
+ scopes: string[];
161
+ grantedAt: string;
162
+ };
163
+ export type AuthorizedAppsListRequestPayload = {
164
+ search?: string;
165
+ sort?: string;
166
+ limit?: number;
167
+ page?: number;
168
+ };
154
169
  export type SessionActivityCamSettingsDetail = {
155
170
  new: any;
156
171
  old: any;
@@ -193,9 +208,6 @@ export type UserUpdateRequestPayload = {
193
208
  country: string;
194
209
  persona: string;
195
210
  };
196
- export type UserDeleteRequestPayload = {
197
- verifEmail: string;
198
- };
199
211
  export type GoogleAuthRequestPayload = {
200
212
  code: string;
201
213
  redirectUri: string;
@@ -337,6 +349,7 @@ export type ProjectUserWithRole = {
337
349
  name: string;
338
350
  exid: string;
339
351
  };
352
+ persona: Persona;
340
353
  permissions: string[];
341
354
  role: Role;
342
355
  subRoles: RoleSubRole[];
@@ -0,0 +1,108 @@
1
+ /**
2
+ * The Evercam Workflows engine (evercam-agent-kit), as the admin app sees it.
3
+ *
4
+ * These mirror `evercam_workflows/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
+ Workflow = "workflow",
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
+ savedWorkflowId: 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
+ };
@@ -7,3 +7,4 @@ export declare const toQueryString: <T extends Record<string, unknown>>(paramsOb
7
7
  forceArrayBrackets?: boolean | undefined;
8
8
  }) => string | undefined;
9
9
  export declare function queryStringToObject(queryString?: string): QueryParams;
10
+ export declare function getMediaApiPreviewName(url?: string | null): string | null;