@lansweeper/data-platform-outbound-grpc 0.1.63 → 0.1.65
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/CHANGELOG.md +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/outbound_pb.d.ts +331 -17
- package/gen-proto/outbound_pb.js +4565 -2184
- package/generated-go/outbound.pb.go +6891 -5927
- package/java.json +1 -1
- package/package.json +2 -2
- package/proto/outbound.proto +99 -3
package/java.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/data-platform-outbound-grpc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.65",
|
|
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": "
|
|
12
|
+
"gitHead": "58bb01e15825b7387d7df7de72e2fd54df9e6694"
|
|
13
13
|
}
|
package/proto/outbound.proto
CHANGED
|
@@ -96,6 +96,7 @@ message Entity {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
|
|
99
|
+
|
|
99
100
|
/* Asset object: IT/OT/CDR */
|
|
100
101
|
message Asset {
|
|
101
102
|
|
|
@@ -106,6 +107,15 @@ message Asset {
|
|
|
106
107
|
google.protobuf.Timestamp last_updated = 4;
|
|
107
108
|
google.protobuf.Timestamp last_enriched = 5;
|
|
108
109
|
|
|
110
|
+
optional string last_synced_source_agent = 39; // last synced source agent name and version
|
|
111
|
+
optional string last_synced_source_name = 49; // last synced source name
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Every source that contributed sending a scan for this asset is listed here.
|
|
115
|
+
* The source_info is a actually a map by source type/id, keeping history of scans.
|
|
116
|
+
* If the asset was discovered by a single sources, it's redudant with info already in main asset msg.
|
|
117
|
+
*/
|
|
118
|
+
repeated SourceInfo source_info = 74;
|
|
109
119
|
|
|
110
120
|
/**
|
|
111
121
|
* This is unique and source of UUID asset_id. Kept also in verbose key format for debug/future use.
|
|
@@ -117,8 +127,6 @@ message Asset {
|
|
|
117
127
|
|
|
118
128
|
repeated ScanError scan_error = 33;
|
|
119
129
|
|
|
120
|
-
optional string last_synced_source_agent = 39; // last synced source agent name and version
|
|
121
|
-
optional string last_synced_source_name = 49; // last synced source name
|
|
122
130
|
|
|
123
131
|
repeated Tag tag = 14;
|
|
124
132
|
repeated Relation relation = 20; // e.g. relations to and from OT parent module to sub-modules
|
|
@@ -183,12 +191,14 @@ message Asset {
|
|
|
183
191
|
repeated Driver driver = 36;
|
|
184
192
|
repeated RunningProcess running_process = 41;
|
|
185
193
|
repeated SharedResource shared_resource = 44;
|
|
194
|
+
optional InternetExplorer internet_explorer = 72; // specific to IE on Windows
|
|
195
|
+
optional WindowsSqlServer windows_sql_server = 73; // specific to SQL server on Windows
|
|
186
196
|
|
|
187
197
|
optional LastUser last_user = 31; // i.e. computer current user
|
|
188
198
|
repeated UserAccount user = 69;
|
|
189
199
|
repeated UserGroup user_group = 70;
|
|
190
200
|
repeated UserInGroup user_in_group = 71;
|
|
191
|
-
|
|
201
|
+
|
|
192
202
|
|
|
193
203
|
optional OtModule ot_module = 16; // OT specific module info when asset type is 'OT'
|
|
194
204
|
|
|
@@ -302,6 +312,20 @@ message AssetType {
|
|
|
302
312
|
optional string sub_type = 4; // sub type for OT and CDK
|
|
303
313
|
}
|
|
304
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Detailed Source information for each source (aka installation in legacy terms)
|
|
317
|
+
* that at least once contributed to sending a scan about this asset.
|
|
318
|
+
*/
|
|
319
|
+
message SourceInfo {
|
|
320
|
+
string source_id = 1; // source id, like installation id of IT
|
|
321
|
+
string source_type = 2; // source type like e.g. IT
|
|
322
|
+
optional string source_agent = 3; // source agent name and version
|
|
323
|
+
optional string source_name = 4; // source name
|
|
324
|
+
string raw_id = 5; // entity/asset raw id for source
|
|
325
|
+
google.protobuf.Timestamp last_synced = 6;
|
|
326
|
+
// later here we could also have a summary of errors, if needed to keep history
|
|
327
|
+
}
|
|
328
|
+
|
|
305
329
|
/**
|
|
306
330
|
* Scan errors.
|
|
307
331
|
*/
|
|
@@ -443,6 +467,78 @@ message InternetExplorer {
|
|
|
443
467
|
repeated Extension extension = 4;
|
|
444
468
|
}
|
|
445
469
|
|
|
470
|
+
/**
|
|
471
|
+
* SQL Server extended information on Windows Computers.
|
|
472
|
+
*/
|
|
473
|
+
message WindowsSqlServer {
|
|
474
|
+
enum SqlAuthenticationMode {
|
|
475
|
+
UNKNOWN_MODE = 0;
|
|
476
|
+
WINDOWS = 1;
|
|
477
|
+
MIXED = 2;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
bool is_clustered = 1;
|
|
481
|
+
SqlAuthenticationMode sql_authentication_mode = 2;
|
|
482
|
+
repeated SqlServerDatabase databases = 3;
|
|
483
|
+
repeated SqlServerService services = 4;
|
|
484
|
+
string service_name = 5;
|
|
485
|
+
string display_version = 6;
|
|
486
|
+
string version = 7;
|
|
487
|
+
optional int32 sp_level = 8;
|
|
488
|
+
optional string sku_name = 9;
|
|
489
|
+
optional MappedValue language = 10;
|
|
490
|
+
optional bool is_wow64 = 11;
|
|
491
|
+
optional string install_path = 12;
|
|
492
|
+
optional string file_version = 13;
|
|
493
|
+
optional string data_path = 14;
|
|
494
|
+
optional SqlServerCluster cluster = 15;
|
|
495
|
+
string instance_id = 16;
|
|
496
|
+
optional string instance_name = 17;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
message SqlServerDatabase {
|
|
501
|
+
optional int64 data_files_size_kb = 1;
|
|
502
|
+
optional int64 log_files_size_kb = 2;
|
|
503
|
+
optional int64 log_files_used_size_kb = 3;
|
|
504
|
+
optional string name = 4;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
message SqlServerService {
|
|
508
|
+
enum ServiceState {
|
|
509
|
+
NO_SERVICE_STATE = 0;
|
|
510
|
+
STOPPED = 1;
|
|
511
|
+
START_PENDING = 2;
|
|
512
|
+
STOP_PENDING = 3;
|
|
513
|
+
RUNNING = 4;
|
|
514
|
+
CONTINUE_PENDING = 5;
|
|
515
|
+
PAUSE_PENDING = 6;
|
|
516
|
+
PAUSED = 7;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
enum ServiceStartupType {
|
|
520
|
+
NO_SERVICE_STARTUP_TYPE = 0;
|
|
521
|
+
OTHER_STARTYP_TYPE = 1;
|
|
522
|
+
AUTOMATIC = 2;
|
|
523
|
+
MANUAL = 3;
|
|
524
|
+
DISABLED = 4;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
optional ServiceState state = 1;
|
|
528
|
+
optional ServiceStartupType startup_type = 2;
|
|
529
|
+
optional string name = 3;
|
|
530
|
+
optional string instance_id = 4;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
message SqlServerCluster {
|
|
534
|
+
optional string name = 1;
|
|
535
|
+
repeated SqlServerClusterNode cluster_nodes = 2;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
message SqlServerClusterNode {
|
|
539
|
+
optional string name = 1;
|
|
540
|
+
}
|
|
541
|
+
|
|
446
542
|
|
|
447
543
|
/**
|
|
448
544
|
* General section for any HW, normalized and with raw data.
|