/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vectara from "../../../index"; export declare namespace Jobs { interface Options { environment?: core.Supplier; token?: core.Supplier; /** Override the x-api-key header */ apiKey?: core.Supplier; fetcher?: core.FetchFunction; } 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; /** Override the x-api-key header */ apiKey?: string | undefined; /** Additional headers to include in the request. */ headers?: Record; } } /** * Monitor background jobs such as rebuilding indexes or updating corpus settings */ export declare class Jobs { protected readonly _options: Jobs.Options; constructor(_options?: Jobs.Options); /** * List jobs for the account. Jobs are background processes like replacing the filterable metadata attributes. * * @param {Vectara.JobsListRequest} request * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vectara.ForbiddenError} * * @example * await client.jobs.list() */ list(request?: Vectara.JobsListRequest, requestOptions?: Jobs.RequestOptions): Promise>; /** * Get a job by a specific ID. Jobs are background processes like replacing the filterable metadata attributes. * * @param {string} jobId - The ID of the job to get. * @param {Vectara.JobsGetRequest} request * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vectara.ForbiddenError} * @throws {@link Vectara.NotFoundError} * * @example * await client.jobs.get("job_id") */ get(jobId: string, request?: Vectara.JobsGetRequest, requestOptions?: Jobs.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }