@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c

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 (92) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +120 -96
  4. package/dist/api/api/aiApi.d.ts +188 -53
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/client/interceptors.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +86 -28
  8. package/dist/api/api/evercamLabsApi.d.ts +9 -18
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/index.d.ts +1 -0
  11. package/dist/api/api/ingestApi.d.ts +90 -65
  12. package/dist/api/api/reportsApi.d.ts +15 -0
  13. package/dist/api/types/360.d.ts +178 -86
  14. package/dist/api/types/admin.d.ts +41 -3
  15. package/dist/api/types/aiConfigs.d.ts +244 -0
  16. package/dist/api/types/analytics.d.ts +141 -71
  17. package/dist/api/types/anpr.d.ts +134 -0
  18. package/dist/api/types/apiKey.d.ts +70 -0
  19. package/dist/api/types/auditLogs.d.ts +179 -21
  20. package/dist/api/types/authz.d.ts +72 -0
  21. package/dist/api/types/automation.d.ts +40 -3
  22. package/dist/api/types/axios.d.ts +12 -11
  23. package/dist/api/types/bim.d.ts +70 -12
  24. package/dist/api/types/camera.d.ts +244 -128
  25. package/dist/api/types/comments.d.ts +67 -26
  26. package/dist/api/types/company.d.ts +11 -5
  27. package/dist/api/types/compare.d.ts +1 -1
  28. package/dist/api/types/connector.d.ts +3 -0
  29. package/dist/api/types/coolify.d.ts +18 -2
  30. package/dist/api/types/detections.d.ts +10 -11
  31. package/dist/api/types/drone.d.ts +95 -6
  32. package/dist/api/types/emailMessages.d.ts +27 -0
  33. package/dist/api/types/errors.d.ts +19 -2
  34. package/dist/api/types/gateReport.d.ts +59 -49
  35. package/dist/api/types/gateReportManagement.d.ts +170 -0
  36. package/dist/api/types/hammertech.d.ts +98 -0
  37. package/dist/api/types/hdd.d.ts +1 -1
  38. package/dist/api/types/index.d.ts +15 -3
  39. package/dist/api/types/ingest.d.ts +207 -20
  40. package/dist/api/types/kit.d.ts +97 -117
  41. package/dist/api/types/map.d.ts +12 -0
  42. package/dist/api/types/media.d.ts +32 -3
  43. package/dist/api/types/notification.d.ts +52 -2
  44. package/dist/api/types/nvr.d.ts +39 -8
  45. package/dist/api/types/oauth.d.ts +62 -0
  46. package/dist/api/types/observationEvents.d.ts +167 -0
  47. package/dist/api/types/observations.d.ts +89 -0
  48. package/dist/api/types/planner.d.ts +98 -8
  49. package/dist/api/types/posthog.d.ts +72 -0
  50. package/dist/api/types/progressPhoto.d.ts +39 -25
  51. package/dist/api/types/project.d.ts +77 -24
  52. package/dist/api/types/recording.d.ts +9 -15
  53. package/dist/api/types/recycleBin.d.ts +8 -2
  54. package/dist/api/types/reports.d.ts +109 -0
  55. package/dist/api/types/ring.d.ts +53 -0
  56. package/dist/api/types/roi.d.ts +3 -11
  57. package/dist/api/types/routeParams.d.ts +1 -0
  58. package/dist/api/types/router.d.ts +15 -10
  59. package/dist/api/types/shared.d.ts +39 -29
  60. package/dist/api/types/shares.d.ts +0 -13
  61. package/dist/api/types/sim.d.ts +18 -6
  62. package/dist/api/types/siteAnalytics.d.ts +7 -19
  63. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  64. package/dist/api/types/siteView.d.ts +80 -0
  65. package/dist/api/types/smartSeach.d.ts +5 -0
  66. package/dist/api/types/snapshots.d.ts +98 -13
  67. package/dist/api/types/socket.d.ts +4 -0
  68. package/dist/api/types/sso.d.ts +12 -37
  69. package/dist/api/types/storageProvider.d.ts +30 -0
  70. package/dist/api/types/storyblok.d.ts +0 -13
  71. package/dist/api/types/timelapse.d.ts +6 -9
  72. package/dist/api/types/user.d.ts +48 -34
  73. package/dist/api/types/widget.d.ts +13 -4
  74. package/dist/api/utils.d.ts +1 -1
  75. package/dist/index.js +2635 -1120
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.umd.cjs +1 -1
  78. package/dist/index.umd.cjs.map +1 -1
  79. package/dist/shared/types/components.d.ts +702 -42
  80. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  81. package/dist/shared/types/droneUpload.d.ts +93 -0
  82. package/dist/shared/types/imagePlayer.d.ts +8 -1
  83. package/dist/shared/types/index.d.ts +5 -0
  84. package/dist/shared/types/observations.d.ts +25 -0
  85. package/dist/shared/types/rbac.d.ts +80 -0
  86. package/dist/shared/types/report.d.ts +108 -0
  87. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  88. package/dist/shared/utils/datePresets.d.ts +31 -0
  89. package/package.json +4 -2
  90. package/dist/api/types/copilot.d.ts +0 -157
  91. package/dist/api/types/storageServers.d.ts +0 -4
  92. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,7 +1,7 @@
1
- import { CameraExid, CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
1
+ import { CameraStatus, CountryId, Nvr, PaginationParams, PowerType, Project, ProjectExid, Router, Schedule, SimSummary, Tag } from "@evercam/api/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
- countryCode: CountryCode;
4
+ sims?: SimSummary[];
5
5
  countryId: CountryId;
6
6
  countryName: string;
7
7
  countryRegion: KitRegion;
@@ -12,6 +12,7 @@ export type Kit = {
12
12
  powerType: PowerType;
13
13
  project: Project;
14
14
  projectId: number;
15
+ projectExid?: ProjectExid;
15
16
  router: Partial<Router>;
16
17
  serial: string;
17
18
  status: KitStatus;
@@ -19,8 +20,43 @@ export type Kit = {
19
20
  ups: boolean;
20
21
  boxId: string;
21
22
  tags: Tag[];
22
- storages: KitStorage[];
23
23
  createdAt: string;
24
+ deletedAt?: string | null;
25
+ decommissionedAt?: string | null;
26
+ deletedById?: number | null;
27
+ location?: string;
28
+ locationId?: number | null;
29
+ lastHealthCheck?: string | null;
30
+ };
31
+ export declare enum KitSupportCheckId {
32
+ RouterSmsRoundTrip = "router_sms_round_trip",
33
+ NvrRecordingAllCameras = "nvr_recording_all_cameras",
34
+ NvrRecordingThirdStream = "nvr_recording_third_stream",
35
+ CamerasHaveDeviceId = "cameras_have_device_id",
36
+ CamerasRecording = "cameras_recording",
37
+ CamerasSdCardMounted = "cameras_sd_card_mounted",
38
+ BatteryReadings = "battery_readings"
39
+ }
40
+ export declare enum KitSupportCheckStatus {
41
+ Passed = "passed",
42
+ Failed = "failed",
43
+ Skipped = "skipped"
44
+ }
45
+ export type KitSupportCheck = {
46
+ id: KitSupportCheckId;
47
+ name: string;
48
+ status: KitSupportCheckStatus;
49
+ error: string | null;
50
+ };
51
+ export type KitSupportChecklist = {
52
+ checks: KitSupportCheck[];
53
+ };
54
+ export type KitDiagnosticRun = {
55
+ kitId: number;
56
+ kitSerial: string;
57
+ checks: KitSupportCheck[];
58
+ ranAt: string;
59
+ isSeen: boolean;
24
60
  };
25
61
  export declare enum KitStatus {
26
62
  New = "new",
@@ -45,11 +81,14 @@ export declare enum KitAlarm {
45
81
  NoHdd = "no_hdd",
46
82
  MissingRouterInfo = "missing_router_info",
47
83
  AcFailure = "ac_failure",
48
- LowBattery = "low_battery"
84
+ LowBattery = "low_battery",
85
+ GeneratorOff = "generator_off"
49
86
  }
50
87
  export declare enum KitMetricId {
51
88
  SolarCharger = "solar_charger",
52
- PanelPower = "panel_power"
89
+ PanelPower = "panel_power",
90
+ Fan = "fan",
91
+ FanTemperature = "fan_temperature"
53
92
  }
54
93
  export declare enum KitMetricPeriod {
55
94
  Last15Minutes = "now-15m",
@@ -115,55 +154,6 @@ export declare enum KitChartType {
115
154
  TimeSeries = "timeseries",
116
155
  BarChart = "barchart"
117
156
  }
118
- export type GrafanaDataSource = {
119
- type: string;
120
- uid: string;
121
- };
122
- export type GrafanaTarget = {
123
- expr: string;
124
- refId: string;
125
- datasourceId?: string;
126
- intervalMs?: number;
127
- maxDataPoints?: number;
128
- };
129
- export type GrafanaPanel = {
130
- [key: string]: unknown;
131
- id: GrafanaMetricId;
132
- name: keyof GrafanaMetricId;
133
- title: string;
134
- description: string;
135
- type: KitChartType;
136
- datasource: GrafanaDataSource;
137
- targets: GrafanaTarget[];
138
- maxDataPoints?: number;
139
- interval?: string;
140
- timeFrom?: string;
141
- timeShift?: string;
142
- options?: {
143
- maxDataPoints?: number;
144
- interval?: string;
145
- };
146
- };
147
- export type GrafanaDashboard = {
148
- [key: string]: unknown;
149
- panels: GrafanaPanel[];
150
- time?: {
151
- from: string;
152
- to: string;
153
- };
154
- timepicker?: {
155
- refresh_intervals: string[];
156
- time_options: string[];
157
- };
158
- };
159
- export type GrafanaQueryOptions = {
160
- metricId: GrafanaMetricId;
161
- host: string;
162
- job?: string;
163
- from?: string;
164
- to?: string;
165
- variables?: Record<string, string>;
166
- };
167
157
  export type GrafanaTimeSeriesValue = number | string | null;
168
158
  export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
169
159
  export type GrafanaFieldConfig = {
@@ -237,10 +227,9 @@ export type GrafanaQueryResult = {
237
227
  status: number;
238
228
  frames: GrafanaFrame[];
239
229
  };
230
+ export type GrafanaMetricResults = Record<string, GrafanaQueryResult>;
240
231
  export type GrafanaMetricData = KitMetricData & {
241
- results: {
242
- [key: string]: GrafanaQueryResult;
243
- };
232
+ results: GrafanaMetricResults;
244
233
  };
245
234
  export type EvercamMetricData = KitMetricData & {
246
235
  stats: EvercamStats[];
@@ -250,67 +239,49 @@ export type EvercamStats = {
250
239
  [k: string]: number | string;
251
240
  timestamp: string;
252
241
  };
253
- export type KitQueryParams = PaginationParams & {
242
+ export type KitQueryParams = PaginationParams & Partial<{
243
+ boxId: string;
254
244
  name: string;
255
245
  serial: string;
256
246
  status: KitStatus;
257
247
  tagId: number | number[];
258
- };
259
- export type AdminKit = {
260
- id: number;
261
- name: string;
262
- serial: string;
263
- status: string;
264
- powerType: PowerType;
265
- location: string;
266
- countryId: number;
267
- countryName: string;
268
- countryRegion: string;
269
- nvr: Nvr;
270
- router: {
271
- id: number;
272
- serialNumber: number;
273
- vpnUserId: string;
274
- vpnPassword: string;
275
- routerType: string;
276
- routerUserId: string;
277
- routerPassword: string;
278
- routerHttpPort: number;
279
- powerType: PowerType;
280
- powerSchedule: Schedule;
281
- vpnServer: string;
282
- netbirdUrl: string;
283
- sims: {
284
- id: number;
285
- number: string;
286
- }[];
287
- };
288
- project: {
289
- id: number;
290
- exid: string;
291
- name: string;
292
- timezone: string;
293
- status: string;
294
- zohoId: string;
295
- insertedAt: DateType;
296
- };
297
- };
298
- export type KitCreatePayload = {
299
- projectId?: number;
300
- countryCode?: string;
301
- name: string;
302
- status: KitStatus;
303
- powerType: PowerType;
304
- config: {
305
- region: KitRegion;
306
- };
307
- };
248
+ tags: number[];
249
+ noTags: number[];
250
+ sims: string;
251
+ countryId: CountryId;
252
+ region: KitRegion;
253
+ powerType: PowerType[];
254
+ projectName: string;
255
+ projectExid: string;
256
+ nvrVersion: string;
257
+ nvrNerves: boolean;
258
+ nvrSerial: string;
259
+ nvrModel: string;
260
+ nvrDeviceType: string;
261
+ ups: boolean;
262
+ alarms: KitAlarm[];
263
+ cameraStatus: CameraStatus[];
264
+ routerSerial: string;
265
+ createdAtFrom: string;
266
+ createdAtTo: string;
267
+ }>;
308
268
  export type KitMetricStatsEntry = {
309
269
  timestamp: string;
310
270
  voltage: number;
311
271
  current: number;
312
272
  panelVoltage: number;
313
273
  panelPower: number;
274
+ yieldTotal: number;
275
+ yieldToday: number;
276
+ yieldYesterday: number;
277
+ maxPowerToday: number;
278
+ maxPowerYesterday: number;
279
+ };
280
+ export type KitFanStatsEntry = {
281
+ timestamp: string;
282
+ speed: number;
283
+ internalTemperature: number;
284
+ externalTemperature: number | null;
314
285
  };
315
286
  export type KitUpdatePayload = {
316
287
  countryId: number;
@@ -324,9 +295,12 @@ export declare enum KitStorageTransport {
324
295
  Nvme = "nvme",
325
296
  Usb = "usb"
326
297
  }
327
- export type KitStorageRequestPayload = {
298
+ export type KitStorageQueryParams = PaginationParams & Partial<{
328
299
  kitId: number;
329
- };
300
+ serial: string;
301
+ vendor: string;
302
+ transport: KitStorageTransport;
303
+ }>;
330
304
  export type KitStorage = {
331
305
  id: number;
332
306
  serial: string;
@@ -344,10 +318,10 @@ export type KitStorage = {
344
318
  freeSpace: number;
345
319
  tran: KitStorageTransport;
346
320
  };
347
- export type KitFootageRequestPayload = {
348
- cameraId: CameraExid;
321
+ export type KitFootageRequestPayload = Partial<{
322
+ cameraId: number;
349
323
  storageId: number;
350
- };
324
+ }>;
351
325
  export type KitFootage = {
352
326
  id: number;
353
327
  startDate: string;
@@ -366,7 +340,10 @@ export type KitBox = {
366
340
  id: string;
367
341
  gatewaySerial: string;
368
342
  gatewayMac: string;
369
- gatewayConfig: Record<string, unknown> | null;
343
+ gatewayConfig: {
344
+ defaultPassword: string;
345
+ } | null;
346
+ kitSerials: string[];
370
347
  insertedAt: string;
371
348
  updatedAt: string;
372
349
  };
@@ -374,10 +351,13 @@ export type KitBoxCreatePayload = {
374
351
  id?: string;
375
352
  gatewaySerial: string;
376
353
  gatewayMac: string;
377
- gatewayConfig?: Record<string, unknown>;
354
+ gatewayConfig?: {
355
+ defaultPassword?: string;
356
+ };
378
357
  };
379
- export type KitBoxQueryParams = PaginationParams & {
358
+ export type KitBoxQueryParams = PaginationParams & Partial<{
380
359
  id: string;
381
360
  gatewaySerial: string;
382
361
  gatewayMac: string;
383
- };
362
+ hasKits: boolean;
363
+ }>;
@@ -2,3 +2,15 @@ export declare enum MapType {
2
2
  Hybrid = "hybrid",
3
3
  Terrain = "terrain"
4
4
  }
5
+ export type MapView = {
6
+ east?: number;
7
+ floorID?: string;
8
+ image?: string;
9
+ mapStyle?: MapType;
10
+ name: string;
11
+ north?: number;
12
+ projectId: string;
13
+ projectName: string;
14
+ south?: number;
15
+ west?: number;
16
+ };
@@ -1,8 +1,9 @@
1
1
  import type { CameraExid, Exid, DateType } from "@evercam/api/types";
2
2
  export type MediaExid = Exid;
3
3
  export type Media = {
4
- project_exid?: string;
5
4
  cameraExid?: CameraExid;
5
+ cameraId?: number;
6
+ projectId?: number;
6
7
  cameraName: string;
7
8
  cameraTimezone: string;
8
9
  createdAt: string;
@@ -25,6 +26,13 @@ export type Media = {
25
26
  projectExid?: string;
26
27
  thumbnailUrl?: string;
27
28
  mediaUrl?: string;
29
+ camera?: string;
30
+ notes?: string;
31
+ category?: MediaCategory | ClipsCategory;
32
+ isUrgent?: boolean;
33
+ bucket?: string;
34
+ sourceProduct?: string;
35
+ featureType?: string;
28
36
  };
29
37
  export declare enum MediaType {
30
38
  EditedImage = "edit",
@@ -42,7 +50,8 @@ export declare enum MediaFileType {
42
50
  Mp4 = "mp4",
43
51
  Png = "png",
44
52
  Pdf = "pdf",
45
- Jpeg = "jpeg"
53
+ Jpeg = "jpeg",
54
+ Csv = "csv"
46
55
  }
47
56
  export declare enum MediaStatus {
48
57
  Pending = "Pending",
@@ -75,6 +84,22 @@ export type MediaFilterQueryParams = {
75
84
  limit?: number;
76
85
  camera?: string;
77
86
  };
87
+ export type AdminMediaFilterQueryParams = Partial<{
88
+ title: string;
89
+ sort: string;
90
+ cameraName: string;
91
+ cameraExid: string;
92
+ requesterName: string;
93
+ type: MediaType;
94
+ projectExid: string;
95
+ projectName: string;
96
+ status: MediaStatus;
97
+ notes: string;
98
+ category: MediaCategory | ClipsCategory;
99
+ isUrgent: boolean;
100
+ page: number;
101
+ limit: number;
102
+ }>;
78
103
  export type MediaUpdateRequestPayload = {
79
104
  name?: string;
80
105
  title?: string;
@@ -92,7 +117,7 @@ export type MediaCreateRequestPayload = {
92
117
  cameraExid?: string;
93
118
  requestedBy?: string;
94
119
  notes?: string;
95
- category?: ClipsCategory;
120
+ category?: MediaCategory | ClipsCategory;
96
121
  isUrgent?: boolean;
97
122
  storeAsType?: MediaType;
98
123
  };
@@ -107,6 +132,10 @@ export declare enum ClipsCategory {
107
132
  Marketing = "marketing",
108
133
  BestPracticies = "best_practices"
109
134
  }
135
+ export declare enum MediaCategory {
136
+ Weather = "weather",
137
+ SmartSearch = "smart_search"
138
+ }
110
139
  export type MediaDeleteRequestPayload = {
111
140
  timelapseIds: (string | number)[];
112
141
  compareIds: (string | number)[];
@@ -1,11 +1,32 @@
1
+ import { CommentsScope, CommentThreeSixtyContext } from "./comments";
1
2
  export declare enum NotificationType {
2
3
  CameraShare = "camera_share",
3
4
  CameraStatusChange = "camera_status_changed",
4
5
  Mention = "mention",
6
+ CommentMention = "comment_mention",
5
7
  TimelapseCreated = "timelapse_created",
6
8
  TimelapseFailed = "timelapse_failed",
7
9
  DroneProcessing = "drone_processing_done",
8
- Processing360 = "three_sixty_done"
10
+ Processing360 = "three_sixty_done",
11
+ SmartSearchExportReady = "smart_search_export_ready",
12
+ SmartSearchExportFailed = "smart_search_export_failed",
13
+ GateReportExportReady = "gate_report_export_ready",
14
+ GateReportExportFailed = "gate_report_export_failed",
15
+ PpeExportReady = "ppe_export_ready",
16
+ PpeExportFailed = "ppe_export_failed",
17
+ WeatherExportReady = "weather_export_ready",
18
+ WeatherExportFailed = "weather_export_failed",
19
+ CompareReady = "compare_ready",
20
+ CompareFailed = "compare_failed",
21
+ ClipExportReady = "clip_export_ready",
22
+ ClipExportFailed = "clip_export_failed",
23
+ NvrClipReady = "nvr_clip_ready",
24
+ NvrClipFailed = "nvr_clip_failed",
25
+ UploadComplete = "upload_complete",
26
+ UploadFailed = "upload_failed",
27
+ RingCamerasImported = "ring_cameras_imported",
28
+ StorageWarning = "storage_warning",
29
+ Other = "other"
9
30
  }
10
31
  export interface NotificationContextBase {
11
32
  cameraExid?: string;
@@ -41,7 +62,36 @@ export interface Processing360Context extends NotificationContextBase {
41
62
  date: string;
42
63
  floor: string;
43
64
  }
44
- export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
65
+ export interface ExportNotificationContext extends NotificationContextBase {
66
+ projectExid: string;
67
+ archiveExid?: string;
68
+ compareExid?: string;
69
+ }
70
+ export interface UploadNotificationContext extends NotificationContextBase {
71
+ projectExid: string;
72
+ }
73
+ export interface RingCamerasImportedContext extends NotificationContextBase {
74
+ projectExid: string;
75
+ projectName: string;
76
+ cameras: Array<{
77
+ exid: string;
78
+ name: string;
79
+ }>;
80
+ }
81
+ export interface StorageWarningContext extends NotificationContextBase {
82
+ projectExid: string;
83
+ cameraName: string;
84
+ }
85
+ export interface CommentMentionContext extends NotificationContextBase {
86
+ projectExid: string;
87
+ commentId: number;
88
+ scope: CommentsScope;
89
+ commentContext: CommentThreeSixtyContext;
90
+ content?: string;
91
+ label?: string;
92
+ projectName?: string;
93
+ }
94
+ export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext | CommentMentionContext;
45
95
  export type Notification = {
46
96
  id: number;
47
97
  type: NotificationType;
@@ -1,15 +1,17 @@
1
1
  import type { NvrModel } from "@evercam/api/types";
2
2
  export type Nvr = {
3
3
  id?: number;
4
+ kitId?: number;
4
5
  deviceType: NvrDeviceType;
5
6
  serial: string;
6
7
  model: NvrModel;
7
- httpUrl: string;
8
- rtspUrl: string;
8
+ httpUrl: string | null;
9
+ rtspUrl: string | null;
9
10
  macAddress: string;
10
- username: string;
11
- password: string;
11
+ username: string | null;
12
+ password: string | null;
12
13
  nerves: boolean;
14
+ version?: string;
13
15
  };
14
16
  export declare enum NvrDeviceType {
15
17
  Rpi4 = "rpi4",
@@ -26,11 +28,40 @@ export declare enum NvrHddStatus {
26
28
  }
27
29
  export type NvrCreatePayload = {
28
30
  serial?: string;
29
- httpUrl: string;
30
- rtspUrl?: string;
31
+ httpUrl?: string | null;
32
+ rtspUrl?: string | null;
31
33
  deviceType?: NvrDeviceType;
32
34
  model: NvrModel;
33
- username: string;
34
- password: string;
35
+ username?: string | null;
36
+ password?: string | null;
35
37
  kitId?: number;
36
38
  };
39
+ export type NvrConnectionFields = Pick<NvrCreatePayload, "username" | "password" | "httpUrl" | "rtspUrl">;
40
+ export type AdminNvr = {
41
+ name: string;
42
+ exid: string;
43
+ externalHost: string | null;
44
+ model: string | null;
45
+ deviceName: string | null;
46
+ macAddress: string | null;
47
+ firmwareVersion: string | null;
48
+ resolution: string | null;
49
+ bitrateType: string | null;
50
+ videoQuality: string | null;
51
+ frameRate: number | null;
52
+ bitrate: string | null;
53
+ videoEncoding: string | null;
54
+ hddName: string | null;
55
+ hddCapacity: string | null;
56
+ freeSpace: string | null;
57
+ hddStatus: string | null;
58
+ hddProperty: string | null;
59
+ nvrStatus: string;
60
+ timeMode: string | null;
61
+ localTime: string | null;
62
+ timezone: string | null;
63
+ addressingFormatType: string | null;
64
+ hostName: string | null;
65
+ portNo: string | null;
66
+ synchronizeInterval: string | null;
67
+ };
@@ -0,0 +1,62 @@
1
+ export type OAuthClient = {
2
+ id: number;
3
+ name: string;
4
+ clientId: string;
5
+ redirectUris: string[];
6
+ logoUrl: string | null;
7
+ scopes: string[];
8
+ active: boolean;
9
+ description: string | null;
10
+ owner: {
11
+ id: number;
12
+ name: string;
13
+ email: string;
14
+ } | null;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ };
18
+ export type OAuthClientWithSecret = OAuthClient & {
19
+ clientSecret: string;
20
+ };
21
+ export type CreateOAuthClientPayload = {
22
+ name: string;
23
+ redirectUris: string[];
24
+ scopes?: string[];
25
+ description?: string;
26
+ logoUrl?: string;
27
+ };
28
+ export type AdminCreateOAuthClientPayload = CreateOAuthClientPayload & {
29
+ clientId?: string;
30
+ clientSecret?: string;
31
+ };
32
+ export type UpdateOAuthClientPayload = {
33
+ name?: string;
34
+ redirectUris?: string[];
35
+ scopes?: string[];
36
+ description?: string;
37
+ logoUrl?: string;
38
+ active?: boolean;
39
+ };
40
+ export type OAuthScopeDetail = {
41
+ scope: string;
42
+ description: string;
43
+ group: string;
44
+ };
45
+ export type OAuthConsentInfo = {
46
+ client: {
47
+ name: string;
48
+ logoUrl: string | null;
49
+ description: string | null;
50
+ };
51
+ scopes: OAuthScopeDetail[];
52
+ };
53
+ export type OAuthConsentPayload = {
54
+ clientId: string;
55
+ scope: string;
56
+ redirectUri: string;
57
+ state: string;
58
+ decision: "allow" | "deny";
59
+ };
60
+ export type OAuthConsentResponse = {
61
+ redirectUrl: string;
62
+ };