You've already forked npm-core-sdk
Latest generation
This commit is contained in:
284
api.ts
284
api.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "api.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -28,15 +28,15 @@ export interface GetPermissionsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResourceType RscType = 1 [json_name = "RscType"];
|
||||
*/
|
||||
rscType: ResourceType;
|
||||
RscType: ResourceType;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
*/
|
||||
client: string;
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Service = 3 [json_name = "Service"];
|
||||
*/
|
||||
service: string;
|
||||
Service: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetPermissionsResult
|
||||
@@ -45,7 +45,7 @@ export interface GetPermissionsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Permission Permissions = 5 [json_name = "Permissions"];
|
||||
*/
|
||||
permissions: Permission[];
|
||||
Permissions: Permission[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetUIPermissionsRequest
|
||||
@@ -54,15 +54,15 @@ export interface GetUIPermissionsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResourceType RscType = 1 [json_name = "RscType"];
|
||||
*/
|
||||
rscType: ResourceType;
|
||||
RscType: ResourceType;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
*/
|
||||
client: string;
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Service = 3 [json_name = "Service"];
|
||||
*/
|
||||
service: string;
|
||||
Service: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetUIPermissionsResult
|
||||
@@ -71,7 +71,7 @@ export interface GetUIPermissionsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Permission Permissions = 1 [json_name = "Permissions"];
|
||||
*/
|
||||
permissions: Permission[];
|
||||
Permissions: Permission[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListUserUIPermissionsRequest
|
||||
@@ -80,7 +80,7 @@ export interface ListUserUIPermissionsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
*/
|
||||
client: string;
|
||||
Client: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListUserUIPermissionsResult
|
||||
@@ -89,7 +89,7 @@ export interface ListUserUIPermissionsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.UserUIPermissions Permissions = 2 [json_name = "Permissions"];
|
||||
*/
|
||||
permissions: UserUIPermissions[];
|
||||
Permissions: UserUIPermissions[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.RegisterPackageRequest
|
||||
@@ -98,27 +98,27 @@ export interface RegisterPackageRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string PackageName = 1 [json_name = "PackageName"];
|
||||
*/
|
||||
packageName: string;
|
||||
PackageName: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClientAPI Clients = 2 [json_name = "Clients"];
|
||||
*/
|
||||
clients: ClientAPI[];
|
||||
Clients: ClientAPI[];
|
||||
/**
|
||||
* @generated from protobuf field: bool ForceFullScopeCreation = 3 [json_name = "ForceFullScopeCreation"];
|
||||
*/
|
||||
forceFullScopeCreation: boolean;
|
||||
ForceFullScopeCreation: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Role Roles = 4 [json_name = "Roles"];
|
||||
*/
|
||||
roles: Role[];
|
||||
Roles: Role[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ModuleRegistration Workflows = 5 [json_name = "Workflows"];
|
||||
*/
|
||||
workflows: ModuleRegistration[];
|
||||
Workflows: ModuleRegistration[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Module Modules = 6 [json_name = "Modules"];
|
||||
*/
|
||||
modules: Module[];
|
||||
Modules: Module[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.RegisterPackageResult
|
||||
@@ -132,15 +132,15 @@ export interface CreateScopeRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ModuleName = 1 [json_name = "ModuleName"];
|
||||
*/
|
||||
moduleName: string;
|
||||
ModuleName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
*/
|
||||
client: string;
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Scope Scope = 3 [json_name = "Scope"];
|
||||
*/
|
||||
scope?: Scope;
|
||||
Scope?: Scope;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CreateScopeResult
|
||||
@@ -154,15 +154,15 @@ export interface DeleteScopeRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ModuleName = 1 [json_name = "ModuleName"];
|
||||
*/
|
||||
moduleName: string;
|
||||
ModuleName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 2 [json_name = "Client"];
|
||||
*/
|
||||
client: string;
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Scope Scope = 3 [json_name = "Scope"];
|
||||
*/
|
||||
scope?: Scope;
|
||||
Scope?: Scope;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteScopeResult
|
||||
@@ -176,11 +176,11 @@ export interface CleanScopeRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string Client = 1 [json_name = "Client"];
|
||||
*/
|
||||
client: string;
|
||||
Client: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.Scope Scope = 2 [json_name = "Scope"];
|
||||
*/
|
||||
scope?: Scope;
|
||||
Scope?: Scope;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CleanScopeResult
|
||||
@@ -191,16 +191,16 @@ export interface CleanScopeResult {
|
||||
class GetPermissionsRequest$Type extends MessageType<GetPermissionsRequest> {
|
||||
constructor() {
|
||||
super("api.GetPermissionsRequest", [
|
||||
{ no: 1, name: "RscType", kind: "enum", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType, "RESOURCE_TYPE_"] },
|
||||
{ no: 2, name: "Client", kind: "scalar", jsonName: "Client", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Service", kind: "scalar", jsonName: "Service", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType, "RESOURCE_TYPE_"] },
|
||||
{ no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetPermissionsRequest>): GetPermissionsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.rscType = 0;
|
||||
message.client = "";
|
||||
message.service = "";
|
||||
message.RscType = 0;
|
||||
message.Client = "";
|
||||
message.Service = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetPermissionsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -211,13 +211,13 @@ class GetPermissionsRequest$Type extends MessageType<GetPermissionsRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResourceType RscType = 1 [json_name = "RscType"];*/ 1:
|
||||
message.rscType = reader.int32();
|
||||
message.RscType = reader.int32();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
message.client = reader.string();
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* string Service = 3 [json_name = "Service"];*/ 3:
|
||||
message.service = reader.string();
|
||||
message.Service = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -232,14 +232,14 @@ class GetPermissionsRequest$Type extends MessageType<GetPermissionsRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: GetPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResourceType RscType = 1 [json_name = "RscType"]; */
|
||||
if (message.rscType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.rscType);
|
||||
if (message.RscType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.RscType);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
if (message.client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.client);
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* string Service = 3 [json_name = "Service"]; */
|
||||
if (message.service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.service);
|
||||
if (message.Service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Service);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -254,12 +254,12 @@ export const GetPermissionsRequest = new GetPermissionsRequest$Type();
|
||||
class GetPermissionsResult$Type extends MessageType<GetPermissionsResult> {
|
||||
constructor() {
|
||||
super("api.GetPermissionsResult", [
|
||||
{ no: 5, name: "Permissions", kind: "message", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => Permission }
|
||||
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => Permission }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetPermissionsResult>): GetPermissionsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.permissions = [];
|
||||
message.Permissions = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetPermissionsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -270,7 +270,7 @@ class GetPermissionsResult$Type extends MessageType<GetPermissionsResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Permission Permissions = 5 [json_name = "Permissions"];*/ 5:
|
||||
message.permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -285,8 +285,8 @@ class GetPermissionsResult$Type extends MessageType<GetPermissionsResult> {
|
||||
}
|
||||
internalBinaryWrite(message: GetPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Permission Permissions = 5 [json_name = "Permissions"]; */
|
||||
for (let i = 0; i < message.permissions.length; i++)
|
||||
Permission.internalBinaryWrite(message.permissions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Permissions.length; i++)
|
||||
Permission.internalBinaryWrite(message.Permissions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -301,16 +301,16 @@ export const GetPermissionsResult = new GetPermissionsResult$Type();
|
||||
class GetUIPermissionsRequest$Type extends MessageType<GetUIPermissionsRequest> {
|
||||
constructor() {
|
||||
super("api.GetUIPermissionsRequest", [
|
||||
{ no: 1, name: "RscType", kind: "enum", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType, "RESOURCE_TYPE_"] },
|
||||
{ no: 2, name: "Client", kind: "scalar", jsonName: "Client", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Service", kind: "scalar", jsonName: "Service", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType, "RESOURCE_TYPE_"] },
|
||||
{ no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetUIPermissionsRequest>): GetUIPermissionsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.rscType = 0;
|
||||
message.client = "";
|
||||
message.service = "";
|
||||
message.RscType = 0;
|
||||
message.Client = "";
|
||||
message.Service = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetUIPermissionsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -321,13 +321,13 @@ class GetUIPermissionsRequest$Type extends MessageType<GetUIPermissionsRequest>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResourceType RscType = 1 [json_name = "RscType"];*/ 1:
|
||||
message.rscType = reader.int32();
|
||||
message.RscType = reader.int32();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
message.client = reader.string();
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* string Service = 3 [json_name = "Service"];*/ 3:
|
||||
message.service = reader.string();
|
||||
message.Service = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -342,14 +342,14 @@ class GetUIPermissionsRequest$Type extends MessageType<GetUIPermissionsRequest>
|
||||
}
|
||||
internalBinaryWrite(message: GetUIPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResourceType RscType = 1 [json_name = "RscType"]; */
|
||||
if (message.rscType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.rscType);
|
||||
if (message.RscType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.RscType);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
if (message.client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.client);
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* string Service = 3 [json_name = "Service"]; */
|
||||
if (message.service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.service);
|
||||
if (message.Service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Service);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -364,12 +364,12 @@ export const GetUIPermissionsRequest = new GetUIPermissionsRequest$Type();
|
||||
class GetUIPermissionsResult$Type extends MessageType<GetUIPermissionsResult> {
|
||||
constructor() {
|
||||
super("api.GetUIPermissionsResult", [
|
||||
{ no: 1, name: "Permissions", kind: "message", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => Permission }
|
||||
{ no: 1, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => Permission }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetUIPermissionsResult>): GetUIPermissionsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.permissions = [];
|
||||
message.Permissions = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetUIPermissionsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -380,7 +380,7 @@ class GetUIPermissionsResult$Type extends MessageType<GetUIPermissionsResult> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Permission Permissions = 1 [json_name = "Permissions"];*/ 1:
|
||||
message.permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Permissions.push(Permission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -395,8 +395,8 @@ class GetUIPermissionsResult$Type extends MessageType<GetUIPermissionsResult> {
|
||||
}
|
||||
internalBinaryWrite(message: GetUIPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Permission Permissions = 1 [json_name = "Permissions"]; */
|
||||
for (let i = 0; i < message.permissions.length; i++)
|
||||
Permission.internalBinaryWrite(message.permissions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Permissions.length; i++)
|
||||
Permission.internalBinaryWrite(message.Permissions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -411,12 +411,12 @@ export const GetUIPermissionsResult = new GetUIPermissionsResult$Type();
|
||||
class ListUserUIPermissionsRequest$Type extends MessageType<ListUserUIPermissionsRequest> {
|
||||
constructor() {
|
||||
super("api.ListUserUIPermissionsRequest", [
|
||||
{ no: 2, name: "Client", kind: "scalar", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
{ no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListUserUIPermissionsRequest>): ListUserUIPermissionsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.client = "";
|
||||
message.Client = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListUserUIPermissionsRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -427,7 +427,7 @@ class ListUserUIPermissionsRequest$Type extends MessageType<ListUserUIPermission
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
message.client = reader.string();
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -442,8 +442,8 @@ class ListUserUIPermissionsRequest$Type extends MessageType<ListUserUIPermission
|
||||
}
|
||||
internalBinaryWrite(message: ListUserUIPermissionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
if (message.client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.client);
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -458,12 +458,12 @@ export const ListUserUIPermissionsRequest = new ListUserUIPermissionsRequest$Typ
|
||||
class ListUserUIPermissionsResult$Type extends MessageType<ListUserUIPermissionsResult> {
|
||||
constructor() {
|
||||
super("api.ListUserUIPermissionsResult", [
|
||||
{ no: 2, name: "Permissions", kind: "message", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => UserUIPermissions }
|
||||
{ no: 2, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 1 /*RepeatType.PACKED*/, T: () => UserUIPermissions }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListUserUIPermissionsResult>): ListUserUIPermissionsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.permissions = [];
|
||||
message.Permissions = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListUserUIPermissionsResult>(this, message, value);
|
||||
return message;
|
||||
@@ -474,7 +474,7 @@ class ListUserUIPermissionsResult$Type extends MessageType<ListUserUIPermissions
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.UserUIPermissions Permissions = 2 [json_name = "Permissions"];*/ 2:
|
||||
message.permissions.push(UserUIPermissions.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Permissions.push(UserUIPermissions.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -489,8 +489,8 @@ class ListUserUIPermissionsResult$Type extends MessageType<ListUserUIPermissions
|
||||
}
|
||||
internalBinaryWrite(message: ListUserUIPermissionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.UserUIPermissions Permissions = 2 [json_name = "Permissions"]; */
|
||||
for (let i = 0; i < message.permissions.length; i++)
|
||||
UserUIPermissions.internalBinaryWrite(message.permissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Permissions.length; i++)
|
||||
UserUIPermissions.internalBinaryWrite(message.Permissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -505,22 +505,22 @@ export const ListUserUIPermissionsResult = new ListUserUIPermissionsResult$Type(
|
||||
class RegisterPackageRequest$Type extends MessageType<RegisterPackageRequest> {
|
||||
constructor() {
|
||||
super("api.RegisterPackageRequest", [
|
||||
{ no: 1, name: "PackageName", kind: "scalar", jsonName: "PackageName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Clients", kind: "message", jsonName: "Clients", repeat: 1 /*RepeatType.PACKED*/, T: () => ClientAPI },
|
||||
{ no: 3, name: "ForceFullScopeCreation", kind: "scalar", jsonName: "ForceFullScopeCreation", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "Roles", kind: "message", jsonName: "Roles", repeat: 1 /*RepeatType.PACKED*/, T: () => Role },
|
||||
{ no: 5, name: "Workflows", kind: "message", jsonName: "Workflows", repeat: 1 /*RepeatType.PACKED*/, T: () => ModuleRegistration },
|
||||
{ no: 6, name: "Modules", kind: "message", jsonName: "Modules", repeat: 1 /*RepeatType.PACKED*/, T: () => Module }
|
||||
{ no: 1, name: "PackageName", kind: "scalar", localName: "PackageName", jsonName: "PackageName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Clients", kind: "message", localName: "Clients", jsonName: "Clients", repeat: 1 /*RepeatType.PACKED*/, T: () => ClientAPI },
|
||||
{ no: 3, name: "ForceFullScopeCreation", kind: "scalar", localName: "ForceFullScopeCreation", jsonName: "ForceFullScopeCreation", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 4, name: "Roles", kind: "message", localName: "Roles", jsonName: "Roles", repeat: 1 /*RepeatType.PACKED*/, T: () => Role },
|
||||
{ no: 5, name: "Workflows", kind: "message", localName: "Workflows", jsonName: "Workflows", repeat: 1 /*RepeatType.PACKED*/, T: () => ModuleRegistration },
|
||||
{ no: 6, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 1 /*RepeatType.PACKED*/, T: () => Module }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<RegisterPackageRequest>): RegisterPackageRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.packageName = "";
|
||||
message.clients = [];
|
||||
message.forceFullScopeCreation = false;
|
||||
message.roles = [];
|
||||
message.workflows = [];
|
||||
message.modules = [];
|
||||
message.PackageName = "";
|
||||
message.Clients = [];
|
||||
message.ForceFullScopeCreation = false;
|
||||
message.Roles = [];
|
||||
message.Workflows = [];
|
||||
message.Modules = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<RegisterPackageRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -531,22 +531,22 @@ class RegisterPackageRequest$Type extends MessageType<RegisterPackageRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string PackageName = 1 [json_name = "PackageName"];*/ 1:
|
||||
message.packageName = reader.string();
|
||||
message.PackageName = reader.string();
|
||||
break;
|
||||
case /* repeated api.ClientAPI Clients = 2 [json_name = "Clients"];*/ 2:
|
||||
message.clients.push(ClientAPI.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Clients.push(ClientAPI.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* bool ForceFullScopeCreation = 3 [json_name = "ForceFullScopeCreation"];*/ 3:
|
||||
message.forceFullScopeCreation = reader.bool();
|
||||
message.ForceFullScopeCreation = reader.bool();
|
||||
break;
|
||||
case /* repeated api.Role Roles = 4 [json_name = "Roles"];*/ 4:
|
||||
message.roles.push(Role.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Roles.push(Role.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.ModuleRegistration Workflows = 5 [json_name = "Workflows"];*/ 5:
|
||||
message.workflows.push(ModuleRegistration.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Workflows.push(ModuleRegistration.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Module Modules = 6 [json_name = "Modules"];*/ 6:
|
||||
message.modules.push(Module.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Modules.push(Module.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -561,23 +561,23 @@ class RegisterPackageRequest$Type extends MessageType<RegisterPackageRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: RegisterPackageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string PackageName = 1 [json_name = "PackageName"]; */
|
||||
if (message.packageName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.packageName);
|
||||
if (message.PackageName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.PackageName);
|
||||
/* repeated api.ClientAPI Clients = 2 [json_name = "Clients"]; */
|
||||
for (let i = 0; i < message.clients.length; i++)
|
||||
ClientAPI.internalBinaryWrite(message.clients[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Clients.length; i++)
|
||||
ClientAPI.internalBinaryWrite(message.Clients[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* bool ForceFullScopeCreation = 3 [json_name = "ForceFullScopeCreation"]; */
|
||||
if (message.forceFullScopeCreation !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.forceFullScopeCreation);
|
||||
if (message.ForceFullScopeCreation !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.ForceFullScopeCreation);
|
||||
/* repeated api.Role Roles = 4 [json_name = "Roles"]; */
|
||||
for (let i = 0; i < message.roles.length; i++)
|
||||
Role.internalBinaryWrite(message.roles[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Roles.length; i++)
|
||||
Role.internalBinaryWrite(message.Roles[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.ModuleRegistration Workflows = 5 [json_name = "Workflows"]; */
|
||||
for (let i = 0; i < message.workflows.length; i++)
|
||||
ModuleRegistration.internalBinaryWrite(message.workflows[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Workflows.length; i++)
|
||||
ModuleRegistration.internalBinaryWrite(message.Workflows[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Module Modules = 6 [json_name = "Modules"]; */
|
||||
for (let i = 0; i < message.modules.length; i++)
|
||||
Module.internalBinaryWrite(message.modules[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
for (let i = 0; i < message.Modules.length; i++)
|
||||
Module.internalBinaryWrite(message.Modules[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -630,15 +630,15 @@ export const RegisterPackageResult = new RegisterPackageResult$Type();
|
||||
class CreateScopeRequest$Type extends MessageType<CreateScopeRequest> {
|
||||
constructor() {
|
||||
super("api.CreateScopeRequest", [
|
||||
{ no: 1, name: "ModuleName", kind: "scalar", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Client", kind: "scalar", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Scope", kind: "message", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "ModuleName", kind: "scalar", localName: "ModuleName", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CreateScopeRequest>): CreateScopeRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.moduleName = "";
|
||||
message.client = "";
|
||||
message.ModuleName = "";
|
||||
message.Client = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateScopeRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -649,13 +649,13 @@ class CreateScopeRequest$Type extends MessageType<CreateScopeRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ModuleName = 1 [json_name = "ModuleName"];*/ 1:
|
||||
message.moduleName = reader.string();
|
||||
message.ModuleName = reader.string();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
message.client = reader.string();
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* api.Scope Scope = 3 [json_name = "Scope"];*/ 3:
|
||||
message.scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
|
||||
message.Scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.Scope);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -670,14 +670,14 @@ class CreateScopeRequest$Type extends MessageType<CreateScopeRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: CreateScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ModuleName = 1 [json_name = "ModuleName"]; */
|
||||
if (message.moduleName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.moduleName);
|
||||
if (message.ModuleName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ModuleName);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
if (message.client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.client);
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* api.Scope Scope = 3 [json_name = "Scope"]; */
|
||||
if (message.scope)
|
||||
Scope.internalBinaryWrite(message.scope, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Scope)
|
||||
Scope.internalBinaryWrite(message.Scope, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -730,15 +730,15 @@ export const CreateScopeResult = new CreateScopeResult$Type();
|
||||
class DeleteScopeRequest$Type extends MessageType<DeleteScopeRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteScopeRequest", [
|
||||
{ no: 1, name: "ModuleName", kind: "scalar", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Client", kind: "scalar", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Scope", kind: "message", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "ModuleName", kind: "scalar", localName: "ModuleName", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteScopeRequest>): DeleteScopeRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.moduleName = "";
|
||||
message.client = "";
|
||||
message.ModuleName = "";
|
||||
message.Client = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteScopeRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -749,13 +749,13 @@ class DeleteScopeRequest$Type extends MessageType<DeleteScopeRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ModuleName = 1 [json_name = "ModuleName"];*/ 1:
|
||||
message.moduleName = reader.string();
|
||||
message.ModuleName = reader.string();
|
||||
break;
|
||||
case /* string Client = 2 [json_name = "Client"];*/ 2:
|
||||
message.client = reader.string();
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* api.Scope Scope = 3 [json_name = "Scope"];*/ 3:
|
||||
message.scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
|
||||
message.Scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.Scope);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -770,14 +770,14 @@ class DeleteScopeRequest$Type extends MessageType<DeleteScopeRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: DeleteScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ModuleName = 1 [json_name = "ModuleName"]; */
|
||||
if (message.moduleName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.moduleName);
|
||||
if (message.ModuleName !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ModuleName);
|
||||
/* string Client = 2 [json_name = "Client"]; */
|
||||
if (message.client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.client);
|
||||
if (message.Client !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Client);
|
||||
/* api.Scope Scope = 3 [json_name = "Scope"]; */
|
||||
if (message.scope)
|
||||
Scope.internalBinaryWrite(message.scope, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Scope)
|
||||
Scope.internalBinaryWrite(message.Scope, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -830,13 +830,13 @@ export const DeleteScopeResult = new DeleteScopeResult$Type();
|
||||
class CleanScopeRequest$Type extends MessageType<CleanScopeRequest> {
|
||||
constructor() {
|
||||
super("api.CleanScopeRequest", [
|
||||
{ no: 1, name: "Client", kind: "scalar", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Scope", kind: "message", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } }
|
||||
{ no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CleanScopeRequest>): CleanScopeRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.client = "";
|
||||
message.Client = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CleanScopeRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -847,10 +847,10 @@ class CleanScopeRequest$Type extends MessageType<CleanScopeRequest> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Client = 1 [json_name = "Client"];*/ 1:
|
||||
message.client = reader.string();
|
||||
message.Client = reader.string();
|
||||
break;
|
||||
case /* api.Scope Scope = 2 [json_name = "Scope"];*/ 2:
|
||||
message.scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
|
||||
message.Scope = Scope.internalBinaryRead(reader, reader.uint32(), options, message.Scope);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -865,11 +865,11 @@ class CleanScopeRequest$Type extends MessageType<CleanScopeRequest> {
|
||||
}
|
||||
internalBinaryWrite(message: CleanScopeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Client = 1 [json_name = "Client"]; */
|
||||
if (message.client !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.client);
|
||||
if (message.Client !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Client);
|
||||
/* api.Scope Scope = 2 [json_name = "Scope"]; */
|
||||
if (message.scope)
|
||||
Scope.internalBinaryWrite(message.scope, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Scope)
|
||||
Scope.internalBinaryWrite(message.Scope, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user