/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as FernAI from "../../../index.js"; export declare namespace ContentHash { 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 ContentHash { protected readonly _options: ContentHash.Options; constructor(_options?: ContentHash.Options); /** * Get content hashes for multiple parent_ids. * If parent_ids is empty, returns all content hashes for the domain. * * @param {string} domain * @param {FernAI.BatchGetContentHashesRequest} request * @param {ContentHash.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.contentHash.batchGetContentHashes("domain") */ batchGetContentHashes(domain: string, request?: FernAI.BatchGetContentHashesRequest, requestOptions?: ContentHash.RequestOptions): core.HttpResponsePromise; private __batchGetContentHashes; /** * Upsert content hashes for multiple parent_ids. * Creates new records or updates existing ones. * * @param {string} domain * @param {FernAI.BatchUpsertContentHashesRequest} request * @param {ContentHash.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.contentHash.batchUpsertContentHashes("domain", { * entries: [{ * parent_id: "parent_id", * content_hash: "content_hash", * chunk_count: 1 * }] * }) */ batchUpsertContentHashes(domain: string, request: FernAI.BatchUpsertContentHashesRequest, requestOptions?: ContentHash.RequestOptions): core.HttpResponsePromise; private __batchUpsertContentHashes; /** * Delete content hashes for multiple parent_ids. * * @param {string} domain * @param {FernAI.DeleteContentHashesRequest} request * @param {ContentHash.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.contentHash.deleteContentHashes("domain", { * parent_ids: ["parent_ids"] * }) */ deleteContentHashes(domain: string, request: FernAI.DeleteContentHashesRequest, requestOptions?: ContentHash.RequestOptions): core.HttpResponsePromise; private __deleteContentHashes; protected _getAuthorizationHeader(): Promise; }