@lansweeper/multitenant-api-grpc 0.4.40 → 0.4.42
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/buf.yaml +3 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/limits/limits_pb.d.ts +109 -5
- package/gen-proto/limits/limits_pb.js +861 -47
- package/package.json +2 -2
- package/proto/limits/limits.proto +23 -1
- package/proto/multitenant.proto +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/multitenant-api-grpc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.42",
|
|
4
4
|
"description": "Multitenant grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"prepublishOnly": "cp -r ../../shared/limits ./proto"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "60bb8fc96a6e4af9b107028787f6d90d7b2e614e"
|
|
22
22
|
}
|
|
@@ -2,6 +2,7 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package lansweeper.shared.limits.v1;
|
|
4
4
|
option go_package = "github.com/Lansweeper/lansweeperapis/packages/shared/generated-go;limits";
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
enum SiteLimitsTiers {
|
|
@@ -23,7 +24,28 @@ message CalculateRiskInsights {
|
|
|
23
24
|
optional int32 max = 3;
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
message ExpirableAllowedEntities {
|
|
28
|
+
string key = 1;
|
|
29
|
+
optional google.protobuf.Timestamp expires_at = 2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message BaseLimit {
|
|
33
|
+
reserved 2;
|
|
34
|
+
bool value = 1;
|
|
35
|
+
repeated ExpirableAllowedEntities allowed_entities = 3;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message RiskInsights {
|
|
39
|
+
BaseLimit view_assets = 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message Assets {
|
|
43
|
+
BaseLimit view_risk_insights = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
26
46
|
message SiteLimits {
|
|
47
|
+
reserved 2;
|
|
27
48
|
SiteLimitsTiers tier = 1;
|
|
28
|
-
optional
|
|
49
|
+
optional RiskInsights risk_insights = 3;
|
|
50
|
+
optional Assets assets = 4;
|
|
29
51
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -418,11 +418,11 @@ message GetSiteLimitsRequest {
|
|
|
418
418
|
repeated string site_ids = 1;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
|
|
422
421
|
message GetSiteLimitsResponse {
|
|
423
422
|
map<string, lansweeper.shared.limits.v1.SiteLimits> site_limits = 1;
|
|
424
423
|
}
|
|
425
424
|
|
|
425
|
+
|
|
426
426
|
service Multitenant {
|
|
427
427
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
428
428
|
rpc CheckAccessToSiteByClientId(CheckAccessToSiteByClientIdRequest) returns (CheckAccessToSiteByClientIdResponse) {}
|
|
@@ -465,4 +465,4 @@ service Multitenant {
|
|
|
465
465
|
|
|
466
466
|
rpc UpdateSiteMetadata(UpdateSiteMetadataRequest) returns (UpdateSiteMetadataResponse) {}
|
|
467
467
|
rpc GetSiteLimits(GetSiteLimitsRequest) returns (GetSiteLimitsResponse) {}
|
|
468
|
-
}
|
|
468
|
+
}
|