// @generated by protoc-gen-es v1.3.0 // @generated from file api/v2/user_service.proto (package slash.api.v2, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { RowStatus } from "./common_pb.js"; /** * @generated from enum slash.api.v2.Role */ export declare enum Role { /** * @generated from enum value: ROLE_UNSPECIFIED = 0; */ ROLE_UNSPECIFIED = 0, /** * @generated from enum value: ADMIN = 1; */ ADMIN = 1, /** * @generated from enum value: USER = 2; */ USER = 2, } /** * @generated from message slash.api.v2.User */ export declare class User extends Message { /** * @generated from field: int32 id = 1; */ id: number; /** * @generated from field: slash.api.v2.RowStatus row_status = 2; */ rowStatus: RowStatus; /** * @generated from field: int64 created_ts = 3; */ createdTs: bigint; /** * @generated from field: int64 updated_ts = 4; */ updatedTs: bigint; /** * @generated from field: slash.api.v2.Role role = 6; */ role: Role; /** * @generated from field: string email = 7; */ email: string; /** * @generated from field: string nickname = 8; */ nickname: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.User"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): User; static fromJson(jsonValue: JsonValue, options?: Partial): User; static fromJsonString(jsonString: string, options?: Partial): User; static equals(a: User | PlainMessage | undefined, b: User | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.GetUserRequest */ export declare class GetUserRequest extends Message { /** * @generated from field: int32 id = 1; */ id: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.GetUserRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetUserRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetUserRequest; static fromJsonString(jsonString: string, options?: Partial): GetUserRequest; static equals(a: GetUserRequest | PlainMessage | undefined, b: GetUserRequest | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.GetUserResponse */ export declare class GetUserResponse extends Message { /** * @generated from field: slash.api.v2.User user = 1; */ user?: User; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.GetUserResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetUserResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetUserResponse; static fromJsonString(jsonString: string, options?: Partial): GetUserResponse; static equals(a: GetUserResponse | PlainMessage | undefined, b: GetUserResponse | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.ListUserAccessTokensRequest */ export declare class ListUserAccessTokensRequest extends Message { /** * id is the user id. * * @generated from field: int32 id = 1; */ id: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.ListUserAccessTokensRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListUserAccessTokensRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ListUserAccessTokensRequest; static fromJsonString(jsonString: string, options?: Partial): ListUserAccessTokensRequest; static equals(a: ListUserAccessTokensRequest | PlainMessage | undefined, b: ListUserAccessTokensRequest | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.ListUserAccessTokensResponse */ export declare class ListUserAccessTokensResponse extends Message { /** * @generated from field: repeated slash.api.v2.UserAccessToken access_tokens = 1; */ accessTokens: UserAccessToken[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.ListUserAccessTokensResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListUserAccessTokensResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ListUserAccessTokensResponse; static fromJsonString(jsonString: string, options?: Partial): ListUserAccessTokensResponse; static equals(a: ListUserAccessTokensResponse | PlainMessage | undefined, b: ListUserAccessTokensResponse | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.CreateUserAccessTokenRequest */ export declare class CreateUserAccessTokenRequest extends Message { /** * id is the user id. * * @generated from field: int32 id = 1; */ id: number; /** * description is the title/description of the access token. * * @generated from field: string description = 2; */ description: string; /** * expiration is the expires duration of the access token. * * @generated from field: google.protobuf.Duration expiration = 3; */ expiration?: Duration; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.CreateUserAccessTokenRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateUserAccessTokenRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreateUserAccessTokenRequest; static fromJsonString(jsonString: string, options?: Partial): CreateUserAccessTokenRequest; static equals(a: CreateUserAccessTokenRequest | PlainMessage | undefined, b: CreateUserAccessTokenRequest | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.CreateUserAccessTokenResponse */ export declare class CreateUserAccessTokenResponse extends Message { /** * @generated from field: slash.api.v2.UserAccessToken access_token = 1; */ accessToken?: UserAccessToken; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.CreateUserAccessTokenResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateUserAccessTokenResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CreateUserAccessTokenResponse; static fromJsonString(jsonString: string, options?: Partial): CreateUserAccessTokenResponse; static equals(a: CreateUserAccessTokenResponse | PlainMessage | undefined, b: CreateUserAccessTokenResponse | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.DeleteUserAccessTokenRequest */ export declare class DeleteUserAccessTokenRequest extends Message { /** * id is the user id. * * @generated from field: int32 id = 1; */ id: number; /** * access_token is the access token to delete. * * @generated from field: string access_token = 2; */ accessToken: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.DeleteUserAccessTokenRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeleteUserAccessTokenRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DeleteUserAccessTokenRequest; static fromJsonString(jsonString: string, options?: Partial): DeleteUserAccessTokenRequest; static equals(a: DeleteUserAccessTokenRequest | PlainMessage | undefined, b: DeleteUserAccessTokenRequest | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.DeleteUserAccessTokenResponse */ export declare class DeleteUserAccessTokenResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.DeleteUserAccessTokenResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeleteUserAccessTokenResponse; static fromJson(jsonValue: JsonValue, options?: Partial): DeleteUserAccessTokenResponse; static fromJsonString(jsonString: string, options?: Partial): DeleteUserAccessTokenResponse; static equals(a: DeleteUserAccessTokenResponse | PlainMessage | undefined, b: DeleteUserAccessTokenResponse | PlainMessage | undefined): boolean; } /** * @generated from message slash.api.v2.UserAccessToken */ export declare class UserAccessToken extends Message { /** * @generated from field: string access_token = 1; */ accessToken: string; /** * @generated from field: string description = 2; */ description: string; /** * @generated from field: google.protobuf.Timestamp issued_at = 3; */ issuedAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp expires_at = 4; */ expiresAt?: Timestamp; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "slash.api.v2.UserAccessToken"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UserAccessToken; static fromJson(jsonValue: JsonValue, options?: Partial): UserAccessToken; static fromJsonString(jsonString: string, options?: Partial): UserAccessToken; static equals(a: UserAccessToken | PlainMessage | undefined, b: UserAccessToken | PlainMessage | undefined): boolean; }