Latest generation

This commit is contained in:
ci core model
2025-11-21 14:13:30 +00:00
parent d6c07eb239
commit 8e91d206c5
5 changed files with 125 additions and 18 deletions

69
user.ts
View File

@@ -377,6 +377,19 @@ export interface GetProjectUserRequest {
*/
UserID: string;
}
/**
* @generated from protobuf message api.GetProjectUserByMailRequest
*/
export interface GetProjectUserByMailRequest {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: string UserMail = 2
*/
UserMail: string;
}
/**
* @generated from protobuf message api.ListUserPlatformRolesRequest
*/
@@ -2519,6 +2532,61 @@ class GetProjectUserRequest$Type extends MessageType<GetProjectUserRequest> {
*/
export const GetProjectUserRequest = new GetProjectUserRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetProjectUserByMailRequest$Type extends MessageType<GetProjectUserByMailRequest> {
constructor() {
super("api.GetProjectUserByMailRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "UserMail", kind: "scalar", localName: "UserMail", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } });
}
create(value?: PartialMessage<GetProjectUserByMailRequest>): GetProjectUserByMailRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.UserMail = "";
if (value !== undefined)
reflectionMergePartial<GetProjectUserByMailRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectUserByMailRequest): GetProjectUserByMailRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string UserMail */ 2:
message.UserMail = reader.string();
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: GetProjectUserByMailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string UserMail = 2; */
if (message.UserMail !== "")
writer.tag(2, WireType.LengthDelimited).string(message.UserMail);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetProjectUserByMailRequest
*/
export const GetProjectUserByMailRequest = new GetProjectUserByMailRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserPlatformRolesRequest$Type extends MessageType<ListUserPlatformRolesRequest> {
constructor() {
super("api.ListUserPlatformRolesRequest", [
@@ -5683,6 +5751,7 @@ export const UserService = new ServiceType("api.UserService", [
{ name: "GetPlatformUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details. The user must have at least a platform role." }, "api.rscType": "Platform", "api.roles": "Platform.User", "google.api.method_visibility": { restriction: "SDK" } }, I: GetPlatformUserRequest, O: GetPlatformUserResult },
{ name: "GetOrganisationUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details. The user must have at least an organisation role." }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetOrganisationUserRequest, O: GetOrganisationUserResult },
{ name: "GetProjectUser", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details. The user must have at least a project role." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectUserRequest, O: GetProjectUserResult },
{ name: "GetProjectUserByMail", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Get user details." }, "api.rscType": "Platform", "api.roles": "Platform.Project-User", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetProjectUserByMailRequest, O: GetProjectUserResult },
{ name: "ListPlatformRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List Platform Roles of a user" }, "api.rscType": "Platform", "api.roles": "Platform.Platform-User", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserPlatformRolesRequest, O: ListUserPlatformRolesResult },
{ name: "ListOrganisationRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List Organisation Roles of a user" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserOrganisationRolesRequest, O: ListUserOrganisationRolesResult },
{ name: "ListProjectRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List Project Roles of a user" }, "api.rscType": "Project", "api.roles": "Platform.Project-Role", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserProjectRolesRequest, O: ListUserProjectRolesResult },