You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250606093252",
|
||||
"version": "1.11.0-SNAPSHOT-250606113828",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -14,12 +14,16 @@ import type { DeleteRoleExternalPermissionsResult } from "./role";
|
||||
import type { DeleteRoleExternalPermissionsRequest } from "./role";
|
||||
import type { PutRoleExternalPermissionsResult } from "./role";
|
||||
import type { PutRoleExternalPermissionsRequest } from "./role";
|
||||
import type { ListSiteRolesResult } from "./role";
|
||||
import type { ListSiteRolesRequest } from "./role";
|
||||
import type { ListProjectRolesResult } from "./role";
|
||||
import type { ListProjectRolesRequest } from "./role";
|
||||
import type { ListOrganisationRolesResult } from "./role";
|
||||
import type { ListOrganisationRolesRequest } from "./role";
|
||||
import type { ListPlatformRolesResult } from "./role";
|
||||
import type { ListPlatformRolesRequest } from "./role";
|
||||
import type { GetSiteRoleResult } from "./role";
|
||||
import type { GetSiteRoleRequest } from "./role";
|
||||
import type { GetProjectRoleResult } from "./role";
|
||||
import type { GetProjectRoleRequest } from "./role";
|
||||
import type { GetOrganisationRoleResult } from "./role";
|
||||
@@ -105,6 +109,10 @@ export interface IRoleServiceClient {
|
||||
* @generated from protobuf rpc: GetProjectRole
|
||||
*/
|
||||
getProjectRole(input: GetProjectRoleRequest, options?: RpcOptions): UnaryCall<GetProjectRoleRequest, GetProjectRoleResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSiteRole
|
||||
*/
|
||||
getSiteRole(input: GetSiteRoleRequest, options?: RpcOptions): UnaryCall<GetSiteRoleRequest, GetSiteRoleResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListPlatformRoles
|
||||
*/
|
||||
@@ -117,6 +125,10 @@ export interface IRoleServiceClient {
|
||||
* @generated from protobuf rpc: ListProjectRoles
|
||||
*/
|
||||
listProjectRoles(input: ListProjectRolesRequest, options?: RpcOptions): UnaryCall<ListProjectRolesRequest, ListProjectRolesResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSiteRoles
|
||||
*/
|
||||
listSiteRoles(input: ListSiteRolesRequest, options?: RpcOptions): UnaryCall<ListSiteRolesRequest, ListSiteRolesResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: PutRoleExternalPermissions
|
||||
*/
|
||||
@@ -238,60 +250,74 @@ export class RoleServiceClient implements IRoleServiceClient, ServiceInfo {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetProjectRoleRequest, GetProjectRoleResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetSiteRole
|
||||
*/
|
||||
getSiteRole(input: GetSiteRoleRequest, options?: RpcOptions): UnaryCall<GetSiteRoleRequest, GetSiteRoleResult> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetSiteRoleRequest, GetSiteRoleResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListPlatformRoles
|
||||
*/
|
||||
listPlatformRoles(input: ListPlatformRolesRequest, options?: RpcOptions): UnaryCall<ListPlatformRolesRequest, ListPlatformRolesResult> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListPlatformRolesRequest, ListPlatformRolesResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListOrganisationRoles
|
||||
*/
|
||||
listOrganisationRoles(input: ListOrganisationRolesRequest, options?: RpcOptions): UnaryCall<ListOrganisationRolesRequest, ListOrganisationRolesResult> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListOrganisationRolesRequest, ListOrganisationRolesResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListProjectRoles
|
||||
*/
|
||||
listProjectRoles(input: ListProjectRolesRequest, options?: RpcOptions): UnaryCall<ListProjectRolesRequest, ListProjectRolesResult> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListProjectRolesRequest, ListProjectRolesResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListSiteRoles
|
||||
*/
|
||||
listSiteRoles(input: ListSiteRolesRequest, options?: RpcOptions): UnaryCall<ListSiteRolesRequest, ListSiteRolesResult> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListSiteRolesRequest, ListSiteRolesResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: PutRoleExternalPermissions
|
||||
*/
|
||||
putRoleExternalPermissions(input: PutRoleExternalPermissionsRequest, options?: RpcOptions): UnaryCall<PutRoleExternalPermissionsRequest, PutRoleExternalPermissionsResult> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PutRoleExternalPermissionsRequest, PutRoleExternalPermissionsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteRoleExternalPermissions
|
||||
*/
|
||||
deleteRoleExternalPermissions(input: DeleteRoleExternalPermissionsRequest, options?: RpcOptions): UnaryCall<DeleteRoleExternalPermissionsRequest, DeleteRoleExternalPermissionsResult> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteRoleExternalPermissionsRequest, DeleteRoleExternalPermissionsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: PropagateRolesOnResource
|
||||
*/
|
||||
propagateRolesOnResource(input: PropagateRolesOnResourceRequest, options?: RpcOptions): UnaryCall<PropagateRolesOnResourceRequest, PropagateRolesOnResourceResult> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PropagateRolesOnResourceRequest, PropagateRolesOnResourceResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteRolesOnResource
|
||||
*/
|
||||
deleteRolesOnResource(input: DeleteRolesOnResourceRequest, options?: RpcOptions): UnaryCall<DeleteRolesOnResourceRequest, DeleteRolesOnResourceResult> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteRolesOnResourceRequest, DeleteRolesOnResourceResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetRoleResourceTypes
|
||||
*/
|
||||
getRoleResourceTypes(input: GetRoleResourceTypesRequest, options?: RpcOptions): UnaryCall<GetRoleResourceTypesRequest, GetRoleResourceTypesResult> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetRoleResourceTypesRequest, GetRoleResourceTypesResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
283
role.ts
283
role.ts
@@ -12,6 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { Paging } from "./base";
|
||||
import { RequestSiteHeader } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
import { RequestOrganisationHeader } from "./shared";
|
||||
import { Permission } from "./shared";
|
||||
@@ -384,6 +385,32 @@ export interface GetProjectRoleResult {
|
||||
*/
|
||||
Result?: Role;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetSiteRoleRequest
|
||||
*/
|
||||
export interface GetSiteRoleRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2
|
||||
*/
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.ResourceType ResourceType = 3
|
||||
*/
|
||||
ResourceType: ResourceType;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetSiteRoleResult
|
||||
*/
|
||||
export interface GetSiteRoleResult {
|
||||
/**
|
||||
* @generated from protobuf field: api.Role Result = 1
|
||||
*/
|
||||
Result?: Role;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListPlatformRolesRequest
|
||||
*/
|
||||
@@ -474,6 +501,36 @@ export interface ListProjectRolesResult {
|
||||
*/
|
||||
Results: Role[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListSiteRolesRequest
|
||||
*/
|
||||
export interface ListSiteRolesRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.ResourceType ResourceType = 2
|
||||
*/
|
||||
ResourceType: ResourceType;
|
||||
/**
|
||||
* @generated from protobuf field: api.Paging Paging = 3
|
||||
*/
|
||||
Paging?: Paging;
|
||||
/**
|
||||
* @generated from protobuf field: api.RoleType Type = 4
|
||||
*/
|
||||
Type: RoleType;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ListSiteRolesResult
|
||||
*/
|
||||
export interface ListSiteRolesResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Role Results = 1
|
||||
*/
|
||||
Results: Role[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.PutRoleExternalPermissionsRequest
|
||||
*/
|
||||
@@ -1980,6 +2037,114 @@ class GetProjectRoleResult$Type extends MessageType<GetProjectRoleResult> {
|
||||
*/
|
||||
export const GetProjectRoleResult = new GetProjectRoleResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetSiteRoleRequest$Type extends MessageType<GetSiteRoleRequest> {
|
||||
constructor() {
|
||||
super("api.GetSiteRoleRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } },
|
||||
{ no: 3, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetSiteRoleRequest>): GetSiteRoleRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Name = "";
|
||||
message.ResourceType = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteRoleRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteRoleRequest): GetSiteRoleRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Name */ 2:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* api.ResourceType ResourceType */ 3:
|
||||
message.ResourceType = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetSiteRoleRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Name = 2; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
/* api.ResourceType ResourceType = 3; */
|
||||
if (message.ResourceType !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.ResourceType);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetSiteRoleRequest
|
||||
*/
|
||||
export const GetSiteRoleRequest = new GetSiteRoleRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetSiteRoleResult$Type extends MessageType<GetSiteRoleResult> {
|
||||
constructor() {
|
||||
super("api.GetSiteRoleResult", [
|
||||
{ no: 1, name: "Result", kind: "message", localName: "Result", jsonName: "Result", T: () => Role }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetSiteRoleResult>): GetSiteRoleResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetSiteRoleResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteRoleResult): GetSiteRoleResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Role Result */ 1:
|
||||
message.Result = Role.internalBinaryRead(reader, reader.uint32(), options, message.Result);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetSiteRoleResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Role Result = 1; */
|
||||
if (message.Result)
|
||||
Role.internalBinaryWrite(message.Result, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetSiteRoleResult
|
||||
*/
|
||||
export const GetSiteRoleResult = new GetSiteRoleResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListPlatformRolesRequest$Type extends MessageType<ListPlatformRolesRequest> {
|
||||
constructor() {
|
||||
super("api.ListPlatformRolesRequest", [
|
||||
@@ -2329,6 +2494,122 @@ class ListProjectRolesResult$Type extends MessageType<ListProjectRolesResult> {
|
||||
*/
|
||||
export const ListProjectRolesResult = new ListProjectRolesResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListSiteRolesRequest$Type extends MessageType<ListSiteRolesRequest> {
|
||||
constructor() {
|
||||
super("api.ListSiteRolesRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] },
|
||||
{ no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging },
|
||||
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType] }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListSiteRolesRequest>): ListSiteRolesRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ResourceType = 0;
|
||||
message.Type = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSiteRolesRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteRolesRequest): ListSiteRolesRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.ResourceType ResourceType */ 2:
|
||||
message.ResourceType = reader.int32();
|
||||
break;
|
||||
case /* api.Paging Paging */ 3:
|
||||
message.Paging = Paging.internalBinaryRead(reader, reader.uint32(), options, message.Paging);
|
||||
break;
|
||||
case /* api.RoleType Type */ 4:
|
||||
message.Type = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListSiteRolesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ResourceType ResourceType = 2; */
|
||||
if (message.ResourceType !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.ResourceType);
|
||||
/* api.Paging Paging = 3; */
|
||||
if (message.Paging)
|
||||
Paging.internalBinaryWrite(message.Paging, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.RoleType Type = 4; */
|
||||
if (message.Type !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.Type);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ListSiteRolesRequest
|
||||
*/
|
||||
export const ListSiteRolesRequest = new ListSiteRolesRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListSiteRolesResult$Type extends MessageType<ListSiteRolesResult> {
|
||||
constructor() {
|
||||
super("api.ListSiteRolesResult", [
|
||||
{ no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Role }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListSiteRolesResult>): ListSiteRolesResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Results = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListSiteRolesResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteRolesResult): ListSiteRolesResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Role Results */ 1:
|
||||
message.Results.push(Role.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListSiteRolesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Role Results = 1; */
|
||||
for (let i = 0; i < message.Results.length; i++)
|
||||
Role.internalBinaryWrite(message.Results[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);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ListSiteRolesResult
|
||||
*/
|
||||
export const ListSiteRolesResult = new ListSiteRolesResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class PutRoleExternalPermissionsRequest$Type extends MessageType<PutRoleExternalPermissionsRequest> {
|
||||
constructor() {
|
||||
super("api.PutRoleExternalPermissionsRequest", [
|
||||
@@ -3212,9 +3493,11 @@ export const RoleService = new ServiceType("api.RoleService", [
|
||||
{ name: "GetPlatformRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get Platform role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPlatformRoleRequest, O: GetPlatformRoleResult },
|
||||
{ name: "GetOrganisationRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get Organisation role" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: GetOrganisationRoleRequest, O: GetOrganisationRoleResult },
|
||||
{ name: "GetProjectRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get Project role" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectRoleRequest, O: GetProjectRoleResult },
|
||||
{ name: "GetSiteRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Get Site role" }, "api.rscType": "Site", "api.roles": "Platform.Site-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteRoleRequest, O: GetSiteRoleResult },
|
||||
{ name: "ListPlatformRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "List Platform role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListPlatformRolesRequest, O: ListPlatformRolesResult },
|
||||
{ name: "ListOrganisationRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "List Organisation role" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListOrganisationRolesRequest, O: ListOrganisationRolesResult },
|
||||
{ name: "ListProjectRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "List Project role" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListProjectRolesRequest, O: ListProjectRolesResult },
|
||||
{ name: "ListSiteRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "List Site role" }, "api.rscType": "Site", "api.roles": "Platform.Site-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListSiteRolesRequest, O: ListSiteRolesResult },
|
||||
{ name: "PutRoleExternalPermissions", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Put external permissions on role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: PutRoleExternalPermissionsRequest, O: PutRoleExternalPermissionsResult },
|
||||
{ name: "DeleteRoleExternalPermissions", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Delete external permissions on role" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteRoleExternalPermissionsRequest, O: DeleteRoleExternalPermissionsResult },
|
||||
{ name: "PropagateRolesOnResource", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Roles"], description: "Propagate roles on resource" }, "api.rscType": "Platform", "api.roles": "Platform.Role", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: PropagateRolesOnResourceRequest, O: PropagateRolesOnResourceResult },
|
||||
|
||||
Reference in New Issue
Block a user