@lansweeper/permissions-grpc 0.1.9 → 0.2.1
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 +21 -66
- package/gen-proto/image.json +1 -1
- package/gen-proto/limits/limits_pb.d.ts +26 -0
- package/gen-proto/limits/limits_pb.js +204 -1
- package/generated-go/permissions.pb.go +12 -12
- package/generated-go/permissions_grpc.pb.go +11 -7
- package/package.json +7 -2
- package/proto/limits/limits.proto +5 -0
- package/proto/permissions.proto +1 -1
|
@@ -165,6 +165,26 @@ export namespace Scopes {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
export class Attachments extends jspb.Message {
|
|
169
|
+
getMaxBytesPerAsset(): number;
|
|
170
|
+
setMaxBytesPerAsset(value: number): Attachments;
|
|
171
|
+
|
|
172
|
+
serializeBinary(): Uint8Array;
|
|
173
|
+
toObject(includeInstance?: boolean): Attachments.AsObject;
|
|
174
|
+
static toObject(includeInstance: boolean, msg: Attachments): Attachments.AsObject;
|
|
175
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
176
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
177
|
+
static serializeBinaryToWriter(message: Attachments, writer: jspb.BinaryWriter): void;
|
|
178
|
+
static deserializeBinary(bytes: Uint8Array): Attachments;
|
|
179
|
+
static deserializeBinaryFromReader(message: Attachments, reader: jspb.BinaryReader): Attachments;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export namespace Attachments {
|
|
183
|
+
export type AsObject = {
|
|
184
|
+
maxBytesPerAsset: number,
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
168
188
|
export class SiteLimits extends jspb.Message {
|
|
169
189
|
getTier(): SiteLimitsTiers;
|
|
170
190
|
setTier(value: SiteLimitsTiers): SiteLimits;
|
|
@@ -184,6 +204,11 @@ export class SiteLimits extends jspb.Message {
|
|
|
184
204
|
getScopes(): Scopes | undefined;
|
|
185
205
|
setScopes(value?: Scopes): SiteLimits;
|
|
186
206
|
|
|
207
|
+
hasAttachments(): boolean;
|
|
208
|
+
clearAttachments(): void;
|
|
209
|
+
getAttachments(): Attachments | undefined;
|
|
210
|
+
setAttachments(value?: Attachments): SiteLimits;
|
|
211
|
+
|
|
187
212
|
serializeBinary(): Uint8Array;
|
|
188
213
|
toObject(includeInstance?: boolean): SiteLimits.AsObject;
|
|
189
214
|
static toObject(includeInstance: boolean, msg: SiteLimits): SiteLimits.AsObject;
|
|
@@ -200,6 +225,7 @@ export namespace SiteLimits {
|
|
|
200
225
|
riskInsights?: RiskInsights.AsObject,
|
|
201
226
|
assets?: Assets.AsObject,
|
|
202
227
|
scopes?: Scopes.AsObject,
|
|
228
|
+
attachments?: Attachments.AsObject,
|
|
203
229
|
}
|
|
204
230
|
}
|
|
205
231
|
|
|
@@ -24,6 +24,7 @@ var global = (function() {
|
|
|
24
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
26
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.Assets', null, global);
|
|
27
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.Attachments', null, global);
|
|
27
28
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.BaseLimit', null, global);
|
|
28
29
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.CalculateRiskInsights', null, global);
|
|
29
30
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.ExpirableAllowedEntities', null, global);
|
|
@@ -158,6 +159,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
158
159
|
*/
|
|
159
160
|
proto.lansweeper.shared.limits.v1.Scopes.displayName = 'proto.lansweeper.shared.limits.v1.Scopes';
|
|
160
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Generated by JsPbCodeGenerator.
|
|
164
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
165
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
166
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
167
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
168
|
+
* valid.
|
|
169
|
+
* @extends {jspb.Message}
|
|
170
|
+
* @constructor
|
|
171
|
+
*/
|
|
172
|
+
proto.lansweeper.shared.limits.v1.Attachments = function(opt_data) {
|
|
173
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
174
|
+
};
|
|
175
|
+
goog.inherits(proto.lansweeper.shared.limits.v1.Attachments, jspb.Message);
|
|
176
|
+
if (goog.DEBUG && !COMPILED) {
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
* @override
|
|
180
|
+
*/
|
|
181
|
+
proto.lansweeper.shared.limits.v1.Attachments.displayName = 'proto.lansweeper.shared.limits.v1.Attachments';
|
|
182
|
+
}
|
|
161
183
|
/**
|
|
162
184
|
* Generated by JsPbCodeGenerator.
|
|
163
185
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1280,6 +1302,136 @@ proto.lansweeper.shared.limits.v1.Scopes.prototype.setCreateMax = function(value
|
|
|
1280
1302
|
|
|
1281
1303
|
|
|
1282
1304
|
|
|
1305
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1306
|
+
/**
|
|
1307
|
+
* Creates an object representation of this proto.
|
|
1308
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1309
|
+
* Optional fields that are not set will be set to undefined.
|
|
1310
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1311
|
+
* For the list of reserved names please see:
|
|
1312
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1313
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1314
|
+
* JSPB instance for transitional soy proto support:
|
|
1315
|
+
* http://goto/soy-param-migration
|
|
1316
|
+
* @return {!Object}
|
|
1317
|
+
*/
|
|
1318
|
+
proto.lansweeper.shared.limits.v1.Attachments.prototype.toObject = function(opt_includeInstance) {
|
|
1319
|
+
return proto.lansweeper.shared.limits.v1.Attachments.toObject(opt_includeInstance, this);
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Static version of the {@see toObject} method.
|
|
1325
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1326
|
+
* the JSPB instance for transitional soy proto support:
|
|
1327
|
+
* http://goto/soy-param-migration
|
|
1328
|
+
* @param {!proto.lansweeper.shared.limits.v1.Attachments} msg The msg instance to transform.
|
|
1329
|
+
* @return {!Object}
|
|
1330
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1331
|
+
*/
|
|
1332
|
+
proto.lansweeper.shared.limits.v1.Attachments.toObject = function(includeInstance, msg) {
|
|
1333
|
+
var f, obj = {
|
|
1334
|
+
maxBytesPerAsset: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
if (includeInstance) {
|
|
1338
|
+
obj.$jspbMessageInstance = msg;
|
|
1339
|
+
}
|
|
1340
|
+
return obj;
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1347
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1348
|
+
* @return {!proto.lansweeper.shared.limits.v1.Attachments}
|
|
1349
|
+
*/
|
|
1350
|
+
proto.lansweeper.shared.limits.v1.Attachments.deserializeBinary = function(bytes) {
|
|
1351
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1352
|
+
var msg = new proto.lansweeper.shared.limits.v1.Attachments;
|
|
1353
|
+
return proto.lansweeper.shared.limits.v1.Attachments.deserializeBinaryFromReader(msg, reader);
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1359
|
+
* given reader into the given message object.
|
|
1360
|
+
* @param {!proto.lansweeper.shared.limits.v1.Attachments} msg The message object to deserialize into.
|
|
1361
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1362
|
+
* @return {!proto.lansweeper.shared.limits.v1.Attachments}
|
|
1363
|
+
*/
|
|
1364
|
+
proto.lansweeper.shared.limits.v1.Attachments.deserializeBinaryFromReader = function(msg, reader) {
|
|
1365
|
+
while (reader.nextField()) {
|
|
1366
|
+
if (reader.isEndGroup()) {
|
|
1367
|
+
break;
|
|
1368
|
+
}
|
|
1369
|
+
var field = reader.getFieldNumber();
|
|
1370
|
+
switch (field) {
|
|
1371
|
+
case 1:
|
|
1372
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1373
|
+
msg.setMaxBytesPerAsset(value);
|
|
1374
|
+
break;
|
|
1375
|
+
default:
|
|
1376
|
+
reader.skipField();
|
|
1377
|
+
break;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
return msg;
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1386
|
+
* @return {!Uint8Array}
|
|
1387
|
+
*/
|
|
1388
|
+
proto.lansweeper.shared.limits.v1.Attachments.prototype.serializeBinary = function() {
|
|
1389
|
+
var writer = new jspb.BinaryWriter();
|
|
1390
|
+
proto.lansweeper.shared.limits.v1.Attachments.serializeBinaryToWriter(this, writer);
|
|
1391
|
+
return writer.getResultBuffer();
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1397
|
+
* format), writing to the given BinaryWriter.
|
|
1398
|
+
* @param {!proto.lansweeper.shared.limits.v1.Attachments} message
|
|
1399
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1400
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1401
|
+
*/
|
|
1402
|
+
proto.lansweeper.shared.limits.v1.Attachments.serializeBinaryToWriter = function(message, writer) {
|
|
1403
|
+
var f = undefined;
|
|
1404
|
+
f = message.getMaxBytesPerAsset();
|
|
1405
|
+
if (f !== 0) {
|
|
1406
|
+
writer.writeInt32(
|
|
1407
|
+
1,
|
|
1408
|
+
f
|
|
1409
|
+
);
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* optional int32 max_bytes_per_asset = 1;
|
|
1416
|
+
* @return {number}
|
|
1417
|
+
*/
|
|
1418
|
+
proto.lansweeper.shared.limits.v1.Attachments.prototype.getMaxBytesPerAsset = function() {
|
|
1419
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* @param {number} value
|
|
1425
|
+
* @return {!proto.lansweeper.shared.limits.v1.Attachments} returns this
|
|
1426
|
+
*/
|
|
1427
|
+
proto.lansweeper.shared.limits.v1.Attachments.prototype.setMaxBytesPerAsset = function(value) {
|
|
1428
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1283
1435
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1284
1436
|
/**
|
|
1285
1437
|
* Creates an object representation of this proto.
|
|
@@ -1312,7 +1464,8 @@ proto.lansweeper.shared.limits.v1.SiteLimits.toObject = function(includeInstance
|
|
|
1312
1464
|
tier: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1313
1465
|
riskInsights: (f = msg.getRiskInsights()) && proto.lansweeper.shared.limits.v1.RiskInsights.toObject(includeInstance, f),
|
|
1314
1466
|
assets: (f = msg.getAssets()) && proto.lansweeper.shared.limits.v1.Assets.toObject(includeInstance, f),
|
|
1315
|
-
scopes: (f = msg.getScopes()) && proto.lansweeper.shared.limits.v1.Scopes.toObject(includeInstance, f)
|
|
1467
|
+
scopes: (f = msg.getScopes()) && proto.lansweeper.shared.limits.v1.Scopes.toObject(includeInstance, f),
|
|
1468
|
+
attachments: (f = msg.getAttachments()) && proto.lansweeper.shared.limits.v1.Attachments.toObject(includeInstance, f)
|
|
1316
1469
|
};
|
|
1317
1470
|
|
|
1318
1471
|
if (includeInstance) {
|
|
@@ -1368,6 +1521,11 @@ proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinaryFromReader = funct
|
|
|
1368
1521
|
reader.readMessage(value,proto.lansweeper.shared.limits.v1.Scopes.deserializeBinaryFromReader);
|
|
1369
1522
|
msg.setScopes(value);
|
|
1370
1523
|
break;
|
|
1524
|
+
case 6:
|
|
1525
|
+
var value = new proto.lansweeper.shared.limits.v1.Attachments;
|
|
1526
|
+
reader.readMessage(value,proto.lansweeper.shared.limits.v1.Attachments.deserializeBinaryFromReader);
|
|
1527
|
+
msg.setAttachments(value);
|
|
1528
|
+
break;
|
|
1371
1529
|
default:
|
|
1372
1530
|
reader.skipField();
|
|
1373
1531
|
break;
|
|
@@ -1428,6 +1586,14 @@ proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter = function(
|
|
|
1428
1586
|
proto.lansweeper.shared.limits.v1.Scopes.serializeBinaryToWriter
|
|
1429
1587
|
);
|
|
1430
1588
|
}
|
|
1589
|
+
f = message.getAttachments();
|
|
1590
|
+
if (f != null) {
|
|
1591
|
+
writer.writeMessage(
|
|
1592
|
+
6,
|
|
1593
|
+
f,
|
|
1594
|
+
proto.lansweeper.shared.limits.v1.Attachments.serializeBinaryToWriter
|
|
1595
|
+
);
|
|
1596
|
+
}
|
|
1431
1597
|
};
|
|
1432
1598
|
|
|
1433
1599
|
|
|
@@ -1560,6 +1726,43 @@ proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasScopes = function() {
|
|
|
1560
1726
|
};
|
|
1561
1727
|
|
|
1562
1728
|
|
|
1729
|
+
/**
|
|
1730
|
+
* optional Attachments attachments = 6;
|
|
1731
|
+
* @return {?proto.lansweeper.shared.limits.v1.Attachments}
|
|
1732
|
+
*/
|
|
1733
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.getAttachments = function() {
|
|
1734
|
+
return /** @type{?proto.lansweeper.shared.limits.v1.Attachments} */ (
|
|
1735
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.Attachments, 6));
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* @param {?proto.lansweeper.shared.limits.v1.Attachments|undefined} value
|
|
1741
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1742
|
+
*/
|
|
1743
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setAttachments = function(value) {
|
|
1744
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* Clears the message field making it undefined.
|
|
1750
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1751
|
+
*/
|
|
1752
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.clearAttachments = function() {
|
|
1753
|
+
return this.setAttachments(undefined);
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Returns whether this field is set.
|
|
1759
|
+
* @return {boolean}
|
|
1760
|
+
*/
|
|
1761
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasAttachments = function() {
|
|
1762
|
+
return jspb.Message.getField(this, 6) != null;
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
|
|
1563
1766
|
/**
|
|
1564
1767
|
* @enum {number}
|
|
1565
1768
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-go v1.
|
|
3
|
+
// protoc-gen-go v1.34.2
|
|
4
4
|
// protoc v3.19.1
|
|
5
5
|
// source: permissions.proto
|
|
6
6
|
|
|
@@ -731,7 +731,7 @@ func file_permissions_proto_rawDescGZIP() []byte {
|
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
var file_permissions_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
734
|
-
var file_permissions_proto_goTypes = []
|
|
734
|
+
var file_permissions_proto_goTypes = []any{
|
|
735
735
|
(*CheckPermissionForMultipleSitesRequest)(nil), // 0: checkpermission.CheckPermissionForMultipleSitesRequest
|
|
736
736
|
(*CheckPermissionForMultipleSitesResponse)(nil), // 1: checkpermission.CheckPermissionForMultipleSitesResponse
|
|
737
737
|
(*CheckPermissionRequest)(nil), // 2: checkpermission.CheckPermissionRequest
|
|
@@ -777,7 +777,7 @@ func file_permissions_proto_init() {
|
|
|
777
777
|
return
|
|
778
778
|
}
|
|
779
779
|
if !protoimpl.UnsafeEnabled {
|
|
780
|
-
file_permissions_proto_msgTypes[0].Exporter = func(v
|
|
780
|
+
file_permissions_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
|
781
781
|
switch v := v.(*CheckPermissionForMultipleSitesRequest); i {
|
|
782
782
|
case 0:
|
|
783
783
|
return &v.state
|
|
@@ -789,7 +789,7 @@ func file_permissions_proto_init() {
|
|
|
789
789
|
return nil
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
file_permissions_proto_msgTypes[1].Exporter = func(v
|
|
792
|
+
file_permissions_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
|
793
793
|
switch v := v.(*CheckPermissionForMultipleSitesResponse); i {
|
|
794
794
|
case 0:
|
|
795
795
|
return &v.state
|
|
@@ -801,7 +801,7 @@ func file_permissions_proto_init() {
|
|
|
801
801
|
return nil
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
file_permissions_proto_msgTypes[2].Exporter = func(v
|
|
804
|
+
file_permissions_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
|
805
805
|
switch v := v.(*CheckPermissionRequest); i {
|
|
806
806
|
case 0:
|
|
807
807
|
return &v.state
|
|
@@ -813,7 +813,7 @@ func file_permissions_proto_init() {
|
|
|
813
813
|
return nil
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
file_permissions_proto_msgTypes[3].Exporter = func(v
|
|
816
|
+
file_permissions_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
|
817
817
|
switch v := v.(*CheckPermissionResponse); i {
|
|
818
818
|
case 0:
|
|
819
819
|
return &v.state
|
|
@@ -825,7 +825,7 @@ func file_permissions_proto_init() {
|
|
|
825
825
|
return nil
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
file_permissions_proto_msgTypes[4].Exporter = func(v
|
|
828
|
+
file_permissions_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
|
829
829
|
switch v := v.(*GetUserPermissionsRequest); i {
|
|
830
830
|
case 0:
|
|
831
831
|
return &v.state
|
|
@@ -837,7 +837,7 @@ func file_permissions_proto_init() {
|
|
|
837
837
|
return nil
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
file_permissions_proto_msgTypes[5].Exporter = func(v
|
|
840
|
+
file_permissions_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
|
841
841
|
switch v := v.(*GetUserPermissionsResponse); i {
|
|
842
842
|
case 0:
|
|
843
843
|
return &v.state
|
|
@@ -849,7 +849,7 @@ func file_permissions_proto_init() {
|
|
|
849
849
|
return nil
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
file_permissions_proto_msgTypes[6].Exporter = func(v
|
|
852
|
+
file_permissions_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
|
853
853
|
switch v := v.(*GetSitesLimitsRequest); i {
|
|
854
854
|
case 0:
|
|
855
855
|
return &v.state
|
|
@@ -861,7 +861,7 @@ func file_permissions_proto_init() {
|
|
|
861
861
|
return nil
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
file_permissions_proto_msgTypes[7].Exporter = func(v
|
|
864
|
+
file_permissions_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
|
865
865
|
switch v := v.(*GetSitesLimitsResponse); i {
|
|
866
866
|
case 0:
|
|
867
867
|
return &v.state
|
|
@@ -873,7 +873,7 @@ func file_permissions_proto_init() {
|
|
|
873
873
|
return nil
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
file_permissions_proto_msgTypes[10].Exporter = func(v
|
|
876
|
+
file_permissions_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
|
877
877
|
switch v := v.(*GetUserPermissionsResponse_Permissions); i {
|
|
878
878
|
case 0:
|
|
879
879
|
return &v.state
|
|
@@ -886,7 +886,7 @@ func file_permissions_proto_init() {
|
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
file_permissions_proto_msgTypes[4].OneofWrappers = []
|
|
889
|
+
file_permissions_proto_msgTypes[4].OneofWrappers = []any{}
|
|
890
890
|
type x struct{}
|
|
891
891
|
out := protoimpl.TypeBuilder{
|
|
892
892
|
File: protoimpl.DescBuilder{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// - protoc-gen-go-grpc v1.
|
|
3
|
+
// - protoc-gen-go-grpc v1.4.0
|
|
4
4
|
// - protoc v3.19.1
|
|
5
5
|
// source: permissions.proto
|
|
6
6
|
|
|
@@ -15,8 +15,8 @@ import (
|
|
|
15
15
|
|
|
16
16
|
// This is a compile-time assertion to ensure that this generated file
|
|
17
17
|
// is compatible with the grpc package it is being compiled against.
|
|
18
|
-
// Requires gRPC-Go v1.
|
|
19
|
-
const _ = grpc.
|
|
18
|
+
// Requires gRPC-Go v1.62.0 or later.
|
|
19
|
+
const _ = grpc.SupportPackageIsVersion8
|
|
20
20
|
|
|
21
21
|
const (
|
|
22
22
|
CheckPermissionService_CheckPermission_FullMethodName = "/checkpermission.CheckPermissionService/CheckPermission"
|
|
@@ -42,8 +42,9 @@ func NewCheckPermissionServiceClient(cc grpc.ClientConnInterface) CheckPermissio
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
func (c *checkPermissionServiceClient) CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error) {
|
|
45
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
45
46
|
out := new(CheckPermissionResponse)
|
|
46
|
-
err := c.cc.Invoke(ctx, CheckPermissionService_CheckPermission_FullMethodName, in, out,
|
|
47
|
+
err := c.cc.Invoke(ctx, CheckPermissionService_CheckPermission_FullMethodName, in, out, cOpts...)
|
|
47
48
|
if err != nil {
|
|
48
49
|
return nil, err
|
|
49
50
|
}
|
|
@@ -51,8 +52,9 @@ func (c *checkPermissionServiceClient) CheckPermission(ctx context.Context, in *
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
func (c *checkPermissionServiceClient) CheckPermissionForMultipleSites(ctx context.Context, in *CheckPermissionForMultipleSitesRequest, opts ...grpc.CallOption) (*CheckPermissionForMultipleSitesResponse, error) {
|
|
55
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
54
56
|
out := new(CheckPermissionForMultipleSitesResponse)
|
|
55
|
-
err := c.cc.Invoke(ctx, CheckPermissionService_CheckPermissionForMultipleSites_FullMethodName, in, out,
|
|
57
|
+
err := c.cc.Invoke(ctx, CheckPermissionService_CheckPermissionForMultipleSites_FullMethodName, in, out, cOpts...)
|
|
56
58
|
if err != nil {
|
|
57
59
|
return nil, err
|
|
58
60
|
}
|
|
@@ -60,8 +62,9 @@ func (c *checkPermissionServiceClient) CheckPermissionForMultipleSites(ctx conte
|
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
func (c *checkPermissionServiceClient) GetUserPermissions(ctx context.Context, in *GetUserPermissionsRequest, opts ...grpc.CallOption) (*GetUserPermissionsResponse, error) {
|
|
65
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
63
66
|
out := new(GetUserPermissionsResponse)
|
|
64
|
-
err := c.cc.Invoke(ctx, CheckPermissionService_GetUserPermissions_FullMethodName, in, out,
|
|
67
|
+
err := c.cc.Invoke(ctx, CheckPermissionService_GetUserPermissions_FullMethodName, in, out, cOpts...)
|
|
65
68
|
if err != nil {
|
|
66
69
|
return nil, err
|
|
67
70
|
}
|
|
@@ -203,8 +206,9 @@ func NewSitesLimitsServiceClient(cc grpc.ClientConnInterface) SitesLimitsService
|
|
|
203
206
|
}
|
|
204
207
|
|
|
205
208
|
func (c *sitesLimitsServiceClient) GetSitesLimits(ctx context.Context, in *GetSitesLimitsRequest, opts ...grpc.CallOption) (*GetSitesLimitsResponse, error) {
|
|
209
|
+
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
206
210
|
out := new(GetSitesLimitsResponse)
|
|
207
|
-
err := c.cc.Invoke(ctx, SitesLimitsService_GetSitesLimits_FullMethodName, in, out,
|
|
211
|
+
err := c.cc.Invoke(ctx, SitesLimitsService_GetSitesLimits_FullMethodName, in, out, cOpts...)
|
|
208
212
|
if err != nil {
|
|
209
213
|
return nil, err
|
|
210
214
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/permissions-grpc",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/Lansweeper/lansweeperapis.git"
|
|
7
|
+
},
|
|
4
8
|
"description": "Permissions grpc",
|
|
5
9
|
"main": "gen-proto/index.js",
|
|
6
10
|
"types": "gen-proto/index.d.ts",
|
|
@@ -18,5 +22,6 @@
|
|
|
18
22
|
"scripts": {
|
|
19
23
|
"prepublishOnly": "cp -r ../../shared/limits ./proto"
|
|
20
24
|
},
|
|
21
|
-
"
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
}
|
|
22
27
|
}
|
|
@@ -48,10 +48,15 @@ message Scopes {
|
|
|
48
48
|
int32 create_max = 1;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
message Attachments {
|
|
52
|
+
int32 max_bytes_per_asset = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
message SiteLimits {
|
|
52
56
|
reserved 2;
|
|
53
57
|
SiteLimitsTiers tier = 1;
|
|
54
58
|
optional RiskInsights risk_insights = 3;
|
|
55
59
|
optional Assets assets = 4;
|
|
56
60
|
Scopes scopes = 5;
|
|
61
|
+
Attachments attachments = 6;
|
|
57
62
|
}
|
package/proto/permissions.proto
CHANGED