From c45d50619504d12aeb5e41ff2b529d423d0713cc Mon Sep 17 00:00:00 2001 From: ci core model Date: Mon, 22 Dec 2025 14:05:44 +0000 Subject: [PATCH] Latest generation --- package.json | 2 +- user.client.ts | 48 ++++++++++++++++++++++++++---------------- user.ts | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 779e8c0..3a69e4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-251222093928", + "version": "1.13.0-SNAPSHOT-251222140458", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/user.client.ts b/user.client.ts index d488fd9..d4632c2 100644 --- a/user.client.ts +++ b/user.client.ts @@ -38,6 +38,7 @@ import type { GetProjectUserResult } from "./user"; import type { GetProjectUserRequest } from "./user"; import type { GetOrganisationUserResult } from "./user"; import type { GetOrganisationUserRequest } from "./user"; +import type { GetPlatformUserByMailRequest } from "./user"; import type { GetPlatformUserResult } from "./user"; import type { GetPlatformUserRequest } from "./user"; import type { ListUsersInConnectionRoleRequest } from "./user"; @@ -220,6 +221,10 @@ export interface IUserServiceClient { * @generated from protobuf rpc: GetPlatformUser */ getPlatformUser(input: GetPlatformUserRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: GetPlatformUserByMail + */ + getPlatformUserByMail(input: GetPlatformUserByMailRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetOrganisationUser */ @@ -526,130 +531,137 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo { const method = this.methods[31], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: GetPlatformUserByMail + */ + getPlatformUserByMail(input: GetPlatformUserByMailRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[32], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } /** * @generated from protobuf rpc: GetOrganisationUser */ getOrganisationUser(input: GetOrganisationUserRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[32], opt = this._transport.mergeOptions(options); + const method = this.methods[33], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetProjectUser */ getProjectUser(input: GetProjectUserRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[33], opt = this._transport.mergeOptions(options); + const method = this.methods[34], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetProjectUserByMail */ getProjectUserByMail(input: GetProjectUserByMailRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[34], opt = this._transport.mergeOptions(options); + const method = this.methods[35], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListPlatformRoles */ listPlatformRoles(input: ListUserPlatformRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[35], opt = this._transport.mergeOptions(options); + const method = this.methods[36], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListOrganisationRoles */ listOrganisationRoles(input: ListUserOrganisationRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[36], opt = this._transport.mergeOptions(options); + const method = this.methods[37], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListProjectRoles */ listProjectRoles(input: ListUserProjectRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[37], opt = this._transport.mergeOptions(options); + const method = this.methods[38], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListPartnerAppRoles */ listPartnerAppRoles(input: ListUserPartnerAppRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[38], opt = this._transport.mergeOptions(options); + const method = this.methods[39], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListConnectionRoles */ listConnectionRoles(input: ListUserConnectionRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[39], opt = this._transport.mergeOptions(options); + const method = this.methods[40], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListAttachmentTypeRoles */ listAttachmentTypeRoles(input: ListUserAttachmentTypeRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[40], opt = this._transport.mergeOptions(options); + const method = this.methods[41], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: SetPlatformRoles */ setPlatformRoles(input: SetUserPlatformRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[41], opt = this._transport.mergeOptions(options); + const method = this.methods[42], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: SetOrganisationRoles */ setOrganisationRoles(input: SetUserOrganisationRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[42], opt = this._transport.mergeOptions(options); + const method = this.methods[43], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: SetProjectRoles */ setProjectRoles(input: SetUserProjectRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[43], opt = this._transport.mergeOptions(options); + const method = this.methods[44], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: SetPartnerAppRoles */ setPartnerAppRoles(input: SetUserPartnerAppRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[44], opt = this._transport.mergeOptions(options); + const method = this.methods[45], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: SetConnectionRoles */ setConnectionRoles(input: SetUserConnectionRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[45], opt = this._transport.mergeOptions(options); + const method = this.methods[46], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: SetAttachmentTypeRoles */ setAttachmentTypeRoles(input: SetUserAttachmentTypeRolesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[46], opt = this._transport.mergeOptions(options); + const method = this.methods[47], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ForceTwoFA */ forceTwoFA(input: ForceTwoFAOrganisationRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[47], opt = this._transport.mergeOptions(options); + const method = this.methods[48], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ForceProjectUserTwoFA */ forceProjectUserTwoFA(input: ForceProjectUserTwoFARequest, options?: RpcOptions): UnaryCall { - const method = this.methods[48], opt = this._transport.mergeOptions(options); + const method = this.methods[49], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: UpdatePlatformTwoFA */ updatePlatformTwoFA(input: UpdateTwoFAPlatformRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[49], opt = this._transport.mergeOptions(options); + const method = this.methods[50], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/user.ts b/user.ts index afe35fb..839a4be 100644 --- a/user.ts +++ b/user.ts @@ -359,6 +359,15 @@ export interface GetPlatformUserRequest { */ UserID: string; } +/** + * @generated from protobuf message api.GetPlatformUserByMailRequest + */ +export interface GetPlatformUserByMailRequest { + /** + * @generated from protobuf field: string UserMail = 1 + */ + UserMail: string; +} /** * @generated from protobuf message api.GetOrganisationUserRequest */ @@ -2456,6 +2465,53 @@ class GetPlatformUserRequest$Type extends MessageType { */ export const GetPlatformUserRequest = new GetPlatformUserRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods +class GetPlatformUserByMailRequest$Type extends MessageType { + constructor() { + super("api.GetPlatformUserByMailRequest", [ + { no: 1, 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: ["UserMail"] } } }); + } + create(value?: PartialMessage): GetPlatformUserByMailRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + message.UserMail = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPlatformUserByMailRequest): GetPlatformUserByMailRequest { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string UserMail */ 1: + 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: GetPlatformUserByMailRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string UserMail = 1; */ + if (message.UserMail !== "") + writer.tag(1, 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.GetPlatformUserByMailRequest + */ +export const GetPlatformUserByMailRequest = new GetPlatformUserByMailRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods class GetOrganisationUserRequest$Type extends MessageType { constructor() { super("api.GetOrganisationUserRequest", [ @@ -5797,6 +5853,7 @@ export const UserService = new ServiceType("api.UserService", [ { name: "ListUsersInPartnerAppRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List users with a specific partner app role. If the user has one of the provided roles, it will be returned." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUsersInPartnerAppRoleRequest, O: ListUsersInRoleResult }, { name: "ListUsersInConnectionRole", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "List users with a specific connection role. If the user has one of the provided roles, it will be returned." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUsersInConnectionRoleRequest, O: ListUsersInRoleResult }, { 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: "GetPlatformUserByMail", 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: GetPlatformUserByMailRequest, 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": "Platform.Project-User", "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 },