chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-19 07:52:48 +00:00
parent 4be5b29131
commit 3b2df0aed6
6 changed files with 591 additions and 94 deletions

View File

@@ -142,6 +142,22 @@ export interface GetBlockedUsersResponse {
blockedUsers: BlockedUserItem[];
}
export interface SystemGetProfileBatchRequest {
userIds: string[];
}
export interface ProfileBasicItem {
id: string;
email?: string | undefined;
phone?: string | undefined;
fullName?: string | undefined;
isPublic: boolean;
}
export interface SystemGetProfileBatchResponse {
profiles: ProfileBasicItem[];
}
export const USERS_V1_PACKAGE_NAME = "users.v1";
export interface UsersServiceClient {
@@ -166,6 +182,11 @@ export interface UsersServiceClient {
addContact(request: AddContactRequest, metadata?: Metadata): Observable<AddContactResponse>;
getContacts(request: GetContactsRequest, metadata?: Metadata): Observable<GetContactsResponse>;
systemGetProfileBatch(
request: SystemGetProfileBatchRequest,
metadata?: Metadata,
): Observable<SystemGetProfileBatchResponse>;
}
export interface UsersServiceController {
@@ -217,6 +238,11 @@ export interface UsersServiceController {
request: GetContactsRequest,
metadata?: Metadata,
): Promise<GetContactsResponse> | Observable<GetContactsResponse> | GetContactsResponse;
systemGetProfileBatch(
request: SystemGetProfileBatchRequest,
metadata?: Metadata,
): Promise<SystemGetProfileBatchResponse> | Observable<SystemGetProfileBatchResponse> | SystemGetProfileBatchResponse;
}
export function UsersServiceControllerMethods() {
@@ -231,6 +257,7 @@ export function UsersServiceControllerMethods() {
"getBlockedUsers",
"addContact",
"getContacts",
"systemGetProfileBatch",
];
for (const method of grpcMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);