chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-04 15:43:54 +00:00
parent bf518104e4
commit a5b2ecc555
3 changed files with 321 additions and 49 deletions

View File

@@ -49,6 +49,24 @@ export interface ChangePasswordResponse {
message: string;
}
export interface ChangeDataRequest {
userId: string;
sessionId: string;
email?: string | undefined;
phone?: string | undefined;
fullName?: string | undefined;
avatarUrl?: string | undefined;
customStatusText?: string | undefined;
customStatusEmoji?: string | undefined;
timezone?: string | undefined;
language?: string | undefined;
}
export interface ChangeDataResponse {
success: boolean;
message: string;
}
export interface SetPinRequest {
userId: string;
sessionId: string;
@@ -100,6 +118,8 @@ export interface AccountServiceClient {
changePassword(request: ChangePasswordRequest, metadata?: Metadata): Observable<ChangePasswordResponse>;
changeData(request: ChangeDataRequest, metadata?: Metadata): Observable<ChangeDataResponse>;
setPin(request: SetPinRequest, metadata?: Metadata): Observable<SetPinResponse>;
unlockPin(request: UnlockPinRequest, metadata?: Metadata): Observable<UnlockPinResponse>;
@@ -120,6 +140,11 @@ export interface AccountServiceController {
metadata?: Metadata,
): Promise<ChangePasswordResponse> | Observable<ChangePasswordResponse> | ChangePasswordResponse;
changeData(
request: ChangeDataRequest,
metadata?: Metadata,
): Promise<ChangeDataResponse> | Observable<ChangeDataResponse> | ChangeDataResponse;
setPin(
request: SetPinRequest,
metadata?: Metadata,
@@ -143,7 +168,15 @@ export interface AccountServiceController {
export function AccountServiceControllerMethods() {
return function (constructor: Function) {
const grpcMethods: string[] = ["getAccount", "changePassword", "setPin", "unlockPin", "getPinStatus", "removePin"];
const grpcMethods: string[] = [
"getAccount",
"changePassword",
"changeData",
"setPin",
"unlockPin",
"getPinStatus",
"removePin",
];
for (const method of grpcMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
GrpcMethod("AccountService", method)(constructor.prototype[method], method, descriptor);