@eigenpal/sdk 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eigenpal/sdk
2
2
 
3
+ ## 0.16.2
4
+
5
+ ### Minor Changes
6
+
7
+ - d46a558: TypeScript and Python SDKs now expose human-review resources for listing and retrieving tasks, confirming corrected fields, downloading attached source files, and approving or rejecting paused runs.
8
+
3
9
  ## 0.16.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/sdk",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "description": "Official TypeScript SDK for the EigenPal API",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/client.ts CHANGED
@@ -17,6 +17,7 @@ import { AuthResource } from './resources/auth';
17
17
  import { AutomationsResource } from './resources/automations';
18
18
  import { EmailServersResource } from './resources/email-servers';
19
19
  import { FilesResource } from './resources/files';
20
+ import { HumanReviewsResource } from './resources/human-reviews';
20
21
  import { ModelsResource } from './resources/models';
21
22
  import { RunsResource } from './resources/runs';
22
23
  import { TemplatesResource } from './resources/templates';
@@ -150,6 +151,8 @@ export class EigenpalClient {
150
151
  public readonly runs: RunsResource;
151
152
  /** Reusable uploaded files that can be referenced by later runs. */
152
153
  public readonly files: FilesResource;
154
+ /** Human review queue tasks created by workflow and agent runs. */
155
+ public readonly humanReviews: HumanReviewsResource;
153
156
  /** Tenant-scoped DOCX/XLSX templates with immutable content revisions. */
154
157
  public readonly templates: TemplatesResource;
155
158
  /** Outbound email servers for workflow Email actions. Secrets are never returned. */
@@ -201,6 +204,7 @@ export class EigenpalClient {
201
204
  this.automations = new AutomationsResource(this.client, this._request.bind(this));
202
205
  this.runs = new RunsResource(this.client, this._request.bind(this));
203
206
  this.files = new FilesResource(this.client, this._request.bind(this));
207
+ this.humanReviews = new HumanReviewsResource(this.client, this._request.bind(this));
204
208
  this.templates = new TemplatesResource(this.client, this._request.bind(this), this.files);
205
209
  this.emailServers = new EmailServersResource(this.client, this._request.bind(this));
206
210
  }
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export { authCheck, automationsDatasetExport, automationsDatasetImport, automationsEvaluatorsGet, automationsEvaluatorsUpdate, automationsExamplesCreate, automationsExamplesDelete, automationsExamplesExpectedFileDelete, automationsExamplesExpectedFileGet, automationsExamplesExpectedFilesCreate, automationsExamplesExpectedFilesList, automationsExamplesExpectedFileUpdate, automationsExamplesGet, automationsExamplesInputFileDelete, automationsExamplesInputFileGet, automationsExamplesInputFilesCreate, automationsExamplesInputFilesList, automationsExamplesInputFileUpdate, automationsExamplesList, automationsExamplesRun, automationsExamplesUpdate, automationsExperimentsCancel, automationsExperimentsCreate, automationsExperimentsCreateStream, automationsExperimentsExport, automationsExperimentsExportAll, automationsExperimentsGet, automationsExperimentsList, automationsGet, automationsList, automationsReviewsHealth, automationsSync, automationsTriggersGet, automationsVersionsCreate, automationsVersionsList, automationsVersionsPromote, automationsVersionsRestore, emailServersCreate, emailServersDelete, emailServersGet, emailServersList, emailServersTest, emailServersUpdate, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, modelsList, type Options, runsArtifactsGet, runsArtifactsList, runsCancel, runsEventsList, runsGet, runsList, runsPromote, runsRerun, runsReviewsClear, runsReviewsExpectedCreate, runsReviewsExpectedFileDelete, runsReviewsExpectedFileGet, runsReviewsExpectedFileUpdate, runsReviewsExpectedGet, runsReviewsGet, runsReviewsUpdate, runsScoresList, runsStart, runsStepsList, runsTraceGet, runsUsageGet, templatesContentGet, templatesCreate, templatesDelete, templatesGet, templatesList, templatesReplace, templatesStaging } from './sdk.gen';
4
- export type { AbortFileUploadResponse, AgentRunExecution, ApiErrorEnvelope, ApiErrorIssue, AuthCheckData, AuthCheckError, AuthCheckErrors, AuthCheckResponse, AuthCheckResponse2, AuthCheckResponses, AutomationDatasetImportMultipartRequest, AutomationDetail, AutomationsDatasetExportData, AutomationsDatasetExportError, AutomationsDatasetExportErrors, AutomationsDatasetExportResponse, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportError, AutomationsDatasetImportErrors, AutomationsDatasetImportResponse, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetError, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponse, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateError, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponse, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateError, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponse, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteError, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponse, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteError, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetError, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponse, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateError, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponse, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListError, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponse, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateError, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponse, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetError, AutomationsExamplesGetErrors, AutomationsExamplesGetResponse, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteError, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetError, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponse, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateError, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponse, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListError, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponse, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateError, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponse, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListError, AutomationsExamplesListErrors, AutomationsExamplesListResponse, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunError, AutomationsExamplesRunErrors, AutomationsExamplesRunResponse, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateError, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponse, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelError, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponse, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateError, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponse, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamError, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponse, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllError, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponse, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportError, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponse, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetError, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponse, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListError, AutomationsExperimentsListErrors, AutomationsExperimentsListResponse, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetError, AutomationsGetErrors, AutomationsGetResponse, AutomationsGetResponses, AutomationsListData, AutomationsListError, AutomationsListErrors, AutomationsListResponse, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthError, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponse, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncError, AutomationsSyncErrors, AutomationsSyncResponse, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetError, AutomationsTriggersGetErrors, AutomationsTriggersGetResponse, AutomationsTriggersGetResponses, AutomationSummary, AutomationsVersionsCreateData, AutomationsVersionsCreateError, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponse, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListError, AutomationsVersionsListErrors, AutomationsVersionsListResponse, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteError, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponse, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreError, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponse, AutomationsVersionsRestoreResponses, AutomationTriggersResponse, AutomationTriggerState, AutomationType, AutomationVersion, ClientOptions, CreateAutomationVersionRequest, CreatedTemplate, CreateEmailServerRequest, CreateFileMultipartRequest, CreateFileUploadSessionRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DeleteEmailServerResponse, DeleteFileResponse, DeleteTemplateResponse, EmailServer, EmailServersCreateData, EmailServersCreateError, EmailServersCreateErrors, EmailServersCreateResponse, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteError, EmailServersDeleteErrors, EmailServersDeleteResponse, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetError, EmailServersGetErrors, EmailServersGetResponse, EmailServersGetResponses, EmailServersListData, EmailServersListError, EmailServersListErrors, EmailServersListResponse, EmailServersListResponses, EmailServersTestData, EmailServersTestError, EmailServersTestErrors, EmailServersTestResponse, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateError, EmailServersUpdateErrors, EmailServersUpdateResponse, EmailServersUpdateResponses, EvalResult, EvaluatorConfigResponse, EvaluatorConfigUpdate, ExampleRunResponse, ExecutionStatus, Experiment, ExperimentCreate, ExperimentCreateResponse, ExperimentDetail, ExperimentRef, ExperimentsResolveData, ExperimentsResolveError, ExperimentsResolveErrors, ExperimentsResolveResponse, ExperimentsResolveResponses, File, FilesContentGetData, FilesContentGetError, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateError, FilesCreateErrors, FilesCreateResponse, FilesCreateResponses, FilesDeleteData, FilesDeleteError, FilesDeleteErrors, FilesDeleteResponse, FilesDeleteResponses, FilesGetData, FilesGetError, FilesGetErrors, FilesGetResponse, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortError, FilesUploadsAbortErrors, FilesUploadsAbortResponse, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteError, FilesUploadsCompleteErrors, FilesUploadsCompleteResponse, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateError, FilesUploadsCreateErrors, FilesUploadsCreateResponse, FilesUploadsCreateResponses, ListAutomationsResponse, ListAutomationVersionsResponse, ListEmailServersResponse, ListModelsResponse, ListTemplatesResponse, ModelsListData, ModelsListError, ModelsListErrors, ModelsListResponse, ModelsListResponses, MultipartFileUploadFallback, PresignedFileUploadSession, PromoteRunRequest, PromoteRunResponse, PublicModel, PublicModelCost, PublicModelLimits, PublicResendEmailServer, PublicSmtpEmailServer, RestoreAutomationVersionRequest, Run, RunAccepted, RunArtifact, RunArtifactsResponse, RunCancelResponse, RunDebug, RunError, RunEval, RunEvent, RunEventsResponse, RunExecution, RunExecutionMeta, RunExecutionRetry, RunFile, RunInput, RunListItem, RunReview, RunReviewCorrection, RunReviewDetail, RunReviewExpectedArtifacts, RunReviewExpectedFileCopyRequest, RunReviewExpectedFileMutationResponse, RunReviewExpectedFileUpdateRequest, RunReviewExpectedFileUpdateResponse, RunReviewExpectedFileUploadRequest, RunReviewHealthBucket, RunReviewHealthConfidence, RunReviewHealthResponse, RunReviewHealthRollingPoint, RunReviewHealthSummary, RunReviewRequest, RunReviewSummary, RunsArtifactsGetData, RunsArtifactsGetError, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListError, RunsArtifactsListErrors, RunsArtifactsListResponse, RunsArtifactsListResponses, RunsCancelData, RunsCancelError, RunsCancelErrors, RunsCancelResponse, RunsCancelResponses, RunScoresResponse, RunsEventsListData, RunsEventsListError, RunsEventsListErrors, RunsEventsListResponse, RunsEventsListResponses, RunsGetData, RunsGetError, RunsGetErrors, RunsGetResponse, RunsGetResponses, RunsListData, RunsListError, RunsListErrors, RunsListResponse, RunsListResponse2, RunsListResponses, RunSource, RunSourceGit, RunsPromoteData, RunsPromoteError, RunsPromoteErrors, RunsPromoteResponse, RunsPromoteResponses, RunsRerunData, RunsRerunError, RunsRerunErrors, RunsRerunResponse, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearError, RunsReviewsClearErrors, RunsReviewsClearResponse, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateError, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponse, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteError, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponse, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetError, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponse, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateError, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponse, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetError, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponse, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetError, RunsReviewsGetErrors, RunsReviewsGetResponse, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateError, RunsReviewsUpdateErrors, RunsReviewsUpdateResponse, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListError, RunsScoresListErrors, RunsScoresListResponse, RunsScoresListResponses, RunsStartData, RunsStartError, RunsStartErrors, RunsStartResponse, RunsStartResponses, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepsResponse, RunsTraceGetData, RunsTraceGetError, RunsTraceGetErrors, RunsTraceGetResponse, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetError, RunsUsageGetErrors, RunsUsageGetResponse, RunsUsageGetResponses, RunTiming, RunTraceEvent, RunTraceResponse, RunTrigger, RunUsage, RunUsageResponse, Template, TemplateFileReferenceRequest, TemplateReplaceRequest, TemplateRevision, TemplatesContentGetData, TemplatesContentGetError, TemplatesContentGetErrors, TemplatesContentGetResponse, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateError, TemplatesCreateErrors, TemplatesCreateResponse, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteError, TemplatesDeleteErrors, TemplatesDeleteResponse, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetError, TemplatesGetErrors, TemplatesGetResponse, TemplatesGetResponses, TemplatesListData, TemplatesListError, TemplatesListErrors, TemplatesListResponse, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceError, TemplatesReplaceErrors, TemplatesReplaceResponse, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingError, TemplatesStagingErrors, TemplatesStagingResponse, TemplatesStagingResponses, TemplateStagingRequest, TemplateStagingResponse, TestEmailServerRequest, TestEmailServerResponse, UpdateEmailServerRequest, WorkflowRunExecution } from './types.gen';
3
+ export { authCheck, automationsDatasetExport, automationsDatasetImport, automationsEvaluatorsGet, automationsEvaluatorsUpdate, automationsExamplesCreate, automationsExamplesDelete, automationsExamplesExpectedFileDelete, automationsExamplesExpectedFileGet, automationsExamplesExpectedFilesCreate, automationsExamplesExpectedFilesList, automationsExamplesExpectedFileUpdate, automationsExamplesGet, automationsExamplesInputFileDelete, automationsExamplesInputFileGet, automationsExamplesInputFilesCreate, automationsExamplesInputFilesList, automationsExamplesInputFileUpdate, automationsExamplesList, automationsExamplesRun, automationsExamplesUpdate, automationsExperimentsCancel, automationsExperimentsCreate, automationsExperimentsCreateStream, automationsExperimentsExport, automationsExperimentsExportAll, automationsExperimentsGet, automationsExperimentsList, automationsGet, automationsList, automationsReviewsHealth, automationsSync, automationsTriggersGet, automationsVersionsCreate, automationsVersionsList, automationsVersionsPromote, automationsVersionsRestore, emailServersCreate, emailServersDelete, emailServersGet, emailServersList, emailServersTest, emailServersUpdate, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, humanReviewsApprove, humanReviewsConfirmField, humanReviewsFilesContentGet, humanReviewsGet, humanReviewsList, humanReviewsReject, modelsList, type Options, runsArtifactsGet, runsArtifactsList, runsCancel, runsEventsList, runsGet, runsList, runsPromote, runsRerun, runsReviewsClear, runsReviewsExpectedCreate, runsReviewsExpectedFileDelete, runsReviewsExpectedFileGet, runsReviewsExpectedFileUpdate, runsReviewsExpectedGet, runsReviewsGet, runsReviewsUpdate, runsScoresList, runsStart, runsStepsList, runsTraceGet, runsUsageGet, templatesContentGet, templatesCreate, templatesDelete, templatesGet, templatesList, templatesReplace, templatesStaging } from './sdk.gen';
4
+ export type { AbortFileUploadResponse, AgentRunExecution, ApiErrorEnvelope, ApiErrorIssue, AuthCheckData, AuthCheckError, AuthCheckErrors, AuthCheckResponse, AuthCheckResponse2, AuthCheckResponses, AutomationDatasetImportMultipartRequest, AutomationDetail, AutomationsDatasetExportData, AutomationsDatasetExportError, AutomationsDatasetExportErrors, AutomationsDatasetExportResponse, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportError, AutomationsDatasetImportErrors, AutomationsDatasetImportResponse, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetError, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponse, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateError, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponse, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateError, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponse, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteError, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponse, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteError, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetError, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponse, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateError, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponse, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListError, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponse, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateError, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponse, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetError, AutomationsExamplesGetErrors, AutomationsExamplesGetResponse, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteError, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetError, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponse, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateError, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponse, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListError, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponse, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateError, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponse, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListError, AutomationsExamplesListErrors, AutomationsExamplesListResponse, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunError, AutomationsExamplesRunErrors, AutomationsExamplesRunResponse, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateError, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponse, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelError, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponse, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateError, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponse, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamError, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponse, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllError, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponse, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportError, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponse, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetError, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponse, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListError, AutomationsExperimentsListErrors, AutomationsExperimentsListResponse, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetError, AutomationsGetErrors, AutomationsGetResponse, AutomationsGetResponses, AutomationsListData, AutomationsListError, AutomationsListErrors, AutomationsListResponse, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthError, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponse, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncError, AutomationsSyncErrors, AutomationsSyncResponse, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetError, AutomationsTriggersGetErrors, AutomationsTriggersGetResponse, AutomationsTriggersGetResponses, AutomationSummary, AutomationsVersionsCreateData, AutomationsVersionsCreateError, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponse, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListError, AutomationsVersionsListErrors, AutomationsVersionsListResponse, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteError, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponse, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreError, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponse, AutomationsVersionsRestoreResponses, AutomationTriggersResponse, AutomationTriggerState, AutomationType, AutomationVersion, ClientOptions, CreateAutomationVersionRequest, CreatedTemplate, CreateEmailServerRequest, CreateFileMultipartRequest, CreateFileUploadSessionRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DeleteEmailServerResponse, DeleteFileResponse, DeleteTemplateResponse, EmailServer, EmailServersCreateData, EmailServersCreateError, EmailServersCreateErrors, EmailServersCreateResponse, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteError, EmailServersDeleteErrors, EmailServersDeleteResponse, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetError, EmailServersGetErrors, EmailServersGetResponse, EmailServersGetResponses, EmailServersListData, EmailServersListError, EmailServersListErrors, EmailServersListResponse, EmailServersListResponses, EmailServersTestData, EmailServersTestError, EmailServersTestErrors, EmailServersTestResponse, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateError, EmailServersUpdateErrors, EmailServersUpdateResponse, EmailServersUpdateResponses, EvalResult, EvaluatorConfigResponse, EvaluatorConfigUpdate, ExampleRunResponse, ExecutionStatus, Experiment, ExperimentCreate, ExperimentCreateResponse, ExperimentDetail, ExperimentRef, ExperimentsResolveData, ExperimentsResolveError, ExperimentsResolveErrors, ExperimentsResolveResponse, ExperimentsResolveResponses, File, FilesContentGetData, FilesContentGetError, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateError, FilesCreateErrors, FilesCreateResponse, FilesCreateResponses, FilesDeleteData, FilesDeleteError, FilesDeleteErrors, FilesDeleteResponse, FilesDeleteResponses, FilesGetData, FilesGetError, FilesGetErrors, FilesGetResponse, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortError, FilesUploadsAbortErrors, FilesUploadsAbortResponse, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteError, FilesUploadsCompleteErrors, FilesUploadsCompleteResponse, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateError, FilesUploadsCreateErrors, FilesUploadsCreateResponse, FilesUploadsCreateResponses, HumanReviewApproveResponse, HumanReviewFieldResponse, HumanReviewListResponse, HumanReviewRejectResponse, HumanReviewsApproveData, HumanReviewsApproveError, HumanReviewsApproveErrors, HumanReviewsApproveResponse, HumanReviewsApproveResponses, HumanReviewsConfirmFieldData, HumanReviewsConfirmFieldError, HumanReviewsConfirmFieldErrors, HumanReviewsConfirmFieldResponse, HumanReviewsConfirmFieldResponses, HumanReviewsFilesContentGetData, HumanReviewsFilesContentGetError, HumanReviewsFilesContentGetErrors, HumanReviewsFilesContentGetResponses, HumanReviewsGetData, HumanReviewsGetError, HumanReviewsGetErrors, HumanReviewsGetResponse, HumanReviewsGetResponses, HumanReviewsListData, HumanReviewsListError, HumanReviewsListErrors, HumanReviewsListResponse, HumanReviewsListResponses, HumanReviewsRejectData, HumanReviewsRejectError, HumanReviewsRejectErrors, HumanReviewsRejectResponse, HumanReviewsRejectResponses, HumanReviewTaskDetail, HumanReviewTaskResponse, ListAutomationsResponse, ListAutomationVersionsResponse, ListEmailServersResponse, ListModelsResponse, ListTemplatesResponse, ModelsListData, ModelsListError, ModelsListErrors, ModelsListResponse, ModelsListResponses, MultipartFileUploadFallback, PresignedFileUploadSession, PromoteRunRequest, PromoteRunResponse, PublicModel, PublicModelCost, PublicModelLimits, PublicResendEmailServer, PublicSmtpEmailServer, RestoreAutomationVersionRequest, Run, RunAccepted, RunArtifact, RunArtifactsResponse, RunCancelResponse, RunDebug, RunError, RunEval, RunEvent, RunEventsResponse, RunExecution, RunExecutionMeta, RunExecutionRetry, RunFile, RunHumanReviewSummary, RunInput, RunListItem, RunReview, RunReviewCorrection, RunReviewDetail, RunReviewExpectedArtifacts, RunReviewExpectedFileCopyRequest, RunReviewExpectedFileMutationResponse, RunReviewExpectedFileUpdateRequest, RunReviewExpectedFileUpdateResponse, RunReviewExpectedFileUploadRequest, RunReviewHealthBucket, RunReviewHealthConfidence, RunReviewHealthResponse, RunReviewHealthRollingPoint, RunReviewHealthSummary, RunReviewRequest, RunReviewSummary, RunsArtifactsGetData, RunsArtifactsGetError, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListError, RunsArtifactsListErrors, RunsArtifactsListResponse, RunsArtifactsListResponses, RunsCancelData, RunsCancelError, RunsCancelErrors, RunsCancelResponse, RunsCancelResponses, RunScoresResponse, RunsEventsListData, RunsEventsListError, RunsEventsListErrors, RunsEventsListResponse, RunsEventsListResponses, RunsGetData, RunsGetError, RunsGetErrors, RunsGetResponse, RunsGetResponses, RunsListData, RunsListError, RunsListErrors, RunsListResponse, RunsListResponse2, RunsListResponses, RunSource, RunSourceGit, RunsPromoteData, RunsPromoteError, RunsPromoteErrors, RunsPromoteResponse, RunsPromoteResponses, RunsRerunData, RunsRerunError, RunsRerunErrors, RunsRerunResponse, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearError, RunsReviewsClearErrors, RunsReviewsClearResponse, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateError, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponse, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteError, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponse, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetError, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponse, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateError, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponse, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetError, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponse, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetError, RunsReviewsGetErrors, RunsReviewsGetResponse, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateError, RunsReviewsUpdateErrors, RunsReviewsUpdateResponse, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListError, RunsScoresListErrors, RunsScoresListResponse, RunsScoresListResponses, RunsStartData, RunsStartError, RunsStartErrors, RunsStartResponse, RunsStartResponses, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepsResponse, RunsTraceGetData, RunsTraceGetError, RunsTraceGetErrors, RunsTraceGetResponse, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetError, RunsUsageGetErrors, RunsUsageGetResponse, RunsUsageGetResponses, RunTiming, RunTraceEvent, RunTraceResponse, RunTrigger, RunUsage, RunUsageResponse, Template, TemplateFileReferenceRequest, TemplateReplaceRequest, TemplateRevision, TemplatesContentGetData, TemplatesContentGetError, TemplatesContentGetErrors, TemplatesContentGetResponse, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateError, TemplatesCreateErrors, TemplatesCreateResponse, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteError, TemplatesDeleteErrors, TemplatesDeleteResponse, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetError, TemplatesGetErrors, TemplatesGetResponse, TemplatesGetResponses, TemplatesListData, TemplatesListError, TemplatesListErrors, TemplatesListResponse, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceError, TemplatesReplaceErrors, TemplatesReplaceResponse, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingError, TemplatesStagingErrors, TemplatesStagingResponse, TemplatesStagingResponses, TemplateStagingRequest, TemplateStagingResponse, TestEmailServerRequest, TestEmailServerResponse, UpdateEmailServerRequest, WorkflowRunExecution } from './types.gen';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
- import type { AuthCheckData, AuthCheckErrors, AuthCheckResponses, AutomationsDatasetExportData, AutomationsDatasetExportErrors, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportErrors, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetErrors, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListErrors, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunErrors, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListErrors, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetErrors, AutomationsGetResponses, AutomationsListData, AutomationsListErrors, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncErrors, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetErrors, AutomationsTriggersGetResponses, AutomationsVersionsCreateData, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListErrors, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponses, EmailServersCreateData, EmailServersCreateErrors, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteErrors, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetErrors, EmailServersGetResponses, EmailServersListData, EmailServersListErrors, EmailServersListResponses, EmailServersTestData, EmailServersTestErrors, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateErrors, EmailServersUpdateResponses, ExperimentsResolveData, ExperimentsResolveErrors, ExperimentsResolveResponses, FilesContentGetData, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateErrors, FilesCreateResponses, FilesDeleteData, FilesDeleteErrors, FilesDeleteResponses, FilesGetData, FilesGetErrors, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortErrors, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteErrors, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateErrors, FilesUploadsCreateResponses, ModelsListData, ModelsListErrors, ModelsListResponses, RunsArtifactsGetData, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListErrors, RunsArtifactsListResponses, RunsCancelData, RunsCancelErrors, RunsCancelResponses, RunsEventsListData, RunsEventsListErrors, RunsEventsListResponses, RunsGetData, RunsGetErrors, RunsGetResponses, RunsListData, RunsListErrors, RunsListResponses, RunsPromoteData, RunsPromoteErrors, RunsPromoteResponses, RunsRerunData, RunsRerunErrors, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearErrors, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetErrors, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateErrors, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListErrors, RunsScoresListResponses, RunsStartData, RunsStartErrors, RunsStartResponses, RunsStepsListData, RunsStepsListErrors, RunsStepsListResponses, RunsTraceGetData, RunsTraceGetErrors, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetErrors, RunsUsageGetResponses, TemplatesContentGetData, TemplatesContentGetErrors, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateErrors, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteErrors, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetErrors, TemplatesGetResponses, TemplatesListData, TemplatesListErrors, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceErrors, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingErrors, TemplatesStagingResponses } from './types.gen';
5
+ import type { AuthCheckData, AuthCheckErrors, AuthCheckResponses, AutomationsDatasetExportData, AutomationsDatasetExportErrors, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportErrors, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetErrors, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListErrors, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunErrors, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListErrors, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetErrors, AutomationsGetResponses, AutomationsListData, AutomationsListErrors, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncErrors, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetErrors, AutomationsTriggersGetResponses, AutomationsVersionsCreateData, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListErrors, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponses, EmailServersCreateData, EmailServersCreateErrors, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteErrors, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetErrors, EmailServersGetResponses, EmailServersListData, EmailServersListErrors, EmailServersListResponses, EmailServersTestData, EmailServersTestErrors, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateErrors, EmailServersUpdateResponses, ExperimentsResolveData, ExperimentsResolveErrors, ExperimentsResolveResponses, FilesContentGetData, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateErrors, FilesCreateResponses, FilesDeleteData, FilesDeleteErrors, FilesDeleteResponses, FilesGetData, FilesGetErrors, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortErrors, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteErrors, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateErrors, FilesUploadsCreateResponses, HumanReviewsApproveData, HumanReviewsApproveErrors, HumanReviewsApproveResponses, HumanReviewsConfirmFieldData, HumanReviewsConfirmFieldErrors, HumanReviewsConfirmFieldResponses, HumanReviewsFilesContentGetData, HumanReviewsFilesContentGetErrors, HumanReviewsFilesContentGetResponses, HumanReviewsGetData, HumanReviewsGetErrors, HumanReviewsGetResponses, HumanReviewsListData, HumanReviewsListErrors, HumanReviewsListResponses, HumanReviewsRejectData, HumanReviewsRejectErrors, HumanReviewsRejectResponses, ModelsListData, ModelsListErrors, ModelsListResponses, RunsArtifactsGetData, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListErrors, RunsArtifactsListResponses, RunsCancelData, RunsCancelErrors, RunsCancelResponses, RunsEventsListData, RunsEventsListErrors, RunsEventsListResponses, RunsGetData, RunsGetErrors, RunsGetResponses, RunsListData, RunsListErrors, RunsListResponses, RunsPromoteData, RunsPromoteErrors, RunsPromoteResponses, RunsRerunData, RunsRerunErrors, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearErrors, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetErrors, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateErrors, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListErrors, RunsScoresListResponses, RunsStartData, RunsStartErrors, RunsStartResponses, RunsStepsListData, RunsStepsListErrors, RunsStepsListResponses, RunsTraceGetData, RunsTraceGetErrors, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetErrors, RunsUsageGetResponses, TemplatesContentGetData, TemplatesContentGetErrors, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateErrors, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteErrors, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetErrors, TemplatesGetResponses, TemplatesListData, TemplatesListErrors, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceErrors, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingErrors, TemplatesStagingResponses } from './types.gen';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
8
8
  /**
@@ -651,6 +651,84 @@ export const filesUploadsComplete = <ThrowOnError extends boolean = false>(optio
651
651
  ...options
652
652
  });
653
653
 
654
+ /**
655
+ * List pending human review tasks
656
+ *
657
+ * Cursor-paginated queue of pending human-review tasks for the tenant, oldest first.
658
+ */
659
+ export const humanReviewsList = <ThrowOnError extends boolean = false>(options?: Options<HumanReviewsListData, ThrowOnError>) => (options?.client ?? client).get<HumanReviewsListResponses, HumanReviewsListErrors, ThrowOnError>({
660
+ security: [{ scheme: 'bearer', type: 'http' }],
661
+ url: '/v1/human-reviews',
662
+ ...options
663
+ });
664
+
665
+ /**
666
+ * Get human review task
667
+ *
668
+ * Fetch one authorized human-review task with draft data, derived non-file input, files, and decisions.
669
+ */
670
+ export const humanReviewsGet = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsGetData, ThrowOnError>) => (options.client ?? client).get<HumanReviewsGetResponses, HumanReviewsGetErrors, ThrowOnError>({
671
+ security: [{ scheme: 'bearer', type: 'http' }],
672
+ url: '/v1/human-reviews/{taskId}',
673
+ ...options
674
+ });
675
+
676
+ /**
677
+ * Approve human review task
678
+ *
679
+ * Approve a complete review task and resume the paused run. Requires every required field to be confirmed.
680
+ */
681
+ export const humanReviewsApprove = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsApproveData, ThrowOnError>) => (options.client ?? client).post<HumanReviewsApproveResponses, HumanReviewsApproveErrors, ThrowOnError>({
682
+ security: [{ scheme: 'bearer', type: 'http' }],
683
+ url: '/v1/human-reviews/{taskId}/approve',
684
+ ...options,
685
+ headers: {
686
+ 'Content-Type': 'application/json',
687
+ ...options.headers
688
+ }
689
+ });
690
+
691
+ /**
692
+ * Confirm or edit a review field
693
+ *
694
+ * Confirm or edit a scalar field using optimistic concurrency and a durable idempotency key.
695
+ */
696
+ export const humanReviewsConfirmField = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsConfirmFieldData, ThrowOnError>) => (options.client ?? client).put<HumanReviewsConfirmFieldResponses, HumanReviewsConfirmFieldErrors, ThrowOnError>({
697
+ security: [{ scheme: 'bearer', type: 'http' }],
698
+ url: '/v1/human-reviews/{taskId}/fields',
699
+ ...options,
700
+ headers: {
701
+ 'Content-Type': 'application/json',
702
+ ...options.headers
703
+ }
704
+ });
705
+
706
+ /**
707
+ * Download human review task file
708
+ *
709
+ * Download one file attached to a human-review task after strict tenant, task, and run ownership checks. Large cloud deployments may redirect to a short-lived signed storage URL.
710
+ */
711
+ export const humanReviewsFilesContentGet = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsFilesContentGetData, ThrowOnError>) => (options.client ?? client).get<HumanReviewsFilesContentGetResponses, HumanReviewsFilesContentGetErrors, ThrowOnError>({
712
+ security: [{ scheme: 'bearer', type: 'http' }],
713
+ url: '/v1/human-reviews/{taskId}/files/{fileId}/content',
714
+ ...options
715
+ });
716
+
717
+ /**
718
+ * Reject human review task
719
+ *
720
+ * Reject a review task and fail the paused run with the supplied reason.
721
+ */
722
+ export const humanReviewsReject = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsRejectData, ThrowOnError>) => (options.client ?? client).post<HumanReviewsRejectResponses, HumanReviewsRejectErrors, ThrowOnError>({
723
+ security: [{ scheme: 'bearer', type: 'http' }],
724
+ url: '/v1/human-reviews/{taskId}/reject',
725
+ ...options,
726
+ headers: {
727
+ 'Content-Type': 'application/json',
728
+ ...options.headers
729
+ }
730
+ });
731
+
654
732
  /**
655
733
  * List configured models
656
734
  *
@@ -1163,6 +1163,144 @@ export type AbortFileUploadResponse = {
1163
1163
  aborted: true;
1164
1164
  };
1165
1165
 
1166
+ export type HumanReviewListResponse = {
1167
+ tasks: Array<{
1168
+ id: string;
1169
+ executionId: string;
1170
+ automationId: string;
1171
+ automationName: string;
1172
+ sourceKind: 'workflow_step' | 'agent_tool';
1173
+ sourceLabel: string;
1174
+ status: 'pending' | 'approved' | 'rejected' | 'cancelled';
1175
+ requiredCount: number;
1176
+ confirmedCount: number;
1177
+ version: number;
1178
+ createdAt: string;
1179
+ updatedAt: string;
1180
+ }>;
1181
+ nextCursor: string | null;
1182
+ };
1183
+
1184
+ export type HumanReviewTaskResponse = {
1185
+ task: HumanReviewTaskDetail;
1186
+ };
1187
+
1188
+ export type HumanReviewTaskDetail = {
1189
+ id: string;
1190
+ executionId: string;
1191
+ automationId: string;
1192
+ automationName: string;
1193
+ sourceKind: 'workflow_step' | 'agent_tool';
1194
+ sourceLabel: string;
1195
+ status: 'pending' | 'approved' | 'rejected' | 'cancelled';
1196
+ requiredCount: number;
1197
+ confirmedCount: number;
1198
+ version: number;
1199
+ createdAt: string;
1200
+ updatedAt: string;
1201
+ files: Array<{
1202
+ fileId: string;
1203
+ filename: string;
1204
+ mimeType?: string;
1205
+ size?: number;
1206
+ fieldName?: string;
1207
+ artifactPath: string;
1208
+ /**
1209
+ * run_input for authorized run input files; attachment for extra current-run files. Omitted on historical tasks and inferred at read time.
1210
+ */
1211
+ role?: 'run_input' | 'attachment';
1212
+ }>;
1213
+ /**
1214
+ * Non-file trigger input derived at read time. Null when every field is a file or external source id. omitted_too_large when the projection exceeds the review data byte limit.
1215
+ */
1216
+ input: {
1217
+ status: 'available';
1218
+ data: {
1219
+ [key: string]: unknown;
1220
+ } | Array<unknown>;
1221
+ } | {
1222
+ status: 'omitted_too_large';
1223
+ } | null;
1224
+ machineData: {
1225
+ [key: string]: unknown;
1226
+ } | Array<unknown>;
1227
+ draftData: {
1228
+ [key: string]: unknown;
1229
+ } | Array<unknown>;
1230
+ schema: {
1231
+ [key: string]: unknown;
1232
+ } | null;
1233
+ fieldMetadata: {
1234
+ [key: string]: {
1235
+ /**
1236
+ * Producer-supplied confidence: 0–1 numeric (legacy) or categorical low|medium|high from ai.extract grounding. Not calibrated by Eigenpal.
1237
+ */
1238
+ confidence?: number | 'low' | 'medium' | 'high' | string;
1239
+ /**
1240
+ * Short label shown in the review UI
1241
+ */
1242
+ label?: string;
1243
+ /**
1244
+ * Longer reviewer guidance for this field
1245
+ */
1246
+ description?: string;
1247
+ /**
1248
+ * Legacy per-field override kept for existing tasks. Prefer selection.fields.review.
1249
+ */
1250
+ review?: 'auto' | 'always' | 'never';
1251
+ /**
1252
+ * Opaque display metadata preserved for the review UI
1253
+ */
1254
+ display?: {
1255
+ [key: string]: unknown;
1256
+ };
1257
+ };
1258
+ };
1259
+ requiredPaths: Array<string>;
1260
+ selectionReasons: {
1261
+ [key: string]: 'always' | 'explicit' | 'low_confidence' | 'missing_confidence' | 'all' | 'reviewer_edit' | 'threshold_met' | 'never' | 'excluded' | 'unmatched' | 'missing_confidence_skip';
1262
+ };
1263
+ decisions: Array<{
1264
+ id: string;
1265
+ path: string;
1266
+ originalValue: string | number | boolean | null;
1267
+ currentValue: string | number | boolean | null;
1268
+ required: boolean;
1269
+ reason: 'always' | 'explicit' | 'low_confidence' | 'missing_confidence' | 'all' | 'reviewer_edit' | 'threshold_met' | 'never' | 'excluded' | 'unmatched' | 'missing_confidence_skip';
1270
+ confirmedBy: string | null;
1271
+ confirmedAt: string | null;
1272
+ version: number;
1273
+ }>;
1274
+ instructions: string | null;
1275
+ completedBy: string | null;
1276
+ completedAt: string | null;
1277
+ outcomeReason: string | null;
1278
+ /**
1279
+ * Optional lineage@1 document resolved from the extract sidecar. Omitted when missing or unreadable. Validate with @openparser/lineage.
1280
+ */
1281
+ lineage?: {
1282
+ [key: string]: unknown;
1283
+ };
1284
+ /**
1285
+ * Optional ParsedDocument resolved from the extract sidecar. Omitted when missing or unreadable. Validate with @openparser/schema.
1286
+ */
1287
+ parsedDocument?: {
1288
+ [key: string]: unknown;
1289
+ };
1290
+ };
1291
+
1292
+ export type HumanReviewApproveResponse = {
1293
+ task: HumanReviewTaskDetail;
1294
+ };
1295
+
1296
+ export type HumanReviewFieldResponse = {
1297
+ task: HumanReviewTaskDetail;
1298
+ };
1299
+
1300
+ export type HumanReviewRejectResponse = {
1301
+ task: HumanReviewTaskDetail;
1302
+ };
1303
+
1166
1304
  export type ListModelsResponse = {
1167
1305
  data: Array<PublicModel>;
1168
1306
  total: number;
@@ -1346,6 +1484,10 @@ export type RunExecutionMeta = {
1346
1484
  * Lightweight review state for run list rows.
1347
1485
  */
1348
1486
  review?: RunReviewSummary | null;
1487
+ /**
1488
+ * Pending in-flight human review when the run is waiting on a reviewer.
1489
+ */
1490
+ humanReview?: RunHumanReviewSummary | null;
1349
1491
  };
1350
1492
 
1351
1493
  export type ExecutionStatus = 'created' | 'pending' | 'running' | 'waiting' | 'finalizing' | 'completed' | 'failed' | 'cancelled' | 'rejected';
@@ -1381,6 +1523,16 @@ export type RunReviewSummary = {
1381
1523
  correctionCount: number;
1382
1524
  };
1383
1525
 
1526
+ export type RunHumanReviewSummary = {
1527
+ taskId: string;
1528
+ sourceKind: 'workflow_step' | 'agent_tool';
1529
+ sourceLabel: string;
1530
+ status: 'pending';
1531
+ requiredCount: number;
1532
+ confirmedCount: number;
1533
+ version: number;
1534
+ };
1535
+
1384
1536
  export type Run = {
1385
1537
  id: string;
1386
1538
  type: 'workflow' | 'agent';
@@ -1512,6 +1664,10 @@ export type WorkflowRunExecution = {
1512
1664
  batchId: string | null;
1513
1665
  retry: RunExecutionRetry;
1514
1666
  review?: RunReview | null;
1667
+ /**
1668
+ * Pending in-flight human review when the run is waiting on a reviewer.
1669
+ */
1670
+ humanReview?: RunHumanReviewSummary | null;
1515
1671
  /**
1516
1672
  * Per-step executions of the workflow run (`expand=execution`).
1517
1673
  */
@@ -1594,6 +1750,10 @@ export type AgentRunExecution = {
1594
1750
  batchId: string | null;
1595
1751
  retry: RunExecutionRetry;
1596
1752
  review?: RunReview | null;
1753
+ /**
1754
+ * Pending in-flight human review when the run is waiting on a reviewer.
1755
+ */
1756
+ humanReview?: RunHumanReviewSummary | null;
1597
1757
  files: {
1598
1758
  /**
1599
1759
  * Output artifacts the agent produced.
@@ -4842,6 +5002,344 @@ export type FilesUploadsCompleteResponses = {
4842
5002
 
4843
5003
  export type FilesUploadsCompleteResponse = FilesUploadsCompleteResponses[keyof FilesUploadsCompleteResponses];
4844
5004
 
5005
+ export type HumanReviewsListData = {
5006
+ body?: never;
5007
+ path?: never;
5008
+ query?: {
5009
+ automationId?: string;
5010
+ waitingBefore?: string;
5011
+ cursor?: string;
5012
+ limit?: number;
5013
+ };
5014
+ url: '/v1/human-reviews';
5015
+ };
5016
+
5017
+ export type HumanReviewsListErrors = {
5018
+ /**
5019
+ * Validation error. Request shape did not match the spec.
5020
+ */
5021
+ 400: ApiErrorEnvelope;
5022
+ /**
5023
+ * Missing or invalid API key
5024
+ */
5025
+ 401: ApiErrorEnvelope;
5026
+ /**
5027
+ * API key lacks required scope
5028
+ */
5029
+ 403: ApiErrorEnvelope;
5030
+ /**
5031
+ * Resource not found
5032
+ */
5033
+ 404: ApiErrorEnvelope;
5034
+ /**
5035
+ * Payload too large. Upload exceeded the per-request size cap.
5036
+ */
5037
+ 413: ApiErrorEnvelope;
5038
+ /**
5039
+ * Rate limit exceeded
5040
+ */
5041
+ 429: ApiErrorEnvelope;
5042
+ /**
5043
+ * Internal server error
5044
+ */
5045
+ 500: ApiErrorEnvelope;
5046
+ };
5047
+
5048
+ export type HumanReviewsListError = HumanReviewsListErrors[keyof HumanReviewsListErrors];
5049
+
5050
+ export type HumanReviewsListResponses = {
5051
+ /**
5052
+ * Pending review tasks
5053
+ */
5054
+ 200: HumanReviewListResponse;
5055
+ };
5056
+
5057
+ export type HumanReviewsListResponse = HumanReviewsListResponses[keyof HumanReviewsListResponses];
5058
+
5059
+ export type HumanReviewsGetData = {
5060
+ body?: never;
5061
+ path: {
5062
+ /**
5063
+ * Human review task id
5064
+ */
5065
+ taskId: string;
5066
+ };
5067
+ query?: never;
5068
+ url: '/v1/human-reviews/{taskId}';
5069
+ };
5070
+
5071
+ export type HumanReviewsGetErrors = {
5072
+ /**
5073
+ * Validation error. Request shape did not match the spec.
5074
+ */
5075
+ 400: ApiErrorEnvelope;
5076
+ /**
5077
+ * Missing or invalid API key
5078
+ */
5079
+ 401: ApiErrorEnvelope;
5080
+ /**
5081
+ * API key lacks required scope
5082
+ */
5083
+ 403: ApiErrorEnvelope;
5084
+ /**
5085
+ * Resource not found
5086
+ */
5087
+ 404: ApiErrorEnvelope;
5088
+ /**
5089
+ * Payload too large. Upload exceeded the per-request size cap.
5090
+ */
5091
+ 413: ApiErrorEnvelope;
5092
+ /**
5093
+ * Rate limit exceeded
5094
+ */
5095
+ 429: ApiErrorEnvelope;
5096
+ /**
5097
+ * Internal server error
5098
+ */
5099
+ 500: ApiErrorEnvelope;
5100
+ };
5101
+
5102
+ export type HumanReviewsGetError = HumanReviewsGetErrors[keyof HumanReviewsGetErrors];
5103
+
5104
+ export type HumanReviewsGetResponses = {
5105
+ /**
5106
+ * Human review task detail
5107
+ */
5108
+ 200: HumanReviewTaskResponse;
5109
+ };
5110
+
5111
+ export type HumanReviewsGetResponse = HumanReviewsGetResponses[keyof HumanReviewsGetResponses];
5112
+
5113
+ export type HumanReviewsApproveData = {
5114
+ body: {
5115
+ expectedVersion: number;
5116
+ };
5117
+ path: {
5118
+ /**
5119
+ * Human review task id
5120
+ */
5121
+ taskId: string;
5122
+ };
5123
+ query?: never;
5124
+ url: '/v1/human-reviews/{taskId}/approve';
5125
+ };
5126
+
5127
+ export type HumanReviewsApproveErrors = {
5128
+ /**
5129
+ * Validation error. Request shape did not match the spec.
5130
+ */
5131
+ 400: ApiErrorEnvelope;
5132
+ /**
5133
+ * Missing or invalid API key
5134
+ */
5135
+ 401: ApiErrorEnvelope;
5136
+ /**
5137
+ * API key lacks required scope
5138
+ */
5139
+ 403: ApiErrorEnvelope;
5140
+ /**
5141
+ * Resource not found
5142
+ */
5143
+ 404: ApiErrorEnvelope;
5144
+ /**
5145
+ * Payload too large. Upload exceeded the per-request size cap.
5146
+ */
5147
+ 413: ApiErrorEnvelope;
5148
+ /**
5149
+ * Rate limit exceeded
5150
+ */
5151
+ 429: ApiErrorEnvelope;
5152
+ /**
5153
+ * Internal server error
5154
+ */
5155
+ 500: ApiErrorEnvelope;
5156
+ };
5157
+
5158
+ export type HumanReviewsApproveError = HumanReviewsApproveErrors[keyof HumanReviewsApproveErrors];
5159
+
5160
+ export type HumanReviewsApproveResponses = {
5161
+ /**
5162
+ * Approved task
5163
+ */
5164
+ 200: HumanReviewApproveResponse;
5165
+ };
5166
+
5167
+ export type HumanReviewsApproveResponse = HumanReviewsApproveResponses[keyof HumanReviewsApproveResponses];
5168
+
5169
+ export type HumanReviewsConfirmFieldData = {
5170
+ body: {
5171
+ expectedVersion: number;
5172
+ idempotencyKey: string;
5173
+ path: string;
5174
+ value: string | number | boolean | null;
5175
+ confirmed?: boolean;
5176
+ };
5177
+ path: {
5178
+ /**
5179
+ * Human review task id
5180
+ */
5181
+ taskId: string;
5182
+ };
5183
+ query?: never;
5184
+ url: '/v1/human-reviews/{taskId}/fields';
5185
+ };
5186
+
5187
+ export type HumanReviewsConfirmFieldErrors = {
5188
+ /**
5189
+ * Validation error. Request shape did not match the spec.
5190
+ */
5191
+ 400: ApiErrorEnvelope;
5192
+ /**
5193
+ * Missing or invalid API key
5194
+ */
5195
+ 401: ApiErrorEnvelope;
5196
+ /**
5197
+ * API key lacks required scope
5198
+ */
5199
+ 403: ApiErrorEnvelope;
5200
+ /**
5201
+ * Resource not found
5202
+ */
5203
+ 404: ApiErrorEnvelope;
5204
+ /**
5205
+ * Payload too large. Upload exceeded the per-request size cap.
5206
+ */
5207
+ 413: ApiErrorEnvelope;
5208
+ /**
5209
+ * Rate limit exceeded
5210
+ */
5211
+ 429: ApiErrorEnvelope;
5212
+ /**
5213
+ * Internal server error
5214
+ */
5215
+ 500: ApiErrorEnvelope;
5216
+ };
5217
+
5218
+ export type HumanReviewsConfirmFieldError = HumanReviewsConfirmFieldErrors[keyof HumanReviewsConfirmFieldErrors];
5219
+
5220
+ export type HumanReviewsConfirmFieldResponses = {
5221
+ /**
5222
+ * Updated task after field confirmation
5223
+ */
5224
+ 200: HumanReviewFieldResponse;
5225
+ };
5226
+
5227
+ export type HumanReviewsConfirmFieldResponse = HumanReviewsConfirmFieldResponses[keyof HumanReviewsConfirmFieldResponses];
5228
+
5229
+ export type HumanReviewsFilesContentGetData = {
5230
+ body?: never;
5231
+ path: {
5232
+ /**
5233
+ * Human review task id
5234
+ */
5235
+ taskId: string;
5236
+ /**
5237
+ * File id listed on the review task
5238
+ */
5239
+ fileId: string;
5240
+ };
5241
+ query?: never;
5242
+ url: '/v1/human-reviews/{taskId}/files/{fileId}/content';
5243
+ };
5244
+
5245
+ export type HumanReviewsFilesContentGetErrors = {
5246
+ /**
5247
+ * Validation error. Request shape did not match the spec.
5248
+ */
5249
+ 400: ApiErrorEnvelope;
5250
+ /**
5251
+ * Missing or invalid API key
5252
+ */
5253
+ 401: ApiErrorEnvelope;
5254
+ /**
5255
+ * API key lacks required scope
5256
+ */
5257
+ 403: ApiErrorEnvelope;
5258
+ /**
5259
+ * Resource not found
5260
+ */
5261
+ 404: ApiErrorEnvelope;
5262
+ /**
5263
+ * Payload too large. Upload exceeded the per-request size cap.
5264
+ */
5265
+ 413: ApiErrorEnvelope;
5266
+ /**
5267
+ * Rate limit exceeded
5268
+ */
5269
+ 429: ApiErrorEnvelope;
5270
+ /**
5271
+ * Internal server error
5272
+ */
5273
+ 500: ApiErrorEnvelope;
5274
+ };
5275
+
5276
+ export type HumanReviewsFilesContentGetError = HumanReviewsFilesContentGetErrors[keyof HumanReviewsFilesContentGetErrors];
5277
+
5278
+ export type HumanReviewsFilesContentGetResponses = {
5279
+ /**
5280
+ * Task file content
5281
+ */
5282
+ 200: unknown;
5283
+ };
5284
+
5285
+ export type HumanReviewsRejectData = {
5286
+ body: {
5287
+ expectedVersion: number;
5288
+ idempotencyKey: string;
5289
+ reason: string;
5290
+ };
5291
+ path: {
5292
+ /**
5293
+ * Human review task id
5294
+ */
5295
+ taskId: string;
5296
+ };
5297
+ query?: never;
5298
+ url: '/v1/human-reviews/{taskId}/reject';
5299
+ };
5300
+
5301
+ export type HumanReviewsRejectErrors = {
5302
+ /**
5303
+ * Validation error. Request shape did not match the spec.
5304
+ */
5305
+ 400: ApiErrorEnvelope;
5306
+ /**
5307
+ * Missing or invalid API key
5308
+ */
5309
+ 401: ApiErrorEnvelope;
5310
+ /**
5311
+ * API key lacks required scope
5312
+ */
5313
+ 403: ApiErrorEnvelope;
5314
+ /**
5315
+ * Resource not found
5316
+ */
5317
+ 404: ApiErrorEnvelope;
5318
+ /**
5319
+ * Payload too large. Upload exceeded the per-request size cap.
5320
+ */
5321
+ 413: ApiErrorEnvelope;
5322
+ /**
5323
+ * Rate limit exceeded
5324
+ */
5325
+ 429: ApiErrorEnvelope;
5326
+ /**
5327
+ * Internal server error
5328
+ */
5329
+ 500: ApiErrorEnvelope;
5330
+ };
5331
+
5332
+ export type HumanReviewsRejectError = HumanReviewsRejectErrors[keyof HumanReviewsRejectErrors];
5333
+
5334
+ export type HumanReviewsRejectResponses = {
5335
+ /**
5336
+ * Rejected task
5337
+ */
5338
+ 200: HumanReviewRejectResponse;
5339
+ };
5340
+
5341
+ export type HumanReviewsRejectResponse = HumanReviewsRejectResponses[keyof HumanReviewsRejectResponses];
5342
+
4845
5343
  export type ModelsListData = {
4846
5344
  body?: never;
4847
5345
  path?: never;
@@ -0,0 +1,109 @@
1
+ import type { OperationResult, RequestDispatchOptions } from '../client';
2
+ import type { Client } from '../generated/client';
3
+ import {
4
+ humanReviewsApprove,
5
+ humanReviewsConfirmField,
6
+ humanReviewsFilesContentGet,
7
+ humanReviewsGet,
8
+ humanReviewsList,
9
+ humanReviewsReject,
10
+ } from '../generated/sdk.gen';
11
+ import type {
12
+ HumanReviewsApproveResponse,
13
+ HumanReviewsConfirmFieldResponse,
14
+ HumanReviewsGetResponse,
15
+ HumanReviewsListData,
16
+ HumanReviewsListResponse,
17
+ HumanReviewsRejectResponse,
18
+ } from '../generated/types.gen';
19
+
20
+ type Dispatch = <T>(
21
+ call: () => Promise<OperationResult<T>>,
22
+ options?: RequestDispatchOptions
23
+ ) => Promise<T>;
24
+ type SignalOptions = { signal?: AbortSignal };
25
+
26
+ export type ListHumanReviewsOptions = NonNullable<HumanReviewsListData['query']> & SignalOptions;
27
+
28
+ export class HumanReviewsResource {
29
+ constructor(
30
+ private readonly client: Client,
31
+ private readonly dispatch: Dispatch
32
+ ) {}
33
+
34
+ async list(options: ListHumanReviewsOptions = {}): Promise<HumanReviewsListResponse> {
35
+ const { signal, ...query } = options;
36
+ return this.dispatch(() => humanReviewsList({ client: this.client, query, signal }));
37
+ }
38
+
39
+ async get(taskId: string, options: SignalOptions = {}): Promise<HumanReviewsGetResponse> {
40
+ return this.dispatch(() =>
41
+ humanReviewsGet({ client: this.client, path: { taskId }, signal: options.signal })
42
+ );
43
+ }
44
+
45
+ async approve(
46
+ taskId: string,
47
+ body: { expectedVersion: number },
48
+ options: SignalOptions = {}
49
+ ): Promise<HumanReviewsApproveResponse> {
50
+ return this.dispatch(() =>
51
+ humanReviewsApprove({
52
+ client: this.client,
53
+ path: { taskId },
54
+ body,
55
+ signal: options.signal,
56
+ })
57
+ );
58
+ }
59
+
60
+ async confirmField(
61
+ taskId: string,
62
+ body: {
63
+ path: string;
64
+ value: string | number | boolean | null;
65
+ expectedVersion: number;
66
+ idempotencyKey: string;
67
+ },
68
+ options: SignalOptions = {}
69
+ ): Promise<HumanReviewsConfirmFieldResponse> {
70
+ return this.dispatch(() =>
71
+ humanReviewsConfirmField({
72
+ client: this.client,
73
+ path: { taskId },
74
+ body,
75
+ signal: options.signal,
76
+ })
77
+ );
78
+ }
79
+
80
+ async reject(
81
+ taskId: string,
82
+ body: { reason: string; expectedVersion: number; idempotencyKey: string },
83
+ options: SignalOptions = {}
84
+ ): Promise<HumanReviewsRejectResponse> {
85
+ return this.dispatch(() =>
86
+ humanReviewsReject({
87
+ client: this.client,
88
+ path: { taskId },
89
+ body,
90
+ signal: options.signal,
91
+ })
92
+ );
93
+ }
94
+
95
+ async downloadFile(taskId: string, fileId: string, options: SignalOptions = {}): Promise<Blob> {
96
+ return this.dispatch(
97
+ async () => {
98
+ const response = await humanReviewsFilesContentGet({
99
+ client: this.client,
100
+ path: { taskId, fileId },
101
+ parseAs: 'blob',
102
+ signal: options.signal,
103
+ });
104
+ return response as OperationResult<Blob>;
105
+ },
106
+ { responseKind: 'binary' }
107
+ );
108
+ }
109
+ }
package/src/telemetry.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  export const SDK_LANGUAGE = 'typescript';
20
20
  // Rewritten at publish time by scripts/release/platform/render-sdk-versions.sh.
21
21
  // Keep this string literal exactly stable — sed matches on it.
22
- export const SDK_VERSION = '0.16.0';
22
+ export const SDK_VERSION = '0.16.2';
23
23
 
24
24
  function detectRuntime(): string {
25
25
  const g = globalThis as unknown as {