@lansweeper/data-platform-outbound-grpc 0.1.53 → 0.1.55

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.
package/java.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.52",
2
+ "version": "0.1.54",
3
3
  "package": "com.lansweeper.dp.outbound.v1",
4
4
  "service": true
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/data-platform-outbound-grpc",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "description": "Data Platform Outbound gRPC",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -9,5 +9,5 @@
9
9
  "@grpc/grpc-js": "^1.5.1",
10
10
  "google-protobuf": "^3.17.0"
11
11
  },
12
- "gitHead": "70c26e442ce4044a92d84c80568764758bd8e71f"
12
+ "gitHead": "d72f1204c088706610e1f2bf41607fd14f6c8cee"
13
13
  }
@@ -145,6 +145,8 @@ message Asset {
145
145
  optional Chassis chassis = 18;
146
146
  optional Memory memory = 19;
147
147
  optional Motherboard motherboard = 21;
148
+ optional Bios bios = 46;
149
+ repeated ComputerBattery computer_battery = 45;
148
150
  repeated OpticalDrive optical_drive = 24;
149
151
  repeated HardDrive hard_drive = 25;
150
152
  repeated DriveVolume drive_volume = 38;
@@ -898,6 +900,146 @@ message GraphicsCard {
898
900
  optional string video_processor = 28; // Windows
899
901
  }
900
902
 
903
+ /**
904
+ * BIOS for computers.
905
+ */
906
+ message Bios {
907
+ oneof spec {
908
+ WindowsBios win = 1;
909
+ LinuxBios linux = 2;
910
+ }
911
+
912
+ // common fields summarized
913
+ optional string manufacturer = 100;
914
+ optional string version = 101;
915
+ optional google.protobuf.Timestamp release_date = 102;
916
+ }
917
+
918
+ /**
919
+ * Windows Bios from Windows.Bios
920
+ * WMI mappings from https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-bios
921
+ */
922
+ message WindowsBios {
923
+ repeated MappedValue bios_characteristics = 2;
924
+ optional string caption = 3;
925
+ optional string current_language = 4;
926
+ optional int32 installable_languages = 5;
927
+ optional string manufacturer = 6;
928
+ optional string name = 7;
929
+ optional bool primary_bios = 8;
930
+ optional google.protobuf.Timestamp release_date = 9;
931
+ optional string serial_number = 10;
932
+ optional string smbios_bios_version = 11;
933
+ optional int32 smbios_major_version = 12;
934
+ optional int32 smbios_minor_version = 13;
935
+ optional bool smbios_present = 14;
936
+ optional string software_element_id = 15;
937
+ optional MappedValue software_element_state = 16;
938
+ optional string status = 17;
939
+ optional MappedValue target_operating_system = 18;
940
+ optional string version = 19;
941
+ repeated string bios_version = 20;
942
+ }
943
+
944
+ /**
945
+ * Bios for Unix/Linux: Unix.Bios
946
+ */
947
+ message LinuxBios {
948
+ optional string version = 1; // e.g.: "Hyper-V UEFI Release v4.1"
949
+ optional string address = 2;
950
+ optional string vendor = 3;
951
+ optional int64 runtime_size = 4; // parsed from e.g. "64 kB"
952
+ optional int64 rom_size = 5; // parsed from e.g. "64 kB"
953
+ optional google.protobuf.Timestamp release_date = 6;
954
+ }
955
+
956
+ /**
957
+ * Computer Battery: Windows.WindowsBattery. Mac.Power battery messages.
958
+ **/
959
+ message ComputerBattery {
960
+ oneof spec {
961
+ WindowsComputerBattery win_battery = 1;
962
+ WindowsPortableBattery win_portable = 2;
963
+ MacComputerBattery mac_battery = 3;
964
+ }
965
+ }
966
+
967
+ /**
968
+ * Computer Battery: Windows.WindowsBattery.
969
+ * WMI MappedValue to be taken from: https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-battery
970
+ **/
971
+ message WindowsComputerBattery {
972
+ optional MappedValue availability = 1;
973
+ optional MappedValue battery_status = 2;
974
+ optional MappedValue chemistry = 3;
975
+ optional MappedValue design_capacity = 4;
976
+ optional string device_id = 5;
977
+ optional string name = 6;
978
+ repeated MappedValue power_management_capabilities = 7;
979
+ optional bool power_management_supported = 8;
980
+ optional string smart_battery_version = 9;
981
+ optional string status = 10;
982
+ }
983
+
984
+ /**
985
+ * Windows PortableBattery: WindowsPortableBattery.
986
+ * WMI MappedValue to be taken from: https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-portablebattery
987
+ **/
988
+ message WindowsPortableBattery {
989
+ optional int32 capacity_multiplier = 1;
990
+ optional MappedValue chemistry = 2;
991
+ optional int32 design_capacity = 3;
992
+ optional int64 design_voltage = 4;
993
+ optional string device_id = 5;
994
+ optional string location = 6;
995
+ optional string manufacture_date = 7;
996
+ optional string manufacturer = 8;
997
+ optional int32 max_battery_error = 9;
998
+ optional string name = 10;
999
+ optional string smart_battery_version = 11;
1000
+ }
1001
+
1002
+ /**
1003
+ * Computer Battery: Mac.Power battery messages.
1004
+ **/
1005
+ message MacComputerBattery {
1006
+ // from battery power
1007
+ optional int32 disk_sleep_timer = 1;
1008
+ optional int32 display_sleep_timer = 2;
1009
+ optional int32 hibernate_mode = 3;
1010
+ optional int32 prioritize_network_reachability_over_sleep = 4;
1011
+ optional bool sleep_on_power_button = 5; // parse from: 'Yes'
1012
+ optional int32 system_sleep_timer = 6;
1013
+ optional bool wake_on_lan = 7;
1014
+ optional int32 current_power_source = 8;
1015
+ optional int32 high_power_mode = 9;
1016
+ optional int32 low_power_mode = 10;
1017
+ optional bool reduce_brightness = 11;
1018
+
1019
+ // from battery charge (parse booleans)
1020
+ optional bool is_at_warn_level = 12;
1021
+ optional bool is_fully_charged = 13;
1022
+ optional bool is_charging = 14;
1023
+ optional int32 state_of_charge = 15;
1024
+
1025
+ // from battery_health_info
1026
+ optional int32 cycle_count = 16;
1027
+ optional string health_status = 17;
1028
+ optional string health_status_maximum_capacity = 18;
1029
+
1030
+ // from battery_model_info
1031
+ optional string pcb_lot_code = 19;
1032
+ optional string pack_lot_code = 20;
1033
+ optional string cell_revision = 21;
1034
+ optional string device_name = 22;
1035
+ optional string firmware_version = 23;
1036
+ optional string hardware_revision = 24;
1037
+ optional string serial_number = 25;
1038
+
1039
+ optional bool battery_charger_connected = 26;
1040
+ optional bool battery_is_charging = 27;
1041
+ }
1042
+
901
1043
  /**
902
1044
  * Optical disc drive for computers.
903
1045
  **/