@lansweeper/discovery-sensor-proto 2.14.2 → 2.15.2

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.
@@ -1,4 +1,5 @@
1
1
  export * from "./discovery_sections_api_pb.d";
2
2
  export * from "./discovery_sections_mac_pb.d";
3
+ export * from "./discovery_sections_ot_pb.d";
3
4
  export * from "./discovery_sections_unix_pb.d";
4
5
  export * from "./discovery_sections_windows_pb.d";
@@ -2,8 +2,10 @@ const discovery_sections_api_grpc_pb = require("./discovery_sections_api_grpc_pb
2
2
  const discovery_sections_api_pb = require("./discovery_sections_api_pb");
3
3
  const discovery_sections_mac_grpc_pb = require("./discovery_sections_mac_grpc_pb");
4
4
  const discovery_sections_mac_pb = require("./discovery_sections_mac_pb");
5
+ const discovery_sections_ot_grpc_pb = require("./discovery_sections_ot_grpc_pb");
6
+ const discovery_sections_ot_pb = require("./discovery_sections_ot_pb");
5
7
  const discovery_sections_unix_grpc_pb = require("./discovery_sections_unix_grpc_pb");
6
8
  const discovery_sections_unix_pb = require("./discovery_sections_unix_pb");
7
9
  const discovery_sections_windows_grpc_pb = require("./discovery_sections_windows_grpc_pb");
8
10
  const discovery_sections_windows_pb = require("./discovery_sections_windows_pb");
9
- Object.assign(exports, discovery_sections_api_grpc_pb, discovery_sections_api_pb, discovery_sections_mac_grpc_pb, discovery_sections_mac_pb, discovery_sections_unix_grpc_pb, discovery_sections_unix_pb, discovery_sections_windows_grpc_pb, discovery_sections_windows_pb)
11
+ Object.assign(exports, discovery_sections_api_grpc_pb, discovery_sections_api_pb, discovery_sections_mac_grpc_pb, discovery_sections_mac_pb, discovery_sections_ot_grpc_pb, discovery_sections_ot_pb, discovery_sections_unix_grpc_pb, discovery_sections_unix_pb, discovery_sections_windows_grpc_pb, discovery_sections_windows_pb)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lansweeper/discovery-sensor-proto",
3
3
  "description": "Discovery Sensor proto",
4
- "version": "2.14.2",
4
+ "version": "2.15.2",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
7
7
  "license": "MIT",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "0ce624413cd6f0b07261279b6e42ddb8039c0a74"
19
+ "gitHead": "031efccb6ef077824b4e096b4337f7afca4a70d0"
20
20
  }
@@ -0,0 +1,99 @@
1
+ syntax = "proto3";
2
+
3
+ package com.lansweeper.discovery.sensor.ot.v1;
4
+
5
+ option java_multiple_files = true;
6
+
7
+ option csharp_namespace = "Lansweeper.OT.Model.Proto.Sensor.Ot";
8
+
9
+ import "google/protobuf/timestamp.proto";
10
+ import "google/protobuf/wrappers.proto";
11
+
12
+ /* Section element for Basic Info on OT */
13
+ message OtBasicInfo {
14
+ bool is_network_node = 1;
15
+ google.protobuf.StringValue route_path = 2;
16
+ uint32 rack_index = 3;
17
+ repeated OtScanConfigData scanned_by = 4;
18
+ ComponentType component_type = 5;
19
+ google.protobuf.StringValue firmware = 6;
20
+ string part_number = 7;
21
+ google.protobuf.UInt32Value slot = 8;
22
+ google.protobuf.UInt32Value slot_width = 9;
23
+ repeated ModuleExtendedInformation extended_information = 10;
24
+ }
25
+
26
+ message OtScanConfigData {
27
+ string scan_target_id = 1;
28
+ string scan_target_name = 2;
29
+ string sensor_id = 3;
30
+ string sensor_name = 4;
31
+ string protocol_id = 5;
32
+ string protocol_name = 6;
33
+ uint32 port = 7;
34
+ NetworkProtocol network_protocol = 8;
35
+ google.protobuf.Timestamp last_tried = 9;
36
+ google.protobuf.Timestamp last_scan = 10;
37
+ }
38
+
39
+ /* Section element for RackConfigs on OT */
40
+ message RackData {
41
+ repeated RackConfig entries = 1;
42
+ }
43
+
44
+ message RackConfig {
45
+ google.protobuf.UInt32Value rack = 1;
46
+ google.protobuf.StringValue rack_name = 2;
47
+ uint32 rack_size = 3;
48
+ repeated ModuleData modules = 4;
49
+ }
50
+
51
+ message ModuleData {
52
+ ComponentType component_type = 1;
53
+ google.protobuf.StringValue name = 2;
54
+ google.protobuf.StringValue manufacturer = 4;
55
+ google.protobuf.StringValue serial_number = 5;
56
+ google.protobuf.StringValue model = 6;
57
+ google.protobuf.StringValue firmware = 7;
58
+ string part_number = 8;
59
+ google.protobuf.UInt32Value slot = 9;
60
+ google.protobuf.UInt32Value slot_width = 10;
61
+ repeated ModuleExtendedInformation extended_information = 11;
62
+ }
63
+
64
+ message ModuleExtendedInformation {
65
+ string id = 1;
66
+ string root_id = 2;
67
+ string name = 3;
68
+ string value = 4;
69
+ }
70
+
71
+ enum ComponentType {
72
+ unknown = 0;
73
+ controller = 1;
74
+ power_supply = 2;
75
+ communications = 3;
76
+ input_module = 4;
77
+ output_module = 5;
78
+ program = 6;
79
+ module_coupler = 7;
80
+ software = 8; // OPC UA is a software component
81
+ drive = 9;
82
+ industrial_switch = 10;
83
+ iO_module = 11;
84
+ remote_iO_module = 12;
85
+ human_machine_interface = 13;
86
+ analog_iO_module = 14;
87
+ generic = 15;
88
+ loop_controller = 16;
89
+ motion_controller = 17;
90
+ position_controller = 18;
91
+ sensor = 19;
92
+ }
93
+
94
+ enum NetworkProtocol
95
+ {
96
+ none = 0;
97
+ tcp = 1;
98
+ udp = 2;
99
+ }
@@ -68,6 +68,8 @@ message BasicInfo {
68
68
  bool is_sudo_available = 2;
69
69
  google.protobuf.StringValue dmi_decode_path = 3;
70
70
  bool is_hal_available = 4;
71
+ bool is_tty_required = 5;
72
+ repeated CommandInformation command_information = 6;
71
73
  }
72
74
 
73
75
  /* Section element for BIOS info on Unix */
@@ -81,6 +83,14 @@ message Bios {
81
83
  optional google.protobuf.Timestamp release_date_utc = 7;
82
84
  }
83
85
 
86
+ /* Contains info about the availability of Unix commands */
87
+ message CommandInformation {
88
+ google.protobuf.StringValue command = 1;
89
+ google.protobuf.BoolValue is_command_available = 2;
90
+ google.protobuf.BoolValue is_sudo_available = 3;
91
+ google.protobuf.StringValue command_path = 4;
92
+ }
93
+
84
94
  /* Section element for computer system info on Unix */
85
95
  message ComputerSystem {
86
96
  int64 uptime = 1;
@@ -445,4 +455,4 @@ message PhysicalVolumeEntry
445
455
  google.protobuf.Int64Value free = 5;
446
456
  google.protobuf.Int64Value used = 6;
447
457
  google.protobuf.StringValue in_use = 7;
448
- }
458
+ }