@lansweeper/multitenant-api-grpc 0.0.6
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 +65 -0
- package/gen-proto/accounts_grpc_pb.js +1 -0
- package/gen-proto/accounts_pb.d.ts +85 -0
- package/gen-proto/accounts_pb.js +645 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +6 -0
- package/gen-proto/index.js +11 -0
- package/gen-proto/installs_grpc_pb.js +1 -0
- package/gen-proto/installs_pb.d.ts +602 -0
- package/gen-proto/installs_pb.js +4782 -0
- package/gen-proto/multitenant_grpc_pb.d.ts +267 -0
- package/gen-proto/multitenant_grpc_pb.js +476 -0
- package/gen-proto/multitenant_pb.d.ts +11 -0
- package/gen-proto/multitenant_pb.js +25 -0
- package/gen-proto/profiles_grpc_pb.js +1 -0
- package/gen-proto/profiles_pb.d.ts +131 -0
- package/gen-proto/profiles_pb.js +1011 -0
- package/gen-proto/sites_grpc_pb.js +1 -0
- package/gen-proto/sites_pb.d.ts +90 -0
- package/gen-proto/sites_pb.js +636 -0
- package/package.json +12 -0
- package/proto/accounts.proto +20 -0
- package/proto/installs.proto +137 -0
- package/proto/multitenant.proto +38 -0
- package/proto/profiles.proto +31 -0
- package/proto/sites.proto +29 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.multitenant.v1;
|
|
4
|
+
|
|
5
|
+
import "sites.proto";
|
|
6
|
+
|
|
7
|
+
message Install {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string site_id = 2;
|
|
10
|
+
string display_name = 3;
|
|
11
|
+
string description = 4;
|
|
12
|
+
string status = 5;
|
|
13
|
+
string fqdn = 6;
|
|
14
|
+
string created_by_id = 7;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message InstallCredentials {
|
|
18
|
+
string clien_id = 1;
|
|
19
|
+
string client_secret = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message GetInstallsCountBySiteRequest {
|
|
23
|
+
string site_id = 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message GetInstallsCountResponse {
|
|
27
|
+
int64 count = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message GetInstallbyClientIdRequest {
|
|
31
|
+
string client_id = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message GetInstallbyClientIdResponse {
|
|
35
|
+
Install install = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
message CreateInstallRequest{
|
|
40
|
+
string site_id = 1;
|
|
41
|
+
string display_name = 3;
|
|
42
|
+
string description = 4;
|
|
43
|
+
string status = 5;
|
|
44
|
+
string fqdn = 6;
|
|
45
|
+
string created_by_id = 7;
|
|
46
|
+
|
|
47
|
+
bool create_sqs_queue = 8;
|
|
48
|
+
SiteMode site_mode = 9;
|
|
49
|
+
string license = 10;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message CreateInstallResponse{
|
|
53
|
+
Install install = 1;
|
|
54
|
+
InstallCredentials credentials = 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message UpdateInstallByClientIdRequest{
|
|
58
|
+
string client_id = 1;
|
|
59
|
+
string display_name = 2;
|
|
60
|
+
string description = 3;
|
|
61
|
+
string status = 4;
|
|
62
|
+
string fqdn = 5;
|
|
63
|
+
|
|
64
|
+
message SyncerSettings {
|
|
65
|
+
string send_changed_data_timeout = 1;
|
|
66
|
+
string send_fast_changing_data_timeout = 2;
|
|
67
|
+
string send_non_changed_data_timeout = 3;
|
|
68
|
+
string sync_interval_in_seconds = 4;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
SyncerSettings syncer_settings = 6;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message UpdateInstallByClientIdResponse{
|
|
75
|
+
Install install = 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message DeleteInstallByClientIdRequest{
|
|
79
|
+
string client_id = 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message DeleteInstallByClientIdResponse{
|
|
83
|
+
bool success = 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
message RotateInstallByClientIdRequest{
|
|
88
|
+
string client_id = 1;
|
|
89
|
+
string track_id = 2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message RotateInstallByClientIdResponse {
|
|
93
|
+
bool success = 1;
|
|
94
|
+
string site_id = 2;
|
|
95
|
+
string old_install_id = 3;
|
|
96
|
+
string new_install_id = 4;
|
|
97
|
+
InstallCredentials credentials = 5;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message ResetInstallByClientIdRequest {
|
|
101
|
+
string client_id = 1;
|
|
102
|
+
string track_id = 2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message ResetInstallByClientIdResponse {
|
|
106
|
+
bool success = 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message UnlinkInstallByClientIdRequest {
|
|
110
|
+
string client_id = 1;
|
|
111
|
+
string track_id = 2;
|
|
112
|
+
bool remove_data = 3;
|
|
113
|
+
bool from_onprem = 4;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message UnlinkInstallByClientIdResponse {
|
|
117
|
+
bool success = 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message StartInstallPushByClientIdRequest {
|
|
121
|
+
string client_id = 1;
|
|
122
|
+
string track_id = 2;
|
|
123
|
+
string push_id = 3;
|
|
124
|
+
}
|
|
125
|
+
message StartInstallPushByClientIdResponse {
|
|
126
|
+
string push_id = 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message FinishInstallPushByClientIdRequest {
|
|
130
|
+
string client_id = 1;
|
|
131
|
+
string track_id = 2;
|
|
132
|
+
string push_id = 3;
|
|
133
|
+
string error = 4;
|
|
134
|
+
}
|
|
135
|
+
message FinishInstallPushByClientIdResponse {
|
|
136
|
+
bool success = 1;
|
|
137
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.multitenant.v1;
|
|
4
|
+
|
|
5
|
+
import "sites.proto";
|
|
6
|
+
import "installs.proto";
|
|
7
|
+
import "profiles.proto";
|
|
8
|
+
import "accounts.proto";
|
|
9
|
+
|
|
10
|
+
service Multitenant {
|
|
11
|
+
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
12
|
+
|
|
13
|
+
rpc GetPreviewAccountById(GetPreviewAccountByIdRequest) returns (GetPreviewAccountByIdResponse) {}
|
|
14
|
+
|
|
15
|
+
rpc ListProfilesByAccountId(ListProfilesByAccountIdRequest) returns (ListProfilesByAccountIdResponse) {}
|
|
16
|
+
|
|
17
|
+
rpc PatchSiteMode(PatchSiteModeRequest) returns (PatchSiteModeResponse) {}
|
|
18
|
+
|
|
19
|
+
rpc CreateInstall(CreateInstallRequest) returns (CreateInstallResponse) {}
|
|
20
|
+
|
|
21
|
+
rpc GetInstallsCountBySite(GetInstallsCountBySiteRequest) returns (GetInstallsCountResponse) {}
|
|
22
|
+
|
|
23
|
+
rpc GetInstallbyClientId(GetInstallbyClientIdRequest) returns (GetInstallbyClientIdResponse) {}
|
|
24
|
+
|
|
25
|
+
rpc UpdateInstallByClientId(UpdateInstallByClientIdRequest) returns (UpdateInstallByClientIdResponse) {}
|
|
26
|
+
|
|
27
|
+
rpc DeleteInstallByClientId(DeleteInstallByClientIdRequest) returns (DeleteInstallByClientIdResponse) {}
|
|
28
|
+
|
|
29
|
+
rpc RotateInstallByClientId(RotateInstallByClientIdRequest) returns (RotateInstallByClientIdResponse) {}
|
|
30
|
+
|
|
31
|
+
rpc ResetInstallByClientId(ResetInstallByClientIdRequest) returns (ResetInstallByClientIdResponse) {}
|
|
32
|
+
|
|
33
|
+
rpc UnlinkInstallByClientId(UnlinkInstallByClientIdRequest) returns (UnlinkInstallByClientIdResponse) {}
|
|
34
|
+
|
|
35
|
+
rpc StartInstallPushByClientId(StartInstallPushByClientIdRequest) returns (StartInstallPushByClientIdResponse) {}
|
|
36
|
+
|
|
37
|
+
rpc FinishInstallPushByClientId(FinishInstallPushByClientIdRequest) returns (FinishInstallPushByClientIdResponse) {}
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.multitenant.v1;
|
|
4
|
+
|
|
5
|
+
import "sites.proto";
|
|
6
|
+
|
|
7
|
+
message Profile {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string site_id = 2;
|
|
10
|
+
PreviewSite site = 3;
|
|
11
|
+
bool is_owner = 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message ListProfilesByAccountIdRequest{
|
|
15
|
+
string account_id = 1;
|
|
16
|
+
bool include_blocks = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message ListProfilesByAccountIdResponse {
|
|
20
|
+
repeated Profile profile = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message CheckAccessToSiteByAccountIdRequest {
|
|
24
|
+
string account_id = 1;
|
|
25
|
+
string site_id = 2;
|
|
26
|
+
bool only_owner = 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message CheckAccessToSiteByAccountIdResponse {
|
|
30
|
+
bool access = 1;
|
|
31
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package lansweeper.multitenant.v1;
|
|
4
|
+
|
|
5
|
+
enum SiteMode {
|
|
6
|
+
UNESPECIFIED = 0;
|
|
7
|
+
CLOUD_NATIVE = 1;
|
|
8
|
+
DEMO = 2;
|
|
9
|
+
HYBRID = 3;
|
|
10
|
+
DUAL = 4;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message PreviewSite {
|
|
14
|
+
string id = 1;
|
|
15
|
+
string name = 2;
|
|
16
|
+
string company_name = 3;
|
|
17
|
+
string logo_url = 4;
|
|
18
|
+
SiteMode mode = 5;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
message PatchSiteModeRequest {
|
|
23
|
+
string id = 1;
|
|
24
|
+
SiteMode mode = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message PatchSiteModeResponse {
|
|
28
|
+
bool success = 1;
|
|
29
|
+
}
|