/* tslint:disable */
/* eslint-disable */
/**
 * RMI Backend
 * Rug Munch Intelligence — institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
 *
 * The version of the OpenAPI document: 2026.06.21
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import * as runtime from '../runtime';

/**
 * 
 */
export class NewsAdminApi extends runtime.BaseAPI {

    /**
     * Creates request options for triggerIngestApiV1NewsAdminIngestPost without sending the request
     */
    async triggerIngestApiV1NewsAdminIngestPostRequestOpts(): Promise<runtime.RequestOpts> {
        const queryParameters: any = {};

        const headerParameters: runtime.HTTPHeaders = {};


        let urlPath = `/api/v1/news/_admin/ingest`;

        return {
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
        };
    }

    /**
     * Trigger RSS ingest now (synchronous). Returns counts.
     * Trigger Ingest
     */
    async triggerIngestApiV1NewsAdminIngestPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
        const requestOptions = await this.triggerIngestApiV1NewsAdminIngestPostRequestOpts();
        const response = await this.request(requestOptions, initOverrides);

        return new runtime.JSONApiResponse<any>(response);
    }

    /**
     * Trigger RSS ingest now (synchronous). Returns counts.
     * Trigger Ingest
     */
    async triggerIngestApiV1NewsAdminIngestPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
        const response = await this.triggerIngestApiV1NewsAdminIngestPostRaw(initOverrides);
        return await response.value();
    }

}
