@lansweeper/data-platform-outbound-grpc 0.1.91 → 0.1.93

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.90",
2
+ "version": "0.1.92",
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.91",
3
+ "version": "0.1.93",
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": "df94dc005eeaf375ece51e51b00a6e649b9f1c32"
12
+ "gitHead": "8f03139c3ad100c166e97199c5e1166dd84a6b74"
13
13
  }
@@ -176,6 +176,7 @@ message Asset {
176
176
  repeated Relation relation = 20; // e.g. relations to and from OT parent module to sub-modules
177
177
 
178
178
  optional CorrelationFields correlation_fields = 78; // correlation fields needed and used by reconciliation engine
179
+ optional ReconciliationInfo reconciliation = 79;
179
180
 
180
181
  CoreFields core = 6;
181
182
 
@@ -196,13 +197,18 @@ message Asset {
196
197
 
197
198
  optional CloudEntity cloud = 17;
198
199
 
199
- // Reconciliation future
200
- //string entry_state = 2; // GOLDEN | ALIAS
201
- //string master_type = 3; // NULL | ENGINE | USER
202
- //optional int32 confidence = 4; // 1-100
203
- //google.protobuf.Timestamp correlation_time = 5;
204
- // DEDUP future
200
+ repeated AssetChangeEvent change_log = 80;
201
+ }
205
202
 
203
+ /**
204
+ * Asset change event log.
205
+ */
206
+ message AssetChangeEvent {
207
+ google.protobuf.Timestamp timestamp = 1;
208
+ oneof event {
209
+ SoftwareChangeEvent sw = 2;
210
+ OperatingSystemChangeEvent os = 3;
211
+ }
206
212
  }
207
213
 
208
214
  /**
@@ -253,6 +259,7 @@ message Computer {
253
259
  repeated OperatingSystemService os_service = 105;
254
260
  optional ComputerSystemProduct computer_system_product = 106;
255
261
  repeated ComputerWindowsPageFile page_file = 107;
262
+ optional WindowsComputerSystem computer_system = 108;
256
263
 
257
264
  // SW
258
265
  optional SoftwareInventory software_inventory = 201;
@@ -333,6 +340,35 @@ message CorrField {
333
340
  repeated string value = 2;
334
341
  }
335
342
 
343
+ /**
344
+ * ReconciliationInfo fields used by reconciliation/correlation engine.
345
+ */
346
+ message ReconciliationInfo {
347
+ enum EntryState {
348
+ GOLDEN = 0;
349
+ ALIAS = 1;
350
+ }
351
+
352
+ enum MasterType {
353
+ ENGINE = 0;
354
+ USER = 1;
355
+ }
356
+
357
+ google.protobuf.Timestamp correlation_time = 1;
358
+ EntryState state = 2;
359
+ optional MasterType master_type = 3; // NULL | ENGINE | USER
360
+
361
+ optional EntityPath master = 4; // NULL if GOLDEN / Filled with ID of master if overriden
362
+ optional EntityPath reference = 5; // Filled by ENGINE with the Master ID chosen, if any: To preserve history of engine decisions vs user decisions.
363
+ repeated EntityPath alias = 6; // Master is keeping a link to all aliases
364
+
365
+ optional int32 confidence = 7; // Numeric value 0-100 of correlation confidence.
366
+
367
+ // For future use of correlation leads that brought to merge.
368
+ optional string debug_string = 8;
369
+ }
370
+
371
+
336
372
  /**
337
373
  * Cloud entity coming from CDK scanner.
338
374
  * This could be extended later on to become more than a carrier of opaque info.
@@ -363,6 +399,9 @@ message OtModule {
363
399
  repeated OtBusConfig bus_config = 2; // a module can have one bus-config for each rack/bus it's part of
364
400
 
365
401
  bool is_main_module = 3;
402
+ int32 total_bus_count = 11; // main module only: total buses including children
403
+ int32 total_bus_size = 12; // main module only: super total number of modules in all buses
404
+ int32 max_bus_level = 13; // main module only: max number of bus levels
366
405
 
367
406
  optional string part_number = 4;
368
407
  repeated OtModuleExtInfo ext_info = 5;
@@ -818,6 +857,25 @@ message WindowsOperatingSystemInfo {
818
857
  optional uint32 data_execution_prevention_support_policy = 54;
819
858
  }
820
859
 
860
+ /**
861
+ * Log entry for OS change log, tracking install, uninstall and update.
862
+ */
863
+ message OperatingSystemChangeEvent {
864
+ enum EventType {
865
+ INSTALL = 0;
866
+ UNINSTALL = 1;
867
+ UPDATE = 2;
868
+ }
869
+
870
+ EventType event_type = 1;
871
+
872
+ google.protobuf.Timestamp start = 2;
873
+ optional google.protobuf.Timestamp end = 3;
874
+
875
+ OperatingSystem os = 4;
876
+ optional OperatingSystem prev_os = 5;
877
+
878
+ }
821
879
 
822
880
  /* OS Feature, i.e. WindowsFeature */
823
881
  message OperatingSystemFeature {
@@ -1698,6 +1756,53 @@ message ComputerSystemProduct {
1698
1756
  optional string version = 5;
1699
1757
  }
1700
1758
 
1759
+ /**
1760
+ * ComputerSystemProduct, only Windows atm.
1761
+ * WMI mappings at: https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-computersystem
1762
+ */
1763
+ message WindowsComputerSystem {
1764
+ optional MappedValue admin_password_status = 2;
1765
+ optional bool automatic_reset_boot_option = 3;
1766
+ optional bool automatic_reset_capability = 4;
1767
+ optional MappedValue boot_option_on_limit = 5;
1768
+ optional MappedValue boot_option_on_watch_dog = 6;
1769
+ optional bool boot_rom_supported = 7;
1770
+ optional string boot_up_state = 8;
1771
+ optional MappedValue chassis_boot_up_state = 9;
1772
+ optional int32 current_time_zone = 10;
1773
+ optional bool daylight_in_effect = 11;
1774
+ optional string description = 12;
1775
+ optional string domain = 13;
1776
+ optional MappedValue domain_role = 14;
1777
+ optional MappedValue front_panel_reset_status = 15;
1778
+ optional bool infrared_supported = 16;
1779
+ optional MappedValue keyboard_password_status = 17;
1780
+ optional string manufacturer = 18;
1781
+ optional string name = 19;
1782
+ optional string model = 20;
1783
+ optional bool network_server_mode_enabled = 21;
1784
+ optional int32 number_of_processors = 22;
1785
+ optional int64 pause_after_reset = 23;
1786
+ optional MappedValue power_on_password_status = 24;
1787
+ optional MappedValue power_state = 25;
1788
+ optional MappedValue power_supply_state = 26;
1789
+ optional string primary_owner_name = 27;
1790
+ optional MappedValue reset_capability = 28;
1791
+ optional int32 reset_count = 29;
1792
+ optional int32 reset_limit = 30;
1793
+ repeated string roles = 31;
1794
+ optional string status = 32;
1795
+ optional int32 system_startup_delay = 33;
1796
+ repeated string system_startup_options = 34;
1797
+ optional string system_type = 36;
1798
+ optional MappedValue thermal_state = 37;
1799
+ optional int64 total_physical_memory = 38;
1800
+ optional MappedValue wakeup_type = 39;
1801
+ optional bool enable_daylight_savings_time = 40;
1802
+ optional bool part_of_domain = 41;
1803
+ optional int32 number_of_logical_processors = 42;
1804
+ }
1805
+
1701
1806
  /**
1702
1807
  * TrustedPlatformModule, only Windows atm.
1703
1808
  * WMI mappings at: https://learn.microsoft.com/en-us/windows/win32/secprov/win32-tpm
@@ -2227,9 +2332,11 @@ message IpInfo {
2227
2332
  message SoftwareInventory {
2228
2333
  google.protobuf.Timestamp timestamp = 1;
2229
2334
  repeated Software software = 2;
2230
- repeated SoftwareChangeEvent event_log = 3;
2335
+ reserved 3; // depcrecated software change event log
2231
2336
  }
2232
2337
 
2338
+
2339
+
2233
2340
  /**
2234
2341
  * Software definition: normalized and with link to raw.
2235
2342
  * Translated and enriched from:
@@ -2296,6 +2403,7 @@ message RawSoftware {
2296
2403
  optional bool is_current_user = 10;
2297
2404
  }
2298
2405
 
2406
+
2299
2407
  /**
2300
2408
  * Log entry for software change log, tracking install, uninstall and update.
2301
2409
  */