Latest generation

This commit is contained in:
ci core model
2026-01-16 12:34:40 +00:00
parent f88953d031
commit 5d8b84e1f9
3 changed files with 46 additions and 145 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@reflex-platform/npm-core-sdk", "name": "@reflex-platform/npm-core-sdk",
"version": "1.13.0-SNAPSHOT-260116101933", "version": "1.13.0-SNAPSHOT-260116123343",
"description": "npm libs from core model proto files", "description": "npm libs from core model proto files",
"homepage": "", "homepage": "",
"main": "index.ts", "main": "index.ts",

150
role.ts
View File

@@ -14,6 +14,7 @@ import { MessageType } from "@protobuf-ts/runtime";
import { Paging } from "./base"; import { Paging } from "./base";
import { RequestProjectHeader } from "./shared"; import { RequestProjectHeader } from "./shared";
import { RequestOrganisationHeader } from "./shared"; import { RequestOrganisationHeader } from "./shared";
import { RoleTag } from "./shared";
import { Permission } from "./shared"; import { Permission } from "./shared";
import { ResourceType } from "./shared"; import { ResourceType } from "./shared";
/** /**
@@ -114,10 +115,6 @@ export interface CreatePlatformRoleRequest {
* @generated from protobuf field: string Description = 8 * @generated from protobuf field: string Description = 8
*/ */
Description: string; Description: string;
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 9
*/
Tags: RoleTag[];
} }
/** /**
* @generated from protobuf message api.CreatePlatformRoleResult * @generated from protobuf message api.CreatePlatformRoleResult
@@ -156,10 +153,6 @@ export interface CreateOrganisationRoleRequest {
* @generated from protobuf field: string Description = 7 * @generated from protobuf field: string Description = 7
*/ */
Description: string; Description: string;
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 9
*/
Tags: RoleTag[];
} }
/** /**
* @generated from protobuf message api.CreateOrganisationRoleResult * @generated from protobuf message api.CreateOrganisationRoleResult
@@ -198,10 +191,6 @@ export interface CreateProjectRoleRequest {
* @generated from protobuf field: string Description = 7 * @generated from protobuf field: string Description = 7
*/ */
Description: string; Description: string;
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 9
*/
Tags: RoleTag[];
} }
/** /**
* @generated from protobuf message api.CreateProjectRoleResult * @generated from protobuf message api.CreateProjectRoleResult
@@ -240,10 +229,6 @@ export interface UpdatePlatformRoleRequest {
* @generated from protobuf field: string Description = 8 * @generated from protobuf field: string Description = 8
*/ */
Description: string; Description: string;
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 9
*/
Tags: RoleTag[];
} }
/** /**
* @generated from protobuf message api.UpdatePlatformRoleResult * @generated from protobuf message api.UpdatePlatformRoleResult
@@ -282,10 +267,6 @@ export interface UpdateOrganisationRoleRequest {
* @generated from protobuf field: string Description = 7 * @generated from protobuf field: string Description = 7
*/ */
Description: string; Description: string;
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 9
*/
Tags: RoleTag[];
} }
/** /**
* @generated from protobuf message api.UpdateOrganisationRoleResult * @generated from protobuf message api.UpdateOrganisationRoleResult
@@ -324,10 +305,6 @@ export interface UpdateProjectRoleRequest {
* @generated from protobuf field: string Description = 7 * @generated from protobuf field: string Description = 7
*/ */
Description: string; Description: string;
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 9
*/
Tags: RoleTag[];
} }
/** /**
* @generated from protobuf message api.UpdateProjectRoleResult * @generated from protobuf message api.UpdateProjectRoleResult
@@ -706,23 +683,6 @@ export enum RoleType {
*/ */
ROLE_TYPE_COMPOSITE = 20 ROLE_TYPE_COMPOSITE = 20
} }
/**
* @generated from protobuf enum api.RoleTag
*/
export enum RoleTag {
/**
* @generated from protobuf enum value: ROLE_TAG_UNKNOWN = 0;
*/
ROLE_TAG_UNKNOWN = 0,
/**
* @generated from protobuf enum value: ROLE_TAG_PROJECT_ACTIVITY = 10;
*/
ROLE_TAG_PROJECT_ACTIVITY = 10,
/**
* @generated from protobuf enum value: ROLE_TAG_PROJECT_SITE = 20;
*/
ROLE_TAG_PROJECT_SITE = 20
}
// @generated message type with reflection information, may provide speed optimized methods // @generated message type with reflection information, may provide speed optimized methods
class Role$Type extends MessageType<Role> { class Role$Type extends MessageType<Role> {
constructor() { constructor() {
@@ -938,8 +898,7 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
]); ]);
} }
create(value?: PartialMessage<CreatePlatformRoleRequest>): CreatePlatformRoleRequest { create(value?: PartialMessage<CreatePlatformRoleRequest>): CreatePlatformRoleRequest {
@@ -950,7 +909,6 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
message.Type = 0; message.Type = 0;
message.ApplicationType = 0; message.ApplicationType = 0;
message.Description = ""; message.Description = "";
message.Tags = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<CreatePlatformRoleRequest>(this, message, value); reflectionMergePartial<CreatePlatformRoleRequest>(this, message, value);
return message; return message;
@@ -978,13 +936,6 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
case /* string Description */ 8: case /* string Description */ 8:
message.Description = reader.string(); message.Description = reader.string();
break; break;
case /* repeated api.RoleTag Tags */ 9:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1015,13 +966,6 @@ class CreatePlatformRoleRequest$Type extends MessageType<CreatePlatformRoleReque
/* string Description = 8; */ /* string Description = 8; */
if (message.Description !== "") if (message.Description !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Description); writer.tag(8, WireType.LengthDelimited).string(message.Description);
/* repeated api.RoleTag Tags = 9; */
if (message.Tags.length) {
writer.tag(9, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1087,8 +1031,7 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
]); ]);
} }
create(value?: PartialMessage<CreateOrganisationRoleRequest>): CreateOrganisationRoleRequest { create(value?: PartialMessage<CreateOrganisationRoleRequest>): CreateOrganisationRoleRequest {
@@ -1098,7 +1041,6 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
message.Permissions = []; message.Permissions = [];
message.Type = 0; message.Type = 0;
message.Description = ""; message.Description = "";
message.Tags = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<CreateOrganisationRoleRequest>(this, message, value); reflectionMergePartial<CreateOrganisationRoleRequest>(this, message, value);
return message; return message;
@@ -1126,13 +1068,6 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
case /* string Description */ 7: case /* string Description */ 7:
message.Description = reader.string(); message.Description = reader.string();
break; break;
case /* repeated api.RoleTag Tags */ 9:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1163,13 +1098,6 @@ class CreateOrganisationRoleRequest$Type extends MessageType<CreateOrganisationR
/* string Description = 7; */ /* string Description = 7; */
if (message.Description !== "") if (message.Description !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Description); writer.tag(7, WireType.LengthDelimited).string(message.Description);
/* repeated api.RoleTag Tags = 9; */
if (message.Tags.length) {
writer.tag(9, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1235,8 +1163,7 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
]); ]);
} }
create(value?: PartialMessage<CreateProjectRoleRequest>): CreateProjectRoleRequest { create(value?: PartialMessage<CreateProjectRoleRequest>): CreateProjectRoleRequest {
@@ -1246,7 +1173,6 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
message.Permissions = []; message.Permissions = [];
message.Type = 0; message.Type = 0;
message.Description = ""; message.Description = "";
message.Tags = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<CreateProjectRoleRequest>(this, message, value); reflectionMergePartial<CreateProjectRoleRequest>(this, message, value);
return message; return message;
@@ -1274,13 +1200,6 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
case /* string Description */ 7: case /* string Description */ 7:
message.Description = reader.string(); message.Description = reader.string();
break; break;
case /* repeated api.RoleTag Tags */ 9:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1311,13 +1230,6 @@ class CreateProjectRoleRequest$Type extends MessageType<CreateProjectRoleRequest
/* string Description = 7; */ /* string Description = 7; */
if (message.Description !== "") if (message.Description !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Description); writer.tag(7, WireType.LengthDelimited).string(message.Description);
/* repeated api.RoleTag Tags = 9; */
if (message.Tags.length) {
writer.tag(9, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1383,8 +1295,7 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
]); ]);
} }
create(value?: PartialMessage<UpdatePlatformRoleRequest>): UpdatePlatformRoleRequest { create(value?: PartialMessage<UpdatePlatformRoleRequest>): UpdatePlatformRoleRequest {
@@ -1395,7 +1306,6 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
message.Type = 0; message.Type = 0;
message.ApplicationType = 0; message.ApplicationType = 0;
message.Description = ""; message.Description = "";
message.Tags = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<UpdatePlatformRoleRequest>(this, message, value); reflectionMergePartial<UpdatePlatformRoleRequest>(this, message, value);
return message; return message;
@@ -1423,13 +1333,6 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
case /* string Description */ 8: case /* string Description */ 8:
message.Description = reader.string(); message.Description = reader.string();
break; break;
case /* repeated api.RoleTag Tags */ 9:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1460,13 +1363,6 @@ class UpdatePlatformRoleRequest$Type extends MessageType<UpdatePlatformRoleReque
/* string Description = 8; */ /* string Description = 8; */
if (message.Description !== "") if (message.Description !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Description); writer.tag(8, WireType.LengthDelimited).string(message.Description);
/* repeated api.RoleTag Tags = 9; */
if (message.Tags.length) {
writer.tag(9, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1532,8 +1428,7 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "validate.rules": { repeated: { minItems: "1" } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
]); ]);
} }
create(value?: PartialMessage<UpdateOrganisationRoleRequest>): UpdateOrganisationRoleRequest { create(value?: PartialMessage<UpdateOrganisationRoleRequest>): UpdateOrganisationRoleRequest {
@@ -1543,7 +1438,6 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
message.Permissions = []; message.Permissions = [];
message.Type = 0; message.Type = 0;
message.Description = ""; message.Description = "";
message.Tags = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<UpdateOrganisationRoleRequest>(this, message, value); reflectionMergePartial<UpdateOrganisationRoleRequest>(this, message, value);
return message; return message;
@@ -1571,13 +1465,6 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
case /* string Description */ 7: case /* string Description */ 7:
message.Description = reader.string(); message.Description = reader.string();
break; break;
case /* repeated api.RoleTag Tags */ 9:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1608,13 +1495,6 @@ class UpdateOrganisationRoleRequest$Type extends MessageType<UpdateOrganisationR
/* string Description = 7; */ /* string Description = 7; */
if (message.Description !== "") if (message.Description !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Description); writer.tag(7, WireType.LengthDelimited).string(message.Description);
/* repeated api.RoleTag Tags = 9; */
if (message.Tags.length) {
writer.tag(9, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1680,8 +1560,7 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
{ no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission },
{ no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }
{ no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
]); ]);
} }
create(value?: PartialMessage<UpdateProjectRoleRequest>): UpdateProjectRoleRequest { create(value?: PartialMessage<UpdateProjectRoleRequest>): UpdateProjectRoleRequest {
@@ -1691,7 +1570,6 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
message.Permissions = []; message.Permissions = [];
message.Type = 0; message.Type = 0;
message.Description = ""; message.Description = "";
message.Tags = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<UpdateProjectRoleRequest>(this, message, value); reflectionMergePartial<UpdateProjectRoleRequest>(this, message, value);
return message; return message;
@@ -1719,13 +1597,6 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
case /* string Description */ 7: case /* string Description */ 7:
message.Description = reader.string(); message.Description = reader.string();
break; break;
case /* repeated api.RoleTag Tags */ 9:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1756,13 +1627,6 @@ class UpdateProjectRoleRequest$Type extends MessageType<UpdateProjectRoleRequest
/* string Description = 7; */ /* string Description = 7; */
if (message.Description !== "") if (message.Description !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Description); writer.tag(7, WireType.LengthDelimited).string(message.Description);
/* repeated api.RoleTag Tags = 9; */
if (message.Tags.length) {
writer.tag(9, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -1765,6 +1765,10 @@ export interface Scope {
* @generated from protobuf field: bool Mandatory = 9 * @generated from protobuf field: bool Mandatory = 9
*/ */
Mandatory: boolean; // If mandatory, the scope will always be added to roles of the same RscType. For instance, a UI role "Project-Viewer" will inherit mandatory "Project" UI scopes. Mandatory: boolean; // If mandatory, the scope will always be added to roles of the same RscType. For instance, a UI role "Project-Viewer" will inherit mandatory "Project" UI scopes.
/**
* @generated from protobuf field: repeated api.RoleTag Tags = 10
*/
Tags: RoleTag[]; // Tags to categorize the scope, used to compute role tags
} }
/** /**
* @generated from protobuf message api.ClientAPI * @generated from protobuf message api.ClientAPI
@@ -2628,6 +2632,23 @@ export enum ResourceType {
*/ */
RESOURCE_TYPE_CLAIMTYPE = 70 RESOURCE_TYPE_CLAIMTYPE = 70
} }
/**
* @generated from protobuf enum api.RoleTag
*/
export enum RoleTag {
/**
* @generated from protobuf enum value: ROLE_TAG_UNKNOWN = 0;
*/
ROLE_TAG_UNKNOWN = 0,
/**
* @generated from protobuf enum value: ROLE_TAG_PROJECT_ACTIVITY = 10;
*/
ROLE_TAG_PROJECT_ACTIVITY = 10,
/**
* @generated from protobuf enum value: ROLE_TAG_PROJECT_SITE = 20;
*/
ROLE_TAG_PROJECT_SITE = 20
}
/** /**
* @generated from protobuf enum api.PeriodUnit * @generated from protobuf enum api.PeriodUnit
*/ */
@@ -7443,7 +7464,8 @@ class Scope$Type extends MessageType<Scope> {
{ no: 6, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "AppliesOnIDs", kind: "scalar", localName: "AppliesOnIDs", jsonName: "AppliesOnIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "AppliesOnIDs", kind: "scalar", localName: "AppliesOnIDs", jsonName: "AppliesOnIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ModuleID", kind: "scalar", localName: "ModuleID", jsonName: "ModuleID", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "ModuleID", kind: "scalar", localName: "ModuleID", jsonName: "ModuleID", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "Mandatory", kind: "scalar", localName: "Mandatory", jsonName: "Mandatory", T: 8 /*ScalarType.BOOL*/ } { no: 9, name: "Mandatory", kind: "scalar", localName: "Mandatory", jsonName: "Mandatory", T: 8 /*ScalarType.BOOL*/ },
{ no: 10, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Service"] } } }); ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Service"] } } });
} }
create(value?: PartialMessage<Scope>): Scope { create(value?: PartialMessage<Scope>): Scope {
@@ -7457,6 +7479,7 @@ class Scope$Type extends MessageType<Scope> {
message.AppliesOnIDs = []; message.AppliesOnIDs = [];
message.ModuleID = ""; message.ModuleID = "";
message.Mandatory = false; message.Mandatory = false;
message.Tags = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<Scope>(this, message, value); reflectionMergePartial<Scope>(this, message, value);
return message; return message;
@@ -7493,6 +7516,13 @@ class Scope$Type extends MessageType<Scope> {
case /* bool Mandatory */ 9: case /* bool Mandatory */ 9:
message.Mandatory = reader.bool(); message.Mandatory = reader.bool();
break; break;
case /* repeated api.RoleTag Tags */ 10:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.Tags.push(reader.int32());
else
message.Tags.push(reader.int32());
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -7532,6 +7562,13 @@ class Scope$Type extends MessageType<Scope> {
/* bool Mandatory = 9; */ /* bool Mandatory = 9; */
if (message.Mandatory !== false) if (message.Mandatory !== false)
writer.tag(9, WireType.Varint).bool(message.Mandatory); writer.tag(9, WireType.Varint).bool(message.Mandatory);
/* repeated api.RoleTag Tags = 10; */
if (message.Tags.length) {
writer.tag(10, WireType.LengthDelimited).fork();
for (let i = 0; i < message.Tags.length; i++)
writer.int32(message.Tags[i]);
writer.join();
}
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);