@lansweeper/discovery-sensor-proto 2.27.1 → 2.27.3

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/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.27.1",
4
+ "version": "2.27.3",
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": "87bb1531868fde35fc5b4d62571694e5c79202ab"
19
+ "gitHead": "cda83356e9d28c957c836a9e84e0c6ee008dcf60"
20
20
  }
@@ -7,7 +7,8 @@ option java_multiple_files = true;
7
7
  option csharp_namespace = "Lansweeper.Discovery.Model.Proto.Sensor.Mac";
8
8
 
9
9
  import "google/protobuf/wrappers.proto";
10
- import "google/protobuf/timestamp.proto";
10
+
11
+ import "import/discovery_common.proto";
11
12
 
12
13
  /* Section element for basic info on Mac */
13
14
  message MacBasicInfo {
@@ -370,45 +371,5 @@ message DeviceMedia {
370
371
 
371
372
  /* Section element for open ports on Mac */
372
373
  message MacOpenPorts {
373
- repeated OpenPort entries = 1;
374
- }
375
-
376
- message OpenPort {
377
- int32 local_port = 1;
378
- google.protobuf.StringValue local_address = 2;
379
- google.protobuf.StringValue process_name = 3;
380
- google.protobuf.StringValue banner = 4; // Banner (Any non-HTTP response we get back)
381
- optional HttpServerInfo http_server = 5;
382
- google.protobuf.StringValue protocol = 6; // Protocol (tcp or tcp6)
383
- }
384
-
385
- message HttpServerInfo {
386
- google.protobuf.BoolValue http = 1;
387
- google.protobuf.BoolValue ssl = 2;
388
-
389
- repeated string server = 3; // http_header.server
390
- repeated string wwwauth = 4; // http_header.wwwauth
391
- repeated string cookie = 5; // http_header.cookie
392
-
393
- google.protobuf.StringValue title = 6; // html_title
394
- google.protobuf.BytesValue favicon = 7; // favicon.ico bytes
395
-
396
- repeated HttpCertificate certificates = 8; // Captured certificates
397
- }
398
-
399
- enum SslPolicyErrors {
400
- none = 0;
401
- remote_certificate_not_available = 1;
402
- remote_certificate_name_mismatch = 2;
403
- remote_certificate_chain_errors = 4;
404
- }
405
-
406
- message HttpCertificate {
407
- google.protobuf.StringValue thumbprint = 1; // thumbprint
408
- google.protobuf.StringValue serial_number = 2; // serial_number (as a big-endian hexadecimal string)
409
- google.protobuf.StringValue x509_issuer = 3; // x509.issuer
410
- google.protobuf.StringValue x509_subject = 4; // x509.subject
411
- google.protobuf.Timestamp effective_date = 5; // not_before
412
- google.protobuf.Timestamp expiration_date = 6; // not_after
413
- uint32 ssl_errors = 7; // Flags enum value of ssl policy errors
414
- }
374
+ repeated com.lansweeper.discovery.sensor.common.v1.OpenPort entries = 1;
375
+ }
@@ -9,6 +9,8 @@ option csharp_namespace = "Lansweeper.Discovery.Model.Proto.Sensor.Unix";
9
9
  import "google/protobuf/timestamp.proto";
10
10
  import "google/protobuf/wrappers.proto";
11
11
 
12
+ import "import/discovery_common.proto";
13
+
12
14
  enum UnixDistributionFamily
13
15
  {
14
16
  unknown_family = 0;
@@ -458,46 +460,7 @@ message PhysicalVolumeEntry
458
460
  }
459
461
 
460
462
  /* Section element for open ports on Unix */
461
- message OpenPorts {
462
- repeated OpenPort entries = 1;
463
- }
464
-
465
- message OpenPort {
466
- int32 local_port = 1;
467
- google.protobuf.StringValue local_address = 2;
468
- google.protobuf.StringValue process_name = 3;
469
- google.protobuf.StringValue banner = 4; // Banner (Any non-HTTP response we get back)
470
- optional HttpServerInfo http_server = 5;
471
- google.protobuf.StringValue protocol = 6; // Protocol (tcp or tcp6)
472
- }
473
-
474
- message HttpServerInfo {
475
- google.protobuf.BoolValue http = 1;
476
- google.protobuf.BoolValue ssl = 2;
477
-
478
- repeated string server = 3; // http_header.server
479
- repeated string wwwauth = 4; // http_header.wwwauth
480
- repeated string cookie = 5; // http_header.cookie
481
-
482
- google.protobuf.StringValue title = 6; // html_title
483
- google.protobuf.BytesValue favicon = 7; // favicon.ico bytes
484
-
485
- repeated HttpCertificate certificates = 8; // Captured certificates
486
- }
487
-
488
- enum SslPolicyErrors {
489
- none = 0;
490
- remote_certificate_not_available = 1;
491
- remote_certificate_name_mismatch = 2;
492
- remote_certificate_chain_errors = 4;
493
- }
494
-
495
- message HttpCertificate {
496
- google.protobuf.StringValue thumbprint = 1; // thumbprint
497
- google.protobuf.StringValue serial_number = 2; // serial_number (as a big-endian hexadecimal string)
498
- google.protobuf.StringValue x509_issuer = 3; // x509.issuer
499
- google.protobuf.StringValue x509_subject = 4; // x509.subject
500
- google.protobuf.Timestamp effective_date = 5; // not_before
501
- google.protobuf.Timestamp expiration_date = 6; // not_after
502
- uint32 ssl_errors = 7; // Flags enum value of ssl policy errors
503
- }
463
+ message OpenPorts
464
+ {
465
+ repeated com.lansweeper.discovery.sensor.common.v1.OpenPort entries = 1;
466
+ }
@@ -9,6 +9,8 @@ option csharp_namespace = "Lansweeper.Discovery.Model.Proto.Sensor.Windows";
9
9
  import "google/protobuf/timestamp.proto";
10
10
  import "google/protobuf/wrappers.proto";
11
11
 
12
+ import "import/discovery_common.proto";
13
+
12
14
  enum WindowsVersion {
13
15
  unknown = 0;
14
16
  win_nT = 40;
@@ -1642,45 +1644,5 @@ message CertificateLocation {
1642
1644
 
1643
1645
  /* Section element for open ports on Windows */
1644
1646
  message OpenPorts {
1645
- repeated OpenPort entries = 1;
1646
- }
1647
-
1648
- message OpenPort {
1649
- int32 local_port = 1;
1650
- google.protobuf.StringValue local_address = 2;
1651
- google.protobuf.StringValue process_name = 3;
1652
- google.protobuf.StringValue banner = 4; // Banner (Any non-HTTP response we get back)
1653
- optional HttpServerInfo http_server = 5;
1654
- google.protobuf.StringValue protocol = 6; // Protocol (tcp or tcp6)
1655
- }
1656
-
1657
- message HttpServerInfo {
1658
- google.protobuf.BoolValue http = 1;
1659
- google.protobuf.BoolValue ssl = 2;
1660
-
1661
- repeated string server = 3; // http_header.server
1662
- repeated string wwwauth = 4; // http_header.wwwauth
1663
- repeated string cookie = 5; // http_header.cookie
1664
-
1665
- google.protobuf.StringValue title = 6; // html_title
1666
- google.protobuf.BytesValue favicon = 7; // favicon.ico bytes
1667
-
1668
- repeated HttpCertificate certificates = 8; // Captured certificates
1669
- }
1670
-
1671
- enum SslPolicyErrors {
1672
- none = 0;
1673
- remote_certificate_not_available = 1;
1674
- remote_certificate_name_mismatch = 2;
1675
- remote_certificate_chain_errors = 4;
1676
- }
1677
-
1678
- message HttpCertificate {
1679
- google.protobuf.StringValue thumbprint = 1; // thumbprint
1680
- google.protobuf.StringValue serial_number = 2; // serial_number (as a big-endian hexadecimal string)
1681
- google.protobuf.StringValue x509_issuer = 3; // x509.issuer
1682
- google.protobuf.StringValue x509_subject = 4; // x509.subject
1683
- google.protobuf.Timestamp effective_date = 5; // not_before
1684
- google.protobuf.Timestamp expiration_date = 6; // not_after
1685
- uint32 ssl_errors = 7; // Flags enum value of ssl policy errors
1686
- }
1647
+ repeated com.lansweeper.discovery.sensor.common.v1.OpenPort entries = 1;
1648
+ }
@@ -0,0 +1,50 @@
1
+ syntax = "proto3";
2
+
3
+ package com.lansweeper.discovery.sensor.common.v1;
4
+
5
+ option java_multiple_files = true;
6
+
7
+ option csharp_namespace = "Lansweeper.Discovery.Model.Proto.Sensor.Common";
8
+
9
+ import "google/protobuf/timestamp.proto";
10
+ import "google/protobuf/wrappers.proto";
11
+
12
+ message OpenPort {
13
+ int32 local_port = 1;
14
+ google.protobuf.StringValue local_address = 2;
15
+ google.protobuf.StringValue process_name = 3;
16
+ google.protobuf.StringValue banner = 4; // Banner (Any non-HTTP response we get back)
17
+ optional HttpServerInfo http_server = 5;
18
+ google.protobuf.StringValue protocol = 6; // Protocol: tcp4, tcp6 (and on mac, sometimes tcp46)
19
+ }
20
+
21
+ message HttpServerInfo {
22
+ google.protobuf.BoolValue http = 1;
23
+ google.protobuf.BoolValue ssl = 2;
24
+
25
+ repeated string server = 3; // http_header.server
26
+ repeated string wwwauth = 4; // http_header.wwwauth
27
+ repeated string cookie = 5; // http_header.cookie
28
+
29
+ google.protobuf.StringValue title = 6; // html_title
30
+ google.protobuf.BytesValue favicon = 7; // favicon.ico bytes
31
+
32
+ repeated HttpCertificate certificates = 8; // Captured certificates
33
+ }
34
+
35
+ enum SslPolicyErrors {
36
+ none = 0;
37
+ remote_certificate_not_available = 1;
38
+ remote_certificate_name_mismatch = 2;
39
+ remote_certificate_chain_errors = 4;
40
+ }
41
+
42
+ message HttpCertificate {
43
+ google.protobuf.StringValue thumbprint = 1; // thumbprint
44
+ google.protobuf.StringValue serial_number = 2; // serial_number (as a big-endian hexadecimal string)
45
+ google.protobuf.StringValue x509_issuer = 3; // x509.issuer
46
+ google.protobuf.StringValue x509_subject = 4; // x509.subject
47
+ google.protobuf.Timestamp effective_date = 5; // not_before
48
+ google.protobuf.Timestamp expiration_date = 6; // not_after
49
+ uint32 ssl_errors = 7; // Flags enum value of ssl policy errors
50
+ }