import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace EvaluationSetItemsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class EvaluationSetItemsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: EvaluationSetItemsClient.Options); /** * List items in a specific evaluation set. * * Returns a summary of each evaluation set item. Use the [Get Evaluation Set Item](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/get-evaluation-set-item) endpoint to get the full details of an evaluation set item. * * @param {string} evaluationSetId - The ID of the evaluation set. * * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"` * @param {Extend.EvaluationSetItemsListRequest} request * @param {EvaluationSetItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.evaluationSetItems.list("evaluation_set_id_here", { * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * }) */ list(evaluationSetId: string, request?: Extend.EvaluationSetItemsListRequest, requestOptions?: EvaluationSetItemsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Evaluation set items are the individual files and expected outputs that are used to evaluate the performance of a given extractor, classifier, or splitter in Extend. This endpoint will create new evaluation set items in Extend, which will be used during an evaluation run. * * **Limit:** You can create up to 100 items at a time. * * Learn more about how to create evaluation set items in the [Evaluation Sets](https://docs.extend.ai/2026-02-09/product/evaluation/overview) product page. * * @param {string} evaluationSetId - The ID of the evaluation set. * * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"` * @param {Extend.EvaluationSetItemsCreateRequest} request * @param {EvaluationSetItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.evaluationSetItems.create("evaluation_set_id_here", { * items: [{ * fileId: "file_xK9mLPqRtN3vS8wF5hB2cQ", * expectedOutput: { * value: { * "vendor_name": "Acme Corp", * "invoice_number": "INV-001", * "total_amount": 1500 * } * } * }] * }) */ create(evaluationSetId: string, request: Extend.EvaluationSetItemsCreateRequest, requestOptions?: EvaluationSetItemsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Get details of an evaluation set item. * * @param {string} evaluationSetId - The ID of the evaluation set. * * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"` * @param {string} itemId - The ID of the evaluation set item. * * Example: `"evi_kR9mNP12Qw4yTv8BdR3H"` * @param {Extend.EvaluationSetItemsRetrieveRequest} request * @param {EvaluationSetItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.evaluationSetItems.retrieve("evaluation_set_id_here", "evaluation_set_item_id_here") */ retrieve(evaluationSetId: string, itemId: string, request?: Extend.EvaluationSetItemsRetrieveRequest, requestOptions?: EvaluationSetItemsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * If you need to change the expected output for a given evaluation set item, you can use this endpoint to update the item. This can be useful if you need to correct an error in the expected output or if the output of the extractor, classifier, or splitter has changed. * * @param {string} evaluationSetId - The ID of the evaluation set. * * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"` * @param {string} itemId - The ID of the evaluation set item. * * Example: `"evi_kR9mNP12Qw4yTv8BdR3H"` * @param {Extend.EvaluationSetItemsUpdateRequest} request * @param {EvaluationSetItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.evaluationSetItems.update("evaluation_set_id_here", "evaluation_set_item_id_here", { * expectedOutput: { * value: { * "vendor_name": "Acme Corp", * "invoice_number": "INV-001", * "total_amount": 1750 * } * } * }) */ update(evaluationSetId: string, itemId: string, request: Extend.EvaluationSetItemsUpdateRequest, requestOptions?: EvaluationSetItemsClient.RequestOptions): core.HttpResponsePromise; private __update; /** * Delete an evaluation set item. * * @param {string} evaluationSetId - The ID of the evaluation set. * * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"` * @param {string} itemId - The ID of the evaluation set item. * * Example: `"evi_kR9mNP12Qw4yTv8BdR3H"` * @param {Extend.EvaluationSetItemsDeleteRequest} request * @param {EvaluationSetItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.evaluationSetItems.delete("evaluation_set_id_here", "evaluation_set_item_id_here") */ delete(evaluationSetId: string, itemId: string, request?: Extend.EvaluationSetItemsDeleteRequest, requestOptions?: EvaluationSetItemsClient.RequestOptions): core.HttpResponsePromise; private __delete; }