mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-01 19:59:44 +00:00
chore: add user setting service definition
This commit is contained in:
146
frontend/types/proto/api/v2/user_setting_service_pb.d.ts
vendored
Normal file
146
frontend/types/proto/api/v2/user_setting_service_pb.d.ts
vendored
Normal file
@ -0,0 +1,146 @@
|
||||
// @generated by protoc-gen-es v1.3.0
|
||||
// @generated from file api/v2/user_setting_service.proto (package slash.api.v2, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UserSetting
|
||||
*/
|
||||
export declare class UserSetting extends Message<UserSetting> {
|
||||
/**
|
||||
* id is the user id.
|
||||
*
|
||||
* @generated from field: int32 id = 1;
|
||||
*/
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* locale is the user locale.
|
||||
*
|
||||
* @generated from field: string locale = 2;
|
||||
*/
|
||||
locale: string;
|
||||
|
||||
constructor(data?: PartialMessage<UserSetting>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.UserSetting";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserSetting;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserSetting;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserSetting;
|
||||
|
||||
static equals(a: UserSetting | PlainMessage<UserSetting> | undefined, b: UserSetting | PlainMessage<UserSetting> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.GetUserSettingRequest
|
||||
*/
|
||||
export declare class GetUserSettingRequest extends Message<GetUserSettingRequest> {
|
||||
/**
|
||||
* id is the user id.
|
||||
*
|
||||
* @generated from field: int32 id = 1;
|
||||
*/
|
||||
id: number;
|
||||
|
||||
constructor(data?: PartialMessage<GetUserSettingRequest>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.GetUserSettingRequest";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingRequest;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingRequest;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingRequest;
|
||||
|
||||
static equals(a: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined, b: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.GetUserSettingResponse
|
||||
*/
|
||||
export declare class GetUserSettingResponse extends Message<GetUserSettingResponse> {
|
||||
/**
|
||||
* @generated from field: slash.api.v2.UserSetting user_setting = 1;
|
||||
*/
|
||||
userSetting?: UserSetting;
|
||||
|
||||
constructor(data?: PartialMessage<GetUserSettingResponse>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.GetUserSettingResponse";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingResponse;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingResponse;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingResponse;
|
||||
|
||||
static equals(a: GetUserSettingResponse | PlainMessage<GetUserSettingResponse> | undefined, b: GetUserSettingResponse | PlainMessage<GetUserSettingResponse> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserSettingRequest
|
||||
*/
|
||||
export declare class UpdateUserSettingRequest extends Message<UpdateUserSettingRequest> {
|
||||
/**
|
||||
* id is the user id.
|
||||
*
|
||||
* @generated from field: int32 id = 1;
|
||||
*/
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* @generated from field: slash.api.v2.UserSetting user_setting = 2;
|
||||
*/
|
||||
userSetting?: UserSetting;
|
||||
|
||||
constructor(data?: PartialMessage<UpdateUserSettingRequest>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.UpdateUserSettingRequest";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserSettingRequest;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserSettingRequest;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserSettingRequest;
|
||||
|
||||
static equals(a: UpdateUserSettingRequest | PlainMessage<UpdateUserSettingRequest> | undefined, b: UpdateUserSettingRequest | PlainMessage<UpdateUserSettingRequest> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserSettingResponse
|
||||
*/
|
||||
export declare class UpdateUserSettingResponse extends Message<UpdateUserSettingResponse> {
|
||||
/**
|
||||
* @generated from field: slash.api.v2.UserSetting user_setting = 1;
|
||||
*/
|
||||
userSetting?: UserSetting;
|
||||
|
||||
constructor(data?: PartialMessage<UpdateUserSettingResponse>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.UpdateUserSettingResponse";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserSettingResponse;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserSettingResponse;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserSettingResponse;
|
||||
|
||||
static equals(a: UpdateUserSettingResponse | PlainMessage<UpdateUserSettingResponse> | undefined, b: UpdateUserSettingResponse | PlainMessage<UpdateUserSettingResponse> | undefined): boolean;
|
||||
}
|
||||
|
59
frontend/types/proto/api/v2/user_setting_service_pb.js
Normal file
59
frontend/types/proto/api/v2/user_setting_service_pb.js
Normal file
@ -0,0 +1,59 @@
|
||||
// @generated by protoc-gen-es v1.3.0
|
||||
// @generated from file api/v2/user_setting_service.proto (package slash.api.v2, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UserSetting
|
||||
*/
|
||||
export const UserSetting = proto3.makeMessageType(
|
||||
"slash.api.v2.UserSetting",
|
||||
() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 2, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.GetUserSettingRequest
|
||||
*/
|
||||
export const GetUserSettingRequest = proto3.makeMessageType(
|
||||
"slash.api.v2.GetUserSettingRequest",
|
||||
() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.GetUserSettingResponse
|
||||
*/
|
||||
export const GetUserSettingResponse = proto3.makeMessageType(
|
||||
"slash.api.v2.GetUserSettingResponse",
|
||||
() => [
|
||||
{ no: 1, name: "user_setting", kind: "message", T: UserSetting },
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserSettingRequest
|
||||
*/
|
||||
export const UpdateUserSettingRequest = proto3.makeMessageType(
|
||||
"slash.api.v2.UpdateUserSettingRequest",
|
||||
() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 2, name: "user_setting", kind: "message", T: UserSetting },
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserSettingResponse
|
||||
*/
|
||||
export const UpdateUserSettingResponse = proto3.makeMessageType(
|
||||
"slash.api.v2.UpdateUserSettingResponse",
|
||||
() => [
|
||||
{ no: 1, name: "user_setting", kind: "message", T: UserSetting },
|
||||
],
|
||||
);
|
||||
|
Reference in New Issue
Block a user