export interface ProtobufAny { "@type"?: string; } export type ProtocoladminMsgAddAdminToGroupResponse = object; export type ProtocoladminMsgCreateGroupResponse = object; export type ProtocoladminMsgDeleteGroupResponse = object; export type ProtocoladminMsgRemoveAdminFromGroupResponse = object; export type ProtocoladminMsgUpdateGroupResponse = object; export interface ProtocoladminQueryAllAdminResponse { admin?: SixprotocolprotocoladminAdmin[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } export interface ProtocoladminQueryAllGroupResponse { group?: SixprotocolprotocoladminGroup[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } export interface ProtocoladminQueryGetAdminResponse { admin?: SixprotocolprotocoladminAdmin; } export interface ProtocoladminQueryGetGroupResponse { group?: SixprotocolprotocoladminGroup; } export interface ProtocoladminQueryListAdminOfGroupResponse { admin?: string[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } /** * QueryParamsResponse is response type for the Query/Params RPC method. */ export interface ProtocoladminQueryParamsResponse { /** params holds all the parameters of this module. */ params?: SixprotocolprotocoladminParams; } export interface RpcStatus { /** @format int32 */ code?: number; message?: string; details?: ProtobufAny[]; } export interface SixprotocolprotocoladminAdmin { group?: string; admin?: string; } export interface SixprotocolprotocoladminGroup { name?: string; owner?: string; } /** * Params defines the parameters for the module. */ export type SixprotocolprotocoladminParams = object; /** * message SomeRequest { Foo some_parameter = 1; PageRequest pagination = 2; } */ export interface V1Beta1PageRequest { /** * key is a value returned in PageResponse.next_key to begin * querying the next page most efficiently. Only one of offset or key * should be set. * @format byte */ key?: string; /** * offset is a numeric offset that can be used when key is unavailable. * It is less efficient than using key. Only one of offset or key should * be set. * @format uint64 */ offset?: string; /** * limit is the total number of results to be returned in the result page. * If left empty it will default to a value to be set by each app. * @format uint64 */ limit?: string; /** * count_total is set to true to indicate that the result set should include * a count of the total number of items available for pagination in UIs. * count_total is only respected when offset is used. It is ignored when key * is set. */ count_total?: boolean; /** * reverse is set to true if results are to be returned in the descending order. * * Since: cosmos-sdk 0.43 */ reverse?: boolean; } /** * PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; } */ export interface V1Beta1PageResponse { /** @format byte */ next_key?: string; /** @format uint64 */ total?: string; } export type QueryParamsType = Record; export type ResponseFormat = keyof Omit; export interface FullRequestParams extends Omit { /** set parameter to `true` for call `securityWorker` for this request */ secure?: boolean; /** request path */ path: string; /** content type of request body */ type?: ContentType; /** query params */ query?: QueryParamsType; /** format of response (i.e. response.json() -> format: "json") */ format?: keyof Omit; /** request body */ body?: unknown; /** base url */ baseUrl?: string; /** request cancellation token */ cancelToken?: CancelToken; } export type RequestParams = Omit; export interface ApiConfig { baseUrl?: string; baseApiParams?: Omit; securityWorker?: (securityData: SecurityDataType) => RequestParams | void; } export interface HttpResponse extends Response { data: D; error: E; } type CancelToken = Symbol | string | number; export declare enum ContentType { Json = "application/json", FormData = "multipart/form-data", UrlEncoded = "application/x-www-form-urlencoded" } export declare class HttpClient { baseUrl: string; private securityData; private securityWorker; private abortControllers; private baseApiParams; constructor(apiConfig?: ApiConfig); setSecurityData: (data: SecurityDataType) => void; private addQueryParam; protected toQueryString(rawQuery?: QueryParamsType): string; protected addQueryParams(rawQuery?: QueryParamsType): string; private contentFormatters; private mergeRequestParams; private createAbortSignal; abortRequest: (cancelToken: CancelToken) => void; request: ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise>; } /** * @title protocoladmin/admin.proto * @version version not set */ export declare class Api extends HttpClient { /** * No description * * @tags Query * @name QueryAdminAll * @summary Queries a list of Admin items. * @request GET:/thesixnetwork/six-protocol/protocoladmin/admin */ queryAdminAll: (query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.count_total"?: boolean; "pagination.reverse"?: boolean; }, params?: RequestParams) => Promise>; /** * No description * * @tags Query * @name QueryAdmin * @summary Queries a Admin by index. * @request GET:/thesixnetwork/six-protocol/protocoladmin/admin/{group}/{admin} */ queryAdmin: (group: string, admin: string, params?: RequestParams) => Promise>; /** * No description * * @tags Query * @name QueryGroupAll * @summary Queries a list of Group items. * @request GET:/thesixnetwork/six-protocol/protocoladmin/group */ queryGroupAll: (query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.count_total"?: boolean; "pagination.reverse"?: boolean; }, params?: RequestParams) => Promise>; /** * No description * * @tags Query * @name QueryGroup * @summary Queries a Group by index. * @request GET:/thesixnetwork/six-protocol/protocoladmin/group/{name} */ queryGroup: (name: string, params?: RequestParams) => Promise>; /** * No description * * @tags Query * @name QueryListAdminOfGroup * @summary Queries a list of ListAdminOfGroup items. * @request GET:/thesixnetwork/six-protocol/protocoladmin/list_admin_of_group/{group} */ queryListAdminOfGroup: (group: string, query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.count_total"?: boolean; "pagination.reverse"?: boolean; }, params?: RequestParams) => Promise>; /** * No description * * @tags Query * @name QueryParams * @summary Parameters queries the parameters of the module. * @request GET:/thesixnetwork/six-protocol/protocoladmin/params */ queryParams: (params?: RequestParams) => Promise>; } export {};