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

@@ -1765,6 +1765,10 @@ export interface Scope {
* @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.
/**
* @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
@@ -2628,6 +2632,23 @@ export enum ResourceType {
*/
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
*/
@@ -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: 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: 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"] } } });
}
create(value?: PartialMessage<Scope>): Scope {
@@ -7457,6 +7479,7 @@ class Scope$Type extends MessageType<Scope> {
message.AppliesOnIDs = [];
message.ModuleID = "";
message.Mandatory = false;
message.Tags = [];
if (value !== undefined)
reflectionMergePartial<Scope>(this, message, value);
return message;
@@ -7493,6 +7516,13 @@ class Scope$Type extends MessageType<Scope> {
case /* bool Mandatory */ 9:
message.Mandatory = reader.bool();
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:
let u = options.readUnknownField;
if (u === "throw")
@@ -7532,6 +7562,13 @@ class Scope$Type extends MessageType<Scope> {
/* bool Mandatory = 9; */
if (message.Mandatory !== false)
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;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);