import { type HumanReviewCommand, type HumanReviewRequest, type HumanReviewTransportRequest } from "@openpond/evals/human-review"; export declare class HumanReviewClientError extends Error { readonly status: number; readonly code: string; constructor(status: number, code: string, message: string); } export declare class OpenPondHumanReviewClient { readonly options: { baseUrl: string; apiKey: string; scope: string; fetch?: typeof globalThis.fetch; }; constructor(options: OpenPondHumanReviewClient["options"]); command(command: HumanReviewCommand, signal?: AbortSignal): Promise<{ schemaVersion: "openpond.humanReview.v1"; id: string; revision: number; scope: string; projectId: string; createdBy: string; kind: "author" | "execute" | "grade"; dueAt?: string | undefined; title: string; authorPublication: { proposalHash: string; dataset: { id: string; revision: number; contentHash: string; }; operationId: string; publishedBy: string; publishedAt: string; } | null; form: { schemaVersion: "openpond.humanForm.v1"; mode: "individual" | "pairwise"; instructions: string; criteria: ({ id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "score"; minimum: number; maximum: number; step: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "category"; options: string[]; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "boolean"; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "text"; minimumLength?: number | undefined; maximumLength: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "preference"; requireStrength?: boolean | undefined; allowTie: boolean; })[]; }; policy: { approval: "manager" | "none"; minimumRaters: number; managerIds: string[]; reviewerIds: string[]; queueClaim: boolean; teamVisible: boolean; distinctManager?: boolean | undefined; independentRaters?: boolean | undefined; blindPair?: boolean | undefined; }; status: "accepted" | "assigned" | "cancelled" | "in_progress" | "queued" | "rejected" | "returned" | "submitted"; assigneeId: string | null; generation: number; decisions: { taskProposalHash?: string | undefined; id: string; revision: number; actorId: string; outcome: "accept" | "reject" | "request_changes"; submissions: { id: string; contentHash: string; }[]; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; decidedAt: string; contentHash: string; }[]; audit: { actorId: string; action: "cancel" | "claim" | "reassign"; priorAssigneeId: string | null; assigneeId: string | null; generation: number; note: string; occurredAt: string; }[]; execution: { executionId: string | null; operationId: string; boundBy: string; configurationHash: string; generation: number; result: { id: string; revision: number; contentHash: string; } | null; } | null; createdAt: string; updatedAt: string; contentHash: string; drafts: { actorId: string; generation: number; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; updatedAt: string; taskProposal?: { schemaVersion: "openpond.humanTaskProposal.v1"; tasks: { taskId: string; input: Record; policyVisibleContext: Record; expectedOutput?: Record | null | undefined; tags?: string[] | undefined; }[]; contentHash: string; referenceRedacted?: true | undefined; } | undefined; }[]; submissions: { id: string; revision: number; actorId: string; generation: number; evidenceHash: string; formHash: string; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; submittedAt: string; supersedes: string | null; contentHash: string; taskProposal?: { schemaVersion: "openpond.humanTaskProposal.v1"; tasks: { taskId: string; input: Record; policyVisibleContext: Record; expectedOutput?: Record | null | undefined; tags?: string[] | undefined; }[]; contentHash: string; referenceRedacted?: true | undefined; } | undefined; }[]; evidence: { publication?: { id: string; revision: number; contentHash: string; } | undefined; dataset: { id: string; revision: number; contentHash: string; }; grader: { id: string; revision: number; contentHash: string; }; graderBinding: { id: string; version: string; contentHash: string; }; rubric: { id: string; revision: number; contentHash: string; }; attempts: { localSource?: { kind: "owner_attested_local"; ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; publicationCutoffHash: string; } | { ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; kind: "native_local"; } | undefined; recordedSource?: { id: string; snapshotHash: string; boundaryId: string; boundaryRevisionHash: string; } | undefined; experimentId: string; attemptId: string; taskId: string; targetId: string; output: { id: string; revision: number; contentHash: string; }; trace: { id: string; revision: number; contentHash: string; } | null; familyKey: string; split: "frozen_eval" | "test" | "train" | "validation"; }[]; taskIds?: string[] | undefined; } | null; evidenceHash: string; formHash: string; permissions: { owner: boolean; manager: boolean; reviewer: boolean; claim: boolean; }; }>; get(id: string, revision?: number, signal?: AbortSignal): Promise<{ schemaVersion: "openpond.humanReview.v1"; id: string; revision: number; scope: string; projectId: string; createdBy: string; kind: "author" | "execute" | "grade"; dueAt?: string | undefined; title: string; authorPublication: { proposalHash: string; dataset: { id: string; revision: number; contentHash: string; }; operationId: string; publishedBy: string; publishedAt: string; } | null; form: { schemaVersion: "openpond.humanForm.v1"; mode: "individual" | "pairwise"; instructions: string; criteria: ({ id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "score"; minimum: number; maximum: number; step: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "category"; options: string[]; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "boolean"; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "text"; minimumLength?: number | undefined; maximumLength: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "preference"; requireStrength?: boolean | undefined; allowTie: boolean; })[]; }; policy: { approval: "manager" | "none"; minimumRaters: number; managerIds: string[]; reviewerIds: string[]; queueClaim: boolean; teamVisible: boolean; distinctManager?: boolean | undefined; independentRaters?: boolean | undefined; blindPair?: boolean | undefined; }; status: "accepted" | "assigned" | "cancelled" | "in_progress" | "queued" | "rejected" | "returned" | "submitted"; assigneeId: string | null; generation: number; decisions: { taskProposalHash?: string | undefined; id: string; revision: number; actorId: string; outcome: "accept" | "reject" | "request_changes"; submissions: { id: string; contentHash: string; }[]; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; decidedAt: string; contentHash: string; }[]; audit: { actorId: string; action: "cancel" | "claim" | "reassign"; priorAssigneeId: string | null; assigneeId: string | null; generation: number; note: string; occurredAt: string; }[]; execution: { executionId: string | null; operationId: string; boundBy: string; configurationHash: string; generation: number; result: { id: string; revision: number; contentHash: string; } | null; } | null; createdAt: string; updatedAt: string; contentHash: string; drafts: { actorId: string; generation: number; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; updatedAt: string; taskProposal?: { schemaVersion: "openpond.humanTaskProposal.v1"; tasks: { taskId: string; input: Record; policyVisibleContext: Record; expectedOutput?: Record | null | undefined; tags?: string[] | undefined; }[]; contentHash: string; referenceRedacted?: true | undefined; } | undefined; }[]; submissions: { id: string; revision: number; actorId: string; generation: number; evidenceHash: string; formHash: string; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; submittedAt: string; supersedes: string | null; contentHash: string; taskProposal?: { schemaVersion: "openpond.humanTaskProposal.v1"; tasks: { taskId: string; input: Record; policyVisibleContext: Record; expectedOutput?: Record | null | undefined; tags?: string[] | undefined; }[]; contentHash: string; referenceRedacted?: true | undefined; } | undefined; }[]; evidence: { publication?: { id: string; revision: number; contentHash: string; } | undefined; dataset: { id: string; revision: number; contentHash: string; }; grader: { id: string; revision: number; contentHash: string; }; graderBinding: { id: string; version: string; contentHash: string; }; rubric: { id: string; revision: number; contentHash: string; }; attempts: { localSource?: { kind: "owner_attested_local"; ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; publicationCutoffHash: string; } | { ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; kind: "native_local"; } | undefined; recordedSource?: { id: string; snapshotHash: string; boundaryId: string; boundaryRevisionHash: string; } | undefined; experimentId: string; attemptId: string; taskId: string; targetId: string; output: { id: string; revision: number; contentHash: string; }; trace: { id: string; revision: number; contentHash: string; } | null; familyKey: string; split: "frozen_eval" | "test" | "train" | "validation"; }[]; taskIds?: string[] | undefined; } | null; evidenceHash: string; formHash: string; permissions: { owner: boolean; manager: boolean; reviewer: boolean; claim: boolean; }; }>; inbox(query: Omit, "endpoint" | "scope">, signal?: AbortSignal): Promise<{ items: { schemaVersion: "openpond.humanReview.v1"; id: string; revision: number; scope: string; projectId: string; createdBy: string; kind: "author" | "execute" | "grade"; dueAt?: string | undefined; title: string; authorPublication: { proposalHash: string; dataset: { id: string; revision: number; contentHash: string; }; operationId: string; publishedBy: string; publishedAt: string; } | null; form: { schemaVersion: "openpond.humanForm.v1"; mode: "individual" | "pairwise"; instructions: string; criteria: ({ id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "score"; minimum: number; maximum: number; step: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "category"; options: string[]; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "boolean"; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "text"; minimumLength?: number | undefined; maximumLength: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "preference"; requireStrength?: boolean | undefined; allowTie: boolean; })[]; }; policy: { approval: "manager" | "none"; minimumRaters: number; managerIds: string[]; reviewerIds: string[]; queueClaim: boolean; teamVisible: boolean; distinctManager?: boolean | undefined; independentRaters?: boolean | undefined; blindPair?: boolean | undefined; }; status: "accepted" | "assigned" | "cancelled" | "in_progress" | "queued" | "rejected" | "returned" | "submitted"; assigneeId: string | null; generation: number; decisions: { taskProposalHash?: string | undefined; id: string; revision: number; actorId: string; outcome: "accept" | "reject" | "request_changes"; submissions: { id: string; contentHash: string; }[]; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; decidedAt: string; contentHash: string; }[]; audit: { actorId: string; action: "cancel" | "claim" | "reassign"; priorAssigneeId: string | null; assigneeId: string | null; generation: number; note: string; occurredAt: string; }[]; execution: { executionId: string | null; operationId: string; boundBy: string; configurationHash: string; generation: number; result: { id: string; revision: number; contentHash: string; } | null; } | null; createdAt: string; updatedAt: string; contentHash: string; drafts: { actorId: string; generation: number; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; updatedAt: string; taskProposal?: { schemaVersion: "openpond.humanTaskProposal.v1"; tasks: { taskId: string; input: Record; policyVisibleContext: Record; expectedOutput?: Record | null | undefined; tags?: string[] | undefined; }[]; contentHash: string; referenceRedacted?: true | undefined; } | undefined; }[]; submissions: { id: string; revision: number; actorId: string; generation: number; evidenceHash: string; formHash: string; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; note: string; submittedAt: string; supersedes: string | null; contentHash: string; taskProposal?: { schemaVersion: "openpond.humanTaskProposal.v1"; tasks: { taskId: string; input: Record; policyVisibleContext: Record; expectedOutput?: Record | null | undefined; tags?: string[] | undefined; }[]; contentHash: string; referenceRedacted?: true | undefined; } | undefined; }[]; evidence: { publication?: { id: string; revision: number; contentHash: string; } | undefined; dataset: { id: string; revision: number; contentHash: string; }; grader: { id: string; revision: number; contentHash: string; }; graderBinding: { id: string; version: string; contentHash: string; }; rubric: { id: string; revision: number; contentHash: string; }; attempts: { localSource?: { kind: "owner_attested_local"; ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; publicationCutoffHash: string; } | { ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; kind: "native_local"; } | undefined; recordedSource?: { id: string; snapshotHash: string; boundaryId: string; boundaryRevisionHash: string; } | undefined; experimentId: string; attemptId: string; taskId: string; targetId: string; output: { id: string; revision: number; contentHash: string; }; trace: { id: string; revision: number; contentHash: string; } | null; familyKey: string; split: "frozen_eval" | "test" | "train" | "validation"; }[]; taskIds?: string[] | undefined; } | null; evidenceHash: string; formHash: string; permissions: { owner: boolean; manager: boolean; reviewer: boolean; claim: boolean; }; }[]; nextCursor: string | null; actionCount: number; approvalAvailable: boolean; }>; snapshot(input: Omit, "endpoint" | "scope">, signal?: AbortSignal): Promise<{ evidence: { publication?: { id: string; revision: number; contentHash: string; } | undefined; dataset: { id: string; revision: number; contentHash: string; }; grader: { id: string; revision: number; contentHash: string; }; graderBinding: { id: string; version: string; contentHash: string; }; rubric: { id: string; revision: number; contentHash: string; }; attempts: { localSource?: { kind: "owner_attested_local"; ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; publicationCutoffHash: string; } | { ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; kind: "native_local"; } | undefined; recordedSource?: { id: string; snapshotHash: string; boundaryId: string; boundaryRevisionHash: string; } | undefined; experimentId: string; attemptId: string; taskId: string; targetId: string; output: { id: string; revision: number; contentHash: string; }; trace: { id: string; revision: number; contentHash: string; } | null; familyKey: string; split: "frozen_eval" | "test" | "train" | "validation"; }[]; taskIds?: string[] | undefined; }; form: { schemaVersion: "openpond.humanForm.v1"; mode: "individual" | "pairwise"; instructions: string; criteria: ({ id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "score"; minimum: number; maximum: number; step: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "category"; options: string[]; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "boolean"; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "text"; minimumLength?: number | undefined; maximumLength: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "preference"; requireStrength?: boolean | undefined; allowTie: boolean; })[]; }; }>; taskSnapshot(input: Omit, "endpoint" | "scope">, signal?: AbortSignal): Promise<{ evidence: { publication?: { id: string; revision: number; contentHash: string; } | undefined; dataset: { id: string; revision: number; contentHash: string; }; grader: { id: string; revision: number; contentHash: string; }; graderBinding: { id: string; version: string; contentHash: string; }; rubric: { id: string; revision: number; contentHash: string; }; attempts: { localSource?: { kind: "owner_attested_local"; ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; publicationCutoffHash: string; } | { ownerActorId: string; teamId: string; executionHash: string; configurationHash: string; retainedAttemptHash: string; traceHash: string; kind: "native_local"; } | undefined; recordedSource?: { id: string; snapshotHash: string; boundaryId: string; boundaryRevisionHash: string; } | undefined; experimentId: string; attemptId: string; taskId: string; targetId: string; output: { id: string; revision: number; contentHash: string; }; trace: { id: string; revision: number; contentHash: string; } | null; familyKey: string; split: "frozen_eval" | "test" | "train" | "validation"; }[]; taskIds?: string[] | undefined; }; form: { schemaVersion: "openpond.humanForm.v1"; mode: "individual" | "pairwise"; instructions: string; criteria: ({ id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "score"; minimum: number; maximum: number; step: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "category"; options: string[]; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "boolean"; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "text"; minimumLength?: number | undefined; maximumLength: number; } | { id: string; label: string; instructions: string; required: boolean; allowAbstain: boolean; requireRationale?: boolean | undefined; anchors?: { value: string | number | boolean; description: string; }[] | undefined; kind: "preference"; requireStrength?: boolean | undefined; allowTie: boolean; })[]; }; }>; inspect(id: string, signal?: AbortSignal, options?: { slot?: number; afterId?: string; }): Promise<{ origin?: "owner_attested_local" | undefined; coverage?: { sourceEventCount: number; publishedEventCount: number; traceLimited: boolean; artifactsIncluded: false; } | undefined; reviewId: string; reviewRevision: number; evidenceHash: string; slot: string; input: unknown; output: unknown; error: string | null; events: Record[]; eventCount: number; evidenceLimited: boolean; nextEventCursor: string | null; slotIndex: number; executionId?: string | undefined; receiptId?: string | undefined; }[]>; results(executionId: string, selection?: Extract["selection"], signal?: AbortSignal): Promise<{ schemaVersion: "openpond.humanResultView.v1"; executionId: string; executionHash: string; selection: { id: string; revision: number; contentHash: string; }[]; coverage: { pending: number; submitted: number; accepted: number; rejected: number; cancelled: number; }; results: { review: { id: string; revision: number; contentHash: string; }; decision: { id: string; revision: number; contentHash: string; } | null; attemptIds: string[]; mode: "individual" | "pairwise"; origin: "hosted_retained" | "native_local" | "owner_attested_local" | "recorded_evidence"; status: "accepted" | "cancelled" | "pending" | "rejected" | "submitted"; grader: { id: string; revision: number; contentHash: string; }; answers: { criterionId: string; value: string | number | boolean | null; abstain: boolean; note: string; strength?: "moderate" | "slight" | "strong" | undefined; }[]; }[]; contentHash: string; }>; members(signal?: AbortSignal): Promise<{ userId: string; name: string | null; email: string | null; role: string; }[]>; request(raw: HumanReviewTransportRequest, signal?: AbortSignal): Promise; } //# sourceMappingURL=human-review-client.d.ts.map