sysiddr5 1.0.1-beta-5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sysiddr5 might be problematic. Click here for more details.

package/lib/index.d.ts ADDED
@@ -0,0 +1,1028 @@
1
+ // Type definitions for systeminformation
2
+ // Project: https://github.com/sebhildebrandt/systeminformation
3
+ // Definitions by: sebhildebrandt <https://github.com/sebhildebrandt>
4
+
5
+ export namespace Systeminformation {
6
+
7
+ // 1. General
8
+
9
+ interface TimeData {
10
+ current: number;
11
+ uptime: number;
12
+ timezone: string;
13
+ timezoneName: string;
14
+ }
15
+
16
+ // 2. System (HW)
17
+
18
+ interface RaspberryRevisionData {
19
+ manufacturer: string;
20
+ processor: string;
21
+ type: string;
22
+ revision: string;
23
+ }
24
+ interface SystemData {
25
+ manufacturer: string;
26
+ model: string;
27
+ version: string;
28
+ serial: string;
29
+ uuid: string;
30
+ sku: string;
31
+ virtual: boolean;
32
+ virtualHost?: string;
33
+ raspberry?: RaspberryRevisionData;
34
+ }
35
+
36
+ interface BiosData {
37
+ vendor: string;
38
+ version: string;
39
+ releaseDate: string;
40
+ revision: string;
41
+ serial?: string;
42
+ language?: string;
43
+ features?: string[];
44
+ }
45
+
46
+ interface BaseboardData {
47
+ manufacturer: string;
48
+ model: string;
49
+ version: string;
50
+ serial: string;
51
+ assetTag: string;
52
+ memMax: number | null;
53
+ memSlots: number | null;
54
+ }
55
+
56
+ interface ChassisData {
57
+ manufacturer: string;
58
+ model: string;
59
+ type: string;
60
+ version: string;
61
+ serial: string;
62
+ assetTag: string;
63
+ sku: string;
64
+ }
65
+
66
+ // 3. CPU, Memory, Disks, Battery, Graphics
67
+
68
+ interface CpuData {
69
+ manufacturer: string;
70
+ brand: string;
71
+ vendor: string;
72
+ family: string;
73
+ model: string;
74
+ stepping: string;
75
+ revision: string;
76
+ voltage: string;
77
+ speed: number;
78
+ speedMin: number;
79
+ speedMax: number;
80
+ governor: string;
81
+ cores: number;
82
+ physicalCores: number;
83
+ efficiencyCores?: number;
84
+ performanceCores?: number;
85
+ processors: number;
86
+ socket: string;
87
+ flags: string;
88
+ virtualization: boolean;
89
+ cache: CpuCacheData;
90
+ }
91
+
92
+ interface CpuCacheData {
93
+ l1d: number;
94
+ l1i: number;
95
+ l2: number;
96
+ l3: number;
97
+ }
98
+
99
+ interface CpuCurrentSpeedData {
100
+ min: number;
101
+ max: number;
102
+ avg: number;
103
+ cores: number[];
104
+ }
105
+
106
+ interface CpuTemperatureData {
107
+ main: number;
108
+ cores: number[];
109
+ max: number;
110
+ socket?: number[];
111
+ chipset?: number;
112
+ }
113
+
114
+ interface MemData {
115
+ total: number;
116
+ free: number;
117
+ used: number;
118
+ active: number;
119
+ available: number;
120
+ buffcache: number;
121
+ buffers: number;
122
+ cached: number;
123
+ slab: number;
124
+ swaptotal: number;
125
+ swapused: number;
126
+ swapfree: number;
127
+ }
128
+
129
+ interface MemLayoutData {
130
+ size: number;
131
+ bank: string;
132
+ type: string;
133
+ ecc?: boolean | null;
134
+ clockSpeed: number | null;
135
+ formFactor: string;
136
+ manufacturer?: string;
137
+ partNum: string;
138
+ serialNum: string;
139
+ voltageConfigured: number | null;
140
+ voltageMin: number | null;
141
+ voltageMax: number | null;
142
+ }
143
+
144
+ interface SmartData {
145
+ json_format_version: number[];
146
+ smartctl: {
147
+ version: number[];
148
+ platform_info: string;
149
+ build_info: string;
150
+ argv: string[];
151
+ exit_status: number;
152
+ };
153
+ device: {
154
+ name: string;
155
+ info_name: string;
156
+ type: string;
157
+ protocol: string;
158
+ };
159
+ model_family?: string;
160
+ model_name?: string;
161
+ serial_number?: string;
162
+ firmware_version?: string;
163
+ smart_status: {
164
+ passed: boolean;
165
+ };
166
+ trim?: {
167
+ supported: boolean;
168
+ };
169
+ ata_smart_attributes?: {
170
+ revision: number;
171
+ table: {
172
+ id: number;
173
+ name: string;
174
+ value: number;
175
+ worst: number;
176
+ thresh: number;
177
+ when_failed: string;
178
+ flags: {
179
+ value: number;
180
+ string: string;
181
+ prefailure: boolean;
182
+ updated_online: boolean;
183
+ performance: boolean;
184
+ error_rate: boolean;
185
+ event_count: boolean;
186
+ auto_keep: boolean;
187
+ };
188
+ raw: {
189
+ value: number;
190
+ string: string;
191
+ };
192
+ }[];
193
+ };
194
+ ata_smart_error_log?: {
195
+ summary: {
196
+ revision: number;
197
+ count: number;
198
+ };
199
+ };
200
+ ata_smart_self_test_log?: {
201
+ standard: {
202
+ revision: number;
203
+ table: {
204
+ type: {
205
+ value: number;
206
+ string: string;
207
+ };
208
+ status: {
209
+ value: number;
210
+ string: string;
211
+ passed: boolean;
212
+ };
213
+ lifetime_hours: number;
214
+ }[];
215
+ count: number;
216
+ error_count_total: number;
217
+ error_count_outdated: number;
218
+ };
219
+ };
220
+ nvme_pci_vendor?: {
221
+ id: number;
222
+ subsystem_id: number;
223
+ },
224
+ nvme_smart_health_information_log?: {
225
+ critical_warning?: number;
226
+ temperature?: number;
227
+ available_spare?: number;
228
+ available_spare_threshold?: number;
229
+ percentage_used?: number;
230
+ data_units_read?: number;
231
+ data_units_written?: number;
232
+ host_reads?: number;
233
+ host_writes?: number;
234
+ controller_busy_time?: number;
235
+ power_cycles?: number;
236
+ power_on_hours?: number;
237
+ unsafe_shutdowns?: number;
238
+ media_errors?: number;
239
+ num_err_log_entries?: number;
240
+ warning_temp_time?: number;
241
+ critical_comp_time?: number;
242
+ temperature_sensors?: number[];
243
+ },
244
+ user_capacity?: {
245
+ blocks: number;
246
+ bytes: number;
247
+ },
248
+ logical_block_size?: number;
249
+ temperature: {
250
+ current: number;
251
+ };
252
+ power_cycle_count: number;
253
+ power_on_time: {
254
+ hours: number;
255
+ };
256
+ }
257
+
258
+ interface DiskLayoutData {
259
+ device: string;
260
+ type: string;
261
+ name: string;
262
+ vendor: string;
263
+ size: number;
264
+ bytesPerSector: number;
265
+ totalCylinders: number;
266
+ totalHeads: number;
267
+ totalSectors: number;
268
+ totalTracks: number;
269
+ tracksPerCylinder: number;
270
+ sectorsPerTrack: number;
271
+ firmwareRevision: string;
272
+ serialNum: string;
273
+ interfaceType: string;
274
+ smartStatus: string;
275
+ temperature: null | number;
276
+ smartData?: SmartData;
277
+ }
278
+
279
+ interface BatteryData {
280
+ hasBattery: boolean;
281
+ cycleCount: number;
282
+ isCharging: boolean;
283
+ voltage: number;
284
+ designedCapacity: number;
285
+ maxCapacity: number;
286
+ currentCapacity: number;
287
+ capacityUnit: string;
288
+ percent: number;
289
+ timeRemaining: number;
290
+ acConnected: boolean;
291
+ type: string;
292
+ model: string;
293
+ manufacturer: string;
294
+ serial: string;
295
+ additionalBatteries?: BatteryData[];
296
+ }
297
+
298
+ interface GraphicsData {
299
+ controllers: GraphicsControllerData[];
300
+ displays: GraphicsDisplayData[];
301
+ }
302
+
303
+ interface GraphicsControllerData {
304
+ vendor: string;
305
+ vendorId?: string;
306
+ model: string;
307
+ deviceId?: string;
308
+ bus: string;
309
+ busAddress?: string;
310
+ vram: number | null;
311
+ vramDynamic: boolean;
312
+ external?: boolean;
313
+ cores?: number;
314
+ metalVersion?: string;
315
+ subDeviceId?: string;
316
+ driverVersion?: string;
317
+ name?: string;
318
+ pciBus?: string;
319
+ pciID?: string;
320
+ fanSpeed?: number;
321
+ memoryTotal?: number;
322
+ memoryUsed?: number;
323
+ memoryFree?: number;
324
+ utilizationGpu?: number;
325
+ utilizationMemory?: number;
326
+ temperatureGpu?: number;
327
+ temperatureMemory?: number;
328
+ powerDraw?: number;
329
+ powerLimit?: number;
330
+ clockCore?: number;
331
+ clockMemory?: number;
332
+ }
333
+
334
+ interface GraphicsDisplayData {
335
+ vendor: string;
336
+ vendorId: string | null;
337
+ model: string;
338
+ productionYear: number | null;
339
+ serial: string | null;
340
+ deviceName: string | null;
341
+ displayId: string | null;
342
+ main: boolean;
343
+ builtin: boolean;
344
+ connection: string | null;
345
+ sizeX: number | null;
346
+ sizeY: number | null;
347
+ pixelDepth: number | null;
348
+ resolutionX: number | null;
349
+ resolutionY: number | null;
350
+ currentResX: number | null;
351
+ currentResY: number | null;
352
+ positionX: number;
353
+ positionY: number;
354
+ currentRefreshRate: number | null;
355
+ }
356
+
357
+ // 4. Operating System
358
+
359
+ interface OsData {
360
+ platform: string;
361
+ distro: string;
362
+ release: string;
363
+ codename: string;
364
+ kernel: string;
365
+ arch: string;
366
+ hostname: string;
367
+ fqdn: string;
368
+ codepage: string;
369
+ logofile: string;
370
+ serial: string;
371
+ build: string;
372
+ servicepack: string;
373
+ uefi: boolean | null;
374
+ hypervizor?: boolean;
375
+ remoteSession?: boolean;
376
+ hypervisor?: boolean;
377
+ }
378
+
379
+ interface UuidData {
380
+ os: string;
381
+ hardware: string;
382
+ macs: string[];
383
+ }
384
+
385
+ interface VersionData {
386
+ kernel?: string;
387
+ openssl?: string;
388
+ systemOpenssl?: string;
389
+ systemOpensslLib?: string;
390
+ node?: string;
391
+ v8?: string;
392
+ npm?: string;
393
+ yarn?: string;
394
+ pm2?: string;
395
+ gulp?: string;
396
+ grunt?: string;
397
+ git?: string;
398
+ tsc?: string;
399
+ mysql?: string;
400
+ redis?: string;
401
+ mongodb?: string;
402
+ nginx?: string;
403
+ php?: string;
404
+ docker?: string;
405
+ postfix?: string;
406
+ postgresql?: string;
407
+ perl?: string;
408
+ python?: string;
409
+ python3?: string;
410
+ pip?: string;
411
+ pip3?: string;
412
+ java?: string;
413
+ gcc?: string;
414
+ virtualbox?: string;
415
+ dotnet?: string;
416
+ }
417
+
418
+ interface UserData {
419
+ user: string;
420
+ tty: string;
421
+ date: string;
422
+ time: string;
423
+ ip: string;
424
+ command: string;
425
+ }
426
+
427
+ // 5. File System
428
+
429
+ interface FsSizeData {
430
+ fs: string;
431
+ type: string;
432
+ size: number;
433
+ used: number;
434
+ available: number;
435
+ use: number;
436
+ mount: string;
437
+ rw: boolean | null;
438
+ }
439
+
440
+ interface FsOpenFilesData {
441
+ max: number;
442
+ allocated: number;
443
+ available: number;
444
+ }
445
+
446
+ interface BlockDevicesData {
447
+ name: string;
448
+ identifier: string;
449
+ type: string;
450
+ fsType: string;
451
+ mount: string;
452
+ size: number;
453
+ physical: string;
454
+ uuid: string;
455
+ label: string;
456
+ model: string;
457
+ serial: string;
458
+ removable: boolean;
459
+ protocol: string;
460
+ group?: string;
461
+ device?: string;
462
+ }
463
+
464
+ interface FsStatsData {
465
+ rx: number;
466
+ wx: number;
467
+ tx: number;
468
+ rx_sec: number | null;
469
+ wx_sec: number | null;
470
+ tx_sec: number | null;
471
+ ms: number;
472
+ }
473
+
474
+ interface DisksIoData {
475
+ rIO: number;
476
+ wIO: number;
477
+ tIO: number;
478
+ rIO_sec: number | null;
479
+ wIO_sec: number | null;
480
+ tIO_sec: number | null;
481
+ rWaitTime: number;
482
+ wWaitTime: number;
483
+ tWaitTime: number;
484
+ rWaitPercent: number | null;
485
+ wWaitPercent: number | null;
486
+ tWaitPercent: number | null;
487
+ ms: number;
488
+ }
489
+
490
+ // 6. Network related functions
491
+
492
+ interface NetworkInterfacesData {
493
+ iface: string;
494
+ ifaceName: string;
495
+ default: boolean;
496
+ ip4: string;
497
+ ip4subnet: string;
498
+ ip6: string;
499
+ ip6subnet: string;
500
+ mac: string;
501
+ internal: boolean;
502
+ virtual: boolean;
503
+ operstate: string;
504
+ type: string;
505
+ duplex: string;
506
+ mtu: number | null;
507
+ speed: number | null;
508
+ dhcp: boolean;
509
+ dnsSuffix: string;
510
+ ieee8021xAuth: string;
511
+ ieee8021xState: string;
512
+ carrierChanges: number;
513
+ }
514
+
515
+ interface NetworkStatsData {
516
+ iface: string;
517
+ operstate: string;
518
+ rx_bytes: number;
519
+ rx_dropped: number;
520
+ rx_errors: number;
521
+ tx_bytes: number;
522
+ tx_dropped: number;
523
+ tx_errors: number;
524
+ rx_sec: number;
525
+ tx_sec: number;
526
+ ms: number;
527
+ }
528
+
529
+ interface NetworkConnectionsData {
530
+ protocol: string;
531
+ localAddress: string;
532
+ localPort: string;
533
+ peerAddress: string;
534
+ peerPort: string;
535
+ state: string;
536
+ pid: number;
537
+ process: string;
538
+ }
539
+
540
+ interface InetChecksiteData {
541
+ url: string;
542
+ ok: boolean;
543
+ status: number;
544
+ ms: number;
545
+ }
546
+
547
+ interface WifiNetworkData {
548
+ ssid: string;
549
+ bssid: string;
550
+ mode: string;
551
+ channel: number;
552
+ frequency: number;
553
+ signalLevel: number;
554
+ quality: number;
555
+ security: string[];
556
+ wpaFlags: string[];
557
+ rsnFlags: string[];
558
+ }
559
+
560
+ interface WifiInterfaceData {
561
+ id: string;
562
+ iface: string;
563
+ model: string;
564
+ vendor: string;
565
+ mac: string;
566
+ }
567
+
568
+ interface WifiConnectionData {
569
+ id: string;
570
+ iface: string;
571
+ model: string;
572
+ ssid: string;
573
+ bssid: string;
574
+ channel: number;
575
+ type: string;
576
+ security: string;
577
+ frequency: number;
578
+ signalLevel: number;
579
+ txRate: number;
580
+ }
581
+
582
+ // 7. Current Load, Processes & Services
583
+
584
+ interface CurrentLoadData {
585
+ avgLoad: number;
586
+ currentLoad: number;
587
+ currentLoadUser: number;
588
+ currentLoadSystem: number;
589
+ currentLoadNice: number;
590
+ currentLoadIdle: number;
591
+ currentLoadIrq: number;
592
+ rawCurrentLoad: number;
593
+ rawCurrentLoadUser: number;
594
+ rawCurrentLoadSystem: number;
595
+ rawCurrentLoadNice: number;
596
+ rawCurrentLoadIdle: number;
597
+ rawCurrentLoadIrq: number;
598
+ cpus: CurrentLoadCpuData[];
599
+ }
600
+
601
+ interface CurrentLoadCpuData {
602
+ load: number;
603
+ loadUser: number;
604
+ loadSystem: number;
605
+ loadNice: number;
606
+ loadIdle: number;
607
+ loadIrq: number;
608
+ rawLoad: number;
609
+ rawLoadUser: number;
610
+ rawLoadSystem: number;
611
+ rawLoadNice: number;
612
+ rawLoadIdle: number;
613
+ rawLoadIrq: number;
614
+ }
615
+
616
+ interface ProcessesData {
617
+ all: number;
618
+ running: number;
619
+ blocked: number;
620
+ sleeping: number;
621
+ unknown: number;
622
+ list: ProcessesProcessData[];
623
+ }
624
+
625
+ interface ProcessesProcessData {
626
+ pid: number;
627
+ parentPid: number;
628
+ name: string;
629
+ cpu: number;
630
+ cpuu: number;
631
+ cpus: number;
632
+ mem: number;
633
+ priority: number;
634
+ memVsz: number;
635
+ memRss: number;
636
+ nice: number;
637
+ started: string;
638
+ state: string;
639
+ tty: string;
640
+ user: string;
641
+ command: string;
642
+ params: string;
643
+ path: string;
644
+ }
645
+
646
+ interface ProcessesProcessLoadData {
647
+ proc: string;
648
+ pid: number;
649
+ pids: number[];
650
+ cpu: number;
651
+ mem: number;
652
+ }
653
+
654
+ interface ServicesData {
655
+ name: string;
656
+ running: boolean;
657
+ startmode: string;
658
+ pids: number[];
659
+ cpu: number;
660
+ mem: number;
661
+ }
662
+
663
+ // 8. Docker
664
+
665
+ interface DockerInfoData {
666
+ id: string;
667
+ containers: number;
668
+ containersRunning: number;
669
+ containersPaused: number;
670
+ containersStopped: number;
671
+ images: number;
672
+ driver: string;
673
+ memoryLimit: boolean;
674
+ swapLimit: boolean;
675
+ kernelMemory: boolean;
676
+ cpuCfsPeriod: boolean;
677
+ cpuCfsQuota: boolean;
678
+ cpuShares: boolean;
679
+ cpuSet: boolean;
680
+ ipv4Forwarding: boolean;
681
+ bridgeNfIptables: boolean;
682
+ bridgeNfIp6tables: boolean;
683
+ debug: boolean;
684
+ nfd: number;
685
+ oomKillDisable: boolean;
686
+ ngoroutines: number;
687
+ systemTime: string;
688
+ loggingDriver: string;
689
+ cgroupDriver: string;
690
+ nEventsListener: number;
691
+ kernelVersion: string;
692
+ operatingSystem: string;
693
+ osType: string;
694
+ architecture: string;
695
+ ncpu: number;
696
+ memTotal: number;
697
+ dockerRootDir: string;
698
+ httpProxy: string;
699
+ httpsProxy: string;
700
+ noProxy: string;
701
+ name: string;
702
+ labels: string[];
703
+ experimentalBuild: boolean;
704
+ serverVersion: string;
705
+ clusterStore: string;
706
+ clusterAdvertise: string;
707
+ defaultRuntime: string;
708
+ liveRestoreEnabled: boolean;
709
+ isolation: string;
710
+ initBinary: string;
711
+ productLicense: string;
712
+ }
713
+
714
+ interface DockerImageData {
715
+ id: string;
716
+ container: string;
717
+ comment: string;
718
+ os: string;
719
+ architecture: string;
720
+ parent: string;
721
+ dockerVersion: string;
722
+ size: number;
723
+ sharedSize: number;
724
+ virtualSize: number;
725
+ author: string;
726
+ created: number;
727
+ containerConfig: any;
728
+ graphDriver: any;
729
+ repoDigests: any;
730
+ repoTags: any;
731
+ config: any;
732
+ rootFS: any;
733
+ }
734
+
735
+ interface DockerContainerData {
736
+ id: string;
737
+ name: string;
738
+ image: string;
739
+ imageID: string;
740
+ command: string;
741
+ created: number;
742
+ started: number;
743
+ finished: number;
744
+ createdAt: string;
745
+ startedAt: string;
746
+ finishedAt: string;
747
+ state: string;
748
+ restartCount: number;
749
+ platform: string;
750
+ driver: string;
751
+ ports: number[];
752
+ mounts: DockerContainerMountData[];
753
+ }
754
+
755
+ interface DockerContainerMountData {
756
+ Type: string;
757
+ Source: string;
758
+ Destination: string;
759
+ Mode: string;
760
+ RW: boolean;
761
+ Propagation: string;
762
+ }
763
+
764
+ interface DockerContainerStatsData {
765
+ id: string;
766
+ memUsage: number;
767
+ memLimit: number;
768
+ memPercent: number;
769
+ cpuPercent: number;
770
+ pids: number;
771
+ netIO: {
772
+ rx: number;
773
+ wx: number;
774
+ };
775
+ blockIO: {
776
+ r: number;
777
+ w: number;
778
+ };
779
+ restartCount: number;
780
+ cpuStats: any;
781
+ precpuStats: any;
782
+ memoryStats: any;
783
+ networks: any;
784
+ }
785
+
786
+ interface DockerContainerProcessData {
787
+ pidHost: string;
788
+ ppid: string;
789
+ pgid: string;
790
+ user: string;
791
+ ruser: string;
792
+ group: string;
793
+ rgroup: string;
794
+ stat: string;
795
+ time: string;
796
+ elapsed: string;
797
+ nice: string;
798
+ rss: string;
799
+ vsz: string;
800
+ command: string;
801
+ }
802
+
803
+ interface DockerVolumeData {
804
+ name: string;
805
+ driver: string;
806
+ labels: any;
807
+ mountpoint: string;
808
+ options: any;
809
+ scope: string;
810
+ created: number;
811
+ }
812
+
813
+ // 9. Virtual Box
814
+
815
+ interface VboxInfoData {
816
+ id: string;
817
+ name: string;
818
+ running: boolean;
819
+ started: string;
820
+ runningSince: number;
821
+ stopped: string;
822
+ stoppedSince: number;
823
+ guestOS: string;
824
+ hardwareUUID: string;
825
+ memory: number;
826
+ vram: number;
827
+ cpus: number;
828
+ cpuExepCap: string;
829
+ cpuProfile: string;
830
+ chipset: string;
831
+ firmware: string;
832
+ pageFusion: boolean;
833
+ configFile: string;
834
+ snapshotFolder: string;
835
+ logFolder: string;
836
+ hpet: boolean;
837
+ pae: boolean;
838
+ longMode: boolean;
839
+ tripleFaultReset: boolean;
840
+ apic: boolean;
841
+ x2Apic: boolean;
842
+ acpi: boolean;
843
+ ioApic: boolean;
844
+ biosApicMode: string;
845
+ bootMenuMode: string;
846
+ bootDevice1: string;
847
+ bootDevice2: string;
848
+ bootDevice3: string;
849
+ bootDevice4: string;
850
+ timeOffset: string;
851
+ rtc: string;
852
+ }
853
+
854
+ interface PrinterData {
855
+ id: number;
856
+ name: string;
857
+ model: string;
858
+ uri: string;
859
+ uuid: string;
860
+ local: boolean;
861
+ status: string;
862
+ default: boolean;
863
+ shared: boolean;
864
+ }
865
+
866
+ interface UsbData {
867
+ id: number | string;
868
+ bus: number;
869
+ deviceId: number;
870
+ name: string;
871
+ type: string;
872
+ removable: boolean;
873
+ vendor: string;
874
+ manufacturer: string;
875
+ maxPower: string;
876
+ serialNumber: string;
877
+ }
878
+
879
+ interface AudioData {
880
+ id: number | string;
881
+ name: string;
882
+ manufacturer: string;
883
+ default: boolean;
884
+ revision: string;
885
+ driver: string;
886
+ channel: string;
887
+ in: boolean;
888
+ out: boolean;
889
+ type: string;
890
+ status: string;
891
+ }
892
+
893
+ interface BluetoothDeviceData {
894
+ device: string;
895
+ name: string;
896
+ macDevice: string;
897
+ macHost: string;
898
+ batteryPercent: number;
899
+ manufacturer: string;
900
+ type: string;
901
+ connected: boolean;
902
+ }
903
+
904
+ // 10. "Get All at once" - functions
905
+
906
+ interface StaticData {
907
+ version: string;
908
+ system: SystemData;
909
+ bios: BiosData;
910
+ baseboard: BaseboardData;
911
+ chassis: ChassisData;
912
+ os: OsData;
913
+ uuid: UuidData;
914
+ versions: VersionData;
915
+ cpu: CpuData;
916
+ graphics: GraphicsData;
917
+ net: NetworkInterfacesData[];
918
+ memLayout: MemLayoutData[];
919
+ diskLayout: DiskLayoutData[];
920
+ }
921
+
922
+ interface DynamicData {
923
+ time: TimeData;
924
+ node: string;
925
+ v8: string;
926
+ cpuCurrentSpeed: CpuCurrentSpeedData;
927
+ users: UserData[];
928
+ processes: ProcessesData[];
929
+ currentLoad: CurrentLoadData;
930
+ cpuTemperature: CpuTemperatureData;
931
+ networkStats: NetworkStatsData[];
932
+ networkConnections: NetworkConnectionsData[];
933
+ mem: MemData;
934
+ battery: BatteryData;
935
+ services: ServicesData[];
936
+ fsSize: FsSizeData;
937
+ fsStats: FsStatsData;
938
+ disksIO: DisksIoData;
939
+ wifiNetworks: WifiNetworkData;
940
+ inetLatency: number;
941
+ }
942
+ }
943
+
944
+ export function version(): string;
945
+ export function system(cb?: (data: Systeminformation.SystemData) => any): Promise<Systeminformation.SystemData>;
946
+ export function bios(cb?: (data: Systeminformation.BiosData) => any): Promise<Systeminformation.BiosData>;
947
+ export function baseboard(cb?: (data: Systeminformation.BaseboardData) => any): Promise<Systeminformation.BaseboardData>;
948
+ export function chassis(cb?: (data: Systeminformation.ChassisData) => any): Promise<Systeminformation.ChassisData>;
949
+
950
+ export function time(): Systeminformation.TimeData;
951
+ export function osInfo(cb?: (data: Systeminformation.OsData) => any): Promise<Systeminformation.OsData>;
952
+ export function versions(apps?: string, cb?: (data: Systeminformation.VersionData) => any): Promise<Systeminformation.VersionData>;
953
+ export function shell(cb?: (data: string) => any): Promise<string>;
954
+ export function uuid(cb?: (data: Systeminformation.UuidData) => any): Promise<Systeminformation.UuidData>;
955
+
956
+ export function cpu(cb?: (data: Systeminformation.CpuData) => any): Promise<Systeminformation.CpuData>;
957
+ export function cpuFlags(cb?: (data: string) => any): Promise<string>;
958
+ export function cpuCache(cb?: (data: Systeminformation.CpuCacheData) => any): Promise<Systeminformation.CpuCacheData>;
959
+ export function cpuCurrentSpeed(cb?: (data: Systeminformation.CpuCurrentSpeedData) => any): Promise<Systeminformation.CpuCurrentSpeedData>;
960
+ export function cpuTemperature(cb?: (data: Systeminformation.CpuTemperatureData) => any): Promise<Systeminformation.CpuTemperatureData>;
961
+ export function currentLoad(cb?: (data: Systeminformation.CurrentLoadData) => any): Promise<Systeminformation.CurrentLoadData>;
962
+ export function fullLoad(cb?: (data: number) => any): Promise<number>;
963
+
964
+ export function mem(cb?: (data: Systeminformation.MemData) => any): Promise<Systeminformation.MemData>;
965
+ export function memLayout(cb?: (data: Systeminformation.MemLayoutData[]) => any): Promise<Systeminformation.MemLayoutData[]>;
966
+
967
+ export function battery(cb?: (data: Systeminformation.BatteryData) => any): Promise<Systeminformation.BatteryData>;
968
+ export function graphics(cb?: (data: Systeminformation.GraphicsData) => any): Promise<Systeminformation.GraphicsData>;
969
+
970
+ export function fsSize(drive?: string, cb?: (data: Systeminformation.FsSizeData[]) => any): Promise<Systeminformation.FsSizeData[]>;
971
+ export function fsOpenFiles(cb?: (data: Systeminformation.FsOpenFilesData[]) => any): Promise<Systeminformation.FsOpenFilesData[]>;
972
+ export function blockDevices(cb?: (data: Systeminformation.BlockDevicesData[]) => any): Promise<Systeminformation.BlockDevicesData[]>;
973
+ export function fsStats(cb?: (data: Systeminformation.FsStatsData) => any): Promise<Systeminformation.FsStatsData>;
974
+ export function disksIO(cb?: (data: Systeminformation.DisksIoData) => any): Promise<Systeminformation.DisksIoData>;
975
+ export function diskLayout(cb?: (data: Systeminformation.DiskLayoutData[]) => any): Promise<Systeminformation.DiskLayoutData[]>;
976
+
977
+ export function networkInterfaceDefault(cb?: (data: string) => any): Promise<string>;
978
+ export function networkGatewayDefault(cb?: (data: string) => any): Promise<string>;
979
+ export function networkInterfaces(
980
+ cb?:
981
+ | ((data: Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData) => any)
982
+ | boolean
983
+ | string,
984
+ rescan?: boolean,
985
+ defaultString?: string
986
+ ): Promise<Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData>;
987
+
988
+ export function networkStats(ifaces?: string, cb?: (data: Systeminformation.NetworkStatsData[]) => any): Promise<Systeminformation.NetworkStatsData[]>;
989
+ export function networkConnections(cb?: (data: Systeminformation.NetworkConnectionsData[]) => any): Promise<Systeminformation.NetworkConnectionsData[]>;
990
+ export function inetChecksite(url: string, cb?: (data: Systeminformation.InetChecksiteData) => any): Promise<Systeminformation.InetChecksiteData>;
991
+ export function inetLatency(host?: string, cb?: (data: number) => any): Promise<number>;
992
+
993
+ export function wifiNetworks(cb?: (data: Systeminformation.WifiNetworkData[]) => any): Promise<Systeminformation.WifiNetworkData[]>;
994
+ export function wifiInterfaces(cb?: (data: Systeminformation.WifiInterfaceData[]) => any): Promise<Systeminformation.WifiInterfaceData[]>;
995
+ export function wifiConnections(cb?: (data: Systeminformation.WifiConnectionData[]) => any): Promise<Systeminformation.WifiConnectionData[]>;
996
+
997
+ export function users(cb?: (data: Systeminformation.UserData[]) => any): Promise<Systeminformation.UserData[]>;
998
+
999
+ export function processes(cb?: (data: Systeminformation.ProcessesData) => any): Promise<Systeminformation.ProcessesData>;
1000
+ export function processLoad(processNames: string, cb?: (data: Systeminformation.ProcessesProcessLoadData[]) => any): Promise<Systeminformation.ProcessesProcessLoadData[]>;
1001
+ export function services(serviceName: string, cb?: (data: Systeminformation.ServicesData[]) => any): Promise<Systeminformation.ServicesData[]>;
1002
+
1003
+ export function dockerInfo(cb?: (data: Systeminformation.DockerInfoData) => any): Promise<Systeminformation.DockerInfoData>;
1004
+ export function dockerImages(all?: boolean, cb?: (data: Systeminformation.DockerImageData[]) => any): Promise<Systeminformation.DockerImageData[]>;
1005
+ export function dockerContainers(all?: boolean, cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise<Systeminformation.DockerContainerData[]>;
1006
+ export function dockerContainerStats(id?: string, cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise<Systeminformation.DockerContainerStatsData[]>;
1007
+ export function dockerContainerProcesses(id?: string, cb?: (data: any) => any): Promise<Systeminformation.DockerContainerProcessData[]>;
1008
+ export function dockerVolumes(cb?: (data: Systeminformation.DockerVolumeData[]) => any): Promise<Systeminformation.DockerVolumeData[]>;
1009
+ export function dockerAll(cb?: (data: any) => any): Promise<any>;
1010
+
1011
+ export function vboxInfo(cb?: (data: Systeminformation.VboxInfoData[]) => any): Promise<Systeminformation.VboxInfoData[]>;
1012
+
1013
+ export function printer(cb?: (data: Systeminformation.PrinterData[]) => any): Promise<Systeminformation.PrinterData[]>;
1014
+
1015
+ export function usb(cb?: (data: Systeminformation.UsbData[]) => any): Promise<Systeminformation.UsbData[]>;
1016
+
1017
+ export function audio(cb?: (data: Systeminformation.AudioData[]) => any): Promise<Systeminformation.AudioData[]>;
1018
+
1019
+ export function bluetoothDevices(cb?: (data: Systeminformation.BluetoothDeviceData[]) => any): Promise<Systeminformation.BluetoothDeviceData[]>;
1020
+
1021
+ export function getStaticData(cb?: (data: Systeminformation.StaticData) => any): Promise<Systeminformation.StaticData>;
1022
+ export function getDynamicData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<Systeminformation.DynamicData>;
1023
+ export function getAllData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<Systeminformation.StaticData & Systeminformation.DynamicData>;
1024
+ export function get(valuesObject: any, cb?: (data: any) => any): Promise<any>;
1025
+ export function observe(valuesObject: any, interval: number, cb?: (data: any) => any): number;
1026
+
1027
+ export function powerShellStart(): void;
1028
+ export function powerShellRelease(): void;