@eigenpal/sdk 0.19.0 → 0.20.0
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 +6 -0
- package/package.json +1 -1
- package/src/generated/index.ts +2 -2
- package/src/generated/sdk.gen.ts +101 -1
- package/src/generated/types.gen.ts +672 -0
- package/src/resources/automations.ts +216 -2
- package/src/telemetry.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eigenpal/sdk
|
|
2
2
|
|
|
3
|
+
## 0.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0ce2092: `client.automations.datasetReviewRequests` (`dataset_review_requests` in Python) covers the full dataset review lifecycle: list and get with `progress`, `focusFields`, `ignoredFields`, `fieldDecisions`, and `inputDrifted`; create with reviewer instructions and per-field notes; update request metadata or close with status; update items including `field-decision` (pass `decision: null` to clear); and the per-user activity trail. Dataset write-back stays manual — there is no lock endpoint.
|
|
8
|
+
|
|
3
9
|
## 0.17.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/generated/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export { authCheck, automationsDatasetExport, automationsDatasetImport, automationsDelete, 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, automationsUpdate, automationsVersionsCreate, automationsVersionsList, automationsVersionsPromote, automationsVersionsRestore, emailServersCreate, emailServersDelete, emailServersGet, emailServersList, emailServersTest, emailServersUpdate, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, filesUploadsGet, filesUploadsPartsList, filesUploadsPartsPresign, foldersCreate, foldersDelete, foldersGet, foldersList, foldersUpdate, 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, runsStepsGet, 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, AutomationsDeleteData, AutomationsDeleteError, AutomationsDeleteErrors, AutomationsDeleteResponse, AutomationsDeleteResponses, 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, AutomationsUpdateData, AutomationsUpdateError, AutomationsUpdateErrors, AutomationsUpdateResponse, AutomationsUpdateResponses, 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, CreateFolderRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DeleteAutomationResponse, DeleteEmailServerResponse, DeleteFileResponse, DeleteFolderResponse, 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, FilesUploadsGetData, FilesUploadsGetError, FilesUploadsGetErrors, FilesUploadsGetResponse, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListError, FilesUploadsPartsListErrors, FilesUploadsPartsListResponse, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignError, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponse, FilesUploadsPartsPresignResponses, FileUploadSession, Folder, FoldersCreateData, FoldersCreateError, FoldersCreateErrors, FoldersCreateResponse, FoldersCreateResponses, FoldersDeleteData, FoldersDeleteError, FoldersDeleteErrors, FoldersDeleteResponse, FoldersDeleteResponses, FoldersGetData, FoldersGetError, FoldersGetErrors, FoldersGetResponse, FoldersGetResponses, FoldersListData, FoldersListError, FoldersListErrors, FoldersListResponse, FoldersListResponses, FoldersUpdateData, FoldersUpdateError, FoldersUpdateErrors, FoldersUpdateResponse, FoldersUpdateResponses, FolderType, 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, ListFileUploadPartsResponse, ListFoldersResponse, ListModelsResponse, ListTemplatesResponse, ModelsListData, ModelsListError, ModelsListErrors, ModelsListResponse, ModelsListResponses, MultipartFileUploadFallback, PresignedFileUploadSession, PresignedMultipartFileUploadSession, PresignFileUploadPartRequest, PresignFileUploadPartResponse, 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, RunsStepsGetData, RunsStepsGetError, RunsStepsGetErrors, RunsStepsGetResponse, RunsStepsGetResponses, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepDetailResponse, 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, UpdateAutomationRequest, UpdateEmailServerRequest, UpdateFolderRequest, WorkflowRunExecution } from './types.gen';
|
|
3
|
+
export { authCheck, automationsDatasetExport, automationsDatasetImport, automationsDatasetReviewRequestsCreate, automationsDatasetReviewRequestsGet, automationsDatasetReviewRequestsItemFileGet, automationsDatasetReviewRequestsList, automationsDatasetReviewRequestsListEvents, automationsDatasetReviewRequestsListItems, automationsDatasetReviewRequestsUpdate, automationsDatasetReviewRequestsUpdateItem, automationsDelete, 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, automationsUpdate, automationsVersionsCreate, automationsVersionsList, automationsVersionsPromote, automationsVersionsRestore, emailServersCreate, emailServersDelete, emailServersGet, emailServersList, emailServersTest, emailServersUpdate, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, filesUploadsGet, filesUploadsPartsList, filesUploadsPartsPresign, foldersCreate, foldersDelete, foldersGet, foldersList, foldersUpdate, 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, runsStepsGet, 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, AutomationsDatasetReviewRequestsCreateData, AutomationsDatasetReviewRequestsCreateError, AutomationsDatasetReviewRequestsCreateErrors, AutomationsDatasetReviewRequestsCreateResponse, AutomationsDatasetReviewRequestsCreateResponses, AutomationsDatasetReviewRequestsGetData, AutomationsDatasetReviewRequestsGetError, AutomationsDatasetReviewRequestsGetErrors, AutomationsDatasetReviewRequestsGetResponse, AutomationsDatasetReviewRequestsGetResponses, AutomationsDatasetReviewRequestsItemFileGetData, AutomationsDatasetReviewRequestsItemFileGetError, AutomationsDatasetReviewRequestsItemFileGetErrors, AutomationsDatasetReviewRequestsItemFileGetResponse, AutomationsDatasetReviewRequestsItemFileGetResponses, AutomationsDatasetReviewRequestsListData, AutomationsDatasetReviewRequestsListError, AutomationsDatasetReviewRequestsListErrors, AutomationsDatasetReviewRequestsListEventsData, AutomationsDatasetReviewRequestsListEventsError, AutomationsDatasetReviewRequestsListEventsErrors, AutomationsDatasetReviewRequestsListEventsResponse, AutomationsDatasetReviewRequestsListEventsResponses, AutomationsDatasetReviewRequestsListItemsData, AutomationsDatasetReviewRequestsListItemsError, AutomationsDatasetReviewRequestsListItemsErrors, AutomationsDatasetReviewRequestsListItemsResponse, AutomationsDatasetReviewRequestsListItemsResponses, AutomationsDatasetReviewRequestsListResponse, AutomationsDatasetReviewRequestsListResponses, AutomationsDatasetReviewRequestsUpdateData, AutomationsDatasetReviewRequestsUpdateError, AutomationsDatasetReviewRequestsUpdateErrors, AutomationsDatasetReviewRequestsUpdateItemData, AutomationsDatasetReviewRequestsUpdateItemError, AutomationsDatasetReviewRequestsUpdateItemErrors, AutomationsDatasetReviewRequestsUpdateItemResponse, AutomationsDatasetReviewRequestsUpdateItemResponses, AutomationsDatasetReviewRequestsUpdateResponse, AutomationsDatasetReviewRequestsUpdateResponses, AutomationsDeleteData, AutomationsDeleteError, AutomationsDeleteErrors, AutomationsDeleteResponse, AutomationsDeleteResponses, 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, AutomationsUpdateData, AutomationsUpdateError, AutomationsUpdateErrors, AutomationsUpdateResponse, AutomationsUpdateResponses, 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, CreateDatasetReviewRequest, CreatedTemplate, CreateEmailServerRequest, CreateFileMultipartRequest, CreateFileUploadSessionRequest, CreateFolderRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DatasetReviewCreateItemNote, DatasetReviewDetail, DatasetReviewEvent, DatasetReviewEventList, DatasetReviewFieldDecision, DatasetReviewFocusField, DatasetReviewFocusFieldOutput, DatasetReviewItem, DatasetReviewItemFieldNote, DatasetReviewItemList, DatasetReviewItemResponse, DatasetReviewProgress, DatasetReviewRequest, DatasetReviewRequestList, DeleteAutomationResponse, DeleteEmailServerResponse, DeleteFileResponse, DeleteFolderResponse, 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, FilesUploadsGetData, FilesUploadsGetError, FilesUploadsGetErrors, FilesUploadsGetResponse, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListError, FilesUploadsPartsListErrors, FilesUploadsPartsListResponse, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignError, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponse, FilesUploadsPartsPresignResponses, FileUploadSession, Folder, FoldersCreateData, FoldersCreateError, FoldersCreateErrors, FoldersCreateResponse, FoldersCreateResponses, FoldersDeleteData, FoldersDeleteError, FoldersDeleteErrors, FoldersDeleteResponse, FoldersDeleteResponses, FoldersGetData, FoldersGetError, FoldersGetErrors, FoldersGetResponse, FoldersGetResponses, FoldersListData, FoldersListError, FoldersListErrors, FoldersListResponse, FoldersListResponses, FoldersUpdateData, FoldersUpdateError, FoldersUpdateErrors, FoldersUpdateResponse, FoldersUpdateResponses, FolderType, 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, ListFileUploadPartsResponse, ListFoldersResponse, ListModelsResponse, ListTemplatesResponse, ModelsListData, ModelsListError, ModelsListErrors, ModelsListResponse, ModelsListResponses, MultipartFileUploadFallback, PresignedFileUploadSession, PresignedMultipartFileUploadSession, PresignFileUploadPartRequest, PresignFileUploadPartResponse, 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, RunsStepsGetData, RunsStepsGetError, RunsStepsGetErrors, RunsStepsGetResponse, RunsStepsGetResponses, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepDetailResponse, 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, UpdateAutomationRequest, UpdateDatasetReviewItem, UpdateDatasetReviewRequest, UpdateEmailServerRequest, UpdateFolderRequest, WorkflowRunExecution } from './types.gen';
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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, AutomationsDeleteData, AutomationsDeleteErrors, AutomationsDeleteResponses, 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, AutomationsUpdateData, AutomationsUpdateErrors, AutomationsUpdateResponses, 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, FilesUploadsGetData, FilesUploadsGetErrors, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListErrors, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponses, FoldersCreateData, FoldersCreateErrors, FoldersCreateResponses, FoldersDeleteData, FoldersDeleteErrors, FoldersDeleteResponses, FoldersGetData, FoldersGetErrors, FoldersGetResponses, FoldersListData, FoldersListErrors, FoldersListResponses, FoldersUpdateData, FoldersUpdateErrors, FoldersUpdateResponses, 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, RunsStepsGetData, RunsStepsGetErrors, RunsStepsGetResponses, 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, AutomationsDatasetReviewRequestsCreateData, AutomationsDatasetReviewRequestsCreateErrors, AutomationsDatasetReviewRequestsCreateResponses, AutomationsDatasetReviewRequestsGetData, AutomationsDatasetReviewRequestsGetErrors, AutomationsDatasetReviewRequestsGetResponses, AutomationsDatasetReviewRequestsItemFileGetData, AutomationsDatasetReviewRequestsItemFileGetErrors, AutomationsDatasetReviewRequestsItemFileGetResponses, AutomationsDatasetReviewRequestsListData, AutomationsDatasetReviewRequestsListErrors, AutomationsDatasetReviewRequestsListEventsData, AutomationsDatasetReviewRequestsListEventsErrors, AutomationsDatasetReviewRequestsListEventsResponses, AutomationsDatasetReviewRequestsListItemsData, AutomationsDatasetReviewRequestsListItemsErrors, AutomationsDatasetReviewRequestsListItemsResponses, AutomationsDatasetReviewRequestsListResponses, AutomationsDatasetReviewRequestsUpdateData, AutomationsDatasetReviewRequestsUpdateErrors, AutomationsDatasetReviewRequestsUpdateItemData, AutomationsDatasetReviewRequestsUpdateItemErrors, AutomationsDatasetReviewRequestsUpdateItemResponses, AutomationsDatasetReviewRequestsUpdateResponses, AutomationsDeleteData, AutomationsDeleteErrors, AutomationsDeleteResponses, 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, AutomationsUpdateData, AutomationsUpdateErrors, AutomationsUpdateResponses, 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, FilesUploadsGetData, FilesUploadsGetErrors, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListErrors, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponses, FoldersCreateData, FoldersCreateErrors, FoldersCreateResponses, FoldersDeleteData, FoldersDeleteErrors, FoldersDeleteResponses, FoldersGetData, FoldersGetErrors, FoldersGetResponses, FoldersListData, FoldersListErrors, FoldersListResponses, FoldersUpdateData, FoldersUpdateErrors, FoldersUpdateResponses, 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, RunsStepsGetData, RunsStepsGetErrors, RunsStepsGetResponses, 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
|
/**
|
|
@@ -77,6 +77,106 @@ export const automationsUpdate = <ThrowOnError extends boolean = false>(options:
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* List dataset review requests
|
|
82
|
+
*
|
|
83
|
+
* List dataset review requests for one automation, including per-request progress.
|
|
84
|
+
*/
|
|
85
|
+
export const automationsDatasetReviewRequestsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsListResponses, AutomationsDatasetReviewRequestsListErrors, ThrowOnError>({
|
|
86
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
87
|
+
url: '/v1/automations/{id}/dataset-review-requests',
|
|
88
|
+
...options
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Create dataset review request
|
|
93
|
+
*
|
|
94
|
+
* Snapshot selected dataset examples into a review request. Include instructions, focusFields to highlight, and ignoredFields for paths reviewers can skip. Optional itemNotes become commented events on those examples.
|
|
95
|
+
*/
|
|
96
|
+
export const automationsDatasetReviewRequestsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsDatasetReviewRequestsCreateResponses, AutomationsDatasetReviewRequestsCreateErrors, ThrowOnError>({
|
|
97
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
98
|
+
url: '/v1/automations/{id}/dataset-review-requests',
|
|
99
|
+
...options,
|
|
100
|
+
headers: {
|
|
101
|
+
'Content-Type': 'application/json',
|
|
102
|
+
...options.headers
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Get dataset review request
|
|
108
|
+
*
|
|
109
|
+
* Fetch one dataset review request with snapshotted items, progress, focus fields, ignored fields, and events.
|
|
110
|
+
*/
|
|
111
|
+
export const automationsDatasetReviewRequestsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsGetResponses, AutomationsDatasetReviewRequestsGetErrors, ThrowOnError>({
|
|
112
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
113
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}',
|
|
114
|
+
...options
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Update dataset review request
|
|
119
|
+
*
|
|
120
|
+
* Update review metadata or lifecycle status while the request is draft, open, or paused. Set status to `closed` when review is finished; dataset reconciliation stays manual.
|
|
121
|
+
*/
|
|
122
|
+
export const automationsDatasetReviewRequestsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsDatasetReviewRequestsUpdateResponses, AutomationsDatasetReviewRequestsUpdateErrors, ThrowOnError>({
|
|
123
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
124
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}',
|
|
125
|
+
...options,
|
|
126
|
+
headers: {
|
|
127
|
+
'Content-Type': 'application/json',
|
|
128
|
+
...options.headers
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* List dataset review events
|
|
134
|
+
*
|
|
135
|
+
* List audit events for one dataset review request.
|
|
136
|
+
*/
|
|
137
|
+
export const automationsDatasetReviewRequestsListEvents = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListEventsData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsListEventsResponses, AutomationsDatasetReviewRequestsListEventsErrors, ThrowOnError>({
|
|
138
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
139
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/events',
|
|
140
|
+
...options
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* List dataset review items
|
|
145
|
+
*
|
|
146
|
+
* List items for one dataset review request, optionally filtered by item status.
|
|
147
|
+
*/
|
|
148
|
+
export const automationsDatasetReviewRequestsListItems = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListItemsData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsListItemsResponses, AutomationsDatasetReviewRequestsListItemsErrors, ThrowOnError>({
|
|
149
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
150
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items',
|
|
151
|
+
...options
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Update dataset review item
|
|
156
|
+
*
|
|
157
|
+
* Approve, edit, reject, reopen, comment, or record a field-decision on one review item while the parent request is draft, open, or paused. Pass `expectedUpdatedAt` from the item the client last observed. Pass `fieldPath` with `action: comment` or `action: field-decision`.
|
|
158
|
+
*/
|
|
159
|
+
export const automationsDatasetReviewRequestsUpdateItem = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsUpdateItemData, ThrowOnError>) => (options.client ?? client).patch<AutomationsDatasetReviewRequestsUpdateItemResponses, AutomationsDatasetReviewRequestsUpdateItemErrors, ThrowOnError>({
|
|
160
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
161
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items/{itemId}',
|
|
162
|
+
...options,
|
|
163
|
+
headers: {
|
|
164
|
+
'Content-Type': 'application/json',
|
|
165
|
+
...options.headers
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Download dataset review item input file
|
|
171
|
+
*
|
|
172
|
+
* Download one input file belonging to a review item. Authorized by `dataset_review:read` and scoped to files referenced in the item snapshot, so reviewers without workflow read can still preview documents.
|
|
173
|
+
*/
|
|
174
|
+
export const automationsDatasetReviewRequestsItemFileGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsItemFileGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsItemFileGetResponses, AutomationsDatasetReviewRequestsItemFileGetErrors, ThrowOnError>({
|
|
175
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
176
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items/{itemId}/files/{path}',
|
|
177
|
+
...options
|
|
178
|
+
});
|
|
179
|
+
|
|
80
180
|
/**
|
|
81
181
|
* Export automation dataset
|
|
82
182
|
*
|
|
@@ -15,6 +15,70 @@ export type UpdateAutomationRequest = {
|
|
|
15
15
|
folderPath?: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
export type CreateDatasetReviewRequest = {
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Note shown to the reviewer for the whole request.
|
|
22
|
+
*/
|
|
23
|
+
instructions?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Expected-output paths to highlight. Other fields stay normal unless listed in ignoredFields.
|
|
26
|
+
*/
|
|
27
|
+
focusFields?: Array<DatasetReviewFocusField>;
|
|
28
|
+
/**
|
|
29
|
+
* Expected-output paths reviewers can skip. Shown muted as not required. Prefixes apply to nested leaves.
|
|
30
|
+
*/
|
|
31
|
+
ignoredFields?: Array<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Optional per-example and per-field notes seeded as commented events at create time.
|
|
34
|
+
*/
|
|
35
|
+
itemNotes?: Array<DatasetReviewCreateItemNote>;
|
|
36
|
+
exampleNames: Array<string>;
|
|
37
|
+
status?: 'draft' | 'open' | 'paused';
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type DatasetReviewFocusField = {
|
|
41
|
+
/**
|
|
42
|
+
* Dotted expected-output path the reviewer should inspect, e.g. vendor.iban.
|
|
43
|
+
*/
|
|
44
|
+
path: string;
|
|
45
|
+
/**
|
|
46
|
+
* Optional reason this field needs attention.
|
|
47
|
+
*/
|
|
48
|
+
reason?: string | null;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type DatasetReviewCreateItemNote = {
|
|
52
|
+
exampleName: string;
|
|
53
|
+
comment?: string | null;
|
|
54
|
+
fields?: Array<DatasetReviewItemFieldNote>;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type DatasetReviewItemFieldNote = {
|
|
58
|
+
path: string;
|
|
59
|
+
comment: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type UpdateDatasetReviewRequest = {
|
|
63
|
+
title?: string;
|
|
64
|
+
instructions?: string | null;
|
|
65
|
+
focusFields?: Array<DatasetReviewFocusField>;
|
|
66
|
+
ignoredFields?: Array<string>;
|
|
67
|
+
status?: 'draft' | 'open' | 'paused' | 'closed';
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type UpdateDatasetReviewItem = {
|
|
71
|
+
action: 'approve' | 'edit' | 'reject' | 'reopen' | 'comment' | 'field-decision';
|
|
72
|
+
expected?: unknown;
|
|
73
|
+
comment?: string | null;
|
|
74
|
+
fieldPath?: string | null;
|
|
75
|
+
decision?: 'approved' | 'rejected' | null;
|
|
76
|
+
/**
|
|
77
|
+
* ISO timestamp of the item `updatedAt` the client last observed. Required for optimistic concurrency.
|
|
78
|
+
*/
|
|
79
|
+
expectedUpdatedAt: string;
|
|
80
|
+
};
|
|
81
|
+
|
|
18
82
|
export type AutomationDatasetImportMultipartRequest = {
|
|
19
83
|
/**
|
|
20
84
|
* Dataset ZIP file
|
|
@@ -641,6 +705,123 @@ export type DeleteAutomationResponse = {
|
|
|
641
705
|
id: string;
|
|
642
706
|
};
|
|
643
707
|
|
|
708
|
+
export type DatasetReviewRequestList = {
|
|
709
|
+
data: Array<DatasetReviewRequest>;
|
|
710
|
+
total: number;
|
|
711
|
+
limit: number;
|
|
712
|
+
offset: number;
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
export type DatasetReviewRequest = {
|
|
716
|
+
id: string;
|
|
717
|
+
automationId: string;
|
|
718
|
+
title: string;
|
|
719
|
+
instructions: string | null;
|
|
720
|
+
focusFields: Array<DatasetReviewFocusFieldOutput>;
|
|
721
|
+
ignoredFields: Array<string>;
|
|
722
|
+
status: 'draft' | 'open' | 'paused' | 'closed';
|
|
723
|
+
exampleNames: Array<string>;
|
|
724
|
+
progress: DatasetReviewProgress;
|
|
725
|
+
createdBy: string | null;
|
|
726
|
+
createdAt: string;
|
|
727
|
+
closedAt: string | null;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
export type DatasetReviewProgress = {
|
|
731
|
+
total: number;
|
|
732
|
+
pending: number;
|
|
733
|
+
approved: number;
|
|
734
|
+
edited: number;
|
|
735
|
+
rejected: number;
|
|
736
|
+
/**
|
|
737
|
+
* Count of examples still pending a decision.
|
|
738
|
+
*/
|
|
739
|
+
remaining: number;
|
|
740
|
+
/**
|
|
741
|
+
* True when every example has been approved, edited, or rejected. Close the request when review is finished; dataset write-back is always manual.
|
|
742
|
+
*/
|
|
743
|
+
complete: boolean;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
export type DatasetReviewDetail = {
|
|
747
|
+
id: string;
|
|
748
|
+
automationId: string;
|
|
749
|
+
title: string;
|
|
750
|
+
instructions: string | null;
|
|
751
|
+
focusFields: Array<DatasetReviewFocusFieldOutput>;
|
|
752
|
+
ignoredFields: Array<string>;
|
|
753
|
+
status: 'draft' | 'open' | 'paused' | 'closed';
|
|
754
|
+
exampleNames: Array<string>;
|
|
755
|
+
progress: DatasetReviewProgress;
|
|
756
|
+
createdBy: string | null;
|
|
757
|
+
createdAt: string;
|
|
758
|
+
closedAt: string | null;
|
|
759
|
+
items: Array<DatasetReviewItem>;
|
|
760
|
+
events?: Array<DatasetReviewEvent>;
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
export type DatasetReviewItem = {
|
|
764
|
+
id: string;
|
|
765
|
+
reviewId: string;
|
|
766
|
+
exampleName: string;
|
|
767
|
+
snapshotInputJson: {
|
|
768
|
+
[key: string]: unknown;
|
|
769
|
+
} | null;
|
|
770
|
+
snapshotExpectedJson: unknown | null;
|
|
771
|
+
snapshotManifest: {
|
|
772
|
+
expectedFiles: Array<{
|
|
773
|
+
name: string;
|
|
774
|
+
}>;
|
|
775
|
+
metadata: {
|
|
776
|
+
[key: string]: unknown;
|
|
777
|
+
} | null;
|
|
778
|
+
inputFileHashes?: Array<{
|
|
779
|
+
path: string;
|
|
780
|
+
sha256: string;
|
|
781
|
+
}>;
|
|
782
|
+
};
|
|
783
|
+
status: 'pending' | 'approved' | 'edited' | 'rejected';
|
|
784
|
+
currentExpectedJson: unknown | null;
|
|
785
|
+
fieldDecisions: {
|
|
786
|
+
[key: string]: DatasetReviewFieldDecision;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* True when live dataset input-file bytes no longer match the hashes captured at request creation.
|
|
790
|
+
*/
|
|
791
|
+
inputDrifted: boolean;
|
|
792
|
+
updatedBy: string | null;
|
|
793
|
+
updatedAt: string;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
export type DatasetReviewFieldDecision = {
|
|
797
|
+
decision: 'approved' | 'rejected';
|
|
798
|
+
comment?: string | null;
|
|
799
|
+
reviewerId: string;
|
|
800
|
+
updatedAt: string;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
export type DatasetReviewEvent = {
|
|
804
|
+
id: string;
|
|
805
|
+
reviewId: string;
|
|
806
|
+
itemId: string | null;
|
|
807
|
+
actorUserId: string | null;
|
|
808
|
+
action: 'created' | 'approved' | 'edited' | 'rejected' | 'reopened' | 'commented' | 'field-decision';
|
|
809
|
+
diffSummary: unknown | null;
|
|
810
|
+
createdAt: string;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
export type DatasetReviewEventList = {
|
|
814
|
+
events: Array<DatasetReviewEvent>;
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
export type DatasetReviewItemList = {
|
|
818
|
+
items: Array<DatasetReviewItem>;
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
export type DatasetReviewItemResponse = {
|
|
822
|
+
item: DatasetReviewItem;
|
|
823
|
+
};
|
|
824
|
+
|
|
644
825
|
export type DatasetImportResponse = {
|
|
645
826
|
mode: 'append';
|
|
646
827
|
created: number;
|
|
@@ -2171,6 +2352,17 @@ export type TemplateStagingResponse = {
|
|
|
2171
2352
|
finalized?: boolean;
|
|
2172
2353
|
};
|
|
2173
2354
|
|
|
2355
|
+
export type DatasetReviewFocusFieldOutput = {
|
|
2356
|
+
/**
|
|
2357
|
+
* Dotted expected-output path the reviewer should inspect, e.g. vendor.iban.
|
|
2358
|
+
*/
|
|
2359
|
+
path: string;
|
|
2360
|
+
/**
|
|
2361
|
+
* Optional reason this field needs attention.
|
|
2362
|
+
*/
|
|
2363
|
+
reason?: string | null;
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2174
2366
|
export type AuthCheckData = {
|
|
2175
2367
|
body?: never;
|
|
2176
2368
|
path?: never;
|
|
@@ -2452,6 +2644,486 @@ export type AutomationsUpdateResponses = {
|
|
|
2452
2644
|
|
|
2453
2645
|
export type AutomationsUpdateResponse = AutomationsUpdateResponses[keyof AutomationsUpdateResponses];
|
|
2454
2646
|
|
|
2647
|
+
export type AutomationsDatasetReviewRequestsListData = {
|
|
2648
|
+
body?: never;
|
|
2649
|
+
path: {
|
|
2650
|
+
/**
|
|
2651
|
+
* Automation id or typed alias, such as `workflows.slug` or `agents.slug`.
|
|
2652
|
+
*/
|
|
2653
|
+
id: string;
|
|
2654
|
+
};
|
|
2655
|
+
query?: {
|
|
2656
|
+
/**
|
|
2657
|
+
* Optional comma-separated review statuses to filter by.
|
|
2658
|
+
*/
|
|
2659
|
+
status?: string;
|
|
2660
|
+
limit?: number;
|
|
2661
|
+
offset?: number;
|
|
2662
|
+
};
|
|
2663
|
+
url: '/v1/automations/{id}/dataset-review-requests';
|
|
2664
|
+
};
|
|
2665
|
+
|
|
2666
|
+
export type AutomationsDatasetReviewRequestsListErrors = {
|
|
2667
|
+
/**
|
|
2668
|
+
* Validation error. Request shape did not match the spec.
|
|
2669
|
+
*/
|
|
2670
|
+
400: ApiErrorEnvelope;
|
|
2671
|
+
/**
|
|
2672
|
+
* Missing or invalid API key
|
|
2673
|
+
*/
|
|
2674
|
+
401: ApiErrorEnvelope;
|
|
2675
|
+
/**
|
|
2676
|
+
* API key lacks required scope
|
|
2677
|
+
*/
|
|
2678
|
+
403: ApiErrorEnvelope;
|
|
2679
|
+
/**
|
|
2680
|
+
* Resource not found
|
|
2681
|
+
*/
|
|
2682
|
+
404: ApiErrorEnvelope;
|
|
2683
|
+
/**
|
|
2684
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
2685
|
+
*/
|
|
2686
|
+
413: ApiErrorEnvelope;
|
|
2687
|
+
/**
|
|
2688
|
+
* Rate limit exceeded
|
|
2689
|
+
*/
|
|
2690
|
+
429: ApiErrorEnvelope;
|
|
2691
|
+
/**
|
|
2692
|
+
* Internal server error
|
|
2693
|
+
*/
|
|
2694
|
+
500: ApiErrorEnvelope;
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
export type AutomationsDatasetReviewRequestsListError = AutomationsDatasetReviewRequestsListErrors[keyof AutomationsDatasetReviewRequestsListErrors];
|
|
2698
|
+
|
|
2699
|
+
export type AutomationsDatasetReviewRequestsListResponses = {
|
|
2700
|
+
/**
|
|
2701
|
+
* Page of dataset review requests.
|
|
2702
|
+
*/
|
|
2703
|
+
200: DatasetReviewRequestList;
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2706
|
+
export type AutomationsDatasetReviewRequestsListResponse = AutomationsDatasetReviewRequestsListResponses[keyof AutomationsDatasetReviewRequestsListResponses];
|
|
2707
|
+
|
|
2708
|
+
export type AutomationsDatasetReviewRequestsCreateData = {
|
|
2709
|
+
body: CreateDatasetReviewRequest;
|
|
2710
|
+
path: {
|
|
2711
|
+
/**
|
|
2712
|
+
* Automation id or typed alias, such as `workflows.slug` or `agents.slug`.
|
|
2713
|
+
*/
|
|
2714
|
+
id: string;
|
|
2715
|
+
};
|
|
2716
|
+
query?: never;
|
|
2717
|
+
url: '/v1/automations/{id}/dataset-review-requests';
|
|
2718
|
+
};
|
|
2719
|
+
|
|
2720
|
+
export type AutomationsDatasetReviewRequestsCreateErrors = {
|
|
2721
|
+
/**
|
|
2722
|
+
* Validation error. Request shape did not match the spec.
|
|
2723
|
+
*/
|
|
2724
|
+
400: ApiErrorEnvelope;
|
|
2725
|
+
/**
|
|
2726
|
+
* Missing or invalid API key
|
|
2727
|
+
*/
|
|
2728
|
+
401: ApiErrorEnvelope;
|
|
2729
|
+
/**
|
|
2730
|
+
* API key lacks required scope
|
|
2731
|
+
*/
|
|
2732
|
+
403: ApiErrorEnvelope;
|
|
2733
|
+
/**
|
|
2734
|
+
* Resource not found
|
|
2735
|
+
*/
|
|
2736
|
+
404: ApiErrorEnvelope;
|
|
2737
|
+
/**
|
|
2738
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
2739
|
+
*/
|
|
2740
|
+
413: ApiErrorEnvelope;
|
|
2741
|
+
/**
|
|
2742
|
+
* Rate limit exceeded
|
|
2743
|
+
*/
|
|
2744
|
+
429: ApiErrorEnvelope;
|
|
2745
|
+
/**
|
|
2746
|
+
* Internal server error
|
|
2747
|
+
*/
|
|
2748
|
+
500: ApiErrorEnvelope;
|
|
2749
|
+
};
|
|
2750
|
+
|
|
2751
|
+
export type AutomationsDatasetReviewRequestsCreateError = AutomationsDatasetReviewRequestsCreateErrors[keyof AutomationsDatasetReviewRequestsCreateErrors];
|
|
2752
|
+
|
|
2753
|
+
export type AutomationsDatasetReviewRequestsCreateResponses = {
|
|
2754
|
+
/**
|
|
2755
|
+
* Created dataset review request.
|
|
2756
|
+
*/
|
|
2757
|
+
201: DatasetReviewDetail;
|
|
2758
|
+
};
|
|
2759
|
+
|
|
2760
|
+
export type AutomationsDatasetReviewRequestsCreateResponse = AutomationsDatasetReviewRequestsCreateResponses[keyof AutomationsDatasetReviewRequestsCreateResponses];
|
|
2761
|
+
|
|
2762
|
+
export type AutomationsDatasetReviewRequestsGetData = {
|
|
2763
|
+
body?: never;
|
|
2764
|
+
path: {
|
|
2765
|
+
/**
|
|
2766
|
+
* Automation id or typed alias.
|
|
2767
|
+
*/
|
|
2768
|
+
id: string;
|
|
2769
|
+
/**
|
|
2770
|
+
* Dataset review request id.
|
|
2771
|
+
*/
|
|
2772
|
+
reviewId: string;
|
|
2773
|
+
};
|
|
2774
|
+
query?: never;
|
|
2775
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}';
|
|
2776
|
+
};
|
|
2777
|
+
|
|
2778
|
+
export type AutomationsDatasetReviewRequestsGetErrors = {
|
|
2779
|
+
/**
|
|
2780
|
+
* Validation error. Request shape did not match the spec.
|
|
2781
|
+
*/
|
|
2782
|
+
400: ApiErrorEnvelope;
|
|
2783
|
+
/**
|
|
2784
|
+
* Missing or invalid API key
|
|
2785
|
+
*/
|
|
2786
|
+
401: ApiErrorEnvelope;
|
|
2787
|
+
/**
|
|
2788
|
+
* API key lacks required scope
|
|
2789
|
+
*/
|
|
2790
|
+
403: ApiErrorEnvelope;
|
|
2791
|
+
/**
|
|
2792
|
+
* Resource not found
|
|
2793
|
+
*/
|
|
2794
|
+
404: ApiErrorEnvelope;
|
|
2795
|
+
/**
|
|
2796
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
2797
|
+
*/
|
|
2798
|
+
413: ApiErrorEnvelope;
|
|
2799
|
+
/**
|
|
2800
|
+
* Rate limit exceeded
|
|
2801
|
+
*/
|
|
2802
|
+
429: ApiErrorEnvelope;
|
|
2803
|
+
/**
|
|
2804
|
+
* Internal server error
|
|
2805
|
+
*/
|
|
2806
|
+
500: ApiErrorEnvelope;
|
|
2807
|
+
};
|
|
2808
|
+
|
|
2809
|
+
export type AutomationsDatasetReviewRequestsGetError = AutomationsDatasetReviewRequestsGetErrors[keyof AutomationsDatasetReviewRequestsGetErrors];
|
|
2810
|
+
|
|
2811
|
+
export type AutomationsDatasetReviewRequestsGetResponses = {
|
|
2812
|
+
/**
|
|
2813
|
+
* Dataset review request.
|
|
2814
|
+
*/
|
|
2815
|
+
200: DatasetReviewDetail;
|
|
2816
|
+
};
|
|
2817
|
+
|
|
2818
|
+
export type AutomationsDatasetReviewRequestsGetResponse = AutomationsDatasetReviewRequestsGetResponses[keyof AutomationsDatasetReviewRequestsGetResponses];
|
|
2819
|
+
|
|
2820
|
+
export type AutomationsDatasetReviewRequestsUpdateData = {
|
|
2821
|
+
body: UpdateDatasetReviewRequest;
|
|
2822
|
+
path: {
|
|
2823
|
+
/**
|
|
2824
|
+
* Automation id or typed alias.
|
|
2825
|
+
*/
|
|
2826
|
+
id: string;
|
|
2827
|
+
/**
|
|
2828
|
+
* Dataset review request id.
|
|
2829
|
+
*/
|
|
2830
|
+
reviewId: string;
|
|
2831
|
+
};
|
|
2832
|
+
query?: never;
|
|
2833
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}';
|
|
2834
|
+
};
|
|
2835
|
+
|
|
2836
|
+
export type AutomationsDatasetReviewRequestsUpdateErrors = {
|
|
2837
|
+
/**
|
|
2838
|
+
* Validation error. Request shape did not match the spec.
|
|
2839
|
+
*/
|
|
2840
|
+
400: ApiErrorEnvelope;
|
|
2841
|
+
/**
|
|
2842
|
+
* Missing or invalid API key
|
|
2843
|
+
*/
|
|
2844
|
+
401: ApiErrorEnvelope;
|
|
2845
|
+
/**
|
|
2846
|
+
* API key lacks required scope
|
|
2847
|
+
*/
|
|
2848
|
+
403: ApiErrorEnvelope;
|
|
2849
|
+
/**
|
|
2850
|
+
* Resource not found
|
|
2851
|
+
*/
|
|
2852
|
+
404: ApiErrorEnvelope;
|
|
2853
|
+
/**
|
|
2854
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
2855
|
+
*/
|
|
2856
|
+
413: ApiErrorEnvelope;
|
|
2857
|
+
/**
|
|
2858
|
+
* Rate limit exceeded
|
|
2859
|
+
*/
|
|
2860
|
+
429: ApiErrorEnvelope;
|
|
2861
|
+
/**
|
|
2862
|
+
* Internal server error
|
|
2863
|
+
*/
|
|
2864
|
+
500: ApiErrorEnvelope;
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
export type AutomationsDatasetReviewRequestsUpdateError = AutomationsDatasetReviewRequestsUpdateErrors[keyof AutomationsDatasetReviewRequestsUpdateErrors];
|
|
2868
|
+
|
|
2869
|
+
export type AutomationsDatasetReviewRequestsUpdateResponses = {
|
|
2870
|
+
/**
|
|
2871
|
+
* Updated dataset review request.
|
|
2872
|
+
*/
|
|
2873
|
+
200: DatasetReviewDetail;
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
export type AutomationsDatasetReviewRequestsUpdateResponse = AutomationsDatasetReviewRequestsUpdateResponses[keyof AutomationsDatasetReviewRequestsUpdateResponses];
|
|
2877
|
+
|
|
2878
|
+
export type AutomationsDatasetReviewRequestsListEventsData = {
|
|
2879
|
+
body?: never;
|
|
2880
|
+
path: {
|
|
2881
|
+
/**
|
|
2882
|
+
* Automation id or typed alias.
|
|
2883
|
+
*/
|
|
2884
|
+
id: string;
|
|
2885
|
+
/**
|
|
2886
|
+
* Dataset review request id.
|
|
2887
|
+
*/
|
|
2888
|
+
reviewId: string;
|
|
2889
|
+
};
|
|
2890
|
+
query?: never;
|
|
2891
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/events';
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2894
|
+
export type AutomationsDatasetReviewRequestsListEventsErrors = {
|
|
2895
|
+
/**
|
|
2896
|
+
* Validation error. Request shape did not match the spec.
|
|
2897
|
+
*/
|
|
2898
|
+
400: ApiErrorEnvelope;
|
|
2899
|
+
/**
|
|
2900
|
+
* Missing or invalid API key
|
|
2901
|
+
*/
|
|
2902
|
+
401: ApiErrorEnvelope;
|
|
2903
|
+
/**
|
|
2904
|
+
* API key lacks required scope
|
|
2905
|
+
*/
|
|
2906
|
+
403: ApiErrorEnvelope;
|
|
2907
|
+
/**
|
|
2908
|
+
* Resource not found
|
|
2909
|
+
*/
|
|
2910
|
+
404: ApiErrorEnvelope;
|
|
2911
|
+
/**
|
|
2912
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
2913
|
+
*/
|
|
2914
|
+
413: ApiErrorEnvelope;
|
|
2915
|
+
/**
|
|
2916
|
+
* Rate limit exceeded
|
|
2917
|
+
*/
|
|
2918
|
+
429: ApiErrorEnvelope;
|
|
2919
|
+
/**
|
|
2920
|
+
* Internal server error
|
|
2921
|
+
*/
|
|
2922
|
+
500: ApiErrorEnvelope;
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
export type AutomationsDatasetReviewRequestsListEventsError = AutomationsDatasetReviewRequestsListEventsErrors[keyof AutomationsDatasetReviewRequestsListEventsErrors];
|
|
2926
|
+
|
|
2927
|
+
export type AutomationsDatasetReviewRequestsListEventsResponses = {
|
|
2928
|
+
/**
|
|
2929
|
+
* Review events.
|
|
2930
|
+
*/
|
|
2931
|
+
200: DatasetReviewEventList;
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
export type AutomationsDatasetReviewRequestsListEventsResponse = AutomationsDatasetReviewRequestsListEventsResponses[keyof AutomationsDatasetReviewRequestsListEventsResponses];
|
|
2935
|
+
|
|
2936
|
+
export type AutomationsDatasetReviewRequestsListItemsData = {
|
|
2937
|
+
body?: never;
|
|
2938
|
+
path: {
|
|
2939
|
+
/**
|
|
2940
|
+
* Automation id or typed alias.
|
|
2941
|
+
*/
|
|
2942
|
+
id: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* Dataset review request id.
|
|
2945
|
+
*/
|
|
2946
|
+
reviewId: string;
|
|
2947
|
+
};
|
|
2948
|
+
query?: {
|
|
2949
|
+
/**
|
|
2950
|
+
* Optional comma-separated item statuses to filter by.
|
|
2951
|
+
*/
|
|
2952
|
+
status?: string;
|
|
2953
|
+
};
|
|
2954
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items';
|
|
2955
|
+
};
|
|
2956
|
+
|
|
2957
|
+
export type AutomationsDatasetReviewRequestsListItemsErrors = {
|
|
2958
|
+
/**
|
|
2959
|
+
* Validation error. Request shape did not match the spec.
|
|
2960
|
+
*/
|
|
2961
|
+
400: ApiErrorEnvelope;
|
|
2962
|
+
/**
|
|
2963
|
+
* Missing or invalid API key
|
|
2964
|
+
*/
|
|
2965
|
+
401: ApiErrorEnvelope;
|
|
2966
|
+
/**
|
|
2967
|
+
* API key lacks required scope
|
|
2968
|
+
*/
|
|
2969
|
+
403: ApiErrorEnvelope;
|
|
2970
|
+
/**
|
|
2971
|
+
* Resource not found
|
|
2972
|
+
*/
|
|
2973
|
+
404: ApiErrorEnvelope;
|
|
2974
|
+
/**
|
|
2975
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
2976
|
+
*/
|
|
2977
|
+
413: ApiErrorEnvelope;
|
|
2978
|
+
/**
|
|
2979
|
+
* Rate limit exceeded
|
|
2980
|
+
*/
|
|
2981
|
+
429: ApiErrorEnvelope;
|
|
2982
|
+
/**
|
|
2983
|
+
* Internal server error
|
|
2984
|
+
*/
|
|
2985
|
+
500: ApiErrorEnvelope;
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
export type AutomationsDatasetReviewRequestsListItemsError = AutomationsDatasetReviewRequestsListItemsErrors[keyof AutomationsDatasetReviewRequestsListItemsErrors];
|
|
2989
|
+
|
|
2990
|
+
export type AutomationsDatasetReviewRequestsListItemsResponses = {
|
|
2991
|
+
/**
|
|
2992
|
+
* Review items.
|
|
2993
|
+
*/
|
|
2994
|
+
200: DatasetReviewItemList;
|
|
2995
|
+
};
|
|
2996
|
+
|
|
2997
|
+
export type AutomationsDatasetReviewRequestsListItemsResponse = AutomationsDatasetReviewRequestsListItemsResponses[keyof AutomationsDatasetReviewRequestsListItemsResponses];
|
|
2998
|
+
|
|
2999
|
+
export type AutomationsDatasetReviewRequestsUpdateItemData = {
|
|
3000
|
+
body: UpdateDatasetReviewItem;
|
|
3001
|
+
path: {
|
|
3002
|
+
/**
|
|
3003
|
+
* Automation id or typed alias.
|
|
3004
|
+
*/
|
|
3005
|
+
id: string;
|
|
3006
|
+
/**
|
|
3007
|
+
* Dataset review request id.
|
|
3008
|
+
*/
|
|
3009
|
+
reviewId: string;
|
|
3010
|
+
/**
|
|
3011
|
+
* Dataset review item id.
|
|
3012
|
+
*/
|
|
3013
|
+
itemId: string;
|
|
3014
|
+
};
|
|
3015
|
+
query?: never;
|
|
3016
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items/{itemId}';
|
|
3017
|
+
};
|
|
3018
|
+
|
|
3019
|
+
export type AutomationsDatasetReviewRequestsUpdateItemErrors = {
|
|
3020
|
+
/**
|
|
3021
|
+
* Validation error. Request shape did not match the spec.
|
|
3022
|
+
*/
|
|
3023
|
+
400: ApiErrorEnvelope;
|
|
3024
|
+
/**
|
|
3025
|
+
* Missing or invalid API key
|
|
3026
|
+
*/
|
|
3027
|
+
401: ApiErrorEnvelope;
|
|
3028
|
+
/**
|
|
3029
|
+
* API key lacks required scope
|
|
3030
|
+
*/
|
|
3031
|
+
403: ApiErrorEnvelope;
|
|
3032
|
+
/**
|
|
3033
|
+
* Resource not found
|
|
3034
|
+
*/
|
|
3035
|
+
404: ApiErrorEnvelope;
|
|
3036
|
+
/**
|
|
3037
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
3038
|
+
*/
|
|
3039
|
+
413: ApiErrorEnvelope;
|
|
3040
|
+
/**
|
|
3041
|
+
* Rate limit exceeded
|
|
3042
|
+
*/
|
|
3043
|
+
429: ApiErrorEnvelope;
|
|
3044
|
+
/**
|
|
3045
|
+
* Internal server error
|
|
3046
|
+
*/
|
|
3047
|
+
500: ApiErrorEnvelope;
|
|
3048
|
+
};
|
|
3049
|
+
|
|
3050
|
+
export type AutomationsDatasetReviewRequestsUpdateItemError = AutomationsDatasetReviewRequestsUpdateItemErrors[keyof AutomationsDatasetReviewRequestsUpdateItemErrors];
|
|
3051
|
+
|
|
3052
|
+
export type AutomationsDatasetReviewRequestsUpdateItemResponses = {
|
|
3053
|
+
/**
|
|
3054
|
+
* Updated review item.
|
|
3055
|
+
*/
|
|
3056
|
+
200: DatasetReviewItemResponse;
|
|
3057
|
+
};
|
|
3058
|
+
|
|
3059
|
+
export type AutomationsDatasetReviewRequestsUpdateItemResponse = AutomationsDatasetReviewRequestsUpdateItemResponses[keyof AutomationsDatasetReviewRequestsUpdateItemResponses];
|
|
3060
|
+
|
|
3061
|
+
export type AutomationsDatasetReviewRequestsItemFileGetData = {
|
|
3062
|
+
body?: never;
|
|
3063
|
+
path: {
|
|
3064
|
+
/**
|
|
3065
|
+
* Automation id or typed alias.
|
|
3066
|
+
*/
|
|
3067
|
+
id: string;
|
|
3068
|
+
/**
|
|
3069
|
+
* Dataset review request id.
|
|
3070
|
+
*/
|
|
3071
|
+
reviewId: string;
|
|
3072
|
+
/**
|
|
3073
|
+
* Dataset review item id.
|
|
3074
|
+
*/
|
|
3075
|
+
itemId: string;
|
|
3076
|
+
/**
|
|
3077
|
+
* Slash-delimited path under the example input folder referenced by the item snapshot.
|
|
3078
|
+
*/
|
|
3079
|
+
path: string;
|
|
3080
|
+
};
|
|
3081
|
+
query?: never;
|
|
3082
|
+
url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items/{itemId}/files/{path}';
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3085
|
+
export type AutomationsDatasetReviewRequestsItemFileGetErrors = {
|
|
3086
|
+
/**
|
|
3087
|
+
* Validation error. Request shape did not match the spec.
|
|
3088
|
+
*/
|
|
3089
|
+
400: ApiErrorEnvelope;
|
|
3090
|
+
/**
|
|
3091
|
+
* Missing or invalid API key
|
|
3092
|
+
*/
|
|
3093
|
+
401: ApiErrorEnvelope;
|
|
3094
|
+
/**
|
|
3095
|
+
* API key lacks required scope
|
|
3096
|
+
*/
|
|
3097
|
+
403: ApiErrorEnvelope;
|
|
3098
|
+
/**
|
|
3099
|
+
* Resource not found
|
|
3100
|
+
*/
|
|
3101
|
+
404: ApiErrorEnvelope;
|
|
3102
|
+
/**
|
|
3103
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
3104
|
+
*/
|
|
3105
|
+
413: ApiErrorEnvelope;
|
|
3106
|
+
/**
|
|
3107
|
+
* Rate limit exceeded
|
|
3108
|
+
*/
|
|
3109
|
+
429: ApiErrorEnvelope;
|
|
3110
|
+
/**
|
|
3111
|
+
* Internal server error
|
|
3112
|
+
*/
|
|
3113
|
+
500: ApiErrorEnvelope;
|
|
3114
|
+
};
|
|
3115
|
+
|
|
3116
|
+
export type AutomationsDatasetReviewRequestsItemFileGetError = AutomationsDatasetReviewRequestsItemFileGetErrors[keyof AutomationsDatasetReviewRequestsItemFileGetErrors];
|
|
3117
|
+
|
|
3118
|
+
export type AutomationsDatasetReviewRequestsItemFileGetResponses = {
|
|
3119
|
+
/**
|
|
3120
|
+
* Input file bytes for a review item.
|
|
3121
|
+
*/
|
|
3122
|
+
200: Blob | File;
|
|
3123
|
+
};
|
|
3124
|
+
|
|
3125
|
+
export type AutomationsDatasetReviewRequestsItemFileGetResponse = AutomationsDatasetReviewRequestsItemFileGetResponses[keyof AutomationsDatasetReviewRequestsItemFileGetResponses];
|
|
3126
|
+
|
|
2455
3127
|
export type AutomationsDatasetExportData = {
|
|
2456
3128
|
body?: never;
|
|
2457
3129
|
path: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OperationResult } from '../client';
|
|
1
|
+
import type { OperationResult, RequestDispatchOptions } from '../client';
|
|
2
2
|
import type { Client } from '../generated/client';
|
|
3
3
|
import {
|
|
4
4
|
automationsDatasetExport,
|
|
@@ -40,7 +40,10 @@ import type {
|
|
|
40
40
|
UpdateAutomationRequest,
|
|
41
41
|
} from '../generated/types.gen';
|
|
42
42
|
|
|
43
|
-
type Dispatch = <T>(
|
|
43
|
+
type Dispatch = <T>(
|
|
44
|
+
call: () => Promise<OperationResult<T>>,
|
|
45
|
+
options?: RequestDispatchOptions
|
|
46
|
+
) => Promise<T>;
|
|
44
47
|
type SignalOptions = { signal?: AbortSignal };
|
|
45
48
|
type AnyResponse = any;
|
|
46
49
|
|
|
@@ -48,6 +51,7 @@ export type ListAutomationsOptions = NonNullable<AutomationsListData['query']> &
|
|
|
48
51
|
|
|
49
52
|
export class AutomationsResource {
|
|
50
53
|
public readonly dataset: AutomationDatasetResource;
|
|
54
|
+
public readonly datasetReviewRequests: AutomationDatasetReviewRequestsResource;
|
|
51
55
|
public readonly examples: AutomationExamplesResource;
|
|
52
56
|
public readonly evaluators: AutomationEvaluatorsResource;
|
|
53
57
|
public readonly experiments: AutomationExperimentsResource;
|
|
@@ -58,6 +62,7 @@ export class AutomationsResource {
|
|
|
58
62
|
private readonly dispatch: Dispatch
|
|
59
63
|
) {
|
|
60
64
|
this.dataset = new AutomationDatasetResource(client, dispatch);
|
|
65
|
+
this.datasetReviewRequests = new AutomationDatasetReviewRequestsResource(client, dispatch);
|
|
61
66
|
this.examples = new AutomationExamplesResource(client, dispatch);
|
|
62
67
|
this.evaluators = new AutomationEvaluatorsResource(client, dispatch);
|
|
63
68
|
this.experiments = new AutomationExperimentsResource(client, dispatch);
|
|
@@ -472,3 +477,212 @@ export class AutomationExperimentsResource {
|
|
|
472
477
|
);
|
|
473
478
|
}
|
|
474
479
|
}
|
|
480
|
+
|
|
481
|
+
type DatasetReviewItemStatus = 'pending' | 'approved' | 'edited' | 'rejected';
|
|
482
|
+
type DatasetReviewItemAction =
|
|
483
|
+
| 'approve'
|
|
484
|
+
| 'edit'
|
|
485
|
+
| 'reject'
|
|
486
|
+
| 'reopen'
|
|
487
|
+
| 'comment'
|
|
488
|
+
| 'field-decision';
|
|
489
|
+
|
|
490
|
+
function datasetReviewRequestsBaseUrl(automationId: string): string {
|
|
491
|
+
return `/v1/automations/${automationId}/dataset-review-requests`;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
function joinCsv(values: string | readonly string[] | undefined): string | undefined {
|
|
495
|
+
if (values === undefined) return undefined;
|
|
496
|
+
if (typeof values === 'string') return values;
|
|
497
|
+
return values.join(',');
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export type ListDatasetReviewRequestsOptions = SignalOptions & {
|
|
501
|
+
status?: string | readonly string[];
|
|
502
|
+
limit?: number;
|
|
503
|
+
offset?: number;
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
export type DatasetReviewFocusField = {
|
|
507
|
+
path: string;
|
|
508
|
+
reason?: string | null;
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
export type DatasetReviewCreateItemNote = {
|
|
512
|
+
exampleName: string;
|
|
513
|
+
comment?: string | null;
|
|
514
|
+
fields?: Array<{ path: string; comment: string }>;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
export type CreateDatasetReviewRequestBody = {
|
|
518
|
+
title: string;
|
|
519
|
+
exampleNames: string[];
|
|
520
|
+
instructions?: string | null;
|
|
521
|
+
focusFields?: DatasetReviewFocusField[];
|
|
522
|
+
ignoredFields?: string[];
|
|
523
|
+
itemNotes?: DatasetReviewCreateItemNote[];
|
|
524
|
+
status?: 'draft' | 'open' | 'paused';
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
export type UpdateDatasetReviewRequestBody = {
|
|
528
|
+
title?: string;
|
|
529
|
+
instructions?: string | null;
|
|
530
|
+
focusFields?: DatasetReviewFocusField[];
|
|
531
|
+
ignoredFields?: string[];
|
|
532
|
+
status?: 'draft' | 'open' | 'paused' | 'closed';
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
export type UpdateDatasetReviewItemBody = {
|
|
536
|
+
action: DatasetReviewItemAction;
|
|
537
|
+
expected?: unknown;
|
|
538
|
+
comment?: string | null;
|
|
539
|
+
fieldPath?: string | null;
|
|
540
|
+
/** Field decision for `field-decision`; pass `null` to clear. */
|
|
541
|
+
decision?: 'approved' | 'rejected' | null;
|
|
542
|
+
expectedUpdatedAt: string;
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
export class AutomationDatasetReviewRequestsResource {
|
|
546
|
+
constructor(
|
|
547
|
+
private readonly client: Client,
|
|
548
|
+
private readonly dispatch: Dispatch
|
|
549
|
+
) {}
|
|
550
|
+
|
|
551
|
+
async list(
|
|
552
|
+
automationId: string,
|
|
553
|
+
options: ListDatasetReviewRequestsOptions = {}
|
|
554
|
+
): Promise<AnyResponse> {
|
|
555
|
+
const { signal, status, limit, offset } = options;
|
|
556
|
+
const query = {
|
|
557
|
+
status: joinCsv(status),
|
|
558
|
+
limit,
|
|
559
|
+
offset,
|
|
560
|
+
};
|
|
561
|
+
return this.dispatch(
|
|
562
|
+
() =>
|
|
563
|
+
this.client.get({
|
|
564
|
+
url: datasetReviewRequestsBaseUrl(automationId),
|
|
565
|
+
query,
|
|
566
|
+
signal,
|
|
567
|
+
}) as Promise<OperationResult<AnyResponse>>
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
async create(
|
|
572
|
+
automationId: string,
|
|
573
|
+
body: CreateDatasetReviewRequestBody,
|
|
574
|
+
options: SignalOptions = {}
|
|
575
|
+
): Promise<AnyResponse> {
|
|
576
|
+
return this.dispatch(
|
|
577
|
+
() =>
|
|
578
|
+
this.client.post({
|
|
579
|
+
url: datasetReviewRequestsBaseUrl(automationId),
|
|
580
|
+
body: body as never,
|
|
581
|
+
signal: options.signal,
|
|
582
|
+
}) as Promise<OperationResult<AnyResponse>>
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
async get(
|
|
587
|
+
automationId: string,
|
|
588
|
+
reviewId: string,
|
|
589
|
+
options: SignalOptions = {}
|
|
590
|
+
): Promise<AnyResponse> {
|
|
591
|
+
return this.dispatch(
|
|
592
|
+
() =>
|
|
593
|
+
this.client.get({
|
|
594
|
+
url: `${datasetReviewRequestsBaseUrl(automationId)}/${reviewId}`,
|
|
595
|
+
signal: options.signal,
|
|
596
|
+
}) as Promise<OperationResult<AnyResponse>>
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
async update(
|
|
601
|
+
automationId: string,
|
|
602
|
+
reviewId: string,
|
|
603
|
+
body: UpdateDatasetReviewRequestBody,
|
|
604
|
+
options: SignalOptions = {}
|
|
605
|
+
): Promise<AnyResponse> {
|
|
606
|
+
return this.dispatch(
|
|
607
|
+
() =>
|
|
608
|
+
this.client.patch({
|
|
609
|
+
url: `${datasetReviewRequestsBaseUrl(automationId)}/${reviewId}`,
|
|
610
|
+
body: body as never,
|
|
611
|
+
signal: options.signal,
|
|
612
|
+
}) as Promise<OperationResult<AnyResponse>>
|
|
613
|
+
);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
async listItems(
|
|
617
|
+
automationId: string,
|
|
618
|
+
reviewId: string,
|
|
619
|
+
options: SignalOptions & { status?: string | readonly DatasetReviewItemStatus[] } = {}
|
|
620
|
+
): Promise<AnyResponse> {
|
|
621
|
+
const { signal, status } = options;
|
|
622
|
+
return this.dispatch(
|
|
623
|
+
() =>
|
|
624
|
+
this.client.get({
|
|
625
|
+
url: `${datasetReviewRequestsBaseUrl(automationId)}/${reviewId}/items`,
|
|
626
|
+
query: { status: joinCsv(status) },
|
|
627
|
+
signal,
|
|
628
|
+
}) as Promise<OperationResult<AnyResponse>>
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
async updateItem(
|
|
633
|
+
automationId: string,
|
|
634
|
+
reviewId: string,
|
|
635
|
+
itemId: string,
|
|
636
|
+
body: UpdateDatasetReviewItemBody,
|
|
637
|
+
options: SignalOptions = {}
|
|
638
|
+
): Promise<AnyResponse> {
|
|
639
|
+
return this.dispatch(
|
|
640
|
+
() =>
|
|
641
|
+
this.client.patch({
|
|
642
|
+
url: `${datasetReviewRequestsBaseUrl(automationId)}/${reviewId}/items/${itemId}`,
|
|
643
|
+
body: body as never,
|
|
644
|
+
signal: options.signal,
|
|
645
|
+
}) as Promise<OperationResult<AnyResponse>>
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
async getItemFile(
|
|
650
|
+
automationId: string,
|
|
651
|
+
reviewId: string,
|
|
652
|
+
itemId: string,
|
|
653
|
+
path: string,
|
|
654
|
+
options: SignalOptions = {}
|
|
655
|
+
): Promise<Blob> {
|
|
656
|
+
// Encode per segment: the path comes from snapshot manifests and may
|
|
657
|
+
// contain spaces or unicode; encoding the whole string would escape the
|
|
658
|
+
// separators the route needs to split on.
|
|
659
|
+
const relative = path
|
|
660
|
+
.replace(/^\/+/, '')
|
|
661
|
+
.split('/')
|
|
662
|
+
.map((segment) => encodeURIComponent(segment))
|
|
663
|
+
.join('/');
|
|
664
|
+
return this.dispatch(
|
|
665
|
+
() =>
|
|
666
|
+
this.client.get({
|
|
667
|
+
url: `${datasetReviewRequestsBaseUrl(automationId)}/${reviewId}/items/${itemId}/files/${relative}`,
|
|
668
|
+
parseAs: 'blob',
|
|
669
|
+
signal: options.signal,
|
|
670
|
+
}) as Promise<OperationResult<Blob>>,
|
|
671
|
+
{ responseKind: 'binary' }
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
async events(
|
|
676
|
+
automationId: string,
|
|
677
|
+
reviewId: string,
|
|
678
|
+
options: SignalOptions = {}
|
|
679
|
+
): Promise<AnyResponse> {
|
|
680
|
+
return this.dispatch(
|
|
681
|
+
() =>
|
|
682
|
+
this.client.get({
|
|
683
|
+
url: `${datasetReviewRequestsBaseUrl(automationId)}/${reviewId}/events`,
|
|
684
|
+
signal: options.signal,
|
|
685
|
+
}) as Promise<OperationResult<AnyResponse>>
|
|
686
|
+
);
|
|
687
|
+
}
|
|
688
|
+
}
|
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.
|
|
22
|
+
export const SDK_VERSION = '0.20.0';
|
|
23
23
|
|
|
24
24
|
function detectRuntime(): string {
|
|
25
25
|
const g = globalThis as unknown as {
|