import { APIResource } from '../../core/resource.js'; import * as AnnotationQueuesAPI from './annotation-queues.js'; import { APIPromise } from '../../core/api-promise.js'; import { RequestOptions } from '../../internal/request-options.js'; export declare class Runs extends APIResource { /** * Add Runs To Annotation Queue */ create(queueID: string, params: RunCreateParams, options?: RequestOptions): APIPromise; /** * Update Run In Annotation Queue */ update(queueRunID: string, params: RunUpdateParams, options?: RequestOptions): APIPromise; /** * Get Runs From Annotation Queue */ list(queueID: string, query?: RunListParams | null | undefined, options?: RequestOptions): APIPromise; /** * Delete Runs From Annotation Queue */ deleteAll(queueID: string, body: RunDeleteAllParams, options?: RequestOptions): APIPromise; /** * Delete Run From Annotation Queue */ deleteQueue(queueRunID: string, params: RunDeleteQueueParams, options?: RequestOptions): APIPromise; } export type RunCreateResponse = Array; export declare namespace RunCreateResponse { interface RunCreateResponseItem { id: string; queue_id: string; run_id: string; added_at?: string; last_reviewed_time?: string | null; source_proposed_example_id?: string | null; } } export type RunUpdateResponse = unknown; export type RunListResponse = Array; export type RunDeleteAllResponse = unknown; export type RunDeleteQueueResponse = unknown; export type RunCreateParams = RunCreateParams.RunsUuidArray | RunCreateParams.RunsAnnotationQueueRunAddSchemaArray | RunCreateParams.Variant2; export declare namespace RunCreateParams { interface RunsUuidArray { body: Array; } interface RunsAnnotationQueueRunAddSchemaArray { body: Array; } namespace RunsAnnotationQueueRunAddSchemaArray { /** * Add a single run to AQ (CH path) with an optional back-pointer to the * issues-agent proposal that seeded this add. Use when bulk-adding runs that come * from different proposals — each row carries its own source_proposed_example_id. * For unrelated bulk adds, prefer plain List[UUID] on the same endpoint. */ interface Body { run_id: string; source_proposed_example_id?: string | null; } } interface Variant2 { body: Array; } namespace Variant2 { /** * Deprecated: use plain UUID list or AddRunToQueueByKeyRequest instead. */ interface Body { /** * @deprecated */ run_id: string; /** * @deprecated */ parent_run_id?: string | null; /** * @deprecated */ session_id?: string | null; /** * @deprecated */ start_time?: string | null; /** * @deprecated */ trace_id?: string | null; /** * @deprecated */ trace_tier?: 'longlived' | 'shortlived' | null; } } } export interface RunUpdateParams { /** * Path param */ queue_id: string; /** * Body param */ added_at?: string | null; /** * Body param */ last_reviewed_time?: string | null; } export interface RunListParams { archived?: boolean | null; include_stats?: boolean | null; limit?: number; offset?: number; status?: 'needs_my_review' | 'needs_others_review' | 'completed' | null; } export interface RunDeleteAllParams { delete_all?: boolean; exclude_run_ids?: Array | null; run_ids?: Array | null; } export interface RunDeleteQueueParams { queue_id: string; } export declare namespace Runs { export { type RunCreateResponse as RunCreateResponse, type RunUpdateResponse as RunUpdateResponse, type RunListResponse as RunListResponse, type RunDeleteAllResponse as RunDeleteAllResponse, type RunDeleteQueueResponse as RunDeleteQueueResponse, type RunCreateParams as RunCreateParams, type RunUpdateParams as RunUpdateParams, type RunListParams as RunListParams, type RunDeleteAllParams as RunDeleteAllParams, type RunDeleteQueueParams as RunDeleteQueueParams, }; }