@conduitplatform/grpc-sdk 0.16.0-alpha.9 → 0.16.0-rc.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/dist/classes/ConduitAuthorizedResource.js +5 -6
- package/dist/classes/ConduitAuthorizedResource.js.map +1 -1
- package/dist/classes/ConduitModule.d.ts +1 -2
- package/dist/classes/ConduitModule.js +69 -163
- package/dist/classes/ConduitModule.js.map +1 -1
- package/dist/classes/ConduitSchema.js +3 -4
- package/dist/classes/ConduitSchema.js.map +1 -1
- package/dist/classes/Error.js +17 -40
- package/dist/classes/Error.js.map +1 -1
- package/dist/classes/HealthCheck.js +27 -96
- package/dist/classes/HealthCheck.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +320 -464
- package/dist/index.js.map +1 -1
- package/dist/interceptors/grpcSignedToken.d.ts +1 -1
- package/dist/interceptors/grpcSignedToken.js +7 -79
- package/dist/interceptors/grpcSignedToken.js.map +1 -1
- package/dist/interceptors/moduleName.d.ts +1 -1
- package/dist/interceptors/moduleName.js +7 -79
- package/dist/interceptors/moduleName.js.map +1 -1
- package/dist/interfaces/ConduitRouteReturn.js +9 -18
- package/dist/interfaces/ConduitRouteReturn.js.map +1 -1
- package/dist/interfaces/GrpcCallback.d.ts +1 -1
- package/dist/interfaces/Indexable.d.ts +7 -7
- package/dist/interfaces/Model.d.ts +19 -16
- package/dist/interfaces/Params.d.ts +3 -3
- package/dist/interfaces/RawQuery.d.ts +2 -2
- package/dist/interfaces/Route.d.ts +12 -9
- package/dist/interfaces/Route.js.map +1 -1
- package/dist/interfaces/Socket.d.ts +1 -1
- package/dist/interfaces/UntypedArray.d.ts +1 -1
- package/dist/interfaces/types.d.ts +6 -6
- package/dist/module.proto +58 -0
- package/dist/modules/admin/index.d.ts +2 -3
- package/dist/modules/admin/index.js +13 -39
- package/dist/modules/admin/index.js.map +1 -1
- package/dist/modules/authentication/index.d.ts +6 -2
- package/dist/modules/authentication/index.js +33 -40
- package/dist/modules/authentication/index.js.map +1 -1
- package/dist/modules/authorization/index.d.ts +4 -1
- package/dist/modules/authorization/index.js +38 -47
- package/dist/modules/authorization/index.js.map +1 -1
- package/dist/modules/chat/index.js +16 -34
- package/dist/modules/chat/index.js.map +1 -1
- package/dist/modules/config/index.d.ts +12 -3
- package/dist/modules/config/index.js +85 -177
- package/dist/modules/config/index.js.map +1 -1
- package/dist/modules/core/index.js +8 -26
- package/dist/modules/core/index.js.map +1 -1
- package/dist/modules/database/index.d.ts +19 -10
- package/dist/modules/database/index.js +184 -125
- package/dist/modules/database/index.js.map +1 -1
- package/dist/modules/email/index.js +15 -33
- package/dist/modules/email/index.js.map +1 -1
- package/dist/modules/pushNotifications/index.d.ts +4 -4
- package/dist/modules/pushNotifications/index.js +38 -60
- package/dist/modules/pushNotifications/index.js.map +1 -1
- package/dist/modules/router/index.d.ts +2 -3
- package/dist/modules/router/index.js +15 -41
- package/dist/modules/router/index.js.map +1 -1
- package/dist/modules/sms/index.js +17 -35
- package/dist/modules/sms/index.js.map +1 -1
- package/dist/modules/storage/index.d.ts +7 -7
- package/dist/modules/storage/index.js +64 -55
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/protoUtils/authentication.d.ts +200 -4
- package/dist/protoUtils/authentication.js +789 -194
- package/dist/protoUtils/authentication.js.map +1 -1
- package/dist/protoUtils/authorization.d.ts +185 -15
- package/dist/protoUtils/authorization.js +965 -448
- package/dist/protoUtils/authorization.js.map +1 -1
- package/dist/protoUtils/chat.d.ts +18 -7
- package/dist/protoUtils/chat.js +210 -227
- package/dist/protoUtils/chat.js.map +1 -1
- package/dist/protoUtils/core.d.ts +55 -50
- package/dist/protoUtils/core.js +1018 -902
- package/dist/protoUtils/core.js.map +1 -1
- package/dist/protoUtils/database.d.ts +262 -16
- package/dist/protoUtils/database.js +1489 -832
- package/dist/protoUtils/database.js.map +1 -1
- package/dist/protoUtils/email.d.ts +13 -4
- package/dist/protoUtils/email.js +242 -253
- package/dist/protoUtils/email.js.map +1 -1
- package/dist/protoUtils/google/protobuf/empty.d.ts +4 -3
- package/dist/protoUtils/google/protobuf/empty.js +21 -38
- package/dist/protoUtils/google/protobuf/empty.js.map +1 -1
- package/dist/protoUtils/grpc_health_check.d.ts +10 -4
- package/dist/protoUtils/grpc_health_check.js +72 -83
- package/dist/protoUtils/grpc_health_check.js.map +1 -1
- package/dist/protoUtils/module.d.ts +202 -4
- package/dist/protoUtils/module.js +810 -72
- package/dist/protoUtils/module.js.map +1 -1
- package/dist/protoUtils/push-notifications.d.ts +26 -6
- package/dist/protoUtils/push-notifications.js +381 -317
- package/dist/protoUtils/push-notifications.js.map +1 -1
- package/dist/protoUtils/router.d.ts +18 -48
- package/dist/protoUtils/router.js +502 -560
- package/dist/protoUtils/router.js.map +1 -1
- package/dist/protoUtils/sms.d.ts +16 -4
- package/dist/protoUtils/sms.js +199 -175
- package/dist/protoUtils/sms.js.map +1 -1
- package/dist/protoUtils/storage.d.ts +37 -4
- package/dist/protoUtils/storage.js +639 -318
- package/dist/protoUtils/storage.js.map +1 -1
- package/dist/types/db.d.ts +13 -11
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +6 -24
- package/dist/types/index.js.map +1 -1
- package/dist/utilities/EventBus.d.ts +3 -1
- package/dist/utilities/EventBus.js +38 -17
- package/dist/utilities/EventBus.js.map +1 -1
- package/dist/utilities/RedisManager.js +11 -21
- package/dist/utilities/RedisManager.js.map +1 -1
- package/dist/utilities/StateManager.d.ts +9 -0
- package/dist/utilities/StateManager.js +58 -15
- package/dist/utilities/StateManager.js.map +1 -1
- package/dist/utilities/env.js +4 -4
- package/dist/utilities/env.js.map +1 -1
- package/dist/utilities/sleep.js +1 -1
- package/dist/utilities/sleep.js.map +1 -1
- package/package.json +26 -19
|
@@ -1,349 +1,502 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __values = (this && this.__values) || function(o) {
|
|
26
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
27
|
-
if (m) return m.call(o);
|
|
28
|
-
if (o && typeof o.length === "number") return {
|
|
29
|
-
next: function () {
|
|
30
|
-
if (o && i >= o.length) o = void 0;
|
|
31
|
-
return { value: o && o[i++], done: !o };
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
35
4
|
};
|
|
36
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.AuthorizationDefinition = exports.Decision = exports.PermissionRequest = exports.PermissionCheck = exports.FindRelationResponse = exports.FindRelationRequest = exports.DeleteResourceRequest = exports.DeleteAllRelationsRequest = exports.Relation = exports.Resource_Permission = exports.Resource_Relation = exports.Resource = void 0;
|
|
6
|
+
exports.AuthorizationDefinition = exports.Decision = exports.PermissionRequest = exports.PermissionCheck = exports.ResourceAccessListRequest = exports.AllowedResourcesResponse = exports.AllowedResourcesRequest = exports.FindRelationResponse = exports.FindRelationRequest = exports.DeleteResourceRequest = exports.DeleteAllRelationsRequest = exports.CreateRelationsRequest = exports.Relation = exports.ResourceModificationAcknowledgement = exports.Resource_Permission = exports.Resource_Relation = exports.Resource = exports.resourceModificationAcknowledgement_StatusToJSON = exports.resourceModificationAcknowledgement_StatusFromJSON = exports.ResourceModificationAcknowledgement_Status = void 0;
|
|
38
7
|
/* eslint-disable */
|
|
39
|
-
|
|
40
|
-
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const empty_1 = require("./google/protobuf/empty");
|
|
10
|
+
var ResourceModificationAcknowledgement_Status;
|
|
11
|
+
(function (ResourceModificationAcknowledgement_Status) {
|
|
12
|
+
ResourceModificationAcknowledgement_Status[ResourceModificationAcknowledgement_Status["PROCESSED"] = 0] = "PROCESSED";
|
|
13
|
+
ResourceModificationAcknowledgement_Status[ResourceModificationAcknowledgement_Status["ACKNOWLEDGED"] = 1] = "ACKNOWLEDGED";
|
|
14
|
+
ResourceModificationAcknowledgement_Status[ResourceModificationAcknowledgement_Status["IGNORED"] = 2] = "IGNORED";
|
|
15
|
+
ResourceModificationAcknowledgement_Status[ResourceModificationAcknowledgement_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
16
|
+
})(ResourceModificationAcknowledgement_Status = exports.ResourceModificationAcknowledgement_Status || (exports.ResourceModificationAcknowledgement_Status = {}));
|
|
17
|
+
function resourceModificationAcknowledgement_StatusFromJSON(object) {
|
|
18
|
+
switch (object) {
|
|
19
|
+
case 0:
|
|
20
|
+
case "PROCESSED":
|
|
21
|
+
return ResourceModificationAcknowledgement_Status.PROCESSED;
|
|
22
|
+
case 1:
|
|
23
|
+
case "ACKNOWLEDGED":
|
|
24
|
+
return ResourceModificationAcknowledgement_Status.ACKNOWLEDGED;
|
|
25
|
+
case 2:
|
|
26
|
+
case "IGNORED":
|
|
27
|
+
return ResourceModificationAcknowledgement_Status.IGNORED;
|
|
28
|
+
case -1:
|
|
29
|
+
case "UNRECOGNIZED":
|
|
30
|
+
default:
|
|
31
|
+
return ResourceModificationAcknowledgement_Status.UNRECOGNIZED;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.resourceModificationAcknowledgement_StatusFromJSON = resourceModificationAcknowledgement_StatusFromJSON;
|
|
35
|
+
function resourceModificationAcknowledgement_StatusToJSON(object) {
|
|
36
|
+
switch (object) {
|
|
37
|
+
case ResourceModificationAcknowledgement_Status.PROCESSED:
|
|
38
|
+
return "PROCESSED";
|
|
39
|
+
case ResourceModificationAcknowledgement_Status.ACKNOWLEDGED:
|
|
40
|
+
return "ACKNOWLEDGED";
|
|
41
|
+
case ResourceModificationAcknowledgement_Status.IGNORED:
|
|
42
|
+
return "IGNORED";
|
|
43
|
+
case ResourceModificationAcknowledgement_Status.UNRECOGNIZED:
|
|
44
|
+
default:
|
|
45
|
+
return "UNRECOGNIZED";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.resourceModificationAcknowledgement_StatusToJSON = resourceModificationAcknowledgement_StatusToJSON;
|
|
41
49
|
function createBaseResource() {
|
|
42
|
-
return { name:
|
|
50
|
+
return { name: "", relations: [], permissions: [], version: undefined };
|
|
43
51
|
}
|
|
44
52
|
exports.Resource = {
|
|
45
|
-
encode
|
|
46
|
-
|
|
47
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
48
|
-
if (message.name !== '') {
|
|
53
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
54
|
+
if (message.name !== "") {
|
|
49
55
|
writer.uint32(10).string(message.name);
|
|
50
56
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var v = _d.value;
|
|
54
|
-
exports.Resource_Relation.encode(v, writer.uint32(18).fork()).ldelim();
|
|
55
|
-
}
|
|
57
|
+
for (const v of message.relations) {
|
|
58
|
+
exports.Resource_Relation.encode(v, writer.uint32(18).fork()).ldelim();
|
|
56
59
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
try {
|
|
60
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
61
|
-
}
|
|
62
|
-
finally { if (e_1) throw e_1.error; }
|
|
63
|
-
}
|
|
64
|
-
try {
|
|
65
|
-
for (var _e = __values(message.permissions), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
66
|
-
var v = _f.value;
|
|
67
|
-
exports.Resource_Permission.encode(v, writer.uint32(26).fork()).ldelim();
|
|
68
|
-
}
|
|
60
|
+
for (const v of message.permissions) {
|
|
61
|
+
exports.Resource_Permission.encode(v, writer.uint32(26).fork()).ldelim();
|
|
69
62
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
try {
|
|
73
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
74
|
-
}
|
|
75
|
-
finally { if (e_2) throw e_2.error; }
|
|
63
|
+
if (message.version !== undefined) {
|
|
64
|
+
writer.uint32(32).uint32(message.version);
|
|
76
65
|
}
|
|
77
66
|
return writer;
|
|
78
67
|
},
|
|
79
|
-
decode
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBaseResource();
|
|
83
72
|
while (reader.pos < end) {
|
|
84
|
-
|
|
73
|
+
const tag = reader.uint32();
|
|
85
74
|
switch (tag >>> 3) {
|
|
86
75
|
case 1:
|
|
76
|
+
if (tag !== 10) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
87
79
|
message.name = reader.string();
|
|
88
|
-
|
|
80
|
+
continue;
|
|
89
81
|
case 2:
|
|
82
|
+
if (tag !== 18) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
90
85
|
message.relations.push(exports.Resource_Relation.decode(reader, reader.uint32()));
|
|
91
|
-
|
|
86
|
+
continue;
|
|
92
87
|
case 3:
|
|
88
|
+
if (tag !== 26) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
93
91
|
message.permissions.push(exports.Resource_Permission.decode(reader, reader.uint32()));
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
continue;
|
|
93
|
+
case 4:
|
|
94
|
+
if (tag !== 32) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.version = reader.uint32();
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
101
|
+
break;
|
|
98
102
|
}
|
|
103
|
+
reader.skipType(tag & 7);
|
|
99
104
|
}
|
|
100
105
|
return message;
|
|
101
106
|
},
|
|
102
|
-
fromJSON
|
|
107
|
+
fromJSON(object) {
|
|
103
108
|
return {
|
|
104
|
-
name: isSet(object.name) ? String(object.name) :
|
|
105
|
-
relations: Array.isArray(object === null || object === void 0 ? void 0 : object.relations)
|
|
106
|
-
? object.relations.map(
|
|
109
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
110
|
+
relations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.relations)
|
|
111
|
+
? object.relations.map((e) => exports.Resource_Relation.fromJSON(e))
|
|
107
112
|
: [],
|
|
108
|
-
permissions: Array.isArray(object === null || object === void 0 ? void 0 : object.permissions)
|
|
109
|
-
? object.permissions.map(
|
|
113
|
+
permissions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.permissions)
|
|
114
|
+
? object.permissions.map((e) => exports.Resource_Permission.fromJSON(e))
|
|
110
115
|
: [],
|
|
116
|
+
version: isSet(object.version) ? globalThis.Number(object.version) : undefined,
|
|
111
117
|
};
|
|
112
118
|
},
|
|
113
|
-
toJSON
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
if (message.
|
|
117
|
-
obj.
|
|
118
|
-
return e ? exports.Resource_Relation.toJSON(e) : undefined;
|
|
119
|
-
});
|
|
119
|
+
toJSON(message) {
|
|
120
|
+
var _a, _b;
|
|
121
|
+
const obj = {};
|
|
122
|
+
if (message.name !== "") {
|
|
123
|
+
obj.name = message.name;
|
|
120
124
|
}
|
|
121
|
-
|
|
122
|
-
obj.relations =
|
|
125
|
+
if ((_a = message.relations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
126
|
+
obj.relations = message.relations.map((e) => exports.Resource_Relation.toJSON(e));
|
|
123
127
|
}
|
|
124
|
-
if (message.permissions) {
|
|
125
|
-
obj.permissions = message.permissions.map(
|
|
126
|
-
return e ? exports.Resource_Permission.toJSON(e) : undefined;
|
|
127
|
-
});
|
|
128
|
+
if ((_b = message.permissions) === null || _b === void 0 ? void 0 : _b.length) {
|
|
129
|
+
obj.permissions = message.permissions.map((e) => exports.Resource_Permission.toJSON(e));
|
|
128
130
|
}
|
|
129
|
-
|
|
130
|
-
obj.
|
|
131
|
+
if (message.version !== undefined) {
|
|
132
|
+
obj.version = Math.round(message.version);
|
|
131
133
|
}
|
|
132
134
|
return obj;
|
|
133
135
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
message.
|
|
141
|
-
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.Resource.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
var _a, _b, _c, _d;
|
|
141
|
+
const message = createBaseResource();
|
|
142
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
143
|
+
message.relations = ((_b = object.relations) === null || _b === void 0 ? void 0 : _b.map((e) => exports.Resource_Relation.fromPartial(e))) || [];
|
|
144
|
+
message.permissions = ((_c = object.permissions) === null || _c === void 0 ? void 0 : _c.map((e) => exports.Resource_Permission.fromPartial(e))) || [];
|
|
145
|
+
message.version = (_d = object.version) !== null && _d !== void 0 ? _d : undefined;
|
|
142
146
|
return message;
|
|
143
147
|
},
|
|
144
148
|
};
|
|
145
149
|
function createBaseResource_Relation() {
|
|
146
|
-
return { name:
|
|
150
|
+
return { name: "", resourceType: [] };
|
|
147
151
|
}
|
|
148
152
|
exports.Resource_Relation = {
|
|
149
|
-
encode
|
|
150
|
-
|
|
151
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
152
|
-
if (message.name !== '') {
|
|
153
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
154
|
+
if (message.name !== "") {
|
|
153
155
|
writer.uint32(10).string(message.name);
|
|
154
156
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
var v = _c.value;
|
|
158
|
-
writer.uint32(18).string(v);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
162
|
-
finally {
|
|
163
|
-
try {
|
|
164
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
165
|
-
}
|
|
166
|
-
finally { if (e_3) throw e_3.error; }
|
|
157
|
+
for (const v of message.resourceType) {
|
|
158
|
+
writer.uint32(18).string(v);
|
|
167
159
|
}
|
|
168
160
|
return writer;
|
|
169
161
|
},
|
|
170
|
-
decode
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
162
|
+
decode(input, length) {
|
|
163
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
164
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
165
|
+
const message = createBaseResource_Relation();
|
|
174
166
|
while (reader.pos < end) {
|
|
175
|
-
|
|
167
|
+
const tag = reader.uint32();
|
|
176
168
|
switch (tag >>> 3) {
|
|
177
169
|
case 1:
|
|
170
|
+
if (tag !== 10) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
178
173
|
message.name = reader.string();
|
|
179
|
-
|
|
174
|
+
continue;
|
|
180
175
|
case 2:
|
|
176
|
+
if (tag !== 18) {
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
181
179
|
message.resourceType.push(reader.string());
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
183
|
+
break;
|
|
186
184
|
}
|
|
185
|
+
reader.skipType(tag & 7);
|
|
187
186
|
}
|
|
188
187
|
return message;
|
|
189
188
|
},
|
|
190
|
-
fromJSON
|
|
189
|
+
fromJSON(object) {
|
|
191
190
|
return {
|
|
192
|
-
name: isSet(object.name) ? String(object.name) :
|
|
193
|
-
resourceType: Array.isArray(object === null || object === void 0 ? void 0 : object.resourceType)
|
|
194
|
-
? object.resourceType.map(
|
|
191
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
192
|
+
resourceType: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.resourceType)
|
|
193
|
+
? object.resourceType.map((e) => globalThis.String(e))
|
|
195
194
|
: [],
|
|
196
195
|
};
|
|
197
196
|
},
|
|
198
|
-
toJSON
|
|
199
|
-
var
|
|
200
|
-
|
|
201
|
-
if (message.
|
|
202
|
-
obj.
|
|
197
|
+
toJSON(message) {
|
|
198
|
+
var _a;
|
|
199
|
+
const obj = {};
|
|
200
|
+
if (message.name !== "") {
|
|
201
|
+
obj.name = message.name;
|
|
203
202
|
}
|
|
204
|
-
|
|
205
|
-
obj.resourceType =
|
|
203
|
+
if ((_a = message.resourceType) === null || _a === void 0 ? void 0 : _a.length) {
|
|
204
|
+
obj.resourceType = message.resourceType;
|
|
206
205
|
}
|
|
207
206
|
return obj;
|
|
208
207
|
},
|
|
209
|
-
|
|
208
|
+
create(base) {
|
|
209
|
+
return exports.Resource_Relation.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
210
|
+
},
|
|
211
|
+
fromPartial(object) {
|
|
210
212
|
var _a, _b;
|
|
211
|
-
|
|
212
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a :
|
|
213
|
-
message.resourceType = ((_b = object.resourceType) === null || _b === void 0 ? void 0 : _b.map(
|
|
213
|
+
const message = createBaseResource_Relation();
|
|
214
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
215
|
+
message.resourceType = ((_b = object.resourceType) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
214
216
|
return message;
|
|
215
217
|
},
|
|
216
218
|
};
|
|
217
219
|
function createBaseResource_Permission() {
|
|
218
|
-
return { name:
|
|
220
|
+
return { name: "", roles: [] };
|
|
219
221
|
}
|
|
220
222
|
exports.Resource_Permission = {
|
|
221
|
-
encode
|
|
222
|
-
|
|
223
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
224
|
-
if (message.name !== '') {
|
|
223
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
224
|
+
if (message.name !== "") {
|
|
225
225
|
writer.uint32(10).string(message.name);
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
var v = _c.value;
|
|
230
|
-
writer.uint32(18).string(v);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
234
|
-
finally {
|
|
235
|
-
try {
|
|
236
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
237
|
-
}
|
|
238
|
-
finally { if (e_4) throw e_4.error; }
|
|
227
|
+
for (const v of message.roles) {
|
|
228
|
+
writer.uint32(18).string(v);
|
|
239
229
|
}
|
|
240
230
|
return writer;
|
|
241
231
|
},
|
|
242
|
-
decode
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
232
|
+
decode(input, length) {
|
|
233
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
234
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
235
|
+
const message = createBaseResource_Permission();
|
|
246
236
|
while (reader.pos < end) {
|
|
247
|
-
|
|
237
|
+
const tag = reader.uint32();
|
|
248
238
|
switch (tag >>> 3) {
|
|
249
239
|
case 1:
|
|
240
|
+
if (tag !== 10) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
250
243
|
message.name = reader.string();
|
|
251
|
-
|
|
244
|
+
continue;
|
|
252
245
|
case 2:
|
|
246
|
+
if (tag !== 18) {
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
253
249
|
message.roles.push(reader.string());
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
250
|
+
continue;
|
|
251
|
+
}
|
|
252
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
253
|
+
break;
|
|
258
254
|
}
|
|
255
|
+
reader.skipType(tag & 7);
|
|
259
256
|
}
|
|
260
257
|
return message;
|
|
261
258
|
},
|
|
262
|
-
fromJSON
|
|
259
|
+
fromJSON(object) {
|
|
263
260
|
return {
|
|
264
|
-
name: isSet(object.name) ? String(object.name) :
|
|
265
|
-
roles: Array.isArray(object === null || object === void 0 ? void 0 : object.roles) ? object.roles.map(
|
|
261
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
262
|
+
roles: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.roles) ? object.roles.map((e) => globalThis.String(e)) : [],
|
|
266
263
|
};
|
|
267
264
|
},
|
|
268
|
-
toJSON
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
if (message.
|
|
272
|
-
obj.
|
|
265
|
+
toJSON(message) {
|
|
266
|
+
var _a;
|
|
267
|
+
const obj = {};
|
|
268
|
+
if (message.name !== "") {
|
|
269
|
+
obj.name = message.name;
|
|
273
270
|
}
|
|
274
|
-
|
|
275
|
-
obj.roles =
|
|
271
|
+
if ((_a = message.roles) === null || _a === void 0 ? void 0 : _a.length) {
|
|
272
|
+
obj.roles = message.roles;
|
|
276
273
|
}
|
|
277
274
|
return obj;
|
|
278
275
|
},
|
|
279
|
-
|
|
276
|
+
create(base) {
|
|
277
|
+
return exports.Resource_Permission.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
278
|
+
},
|
|
279
|
+
fromPartial(object) {
|
|
280
280
|
var _a, _b;
|
|
281
|
-
|
|
282
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a :
|
|
283
|
-
message.roles = ((_b = object.roles) === null || _b === void 0 ? void 0 : _b.map(
|
|
281
|
+
const message = createBaseResource_Permission();
|
|
282
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
283
|
+
message.roles = ((_b = object.roles) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
284
|
+
return message;
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
function createBaseResourceModificationAcknowledgement() {
|
|
288
|
+
return { status: 0 };
|
|
289
|
+
}
|
|
290
|
+
exports.ResourceModificationAcknowledgement = {
|
|
291
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
292
|
+
if (message.status !== 0) {
|
|
293
|
+
writer.uint32(8).int32(message.status);
|
|
294
|
+
}
|
|
295
|
+
return writer;
|
|
296
|
+
},
|
|
297
|
+
decode(input, length) {
|
|
298
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
299
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
300
|
+
const message = createBaseResourceModificationAcknowledgement();
|
|
301
|
+
while (reader.pos < end) {
|
|
302
|
+
const tag = reader.uint32();
|
|
303
|
+
switch (tag >>> 3) {
|
|
304
|
+
case 1:
|
|
305
|
+
if (tag !== 8) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.status = reader.int32();
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
reader.skipType(tag & 7);
|
|
315
|
+
}
|
|
316
|
+
return message;
|
|
317
|
+
},
|
|
318
|
+
fromJSON(object) {
|
|
319
|
+
return { status: isSet(object.status) ? resourceModificationAcknowledgement_StatusFromJSON(object.status) : 0 };
|
|
320
|
+
},
|
|
321
|
+
toJSON(message) {
|
|
322
|
+
const obj = {};
|
|
323
|
+
if (message.status !== 0) {
|
|
324
|
+
obj.status = resourceModificationAcknowledgement_StatusToJSON(message.status);
|
|
325
|
+
}
|
|
326
|
+
return obj;
|
|
327
|
+
},
|
|
328
|
+
create(base) {
|
|
329
|
+
return exports.ResourceModificationAcknowledgement.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
330
|
+
},
|
|
331
|
+
fromPartial(object) {
|
|
332
|
+
var _a;
|
|
333
|
+
const message = createBaseResourceModificationAcknowledgement();
|
|
334
|
+
message.status = (_a = object.status) !== null && _a !== void 0 ? _a : 0;
|
|
284
335
|
return message;
|
|
285
336
|
},
|
|
286
337
|
};
|
|
287
338
|
function createBaseRelation() {
|
|
288
|
-
return { subject:
|
|
339
|
+
return { subject: "", relation: "", resource: "" };
|
|
289
340
|
}
|
|
290
341
|
exports.Relation = {
|
|
291
|
-
encode
|
|
292
|
-
if (
|
|
293
|
-
if (message.subject !== '') {
|
|
342
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
343
|
+
if (message.subject !== "") {
|
|
294
344
|
writer.uint32(10).string(message.subject);
|
|
295
345
|
}
|
|
296
|
-
if (message.relation !==
|
|
346
|
+
if (message.relation !== "") {
|
|
297
347
|
writer.uint32(18).string(message.relation);
|
|
298
348
|
}
|
|
299
|
-
if (message.resource !==
|
|
349
|
+
if (message.resource !== "") {
|
|
300
350
|
writer.uint32(26).string(message.resource);
|
|
301
351
|
}
|
|
302
352
|
return writer;
|
|
303
353
|
},
|
|
304
|
-
decode
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
354
|
+
decode(input, length) {
|
|
355
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
356
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
357
|
+
const message = createBaseRelation();
|
|
308
358
|
while (reader.pos < end) {
|
|
309
|
-
|
|
359
|
+
const tag = reader.uint32();
|
|
310
360
|
switch (tag >>> 3) {
|
|
311
361
|
case 1:
|
|
362
|
+
if (tag !== 10) {
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
312
365
|
message.subject = reader.string();
|
|
313
|
-
|
|
366
|
+
continue;
|
|
314
367
|
case 2:
|
|
368
|
+
if (tag !== 18) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
315
371
|
message.relation = reader.string();
|
|
316
|
-
|
|
372
|
+
continue;
|
|
317
373
|
case 3:
|
|
374
|
+
if (tag !== 26) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
318
377
|
message.resource = reader.string();
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
reader.skipType(tag & 7);
|
|
384
|
+
}
|
|
385
|
+
return message;
|
|
386
|
+
},
|
|
387
|
+
fromJSON(object) {
|
|
388
|
+
return {
|
|
389
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
|
|
390
|
+
relation: isSet(object.relation) ? globalThis.String(object.relation) : "",
|
|
391
|
+
resource: isSet(object.resource) ? globalThis.String(object.resource) : "",
|
|
392
|
+
};
|
|
393
|
+
},
|
|
394
|
+
toJSON(message) {
|
|
395
|
+
const obj = {};
|
|
396
|
+
if (message.subject !== "") {
|
|
397
|
+
obj.subject = message.subject;
|
|
398
|
+
}
|
|
399
|
+
if (message.relation !== "") {
|
|
400
|
+
obj.relation = message.relation;
|
|
401
|
+
}
|
|
402
|
+
if (message.resource !== "") {
|
|
403
|
+
obj.resource = message.resource;
|
|
404
|
+
}
|
|
405
|
+
return obj;
|
|
406
|
+
},
|
|
407
|
+
create(base) {
|
|
408
|
+
return exports.Relation.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
409
|
+
},
|
|
410
|
+
fromPartial(object) {
|
|
411
|
+
var _a, _b, _c;
|
|
412
|
+
const message = createBaseRelation();
|
|
413
|
+
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : "";
|
|
414
|
+
message.relation = (_b = object.relation) !== null && _b !== void 0 ? _b : "";
|
|
415
|
+
message.resource = (_c = object.resource) !== null && _c !== void 0 ? _c : "";
|
|
416
|
+
return message;
|
|
417
|
+
},
|
|
418
|
+
};
|
|
419
|
+
function createBaseCreateRelationsRequest() {
|
|
420
|
+
return { subject: "", relation: "", resources: [] };
|
|
421
|
+
}
|
|
422
|
+
exports.CreateRelationsRequest = {
|
|
423
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
424
|
+
if (message.subject !== "") {
|
|
425
|
+
writer.uint32(10).string(message.subject);
|
|
426
|
+
}
|
|
427
|
+
if (message.relation !== "") {
|
|
428
|
+
writer.uint32(18).string(message.relation);
|
|
429
|
+
}
|
|
430
|
+
for (const v of message.resources) {
|
|
431
|
+
writer.uint32(26).string(v);
|
|
432
|
+
}
|
|
433
|
+
return writer;
|
|
434
|
+
},
|
|
435
|
+
decode(input, length) {
|
|
436
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
437
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
438
|
+
const message = createBaseCreateRelationsRequest();
|
|
439
|
+
while (reader.pos < end) {
|
|
440
|
+
const tag = reader.uint32();
|
|
441
|
+
switch (tag >>> 3) {
|
|
442
|
+
case 1:
|
|
443
|
+
if (tag !== 10) {
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
message.subject = reader.string();
|
|
447
|
+
continue;
|
|
448
|
+
case 2:
|
|
449
|
+
if (tag !== 18) {
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
message.relation = reader.string();
|
|
453
|
+
continue;
|
|
454
|
+
case 3:
|
|
455
|
+
if (tag !== 26) {
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
message.resources.push(reader.string());
|
|
459
|
+
continue;
|
|
323
460
|
}
|
|
461
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
reader.skipType(tag & 7);
|
|
324
465
|
}
|
|
325
466
|
return message;
|
|
326
467
|
},
|
|
327
|
-
fromJSON
|
|
468
|
+
fromJSON(object) {
|
|
328
469
|
return {
|
|
329
|
-
subject: isSet(object.subject) ? String(object.subject) :
|
|
330
|
-
relation: isSet(object.relation) ? String(object.relation) :
|
|
331
|
-
|
|
470
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
|
|
471
|
+
relation: isSet(object.relation) ? globalThis.String(object.relation) : "",
|
|
472
|
+
resources: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.resources)
|
|
473
|
+
? object.resources.map((e) => globalThis.String(e))
|
|
474
|
+
: [],
|
|
332
475
|
};
|
|
333
476
|
},
|
|
334
|
-
toJSON
|
|
335
|
-
var
|
|
336
|
-
|
|
337
|
-
message.
|
|
338
|
-
|
|
477
|
+
toJSON(message) {
|
|
478
|
+
var _a;
|
|
479
|
+
const obj = {};
|
|
480
|
+
if (message.subject !== "") {
|
|
481
|
+
obj.subject = message.subject;
|
|
482
|
+
}
|
|
483
|
+
if (message.relation !== "") {
|
|
484
|
+
obj.relation = message.relation;
|
|
485
|
+
}
|
|
486
|
+
if ((_a = message.resources) === null || _a === void 0 ? void 0 : _a.length) {
|
|
487
|
+
obj.resources = message.resources;
|
|
488
|
+
}
|
|
339
489
|
return obj;
|
|
340
490
|
},
|
|
341
|
-
|
|
491
|
+
create(base) {
|
|
492
|
+
return exports.CreateRelationsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
493
|
+
},
|
|
494
|
+
fromPartial(object) {
|
|
342
495
|
var _a, _b, _c;
|
|
343
|
-
|
|
344
|
-
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a :
|
|
345
|
-
message.relation = (_b = object.relation) !== null && _b !== void 0 ? _b :
|
|
346
|
-
message.
|
|
496
|
+
const message = createBaseCreateRelationsRequest();
|
|
497
|
+
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : "";
|
|
498
|
+
message.relation = (_b = object.relation) !== null && _b !== void 0 ? _b : "";
|
|
499
|
+
message.resources = ((_c = object.resources) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
347
500
|
return message;
|
|
348
501
|
},
|
|
349
502
|
};
|
|
@@ -351,8 +504,7 @@ function createBaseDeleteAllRelationsRequest() {
|
|
|
351
504
|
return { subject: undefined, resource: undefined };
|
|
352
505
|
}
|
|
353
506
|
exports.DeleteAllRelationsRequest = {
|
|
354
|
-
encode
|
|
355
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
507
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
356
508
|
if (message.subject !== undefined) {
|
|
357
509
|
writer.uint32(10).string(message.subject);
|
|
358
510
|
}
|
|
@@ -361,88 +513,108 @@ exports.DeleteAllRelationsRequest = {
|
|
|
361
513
|
}
|
|
362
514
|
return writer;
|
|
363
515
|
},
|
|
364
|
-
decode
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
516
|
+
decode(input, length) {
|
|
517
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
518
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
519
|
+
const message = createBaseDeleteAllRelationsRequest();
|
|
368
520
|
while (reader.pos < end) {
|
|
369
|
-
|
|
521
|
+
const tag = reader.uint32();
|
|
370
522
|
switch (tag >>> 3) {
|
|
371
523
|
case 1:
|
|
524
|
+
if (tag !== 10) {
|
|
525
|
+
break;
|
|
526
|
+
}
|
|
372
527
|
message.subject = reader.string();
|
|
373
|
-
|
|
528
|
+
continue;
|
|
374
529
|
case 2:
|
|
530
|
+
if (tag !== 18) {
|
|
531
|
+
break;
|
|
532
|
+
}
|
|
375
533
|
message.resource = reader.string();
|
|
376
|
-
|
|
377
|
-
default:
|
|
378
|
-
reader.skipType(tag & 7);
|
|
379
|
-
break;
|
|
534
|
+
continue;
|
|
380
535
|
}
|
|
536
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
reader.skipType(tag & 7);
|
|
381
540
|
}
|
|
382
541
|
return message;
|
|
383
542
|
},
|
|
384
|
-
fromJSON
|
|
543
|
+
fromJSON(object) {
|
|
385
544
|
return {
|
|
386
|
-
subject: isSet(object.subject) ? String(object.subject) : undefined,
|
|
387
|
-
resource: isSet(object.resource) ? String(object.resource) : undefined,
|
|
545
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : undefined,
|
|
546
|
+
resource: isSet(object.resource) ? globalThis.String(object.resource) : undefined,
|
|
388
547
|
};
|
|
389
548
|
},
|
|
390
|
-
toJSON
|
|
391
|
-
|
|
392
|
-
message.subject !== undefined
|
|
393
|
-
|
|
549
|
+
toJSON(message) {
|
|
550
|
+
const obj = {};
|
|
551
|
+
if (message.subject !== undefined) {
|
|
552
|
+
obj.subject = message.subject;
|
|
553
|
+
}
|
|
554
|
+
if (message.resource !== undefined) {
|
|
555
|
+
obj.resource = message.resource;
|
|
556
|
+
}
|
|
394
557
|
return obj;
|
|
395
558
|
},
|
|
396
|
-
|
|
559
|
+
create(base) {
|
|
560
|
+
return exports.DeleteAllRelationsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
561
|
+
},
|
|
562
|
+
fromPartial(object) {
|
|
397
563
|
var _a, _b;
|
|
398
|
-
|
|
564
|
+
const message = createBaseDeleteAllRelationsRequest();
|
|
399
565
|
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : undefined;
|
|
400
566
|
message.resource = (_b = object.resource) !== null && _b !== void 0 ? _b : undefined;
|
|
401
567
|
return message;
|
|
402
568
|
},
|
|
403
569
|
};
|
|
404
570
|
function createBaseDeleteResourceRequest() {
|
|
405
|
-
return { name:
|
|
571
|
+
return { name: "" };
|
|
406
572
|
}
|
|
407
573
|
exports.DeleteResourceRequest = {
|
|
408
|
-
encode
|
|
409
|
-
if (
|
|
410
|
-
if (message.name !== '') {
|
|
574
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
575
|
+
if (message.name !== "") {
|
|
411
576
|
writer.uint32(10).string(message.name);
|
|
412
577
|
}
|
|
413
578
|
return writer;
|
|
414
579
|
},
|
|
415
|
-
decode
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
580
|
+
decode(input, length) {
|
|
581
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
582
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
583
|
+
const message = createBaseDeleteResourceRequest();
|
|
419
584
|
while (reader.pos < end) {
|
|
420
|
-
|
|
585
|
+
const tag = reader.uint32();
|
|
421
586
|
switch (tag >>> 3) {
|
|
422
587
|
case 1:
|
|
588
|
+
if (tag !== 10) {
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
423
591
|
message.name = reader.string();
|
|
424
|
-
|
|
425
|
-
default:
|
|
426
|
-
reader.skipType(tag & 7);
|
|
427
|
-
break;
|
|
592
|
+
continue;
|
|
428
593
|
}
|
|
594
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
597
|
+
reader.skipType(tag & 7);
|
|
429
598
|
}
|
|
430
599
|
return message;
|
|
431
600
|
},
|
|
432
|
-
fromJSON
|
|
433
|
-
return {
|
|
434
|
-
name: isSet(object.name) ? String(object.name) : '',
|
|
435
|
-
};
|
|
601
|
+
fromJSON(object) {
|
|
602
|
+
return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
|
|
436
603
|
},
|
|
437
|
-
toJSON
|
|
438
|
-
|
|
439
|
-
message.name !==
|
|
604
|
+
toJSON(message) {
|
|
605
|
+
const obj = {};
|
|
606
|
+
if (message.name !== "") {
|
|
607
|
+
obj.name = message.name;
|
|
608
|
+
}
|
|
440
609
|
return obj;
|
|
441
610
|
},
|
|
442
|
-
|
|
611
|
+
create(base) {
|
|
612
|
+
return exports.DeleteResourceRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
613
|
+
},
|
|
614
|
+
fromPartial(object) {
|
|
443
615
|
var _a;
|
|
444
|
-
|
|
445
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a :
|
|
616
|
+
const message = createBaseDeleteResourceRequest();
|
|
617
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
446
618
|
return message;
|
|
447
619
|
},
|
|
448
620
|
};
|
|
@@ -458,8 +630,7 @@ function createBaseFindRelationRequest() {
|
|
|
458
630
|
};
|
|
459
631
|
}
|
|
460
632
|
exports.FindRelationRequest = {
|
|
461
|
-
encode
|
|
462
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
633
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
463
634
|
if (message.subject !== undefined) {
|
|
464
635
|
writer.uint32(10).string(message.subject);
|
|
465
636
|
}
|
|
@@ -483,66 +654,105 @@ exports.FindRelationRequest = {
|
|
|
483
654
|
}
|
|
484
655
|
return writer;
|
|
485
656
|
},
|
|
486
|
-
decode
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
657
|
+
decode(input, length) {
|
|
658
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
659
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
660
|
+
const message = createBaseFindRelationRequest();
|
|
490
661
|
while (reader.pos < end) {
|
|
491
|
-
|
|
662
|
+
const tag = reader.uint32();
|
|
492
663
|
switch (tag >>> 3) {
|
|
493
664
|
case 1:
|
|
665
|
+
if (tag !== 10) {
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
494
668
|
message.subject = reader.string();
|
|
495
|
-
|
|
669
|
+
continue;
|
|
496
670
|
case 2:
|
|
671
|
+
if (tag !== 18) {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
497
674
|
message.relation = reader.string();
|
|
498
|
-
|
|
675
|
+
continue;
|
|
499
676
|
case 3:
|
|
677
|
+
if (tag !== 26) {
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
500
680
|
message.resource = reader.string();
|
|
501
|
-
|
|
681
|
+
continue;
|
|
502
682
|
case 4:
|
|
683
|
+
if (tag !== 34) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
503
686
|
message.subjectType = reader.string();
|
|
504
|
-
|
|
687
|
+
continue;
|
|
505
688
|
case 5:
|
|
689
|
+
if (tag !== 42) {
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
506
692
|
message.resourceType = reader.string();
|
|
507
|
-
|
|
693
|
+
continue;
|
|
508
694
|
case 6:
|
|
695
|
+
if (tag !== 48) {
|
|
696
|
+
break;
|
|
697
|
+
}
|
|
509
698
|
message.skip = reader.int32();
|
|
510
|
-
|
|
699
|
+
continue;
|
|
511
700
|
case 7:
|
|
701
|
+
if (tag !== 56) {
|
|
702
|
+
break;
|
|
703
|
+
}
|
|
512
704
|
message.limit = reader.int32();
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
705
|
+
continue;
|
|
706
|
+
}
|
|
707
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
708
|
+
break;
|
|
517
709
|
}
|
|
710
|
+
reader.skipType(tag & 7);
|
|
518
711
|
}
|
|
519
712
|
return message;
|
|
520
713
|
},
|
|
521
|
-
fromJSON
|
|
714
|
+
fromJSON(object) {
|
|
522
715
|
return {
|
|
523
|
-
subject: isSet(object.subject) ? String(object.subject) : undefined,
|
|
524
|
-
relation: isSet(object.relation) ? String(object.relation) : undefined,
|
|
525
|
-
resource: isSet(object.resource) ? String(object.resource) : undefined,
|
|
526
|
-
subjectType: isSet(object.subjectType) ? String(object.subjectType) : undefined,
|
|
527
|
-
resourceType: isSet(object.resourceType) ? String(object.resourceType) : undefined,
|
|
528
|
-
skip: isSet(object.skip) ? Number(object.skip) : undefined,
|
|
529
|
-
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
716
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : undefined,
|
|
717
|
+
relation: isSet(object.relation) ? globalThis.String(object.relation) : undefined,
|
|
718
|
+
resource: isSet(object.resource) ? globalThis.String(object.resource) : undefined,
|
|
719
|
+
subjectType: isSet(object.subjectType) ? globalThis.String(object.subjectType) : undefined,
|
|
720
|
+
resourceType: isSet(object.resourceType) ? globalThis.String(object.resourceType) : undefined,
|
|
721
|
+
skip: isSet(object.skip) ? globalThis.Number(object.skip) : undefined,
|
|
722
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
|
|
530
723
|
};
|
|
531
724
|
},
|
|
532
|
-
toJSON
|
|
533
|
-
|
|
534
|
-
message.subject !== undefined
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
message.
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
message.
|
|
725
|
+
toJSON(message) {
|
|
726
|
+
const obj = {};
|
|
727
|
+
if (message.subject !== undefined) {
|
|
728
|
+
obj.subject = message.subject;
|
|
729
|
+
}
|
|
730
|
+
if (message.relation !== undefined) {
|
|
731
|
+
obj.relation = message.relation;
|
|
732
|
+
}
|
|
733
|
+
if (message.resource !== undefined) {
|
|
734
|
+
obj.resource = message.resource;
|
|
735
|
+
}
|
|
736
|
+
if (message.subjectType !== undefined) {
|
|
737
|
+
obj.subjectType = message.subjectType;
|
|
738
|
+
}
|
|
739
|
+
if (message.resourceType !== undefined) {
|
|
740
|
+
obj.resourceType = message.resourceType;
|
|
741
|
+
}
|
|
742
|
+
if (message.skip !== undefined) {
|
|
743
|
+
obj.skip = Math.round(message.skip);
|
|
744
|
+
}
|
|
745
|
+
if (message.limit !== undefined) {
|
|
746
|
+
obj.limit = Math.round(message.limit);
|
|
747
|
+
}
|
|
541
748
|
return obj;
|
|
542
749
|
},
|
|
543
|
-
|
|
750
|
+
create(base) {
|
|
751
|
+
return exports.FindRelationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
752
|
+
},
|
|
753
|
+
fromPartial(object) {
|
|
544
754
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
545
|
-
|
|
755
|
+
const message = createBaseFindRelationRequest();
|
|
546
756
|
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : undefined;
|
|
547
757
|
message.relation = (_b = object.relation) !== null && _b !== void 0 ? _b : undefined;
|
|
548
758
|
message.resource = (_c = object.resource) !== null && _c !== void 0 ? _c : undefined;
|
|
@@ -557,215 +767,492 @@ function createBaseFindRelationResponse() {
|
|
|
557
767
|
return { relations: [], count: 0 };
|
|
558
768
|
}
|
|
559
769
|
exports.FindRelationResponse = {
|
|
560
|
-
encode
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
770
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
771
|
+
for (const v of message.relations) {
|
|
772
|
+
exports.Relation.encode(v, writer.uint32(10).fork()).ldelim();
|
|
773
|
+
}
|
|
774
|
+
if (message.count !== 0) {
|
|
775
|
+
writer.uint32(16).int32(message.count);
|
|
776
|
+
}
|
|
777
|
+
return writer;
|
|
778
|
+
},
|
|
779
|
+
decode(input, length) {
|
|
780
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
781
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
782
|
+
const message = createBaseFindRelationResponse();
|
|
783
|
+
while (reader.pos < end) {
|
|
784
|
+
const tag = reader.uint32();
|
|
785
|
+
switch (tag >>> 3) {
|
|
786
|
+
case 1:
|
|
787
|
+
if (tag !== 10) {
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
message.relations.push(exports.Relation.decode(reader, reader.uint32()));
|
|
791
|
+
continue;
|
|
792
|
+
case 2:
|
|
793
|
+
if (tag !== 16) {
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
message.count = reader.int32();
|
|
797
|
+
continue;
|
|
567
798
|
}
|
|
799
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
800
|
+
break;
|
|
801
|
+
}
|
|
802
|
+
reader.skipType(tag & 7);
|
|
803
|
+
}
|
|
804
|
+
return message;
|
|
805
|
+
},
|
|
806
|
+
fromJSON(object) {
|
|
807
|
+
return {
|
|
808
|
+
relations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.relations)
|
|
809
|
+
? object.relations.map((e) => exports.Relation.fromJSON(e))
|
|
810
|
+
: [],
|
|
811
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
812
|
+
};
|
|
813
|
+
},
|
|
814
|
+
toJSON(message) {
|
|
815
|
+
var _a;
|
|
816
|
+
const obj = {};
|
|
817
|
+
if ((_a = message.relations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
818
|
+
obj.relations = message.relations.map((e) => exports.Relation.toJSON(e));
|
|
819
|
+
}
|
|
820
|
+
if (message.count !== 0) {
|
|
821
|
+
obj.count = Math.round(message.count);
|
|
822
|
+
}
|
|
823
|
+
return obj;
|
|
824
|
+
},
|
|
825
|
+
create(base) {
|
|
826
|
+
return exports.FindRelationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
827
|
+
},
|
|
828
|
+
fromPartial(object) {
|
|
829
|
+
var _a, _b;
|
|
830
|
+
const message = createBaseFindRelationResponse();
|
|
831
|
+
message.relations = ((_a = object.relations) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Relation.fromPartial(e))) || [];
|
|
832
|
+
message.count = (_b = object.count) !== null && _b !== void 0 ? _b : 0;
|
|
833
|
+
return message;
|
|
834
|
+
},
|
|
835
|
+
};
|
|
836
|
+
function createBaseAllowedResourcesRequest() {
|
|
837
|
+
return { subject: "", action: "", resourceType: "", skip: 0, limit: 0 };
|
|
838
|
+
}
|
|
839
|
+
exports.AllowedResourcesRequest = {
|
|
840
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
841
|
+
if (message.subject !== "") {
|
|
842
|
+
writer.uint32(10).string(message.subject);
|
|
843
|
+
}
|
|
844
|
+
if (message.action !== "") {
|
|
845
|
+
writer.uint32(18).string(message.action);
|
|
846
|
+
}
|
|
847
|
+
if (message.resourceType !== "") {
|
|
848
|
+
writer.uint32(42).string(message.resourceType);
|
|
849
|
+
}
|
|
850
|
+
if (message.skip !== 0) {
|
|
851
|
+
writer.uint32(48).int32(message.skip);
|
|
852
|
+
}
|
|
853
|
+
if (message.limit !== 0) {
|
|
854
|
+
writer.uint32(56).int32(message.limit);
|
|
568
855
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
856
|
+
return writer;
|
|
857
|
+
},
|
|
858
|
+
decode(input, length) {
|
|
859
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
860
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
861
|
+
const message = createBaseAllowedResourcesRequest();
|
|
862
|
+
while (reader.pos < end) {
|
|
863
|
+
const tag = reader.uint32();
|
|
864
|
+
switch (tag >>> 3) {
|
|
865
|
+
case 1:
|
|
866
|
+
if (tag !== 10) {
|
|
867
|
+
break;
|
|
868
|
+
}
|
|
869
|
+
message.subject = reader.string();
|
|
870
|
+
continue;
|
|
871
|
+
case 2:
|
|
872
|
+
if (tag !== 18) {
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
message.action = reader.string();
|
|
876
|
+
continue;
|
|
877
|
+
case 5:
|
|
878
|
+
if (tag !== 42) {
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
message.resourceType = reader.string();
|
|
882
|
+
continue;
|
|
883
|
+
case 6:
|
|
884
|
+
if (tag !== 48) {
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
message.skip = reader.int32();
|
|
888
|
+
continue;
|
|
889
|
+
case 7:
|
|
890
|
+
if (tag !== 56) {
|
|
891
|
+
break;
|
|
892
|
+
}
|
|
893
|
+
message.limit = reader.int32();
|
|
894
|
+
continue;
|
|
895
|
+
}
|
|
896
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
897
|
+
break;
|
|
573
898
|
}
|
|
574
|
-
|
|
899
|
+
reader.skipType(tag & 7);
|
|
900
|
+
}
|
|
901
|
+
return message;
|
|
902
|
+
},
|
|
903
|
+
fromJSON(object) {
|
|
904
|
+
return {
|
|
905
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
|
|
906
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
907
|
+
resourceType: isSet(object.resourceType) ? globalThis.String(object.resourceType) : "",
|
|
908
|
+
skip: isSet(object.skip) ? globalThis.Number(object.skip) : 0,
|
|
909
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
910
|
+
};
|
|
911
|
+
},
|
|
912
|
+
toJSON(message) {
|
|
913
|
+
const obj = {};
|
|
914
|
+
if (message.subject !== "") {
|
|
915
|
+
obj.subject = message.subject;
|
|
916
|
+
}
|
|
917
|
+
if (message.action !== "") {
|
|
918
|
+
obj.action = message.action;
|
|
919
|
+
}
|
|
920
|
+
if (message.resourceType !== "") {
|
|
921
|
+
obj.resourceType = message.resourceType;
|
|
922
|
+
}
|
|
923
|
+
if (message.skip !== 0) {
|
|
924
|
+
obj.skip = Math.round(message.skip);
|
|
925
|
+
}
|
|
926
|
+
if (message.limit !== 0) {
|
|
927
|
+
obj.limit = Math.round(message.limit);
|
|
928
|
+
}
|
|
929
|
+
return obj;
|
|
930
|
+
},
|
|
931
|
+
create(base) {
|
|
932
|
+
return exports.AllowedResourcesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
933
|
+
},
|
|
934
|
+
fromPartial(object) {
|
|
935
|
+
var _a, _b, _c, _d, _e;
|
|
936
|
+
const message = createBaseAllowedResourcesRequest();
|
|
937
|
+
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : "";
|
|
938
|
+
message.action = (_b = object.action) !== null && _b !== void 0 ? _b : "";
|
|
939
|
+
message.resourceType = (_c = object.resourceType) !== null && _c !== void 0 ? _c : "";
|
|
940
|
+
message.skip = (_d = object.skip) !== null && _d !== void 0 ? _d : 0;
|
|
941
|
+
message.limit = (_e = object.limit) !== null && _e !== void 0 ? _e : 0;
|
|
942
|
+
return message;
|
|
943
|
+
},
|
|
944
|
+
};
|
|
945
|
+
function createBaseAllowedResourcesResponse() {
|
|
946
|
+
return { resources: [], count: 0 };
|
|
947
|
+
}
|
|
948
|
+
exports.AllowedResourcesResponse = {
|
|
949
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
950
|
+
for (const v of message.resources) {
|
|
951
|
+
writer.uint32(10).string(v);
|
|
575
952
|
}
|
|
576
953
|
if (message.count !== 0) {
|
|
577
954
|
writer.uint32(16).int32(message.count);
|
|
578
955
|
}
|
|
579
956
|
return writer;
|
|
580
957
|
},
|
|
581
|
-
decode
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
958
|
+
decode(input, length) {
|
|
959
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
960
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
961
|
+
const message = createBaseAllowedResourcesResponse();
|
|
585
962
|
while (reader.pos < end) {
|
|
586
|
-
|
|
963
|
+
const tag = reader.uint32();
|
|
587
964
|
switch (tag >>> 3) {
|
|
588
965
|
case 1:
|
|
589
|
-
|
|
590
|
-
|
|
966
|
+
if (tag !== 10) {
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
message.resources.push(reader.string());
|
|
970
|
+
continue;
|
|
591
971
|
case 2:
|
|
972
|
+
if (tag !== 16) {
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
592
975
|
message.count = reader.int32();
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
976
|
+
continue;
|
|
977
|
+
}
|
|
978
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
979
|
+
break;
|
|
597
980
|
}
|
|
981
|
+
reader.skipType(tag & 7);
|
|
598
982
|
}
|
|
599
983
|
return message;
|
|
600
984
|
},
|
|
601
|
-
fromJSON
|
|
985
|
+
fromJSON(object) {
|
|
602
986
|
return {
|
|
603
|
-
|
|
604
|
-
? object.
|
|
987
|
+
resources: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.resources)
|
|
988
|
+
? object.resources.map((e) => globalThis.String(e))
|
|
605
989
|
: [],
|
|
606
|
-
count: isSet(object.count) ? Number(object.count) : 0,
|
|
990
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
607
991
|
};
|
|
608
992
|
},
|
|
609
|
-
toJSON
|
|
610
|
-
var
|
|
611
|
-
|
|
612
|
-
|
|
993
|
+
toJSON(message) {
|
|
994
|
+
var _a;
|
|
995
|
+
const obj = {};
|
|
996
|
+
if ((_a = message.resources) === null || _a === void 0 ? void 0 : _a.length) {
|
|
997
|
+
obj.resources = message.resources;
|
|
613
998
|
}
|
|
614
|
-
|
|
615
|
-
obj.
|
|
999
|
+
if (message.count !== 0) {
|
|
1000
|
+
obj.count = Math.round(message.count);
|
|
616
1001
|
}
|
|
617
|
-
message.count !== undefined && (obj.count = Math.round(message.count));
|
|
618
1002
|
return obj;
|
|
619
1003
|
},
|
|
620
|
-
|
|
1004
|
+
create(base) {
|
|
1005
|
+
return exports.AllowedResourcesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1006
|
+
},
|
|
1007
|
+
fromPartial(object) {
|
|
621
1008
|
var _a, _b;
|
|
622
|
-
|
|
623
|
-
message.
|
|
1009
|
+
const message = createBaseAllowedResourcesResponse();
|
|
1010
|
+
message.resources = ((_a = object.resources) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
624
1011
|
message.count = (_b = object.count) !== null && _b !== void 0 ? _b : 0;
|
|
625
1012
|
return message;
|
|
626
1013
|
},
|
|
627
1014
|
};
|
|
628
|
-
function
|
|
629
|
-
return { subject:
|
|
1015
|
+
function createBaseResourceAccessListRequest() {
|
|
1016
|
+
return { subject: "", action: "", resourceType: "" };
|
|
630
1017
|
}
|
|
631
|
-
exports.
|
|
632
|
-
encode
|
|
633
|
-
|
|
634
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
635
|
-
if (message.subject !== '') {
|
|
1018
|
+
exports.ResourceAccessListRequest = {
|
|
1019
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1020
|
+
if (message.subject !== "") {
|
|
636
1021
|
writer.uint32(10).string(message.subject);
|
|
637
1022
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
1023
|
+
if (message.action !== "") {
|
|
1024
|
+
writer.uint32(18).string(message.action);
|
|
1025
|
+
}
|
|
1026
|
+
if (message.resourceType !== "") {
|
|
1027
|
+
writer.uint32(42).string(message.resourceType);
|
|
643
1028
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
1029
|
+
return writer;
|
|
1030
|
+
},
|
|
1031
|
+
decode(input, length) {
|
|
1032
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1033
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1034
|
+
const message = createBaseResourceAccessListRequest();
|
|
1035
|
+
while (reader.pos < end) {
|
|
1036
|
+
const tag = reader.uint32();
|
|
1037
|
+
switch (tag >>> 3) {
|
|
1038
|
+
case 1:
|
|
1039
|
+
if (tag !== 10) {
|
|
1040
|
+
break;
|
|
1041
|
+
}
|
|
1042
|
+
message.subject = reader.string();
|
|
1043
|
+
continue;
|
|
1044
|
+
case 2:
|
|
1045
|
+
if (tag !== 18) {
|
|
1046
|
+
break;
|
|
1047
|
+
}
|
|
1048
|
+
message.action = reader.string();
|
|
1049
|
+
continue;
|
|
1050
|
+
case 5:
|
|
1051
|
+
if (tag !== 42) {
|
|
1052
|
+
break;
|
|
1053
|
+
}
|
|
1054
|
+
message.resourceType = reader.string();
|
|
1055
|
+
continue;
|
|
648
1056
|
}
|
|
649
|
-
|
|
1057
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1058
|
+
break;
|
|
1059
|
+
}
|
|
1060
|
+
reader.skipType(tag & 7);
|
|
1061
|
+
}
|
|
1062
|
+
return message;
|
|
1063
|
+
},
|
|
1064
|
+
fromJSON(object) {
|
|
1065
|
+
return {
|
|
1066
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
|
|
1067
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
1068
|
+
resourceType: isSet(object.resourceType) ? globalThis.String(object.resourceType) : "",
|
|
1069
|
+
};
|
|
1070
|
+
},
|
|
1071
|
+
toJSON(message) {
|
|
1072
|
+
const obj = {};
|
|
1073
|
+
if (message.subject !== "") {
|
|
1074
|
+
obj.subject = message.subject;
|
|
1075
|
+
}
|
|
1076
|
+
if (message.action !== "") {
|
|
1077
|
+
obj.action = message.action;
|
|
1078
|
+
}
|
|
1079
|
+
if (message.resourceType !== "") {
|
|
1080
|
+
obj.resourceType = message.resourceType;
|
|
1081
|
+
}
|
|
1082
|
+
return obj;
|
|
1083
|
+
},
|
|
1084
|
+
create(base) {
|
|
1085
|
+
return exports.ResourceAccessListRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1086
|
+
},
|
|
1087
|
+
fromPartial(object) {
|
|
1088
|
+
var _a, _b, _c;
|
|
1089
|
+
const message = createBaseResourceAccessListRequest();
|
|
1090
|
+
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : "";
|
|
1091
|
+
message.action = (_b = object.action) !== null && _b !== void 0 ? _b : "";
|
|
1092
|
+
message.resourceType = (_c = object.resourceType) !== null && _c !== void 0 ? _c : "";
|
|
1093
|
+
return message;
|
|
1094
|
+
},
|
|
1095
|
+
};
|
|
1096
|
+
function createBasePermissionCheck() {
|
|
1097
|
+
return { subject: "", actions: [], resource: "" };
|
|
1098
|
+
}
|
|
1099
|
+
exports.PermissionCheck = {
|
|
1100
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1101
|
+
if (message.subject !== "") {
|
|
1102
|
+
writer.uint32(10).string(message.subject);
|
|
650
1103
|
}
|
|
651
|
-
|
|
1104
|
+
for (const v of message.actions) {
|
|
1105
|
+
writer.uint32(18).string(v);
|
|
1106
|
+
}
|
|
1107
|
+
if (message.resource !== "") {
|
|
652
1108
|
writer.uint32(26).string(message.resource);
|
|
653
1109
|
}
|
|
654
1110
|
return writer;
|
|
655
1111
|
},
|
|
656
|
-
decode
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
1112
|
+
decode(input, length) {
|
|
1113
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1115
|
+
const message = createBasePermissionCheck();
|
|
660
1116
|
while (reader.pos < end) {
|
|
661
|
-
|
|
1117
|
+
const tag = reader.uint32();
|
|
662
1118
|
switch (tag >>> 3) {
|
|
663
1119
|
case 1:
|
|
1120
|
+
if (tag !== 10) {
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
664
1123
|
message.subject = reader.string();
|
|
665
|
-
|
|
1124
|
+
continue;
|
|
666
1125
|
case 2:
|
|
1126
|
+
if (tag !== 18) {
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
667
1129
|
message.actions.push(reader.string());
|
|
668
|
-
|
|
1130
|
+
continue;
|
|
669
1131
|
case 3:
|
|
1132
|
+
if (tag !== 26) {
|
|
1133
|
+
break;
|
|
1134
|
+
}
|
|
670
1135
|
message.resource = reader.string();
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
1136
|
+
continue;
|
|
1137
|
+
}
|
|
1138
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1139
|
+
break;
|
|
675
1140
|
}
|
|
1141
|
+
reader.skipType(tag & 7);
|
|
676
1142
|
}
|
|
677
1143
|
return message;
|
|
678
1144
|
},
|
|
679
|
-
fromJSON
|
|
1145
|
+
fromJSON(object) {
|
|
680
1146
|
return {
|
|
681
|
-
subject: isSet(object.subject) ? String(object.subject) :
|
|
682
|
-
actions: Array.isArray(object === null || object === void 0 ? void 0 : object.actions)
|
|
683
|
-
|
|
684
|
-
: [],
|
|
685
|
-
resource: isSet(object.resource) ? String(object.resource) : '',
|
|
1147
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
|
|
1148
|
+
actions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.actions) ? object.actions.map((e) => globalThis.String(e)) : [],
|
|
1149
|
+
resource: isSet(object.resource) ? globalThis.String(object.resource) : "",
|
|
686
1150
|
};
|
|
687
1151
|
},
|
|
688
|
-
toJSON
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
if (message.
|
|
692
|
-
obj.
|
|
1152
|
+
toJSON(message) {
|
|
1153
|
+
var _a;
|
|
1154
|
+
const obj = {};
|
|
1155
|
+
if (message.subject !== "") {
|
|
1156
|
+
obj.subject = message.subject;
|
|
1157
|
+
}
|
|
1158
|
+
if ((_a = message.actions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1159
|
+
obj.actions = message.actions;
|
|
693
1160
|
}
|
|
694
|
-
|
|
695
|
-
obj.
|
|
1161
|
+
if (message.resource !== "") {
|
|
1162
|
+
obj.resource = message.resource;
|
|
696
1163
|
}
|
|
697
|
-
message.resource !== undefined && (obj.resource = message.resource);
|
|
698
1164
|
return obj;
|
|
699
1165
|
},
|
|
700
|
-
|
|
1166
|
+
create(base) {
|
|
1167
|
+
return exports.PermissionCheck.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1168
|
+
},
|
|
1169
|
+
fromPartial(object) {
|
|
701
1170
|
var _a, _b, _c;
|
|
702
|
-
|
|
703
|
-
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a :
|
|
704
|
-
message.actions = ((_b = object.actions) === null || _b === void 0 ? void 0 : _b.map(
|
|
705
|
-
message.resource = (_c = object.resource) !== null && _c !== void 0 ? _c :
|
|
1171
|
+
const message = createBasePermissionCheck();
|
|
1172
|
+
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : "";
|
|
1173
|
+
message.actions = ((_b = object.actions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1174
|
+
message.resource = (_c = object.resource) !== null && _c !== void 0 ? _c : "";
|
|
706
1175
|
return message;
|
|
707
1176
|
},
|
|
708
1177
|
};
|
|
709
1178
|
function createBasePermissionRequest() {
|
|
710
|
-
return { subject:
|
|
1179
|
+
return { subject: "", action: "", resource: "" };
|
|
711
1180
|
}
|
|
712
1181
|
exports.PermissionRequest = {
|
|
713
|
-
encode
|
|
714
|
-
if (
|
|
715
|
-
if (message.subject !== '') {
|
|
1182
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1183
|
+
if (message.subject !== "") {
|
|
716
1184
|
writer.uint32(10).string(message.subject);
|
|
717
1185
|
}
|
|
718
|
-
if (message.action !==
|
|
1186
|
+
if (message.action !== "") {
|
|
719
1187
|
writer.uint32(18).string(message.action);
|
|
720
1188
|
}
|
|
721
|
-
if (message.resource !==
|
|
1189
|
+
if (message.resource !== "") {
|
|
722
1190
|
writer.uint32(26).string(message.resource);
|
|
723
1191
|
}
|
|
724
1192
|
return writer;
|
|
725
1193
|
},
|
|
726
|
-
decode
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
1194
|
+
decode(input, length) {
|
|
1195
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1196
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1197
|
+
const message = createBasePermissionRequest();
|
|
730
1198
|
while (reader.pos < end) {
|
|
731
|
-
|
|
1199
|
+
const tag = reader.uint32();
|
|
732
1200
|
switch (tag >>> 3) {
|
|
733
1201
|
case 1:
|
|
1202
|
+
if (tag !== 10) {
|
|
1203
|
+
break;
|
|
1204
|
+
}
|
|
734
1205
|
message.subject = reader.string();
|
|
735
|
-
|
|
1206
|
+
continue;
|
|
736
1207
|
case 2:
|
|
1208
|
+
if (tag !== 18) {
|
|
1209
|
+
break;
|
|
1210
|
+
}
|
|
737
1211
|
message.action = reader.string();
|
|
738
|
-
|
|
1212
|
+
continue;
|
|
739
1213
|
case 3:
|
|
1214
|
+
if (tag !== 26) {
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
740
1217
|
message.resource = reader.string();
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
1218
|
+
continue;
|
|
1219
|
+
}
|
|
1220
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1221
|
+
break;
|
|
745
1222
|
}
|
|
1223
|
+
reader.skipType(tag & 7);
|
|
746
1224
|
}
|
|
747
1225
|
return message;
|
|
748
1226
|
},
|
|
749
|
-
fromJSON
|
|
1227
|
+
fromJSON(object) {
|
|
750
1228
|
return {
|
|
751
|
-
subject: isSet(object.subject) ? String(object.subject) :
|
|
752
|
-
action: isSet(object.action) ? String(object.action) :
|
|
753
|
-
resource: isSet(object.resource) ? String(object.resource) :
|
|
1229
|
+
subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
|
|
1230
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
1231
|
+
resource: isSet(object.resource) ? globalThis.String(object.resource) : "",
|
|
754
1232
|
};
|
|
755
1233
|
},
|
|
756
|
-
toJSON
|
|
757
|
-
|
|
758
|
-
message.subject !==
|
|
759
|
-
|
|
760
|
-
|
|
1234
|
+
toJSON(message) {
|
|
1235
|
+
const obj = {};
|
|
1236
|
+
if (message.subject !== "") {
|
|
1237
|
+
obj.subject = message.subject;
|
|
1238
|
+
}
|
|
1239
|
+
if (message.action !== "") {
|
|
1240
|
+
obj.action = message.action;
|
|
1241
|
+
}
|
|
1242
|
+
if (message.resource !== "") {
|
|
1243
|
+
obj.resource = message.resource;
|
|
1244
|
+
}
|
|
761
1245
|
return obj;
|
|
762
1246
|
},
|
|
763
|
-
|
|
1247
|
+
create(base) {
|
|
1248
|
+
return exports.PermissionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1249
|
+
},
|
|
1250
|
+
fromPartial(object) {
|
|
764
1251
|
var _a, _b, _c;
|
|
765
|
-
|
|
766
|
-
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a :
|
|
767
|
-
message.action = (_b = object.action) !== null && _b !== void 0 ? _b :
|
|
768
|
-
message.resource = (_c = object.resource) !== null && _c !== void 0 ? _c :
|
|
1252
|
+
const message = createBasePermissionRequest();
|
|
1253
|
+
message.subject = (_a = object.subject) !== null && _a !== void 0 ? _a : "";
|
|
1254
|
+
message.action = (_b = object.action) !== null && _b !== void 0 ? _b : "";
|
|
1255
|
+
message.resource = (_c = object.resource) !== null && _c !== void 0 ? _c : "";
|
|
769
1256
|
return message;
|
|
770
1257
|
},
|
|
771
1258
|
};
|
|
@@ -773,61 +1260,67 @@ function createBaseDecision() {
|
|
|
773
1260
|
return { allow: false };
|
|
774
1261
|
}
|
|
775
1262
|
exports.Decision = {
|
|
776
|
-
encode
|
|
777
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1263
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
778
1264
|
if (message.allow === true) {
|
|
779
1265
|
writer.uint32(8).bool(message.allow);
|
|
780
1266
|
}
|
|
781
1267
|
return writer;
|
|
782
1268
|
},
|
|
783
|
-
decode
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
1269
|
+
decode(input, length) {
|
|
1270
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1271
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1272
|
+
const message = createBaseDecision();
|
|
787
1273
|
while (reader.pos < end) {
|
|
788
|
-
|
|
1274
|
+
const tag = reader.uint32();
|
|
789
1275
|
switch (tag >>> 3) {
|
|
790
1276
|
case 1:
|
|
1277
|
+
if (tag !== 8) {
|
|
1278
|
+
break;
|
|
1279
|
+
}
|
|
791
1280
|
message.allow = reader.bool();
|
|
792
|
-
|
|
793
|
-
default:
|
|
794
|
-
reader.skipType(tag & 7);
|
|
795
|
-
break;
|
|
1281
|
+
continue;
|
|
796
1282
|
}
|
|
1283
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1284
|
+
break;
|
|
1285
|
+
}
|
|
1286
|
+
reader.skipType(tag & 7);
|
|
797
1287
|
}
|
|
798
1288
|
return message;
|
|
799
1289
|
},
|
|
800
|
-
fromJSON
|
|
801
|
-
return {
|
|
802
|
-
allow: isSet(object.allow) ? Boolean(object.allow) : false,
|
|
803
|
-
};
|
|
1290
|
+
fromJSON(object) {
|
|
1291
|
+
return { allow: isSet(object.allow) ? globalThis.Boolean(object.allow) : false };
|
|
804
1292
|
},
|
|
805
|
-
toJSON
|
|
806
|
-
|
|
807
|
-
|
|
1293
|
+
toJSON(message) {
|
|
1294
|
+
const obj = {};
|
|
1295
|
+
if (message.allow === true) {
|
|
1296
|
+
obj.allow = message.allow;
|
|
1297
|
+
}
|
|
808
1298
|
return obj;
|
|
809
1299
|
},
|
|
810
|
-
|
|
1300
|
+
create(base) {
|
|
1301
|
+
return exports.Decision.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1302
|
+
},
|
|
1303
|
+
fromPartial(object) {
|
|
811
1304
|
var _a;
|
|
812
|
-
|
|
1305
|
+
const message = createBaseDecision();
|
|
813
1306
|
message.allow = (_a = object.allow) !== null && _a !== void 0 ? _a : false;
|
|
814
1307
|
return message;
|
|
815
1308
|
},
|
|
816
1309
|
};
|
|
817
1310
|
exports.AuthorizationDefinition = {
|
|
818
|
-
name:
|
|
819
|
-
fullName:
|
|
1311
|
+
name: "Authorization",
|
|
1312
|
+
fullName: "authorization.Authorization",
|
|
820
1313
|
methods: {
|
|
821
1314
|
defineResource: {
|
|
822
|
-
name:
|
|
1315
|
+
name: "DefineResource",
|
|
823
1316
|
requestType: exports.Resource,
|
|
824
1317
|
requestStream: false,
|
|
825
|
-
responseType:
|
|
1318
|
+
responseType: exports.ResourceModificationAcknowledgement,
|
|
826
1319
|
responseStream: false,
|
|
827
1320
|
options: {},
|
|
828
1321
|
},
|
|
829
1322
|
deleteResource: {
|
|
830
|
-
name:
|
|
1323
|
+
name: "DeleteResource",
|
|
831
1324
|
requestType: exports.DeleteResourceRequest,
|
|
832
1325
|
requestStream: false,
|
|
833
1326
|
responseType: empty_1.Empty,
|
|
@@ -835,23 +1328,31 @@ exports.AuthorizationDefinition = {
|
|
|
835
1328
|
options: {},
|
|
836
1329
|
},
|
|
837
1330
|
updateResource: {
|
|
838
|
-
name:
|
|
1331
|
+
name: "UpdateResource",
|
|
839
1332
|
requestType: exports.Resource,
|
|
840
1333
|
requestStream: false,
|
|
841
|
-
responseType:
|
|
1334
|
+
responseType: exports.ResourceModificationAcknowledgement,
|
|
842
1335
|
responseStream: false,
|
|
843
1336
|
options: {},
|
|
844
1337
|
},
|
|
845
1338
|
createRelation: {
|
|
846
|
-
name:
|
|
1339
|
+
name: "CreateRelation",
|
|
847
1340
|
requestType: exports.Relation,
|
|
848
1341
|
requestStream: false,
|
|
849
1342
|
responseType: empty_1.Empty,
|
|
850
1343
|
responseStream: false,
|
|
851
1344
|
options: {},
|
|
852
1345
|
},
|
|
1346
|
+
createRelations: {
|
|
1347
|
+
name: "CreateRelations",
|
|
1348
|
+
requestType: exports.CreateRelationsRequest,
|
|
1349
|
+
requestStream: false,
|
|
1350
|
+
responseType: empty_1.Empty,
|
|
1351
|
+
responseStream: false,
|
|
1352
|
+
options: {},
|
|
1353
|
+
},
|
|
853
1354
|
deleteRelation: {
|
|
854
|
-
name:
|
|
1355
|
+
name: "DeleteRelation",
|
|
855
1356
|
requestType: exports.Relation,
|
|
856
1357
|
requestStream: false,
|
|
857
1358
|
responseType: empty_1.Empty,
|
|
@@ -859,7 +1360,7 @@ exports.AuthorizationDefinition = {
|
|
|
859
1360
|
options: {},
|
|
860
1361
|
},
|
|
861
1362
|
grantPermission: {
|
|
862
|
-
name:
|
|
1363
|
+
name: "GrantPermission",
|
|
863
1364
|
requestType: exports.PermissionRequest,
|
|
864
1365
|
requestStream: false,
|
|
865
1366
|
responseType: empty_1.Empty,
|
|
@@ -867,7 +1368,7 @@ exports.AuthorizationDefinition = {
|
|
|
867
1368
|
options: {},
|
|
868
1369
|
},
|
|
869
1370
|
removePermission: {
|
|
870
|
-
name:
|
|
1371
|
+
name: "RemovePermission",
|
|
871
1372
|
requestType: exports.PermissionRequest,
|
|
872
1373
|
requestStream: false,
|
|
873
1374
|
responseType: empty_1.Empty,
|
|
@@ -875,7 +1376,7 @@ exports.AuthorizationDefinition = {
|
|
|
875
1376
|
options: {},
|
|
876
1377
|
},
|
|
877
1378
|
deleteAllRelations: {
|
|
878
|
-
name:
|
|
1379
|
+
name: "DeleteAllRelations",
|
|
879
1380
|
requestType: exports.DeleteAllRelationsRequest,
|
|
880
1381
|
requestStream: false,
|
|
881
1382
|
responseType: empty_1.Empty,
|
|
@@ -883,7 +1384,7 @@ exports.AuthorizationDefinition = {
|
|
|
883
1384
|
options: {},
|
|
884
1385
|
},
|
|
885
1386
|
findRelation: {
|
|
886
|
-
name:
|
|
1387
|
+
name: "FindRelation",
|
|
887
1388
|
requestType: exports.FindRelationRequest,
|
|
888
1389
|
requestStream: false,
|
|
889
1390
|
responseType: exports.FindRelationResponse,
|
|
@@ -891,13 +1392,29 @@ exports.AuthorizationDefinition = {
|
|
|
891
1392
|
options: {},
|
|
892
1393
|
},
|
|
893
1394
|
can: {
|
|
894
|
-
name:
|
|
1395
|
+
name: "Can",
|
|
895
1396
|
requestType: exports.PermissionCheck,
|
|
896
1397
|
requestStream: false,
|
|
897
1398
|
responseType: exports.Decision,
|
|
898
1399
|
responseStream: false,
|
|
899
1400
|
options: {},
|
|
900
1401
|
},
|
|
1402
|
+
getAllowedResources: {
|
|
1403
|
+
name: "GetAllowedResources",
|
|
1404
|
+
requestType: exports.AllowedResourcesRequest,
|
|
1405
|
+
requestStream: false,
|
|
1406
|
+
responseType: exports.AllowedResourcesResponse,
|
|
1407
|
+
responseStream: false,
|
|
1408
|
+
options: {},
|
|
1409
|
+
},
|
|
1410
|
+
createResourceAccessList: {
|
|
1411
|
+
name: "CreateResourceAccessList",
|
|
1412
|
+
requestType: exports.ResourceAccessListRequest,
|
|
1413
|
+
requestStream: false,
|
|
1414
|
+
responseType: empty_1.Empty,
|
|
1415
|
+
responseStream: false,
|
|
1416
|
+
options: {},
|
|
1417
|
+
},
|
|
901
1418
|
},
|
|
902
1419
|
};
|
|
903
1420
|
function isSet(value) {
|