@eigenpal/sdk 0.16.8 → 0.16.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eigenpal/sdk
2
2
 
3
+ ## 0.16.9
4
+
5
+ ### Minor Changes
6
+
7
+ - cd71a31: The TypeScript and Python SDKs now expose automation move and delete methods plus first-class folder management. Integrations can organize workflows, filter automation lists by folder, manage the complete folder lifecycle, and withdraw human-review field confirmations without dropping down to raw HTTP requests.
8
+
3
9
  ## 0.16.7
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -41,10 +41,25 @@ if (result.finished) {
41
41
  Workflows and agents are exposed as automations.
42
42
 
43
43
  ```ts
44
- const { data } = await client.automations.list({ search: 'invoice' });
44
+ const { data } = await client.automations.list({ search: 'invoice', folderId: 'fldr_…' });
45
45
  const automation = await client.automations.get('workflows.extract-invoice');
46
- const versions = await client.automations.versions('workflows.extract-invoice');
47
- const triggers = await client.automations.triggers('workflows.extract-invoice');
46
+ await client.automations.move('workflows.extract-invoice', { folderPath: 'billing/invoices' });
47
+ await client.automations.delete('workflows.extract-invoice');
48
+ ```
49
+
50
+ `list({ folderId: 'null' })` returns unfiled YAML workflows at the tenant root. Agent automations have no folder model.
51
+
52
+ Workflow delete archives the automations parent and keeps execution history. Agent delete removes the agent implementation and history, matching the dashboard, with best-effort leftover storage cleanup.
53
+
54
+ ## Folders
55
+
56
+ Workflow and template trees are a first-class resource. Nested agent directories in Git are source organization only.
57
+
58
+ ```ts
59
+ const tree = await client.folders.list({ type: 'workflow', tree: 'true' });
60
+ const folder = await client.folders.create({ name: 'invoices', type: 'workflow' });
61
+ await client.folders.update(folder.id, { name: 'billing' });
62
+ await client.folders.delete(folder.id); // unfiles workflows; does not delete them
48
63
  ```
49
64
 
50
65
  ## Runs
@@ -107,7 +122,7 @@ Every non-2xx response throws a typed subclass of `EigenpalError`:
107
122
 
108
123
  | Topic | What is in it |
109
124
  | ----------------------------------------- | ------------------------------------------------------------------ |
110
- | [Automations](./docs/workflows.md) | List, inspect, versions, triggers. |
125
+ | [Automations](./docs/workflows.md) | List, inspect, move, delete, versions, triggers, folders. |
111
126
  | [Runs](./docs/executions.md) | Start, poll, cancel, rerun, usage, steps, events, traces, reviews. |
112
127
  | [File inputs](./docs/files.md) | Multipart upload from File, Blob, Buffer, or path. |
113
128
  | [Errors](./docs/errors.md) | Typed exceptions, retries, request ids. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/sdk",
3
- "version": "0.16.8",
3
+ "version": "0.16.9",
4
4
  "description": "Official TypeScript SDK for the EigenPal API",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/client.ts CHANGED
@@ -22,6 +22,7 @@ import { AuthResource } from './resources/auth';
22
22
  import { AutomationsResource } from './resources/automations';
23
23
  import { EmailServersResource } from './resources/email-servers';
24
24
  import { FilesResource } from './resources/files';
25
+ import { FoldersResource } from './resources/folders';
25
26
  import { HumanReviewsResource } from './resources/human-reviews';
26
27
  import { ModelsResource } from './resources/models';
27
28
  import { RunsResource } from './resources/runs';
@@ -152,6 +153,8 @@ export class EigenpalClient {
152
153
  public readonly models: ModelsResource;
153
154
  /** Automation metadata across workflows and agents. Start runs with `client.run(...)`. */
154
155
  public readonly automations: AutomationsResource;
156
+ /** Workflow and template folder trees. Nested agent directories in Git are not folders. */
157
+ public readonly folders: FoldersResource;
155
158
  /** Tenant-wide run operations across workflow, agent, manual, and eval runs. */
156
159
  public readonly runs: RunsResource;
157
160
  /** Reusable uploaded files that can be referenced by later runs. */
@@ -207,6 +210,7 @@ export class EigenpalClient {
207
210
  this.auth = new AuthResource(this.client, this._request.bind(this));
208
211
  this.models = new ModelsResource(this.client, this._request.bind(this));
209
212
  this.automations = new AutomationsResource(this.client, this._request.bind(this));
213
+ this.folders = new FoldersResource(this.client, this._request.bind(this));
210
214
  this.runs = new RunsResource(this.client, this._request.bind(this));
211
215
  this.files = new FilesResource(this.client, this._request.bind(this));
212
216
  this.humanReviews = new HumanReviewsResource(this.client, this._request.bind(this));
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export { authCheck, automationsDatasetExport, automationsDatasetImport, automationsEvaluatorsGet, automationsEvaluatorsUpdate, automationsExamplesCreate, automationsExamplesDelete, automationsExamplesExpectedFileDelete, automationsExamplesExpectedFileGet, automationsExamplesExpectedFilesCreate, automationsExamplesExpectedFilesList, automationsExamplesExpectedFileUpdate, automationsExamplesGet, automationsExamplesInputFileDelete, automationsExamplesInputFileGet, automationsExamplesInputFilesCreate, automationsExamplesInputFilesList, automationsExamplesInputFileUpdate, automationsExamplesList, automationsExamplesRun, automationsExamplesUpdate, automationsExperimentsCancel, automationsExperimentsCreate, automationsExperimentsCreateStream, automationsExperimentsExport, automationsExperimentsExportAll, automationsExperimentsGet, automationsExperimentsList, automationsGet, automationsList, automationsReviewsHealth, automationsSync, automationsTriggersGet, automationsVersionsCreate, automationsVersionsList, automationsVersionsPromote, automationsVersionsRestore, emailServersCreate, emailServersDelete, emailServersGet, emailServersList, emailServersTest, emailServersUpdate, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, filesUploadsGet, filesUploadsPartsList, filesUploadsPartsPresign, humanReviewsApprove, humanReviewsConfirmField, humanReviewsFilesContentGet, humanReviewsGet, humanReviewsList, humanReviewsReject, modelsList, type Options, runsArtifactsGet, runsArtifactsList, runsCancel, runsEventsList, runsGet, runsList, runsPromote, runsRerun, runsReviewsClear, runsReviewsExpectedCreate, runsReviewsExpectedFileDelete, runsReviewsExpectedFileGet, runsReviewsExpectedFileUpdate, runsReviewsExpectedGet, runsReviewsGet, runsReviewsUpdate, runsScoresList, runsStart, runsStepsList, runsTraceGet, runsUsageGet, templatesContentGet, templatesCreate, templatesDelete, templatesGet, templatesList, templatesReplace, templatesStaging } from './sdk.gen';
4
- export type { AbortFileUploadResponse, AgentRunExecution, ApiErrorEnvelope, ApiErrorIssue, AuthCheckData, AuthCheckError, AuthCheckErrors, AuthCheckResponse, AuthCheckResponse2, AuthCheckResponses, AutomationDatasetImportMultipartRequest, AutomationDetail, AutomationsDatasetExportData, AutomationsDatasetExportError, AutomationsDatasetExportErrors, AutomationsDatasetExportResponse, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportError, AutomationsDatasetImportErrors, AutomationsDatasetImportResponse, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetError, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponse, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateError, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponse, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateError, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponse, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteError, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponse, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteError, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetError, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponse, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateError, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponse, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListError, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponse, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateError, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponse, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetError, AutomationsExamplesGetErrors, AutomationsExamplesGetResponse, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteError, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetError, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponse, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateError, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponse, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListError, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponse, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateError, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponse, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListError, AutomationsExamplesListErrors, AutomationsExamplesListResponse, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunError, AutomationsExamplesRunErrors, AutomationsExamplesRunResponse, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateError, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponse, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelError, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponse, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateError, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponse, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamError, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponse, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllError, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponse, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportError, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponse, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetError, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponse, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListError, AutomationsExperimentsListErrors, AutomationsExperimentsListResponse, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetError, AutomationsGetErrors, AutomationsGetResponse, AutomationsGetResponses, AutomationsListData, AutomationsListError, AutomationsListErrors, AutomationsListResponse, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthError, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponse, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncError, AutomationsSyncErrors, AutomationsSyncResponse, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetError, AutomationsTriggersGetErrors, AutomationsTriggersGetResponse, AutomationsTriggersGetResponses, AutomationSummary, AutomationsVersionsCreateData, AutomationsVersionsCreateError, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponse, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListError, AutomationsVersionsListErrors, AutomationsVersionsListResponse, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteError, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponse, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreError, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponse, AutomationsVersionsRestoreResponses, AutomationTriggersResponse, AutomationTriggerState, AutomationType, AutomationVersion, ClientOptions, CreateAutomationVersionRequest, CreatedTemplate, CreateEmailServerRequest, CreateFileMultipartRequest, CreateFileUploadSessionRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DeleteEmailServerResponse, DeleteFileResponse, DeleteTemplateResponse, EmailServer, EmailServersCreateData, EmailServersCreateError, EmailServersCreateErrors, EmailServersCreateResponse, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteError, EmailServersDeleteErrors, EmailServersDeleteResponse, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetError, EmailServersGetErrors, EmailServersGetResponse, EmailServersGetResponses, EmailServersListData, EmailServersListError, EmailServersListErrors, EmailServersListResponse, EmailServersListResponses, EmailServersTestData, EmailServersTestError, EmailServersTestErrors, EmailServersTestResponse, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateError, EmailServersUpdateErrors, EmailServersUpdateResponse, EmailServersUpdateResponses, EvalResult, EvaluatorConfigResponse, EvaluatorConfigUpdate, ExampleRunResponse, ExecutionStatus, Experiment, ExperimentCreate, ExperimentCreateResponse, ExperimentDetail, ExperimentRef, ExperimentsResolveData, ExperimentsResolveError, ExperimentsResolveErrors, ExperimentsResolveResponse, ExperimentsResolveResponses, File, FilesContentGetData, FilesContentGetError, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateError, FilesCreateErrors, FilesCreateResponse, FilesCreateResponses, FilesDeleteData, FilesDeleteError, FilesDeleteErrors, FilesDeleteResponse, FilesDeleteResponses, FilesGetData, FilesGetError, FilesGetErrors, FilesGetResponse, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortError, FilesUploadsAbortErrors, FilesUploadsAbortResponse, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteError, FilesUploadsCompleteErrors, FilesUploadsCompleteResponse, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateError, FilesUploadsCreateErrors, FilesUploadsCreateResponse, FilesUploadsCreateResponses, FilesUploadsGetData, FilesUploadsGetError, FilesUploadsGetErrors, FilesUploadsGetResponse, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListError, FilesUploadsPartsListErrors, FilesUploadsPartsListResponse, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignError, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponse, FilesUploadsPartsPresignResponses, FileUploadSession, 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, 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, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepsResponse, RunsTraceGetData, RunsTraceGetError, RunsTraceGetErrors, RunsTraceGetResponse, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetError, RunsUsageGetErrors, RunsUsageGetResponse, RunsUsageGetResponses, RunTiming, RunTraceEvent, RunTraceResponse, RunTrigger, RunUsage, RunUsageResponse, Template, TemplateFileReferenceRequest, TemplateReplaceRequest, TemplateRevision, TemplatesContentGetData, TemplatesContentGetError, TemplatesContentGetErrors, TemplatesContentGetResponse, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateError, TemplatesCreateErrors, TemplatesCreateResponse, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteError, TemplatesDeleteErrors, TemplatesDeleteResponse, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetError, TemplatesGetErrors, TemplatesGetResponse, TemplatesGetResponses, TemplatesListData, TemplatesListError, TemplatesListErrors, TemplatesListResponse, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceError, TemplatesReplaceErrors, TemplatesReplaceResponse, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingError, TemplatesStagingErrors, TemplatesStagingResponse, TemplatesStagingResponses, TemplateStagingRequest, TemplateStagingResponse, TestEmailServerRequest, TestEmailServerResponse, UpdateEmailServerRequest, WorkflowRunExecution } from './types.gen';
3
+ export { authCheck, automationsDatasetExport, automationsDatasetImport, 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, 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, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepsResponse, RunsTraceGetData, RunsTraceGetError, RunsTraceGetErrors, RunsTraceGetResponse, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetError, RunsUsageGetErrors, RunsUsageGetResponse, RunsUsageGetResponses, RunTiming, RunTraceEvent, RunTraceResponse, RunTrigger, RunUsage, RunUsageResponse, Template, TemplateFileReferenceRequest, TemplateReplaceRequest, TemplateRevision, TemplatesContentGetData, TemplatesContentGetError, TemplatesContentGetErrors, TemplatesContentGetResponse, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateError, TemplatesCreateErrors, TemplatesCreateResponse, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteError, TemplatesDeleteErrors, TemplatesDeleteResponse, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetError, TemplatesGetErrors, TemplatesGetResponse, TemplatesGetResponses, TemplatesListData, TemplatesListError, TemplatesListErrors, TemplatesListResponse, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceError, TemplatesReplaceErrors, TemplatesReplaceResponse, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingError, TemplatesStagingErrors, TemplatesStagingResponse, TemplatesStagingResponses, TemplateStagingRequest, TemplateStagingResponse, TestEmailServerRequest, TestEmailServerResponse, UpdateAutomationRequest, UpdateEmailServerRequest, UpdateFolderRequest, WorkflowRunExecution } from './types.gen';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
- import type { AuthCheckData, AuthCheckErrors, AuthCheckResponses, AutomationsDatasetExportData, AutomationsDatasetExportErrors, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportErrors, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetErrors, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListErrors, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunErrors, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListErrors, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetErrors, AutomationsGetResponses, AutomationsListData, AutomationsListErrors, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncErrors, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetErrors, AutomationsTriggersGetResponses, AutomationsVersionsCreateData, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListErrors, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponses, EmailServersCreateData, EmailServersCreateErrors, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteErrors, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetErrors, EmailServersGetResponses, EmailServersListData, EmailServersListErrors, EmailServersListResponses, EmailServersTestData, EmailServersTestErrors, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateErrors, EmailServersUpdateResponses, ExperimentsResolveData, ExperimentsResolveErrors, ExperimentsResolveResponses, FilesContentGetData, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateErrors, FilesCreateResponses, FilesDeleteData, FilesDeleteErrors, FilesDeleteResponses, FilesGetData, FilesGetErrors, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortErrors, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteErrors, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateErrors, FilesUploadsCreateResponses, FilesUploadsGetData, FilesUploadsGetErrors, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListErrors, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponses, HumanReviewsApproveData, HumanReviewsApproveErrors, HumanReviewsApproveResponses, HumanReviewsConfirmFieldData, HumanReviewsConfirmFieldErrors, HumanReviewsConfirmFieldResponses, HumanReviewsFilesContentGetData, HumanReviewsFilesContentGetErrors, HumanReviewsFilesContentGetResponses, HumanReviewsGetData, HumanReviewsGetErrors, HumanReviewsGetResponses, HumanReviewsListData, HumanReviewsListErrors, HumanReviewsListResponses, HumanReviewsRejectData, HumanReviewsRejectErrors, HumanReviewsRejectResponses, ModelsListData, ModelsListErrors, ModelsListResponses, RunsArtifactsGetData, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListErrors, RunsArtifactsListResponses, RunsCancelData, RunsCancelErrors, RunsCancelResponses, RunsEventsListData, RunsEventsListErrors, RunsEventsListResponses, RunsGetData, RunsGetErrors, RunsGetResponses, RunsListData, RunsListErrors, RunsListResponses, RunsPromoteData, RunsPromoteErrors, RunsPromoteResponses, RunsRerunData, RunsRerunErrors, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearErrors, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetErrors, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateErrors, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListErrors, RunsScoresListResponses, RunsStartData, RunsStartErrors, RunsStartResponses, RunsStepsListData, RunsStepsListErrors, RunsStepsListResponses, RunsTraceGetData, RunsTraceGetErrors, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetErrors, RunsUsageGetResponses, TemplatesContentGetData, TemplatesContentGetErrors, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateErrors, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteErrors, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetErrors, TemplatesGetResponses, TemplatesListData, TemplatesListErrors, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceErrors, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingErrors, TemplatesStagingResponses } from './types.gen';
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, 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
  /**
@@ -32,7 +32,7 @@ export const authCheck = <ThrowOnError extends boolean = false>(options?: Option
32
32
  /**
33
33
  * List automations
34
34
  *
35
- * Returns workflows and agents through one runnable automation collection. Use `type` to narrow to workflows or agents, and `search` to find automations by slug, name, or description.
35
+ * Returns workflows and agents through one runnable automation collection. Use `type` to narrow to workflows or agents, `search` to find automations by slug, name, or description, and `folderId` to list YAML workflows in a folder (`null` for root).
36
36
  */
37
37
  export const automationsList = <ThrowOnError extends boolean = false>(options?: Options<AutomationsListData, ThrowOnError>) => (options?.client ?? client).get<AutomationsListResponses, AutomationsListErrors, ThrowOnError>({
38
38
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -40,6 +40,17 @@ export const automationsList = <ThrowOnError extends boolean = false>(options?:
40
40
  ...options
41
41
  });
42
42
 
43
+ /**
44
+ * Delete automation
45
+ *
46
+ * Delete a workflow or agent automation using the same cleanup as the dashboard. Workflows archive the automations registry parent and keep execution history. Agents delete the agent row, archive the registry parent, and best-effort-delete agent storage. Identifiers match GET.
47
+ */
48
+ export const automationsDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsDeleteData, ThrowOnError>) => (options.client ?? client).delete<AutomationsDeleteResponses, AutomationsDeleteErrors, ThrowOnError>({
49
+ security: [{ scheme: 'bearer', type: 'http' }],
50
+ url: '/v1/automations/{id}',
51
+ ...options
52
+ });
53
+
43
54
  /**
44
55
  * Get automation
45
56
  *
@@ -51,6 +62,21 @@ export const automationsGet = <ThrowOnError extends boolean = false>(options: Op
51
62
  ...options
52
63
  });
53
64
 
65
+ /**
66
+ * Move workflow automation
67
+ *
68
+ * Move a YAML workflow between organizing folders. `folderPath` auto-creates missing workflow folders; empty or `/` files the workflow at root. Agent automations have no database folder model and are rejected. Identifiers match GET (workflow id, automation id, or `workflows.<slug>`).
69
+ */
70
+ export const automationsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsUpdateResponses, AutomationsUpdateErrors, ThrowOnError>({
71
+ security: [{ scheme: 'bearer', type: 'http' }],
72
+ url: '/v1/automations/{id}',
73
+ ...options,
74
+ headers: {
75
+ 'Content-Type': 'application/json',
76
+ ...options.headers
77
+ }
78
+ });
79
+
54
80
  /**
55
81
  * Export automation dataset
56
82
  *
@@ -688,6 +714,69 @@ export const filesUploadsPartsPresign = <ThrowOnError extends boolean = false>(o
688
714
  }
689
715
  });
690
716
 
717
+ /**
718
+ * List folders
719
+ *
720
+ * List folders in one tree. `type` is required (`workflow` or `template`). Pass `tree=true` for the full nested tree with counts; otherwise list direct children of `parentId` (`null` for root). Deleting a folder later unfiles contained workflows or templates and does not delete them.
721
+ */
722
+ export const foldersList = <ThrowOnError extends boolean = false>(options: Options<FoldersListData, ThrowOnError>) => (options.client ?? client).get<FoldersListResponses, FoldersListErrors, ThrowOnError>({
723
+ security: [{ scheme: 'bearer', type: 'http' }],
724
+ url: '/v1/folders',
725
+ ...options
726
+ });
727
+
728
+ /**
729
+ * Create folder
730
+ *
731
+ * Create a folder in the workflow or template tree. `type` is required. Missing parents 404; a same-named sibling at that location returns 409. Nested agent directories in Git are source organization only and are not folders.
732
+ */
733
+ export const foldersCreate = <ThrowOnError extends boolean = false>(options: Options<FoldersCreateData, ThrowOnError>) => (options.client ?? client).post<FoldersCreateResponses, FoldersCreateErrors, ThrowOnError>({
734
+ security: [{ scheme: 'bearer', type: 'http' }],
735
+ url: '/v1/folders',
736
+ ...options,
737
+ headers: {
738
+ 'Content-Type': 'application/json',
739
+ ...options.headers
740
+ }
741
+ });
742
+
743
+ /**
744
+ * Delete folder
745
+ *
746
+ * Delete a folder and cascade-delete child folders. Workflows and templates in the tree are unfiled, not deleted.
747
+ */
748
+ export const foldersDelete = <ThrowOnError extends boolean = false>(options: Options<FoldersDeleteData, ThrowOnError>) => (options.client ?? client).delete<FoldersDeleteResponses, FoldersDeleteErrors, ThrowOnError>({
749
+ security: [{ scheme: 'bearer', type: 'http' }],
750
+ url: '/v1/folders/{id}',
751
+ ...options
752
+ });
753
+
754
+ /**
755
+ * Get folder
756
+ *
757
+ * Get one workflow or template folder by id.
758
+ */
759
+ export const foldersGet = <ThrowOnError extends boolean = false>(options: Options<FoldersGetData, ThrowOnError>) => (options.client ?? client).get<FoldersGetResponses, FoldersGetErrors, ThrowOnError>({
760
+ security: [{ scheme: 'bearer', type: 'http' }],
761
+ url: '/v1/folders/{id}',
762
+ ...options
763
+ });
764
+
765
+ /**
766
+ * Update folder
767
+ *
768
+ * Rename or reparent a folder. Moving a folder onto itself, into a descendant, or into the other tree is rejected. A same-named sibling at the destination returns 409.
769
+ */
770
+ export const foldersUpdate = <ThrowOnError extends boolean = false>(options: Options<FoldersUpdateData, ThrowOnError>) => (options.client ?? client).patch<FoldersUpdateResponses, FoldersUpdateErrors, ThrowOnError>({
771
+ security: [{ scheme: 'bearer', type: 'http' }],
772
+ url: '/v1/folders/{id}',
773
+ ...options,
774
+ headers: {
775
+ 'Content-Type': 'application/json',
776
+ ...options.headers
777
+ }
778
+ });
779
+
691
780
  /**
692
781
  * List pending human review tasks
693
782
  *
@@ -4,6 +4,17 @@ export type ClientOptions = {
4
4
  baseUrl: 'https://api.eigenpal.com' | (string & {});
5
5
  };
6
6
 
7
+ export type UpdateAutomationRequest = {
8
+ /**
9
+ * Move a YAML workflow into this workflow folder. `null` files it at the tenant root. Ignored for the folder lookup when `folderPath` is also sent, but a string value is still validated before the path is applied.
10
+ */
11
+ folderId?: string | null;
12
+ /**
13
+ * Slash-separated workflow folder path. Missing folders are created. Empty or `/` means root. When both fields are sent, `folderPath` wins after `folderId` validation.
14
+ */
15
+ folderPath?: string;
16
+ };
17
+
7
18
  export type AutomationDatasetImportMultipartRequest = {
8
19
  /**
9
20
  * Dataset ZIP file
@@ -264,6 +275,34 @@ export type PresignFileUploadPartRequest = {
264
275
  partNumber: number;
265
276
  };
266
277
 
278
+ export type FolderType = 'workflow' | 'template';
279
+
280
+ export type CreateFolderRequest = {
281
+ /**
282
+ * Folder name. Cannot contain `/`.
283
+ */
284
+ name: string;
285
+ /**
286
+ * Which folder tree to create in. Required; there is no default.
287
+ */
288
+ type: FolderType;
289
+ /**
290
+ * Parent folder id. Omit or `null` to create at the tree root.
291
+ */
292
+ parentId?: string | null;
293
+ };
294
+
295
+ export type UpdateFolderRequest = {
296
+ /**
297
+ * New folder name. Cannot contain `/`.
298
+ */
299
+ name?: string;
300
+ /**
301
+ * New parent folder id. `null` moves the folder to the tree root.
302
+ */
303
+ parentId?: string | null;
304
+ };
305
+
267
306
  /**
268
307
  * Run envelope. Declare provenance with the `X-Eigenpal-Trigger` header (`api` or `cli`). Legacy 0.5.12 body shapes remain accepted.
269
308
  */
@@ -542,6 +581,14 @@ export type AutomationSummary = {
542
581
  * False when the automations registry row exists but the workflow/agent implementation row is missing.
543
582
  */
544
583
  implementationAvailable?: boolean;
584
+ /**
585
+ * Workflow folder id. Null for unfiled workflows, agent automations, and orphan registry rows.
586
+ */
587
+ folderId: string | null;
588
+ /**
589
+ * Slash-separated workflow folder path from the tenant root, such as `billing/invoices`. Null at root and for agent automations.
590
+ */
591
+ folderPath: string | null;
545
592
  createdAt: string;
546
593
  updatedAt?: string;
547
594
  };
@@ -571,6 +618,14 @@ export type AutomationDetail = {
571
618
  * False when the automations registry row exists but the workflow/agent implementation row is missing.
572
619
  */
573
620
  implementationAvailable?: boolean;
621
+ /**
622
+ * Workflow folder id. Null for unfiled workflows, agent automations, and orphan registry rows.
623
+ */
624
+ folderId: string | null;
625
+ /**
626
+ * Slash-separated workflow folder path from the tenant root, such as `billing/invoices`. Null at root and for agent automations.
627
+ */
628
+ folderPath: string | null;
574
629
  createdAt: string;
575
630
  updatedAt?: string;
576
631
  inputSchema?: {
@@ -581,6 +636,11 @@ export type AutomationDetail = {
581
636
  } | null;
582
637
  };
583
638
 
639
+ export type DeleteAutomationResponse = {
640
+ deleted: true;
641
+ id: string;
642
+ };
643
+
584
644
  export type DatasetImportResponse = {
585
645
  mode: 'append';
586
646
  created: number;
@@ -1219,6 +1279,36 @@ export type PresignFileUploadPartResponse = {
1219
1279
  partSizeBytes: number;
1220
1280
  };
1221
1281
 
1282
+ export type ListFoldersResponse = Array<Folder>;
1283
+
1284
+ export type Folder = {
1285
+ id: string;
1286
+ parentId: string | null;
1287
+ type: FolderType;
1288
+ name: string;
1289
+ createdAt: string;
1290
+ /**
1291
+ * Direct subfolder count. Present on tree listings.
1292
+ */
1293
+ childCount?: number;
1294
+ /**
1295
+ * Workflows filed directly in this folder. Present on workflow-tree listings.
1296
+ */
1297
+ workflowCount?: number;
1298
+ /**
1299
+ * Up to a handful of item names — subfolders first, then workflows — for a peek at folder contents. Present on workflow-tree listings.
1300
+ */
1301
+ previewItems?: Array<{
1302
+ name: string;
1303
+ kind: 'folder' | 'workflow';
1304
+ }>;
1305
+ };
1306
+
1307
+ export type DeleteFolderResponse = {
1308
+ deleted: true;
1309
+ id: string;
1310
+ };
1311
+
1222
1312
  export type HumanReviewListResponse = {
1223
1313
  tasks: Array<{
1224
1314
  id: string;
@@ -2139,6 +2229,10 @@ export type AutomationsListData = {
2139
2229
  * Filter by implementation type
2140
2230
  */
2141
2231
  type?: 'workflow' | 'agent';
2232
+ /**
2233
+ * Filter YAML workflows by folder. A folder id matches that folder; `null` matches unfiled workflows at root. Agent automations have no folders, so this filter excludes them. Cannot be combined with `type=agent`.
2234
+ */
2235
+ folderId?: string;
2142
2236
  /**
2143
2237
  * Maximum number of automations to return.
2144
2238
  */
@@ -2193,6 +2287,60 @@ export type AutomationsListResponses = {
2193
2287
 
2194
2288
  export type AutomationsListResponse = AutomationsListResponses[keyof AutomationsListResponses];
2195
2289
 
2290
+ export type AutomationsDeleteData = {
2291
+ body?: never;
2292
+ path: {
2293
+ /**
2294
+ * Workflow id, agent id, or typed alias like workflows.slug / agents.slug
2295
+ */
2296
+ id: string;
2297
+ };
2298
+ query?: never;
2299
+ url: '/v1/automations/{id}';
2300
+ };
2301
+
2302
+ export type AutomationsDeleteErrors = {
2303
+ /**
2304
+ * Validation error. Request shape did not match the spec.
2305
+ */
2306
+ 400: ApiErrorEnvelope;
2307
+ /**
2308
+ * Missing or invalid API key
2309
+ */
2310
+ 401: ApiErrorEnvelope;
2311
+ /**
2312
+ * API key lacks required scope
2313
+ */
2314
+ 403: ApiErrorEnvelope;
2315
+ /**
2316
+ * Resource not found
2317
+ */
2318
+ 404: ApiErrorEnvelope;
2319
+ /**
2320
+ * Payload too large. Upload exceeded the per-request size cap.
2321
+ */
2322
+ 413: ApiErrorEnvelope;
2323
+ /**
2324
+ * Rate limit exceeded
2325
+ */
2326
+ 429: ApiErrorEnvelope;
2327
+ /**
2328
+ * Internal server error
2329
+ */
2330
+ 500: ApiErrorEnvelope;
2331
+ };
2332
+
2333
+ export type AutomationsDeleteError = AutomationsDeleteErrors[keyof AutomationsDeleteErrors];
2334
+
2335
+ export type AutomationsDeleteResponses = {
2336
+ /**
2337
+ * Automation deleted
2338
+ */
2339
+ 200: DeleteAutomationResponse;
2340
+ };
2341
+
2342
+ export type AutomationsDeleteResponse = AutomationsDeleteResponses[keyof AutomationsDeleteResponses];
2343
+
2196
2344
  export type AutomationsGetData = {
2197
2345
  body?: never;
2198
2346
  path: {
@@ -2247,6 +2395,60 @@ export type AutomationsGetResponses = {
2247
2395
 
2248
2396
  export type AutomationsGetResponse = AutomationsGetResponses[keyof AutomationsGetResponses];
2249
2397
 
2398
+ export type AutomationsUpdateData = {
2399
+ body: UpdateAutomationRequest;
2400
+ path: {
2401
+ /**
2402
+ * Workflow id, agent id, or typed alias like workflows.slug / agents.slug
2403
+ */
2404
+ id: string;
2405
+ };
2406
+ query?: never;
2407
+ url: '/v1/automations/{id}';
2408
+ };
2409
+
2410
+ export type AutomationsUpdateErrors = {
2411
+ /**
2412
+ * Validation error. Request shape did not match the spec.
2413
+ */
2414
+ 400: ApiErrorEnvelope;
2415
+ /**
2416
+ * Missing or invalid API key
2417
+ */
2418
+ 401: ApiErrorEnvelope;
2419
+ /**
2420
+ * API key lacks required scope
2421
+ */
2422
+ 403: ApiErrorEnvelope;
2423
+ /**
2424
+ * Resource not found
2425
+ */
2426
+ 404: ApiErrorEnvelope;
2427
+ /**
2428
+ * Payload too large. Upload exceeded the per-request size cap.
2429
+ */
2430
+ 413: ApiErrorEnvelope;
2431
+ /**
2432
+ * Rate limit exceeded
2433
+ */
2434
+ 429: ApiErrorEnvelope;
2435
+ /**
2436
+ * Internal server error
2437
+ */
2438
+ 500: ApiErrorEnvelope;
2439
+ };
2440
+
2441
+ export type AutomationsUpdateError = AutomationsUpdateErrors[keyof AutomationsUpdateErrors];
2442
+
2443
+ export type AutomationsUpdateResponses = {
2444
+ /**
2445
+ * Updated automation
2446
+ */
2447
+ 200: AutomationDetail;
2448
+ };
2449
+
2450
+ export type AutomationsUpdateResponse = AutomationsUpdateResponses[keyof AutomationsUpdateResponses];
2451
+
2250
2452
  export type AutomationsDatasetExportData = {
2251
2453
  body?: never;
2252
2454
  path: {
@@ -5211,6 +5413,287 @@ export type FilesUploadsPartsPresignResponses = {
5211
5413
 
5212
5414
  export type FilesUploadsPartsPresignResponse = FilesUploadsPartsPresignResponses[keyof FilesUploadsPartsPresignResponses];
5213
5415
 
5416
+ export type FoldersListData = {
5417
+ body?: never;
5418
+ path?: never;
5419
+ query: {
5420
+ /**
5421
+ * Folder tree to list. Required; there is no default.
5422
+ */
5423
+ type: FolderType;
5424
+ /**
5425
+ * Limit to direct children of this folder. Pass `null` for root folders only. Ignored when `tree=true`.
5426
+ */
5427
+ parentId?: string;
5428
+ /**
5429
+ * When `true`, return the full tree for `type` with child counts (and workflow previews for workflow trees).
5430
+ */
5431
+ tree?: string;
5432
+ };
5433
+ url: '/v1/folders';
5434
+ };
5435
+
5436
+ export type FoldersListErrors = {
5437
+ /**
5438
+ * Validation error. Request shape did not match the spec.
5439
+ */
5440
+ 400: ApiErrorEnvelope;
5441
+ /**
5442
+ * Missing or invalid API key
5443
+ */
5444
+ 401: ApiErrorEnvelope;
5445
+ /**
5446
+ * API key lacks required scope
5447
+ */
5448
+ 403: ApiErrorEnvelope;
5449
+ /**
5450
+ * Resource not found
5451
+ */
5452
+ 404: ApiErrorEnvelope;
5453
+ /**
5454
+ * Payload too large. Upload exceeded the per-request size cap.
5455
+ */
5456
+ 413: ApiErrorEnvelope;
5457
+ /**
5458
+ * Rate limit exceeded
5459
+ */
5460
+ 429: ApiErrorEnvelope;
5461
+ /**
5462
+ * Internal server error
5463
+ */
5464
+ 500: ApiErrorEnvelope;
5465
+ };
5466
+
5467
+ export type FoldersListError = FoldersListErrors[keyof FoldersListErrors];
5468
+
5469
+ export type FoldersListResponses = {
5470
+ /**
5471
+ * Folders in the requested tree
5472
+ */
5473
+ 200: ListFoldersResponse;
5474
+ };
5475
+
5476
+ export type FoldersListResponse = FoldersListResponses[keyof FoldersListResponses];
5477
+
5478
+ export type FoldersCreateData = {
5479
+ body: CreateFolderRequest;
5480
+ path?: never;
5481
+ query?: never;
5482
+ url: '/v1/folders';
5483
+ };
5484
+
5485
+ export type FoldersCreateErrors = {
5486
+ /**
5487
+ * Validation error. Request shape did not match the spec.
5488
+ */
5489
+ 400: ApiErrorEnvelope;
5490
+ /**
5491
+ * Missing or invalid API key
5492
+ */
5493
+ 401: ApiErrorEnvelope;
5494
+ /**
5495
+ * API key lacks required scope
5496
+ */
5497
+ 403: ApiErrorEnvelope;
5498
+ /**
5499
+ * Resource not found
5500
+ */
5501
+ 404: ApiErrorEnvelope;
5502
+ /**
5503
+ * Conflict. The resource is in a state that forbids the request.
5504
+ */
5505
+ 409: ApiErrorEnvelope;
5506
+ /**
5507
+ * Payload too large. Upload exceeded the per-request size cap.
5508
+ */
5509
+ 413: ApiErrorEnvelope;
5510
+ /**
5511
+ * Rate limit exceeded
5512
+ */
5513
+ 429: ApiErrorEnvelope;
5514
+ /**
5515
+ * Internal server error
5516
+ */
5517
+ 500: ApiErrorEnvelope;
5518
+ };
5519
+
5520
+ export type FoldersCreateError = FoldersCreateErrors[keyof FoldersCreateErrors];
5521
+
5522
+ export type FoldersCreateResponses = {
5523
+ /**
5524
+ * Created folder
5525
+ */
5526
+ 201: Folder;
5527
+ };
5528
+
5529
+ export type FoldersCreateResponse = FoldersCreateResponses[keyof FoldersCreateResponses];
5530
+
5531
+ export type FoldersDeleteData = {
5532
+ body?: never;
5533
+ path: {
5534
+ /**
5535
+ * Folder id (`fldr_…`).
5536
+ */
5537
+ id: string;
5538
+ };
5539
+ query?: never;
5540
+ url: '/v1/folders/{id}';
5541
+ };
5542
+
5543
+ export type FoldersDeleteErrors = {
5544
+ /**
5545
+ * Validation error. Request shape did not match the spec.
5546
+ */
5547
+ 400: ApiErrorEnvelope;
5548
+ /**
5549
+ * Missing or invalid API key
5550
+ */
5551
+ 401: ApiErrorEnvelope;
5552
+ /**
5553
+ * API key lacks required scope
5554
+ */
5555
+ 403: ApiErrorEnvelope;
5556
+ /**
5557
+ * Resource not found
5558
+ */
5559
+ 404: ApiErrorEnvelope;
5560
+ /**
5561
+ * Payload too large. Upload exceeded the per-request size cap.
5562
+ */
5563
+ 413: ApiErrorEnvelope;
5564
+ /**
5565
+ * Rate limit exceeded
5566
+ */
5567
+ 429: ApiErrorEnvelope;
5568
+ /**
5569
+ * Internal server error
5570
+ */
5571
+ 500: ApiErrorEnvelope;
5572
+ };
5573
+
5574
+ export type FoldersDeleteError = FoldersDeleteErrors[keyof FoldersDeleteErrors];
5575
+
5576
+ export type FoldersDeleteResponses = {
5577
+ /**
5578
+ * Folder deleted
5579
+ */
5580
+ 200: DeleteFolderResponse;
5581
+ };
5582
+
5583
+ export type FoldersDeleteResponse = FoldersDeleteResponses[keyof FoldersDeleteResponses];
5584
+
5585
+ export type FoldersGetData = {
5586
+ body?: never;
5587
+ path: {
5588
+ /**
5589
+ * Folder id (`fldr_…`).
5590
+ */
5591
+ id: string;
5592
+ };
5593
+ query?: never;
5594
+ url: '/v1/folders/{id}';
5595
+ };
5596
+
5597
+ export type FoldersGetErrors = {
5598
+ /**
5599
+ * Validation error. Request shape did not match the spec.
5600
+ */
5601
+ 400: ApiErrorEnvelope;
5602
+ /**
5603
+ * Missing or invalid API key
5604
+ */
5605
+ 401: ApiErrorEnvelope;
5606
+ /**
5607
+ * API key lacks required scope
5608
+ */
5609
+ 403: ApiErrorEnvelope;
5610
+ /**
5611
+ * Resource not found
5612
+ */
5613
+ 404: ApiErrorEnvelope;
5614
+ /**
5615
+ * Payload too large. Upload exceeded the per-request size cap.
5616
+ */
5617
+ 413: ApiErrorEnvelope;
5618
+ /**
5619
+ * Rate limit exceeded
5620
+ */
5621
+ 429: ApiErrorEnvelope;
5622
+ /**
5623
+ * Internal server error
5624
+ */
5625
+ 500: ApiErrorEnvelope;
5626
+ };
5627
+
5628
+ export type FoldersGetError = FoldersGetErrors[keyof FoldersGetErrors];
5629
+
5630
+ export type FoldersGetResponses = {
5631
+ /**
5632
+ * Folder
5633
+ */
5634
+ 200: Folder;
5635
+ };
5636
+
5637
+ export type FoldersGetResponse = FoldersGetResponses[keyof FoldersGetResponses];
5638
+
5639
+ export type FoldersUpdateData = {
5640
+ body: UpdateFolderRequest;
5641
+ path: {
5642
+ /**
5643
+ * Folder id (`fldr_…`).
5644
+ */
5645
+ id: string;
5646
+ };
5647
+ query?: never;
5648
+ url: '/v1/folders/{id}';
5649
+ };
5650
+
5651
+ export type FoldersUpdateErrors = {
5652
+ /**
5653
+ * Validation error. Request shape did not match the spec.
5654
+ */
5655
+ 400: ApiErrorEnvelope;
5656
+ /**
5657
+ * Missing or invalid API key
5658
+ */
5659
+ 401: ApiErrorEnvelope;
5660
+ /**
5661
+ * API key lacks required scope
5662
+ */
5663
+ 403: ApiErrorEnvelope;
5664
+ /**
5665
+ * Resource not found
5666
+ */
5667
+ 404: ApiErrorEnvelope;
5668
+ /**
5669
+ * Conflict. The resource is in a state that forbids the request.
5670
+ */
5671
+ 409: ApiErrorEnvelope;
5672
+ /**
5673
+ * Payload too large. Upload exceeded the per-request size cap.
5674
+ */
5675
+ 413: ApiErrorEnvelope;
5676
+ /**
5677
+ * Rate limit exceeded
5678
+ */
5679
+ 429: ApiErrorEnvelope;
5680
+ /**
5681
+ * Internal server error
5682
+ */
5683
+ 500: ApiErrorEnvelope;
5684
+ };
5685
+
5686
+ export type FoldersUpdateError = FoldersUpdateErrors[keyof FoldersUpdateErrors];
5687
+
5688
+ export type FoldersUpdateResponses = {
5689
+ /**
5690
+ * Updated folder
5691
+ */
5692
+ 200: Folder;
5693
+ };
5694
+
5695
+ export type FoldersUpdateResponse = FoldersUpdateResponses[keyof FoldersUpdateResponses];
5696
+
5214
5697
  export type HumanReviewsListData = {
5215
5698
  body?: never;
5216
5699
  path?: never;
package/src/index.ts CHANGED
@@ -47,7 +47,9 @@ export type {
47
47
  PathFileInput,
48
48
  StreamFactoryFileInput,
49
49
  } from './lib/files';
50
+ export type { ListAutomationsOptions } from './resources/automations';
50
51
  export type { ListEmailServersOptions } from './resources/email-servers';
52
+ export type { ListFoldersOptions } from './resources/folders';
51
53
  export type { ListRunsOptions, RunExpand, RunExpandSection } from './resources/runs';
52
54
 
53
55
  // Re-export the canonical generated types so users can type their own
@@ -63,11 +65,17 @@ export type {
63
65
  AutomationVersion,
64
66
  CreateAutomationVersionRequest,
65
67
  CreateEmailServerRequest,
68
+ CreateFolderRequest,
69
+ DeleteAutomationResponse,
66
70
  DeleteEmailServerResponse,
71
+ DeleteFolderResponse,
67
72
  EmailServer,
68
73
  ExecutionStatus,
69
74
  File,
75
+ Folder,
76
+ FolderType,
70
77
  ListEmailServersResponse,
78
+ ListFoldersResponse,
71
79
  ListModelsResponse,
72
80
  PublicModel,
73
81
  PublicModelCost,
@@ -102,5 +110,7 @@ export type {
102
110
  TemplateRevision,
103
111
  TestEmailServerRequest,
104
112
  TestEmailServerResponse,
113
+ UpdateAutomationRequest,
105
114
  UpdateEmailServerRequest,
115
+ UpdateFolderRequest,
106
116
  } from './generated/types.gen';
@@ -3,6 +3,7 @@ import type { Client } from '../generated/client';
3
3
  import {
4
4
  automationsDatasetExport,
5
5
  automationsDatasetImport,
6
+ automationsDelete,
6
7
  automationsEvaluatorsGet,
7
8
  automationsEvaluatorsUpdate,
8
9
  automationsExamplesCreate,
@@ -23,20 +24,28 @@ import {
23
24
  automationsReviewsHealth,
24
25
  automationsSync,
25
26
  automationsTriggersGet,
27
+ automationsUpdate,
26
28
  automationsVersionsCreate,
27
29
  automationsVersionsList,
28
30
  automationsVersionsPromote,
29
31
  automationsVersionsRestore,
30
32
  } from '../generated/sdk.gen';
31
33
  import type {
34
+ AutomationDetail,
35
+ AutomationsListData,
32
36
  AutomationsReviewsHealthData,
33
37
  CreateAutomationVersionRequest,
38
+ DeleteAutomationResponse,
39
+ ListAutomationsResponse,
40
+ UpdateAutomationRequest,
34
41
  } from '../generated/types.gen';
35
42
 
36
43
  type Dispatch = <T>(call: () => Promise<OperationResult<T>>) => Promise<T>;
37
44
  type SignalOptions = { signal?: AbortSignal };
38
45
  type AnyResponse = any;
39
46
 
47
+ export type ListAutomationsOptions = NonNullable<AutomationsListData['query']> & SignalOptions;
48
+
40
49
  export class AutomationsResource {
41
50
  public readonly dataset: AutomationDatasetResource;
42
51
  public readonly examples: AutomationExamplesResource;
@@ -55,15 +64,7 @@ export class AutomationsResource {
55
64
  this.reviews = new AutomationReviewsResource(client, dispatch);
56
65
  }
57
66
 
58
- async list(
59
- options: {
60
- search?: string;
61
- type?: 'workflow' | 'agent';
62
- limit?: number;
63
- offset?: number;
64
- signal?: AbortSignal;
65
- } = {}
66
- ): Promise<AnyResponse> {
67
+ async list(options: ListAutomationsOptions = {}): Promise<ListAutomationsResponse> {
67
68
  const { signal, ...query } = options;
68
69
  return this.dispatch(() => automationsList({ client: this.client, query, signal }));
69
70
  }
@@ -74,6 +75,37 @@ export class AutomationsResource {
74
75
  );
75
76
  }
76
77
 
78
+ /**
79
+ * Move a YAML workflow between organizing folders. Agent automations have no
80
+ * folder model and are rejected by the API.
81
+ */
82
+ async move(
83
+ id: string,
84
+ body: UpdateAutomationRequest,
85
+ options: SignalOptions = {}
86
+ ): Promise<AutomationDetail> {
87
+ return this.dispatch(() =>
88
+ automationsUpdate({
89
+ client: this.client,
90
+ path: { id },
91
+ body,
92
+ signal: options.signal,
93
+ })
94
+ );
95
+ }
96
+
97
+ /**
98
+ * Delete a workflow or agent automation using the same cleanup as the dashboard.
99
+ * Workflows archive the automations registry parent and keep execution history.
100
+ * Agents delete the implementation, versions, and builder sessions, archive the
101
+ * registry parent, and best-effort-delete agent storage; unified prior runs remain.
102
+ */
103
+ async delete(id: string, options: SignalOptions = {}): Promise<DeleteAutomationResponse> {
104
+ return this.dispatch(() =>
105
+ automationsDelete({ client: this.client, path: { id }, signal: options.signal })
106
+ );
107
+ }
108
+
77
109
  async versions(id: string, options: SignalOptions = {}): Promise<AnyResponse> {
78
110
  return this.dispatch(() =>
79
111
  automationsVersionsList({ client: this.client, path: { id }, signal: options.signal })
@@ -0,0 +1,77 @@
1
+ import type { OperationResult } from '../client';
2
+ import type { Client } from '../generated/client';
3
+ import {
4
+ foldersCreate,
5
+ foldersDelete,
6
+ foldersGet,
7
+ foldersList,
8
+ foldersUpdate,
9
+ } from '../generated/sdk.gen';
10
+ import type {
11
+ CreateFolderRequest,
12
+ DeleteFolderResponse,
13
+ Folder,
14
+ FoldersListData,
15
+ ListFoldersResponse,
16
+ UpdateFolderRequest,
17
+ } from '../generated/types.gen';
18
+
19
+ type Dispatch = <T>(call: () => Promise<OperationResult<T>>) => Promise<T>;
20
+ type SignalOptions = { signal?: AbortSignal };
21
+
22
+ export type ListFoldersOptions = NonNullable<FoldersListData['query']> & SignalOptions;
23
+
24
+ export class FoldersResource {
25
+ constructor(
26
+ private readonly client: Client,
27
+ private readonly dispatch: Dispatch
28
+ ) {}
29
+
30
+ async list(options: ListFoldersOptions): Promise<ListFoldersResponse> {
31
+ const { signal, ...query } = options;
32
+ return this.dispatch(() =>
33
+ foldersList({
34
+ client: this.client,
35
+ query,
36
+ signal,
37
+ })
38
+ );
39
+ }
40
+
41
+ async get(id: string, options: SignalOptions = {}): Promise<Folder> {
42
+ return this.dispatch(() =>
43
+ foldersGet({ client: this.client, path: { id }, signal: options.signal })
44
+ );
45
+ }
46
+
47
+ async create(body: CreateFolderRequest, options: SignalOptions = {}): Promise<Folder> {
48
+ return this.dispatch(() =>
49
+ foldersCreate({
50
+ client: this.client,
51
+ body,
52
+ signal: options.signal,
53
+ })
54
+ );
55
+ }
56
+
57
+ async update(
58
+ id: string,
59
+ body: UpdateFolderRequest,
60
+ options: SignalOptions = {}
61
+ ): Promise<Folder> {
62
+ return this.dispatch(() =>
63
+ foldersUpdate({
64
+ client: this.client,
65
+ path: { id },
66
+ body,
67
+ signal: options.signal,
68
+ })
69
+ );
70
+ }
71
+
72
+ async delete(id: string, options: SignalOptions = {}): Promise<DeleteFolderResponse> {
73
+ return this.dispatch(() =>
74
+ foldersDelete({ client: this.client, path: { id }, signal: options.signal })
75
+ );
76
+ }
77
+ }
@@ -10,6 +10,7 @@ import {
10
10
  } from '../generated/sdk.gen';
11
11
  import type {
12
12
  HumanReviewsApproveResponse,
13
+ HumanReviewsConfirmFieldData,
13
14
  HumanReviewsConfirmFieldResponse,
14
15
  HumanReviewsGetResponse,
15
16
  HumanReviewsListData,
@@ -24,6 +25,7 @@ type Dispatch = <T>(
24
25
  type SignalOptions = { signal?: AbortSignal };
25
26
 
26
27
  export type ListHumanReviewsOptions = NonNullable<HumanReviewsListData['query']> & SignalOptions;
28
+ export type ConfirmHumanReviewFieldRequest = HumanReviewsConfirmFieldData['body'];
27
29
 
28
30
  export class HumanReviewsResource {
29
31
  constructor(
@@ -59,12 +61,7 @@ export class HumanReviewsResource {
59
61
 
60
62
  async confirmField(
61
63
  taskId: string,
62
- body: {
63
- path: string;
64
- value: string | number | boolean | null;
65
- expectedVersion: number;
66
- idempotencyKey: string;
67
- },
64
+ body: ConfirmHumanReviewFieldRequest,
68
65
  options: SignalOptions = {}
69
66
  ): Promise<HumanReviewsConfirmFieldResponse> {
70
67
  return this.dispatch(() =>
package/src/telemetry.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  export const SDK_LANGUAGE = 'typescript';
20
20
  // Rewritten at publish time by scripts/release/platform/render-sdk-versions.sh.
21
21
  // Keep this string literal exactly stable — sed matches on it.
22
- export const SDK_VERSION = '0.16.8';
22
+ export const SDK_VERSION = '0.16.9';
23
23
 
24
24
  function detectRuntime(): string {
25
25
  const g = globalThis as unknown as {