mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-20 20:04:26 +00:00
chore: add list users api
This commit is contained in:
@@ -86,6 +86,49 @@ export declare class User extends Message<User> {
|
||||
static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.ListUsersRequest
|
||||
*/
|
||||
export declare class ListUsersRequest extends Message<ListUsersRequest> {
|
||||
constructor(data?: PartialMessage<ListUsersRequest>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.ListUsersRequest";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersRequest;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersRequest;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersRequest;
|
||||
|
||||
static equals(a: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined, b: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.ListUsersResponse
|
||||
*/
|
||||
export declare class ListUsersResponse extends Message<ListUsersResponse> {
|
||||
/**
|
||||
* @generated from field: repeated slash.api.v2.User users = 1;
|
||||
*/
|
||||
users: User[];
|
||||
|
||||
constructor(data?: PartialMessage<ListUsersResponse>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.ListUsersResponse";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersResponse;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersResponse;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersResponse;
|
||||
|
||||
static equals(a: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined, b: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.GetUserRequest
|
||||
*/
|
||||
|
@@ -35,6 +35,24 @@ export const User = proto3.makeMessageType(
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.ListUsersRequest
|
||||
*/
|
||||
export const ListUsersRequest = proto3.makeMessageType(
|
||||
"slash.api.v2.ListUsersRequest",
|
||||
[],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.ListUsersResponse
|
||||
*/
|
||||
export const ListUsersResponse = proto3.makeMessageType(
|
||||
"slash.api.v2.ListUsersResponse",
|
||||
() => [
|
||||
{ no: 1, name: "users", kind: "message", T: User, repeated: true },
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.GetUserRequest
|
||||
*/
|
||||
|
Reference in New Issue
Block a user