@evercam/api 1.0.0-ff3128bbe → 1.0.0-ff34bc64c

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 (74) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +203 -15
  3. package/dist/api/api/adminApi.d.ts +32 -21
  4. package/dist/api/api/aiApi.d.ts +127 -4
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/evercamApi.d.ts +48 -25
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  8. package/dist/api/api/index.d.ts +1 -0
  9. package/dist/api/api/ingestApi.d.ts +41 -29
  10. package/dist/api/api/workflowsApi.d.ts +15 -0
  11. package/dist/api/types/360.d.ts +171 -83
  12. package/dist/api/types/admin.d.ts +1 -1
  13. package/dist/api/types/aiConfigs.d.ts +244 -0
  14. package/dist/api/types/analytics.d.ts +49 -33
  15. package/dist/api/types/anpr.d.ts +31 -2
  16. package/dist/api/types/auditLogs.d.ts +19 -4
  17. package/dist/api/types/authz.d.ts +71 -0
  18. package/dist/api/types/automation.d.ts +32 -4
  19. package/dist/api/types/axios.d.ts +10 -9
  20. package/dist/api/types/bim.d.ts +29 -6
  21. package/dist/api/types/camera.d.ts +38 -47
  22. package/dist/api/types/comments.d.ts +16 -7
  23. package/dist/api/types/company.d.ts +1 -2
  24. package/dist/api/types/compare.d.ts +1 -1
  25. package/dist/api/types/connector.d.ts +2 -0
  26. package/dist/api/types/detections.d.ts +3 -10
  27. package/dist/api/types/drone.d.ts +94 -6
  28. package/dist/api/types/errors.d.ts +18 -2
  29. package/dist/api/types/gateReport.d.ts +7 -22
  30. package/dist/api/types/gateReportManagement.d.ts +170 -0
  31. package/dist/api/types/hammertech.d.ts +98 -0
  32. package/dist/api/types/index.d.ts +9 -2
  33. package/dist/api/types/ingest.d.ts +177 -27
  34. package/dist/api/types/kit.d.ts +44 -101
  35. package/dist/api/types/map.d.ts +12 -0
  36. package/dist/api/types/media.d.ts +7 -2
  37. package/dist/api/types/notification.d.ts +52 -2
  38. package/dist/api/types/observationEvents.d.ts +141 -0
  39. package/dist/api/types/observations.d.ts +84 -0
  40. package/dist/api/types/planner.d.ts +56 -10
  41. package/dist/api/types/posthog.d.ts +20 -0
  42. package/dist/api/types/project.d.ts +17 -4
  43. package/dist/api/types/recording.d.ts +8 -13
  44. package/dist/api/types/ring.d.ts +16 -16
  45. package/dist/api/types/roi.d.ts +3 -11
  46. package/dist/api/types/routeParams.d.ts +1 -0
  47. package/dist/api/types/shared.d.ts +24 -22
  48. package/dist/api/types/shares.d.ts +0 -13
  49. package/dist/api/types/siteAnalytics.d.ts +3 -5
  50. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  51. package/dist/api/types/siteView.d.ts +78 -0
  52. package/dist/api/types/snapshots.d.ts +13 -0
  53. package/dist/api/types/socket.d.ts +4 -0
  54. package/dist/api/types/storyblok.d.ts +0 -13
  55. package/dist/api/types/timelapse.d.ts +4 -8
  56. package/dist/api/types/user.d.ts +16 -4
  57. package/dist/api/types/workflows.d.ts +108 -0
  58. package/dist/api/utils.d.ts +1 -1
  59. package/dist/index.js +2169 -915
  60. package/dist/index.js.map +1 -1
  61. package/dist/index.umd.cjs +1 -1
  62. package/dist/index.umd.cjs.map +1 -1
  63. package/dist/shared/types/components.d.ts +247 -49
  64. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  65. package/dist/shared/types/droneUpload.d.ts +66 -0
  66. package/dist/shared/types/imagePlayer.d.ts +8 -1
  67. package/dist/shared/types/index.d.ts +4 -0
  68. package/dist/shared/types/observations.d.ts +25 -0
  69. package/dist/shared/types/report.d.ts +101 -0
  70. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  71. package/dist/shared/utils/datePresets.d.ts +31 -0
  72. package/package.json +4 -2
  73. package/dist/api/types/copilot.d.ts +0 -162
  74. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,22 +1,24 @@
1
- import { ApiCredentials } from "@evercam/api/types";
1
+ import { ApiCredentials, PaginationParams } from "@evercam/api/types";
2
2
  import { CancelToken } from "axios";
3
3
  export type Snapshot = {
4
4
  createdAt: string;
5
5
  data: string;
6
6
  status?: string;
7
7
  };
8
- export type NearestSnapshotRequestPayload = {
8
+ export type SnapshotRequestPayload = {
9
9
  apiKey?: string;
10
10
  apiId?: string;
11
11
  token?: string;
12
12
  cancelToken?: object;
13
13
  includeImage?: boolean;
14
+ view?: boolean;
14
15
  };
15
16
  export type AvailableDaysRequestPayload = {
16
17
  cameraId: string;
17
18
  year: string;
18
19
  month: string;
19
20
  payload?: ApiCredentials;
21
+ cancelToken?: CancelToken;
20
22
  };
21
23
  export type AvailableDaysResponsePayload = {
22
24
  days: Array<number>;
@@ -39,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
39
41
  notes?: string;
40
42
  }>;
41
43
  };
42
- export type SnapshotRangeRequestPayload = {
44
+ export type SnapshotRangeRequestPayload = PaginationParams & {
43
45
  from: string;
44
46
  to: string;
45
- limit?: number;
46
- page?: number;
47
47
  schedule?: boolean;
48
48
  count?: number;
49
49
  };
@@ -76,6 +76,7 @@ export declare enum CloudRecordingDuration {
76
76
  Month = 30,
77
77
  ThreeMonths = 90
78
78
  }
79
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
79
80
  export declare enum CloudRecordingStatus {
80
81
  On = "on",
81
82
  Off = "off",
@@ -103,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
103
104
  }
104
105
  export declare enum VpnServer {
105
106
  None = "None",
106
- OpenVPN1 = "OpenVPN1",
107
- OpenVPN2 = "OpenVPN2",
108
- OpenVPN3 = "OpenVPN3",
109
- OpenVPN4 = "OpenVPN4",
110
- OpenVPN5 = "OpenVPN5",
111
- PPTP1 = "PPTP1",
112
- PPTP2 = "PPTP2",
113
107
  WireGuard1 = "WireGuard1",
114
108
  WireGuard2 = "WireGuard2",
115
109
  WireGuard3 = "WireGuard3",
@@ -119,5 +113,6 @@ export declare enum VpnServer {
119
113
  WireGuard7 = "WireGuard7",
120
114
  WireGuard8 = "WireGuard8",
121
115
  WireGuard9 = "WireGuard9",
122
- WireGuard10 = "WireGuard10"
116
+ WireGuard10 = "WireGuard10",
117
+ WgHub = "WgHub"
123
118
  }
@@ -1,8 +1,23 @@
1
+ export type RingCompleteLinkingPayload = {
2
+ nonce: string;
3
+ time: string;
4
+ };
5
+ /** The only auto-import status complete-linking returns today. */
6
+ export declare const RING_AUTO_IMPORT_QUEUED = "queued";
7
+ export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
8
+ export type RingCompleteLinkingResponsePayload = {
9
+ status: string;
10
+ /** Absent when the API did not schedule an import. */
11
+ autoImport?: RingAutoImportStatus;
12
+ };
1
13
  export type RingDevice = {
2
14
  deviceId: string;
3
15
  name: string;
4
- deviceType: string;
16
+ /** Resolved from Ring's `device-status`; null when Ring did not return it. */
17
+ online: boolean | null;
18
+ deviceType: string | null;
5
19
  firmwareVersion: string | null;
20
+ /** Always null — Ring's API does not expose device power level. */
6
21
  batteryLife: number | null;
7
22
  location: string | null;
8
23
  imported: boolean;
@@ -13,21 +28,6 @@ export type RingDevice = {
13
28
  export type RingDevicesResponsePayload = {
14
29
  devices: RingDevice[];
15
30
  };
16
- export type RingImportDevicesPayload = {
17
- deviceIds: string[];
18
- projectExid: string;
19
- deviceNames?: Record<string, string>;
20
- };
21
- export type RingImportResponsePayload = {
22
- cameras: Array<{
23
- exid: string;
24
- name: string;
25
- }>;
26
- project: {
27
- exid: string;
28
- name: string;
29
- };
30
- };
31
31
  export type RingMoveDevicePayload = {
32
32
  projectExid: string;
33
33
  };
@@ -3,23 +3,15 @@ export declare enum RoiType {
3
3
  AnprContext = "anpr_context",
4
4
  ExclusionZone = "exclusion_zone",
5
5
  WorkflowArea = "workflow_area",
6
- SiteAnalytics = "site_analytics"
6
+ SiteAnalytics = "site_analytics",
7
+ Ppe = "ppe_roi"
7
8
  }
8
9
  export declare enum RoiShapeType {
9
10
  Polygon = "polygon",
10
11
  Line = "line",
11
12
  Direction = "direction",
12
- Rectangle = "rectangle",
13
- ROIBox = "ROIBox"
13
+ Rectangle = "rectangle"
14
14
  }
15
- export type RoiShape = {
16
- id: number | null;
17
- name: string;
18
- x1: number;
19
- x2: number;
20
- y1: number;
21
- y2: number;
22
- };
23
15
  export declare enum RoiDirection {
24
16
  Arrived = "arrived",
25
17
  Left = "left",
@@ -1,6 +1,7 @@
1
1
  export type RouteParams = {
2
2
  projectExid?: string;
3
3
  cameraExid?: string;
4
+ mediaExid?: string;
4
5
  timestamp?: string;
5
6
  fromDate?: string;
6
7
  toDate?: string;
@@ -1,4 +1,8 @@
1
1
  import { DateType } from "@evercam/api/types";
2
+ export declare enum Operator {
3
+ AND = "and",
4
+ OR = "or"
5
+ }
2
6
  type sortby = string;
3
7
  type sortDirection = "asc" | "desc";
4
8
  export type SortingUrlParam = `${sortby}|${sortDirection}`;
@@ -105,25 +109,18 @@ export declare enum InfoPage {
105
109
  DroneView = "drone-view",
106
110
  Compare = "compare",
107
111
  Timeline = "timeline",
108
- WeatherReport = "weather-report"
112
+ WeatherReport = "weather-report",
113
+ Cameras = "cameras"
109
114
  }
110
115
  export declare enum DownloadFileType {
111
116
  Jpeg = "jpeg",
112
117
  Pdf = "pdf",
113
118
  Csv = "csv"
114
119
  }
115
- export declare enum FeedbackContext {
116
- CopilotMessage = "copilot_message"
120
+ export declare enum PromiseSettledStatus {
121
+ Fulfilled = "fulfilled",
122
+ Rejected = "rejected"
117
123
  }
118
- export type FeedbackPayload = {
119
- id?: number;
120
- user: string;
121
- text: string;
122
- type: string;
123
- context: FeedbackContext;
124
- messageId?: number;
125
- conversationId?: number;
126
- };
127
124
  export type Stringified<T> = string & {
128
125
  [P in keyof T]: {
129
126
  "_ value": T[P];
@@ -133,6 +130,21 @@ export interface JSON {
133
130
  stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
134
131
  parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
135
132
  }
133
+ export type TuplePoint2D = [number, number];
134
+ export type TuplePoint3D = [number, number, number];
135
+ export type Point2D = {
136
+ x: number;
137
+ y: number;
138
+ };
139
+ export type Point3D = {
140
+ x: number;
141
+ y: number;
142
+ z: number;
143
+ };
144
+ export type GeoPoint = {
145
+ lat: number;
146
+ lng: number;
147
+ };
136
148
  export type Exid = string;
137
149
  export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
138
150
  export type BatteryVoltage = {
@@ -159,16 +171,6 @@ export declare enum TimelinePrecision {
159
171
  Minute = "minute",
160
172
  Events = "events"
161
173
  }
162
- export type EntityStatsQueryParams = {
163
- period: "day" | "week" | "month";
164
- startDate: string;
165
- endDate: string;
166
- };
167
- export type EntityStat = {
168
- period: string;
169
- name: string;
170
- count: number;
171
- };
172
174
  export declare enum TaskStatus {
173
175
  Idle = "idle",
174
176
  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
- }
@@ -1,4 +1,4 @@
1
- import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter } from "@evercam/api/types";
1
+ import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter, TuplePoint2D } from "@evercam/api/types";
2
2
  import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
@@ -184,7 +184,7 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
184
184
  directDownload?: boolean;
185
185
  };
186
186
  export type SmartSearchHeatmapPoint = {
187
- coordinates: [number, number];
187
+ coordinates: TuplePoint2D;
188
188
  detectionsCount: number;
189
189
  };
190
190
  export type SmartSearchHeatmapData = {
@@ -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
- pageSize?: 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
+ };
@@ -0,0 +1,78 @@
1
+ import { ForgeView } from "@evercam/api/types/360";
2
+ import { Point2D, Point3D } from "@evercam/api/types/shared";
3
+ export declare enum SiteViewSoftwareType {
4
+ Revit = "Revit",
5
+ Navisworks = "Navisworks",
6
+ Drone = "Drone",
7
+ Synchro = "Synchro"
8
+ }
9
+ export declare enum SiteViewerType {
10
+ ITwin = "iTwin",
11
+ Cesium = "Cesium",
12
+ Forge = "Forge"
13
+ }
14
+ export type SiteViewCameraListItem = {
15
+ projectId: string;
16
+ projectName: string;
17
+ software: SiteViewSoftwareType;
18
+ type: SiteViewerType;
19
+ uniqueId: string;
20
+ integrationType?: string;
21
+ };
22
+ export type ForgeUrn = {
23
+ displayName: string;
24
+ urn: string;
25
+ isModelHostedByEvercamACC?: boolean;
26
+ savedViews?: Record<string, ForgeView>;
27
+ };
28
+ export type ForgeAccAlignmentData = {
29
+ bbox: {
30
+ min: Point2D;
31
+ max: Point2D;
32
+ };
33
+ transform: number[];
34
+ coordinateSystem?: {
35
+ context?: {
36
+ type?: string;
37
+ };
38
+ } | null;
39
+ };
40
+ export type TimelineItem = {
41
+ taskNumber: number;
42
+ taskID: string;
43
+ actualStartDate: string;
44
+ actualEndDate: string;
45
+ plannedStartDate: string;
46
+ plannedEndDate: string;
47
+ objectIDs: number[];
48
+ };
49
+ export type ForgeMarkerTransform = {
50
+ default: {
51
+ position: Point3D;
52
+ type: string;
53
+ };
54
+ };
55
+ export type ForgeMarker = {
56
+ name: string;
57
+ cameraExid: string;
58
+ transforms: ForgeMarkerTransform;
59
+ };
60
+ export type ForgeProjectData = {
61
+ urns?: ForgeUrn[];
62
+ accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
63
+ timeline?: TimelineItem[];
64
+ markers?: ForgeMarker[];
65
+ };
66
+ export type ItwinModel = {
67
+ name: string;
68
+ iTwinId: string;
69
+ iModelId: string;
70
+ changeSetId?: string;
71
+ isIModel: boolean;
72
+ height?: number;
73
+ cesiumId?: number;
74
+ markerDistanceThreshold: number;
75
+ };
76
+ export type ItwinProjectData = {
77
+ models: ItwinModel[];
78
+ };
@@ -5,8 +5,11 @@ export type SnapshotExtractionQyeryParams = PaginationParams & {
5
5
  status: SnapshotExtractionStatus;
6
6
  };
7
7
  export declare enum SnapshotExtractionStatus {
8
+ Cancelling = "canceling",
9
+ Cancelled = "cancelled",
8
10
  Completed = "completed",
9
11
  Failed = "failed",
12
+ Pending = "pending",
10
13
  Processing = "processing"
11
14
  }
12
15
  export declare enum SnapshotExtractionType {
@@ -30,6 +33,8 @@ export type SnapshotExtraction = {
30
33
  injectTo_cr: Boolean;
31
34
  schedule: Schedule;
32
35
  created_at: DateType;
36
+ jpegCount?: number;
37
+ obanJobId?: number;
33
38
  };
34
39
  export type SnapshotTestPayload = {
35
40
  cameraExid?: CameraExid;
@@ -42,6 +47,14 @@ export type SnapshotTestResponse = {
42
47
  status: string;
43
48
  data: string;
44
49
  };
50
+ export type SnapshotEmailDeliveryRequestPayload = {
51
+ snapshot: string;
52
+ recipients?: string[];
53
+ message?: string;
54
+ };
55
+ export type SnapshotEmailDeliveryResponsePayload = {
56
+ warning?: string;
57
+ };
45
58
  export type DeleteSnapshotQueryParams = {
46
59
  fromDate: DateType;
47
60
  toDate: DateType;
@@ -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, 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,
@@ -16,7 +16,9 @@ export type TimelapseVideoOptions = {
16
16
  removeTimestamp: boolean;
17
17
  smoothTransition: boolean;
18
18
  evercamWatermark: boolean;
19
+ sectionBlur?: boolean;
19
20
  timestampPosition?: TimestampPositionCoordinates;
21
+ blurRegions?: BlurRegionCoordinates[];
20
22
  };
21
23
  export type TimestampPositionCoordinates = {
22
24
  x: number;
@@ -24,6 +26,7 @@ export type TimestampPositionCoordinates = {
24
26
  w: number;
25
27
  h: number;
26
28
  };
29
+ export type BlurRegionCoordinates = Point2D[];
27
30
  export type TimelapseLogoOptions = {
28
31
  id?: number;
29
32
  x: number;
@@ -51,13 +54,6 @@ export declare enum TimelapseType {
51
54
  Year = "year",
52
55
  FullProject = "full_project"
53
56
  }
54
- export type TimelapseFilterQueryParams = {
55
- from?: DateType;
56
- to?: DateType;
57
- period?: TimelapsePeriod;
58
- duration?: number;
59
- schedule?: Schedule;
60
- };
61
57
  export type TimelapseCreationRequestPayload = {
62
58
  title: string;
63
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;
@@ -176,7 +191,6 @@ export type SessionActivitiesListRequestPayload = {
176
191
  };
177
192
  export type SignupUserRequestPayload = {
178
193
  telephone: string;
179
- token: string;
180
194
  firstname: string;
181
195
  lastname: string;
182
196
  email: string;
@@ -194,9 +208,6 @@ export type UserUpdateRequestPayload = {
194
208
  country: string;
195
209
  persona: string;
196
210
  };
197
- export type UserDeleteRequestPayload = {
198
- verifEmail: string;
199
- };
200
211
  export type GoogleAuthRequestPayload = {
201
212
  code: string;
202
213
  redirectUri: string;
@@ -338,6 +349,7 @@ export type ProjectUserWithRole = {
338
349
  name: string;
339
350
  exid: string;
340
351
  };
352
+ persona: Persona;
341
353
  permissions: string[];
342
354
  role: Role;
343
355
  subRoles: RoleSubRole[];