import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Corti from "../../../index.js"; export declare namespace FactsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class FactsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: FactsClient.Options); /** * Returns a list of available fact groups, used to categorize facts associated with an interaction. * * @param {FactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.InternalServerError} * * @example * await client.facts.factGroupsList() */ factGroupsList(requestOptions?: FactsClient.RequestOptions): core.HttpResponsePromise; private __factGroupsList; /** * Retrieves a list of facts for a given interaction. * * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID. * @param {FactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.GatewayTimeoutError} * * @example * await client.facts.list("f47ac10b-58cc-4372-a567-0e02b2c3d479") */ list(id: Corti.Uuid, requestOptions?: FactsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Adds new facts to an interaction. * * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID. * @param {Corti.FactsCreateRequest} request * @param {FactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.GatewayTimeoutError} * * @example * await client.facts.create("f47ac10b-58cc-4372-a567-0e02b2c3d479", { * facts: [{ * text: "text", * group: "other" * }] * }) */ create(id: Corti.Uuid, request: Corti.FactsCreateRequest, requestOptions?: FactsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Updates multiple facts associated with an interaction. * * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID. * @param {Corti.FactsBatchUpdateRequest} request * @param {FactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.GatewayTimeoutError} * * @example * await client.facts.batchUpdate("f47ac10b-58cc-4372-a567-0e02b2c3d479", { * facts: [{ * factId: "3c9d8a12-7f44-4b3e-9e6f-9271c2bbfa08" * }] * }) */ batchUpdate(id: Corti.Uuid, request: Corti.FactsBatchUpdateRequest, requestOptions?: FactsClient.RequestOptions): core.HttpResponsePromise; private __batchUpdate; /** * Updates an existing fact associated with a specific interaction. * * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID. * @param {string} factId - The unique identifier of the fact to update. Must be a valid UUID. * @param {Corti.FactsUpdateRequest} request * @param {FactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.GatewayTimeoutError} * * @example * await client.facts.update("f47ac10b-58cc-4372-a567-0e02b2c3d479", "3c9d8a12-7f44-4b3e-9e6f-9271c2bbfa08") */ update(id: Corti.Uuid, factId: string, request?: Corti.FactsUpdateRequest, requestOptions?: FactsClient.RequestOptions): core.HttpResponsePromise; private __update; /** * Extract facts from provided text, without storing them. * * @param {Corti.FactsExtractRequest} request * @param {FactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.GatewayTimeoutError} * * @example * await client.facts.extract({ * context: [{ * type: "text", * text: "text" * }], * outputLanguage: "outputLanguage" * }) */ extract(request: Corti.FactsExtractRequest, requestOptions?: FactsClient.RequestOptions): core.HttpResponsePromise; private __extract; }