@lansweeper/install-api-grpc 0.0.5 → 0.0.7
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/gen-proto/image.json +1 -1
- package/gen-proto/install_grpc_pb.d.ts +35 -0
- package/gen-proto/install_grpc_pb.js +67 -0
- package/gen-proto/install_pb.d.ts +169 -0
- package/gen-proto/install_pb.js +1394 -166
- package/package.json +2 -2
- package/proto/install.proto +47 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/install-api-grpc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "install api grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/google-protobuf": "^3.15.5"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "4a94c6ec117a0a7a5ade74a57612af673cd37774"
|
|
20
20
|
}
|
package/proto/install.proto
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
+
import "google/protobuf/timestamp.proto";
|
|
4
|
+
|
|
3
5
|
package lansweeper.install.v1;
|
|
4
6
|
|
|
5
7
|
option go_package = "./generated-go";
|
|
@@ -23,6 +25,14 @@ message SetHubCertificateRequest {
|
|
|
23
25
|
message SetHubCertificateResponse {
|
|
24
26
|
}
|
|
25
27
|
|
|
28
|
+
message RemoveHubCertificateRequest {
|
|
29
|
+
string site_id = 1;
|
|
30
|
+
string install_key = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message RemoveHubCertificateResponse {
|
|
34
|
+
}
|
|
35
|
+
|
|
26
36
|
message GetHubCertificatesRequest {
|
|
27
37
|
string site_id = 1;
|
|
28
38
|
repeated string install_keys = 2;
|
|
@@ -37,8 +47,45 @@ message HubCertificateInstallation {
|
|
|
37
47
|
string hub_certificate = 3;
|
|
38
48
|
}
|
|
39
49
|
|
|
50
|
+
enum InstallType {
|
|
51
|
+
IT=0;
|
|
52
|
+
OT=1;
|
|
53
|
+
IT_AGENT=2;
|
|
54
|
+
CLOUD=3;
|
|
55
|
+
NETWORK_DISCOVERY=4;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
enum InstallStateValue {
|
|
59
|
+
UNESPECIFIED = 0;
|
|
60
|
+
LINKED = 1;
|
|
61
|
+
UNLINKED = 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message Installation {
|
|
65
|
+
string id = 1;
|
|
66
|
+
string site_id = 2;
|
|
67
|
+
InstallType type = 3;
|
|
68
|
+
InstallStateValue state = 4;
|
|
69
|
+
google.protobuf.Timestamp synced_at = 5;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message GetInstallationsBySiteRequest {
|
|
73
|
+
string site_id = 1;
|
|
74
|
+
message Filter {
|
|
75
|
+
optional InstallType type=1;
|
|
76
|
+
optional google.protobuf.Timestamp synced_at = 2;
|
|
77
|
+
}
|
|
78
|
+
optional Filter filter = 2;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message GetInstallationsBySiteResponse {
|
|
82
|
+
repeated Installation installations = 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
40
85
|
service InstallService {
|
|
41
86
|
rpc GetHubCertificates(GetHubCertificatesRequest) returns (GetHubCertificatesResponse) {}
|
|
42
87
|
rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
|
|
43
88
|
rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
|
|
89
|
+
rpc RemoveHubCertificate(RemoveHubCertificateRequest) returns (RemoveHubCertificateResponse) {}
|
|
90
|
+
rpc GetInstallationsBySite(GetInstallationsBySiteRequest) returns (GetInstallationsBySiteResponse) {}
|
|
44
91
|
}
|