/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.mjs"; import * as core from "../../../../core/index.mjs"; import * as FernAI from "../../../index.mjs"; export declare namespace Reindexing { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class Reindexing { protected readonly _options: Reindexing.Options; constructor(_options?: Reindexing.Options); /** * Get the status of a reindexing job by domain * * @param {string} domain * @param {Reindexing.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.reindexing.getReindexingJobStatusByDomain("domain") */ getReindexingJobStatusByDomain(domain: string, requestOptions?: Reindexing.RequestOptions): core.HttpResponsePromise; private __getReindexingJobStatusByDomain; /** * Update the status of a reindexing job * * @param {string} domain * @param {FernAI.UpdateReindexingJobStatusRequest} request * @param {Reindexing.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.reindexing.updateReindexingJobStatus("domain", { * status: "status", * memory_mb: 1, * retry_count: 1, * task_arn: "task_arn", * sqs_message_id: "sqs_message_id", * completed_at: "completed_at", * duration_ms: 1, * num_inserted: 1, * error: "error", * reason: "reason" * }) */ updateReindexingJobStatus(domain: string, request?: FernAI.UpdateReindexingJobStatusRequest, requestOptions?: Reindexing.RequestOptions): core.HttpResponsePromise; private __updateReindexingJobStatus; /** * Get the status of a reindexing job by task ARN * * @param {FernAI.GetReindexingJobStatusByTaskArnRequest} request * @param {Reindexing.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.reindexing.getReindexingJobStatusByTaskArn({ * task_arn: "task_arn" * }) */ getReindexingJobStatusByTaskArn(request: FernAI.GetReindexingJobStatusByTaskArnRequest, requestOptions?: Reindexing.RequestOptions): core.HttpResponsePromise; private __getReindexingJobStatusByTaskArn; protected _getAuthorizationHeader(): Promise; }