@lansweeper/data-platform-outbound-grpc 0.1.138 → 0.1.140
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 +979 -0
- package/gen-proto/outbound_pb.js +8001 -4
- package/generated-go/outbound.pb.go +10449 -8215
- package/java.json +1 -1
- package/package.json +2 -2
- package/proto/outbound.proto +233 -2
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.140",
|
|
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": "ff1680d51788412e7ed78687313271110a481aa9"
|
|
13
13
|
}
|
package/proto/outbound.proto
CHANGED
|
@@ -184,13 +184,13 @@ message EntityPath {
|
|
|
184
184
|
message Entity {
|
|
185
185
|
oneof entity {
|
|
186
186
|
Asset asset = 1;
|
|
187
|
-
|
|
187
|
+
User user = 2;
|
|
188
|
+
Group group = 3;
|
|
188
189
|
// Other ...
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
|
|
193
|
-
|
|
194
194
|
/* Asset object: IT/OT/CDR */
|
|
195
195
|
message Asset {
|
|
196
196
|
|
|
@@ -250,6 +250,8 @@ message Asset {
|
|
|
250
250
|
optional Computer computer = 75;
|
|
251
251
|
optional ServerGroup server_group = 87;
|
|
252
252
|
|
|
253
|
+
optional ActiveDirectoryComputer ad_computer = 88;
|
|
254
|
+
|
|
253
255
|
optional Printer printer = 84;
|
|
254
256
|
optional Ups ups = 85;
|
|
255
257
|
|
|
@@ -652,6 +654,8 @@ message CoreFields {
|
|
|
652
654
|
int32 confidence = 10;
|
|
653
655
|
}
|
|
654
656
|
|
|
657
|
+
|
|
658
|
+
|
|
655
659
|
message LastUser {
|
|
656
660
|
string user_name = 1;
|
|
657
661
|
optional string user_type = 2;
|
|
@@ -2319,6 +2323,13 @@ message ComputerConnectedUsbDeviceInfo {
|
|
|
2319
2323
|
string device_key = 1;
|
|
2320
2324
|
string device_value = 2;
|
|
2321
2325
|
string manufacturer = 3;
|
|
2326
|
+
optional string pnp_device_id = 4;
|
|
2327
|
+
optional string pnp_class = 5;
|
|
2328
|
+
optional string status = 6;
|
|
2329
|
+
optional string service = 7;
|
|
2330
|
+
optional string caption = 8;
|
|
2331
|
+
optional string description = 9;
|
|
2332
|
+
optional bool present = 10;
|
|
2322
2333
|
}
|
|
2323
2334
|
|
|
2324
2335
|
/**
|
|
@@ -3316,6 +3327,226 @@ message Ups {
|
|
|
3316
3327
|
optional int64 alarms_present = 14;
|
|
3317
3328
|
}
|
|
3318
3329
|
|
|
3330
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
|
3331
|
+
|
|
3332
|
+
/* User object */
|
|
3333
|
+
message User {
|
|
3334
|
+
EntityPath id = 1;
|
|
3335
|
+
|
|
3336
|
+
google.protobuf.Timestamp last_synced = 2;
|
|
3337
|
+
google.protobuf.Timestamp first_seen = 3;
|
|
3338
|
+
google.protobuf.Timestamp last_updated = 4;
|
|
3339
|
+
google.protobuf.Timestamp last_enriched = 5;
|
|
3340
|
+
|
|
3341
|
+
optional string last_synced_source_agent = 6;
|
|
3342
|
+
optional string last_synced_source_name = 7;
|
|
3343
|
+
|
|
3344
|
+
repeated SourceInfo source_info = 8;
|
|
3345
|
+
repeated SourceInfo unlinked_source_info = 9;
|
|
3346
|
+
|
|
3347
|
+
optional string unique_key = 10;
|
|
3348
|
+
|
|
3349
|
+
repeated ScanError scan_error = 11;
|
|
3350
|
+
|
|
3351
|
+
optional IpInfo internet_ip = 12; // Internet IP and related geo-location info, when available
|
|
3352
|
+
|
|
3353
|
+
repeated Tag tag = 13;
|
|
3354
|
+
repeated Relation relation = 14; // e.g. relations to and from OT parent module to sub-modules
|
|
3355
|
+
|
|
3356
|
+
// optional CorrelationFields correlation_fields = 15;
|
|
3357
|
+
// optional ReconciliationInfo reconciliation = 16;
|
|
3358
|
+
|
|
3359
|
+
// user info:
|
|
3360
|
+
UserCoreFields core = 20;
|
|
3361
|
+
|
|
3362
|
+
optional ActiveDirectoryUser ad_user = 21;
|
|
3363
|
+
// optional LastUser asset_user = 22; <- refine here with also link/relation to originating asset?
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
/* Core fields for users */
|
|
3367
|
+
message UserCoreFields {
|
|
3368
|
+
optional string user_name = 1;
|
|
3369
|
+
optional string upn = 2;
|
|
3370
|
+
optional string sid = 3;
|
|
3371
|
+
optional string email = 4;
|
|
3372
|
+
//optional google.protobuf.Timestamp creation_time = 24;
|
|
3373
|
+
//optional google.protobuf.Timestamp last_changed = 25;
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
/* Group of entities, e.g. active directory group */
|
|
3377
|
+
message Group {
|
|
3378
|
+
EntityPath id = 1;
|
|
3379
|
+
|
|
3380
|
+
google.protobuf.Timestamp last_synced = 2;
|
|
3381
|
+
google.protobuf.Timestamp first_seen = 3;
|
|
3382
|
+
google.protobuf.Timestamp last_updated = 4;
|
|
3383
|
+
google.protobuf.Timestamp last_enriched = 5;
|
|
3384
|
+
|
|
3385
|
+
optional string last_synced_source_agent = 6;
|
|
3386
|
+
optional string last_synced_source_name = 7;
|
|
3387
|
+
|
|
3388
|
+
repeated SourceInfo source_info = 8;
|
|
3389
|
+
repeated SourceInfo unlinked_source_info = 9;
|
|
3390
|
+
|
|
3391
|
+
optional string unique_key = 10;
|
|
3392
|
+
|
|
3393
|
+
repeated ScanError scan_error = 11;
|
|
3394
|
+
|
|
3395
|
+
optional IpInfo internet_ip = 12; // Internet IP and related geo-location info, when available
|
|
3396
|
+
|
|
3397
|
+
repeated Tag tag = 13;
|
|
3398
|
+
repeated Relation relation = 14; // e.g. relations to and from OT parent module to sub-modules
|
|
3399
|
+
|
|
3400
|
+
// optional CorrelationFields correlation_fields = 15;
|
|
3401
|
+
// optional ReconciliationInfo reconciliation = 16;
|
|
3402
|
+
|
|
3403
|
+
// group info:
|
|
3404
|
+
GroupCoreFields core = 20;
|
|
3405
|
+
|
|
3406
|
+
// .......................
|
|
3407
|
+
|
|
3408
|
+
optional ActiveDirectoryGroup ad_group = 21;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
/* Core fields for groups */
|
|
3412
|
+
message GroupCoreFields {
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
/**
|
|
3416
|
+
* Common fields for any AD object.
|
|
3417
|
+
*/
|
|
3418
|
+
message ActiveDirectoryObject {
|
|
3419
|
+
string domain_oid = 1;
|
|
3420
|
+
string oid = 2;
|
|
3421
|
+
string sid = 3;
|
|
3422
|
+
string distinguished_name = 4;
|
|
3423
|
+
|
|
3424
|
+
optional string domain_dns = 5;
|
|
3425
|
+
optional string name = 6;
|
|
3426
|
+
optional string object_class = 7;
|
|
3427
|
+
|
|
3428
|
+
optional google.protobuf.Timestamp creation_time = 8;
|
|
3429
|
+
optional google.protobuf.Timestamp last_changed = 9;
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* Computer in ActiveDirectory.
|
|
3434
|
+
*/
|
|
3435
|
+
message ActiveDirectoryComputer {
|
|
3436
|
+
|
|
3437
|
+
ActiveDirectoryObject ad_object = 1;
|
|
3438
|
+
|
|
3439
|
+
optional string sam_account_name = 2;
|
|
3440
|
+
optional string cn = 3;
|
|
3441
|
+
optional string ou = 4;
|
|
3442
|
+
optional string description = 5;
|
|
3443
|
+
optional string comment = 6;
|
|
3444
|
+
optional string company = 7;
|
|
3445
|
+
optional string location = 8;
|
|
3446
|
+
optional string ip_address = 9;
|
|
3447
|
+
optional bool enabled = 10;
|
|
3448
|
+
|
|
3449
|
+
optional string bitlocker_recovery_info = 11;
|
|
3450
|
+
optional string operating_system = 12;
|
|
3451
|
+
optional string operating_system_version = 13;
|
|
3452
|
+
|
|
3453
|
+
optional string managed_by_user_oid = 14; // translated into relation
|
|
3454
|
+
optional string managed_by_group_oid = 15; // translated into relation
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
message ActiveDirectoryDomain {
|
|
3458
|
+
ActiveDirectoryObject ad_object = 1;
|
|
3459
|
+
|
|
3460
|
+
optional int32 minimum_password_age = 2; // in days
|
|
3461
|
+
optional int32 maximum_password_age = 3; // in days
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
/**
|
|
3465
|
+
* User in ActiveDirectory.
|
|
3466
|
+
*/
|
|
3467
|
+
message ActiveDirectoryUser {
|
|
3468
|
+
ActiveDirectoryObject ad_object = 1;
|
|
3469
|
+
|
|
3470
|
+
optional string sam_account_name = 2;
|
|
3471
|
+
optional string cn = 3;
|
|
3472
|
+
optional string ou = 4;
|
|
3473
|
+
optional string description = 5;
|
|
3474
|
+
optional string comment = 6;
|
|
3475
|
+
optional string company = 7;
|
|
3476
|
+
optional int32 primary_group_id = 8;
|
|
3477
|
+
optional bool enabled = 9;
|
|
3478
|
+
optional int32 user_account_control = 10;
|
|
3479
|
+
optional google.protobuf.Timestamp account_expires = 11;
|
|
3480
|
+
optional google.protobuf.Timestamp lockout_time = 12;
|
|
3481
|
+
optional google.protobuf.Timestamp password_last_set = 13;
|
|
3482
|
+
optional google.protobuf.Timestamp last_logon = 14;
|
|
3483
|
+
optional google.protobuf.Timestamp lockout_date = 15;
|
|
3484
|
+
optional bool can_user_change_password = 16;
|
|
3485
|
+
optional google.protobuf.Timestamp password_expiration_date = 17;
|
|
3486
|
+
optional bool password_never_expires = 18;
|
|
3487
|
+
optional bool password_required = 19;
|
|
3488
|
+
optional google.protobuf.Timestamp password_changeable_date = 20;
|
|
3489
|
+
optional string email = 21;
|
|
3490
|
+
optional string display_name = 22;
|
|
3491
|
+
optional string given_name = 23;
|
|
3492
|
+
optional string surname = 24;
|
|
3493
|
+
optional string telephone = 25;
|
|
3494
|
+
optional string fac_simile = 26;
|
|
3495
|
+
optional string mobile = 27;
|
|
3496
|
+
optional string street_address = 28;
|
|
3497
|
+
optional string city = 29;
|
|
3498
|
+
optional string country = 30;
|
|
3499
|
+
optional string department = 31;
|
|
3500
|
+
optional string delivery_office_name = 32;
|
|
3501
|
+
optional string country_abbreviation = 33;
|
|
3502
|
+
optional string postal_code = 34;
|
|
3503
|
+
optional string country_code = 35;
|
|
3504
|
+
optional string principal_name = 36;
|
|
3505
|
+
optional string title = 37;
|
|
3506
|
+
optional string division = 38;
|
|
3507
|
+
optional string info = 39;
|
|
3508
|
+
optional string home_phone = 40;
|
|
3509
|
+
optional string pager = 41;
|
|
3510
|
+
optional string ip_phone = 42;
|
|
3511
|
+
optional string home_page = 43;
|
|
3512
|
+
optional string post_office_box = 44;
|
|
3513
|
+
optional string state = 45;
|
|
3514
|
+
optional string profile_path = 46;
|
|
3515
|
+
optional string script_path = 47;
|
|
3516
|
+
optional string home_directory = 48;
|
|
3517
|
+
optional bytes thumbnail_photo = 49;
|
|
3518
|
+
optional string employee_id = 50;
|
|
3519
|
+
optional string employee_number = 51;
|
|
3520
|
+
optional string employee_type = 52;
|
|
3521
|
+
optional string initials = 53;
|
|
3522
|
+
optional string middle_name = 54;
|
|
3523
|
+
|
|
3524
|
+
optional string primary_group_oid = 55;
|
|
3525
|
+
optional string manager_oid = 56;
|
|
3526
|
+
repeated string member_of_oid = 57;
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
/**
|
|
3530
|
+
* User group in ActiveDirectory.
|
|
3531
|
+
*/
|
|
3532
|
+
message ActiveDirectoryGroup {
|
|
3533
|
+
ActiveDirectoryObject ad_object = 1;
|
|
3534
|
+
|
|
3535
|
+
optional string sam_account_name = 2;
|
|
3536
|
+
optional string cn = 3;
|
|
3537
|
+
optional string ou = 4;
|
|
3538
|
+
optional string description = 5;
|
|
3539
|
+
optional string comment = 6;
|
|
3540
|
+
optional int32 group_type = 7;
|
|
3541
|
+
optional string email = 8;
|
|
3542
|
+
|
|
3543
|
+
optional string managed_by_user_oid = 9;
|
|
3544
|
+
optional string managed_by_group_oid = 10;
|
|
3545
|
+
|
|
3546
|
+
repeated string member_of_oid = 11;
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
|
|
3319
3550
|
// ---------------------------------------------------------------------------------------------------------------------
|
|
3320
3551
|
|
|
3321
3552
|
/**
|