@lansweeper/data-platform-outbound-grpc 0.0.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.
- package/.ignorecompat +0 -0
- package/CHANGELOG.md +8 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +2 -0
- package/gen-proto/index.js +3 -0
- package/gen-proto/outbound_grpc_pb.d.ts +57 -0
- package/gen-proto/outbound_grpc_pb.js +89 -0
- package/gen-proto/outbound_pb.d.ts +1576 -0
- package/gen-proto/outbound_pb.js +12459 -0
- package/package.json +13 -0
- package/proto/outbound.proto +372 -0
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lansweeper/data-platform-outbound-grpc",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Data Platform Outbound gRPC",
|
|
5
|
+
"main": "gen-proto/index.js",
|
|
6
|
+
"types": "gen-proto/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@grpc/grpc-js": "^1.5.1",
|
|
10
|
+
"google-protobuf": "^3.17.0"
|
|
11
|
+
},
|
|
12
|
+
"gitHead": "d4a83e99adabaab53f138bfee7a5da579695c919"
|
|
13
|
+
}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Lansweper (c)
|
|
3
|
+
*
|
|
4
|
+
* This files contains
|
|
5
|
+
*
|
|
6
|
+
* https://github.com/pseudomuto/protoc-gen-doc
|
|
7
|
+
*/
|
|
8
|
+
syntax = "proto3";
|
|
9
|
+
package com.lansweeper.dp.outboundapi.v1;
|
|
10
|
+
|
|
11
|
+
import "google/protobuf/timestamp.proto";
|
|
12
|
+
|
|
13
|
+
// ----- Service Part ------
|
|
14
|
+
|
|
15
|
+
service DataCoreOutboundService {
|
|
16
|
+
|
|
17
|
+
// Retrieve a single entity by site/inst-id/type/id
|
|
18
|
+
rpc GetEntity (GetEntityRequest) returns (GetEntityResponse) {}
|
|
19
|
+
|
|
20
|
+
// lists entities for a site or site/type
|
|
21
|
+
rpc ListEntities(ListEntityRequest) returns (stream ListEntityResponse) {}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message GetEntityRequest {
|
|
26
|
+
EntityPath entity_path = 1;
|
|
27
|
+
// bool send_related = 2; // send also related entities
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message GetEntityResponse {
|
|
31
|
+
Entity entity = 1;
|
|
32
|
+
repeated Entity related = 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message ListEntityRequest {
|
|
36
|
+
EntityPath filter = 1; // minimum is for a site
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message ListEntityResponse {
|
|
40
|
+
Entity entity = 1;
|
|
41
|
+
repeated Entity related = 2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// ----- Data Part ------
|
|
45
|
+
|
|
46
|
+
message EntityPath {
|
|
47
|
+
string site_id = 1;
|
|
48
|
+
optional string source_id = 2;
|
|
49
|
+
optional string source_type = 3; // IT, OT, CDK, 3rdParty
|
|
50
|
+
optional string entity_type = 4; // "asset" "user" etc
|
|
51
|
+
optional string entity_id = 5;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message Entity {
|
|
55
|
+
oneof entity {
|
|
56
|
+
Asset asset = 1;
|
|
57
|
+
// User user = 2;
|
|
58
|
+
// Other ...
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message Asset {
|
|
63
|
+
|
|
64
|
+
EntityPath id = 1;
|
|
65
|
+
|
|
66
|
+
google.protobuf.Timestamp last_synced = 2;
|
|
67
|
+
google.protobuf.Timestamp first_seen = 3;
|
|
68
|
+
google.protobuf.Timestamp last_updated = 4;
|
|
69
|
+
google.protobuf.Timestamp last_enriched = 5;
|
|
70
|
+
|
|
71
|
+
CoreFields core = 6;
|
|
72
|
+
|
|
73
|
+
optional HardwareInfo hw = 7;
|
|
74
|
+
optional OperatingSystemInfo os = 8;
|
|
75
|
+
optional SoftwareInventory software_inventory = 9;
|
|
76
|
+
|
|
77
|
+
// Reconciliation future
|
|
78
|
+
//string entry_state = 2; // GOLDEN | ALIAS
|
|
79
|
+
//string master_type = 3; // NULL | ENGINE | USER
|
|
80
|
+
//optional int32 confidence = 4; // 1-100
|
|
81
|
+
//google.protobuf.Timestamp correlation_time = 5;
|
|
82
|
+
// DEDUP future
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Asset Type enables customers to manage the settings for a
|
|
88
|
+
* category of information in a centralized, reusable way.
|
|
89
|
+
*/
|
|
90
|
+
message AssetType {
|
|
91
|
+
// Lansweeper Asset Type. Full list available here: /lansweeperapis/packages/model/masterData/content/masterData.json
|
|
92
|
+
string ls_name = 1;
|
|
93
|
+
// Fing Type
|
|
94
|
+
optional string fing_type = 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
message CoreFields {
|
|
101
|
+
AssetType type = 1;
|
|
102
|
+
string name = 2;
|
|
103
|
+
optional string domain = 3;
|
|
104
|
+
optional string ip_address = 4;
|
|
105
|
+
optional string serial = 5;
|
|
106
|
+
optional string mac = 6;
|
|
107
|
+
optional string mac_vendor = 7;
|
|
108
|
+
optional string sensor_id = 8;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message HardwareInfo {
|
|
112
|
+
optional int64 type_id = 1;
|
|
113
|
+
optional int64 make_id = 2;
|
|
114
|
+
optional int64 model_id = 3;
|
|
115
|
+
optional int64 family_id = 4;
|
|
116
|
+
optional bool is_family = 6;
|
|
117
|
+
optional string serial = 7;
|
|
118
|
+
optional string type_name = 10;
|
|
119
|
+
optional string make_name = 11;
|
|
120
|
+
optional string model_name = 12;
|
|
121
|
+
optional string family_name = 13;
|
|
122
|
+
|
|
123
|
+
optional string cpe = 21;
|
|
124
|
+
optional int32 rank = 20;
|
|
125
|
+
|
|
126
|
+
optional CatalogBrand catalog_brand = 22;
|
|
127
|
+
optional CatalogModel catalog_model = 23;
|
|
128
|
+
|
|
129
|
+
optional RawHardwareInfo raw = 24;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message RawHardwareInfo {
|
|
133
|
+
optional string architecture = 1;
|
|
134
|
+
optional string model = 2;
|
|
135
|
+
optional string manufacturer = 3;
|
|
136
|
+
optional string serial_number = 4;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message OperatingSystemInfo {
|
|
140
|
+
optional int64 id = 1;
|
|
141
|
+
optional string name = 2;
|
|
142
|
+
optional string version = 3;
|
|
143
|
+
optional string build = 4;
|
|
144
|
+
|
|
145
|
+
optional string fw_version = 5;
|
|
146
|
+
|
|
147
|
+
optional string cpe = 6;
|
|
148
|
+
optional string fw_cpe = 7;
|
|
149
|
+
|
|
150
|
+
optional int32 rank = 8;
|
|
151
|
+
|
|
152
|
+
optional CatalogBrand catalog_brand = 9;
|
|
153
|
+
optional CatalogOs catalog_os = 10;
|
|
154
|
+
|
|
155
|
+
oneof raw {
|
|
156
|
+
WindowsRawOperatingSystemInfo windows = 32;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
message WindowsRawOperatingSystemInfo {
|
|
161
|
+
optional string version = 1;
|
|
162
|
+
optional int32 service_pack = 2;
|
|
163
|
+
optional string build = 3; // "WindowsVersion": "10.0.19045"
|
|
164
|
+
optional string version_name = 4; // OsVersion": "22H2",
|
|
165
|
+
optional string build_number = 5; // "OsBuildNumber": "2486",
|
|
166
|
+
optional int32 product_type = 6; // WindowsProductType: 1
|
|
167
|
+
|
|
168
|
+
optional bool is_domain_controller = 7;
|
|
169
|
+
optional bool part_of_domain = 8;
|
|
170
|
+
optional bool is_azure_ad_joined = 9;
|
|
171
|
+
|
|
172
|
+
optional string os_code = 10; // "OsCode": "10.0.19045" - with S if server
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
message SoftwareInventory {
|
|
176
|
+
google.protobuf.Timestamp timestamp = 1;
|
|
177
|
+
repeated Software software = 2;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
message Software {
|
|
181
|
+
|
|
182
|
+
optional int32 rank = 1;
|
|
183
|
+
optional int64 type_id = 2;
|
|
184
|
+
optional int64 cat_id = 3;
|
|
185
|
+
optional int64 make_id = 4;
|
|
186
|
+
optional int64 sw_id = 5;
|
|
187
|
+
optional int64 parent_id = 6;
|
|
188
|
+
|
|
189
|
+
optional string type_name = 7;
|
|
190
|
+
optional string cat_name = 8;
|
|
191
|
+
optional string make_name = 9;
|
|
192
|
+
optional string name = 10;
|
|
193
|
+
optional string version = 11;
|
|
194
|
+
optional string market_ver = 12;
|
|
195
|
+
optional string edition = 13;
|
|
196
|
+
optional string build = 14;
|
|
197
|
+
|
|
198
|
+
optional string cpe = 15;
|
|
199
|
+
|
|
200
|
+
optional CatalogSoftware catalog_software = 16;
|
|
201
|
+
|
|
202
|
+
RawSoftware raw = 17;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message RawSoftware {
|
|
206
|
+
string name = 1;
|
|
207
|
+
|
|
208
|
+
optional string vendor = 2;
|
|
209
|
+
optional string version = 3;
|
|
210
|
+
optional string info = 4;
|
|
211
|
+
optional string exe_path = 5;
|
|
212
|
+
optional string arch = 6; // when available the specific sw arch
|
|
213
|
+
optional int64 install_date = 7;
|
|
214
|
+
optional string source_type = 8; // Registry | System | MsStore | Package | Custom | etc
|
|
215
|
+
|
|
216
|
+
optional string sw_id = 9; // optional SW id on the client side
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< CATALOG ENTITIES >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
|
220
|
+
|
|
221
|
+
message CatalogBrand {
|
|
222
|
+
int64 id = 1;
|
|
223
|
+
string make_key = 2;
|
|
224
|
+
string make_name = 3;
|
|
225
|
+
|
|
226
|
+
optional int64 override_id = 4;
|
|
227
|
+
optional int64 parent_id = 18;
|
|
228
|
+
optional int64 last_update_time = 5;
|
|
229
|
+
|
|
230
|
+
optional string country_code = 6;
|
|
231
|
+
optional string logo_image_url = 7;
|
|
232
|
+
optional string banner_image_url = 8;
|
|
233
|
+
optional string wikipedia_id = 9;
|
|
234
|
+
optional string wikipedia_lang_code = 10;
|
|
235
|
+
optional string website_url = 11;
|
|
236
|
+
optional string support_url = 12;
|
|
237
|
+
optional string support_phone = 13;
|
|
238
|
+
optional string facebook_account = 14;
|
|
239
|
+
optional string twitter_account = 15;
|
|
240
|
+
optional string warranty_url = 16;
|
|
241
|
+
optional string warranty_direct_url = 17;
|
|
242
|
+
optional string community_url = 20;
|
|
243
|
+
optional string linkedin_account = 21;
|
|
244
|
+
optional string instagram_account = 22;
|
|
245
|
+
optional string youtube_account = 23;
|
|
246
|
+
optional string pinterest_account = 24;
|
|
247
|
+
|
|
248
|
+
optional bool class_hardware = 25;
|
|
249
|
+
optional bool class_software = 26;
|
|
250
|
+
optional bool class_consumer = 27;
|
|
251
|
+
optional bool class_enterprise = 28;
|
|
252
|
+
optional bool class_industrial = 29;
|
|
253
|
+
optional bool class_individual = 30;
|
|
254
|
+
|
|
255
|
+
optional int32 match_score = 19; // relevant only in search result
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message CatalogModel {
|
|
259
|
+
int64 id = 1;
|
|
260
|
+
string key = 2;
|
|
261
|
+
int64 make_id = 3;
|
|
262
|
+
string device_model = 4;
|
|
263
|
+
|
|
264
|
+
optional string device_type = 5;
|
|
265
|
+
optional string device_model_code = 6;
|
|
266
|
+
optional int64 override_id = 7;
|
|
267
|
+
|
|
268
|
+
optional int64 os_default_id = 8;
|
|
269
|
+
optional int64 os_latest_id = 9;
|
|
270
|
+
optional int64 family_id = 10;
|
|
271
|
+
optional bool is_family = 11;
|
|
272
|
+
optional string manual_url = 12;
|
|
273
|
+
optional string faq_url = 13;
|
|
274
|
+
optional int64 release_date = 14;
|
|
275
|
+
optional int64 disc_date = 15;
|
|
276
|
+
optional int64 eos_date = 26;
|
|
277
|
+
optional string lifecyle_confidence = 29;
|
|
278
|
+
|
|
279
|
+
optional string price_class = 24;
|
|
280
|
+
optional string product_class = 25;
|
|
281
|
+
|
|
282
|
+
optional string sh_ifttt_handle = 17;
|
|
283
|
+
repeated string sh_google_ass_langs = 18;
|
|
284
|
+
repeated string sh_alexa_langs = 19;
|
|
285
|
+
optional string sh_hass_handle = 20;
|
|
286
|
+
optional bool sh_apple_home_kit = 21;
|
|
287
|
+
optional string sh_open_hab_handle = 22;
|
|
288
|
+
|
|
289
|
+
optional string nist_cpe = 28;
|
|
290
|
+
|
|
291
|
+
optional double spread_in_type = 23;
|
|
292
|
+
|
|
293
|
+
optional int64 last_update_time = 16;
|
|
294
|
+
|
|
295
|
+
optional int32 match_score = 27; // filled only when a result of search
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
message CatalogOs {
|
|
299
|
+
int64 id = 1;
|
|
300
|
+
string os_key = 2;
|
|
301
|
+
string os_name = 3;
|
|
302
|
+
|
|
303
|
+
optional string os_version = 4;
|
|
304
|
+
optional string os_build = 12;
|
|
305
|
+
optional string os_version_name = 5;
|
|
306
|
+
|
|
307
|
+
optional int64 override_id = 6;
|
|
308
|
+
optional int64 make_id = 7;
|
|
309
|
+
optional int64 parent_id = 8;
|
|
310
|
+
|
|
311
|
+
optional int64 release_date = 9;
|
|
312
|
+
optional int64 eol_date = 10;
|
|
313
|
+
optional int64 eos_date = 22;
|
|
314
|
+
optional int64 eosx_date = 25;
|
|
315
|
+
optional string lifecyle_confidence = 26;
|
|
316
|
+
optional string logo_image_url = 13;
|
|
317
|
+
optional string banner_image_url = 14;
|
|
318
|
+
optional string wikipedia_id = 15;
|
|
319
|
+
optional string wikipedia_lang_code = 16;
|
|
320
|
+
optional string website_url = 17;
|
|
321
|
+
optional string support_url = 18;
|
|
322
|
+
optional string support_phone = 19;
|
|
323
|
+
optional string facebook_account = 20;
|
|
324
|
+
optional string twitter_account = 21;
|
|
325
|
+
|
|
326
|
+
optional string nist_cpe = 23;
|
|
327
|
+
|
|
328
|
+
optional int64 last_update_time = 11;
|
|
329
|
+
|
|
330
|
+
optional int32 match_score = 24; // filled only when a result of search
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
message CatalogSoftware {
|
|
334
|
+
int64 id = 1;
|
|
335
|
+
string sw_key = 2;
|
|
336
|
+
string sw_name = 3;
|
|
337
|
+
|
|
338
|
+
optional string sw_version = 4;
|
|
339
|
+
optional string sw_market_ver = 5;
|
|
340
|
+
optional string sw_edition = 6;
|
|
341
|
+
optional string sw_lang = 23;
|
|
342
|
+
optional string sw_build = 7;
|
|
343
|
+
|
|
344
|
+
optional int64 override_id = 8;
|
|
345
|
+
optional int64 make_id = 9;
|
|
346
|
+
optional int64 parent_id = 10;
|
|
347
|
+
|
|
348
|
+
optional string sw_type = 11;
|
|
349
|
+
optional string sw_category = 12;
|
|
350
|
+
|
|
351
|
+
optional string nist_cpe_template = 13;
|
|
352
|
+
|
|
353
|
+
optional int64 release_date = 14;
|
|
354
|
+
optional int64 eol_date = 15;
|
|
355
|
+
optional int64 eos_date = 16;
|
|
356
|
+
optional int64 eosx_date = 18;
|
|
357
|
+
optional string lifecyle_confidence = 19;
|
|
358
|
+
|
|
359
|
+
optional int64 last_update_time = 17;
|
|
360
|
+
|
|
361
|
+
optional bool flag_latest = 20;
|
|
362
|
+
optional bool flag_widespread = 21;
|
|
363
|
+
optional bool flag_deprecated = 22;
|
|
364
|
+
|
|
365
|
+
optional int32 match_score = 100; // filled only when a result of search
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
message CatalogMonitor {
|
|
369
|
+
int64 id = 1;
|
|
370
|
+
|
|
371
|
+
}
|
|
372
|
+
|