@eigenpal/sdk 0.20.90 → 0.20.92

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.
@@ -1,6 +1,6 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
3
+ import { type Client, type ClientMeta, formDataBodySerializer, type Options as Options2, type RequestResult, type TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
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, DatasetReviewRequestsListData, DatasetReviewRequestsListErrors, DatasetReviewRequestsListResponses, 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, FilesUploadsChunksPutData, FilesUploadsChunksPutErrors, FilesUploadsChunksPutResponses, 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, ModelsParserReadinessData, ModelsParserReadinessErrors, ModelsParserReadinessResponses, 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
 
@@ -15,7 +15,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
15
15
  * You can pass arbitrary values through the `meta` object. This can be
16
16
  * used to access values that aren't defined as part of the SDK function.
17
17
  */
18
- meta?: Record<string, unknown>;
18
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
19
19
  };
20
20
 
21
21
  /**
@@ -23,7 +23,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
23
23
  *
24
24
  * Return the tenant, user, API key, and scope represented by the current API key.
25
25
  */
26
- export const authCheck = <ThrowOnError extends boolean = false>(options?: Options<AuthCheckData, ThrowOnError>) => (options?.client ?? client).get<AuthCheckResponses, AuthCheckErrors, ThrowOnError>({
26
+ export const authCheck = <ThrowOnError extends boolean = false>(options?: Options<AuthCheckData, ThrowOnError>): RequestResult<AuthCheckResponses, AuthCheckErrors, ThrowOnError> => (options?.client ?? client).get<AuthCheckResponses, AuthCheckErrors, ThrowOnError>({
27
27
  security: [{ scheme: 'bearer', type: 'http' }],
28
28
  url: '/v1/auth/check',
29
29
  ...options
@@ -34,7 +34,7 @@ export const authCheck = <ThrowOnError extends boolean = false>(options?: Option
34
34
  *
35
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
- export const automationsList = <ThrowOnError extends boolean = false>(options?: Options<AutomationsListData, ThrowOnError>) => (options?.client ?? client).get<AutomationsListResponses, AutomationsListErrors, ThrowOnError>({
37
+ export const automationsList = <ThrowOnError extends boolean = false>(options?: Options<AutomationsListData, ThrowOnError>): RequestResult<AutomationsListResponses, AutomationsListErrors, ThrowOnError> => (options?.client ?? client).get<AutomationsListResponses, AutomationsListErrors, ThrowOnError>({
38
38
  security: [{ scheme: 'bearer', type: 'http' }],
39
39
  url: '/v1/automations',
40
40
  ...options
@@ -45,7 +45,7 @@ export const automationsList = <ThrowOnError extends boolean = false>(options?:
45
45
  *
46
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
47
  */
48
- export const automationsDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsDeleteData, ThrowOnError>) => (options.client ?? client).delete<AutomationsDeleteResponses, AutomationsDeleteErrors, ThrowOnError>({
48
+ export const automationsDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsDeleteData, ThrowOnError>): RequestResult<AutomationsDeleteResponses, AutomationsDeleteErrors, ThrowOnError> => (options.client ?? client).delete<AutomationsDeleteResponses, AutomationsDeleteErrors, ThrowOnError>({
49
49
  security: [{ scheme: 'bearer', type: 'http' }],
50
50
  url: '/v1/automations/{id}',
51
51
  ...options
@@ -56,7 +56,7 @@ export const automationsDelete = <ThrowOnError extends boolean = false>(options:
56
56
  *
57
57
  * Get one runnable workflow or agent automation by id or typed alias.
58
58
  */
59
- export const automationsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsGetResponses, AutomationsGetErrors, ThrowOnError>({
59
+ export const automationsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsGetData, ThrowOnError>): RequestResult<AutomationsGetResponses, AutomationsGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsGetResponses, AutomationsGetErrors, ThrowOnError>({
60
60
  security: [{ scheme: 'bearer', type: 'http' }],
61
61
  url: '/v1/automations/{id}',
62
62
  ...options
@@ -67,7 +67,7 @@ export const automationsGet = <ThrowOnError extends boolean = false>(options: Op
67
67
  *
68
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
69
  */
70
- export const automationsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsUpdateResponses, AutomationsUpdateErrors, ThrowOnError>({
70
+ export const automationsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsUpdateData, ThrowOnError>): RequestResult<AutomationsUpdateResponses, AutomationsUpdateErrors, ThrowOnError> => (options.client ?? client).patch<AutomationsUpdateResponses, AutomationsUpdateErrors, ThrowOnError>({
71
71
  security: [{ scheme: 'bearer', type: 'http' }],
72
72
  url: '/v1/automations/{id}',
73
73
  ...options,
@@ -82,7 +82,7 @@ export const automationsUpdate = <ThrowOnError extends boolean = false>(options:
82
82
  *
83
83
  * List dataset review requests for one automation, including per-request progress.
84
84
  */
85
- export const automationsDatasetReviewRequestsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsListResponses, AutomationsDatasetReviewRequestsListErrors, ThrowOnError>({
85
+ export const automationsDatasetReviewRequestsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsListResponses, AutomationsDatasetReviewRequestsListErrors, ThrowOnError> => (options.client ?? client).get<AutomationsDatasetReviewRequestsListResponses, AutomationsDatasetReviewRequestsListErrors, ThrowOnError>({
86
86
  security: [{ scheme: 'bearer', type: 'http' }],
87
87
  url: '/v1/automations/{id}/dataset-review-requests',
88
88
  ...options
@@ -93,7 +93,7 @@ export const automationsDatasetReviewRequestsList = <ThrowOnError extends boolea
93
93
  *
94
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
95
  */
96
- export const automationsDatasetReviewRequestsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsDatasetReviewRequestsCreateResponses, AutomationsDatasetReviewRequestsCreateErrors, ThrowOnError>({
96
+ export const automationsDatasetReviewRequestsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsCreateData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsCreateResponses, AutomationsDatasetReviewRequestsCreateErrors, ThrowOnError> => (options.client ?? client).post<AutomationsDatasetReviewRequestsCreateResponses, AutomationsDatasetReviewRequestsCreateErrors, ThrowOnError>({
97
97
  security: [{ scheme: 'bearer', type: 'http' }],
98
98
  url: '/v1/automations/{id}/dataset-review-requests',
99
99
  ...options,
@@ -108,7 +108,7 @@ export const automationsDatasetReviewRequestsCreate = <ThrowOnError extends bool
108
108
  *
109
109
  * Fetch one dataset review request with snapshotted items, progress, focus fields, ignored fields, and events.
110
110
  */
111
- export const automationsDatasetReviewRequestsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsGetResponses, AutomationsDatasetReviewRequestsGetErrors, ThrowOnError>({
111
+ export const automationsDatasetReviewRequestsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsGetData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsGetResponses, AutomationsDatasetReviewRequestsGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsDatasetReviewRequestsGetResponses, AutomationsDatasetReviewRequestsGetErrors, ThrowOnError>({
112
112
  security: [{ scheme: 'bearer', type: 'http' }],
113
113
  url: '/v1/automations/{id}/dataset-review-requests/{reviewId}',
114
114
  ...options
@@ -119,7 +119,7 @@ export const automationsDatasetReviewRequestsGet = <ThrowOnError extends boolean
119
119
  *
120
120
  * Update review metadata or lifecycle status. Set status to `closed` when review is finished; a closed review accepts only a bare reopen back to `open`. Dataset reconciliation stays manual.
121
121
  */
122
- export const automationsDatasetReviewRequestsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsDatasetReviewRequestsUpdateResponses, AutomationsDatasetReviewRequestsUpdateErrors, ThrowOnError>({
122
+ export const automationsDatasetReviewRequestsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsUpdateData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsUpdateResponses, AutomationsDatasetReviewRequestsUpdateErrors, ThrowOnError> => (options.client ?? client).patch<AutomationsDatasetReviewRequestsUpdateResponses, AutomationsDatasetReviewRequestsUpdateErrors, ThrowOnError>({
123
123
  security: [{ scheme: 'bearer', type: 'http' }],
124
124
  url: '/v1/automations/{id}/dataset-review-requests/{reviewId}',
125
125
  ...options,
@@ -134,7 +134,7 @@ export const automationsDatasetReviewRequestsUpdate = <ThrowOnError extends bool
134
134
  *
135
135
  * List audit events for one dataset review request.
136
136
  */
137
- export const automationsDatasetReviewRequestsListEvents = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListEventsData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsListEventsResponses, AutomationsDatasetReviewRequestsListEventsErrors, ThrowOnError>({
137
+ export const automationsDatasetReviewRequestsListEvents = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListEventsData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsListEventsResponses, AutomationsDatasetReviewRequestsListEventsErrors, ThrowOnError> => (options.client ?? client).get<AutomationsDatasetReviewRequestsListEventsResponses, AutomationsDatasetReviewRequestsListEventsErrors, ThrowOnError>({
138
138
  security: [{ scheme: 'bearer', type: 'http' }],
139
139
  url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/events',
140
140
  ...options
@@ -145,7 +145,7 @@ export const automationsDatasetReviewRequestsListEvents = <ThrowOnError extends
145
145
  *
146
146
  * List items for one dataset review request, optionally filtered by item status.
147
147
  */
148
- export const automationsDatasetReviewRequestsListItems = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListItemsData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsListItemsResponses, AutomationsDatasetReviewRequestsListItemsErrors, ThrowOnError>({
148
+ export const automationsDatasetReviewRequestsListItems = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsListItemsData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsListItemsResponses, AutomationsDatasetReviewRequestsListItemsErrors, ThrowOnError> => (options.client ?? client).get<AutomationsDatasetReviewRequestsListItemsResponses, AutomationsDatasetReviewRequestsListItemsErrors, ThrowOnError>({
149
149
  security: [{ scheme: 'bearer', type: 'http' }],
150
150
  url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items',
151
151
  ...options
@@ -156,7 +156,7 @@ export const automationsDatasetReviewRequestsListItems = <ThrowOnError extends b
156
156
  *
157
157
  * Approve, edit, remove, reopen, comment, or record a field-decision or file-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`, `filePath` with `action: file-decision`. `action: edit-file` is multipart-only: send `file` bytes with `filePath` (correct an existing expected file) or `newPath` (upload a brand-new expected file) plus `expectedUpdatedAt`.
158
158
  */
159
- export const automationsDatasetReviewRequestsUpdateItem = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsUpdateItemData, ThrowOnError>) => (options.client ?? client).patch<AutomationsDatasetReviewRequestsUpdateItemResponses, AutomationsDatasetReviewRequestsUpdateItemErrors, ThrowOnError>({
159
+ export const automationsDatasetReviewRequestsUpdateItem = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsUpdateItemData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsUpdateItemResponses, AutomationsDatasetReviewRequestsUpdateItemErrors, ThrowOnError> => (options.client ?? client).patch<AutomationsDatasetReviewRequestsUpdateItemResponses, AutomationsDatasetReviewRequestsUpdateItemErrors, ThrowOnError>({
160
160
  security: [{ scheme: 'bearer', type: 'http' }],
161
161
  url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items/{itemId}',
162
162
  ...options,
@@ -171,7 +171,7 @@ export const automationsDatasetReviewRequestsUpdateItem = <ThrowOnError extends
171
171
  *
172
172
  * Download one input file (default) or expected-output file (`?kind=expected`) 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. Expected files resolve to reviewer-corrected bytes when the item has a file overlay.
173
173
  */
174
- export const automationsDatasetReviewRequestsItemFileGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsItemFileGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetReviewRequestsItemFileGetResponses, AutomationsDatasetReviewRequestsItemFileGetErrors, ThrowOnError>({
174
+ export const automationsDatasetReviewRequestsItemFileGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetReviewRequestsItemFileGetData, ThrowOnError>): RequestResult<AutomationsDatasetReviewRequestsItemFileGetResponses, AutomationsDatasetReviewRequestsItemFileGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsDatasetReviewRequestsItemFileGetResponses, AutomationsDatasetReviewRequestsItemFileGetErrors, ThrowOnError>({
175
175
  security: [{ scheme: 'bearer', type: 'http' }],
176
176
  url: '/v1/automations/{id}/dataset-review-requests/{reviewId}/items/{itemId}/files/{path}',
177
177
  ...options
@@ -182,7 +182,7 @@ export const automationsDatasetReviewRequestsItemFileGet = <ThrowOnError extends
182
182
  *
183
183
  * Download the automation dataset as a ZIP archive. The archive uses the examples/<name>/input and examples/<name>/expected folder convention, so it can be re-imported into another automation or environment. Cloud deployments may redirect large archives to a short-lived storage URL.
184
184
  */
185
- export const automationsDatasetExport = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetExportData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetExportResponses, AutomationsDatasetExportErrors, ThrowOnError>({
185
+ export const automationsDatasetExport = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetExportData, ThrowOnError>): RequestResult<AutomationsDatasetExportResponses, AutomationsDatasetExportErrors, ThrowOnError> => (options.client ?? client).get<AutomationsDatasetExportResponses, AutomationsDatasetExportErrors, ThrowOnError>({
186
186
  security: [{ scheme: 'bearer', type: 'http' }],
187
187
  url: '/v1/automations/{id}/dataset/export',
188
188
  ...options
@@ -193,7 +193,7 @@ export const automationsDatasetExport = <ThrowOnError extends boolean = false>(o
193
193
  *
194
194
  * Import a dataset ZIP archive using the examples/<name>/input and examples/<name>/expected folder convention. Use `mode=append` for additive imports or `mode=replace` to replace the dataset.
195
195
  */
196
- export const automationsDatasetImport = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetImportData, ThrowOnError>) => (options.client ?? client).post<AutomationsDatasetImportResponses, AutomationsDatasetImportErrors, ThrowOnError>({
196
+ export const automationsDatasetImport = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetImportData, ThrowOnError>): RequestResult<AutomationsDatasetImportResponses, AutomationsDatasetImportErrors, ThrowOnError> => (options.client ?? client).post<AutomationsDatasetImportResponses, AutomationsDatasetImportErrors, ThrowOnError>({
197
197
  ...formDataBodySerializer,
198
198
  security: [{ scheme: 'bearer', type: 'http' }],
199
199
  url: '/v1/automations/{id}/dataset/import',
@@ -209,7 +209,7 @@ export const automationsDatasetImport = <ThrowOnError extends boolean = false>(o
209
209
  *
210
210
  * Fetch workflow evaluator YAML or agent evaluator metadata compiled from the requested sourceRef (latest release by default). Agent evaluations are defined in agent.ts and captured with each run. Automated scores are separate from human review verdicts.
211
211
  */
212
- export const automationsEvaluatorsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsEvaluatorsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsGetErrors, ThrowOnError>({
212
+ export const automationsEvaluatorsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsEvaluatorsGetData, ThrowOnError>): RequestResult<AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsGetErrors, ThrowOnError>({
213
213
  security: [{ scheme: 'bearer', type: 'http' }],
214
214
  url: '/v1/automations/{id}/evaluators',
215
215
  ...options
@@ -220,7 +220,7 @@ export const automationsEvaluatorsGet = <ThrowOnError extends boolean = false>(o
220
220
  *
221
221
  * Replace evaluator YAML for a workflow. Agents reject YAML updates: define evaluators and a pass rule in agent.ts, then release.
222
222
  */
223
- export const automationsEvaluatorsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsEvaluatorsUpdateData, ThrowOnError>) => (options.client ?? client).put<AutomationsEvaluatorsUpdateResponses, AutomationsEvaluatorsUpdateErrors, ThrowOnError>({
223
+ export const automationsEvaluatorsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsEvaluatorsUpdateData, ThrowOnError>): RequestResult<AutomationsEvaluatorsUpdateResponses, AutomationsEvaluatorsUpdateErrors, ThrowOnError> => (options.client ?? client).put<AutomationsEvaluatorsUpdateResponses, AutomationsEvaluatorsUpdateErrors, ThrowOnError>({
224
224
  security: [{ scheme: 'bearer', type: 'http' }],
225
225
  url: '/v1/automations/{id}/evaluators',
226
226
  ...options,
@@ -235,7 +235,7 @@ export const automationsEvaluatorsUpdate = <ThrowOnError extends boolean = false
235
235
  *
236
236
  * List dataset examples for one automation. Examples contain input, expected output, expected files, metadata, and optional overrides used by evaluation runs. Pass `include=metadata` to return ids, names, metadata, and expected file refs without loading input or expected JSON.
237
237
  */
238
- export const automationsExamplesList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesListData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesListResponses, AutomationsExamplesListErrors, ThrowOnError>({
238
+ export const automationsExamplesList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesListData, ThrowOnError>): RequestResult<AutomationsExamplesListResponses, AutomationsExamplesListErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExamplesListResponses, AutomationsExamplesListErrors, ThrowOnError>({
239
239
  security: [{ scheme: 'bearer', type: 'http' }],
240
240
  url: '/v1/automations/{id}/examples',
241
241
  ...options
@@ -246,7 +246,7 @@ export const automationsExamplesList = <ThrowOnError extends boolean = false>(op
246
246
  *
247
247
  * Create one dataset example from JSON fields. Use dataset import for archive-based uploads and file-bearing examples.
248
248
  */
249
- export const automationsExamplesCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsExamplesCreateResponses, AutomationsExamplesCreateErrors, ThrowOnError>({
249
+ export const automationsExamplesCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesCreateData, ThrowOnError>): RequestResult<AutomationsExamplesCreateResponses, AutomationsExamplesCreateErrors, ThrowOnError> => (options.client ?? client).post<AutomationsExamplesCreateResponses, AutomationsExamplesCreateErrors, ThrowOnError>({
250
250
  security: [{ scheme: 'bearer', type: 'http' }],
251
251
  url: '/v1/automations/{id}/examples',
252
252
  ...options,
@@ -261,7 +261,7 @@ export const automationsExamplesCreate = <ThrowOnError extends boolean = false>(
261
261
  *
262
262
  * Delete one dataset example from the automation dataset. This removes the example from future experiments.
263
263
  */
264
- export const automationsExamplesDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesDeleteData, ThrowOnError>) => (options.client ?? client).delete<AutomationsExamplesDeleteResponses, AutomationsExamplesDeleteErrors, ThrowOnError>({
264
+ export const automationsExamplesDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesDeleteData, ThrowOnError>): RequestResult<AutomationsExamplesDeleteResponses, AutomationsExamplesDeleteErrors, ThrowOnError> => (options.client ?? client).delete<AutomationsExamplesDeleteResponses, AutomationsExamplesDeleteErrors, ThrowOnError>({
265
265
  security: [{ scheme: 'bearer', type: 'http' }],
266
266
  url: '/v1/automations/{id}/examples/{exampleId}',
267
267
  ...options
@@ -272,7 +272,7 @@ export const automationsExamplesDelete = <ThrowOnError extends boolean = false>(
272
272
  *
273
273
  * Fetch one dataset example, including input, expected output, expected files, metadata, and overrides.
274
274
  */
275
- export const automationsExamplesGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesGetResponses, AutomationsExamplesGetErrors, ThrowOnError>({
275
+ export const automationsExamplesGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesGetData, ThrowOnError>): RequestResult<AutomationsExamplesGetResponses, AutomationsExamplesGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExamplesGetResponses, AutomationsExamplesGetErrors, ThrowOnError>({
276
276
  security: [{ scheme: 'bearer', type: 'http' }],
277
277
  url: '/v1/automations/{id}/examples/{exampleId}',
278
278
  ...options
@@ -283,7 +283,7 @@ export const automationsExamplesGet = <ThrowOnError extends boolean = false>(opt
283
283
  *
284
284
  * Partially update a dataset example. Omitted fields are preserved; pass null for nullable fields to clear them.
285
285
  */
286
- export const automationsExamplesUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsExamplesUpdateResponses, AutomationsExamplesUpdateErrors, ThrowOnError>({
286
+ export const automationsExamplesUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesUpdateData, ThrowOnError>): RequestResult<AutomationsExamplesUpdateResponses, AutomationsExamplesUpdateErrors, ThrowOnError> => (options.client ?? client).patch<AutomationsExamplesUpdateResponses, AutomationsExamplesUpdateErrors, ThrowOnError>({
287
287
  security: [{ scheme: 'bearer', type: 'http' }],
288
288
  url: '/v1/automations/{id}/examples/{exampleId}',
289
289
  ...options,
@@ -298,7 +298,7 @@ export const automationsExamplesUpdate = <ThrowOnError extends boolean = false>(
298
298
  *
299
299
  * List files stored under the expected folder for one automation dataset example.
300
300
  */
301
- export const automationsExamplesExpectedFilesList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFilesListData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFilesListErrors, ThrowOnError>({
301
+ export const automationsExamplesExpectedFilesList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFilesListData, ThrowOnError>): RequestResult<AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFilesListErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFilesListErrors, ThrowOnError>({
302
302
  security: [{ scheme: 'bearer', type: 'http' }],
303
303
  url: '/v1/automations/{id}/examples/{exampleId}/expected',
304
304
  ...options
@@ -309,7 +309,7 @@ export const automationsExamplesExpectedFilesList = <ThrowOnError extends boolea
309
309
  *
310
310
  * Upload one or more files into the expected folder for an automation dataset example. Use `$file` references such as `expected/result.pdf` from expected JSON to compare file outputs.
311
311
  */
312
- export const automationsExamplesExpectedFilesCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFilesCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesCreateErrors, ThrowOnError>({
312
+ export const automationsExamplesExpectedFilesCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFilesCreateData, ThrowOnError>): RequestResult<AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesCreateErrors, ThrowOnError> => (options.client ?? client).post<AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesCreateErrors, ThrowOnError>({
313
313
  ...formDataBodySerializer,
314
314
  security: [{ scheme: 'bearer', type: 'http' }],
315
315
  url: '/v1/automations/{id}/examples/{exampleId}/expected',
@@ -325,7 +325,7 @@ export const automationsExamplesExpectedFilesCreate = <ThrowOnError extends bool
325
325
  *
326
326
  * Delete one file from an automation dataset example expected folder.
327
327
  */
328
- export const automationsExamplesExpectedFileDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFileDeleteData, ThrowOnError>) => (options.client ?? client).delete<AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileDeleteErrors, ThrowOnError>({
328
+ export const automationsExamplesExpectedFileDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFileDeleteData, ThrowOnError>): RequestResult<AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileDeleteErrors, ThrowOnError> => (options.client ?? client).delete<AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileDeleteErrors, ThrowOnError>({
329
329
  security: [{ scheme: 'bearer', type: 'http' }],
330
330
  url: '/v1/automations/{id}/examples/{exampleId}/expected/{path}',
331
331
  ...options
@@ -336,7 +336,7 @@ export const automationsExamplesExpectedFileDelete = <ThrowOnError extends boole
336
336
  *
337
337
  * Download one expected file attached to an automation dataset example.
338
338
  */
339
- export const automationsExamplesExpectedFileGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFileGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFileGetErrors, ThrowOnError>({
339
+ export const automationsExamplesExpectedFileGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFileGetData, ThrowOnError>): RequestResult<AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFileGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFileGetErrors, ThrowOnError>({
340
340
  security: [{ scheme: 'bearer', type: 'http' }],
341
341
  url: '/v1/automations/{id}/examples/{exampleId}/expected/{path}',
342
342
  ...options
@@ -347,7 +347,7 @@ export const automationsExamplesExpectedFileGet = <ThrowOnError extends boolean
347
347
  *
348
348
  * Rename one expected file attached to an automation dataset example. The parent folder is preserved.
349
349
  */
350
- export const automationsExamplesExpectedFileUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFileUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesExpectedFileUpdateErrors, ThrowOnError>({
350
+ export const automationsExamplesExpectedFileUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesExpectedFileUpdateData, ThrowOnError>): RequestResult<AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesExpectedFileUpdateErrors, ThrowOnError> => (options.client ?? client).patch<AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesExpectedFileUpdateErrors, ThrowOnError>({
351
351
  security: [{ scheme: 'bearer', type: 'http' }],
352
352
  url: '/v1/automations/{id}/examples/{exampleId}/expected/{path}',
353
353
  ...options,
@@ -362,7 +362,7 @@ export const automationsExamplesExpectedFileUpdate = <ThrowOnError extends boole
362
362
  *
363
363
  * List files stored under the input folder for one automation dataset example.
364
364
  */
365
- export const automationsExamplesInputFilesList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFilesListData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFilesListErrors, ThrowOnError>({
365
+ export const automationsExamplesInputFilesList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFilesListData, ThrowOnError>): RequestResult<AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFilesListErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFilesListErrors, ThrowOnError>({
366
366
  security: [{ scheme: 'bearer', type: 'http' }],
367
367
  url: '/v1/automations/{id}/examples/{exampleId}/input',
368
368
  ...options
@@ -373,7 +373,7 @@ export const automationsExamplesInputFilesList = <ThrowOnError extends boolean =
373
373
  *
374
374
  * Upload one or more files into the input folder for an automation dataset example. Use `$file` references such as `input/invoice.pdf` from the example input JSON to consume them.
375
375
  */
376
- export const automationsExamplesInputFilesCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFilesCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesCreateErrors, ThrowOnError>({
376
+ export const automationsExamplesInputFilesCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFilesCreateData, ThrowOnError>): RequestResult<AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesCreateErrors, ThrowOnError> => (options.client ?? client).post<AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesCreateErrors, ThrowOnError>({
377
377
  ...formDataBodySerializer,
378
378
  security: [{ scheme: 'bearer', type: 'http' }],
379
379
  url: '/v1/automations/{id}/examples/{exampleId}/input',
@@ -389,7 +389,7 @@ export const automationsExamplesInputFilesCreate = <ThrowOnError extends boolean
389
389
  *
390
390
  * Delete one file from an automation dataset example input folder.
391
391
  */
392
- export const automationsExamplesInputFileDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFileDeleteData, ThrowOnError>) => (options.client ?? client).delete<AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileDeleteErrors, ThrowOnError>({
392
+ export const automationsExamplesInputFileDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFileDeleteData, ThrowOnError>): RequestResult<AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileDeleteErrors, ThrowOnError> => (options.client ?? client).delete<AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileDeleteErrors, ThrowOnError>({
393
393
  security: [{ scheme: 'bearer', type: 'http' }],
394
394
  url: '/v1/automations/{id}/examples/{exampleId}/input/{path}',
395
395
  ...options
@@ -400,7 +400,7 @@ export const automationsExamplesInputFileDelete = <ThrowOnError extends boolean
400
400
  *
401
401
  * Download one file from an automation dataset example input folder.
402
402
  */
403
- export const automationsExamplesInputFileGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFileGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFileGetErrors, ThrowOnError>({
403
+ export const automationsExamplesInputFileGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFileGetData, ThrowOnError>): RequestResult<AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFileGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFileGetErrors, ThrowOnError>({
404
404
  security: [{ scheme: 'bearer', type: 'http' }],
405
405
  url: '/v1/automations/{id}/examples/{exampleId}/input/{path}',
406
406
  ...options
@@ -411,7 +411,7 @@ export const automationsExamplesInputFileGet = <ThrowOnError extends boolean = f
411
411
  *
412
412
  * Rename one input file attached to an automation dataset example. The parent folder is preserved.
413
413
  */
414
- export const automationsExamplesInputFileUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFileUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesInputFileUpdateErrors, ThrowOnError>({
414
+ export const automationsExamplesInputFileUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesInputFileUpdateData, ThrowOnError>): RequestResult<AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesInputFileUpdateErrors, ThrowOnError> => (options.client ?? client).patch<AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesInputFileUpdateErrors, ThrowOnError>({
415
415
  security: [{ scheme: 'bearer', type: 'http' }],
416
416
  url: '/v1/automations/{id}/examples/{exampleId}/input/{path}',
417
417
  ...options,
@@ -426,7 +426,7 @@ export const automationsExamplesInputFileUpdate = <ThrowOnError extends boolean
426
426
  *
427
427
  * Start an asynchronous run using the input from one dataset example. Poll `GET /api/v1/runs/{id}` for completion and use run scores or review endpoints to review the result.
428
428
  */
429
- export const automationsExamplesRun = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesRunData, ThrowOnError>) => (options.client ?? client).post<AutomationsExamplesRunResponses, AutomationsExamplesRunErrors, ThrowOnError>({
429
+ export const automationsExamplesRun = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesRunData, ThrowOnError>): RequestResult<AutomationsExamplesRunResponses, AutomationsExamplesRunErrors, ThrowOnError> => (options.client ?? client).post<AutomationsExamplesRunResponses, AutomationsExamplesRunErrors, ThrowOnError>({
430
430
  security: [{ scheme: 'bearer', type: 'http' }],
431
431
  url: '/v1/automations/{id}/examples/{exampleId}/run',
432
432
  ...options
@@ -437,7 +437,7 @@ export const automationsExamplesRun = <ThrowOnError extends boolean = false>(opt
437
437
  *
438
438
  * List experiment batches for one automation. Each experiment runs selected dataset examples and records automated evaluator scores.
439
439
  */
440
- export const automationsExperimentsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsListData, ThrowOnError>) => (options.client ?? client).get<AutomationsExperimentsListResponses, AutomationsExperimentsListErrors, ThrowOnError>({
440
+ export const automationsExperimentsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsListData, ThrowOnError>): RequestResult<AutomationsExperimentsListResponses, AutomationsExperimentsListErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExperimentsListResponses, AutomationsExperimentsListErrors, ThrowOnError>({
441
441
  security: [{ scheme: 'bearer', type: 'http' }],
442
442
  url: '/v1/automations/{id}/experiments',
443
443
  ...options
@@ -448,7 +448,7 @@ export const automationsExperimentsList = <ThrowOnError extends boolean = false>
448
448
  *
449
449
  * Start an asynchronous experiment batch for one automation. Omit `examples` to run the full dataset, or pass specific example ids to run a subset.
450
450
  */
451
- export const automationsExperimentsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateErrors, ThrowOnError>({
451
+ export const automationsExperimentsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCreateData, ThrowOnError>): RequestResult<AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateErrors, ThrowOnError> => (options.client ?? client).post<AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateErrors, ThrowOnError>({
452
452
  security: [{ scheme: 'bearer', type: 'http' }],
453
453
  url: '/v1/automations/{id}/experiments',
454
454
  ...options,
@@ -463,7 +463,7 @@ export const automationsExperimentsCreate = <ThrowOnError extends boolean = fals
463
463
  *
464
464
  * Fetch one experiment batch with its run summaries and evaluator results grouped by run id.
465
465
  */
466
- export const automationsExperimentsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsExperimentsGetResponses, AutomationsExperimentsGetErrors, ThrowOnError>({
466
+ export const automationsExperimentsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsGetData, ThrowOnError>): RequestResult<AutomationsExperimentsGetResponses, AutomationsExperimentsGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExperimentsGetResponses, AutomationsExperimentsGetErrors, ThrowOnError>({
467
467
  security: [{ scheme: 'bearer', type: 'http' }],
468
468
  url: '/v1/automations/{id}/experiments/{experimentId}',
469
469
  ...options
@@ -474,7 +474,7 @@ export const automationsExperimentsGet = <ThrowOnError extends boolean = false>(
474
474
  *
475
475
  * Request cancellation for an experiment batch. Already-completed runs remain recorded; queued or running work is cancelled when possible.
476
476
  */
477
- export const automationsExperimentsCancel = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCancelData, ThrowOnError>) => (options.client ?? client).post<AutomationsExperimentsCancelResponses, AutomationsExperimentsCancelErrors, ThrowOnError>({
477
+ export const automationsExperimentsCancel = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCancelData, ThrowOnError>): RequestResult<AutomationsExperimentsCancelResponses, AutomationsExperimentsCancelErrors, ThrowOnError> => (options.client ?? client).post<AutomationsExperimentsCancelResponses, AutomationsExperimentsCancelErrors, ThrowOnError>({
478
478
  security: [{ scheme: 'bearer', type: 'http' }],
479
479
  url: '/v1/automations/{id}/experiments/{experimentId}/cancel',
480
480
  ...options
@@ -485,7 +485,7 @@ export const automationsExperimentsCancel = <ThrowOnError extends boolean = fals
485
485
  *
486
486
  * Download eval result rows for a single experiment batch as CSV or JSON.
487
487
  */
488
- export const automationsExperimentsExport = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsExportData, ThrowOnError>) => (options.client ?? client).get<AutomationsExperimentsExportResponses, AutomationsExperimentsExportErrors, ThrowOnError>({
488
+ export const automationsExperimentsExport = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsExportData, ThrowOnError>): RequestResult<AutomationsExperimentsExportResponses, AutomationsExperimentsExportErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExperimentsExportResponses, AutomationsExperimentsExportErrors, ThrowOnError>({
489
489
  security: [{ scheme: 'bearer', type: 'http' }],
490
490
  url: '/v1/automations/{id}/experiments/{experimentId}/export',
491
491
  ...options
@@ -496,7 +496,7 @@ export const automationsExperimentsExport = <ThrowOnError extends boolean = fals
496
496
  *
497
497
  * Download every eval result row for an automation as CSV or JSON.
498
498
  */
499
- export const automationsExperimentsExportAll = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsExportAllData, ThrowOnError>) => (options.client ?? client).get<AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportAllErrors, ThrowOnError>({
499
+ export const automationsExperimentsExportAll = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsExportAllData, ThrowOnError>): RequestResult<AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportAllErrors, ThrowOnError> => (options.client ?? client).get<AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportAllErrors, ThrowOnError>({
500
500
  security: [{ scheme: 'bearer', type: 'http' }],
501
501
  url: '/v1/automations/{id}/experiments/export',
502
502
  ...options
@@ -507,7 +507,7 @@ export const automationsExperimentsExportAll = <ThrowOnError extends boolean = f
507
507
  *
508
508
  * Starts a batch eval experiment for workflow or agent automations and streams per-run completion events as NDJSON.
509
509
  */
510
- export const automationsExperimentsCreateStream = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCreateStreamData, ThrowOnError>) => (options.client ?? client).post<AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsCreateStreamErrors, ThrowOnError>({
510
+ export const automationsExperimentsCreateStream = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCreateStreamData, ThrowOnError>): RequestResult<AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsCreateStreamErrors, ThrowOnError> => (options.client ?? client).post<AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsCreateStreamErrors, ThrowOnError>({
511
511
  security: [{ scheme: 'bearer', type: 'http' }],
512
512
  url: '/v1/automations/{id}/experiments/stream',
513
513
  ...options,
@@ -522,7 +522,7 @@ export const automationsExperimentsCreateStream = <ThrowOnError extends boolean
522
522
  *
523
523
  * Aggregates reviewed correctness, review coverage, bucketed counts, and rolling-window confidence for one automation. Prefer this endpoint for single-automation monitoring dashboards.
524
524
  */
525
- export const automationsReviewsHealth = <ThrowOnError extends boolean = false>(options: Options<AutomationsReviewsHealthData, ThrowOnError>) => (options.client ?? client).get<AutomationsReviewsHealthResponses, AutomationsReviewsHealthErrors, ThrowOnError>({
525
+ export const automationsReviewsHealth = <ThrowOnError extends boolean = false>(options: Options<AutomationsReviewsHealthData, ThrowOnError>): RequestResult<AutomationsReviewsHealthResponses, AutomationsReviewsHealthErrors, ThrowOnError> => (options.client ?? client).get<AutomationsReviewsHealthResponses, AutomationsReviewsHealthErrors, ThrowOnError>({
526
526
  security: [{ scheme: 'bearer', type: 'http' }],
527
527
  url: '/v1/automations/{id}/reviews/health',
528
528
  ...options
@@ -533,7 +533,7 @@ export const automationsReviewsHealth = <ThrowOnError extends boolean = false>(o
533
533
  *
534
534
  * Reconciles automation registry metadata and trigger projections from the latest Git source release. This operation is idempotent for unchanged source state: repeated calls against the same latest release leave the same automation registry state and may repeat the same warnings. Requires a Bearer API token for the organization and a user-backed API key. It does not publish source; it reads the already-published latest release manifest. Versioned targets are rejected with 400, missing organization/source/release/manifest state returns 404, invalid manifests return 400, and provider or persistence failures return 5xx.
535
535
  */
536
- export const automationsSync = <ThrowOnError extends boolean = false>(options: Options<AutomationsSyncData, ThrowOnError>) => (options.client ?? client).post<AutomationsSyncResponses, AutomationsSyncErrors, ThrowOnError>({
536
+ export const automationsSync = <ThrowOnError extends boolean = false>(options: Options<AutomationsSyncData, ThrowOnError>): RequestResult<AutomationsSyncResponses, AutomationsSyncErrors, ThrowOnError> => (options.client ?? client).post<AutomationsSyncResponses, AutomationsSyncErrors, ThrowOnError>({
537
537
  security: [{ scheme: 'bearer', type: 'http' }],
538
538
  url: '/v1/automations/{id}/sync',
539
539
  ...options
@@ -544,7 +544,7 @@ export const automationsSync = <ThrowOnError extends boolean = false>(options: O
544
544
  *
545
545
  * Read trigger state for a workflow or agent automation. Trigger mutation is not public v1.
546
546
  */
547
- export const automationsTriggersGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsTriggersGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsTriggersGetResponses, AutomationsTriggersGetErrors, ThrowOnError>({
547
+ export const automationsTriggersGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsTriggersGetData, ThrowOnError>): RequestResult<AutomationsTriggersGetResponses, AutomationsTriggersGetErrors, ThrowOnError> => (options.client ?? client).get<AutomationsTriggersGetResponses, AutomationsTriggersGetErrors, ThrowOnError>({
548
548
  security: [{ scheme: 'bearer', type: 'http' }],
549
549
  url: '/v1/automations/{id}/triggers',
550
550
  ...options
@@ -555,7 +555,7 @@ export const automationsTriggersGet = <ThrowOnError extends boolean = false>(opt
555
555
  *
556
556
  * List versions for a workflow or agent automation. YAML workflow lists include tagged releases plus the current untagged snapshot when HEAD is untagged (for example after restore), so the current version is always present. Agent lists remain Git release tags.
557
557
  */
558
- export const automationsVersionsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsListData, ThrowOnError>) => (options.client ?? client).get<AutomationsVersionsListResponses, AutomationsVersionsListErrors, ThrowOnError>({
558
+ export const automationsVersionsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsListData, ThrowOnError>): RequestResult<AutomationsVersionsListResponses, AutomationsVersionsListErrors, ThrowOnError> => (options.client ?? client).get<AutomationsVersionsListResponses, AutomationsVersionsListErrors, ThrowOnError>({
559
559
  security: [{ scheme: 'bearer', type: 'http' }],
560
560
  url: '/v1/automations/{id}/versions',
561
561
  ...options
@@ -566,7 +566,7 @@ export const automationsVersionsList = <ThrowOnError extends boolean = false>(op
566
566
  *
567
567
  * Create a tagged YAML workflow candidate from validated YAML or by copying an existing snapshot (`historyId`). Provide exactly one of `yaml` or `historyId`. Copy creates a new tagged row and leaves the source tag unchanged; it does not retag the original. Defaults to making the new version current. Set `activate: false` to keep it off live traffic until promote — that path requires an existing current workflow version and returns 400 if HEAD is empty. Agent automations are Git-backed and return 400. Requires a Bearer API key or a dashboard session.
568
568
  */
569
- export const automationsVersionsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsVersionsCreateResponses, AutomationsVersionsCreateErrors, ThrowOnError>({
569
+ export const automationsVersionsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsCreateData, ThrowOnError>): RequestResult<AutomationsVersionsCreateResponses, AutomationsVersionsCreateErrors, ThrowOnError> => (options.client ?? client).post<AutomationsVersionsCreateResponses, AutomationsVersionsCreateErrors, ThrowOnError>({
570
570
  security: [{ scheme: 'bearer', type: 'http' }],
571
571
  url: '/v1/automations/{id}/versions',
572
572
  ...options,
@@ -581,7 +581,7 @@ export const automationsVersionsCreate = <ThrowOnError extends boolean = false>(
581
581
  *
582
582
  * Make an existing tagged YAML workflow candidate current without creating another history row. Only tagged version rows can be promoted; untagged snapshots (including restore HEAD) and missing ids return 404. Agent automations return 400. Requires a Bearer API key or a dashboard session.
583
583
  */
584
- export const automationsVersionsPromote = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsPromoteData, ThrowOnError>) => (options.client ?? client).post<AutomationsVersionsPromoteResponses, AutomationsVersionsPromoteErrors, ThrowOnError>({
584
+ export const automationsVersionsPromote = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsPromoteData, ThrowOnError>): RequestResult<AutomationsVersionsPromoteResponses, AutomationsVersionsPromoteErrors, ThrowOnError> => (options.client ?? client).post<AutomationsVersionsPromoteResponses, AutomationsVersionsPromoteErrors, ThrowOnError>({
585
585
  security: [{ scheme: 'bearer', type: 'http' }],
586
586
  url: '/v1/automations/{id}/versions/{versionId}/promote',
587
587
  ...options
@@ -592,7 +592,7 @@ export const automationsVersionsPromote = <ThrowOnError extends boolean = false>
592
592
  *
593
593
  * Restore a YAML workflow automation by copying a previous snapshot into a new untagged current version. The source tag is left unchanged; the new HEAD appears in subsequent version lists as the untagged current row and cannot be promoted until you create a tagged copy. The JSON body may be `{}`; `message` is optional and defaults to a timestamped restore note. Agent automations return 400. Requires a Bearer API key or a dashboard session.
594
594
  */
595
- export const automationsVersionsRestore = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsRestoreData, ThrowOnError>) => (options.client ?? client).post<AutomationsVersionsRestoreResponses, AutomationsVersionsRestoreErrors, ThrowOnError>({
595
+ export const automationsVersionsRestore = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsRestoreData, ThrowOnError>): RequestResult<AutomationsVersionsRestoreResponses, AutomationsVersionsRestoreErrors, ThrowOnError> => (options.client ?? client).post<AutomationsVersionsRestoreResponses, AutomationsVersionsRestoreErrors, ThrowOnError>({
596
596
  security: [{ scheme: 'bearer', type: 'http' }],
597
597
  url: '/v1/automations/{id}/versions/{versionId}/restore',
598
598
  ...options,
@@ -607,7 +607,7 @@ export const automationsVersionsRestore = <ThrowOnError extends boolean = false>
607
607
  *
608
608
  * Tenant-wide inbox of dataset review requests with progress and automation display names. Gated by `dataset_review:read` (reviewers allowed; does not require `workflow:read`).
609
609
  */
610
- export const datasetReviewRequestsList = <ThrowOnError extends boolean = false>(options?: Options<DatasetReviewRequestsListData, ThrowOnError>) => (options?.client ?? client).get<DatasetReviewRequestsListResponses, DatasetReviewRequestsListErrors, ThrowOnError>({
610
+ export const datasetReviewRequestsList = <ThrowOnError extends boolean = false>(options?: Options<DatasetReviewRequestsListData, ThrowOnError>): RequestResult<DatasetReviewRequestsListResponses, DatasetReviewRequestsListErrors, ThrowOnError> => (options?.client ?? client).get<DatasetReviewRequestsListResponses, DatasetReviewRequestsListErrors, ThrowOnError>({
611
611
  security: [{ scheme: 'bearer', type: 'http' }],
612
612
  url: '/v1/dataset-review-requests',
613
613
  ...options
@@ -618,7 +618,7 @@ export const datasetReviewRequestsList = <ThrowOnError extends boolean = false>(
618
618
  *
619
619
  * List outbound email servers for the current workspace. Secrets are never returned; each server includes configuration flags instead of credentials.
620
620
  */
621
- export const emailServersList = <ThrowOnError extends boolean = false>(options?: Options<EmailServersListData, ThrowOnError>) => (options?.client ?? client).get<EmailServersListResponses, EmailServersListErrors, ThrowOnError>({
621
+ export const emailServersList = <ThrowOnError extends boolean = false>(options?: Options<EmailServersListData, ThrowOnError>): RequestResult<EmailServersListResponses, EmailServersListErrors, ThrowOnError> => (options?.client ?? client).get<EmailServersListResponses, EmailServersListErrors, ThrowOnError>({
622
622
  security: [{ scheme: 'bearer', type: 'http' }],
623
623
  url: '/v1/email-servers',
624
624
  ...options
@@ -629,7 +629,7 @@ export const emailServersList = <ThrowOnError extends boolean = false>(options?:
629
629
  *
630
630
  * Create an outbound email server. Secrets are encrypted at rest and never returned. Names must be unique among live servers in the workspace.
631
631
  */
632
- export const emailServersCreate = <ThrowOnError extends boolean = false>(options: Options<EmailServersCreateData, ThrowOnError>) => (options.client ?? client).post<EmailServersCreateResponses, EmailServersCreateErrors, ThrowOnError>({
632
+ export const emailServersCreate = <ThrowOnError extends boolean = false>(options: Options<EmailServersCreateData, ThrowOnError>): RequestResult<EmailServersCreateResponses, EmailServersCreateErrors, ThrowOnError> => (options.client ?? client).post<EmailServersCreateResponses, EmailServersCreateErrors, ThrowOnError>({
633
633
  security: [{ scheme: 'bearer', type: 'http' }],
634
634
  url: '/v1/email-servers',
635
635
  ...options,
@@ -644,7 +644,7 @@ export const emailServersCreate = <ThrowOnError extends boolean = false>(options
644
644
  *
645
645
  * Soft-delete an outbound email server. Deleted ids are indistinguishable from missing.
646
646
  */
647
- export const emailServersDelete = <ThrowOnError extends boolean = false>(options: Options<EmailServersDeleteData, ThrowOnError>) => (options.client ?? client).delete<EmailServersDeleteResponses, EmailServersDeleteErrors, ThrowOnError>({
647
+ export const emailServersDelete = <ThrowOnError extends boolean = false>(options: Options<EmailServersDeleteData, ThrowOnError>): RequestResult<EmailServersDeleteResponses, EmailServersDeleteErrors, ThrowOnError> => (options.client ?? client).delete<EmailServersDeleteResponses, EmailServersDeleteErrors, ThrowOnError>({
648
648
  security: [{ scheme: 'bearer', type: 'http' }],
649
649
  url: '/v1/email-servers/{id}',
650
650
  ...options
@@ -655,7 +655,7 @@ export const emailServersDelete = <ThrowOnError extends boolean = false>(options
655
655
  *
656
656
  * Inspect a stored outbound email server. Cross-tenant and deleted ids are indistinguishable from missing. Secrets are never returned.
657
657
  */
658
- export const emailServersGet = <ThrowOnError extends boolean = false>(options: Options<EmailServersGetData, ThrowOnError>) => (options.client ?? client).get<EmailServersGetResponses, EmailServersGetErrors, ThrowOnError>({
658
+ export const emailServersGet = <ThrowOnError extends boolean = false>(options: Options<EmailServersGetData, ThrowOnError>): RequestResult<EmailServersGetResponses, EmailServersGetErrors, ThrowOnError> => (options.client ?? client).get<EmailServersGetResponses, EmailServersGetErrors, ThrowOnError>({
659
659
  security: [{ scheme: 'bearer', type: 'http' }],
660
660
  url: '/v1/email-servers/{id}',
661
661
  ...options
@@ -666,7 +666,7 @@ export const emailServersGet = <ThrowOnError extends boolean = false>(options: O
666
666
  *
667
667
  * Rename, enable/disable, or replace transport configuration. Omitted secrets are retained only when the existing transport is compatible and, for SMTP, the host and username are unchanged. Changing transport or SMTP destination requires a complete valid target; a new password or explicit auth clearing is required when host or username changes.
668
668
  */
669
- export const emailServersUpdate = <ThrowOnError extends boolean = false>(options: Options<EmailServersUpdateData, ThrowOnError>) => (options.client ?? client).patch<EmailServersUpdateResponses, EmailServersUpdateErrors, ThrowOnError>({
669
+ export const emailServersUpdate = <ThrowOnError extends boolean = false>(options: Options<EmailServersUpdateData, ThrowOnError>): RequestResult<EmailServersUpdateResponses, EmailServersUpdateErrors, ThrowOnError> => (options.client ?? client).patch<EmailServersUpdateResponses, EmailServersUpdateErrors, ThrowOnError>({
670
670
  security: [{ scheme: 'bearer', type: 'http' }],
671
671
  url: '/v1/email-servers/{id}',
672
672
  ...options,
@@ -681,7 +681,7 @@ export const emailServersUpdate = <ThrowOnError extends boolean = false>(options
681
681
  *
682
682
  * Send a concise connectivity email through the selected stored server. Disabled servers conflict. Provider failures are returned as a generic outcome and never include credentials or the test recipient.
683
683
  */
684
- export const emailServersTest = <ThrowOnError extends boolean = false>(options: Options<EmailServersTestData, ThrowOnError>) => (options.client ?? client).post<EmailServersTestResponses, EmailServersTestErrors, ThrowOnError>({
684
+ export const emailServersTest = <ThrowOnError extends boolean = false>(options: Options<EmailServersTestData, ThrowOnError>): RequestResult<EmailServersTestResponses, EmailServersTestErrors, ThrowOnError> => (options.client ?? client).post<EmailServersTestResponses, EmailServersTestErrors, ThrowOnError>({
685
685
  security: [{ scheme: 'bearer', type: 'http' }],
686
686
  url: '/v1/email-servers/{id}/test',
687
687
  ...options,
@@ -696,7 +696,7 @@ export const emailServersTest = <ThrowOnError extends boolean = false>(options:
696
696
  *
697
697
  * Returns the owning automation for an experiment batch id. Used when callers only know the experiment id.
698
698
  */
699
- export const experimentsResolve = <ThrowOnError extends boolean = false>(options: Options<ExperimentsResolveData, ThrowOnError>) => (options.client ?? client).get<ExperimentsResolveResponses, ExperimentsResolveErrors, ThrowOnError>({
699
+ export const experimentsResolve = <ThrowOnError extends boolean = false>(options: Options<ExperimentsResolveData, ThrowOnError>): RequestResult<ExperimentsResolveResponses, ExperimentsResolveErrors, ThrowOnError> => (options.client ?? client).get<ExperimentsResolveResponses, ExperimentsResolveErrors, ThrowOnError>({
700
700
  security: [{ scheme: 'bearer', type: 'http' }],
701
701
  url: '/v1/experiments/{experimentId}',
702
702
  ...options
@@ -707,7 +707,7 @@ export const experimentsResolve = <ThrowOnError extends boolean = false>(options
707
707
  *
708
708
  * Upload a reusable file that can later be referenced by run inputs or dataset examples.
709
709
  */
710
- export const filesCreate = <ThrowOnError extends boolean = false>(options: Options<FilesCreateData, ThrowOnError>) => (options.client ?? client).post<FilesCreateResponses, FilesCreateErrors, ThrowOnError>({
710
+ export const filesCreate = <ThrowOnError extends boolean = false>(options: Options<FilesCreateData, ThrowOnError>): RequestResult<FilesCreateResponses, FilesCreateErrors, ThrowOnError> => (options.client ?? client).post<FilesCreateResponses, FilesCreateErrors, ThrowOnError>({
711
711
  ...formDataBodySerializer,
712
712
  security: [{ scheme: 'bearer', type: 'http' }],
713
713
  url: '/v1/files',
@@ -723,7 +723,7 @@ export const filesCreate = <ThrowOnError extends boolean = false>(options: Optio
723
723
  *
724
724
  * Delete a reusable uploaded file. Past runs that referenced it stay readable until those runs are deleted.
725
725
  */
726
- export const filesDelete = <ThrowOnError extends boolean = false>(options: Options<FilesDeleteData, ThrowOnError>) => (options.client ?? client).delete<FilesDeleteResponses, FilesDeleteErrors, ThrowOnError>({
726
+ export const filesDelete = <ThrowOnError extends boolean = false>(options: Options<FilesDeleteData, ThrowOnError>): RequestResult<FilesDeleteResponses, FilesDeleteErrors, ThrowOnError> => (options.client ?? client).delete<FilesDeleteResponses, FilesDeleteErrors, ThrowOnError>({
727
727
  security: [{ scheme: 'bearer', type: 'http' }],
728
728
  url: '/v1/files/{id}',
729
729
  ...options
@@ -734,7 +734,7 @@ export const filesDelete = <ThrowOnError extends boolean = false>(options: Optio
734
734
  *
735
735
  * Get metadata for a reusable uploaded file.
736
736
  */
737
- export const filesGet = <ThrowOnError extends boolean = false>(options: Options<FilesGetData, ThrowOnError>) => (options.client ?? client).get<FilesGetResponses, FilesGetErrors, ThrowOnError>({
737
+ export const filesGet = <ThrowOnError extends boolean = false>(options: Options<FilesGetData, ThrowOnError>): RequestResult<FilesGetResponses, FilesGetErrors, ThrowOnError> => (options.client ?? client).get<FilesGetResponses, FilesGetErrors, ThrowOnError>({
738
738
  security: [{ scheme: 'bearer', type: 'http' }],
739
739
  url: '/v1/files/{id}',
740
740
  ...options
@@ -745,7 +745,7 @@ export const filesGet = <ThrowOnError extends boolean = false>(options: Options<
745
745
  *
746
746
  * Download bytes for a reusable uploaded file. Direct-enabled deployments redirect responses above their configured body limit to a short-lived signed storage URL; multipart-only/on-prem deployments stream through the API.
747
747
  */
748
- export const filesContentGet = <ThrowOnError extends boolean = false>(options: Options<FilesContentGetData, ThrowOnError>) => (options.client ?? client).get<FilesContentGetResponses, FilesContentGetErrors, ThrowOnError>({
748
+ export const filesContentGet = <ThrowOnError extends boolean = false>(options: Options<FilesContentGetData, ThrowOnError>): RequestResult<FilesContentGetResponses, FilesContentGetErrors, ThrowOnError> => (options.client ?? client).get<FilesContentGetResponses, FilesContentGetErrors, ThrowOnError>({
749
749
  security: [{ scheme: 'bearer', type: 'http' }],
750
750
  url: '/v1/files/{id}/content',
751
751
  ...options
@@ -756,7 +756,7 @@ export const filesContentGet = <ThrowOnError extends boolean = false>(options: O
756
756
  *
757
757
  * Negotiate HTTP multipart for small bodies, a short-lived signed PUT under the single-object ceiling, storage-direct multipart (presigned-multipart) for larger files when storage supports MPU, or app-server http-chunked PUTs when direct uploads are disabled. The response transport is authoritative; clients must not guess from file size alone.
758
758
  */
759
- export const filesUploadsCreate = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsCreateData, ThrowOnError>) => (options.client ?? client).post<FilesUploadsCreateResponses, FilesUploadsCreateErrors, ThrowOnError>({
759
+ export const filesUploadsCreate = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsCreateData, ThrowOnError>): RequestResult<FilesUploadsCreateResponses, FilesUploadsCreateErrors, ThrowOnError> => (options.client ?? client).post<FilesUploadsCreateResponses, FilesUploadsCreateErrors, ThrowOnError>({
760
760
  security: [{ scheme: 'bearer', type: 'http' }],
761
761
  url: '/v1/files/uploads',
762
762
  ...options,
@@ -771,7 +771,7 @@ export const filesUploadsCreate = <ThrowOnError extends boolean = false>(options
771
771
  *
772
772
  * Abort a pending storage-direct or http-chunked upload. Multipart sessions call AbortMultipartUpload; pending PUT objects and staged chunks are deleted. Completed canonical files are never deleted.
773
773
  */
774
- export const filesUploadsAbort = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsAbortData, ThrowOnError>) => (options.client ?? client).delete<FilesUploadsAbortResponses, FilesUploadsAbortErrors, ThrowOnError>({
774
+ export const filesUploadsAbort = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsAbortData, ThrowOnError>): RequestResult<FilesUploadsAbortResponses, FilesUploadsAbortErrors, ThrowOnError> => (options.client ?? client).delete<FilesUploadsAbortResponses, FilesUploadsAbortErrors, ThrowOnError>({
775
775
  security: [{ scheme: 'bearer', type: 'http' }],
776
776
  url: '/v1/files/uploads/{uploadId}',
777
777
  ...options
@@ -782,7 +782,7 @@ export const filesUploadsAbort = <ThrowOnError extends boolean = false>(options:
782
782
  *
783
783
  * Return session status for resume. Multipart sessions include authoritative uploaded parts from storage, not client-reported ETags.
784
784
  */
785
- export const filesUploadsGet = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsGetData, ThrowOnError>) => (options.client ?? client).get<FilesUploadsGetResponses, FilesUploadsGetErrors, ThrowOnError>({
785
+ export const filesUploadsGet = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsGetData, ThrowOnError>): RequestResult<FilesUploadsGetResponses, FilesUploadsGetErrors, ThrowOnError> => (options.client ?? client).get<FilesUploadsGetResponses, FilesUploadsGetErrors, ThrowOnError>({
786
786
  security: [{ scheme: 'bearer', type: 'http' }],
787
787
  url: '/v1/files/uploads/{uploadId}',
788
788
  ...options
@@ -793,7 +793,7 @@ export const filesUploadsGet = <ThrowOnError extends boolean = false>(options: O
793
793
  *
794
794
  * Accept one raw body for an http-chunked session. Each chunk must match the negotiated size; chunks are accepted in order. Idempotent overwrite of the current index is allowed.
795
795
  */
796
- export const filesUploadsChunksPut = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsChunksPutData, ThrowOnError>) => (options.client ?? client).put<FilesUploadsChunksPutResponses, FilesUploadsChunksPutErrors, ThrowOnError>({
796
+ export const filesUploadsChunksPut = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsChunksPutData, ThrowOnError>): RequestResult<FilesUploadsChunksPutResponses, FilesUploadsChunksPutErrors, ThrowOnError> => (options.client ?? client).put<FilesUploadsChunksPutResponses, FilesUploadsChunksPutErrors, ThrowOnError>({
797
797
  bodySerializer: null,
798
798
  security: [{ scheme: 'bearer', type: 'http' }],
799
799
  url: '/v1/files/uploads/{uploadId}/chunks/{chunkIndex}',
@@ -809,7 +809,7 @@ export const filesUploadsChunksPut = <ThrowOnError extends boolean = false>(opti
809
809
  *
810
810
  * Verify a storage-direct pending object or assemble an http-chunked session into a reusable file. Safe to retry.
811
811
  */
812
- export const filesUploadsComplete = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsCompleteData, ThrowOnError>) => (options.client ?? client).post<FilesUploadsCompleteResponses, FilesUploadsCompleteErrors, ThrowOnError>({
812
+ export const filesUploadsComplete = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsCompleteData, ThrowOnError>): RequestResult<FilesUploadsCompleteResponses, FilesUploadsCompleteErrors, ThrowOnError> => (options.client ?? client).post<FilesUploadsCompleteResponses, FilesUploadsCompleteErrors, ThrowOnError>({
813
813
  security: [{ scheme: 'bearer', type: 'http' }],
814
814
  url: '/v1/files/uploads/{uploadId}/complete',
815
815
  ...options
@@ -820,7 +820,7 @@ export const filesUploadsComplete = <ThrowOnError extends boolean = false>(optio
820
820
  *
821
821
  * List authoritative uploaded parts from storage for resume. Do not trust client-only ETags.
822
822
  */
823
- export const filesUploadsPartsList = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsPartsListData, ThrowOnError>) => (options.client ?? client).get<FilesUploadsPartsListResponses, FilesUploadsPartsListErrors, ThrowOnError>({
823
+ export const filesUploadsPartsList = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsPartsListData, ThrowOnError>): RequestResult<FilesUploadsPartsListResponses, FilesUploadsPartsListErrors, ThrowOnError> => (options.client ?? client).get<FilesUploadsPartsListResponses, FilesUploadsPartsListErrors, ThrowOnError>({
824
824
  security: [{ scheme: 'bearer', type: 'http' }],
825
825
  url: '/v1/files/uploads/{uploadId}/parts',
826
826
  ...options
@@ -831,7 +831,7 @@ export const filesUploadsPartsList = <ThrowOnError extends boolean = false>(opti
831
831
  *
832
832
  * Mint a short-lived signed UploadPart URL for one validated part. Part URLs are not issued at session create.
833
833
  */
834
- export const filesUploadsPartsPresign = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsPartsPresignData, ThrowOnError>) => (options.client ?? client).post<FilesUploadsPartsPresignResponses, FilesUploadsPartsPresignErrors, ThrowOnError>({
834
+ export const filesUploadsPartsPresign = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsPartsPresignData, ThrowOnError>): RequestResult<FilesUploadsPartsPresignResponses, FilesUploadsPartsPresignErrors, ThrowOnError> => (options.client ?? client).post<FilesUploadsPartsPresignResponses, FilesUploadsPartsPresignErrors, ThrowOnError>({
835
835
  security: [{ scheme: 'bearer', type: 'http' }],
836
836
  url: '/v1/files/uploads/{uploadId}/parts',
837
837
  ...options,
@@ -846,7 +846,7 @@ export const filesUploadsPartsPresign = <ThrowOnError extends boolean = false>(o
846
846
  *
847
847
  * 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.
848
848
  */
849
- export const foldersList = <ThrowOnError extends boolean = false>(options: Options<FoldersListData, ThrowOnError>) => (options.client ?? client).get<FoldersListResponses, FoldersListErrors, ThrowOnError>({
849
+ export const foldersList = <ThrowOnError extends boolean = false>(options: Options<FoldersListData, ThrowOnError>): RequestResult<FoldersListResponses, FoldersListErrors, ThrowOnError> => (options.client ?? client).get<FoldersListResponses, FoldersListErrors, ThrowOnError>({
850
850
  security: [{ scheme: 'bearer', type: 'http' }],
851
851
  url: '/v1/folders',
852
852
  ...options
@@ -857,7 +857,7 @@ export const foldersList = <ThrowOnError extends boolean = false>(options: Optio
857
857
  *
858
858
  * 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.
859
859
  */
860
- export const foldersCreate = <ThrowOnError extends boolean = false>(options: Options<FoldersCreateData, ThrowOnError>) => (options.client ?? client).post<FoldersCreateResponses, FoldersCreateErrors, ThrowOnError>({
860
+ export const foldersCreate = <ThrowOnError extends boolean = false>(options: Options<FoldersCreateData, ThrowOnError>): RequestResult<FoldersCreateResponses, FoldersCreateErrors, ThrowOnError> => (options.client ?? client).post<FoldersCreateResponses, FoldersCreateErrors, ThrowOnError>({
861
861
  security: [{ scheme: 'bearer', type: 'http' }],
862
862
  url: '/v1/folders',
863
863
  ...options,
@@ -872,7 +872,7 @@ export const foldersCreate = <ThrowOnError extends boolean = false>(options: Opt
872
872
  *
873
873
  * Delete a folder and cascade-delete child folders. Workflows and templates in the tree are unfiled, not deleted.
874
874
  */
875
- export const foldersDelete = <ThrowOnError extends boolean = false>(options: Options<FoldersDeleteData, ThrowOnError>) => (options.client ?? client).delete<FoldersDeleteResponses, FoldersDeleteErrors, ThrowOnError>({
875
+ export const foldersDelete = <ThrowOnError extends boolean = false>(options: Options<FoldersDeleteData, ThrowOnError>): RequestResult<FoldersDeleteResponses, FoldersDeleteErrors, ThrowOnError> => (options.client ?? client).delete<FoldersDeleteResponses, FoldersDeleteErrors, ThrowOnError>({
876
876
  security: [{ scheme: 'bearer', type: 'http' }],
877
877
  url: '/v1/folders/{id}',
878
878
  ...options
@@ -883,7 +883,7 @@ export const foldersDelete = <ThrowOnError extends boolean = false>(options: Opt
883
883
  *
884
884
  * Get one workflow or template folder by id.
885
885
  */
886
- export const foldersGet = <ThrowOnError extends boolean = false>(options: Options<FoldersGetData, ThrowOnError>) => (options.client ?? client).get<FoldersGetResponses, FoldersGetErrors, ThrowOnError>({
886
+ export const foldersGet = <ThrowOnError extends boolean = false>(options: Options<FoldersGetData, ThrowOnError>): RequestResult<FoldersGetResponses, FoldersGetErrors, ThrowOnError> => (options.client ?? client).get<FoldersGetResponses, FoldersGetErrors, ThrowOnError>({
887
887
  security: [{ scheme: 'bearer', type: 'http' }],
888
888
  url: '/v1/folders/{id}',
889
889
  ...options
@@ -894,7 +894,7 @@ export const foldersGet = <ThrowOnError extends boolean = false>(options: Option
894
894
  *
895
895
  * 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.
896
896
  */
897
- export const foldersUpdate = <ThrowOnError extends boolean = false>(options: Options<FoldersUpdateData, ThrowOnError>) => (options.client ?? client).patch<FoldersUpdateResponses, FoldersUpdateErrors, ThrowOnError>({
897
+ export const foldersUpdate = <ThrowOnError extends boolean = false>(options: Options<FoldersUpdateData, ThrowOnError>): RequestResult<FoldersUpdateResponses, FoldersUpdateErrors, ThrowOnError> => (options.client ?? client).patch<FoldersUpdateResponses, FoldersUpdateErrors, ThrowOnError>({
898
898
  security: [{ scheme: 'bearer', type: 'http' }],
899
899
  url: '/v1/folders/{id}',
900
900
  ...options,
@@ -909,7 +909,7 @@ export const foldersUpdate = <ThrowOnError extends boolean = false>(options: Opt
909
909
  *
910
910
  * Cursor-paginated queue of pending human-review tasks for the tenant, oldest first.
911
911
  */
912
- export const humanReviewsList = <ThrowOnError extends boolean = false>(options?: Options<HumanReviewsListData, ThrowOnError>) => (options?.client ?? client).get<HumanReviewsListResponses, HumanReviewsListErrors, ThrowOnError>({
912
+ export const humanReviewsList = <ThrowOnError extends boolean = false>(options?: Options<HumanReviewsListData, ThrowOnError>): RequestResult<HumanReviewsListResponses, HumanReviewsListErrors, ThrowOnError> => (options?.client ?? client).get<HumanReviewsListResponses, HumanReviewsListErrors, ThrowOnError>({
913
913
  security: [{ scheme: 'bearer', type: 'http' }],
914
914
  url: '/v1/human-reviews',
915
915
  ...options
@@ -920,7 +920,7 @@ export const humanReviewsList = <ThrowOnError extends boolean = false>(options?:
920
920
  *
921
921
  * Fetch one authorized human-review task with draft data, derived non-file input, files, and decisions.
922
922
  */
923
- export const humanReviewsGet = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsGetData, ThrowOnError>) => (options.client ?? client).get<HumanReviewsGetResponses, HumanReviewsGetErrors, ThrowOnError>({
923
+ export const humanReviewsGet = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsGetData, ThrowOnError>): RequestResult<HumanReviewsGetResponses, HumanReviewsGetErrors, ThrowOnError> => (options.client ?? client).get<HumanReviewsGetResponses, HumanReviewsGetErrors, ThrowOnError>({
924
924
  security: [{ scheme: 'bearer', type: 'http' }],
925
925
  url: '/v1/human-reviews/{taskId}',
926
926
  ...options
@@ -931,7 +931,7 @@ export const humanReviewsGet = <ThrowOnError extends boolean = false>(options: O
931
931
  *
932
932
  * Approve a complete review task and resume the paused run. Requires every required field to be confirmed.
933
933
  */
934
- export const humanReviewsApprove = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsApproveData, ThrowOnError>) => (options.client ?? client).post<HumanReviewsApproveResponses, HumanReviewsApproveErrors, ThrowOnError>({
934
+ export const humanReviewsApprove = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsApproveData, ThrowOnError>): RequestResult<HumanReviewsApproveResponses, HumanReviewsApproveErrors, ThrowOnError> => (options.client ?? client).post<HumanReviewsApproveResponses, HumanReviewsApproveErrors, ThrowOnError>({
935
935
  security: [{ scheme: 'bearer', type: 'http' }],
936
936
  url: '/v1/human-reviews/{taskId}/approve',
937
937
  ...options,
@@ -946,7 +946,7 @@ export const humanReviewsApprove = <ThrowOnError extends boolean = false>(option
946
946
  *
947
947
  * Confirm or edit a scalar field using optimistic concurrency and a durable idempotency key.
948
948
  */
949
- export const humanReviewsConfirmField = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsConfirmFieldData, ThrowOnError>) => (options.client ?? client).put<HumanReviewsConfirmFieldResponses, HumanReviewsConfirmFieldErrors, ThrowOnError>({
949
+ export const humanReviewsConfirmField = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsConfirmFieldData, ThrowOnError>): RequestResult<HumanReviewsConfirmFieldResponses, HumanReviewsConfirmFieldErrors, ThrowOnError> => (options.client ?? client).put<HumanReviewsConfirmFieldResponses, HumanReviewsConfirmFieldErrors, ThrowOnError>({
950
950
  security: [{ scheme: 'bearer', type: 'http' }],
951
951
  url: '/v1/human-reviews/{taskId}/fields',
952
952
  ...options,
@@ -961,7 +961,7 @@ export const humanReviewsConfirmField = <ThrowOnError extends boolean = false>(o
961
961
  *
962
962
  * Download one file attached to a human-review task after strict tenant, task, and run ownership checks. Large cloud deployments may redirect to a short-lived signed storage URL.
963
963
  */
964
- export const humanReviewsFilesContentGet = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsFilesContentGetData, ThrowOnError>) => (options.client ?? client).get<HumanReviewsFilesContentGetResponses, HumanReviewsFilesContentGetErrors, ThrowOnError>({
964
+ export const humanReviewsFilesContentGet = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsFilesContentGetData, ThrowOnError>): RequestResult<HumanReviewsFilesContentGetResponses, HumanReviewsFilesContentGetErrors, ThrowOnError> => (options.client ?? client).get<HumanReviewsFilesContentGetResponses, HumanReviewsFilesContentGetErrors, ThrowOnError>({
965
965
  security: [{ scheme: 'bearer', type: 'http' }],
966
966
  url: '/v1/human-reviews/{taskId}/files/{fileId}/content',
967
967
  ...options
@@ -972,7 +972,7 @@ export const humanReviewsFilesContentGet = <ThrowOnError extends boolean = false
972
972
  *
973
973
  * Reject a review task and fail the paused run with the supplied reason.
974
974
  */
975
- export const humanReviewsReject = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsRejectData, ThrowOnError>) => (options.client ?? client).post<HumanReviewsRejectResponses, HumanReviewsRejectErrors, ThrowOnError>({
975
+ export const humanReviewsReject = <ThrowOnError extends boolean = false>(options: Options<HumanReviewsRejectData, ThrowOnError>): RequestResult<HumanReviewsRejectResponses, HumanReviewsRejectErrors, ThrowOnError> => (options.client ?? client).post<HumanReviewsRejectResponses, HumanReviewsRejectErrors, ThrowOnError>({
976
976
  security: [{ scheme: 'bearer', type: 'http' }],
977
977
  url: '/v1/human-reviews/{taskId}/reject',
978
978
  ...options,
@@ -987,7 +987,7 @@ export const humanReviewsReject = <ThrowOnError extends boolean = false>(options
987
987
  *
988
988
  * List text, vision, and OCR models configured for this tenant's environment from the workspace model catalog. This is a cheap read-only inventory: it does not call providers. `health` is `configured` or `unconfigured` from local credentials, never a live probe. Secrets and provider endpoints are never returned.
989
989
  */
990
- export const modelsList = <ThrowOnError extends boolean = false>(options?: Options<ModelsListData, ThrowOnError>) => (options?.client ?? client).get<ModelsListResponses, ModelsListErrors, ThrowOnError>({
990
+ export const modelsList = <ThrowOnError extends boolean = false>(options?: Options<ModelsListData, ThrowOnError>): RequestResult<ModelsListResponses, ModelsListErrors, ThrowOnError> => (options?.client ?? client).get<ModelsListResponses, ModelsListErrors, ThrowOnError>({
991
991
  security: [{ scheme: 'bearer', type: 'http' }],
992
992
  url: '/v1/models',
993
993
  ...options
@@ -998,7 +998,7 @@ export const modelsList = <ThrowOnError extends boolean = false>(options?: Optio
998
998
  *
999
999
  * Read deployment-approved OCR/vision defaults and configuration readiness for ai.parse-v2. Does not probe live providers or worker native binaries. Run document smoke tests to verify live readiness.
1000
1000
  */
1001
- export const modelsParserReadiness = <ThrowOnError extends boolean = false>(options?: Options<ModelsParserReadinessData, ThrowOnError>) => (options?.client ?? client).get<ModelsParserReadinessResponses, ModelsParserReadinessErrors, ThrowOnError>({
1001
+ export const modelsParserReadiness = <ThrowOnError extends boolean = false>(options?: Options<ModelsParserReadinessData, ThrowOnError>): RequestResult<ModelsParserReadinessResponses, ModelsParserReadinessErrors, ThrowOnError> => (options?.client ?? client).get<ModelsParserReadinessResponses, ModelsParserReadinessErrors, ThrowOnError>({
1002
1002
  security: [{ scheme: 'bearer', type: 'http' }],
1003
1003
  url: '/v1/parsing/readiness',
1004
1004
  ...options
@@ -1009,7 +1009,7 @@ export const modelsParserReadiness = <ThrowOnError extends boolean = false>(opti
1009
1009
  *
1010
1010
  * List workflow and agent runs with cursor pagination.
1011
1011
  */
1012
- export const runsList = <ThrowOnError extends boolean = false>(options?: Options<RunsListData, ThrowOnError>) => (options?.client ?? client).get<RunsListResponses, RunsListErrors, ThrowOnError>({
1012
+ export const runsList = <ThrowOnError extends boolean = false>(options?: Options<RunsListData, ThrowOnError>): RequestResult<RunsListResponses, RunsListErrors, ThrowOnError> => (options?.client ?? client).get<RunsListResponses, RunsListErrors, ThrowOnError>({
1013
1013
  security: [{ scheme: 'bearer', type: 'http' }],
1014
1014
  url: '/v1/runs',
1015
1015
  ...options
@@ -1022,7 +1022,7 @@ export const runsList = <ThrowOnError extends boolean = false>(options?: Options
1022
1022
  *
1023
1023
  * How to read a run: the envelope is at the root. The automation business result is in `output` (per-automation, not this generic schema). Status is `execution.status` (`execution.retry.nextRun.status` is a later retry). `input`, `usage`, and `debug` appear only with `?expand=`. `eval` is present only on eval-scoped runs.
1024
1024
  */
1025
- export const runsStart = <ThrowOnError extends boolean = false>(options: Options<RunsStartData, ThrowOnError>) => (options.client ?? client).post<RunsStartResponses, RunsStartErrors, ThrowOnError>({
1025
+ export const runsStart = <ThrowOnError extends boolean = false>(options: Options<RunsStartData, ThrowOnError>): RequestResult<RunsStartResponses, RunsStartErrors, ThrowOnError> => (options.client ?? client).post<RunsStartResponses, RunsStartErrors, ThrowOnError>({
1026
1026
  security: [{ scheme: 'bearer', type: 'http' }],
1027
1027
  url: '/v1/runs',
1028
1028
  ...options,
@@ -1039,7 +1039,7 @@ export const runsStart = <ThrowOnError extends boolean = false>(options: Options
1039
1039
  *
1040
1040
  * How to read a run: the envelope is at the root. The automation business result is in `output` (per-automation, not this generic schema). Status is `execution.status` (`execution.retry.nextRun.status` is a later retry). `input`, `usage`, and `debug` appear only with `?expand=`. `eval` is present only on eval-scoped runs.
1041
1041
  */
1042
- export const runsGet = <ThrowOnError extends boolean = false>(options: Options<RunsGetData, ThrowOnError>) => (options.client ?? client).get<RunsGetResponses, RunsGetErrors, ThrowOnError>({
1042
+ export const runsGet = <ThrowOnError extends boolean = false>(options: Options<RunsGetData, ThrowOnError>): RequestResult<RunsGetResponses, RunsGetErrors, ThrowOnError> => (options.client ?? client).get<RunsGetResponses, RunsGetErrors, ThrowOnError>({
1043
1043
  security: [{ scheme: 'bearer', type: 'http' }],
1044
1044
  url: '/v1/runs/{id}',
1045
1045
  ...options
@@ -1050,7 +1050,7 @@ export const runsGet = <ThrowOnError extends boolean = false>(options: Options<R
1050
1050
  *
1051
1051
  * Returns a JSON list of downloadable artifact paths for a run. Pass `zip=1` to switch the response to a ZIP download containing output files.
1052
1052
  */
1053
- export const runsArtifactsList = <ThrowOnError extends boolean = false>(options: Options<RunsArtifactsListData, ThrowOnError>) => (options.client ?? client).get<RunsArtifactsListResponses, RunsArtifactsListErrors, ThrowOnError>({
1053
+ export const runsArtifactsList = <ThrowOnError extends boolean = false>(options: Options<RunsArtifactsListData, ThrowOnError>): RequestResult<RunsArtifactsListResponses, RunsArtifactsListErrors, ThrowOnError> => (options.client ?? client).get<RunsArtifactsListResponses, RunsArtifactsListErrors, ThrowOnError>({
1054
1054
  security: [{ scheme: 'bearer', type: 'http' }],
1055
1055
  url: '/v1/runs/{id}/artifacts',
1056
1056
  ...options
@@ -1061,7 +1061,7 @@ export const runsArtifactsList = <ThrowOnError extends boolean = false>(options:
1061
1061
  *
1062
1062
  * Download one artifact by path. Cloud deployments may redirect to a short-lived storage URL for large files.
1063
1063
  */
1064
- export const runsArtifactsGet = <ThrowOnError extends boolean = false>(options: Options<RunsArtifactsGetData, ThrowOnError>) => (options.client ?? client).get<RunsArtifactsGetResponses, RunsArtifactsGetErrors, ThrowOnError>({
1064
+ export const runsArtifactsGet = <ThrowOnError extends boolean = false>(options: Options<RunsArtifactsGetData, ThrowOnError>): RequestResult<RunsArtifactsGetResponses, RunsArtifactsGetErrors, ThrowOnError> => (options.client ?? client).get<RunsArtifactsGetResponses, RunsArtifactsGetErrors, ThrowOnError>({
1065
1065
  security: [{ scheme: 'bearer', type: 'http' }],
1066
1066
  url: '/v1/runs/{id}/artifacts/{path}',
1067
1067
  ...options
@@ -1072,7 +1072,7 @@ export const runsArtifactsGet = <ThrowOnError extends boolean = false>(options:
1072
1072
  *
1073
1073
  * Cancel a queued run or request cancellation of an in-flight run.
1074
1074
  */
1075
- export const runsCancel = <ThrowOnError extends boolean = false>(options: Options<RunsCancelData, ThrowOnError>) => (options.client ?? client).post<RunsCancelResponses, RunsCancelErrors, ThrowOnError>({
1075
+ export const runsCancel = <ThrowOnError extends boolean = false>(options: Options<RunsCancelData, ThrowOnError>): RequestResult<RunsCancelResponses, RunsCancelErrors, ThrowOnError> => (options.client ?? client).post<RunsCancelResponses, RunsCancelErrors, ThrowOnError>({
1076
1076
  security: [{ scheme: 'bearer', type: 'http' }],
1077
1077
  url: '/v1/runs/{id}/cancel',
1078
1078
  ...options
@@ -1083,7 +1083,7 @@ export const runsCancel = <ThrowOnError extends boolean = false>(options: Option
1083
1083
  *
1084
1084
  * List a stable chronological lifecycle timeline for a run.
1085
1085
  */
1086
- export const runsEventsList = <ThrowOnError extends boolean = false>(options: Options<RunsEventsListData, ThrowOnError>) => (options.client ?? client).get<RunsEventsListResponses, RunsEventsListErrors, ThrowOnError>({
1086
+ export const runsEventsList = <ThrowOnError extends boolean = false>(options: Options<RunsEventsListData, ThrowOnError>): RequestResult<RunsEventsListResponses, RunsEventsListErrors, ThrowOnError> => (options.client ?? client).get<RunsEventsListResponses, RunsEventsListErrors, ThrowOnError>({
1087
1087
  security: [{ scheme: 'bearer', type: 'http' }],
1088
1088
  url: '/v1/runs/{id}/events',
1089
1089
  ...options
@@ -1094,7 +1094,7 @@ export const runsEventsList = <ThrowOnError extends boolean = false>(options: Op
1094
1094
  *
1095
1095
  * Turn a reviewed run into a dataset example. The new example uses the run input and any corrected output/files stored through the review endpoints.
1096
1096
  */
1097
- export const runsPromote = <ThrowOnError extends boolean = false>(options: Options<RunsPromoteData, ThrowOnError>) => (options.client ?? client).post<RunsPromoteResponses, RunsPromoteErrors, ThrowOnError>({
1097
+ export const runsPromote = <ThrowOnError extends boolean = false>(options: Options<RunsPromoteData, ThrowOnError>): RequestResult<RunsPromoteResponses, RunsPromoteErrors, ThrowOnError> => (options.client ?? client).post<RunsPromoteResponses, RunsPromoteErrors, ThrowOnError>({
1098
1098
  security: [{ scheme: 'bearer', type: 'http' }],
1099
1099
  url: '/v1/runs/{id}/promote',
1100
1100
  ...options,
@@ -1109,7 +1109,7 @@ export const runsPromote = <ThrowOnError extends boolean = false>(options: Optio
1109
1109
  *
1110
1110
  * Start a new run using the source run input. By default the retry uses the latest automation version; pass `version=original` to pin the same source version as the original run.
1111
1111
  */
1112
- export const runsRerun = <ThrowOnError extends boolean = false>(options: Options<RunsRerunData, ThrowOnError>) => (options.client ?? client).post<RunsRerunResponses, RunsRerunErrors, ThrowOnError>({
1112
+ export const runsRerun = <ThrowOnError extends boolean = false>(options: Options<RunsRerunData, ThrowOnError>): RequestResult<RunsRerunResponses, RunsRerunErrors, ThrowOnError> => (options.client ?? client).post<RunsRerunResponses, RunsRerunErrors, ThrowOnError>({
1113
1113
  security: [{ scheme: 'bearer', type: 'http' }],
1114
1114
  url: '/v1/runs/{id}/rerun',
1115
1115
  ...options
@@ -1120,7 +1120,7 @@ export const runsRerun = <ThrowOnError extends boolean = false>(options: Options
1120
1120
  *
1121
1121
  * Deletes review metadata, corrections, and corrected files for the run.
1122
1122
  */
1123
- export const runsReviewsClear = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsClearData, ThrowOnError>) => (options.client ?? client).delete<RunsReviewsClearResponses, RunsReviewsClearErrors, ThrowOnError>({
1123
+ export const runsReviewsClear = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsClearData, ThrowOnError>): RequestResult<RunsReviewsClearResponses, RunsReviewsClearErrors, ThrowOnError> => (options.client ?? client).delete<RunsReviewsClearResponses, RunsReviewsClearErrors, ThrowOnError>({
1124
1124
  security: [{ scheme: 'bearer', type: 'http' }],
1125
1125
  url: '/v1/runs/{id}/reviews',
1126
1126
  ...options
@@ -1131,7 +1131,7 @@ export const runsReviewsClear = <ThrowOnError extends boolean = false>(options:
1131
1131
  *
1132
1132
  * Returns review metadata and corrections for a run. Corrected files are listed at GET /runs/{id}/reviews/expected; embed review + expected artifacts with GET /runs/{id}?expand=execution.
1133
1133
  */
1134
- export const runsReviewsGet = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsGetData, ThrowOnError>) => (options.client ?? client).get<RunsReviewsGetResponses, RunsReviewsGetErrors, ThrowOnError>({
1134
+ export const runsReviewsGet = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsGetData, ThrowOnError>): RequestResult<RunsReviewsGetResponses, RunsReviewsGetErrors, ThrowOnError> => (options.client ?? client).get<RunsReviewsGetResponses, RunsReviewsGetErrors, ThrowOnError>({
1135
1135
  security: [{ scheme: 'bearer', type: 'http' }],
1136
1136
  url: '/v1/runs/{id}/reviews',
1137
1137
  ...options
@@ -1142,7 +1142,7 @@ export const runsReviewsGet = <ThrowOnError extends boolean = false>(options: Op
1142
1142
  *
1143
1143
  * Create or replace review metadata for a run.
1144
1144
  */
1145
- export const runsReviewsUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsUpdateData, ThrowOnError>) => (options.client ?? client).put<RunsReviewsUpdateResponses, RunsReviewsUpdateErrors, ThrowOnError>({
1145
+ export const runsReviewsUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsUpdateData, ThrowOnError>): RequestResult<RunsReviewsUpdateResponses, RunsReviewsUpdateErrors, ThrowOnError> => (options.client ?? client).put<RunsReviewsUpdateResponses, RunsReviewsUpdateErrors, ThrowOnError>({
1146
1146
  security: [{ scheme: 'bearer', type: 'http' }],
1147
1147
  url: '/v1/runs/{id}/reviews',
1148
1148
  ...options,
@@ -1157,7 +1157,7 @@ export const runsReviewsUpdate = <ThrowOnError extends boolean = false>(options:
1157
1157
  *
1158
1158
  * Returns corrected artifact files attached to the run review. Review metadata and corrected JSON output live at GET /runs/{id}/reviews.
1159
1159
  */
1160
- export const runsReviewsExpectedGet = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedGetData, ThrowOnError>) => (options.client ?? client).get<RunsReviewsExpectedGetResponses, RunsReviewsExpectedGetErrors, ThrowOnError>({
1160
+ export const runsReviewsExpectedGet = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedGetData, ThrowOnError>): RequestResult<RunsReviewsExpectedGetResponses, RunsReviewsExpectedGetErrors, ThrowOnError> => (options.client ?? client).get<RunsReviewsExpectedGetResponses, RunsReviewsExpectedGetErrors, ThrowOnError>({
1161
1161
  security: [{ scheme: 'bearer', type: 'http' }],
1162
1162
  url: '/v1/runs/{id}/reviews/expected',
1163
1163
  ...options
@@ -1168,7 +1168,7 @@ export const runsReviewsExpectedGet = <ThrowOnError extends boolean = false>(opt
1168
1168
  *
1169
1169
  * Attach one corrected file to a run review. Send multipart/form-data with `file` and optional `name` to upload a local file, or JSON with `outputFileName` and optional `expectedName` to copy an existing run output file.
1170
1170
  */
1171
- export const runsReviewsExpectedCreate = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedCreateData, ThrowOnError>) => (options.client ?? client).post<RunsReviewsExpectedCreateResponses, RunsReviewsExpectedCreateErrors, ThrowOnError>({
1171
+ export const runsReviewsExpectedCreate = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedCreateData, ThrowOnError>): RequestResult<RunsReviewsExpectedCreateResponses, RunsReviewsExpectedCreateErrors, ThrowOnError> => (options.client ?? client).post<RunsReviewsExpectedCreateResponses, RunsReviewsExpectedCreateErrors, ThrowOnError>({
1172
1172
  ...((options.body && typeof options.body === 'object' && 'file' in options.body) ? formDataBodySerializer : {}),
1173
1173
  security: [{ scheme: 'bearer', type: 'http' }],
1174
1174
  url: '/v1/runs/{id}/reviews/expected',
@@ -1184,7 +1184,7 @@ export const runsReviewsExpectedCreate = <ThrowOnError extends boolean = false>(
1184
1184
  *
1185
1185
  * Deletes one corrected artifact file attached to the run review.
1186
1186
  */
1187
- export const runsReviewsExpectedFileDelete = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedFileDeleteData, ThrowOnError>) => (options.client ?? client).delete<RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileDeleteErrors, ThrowOnError>({
1187
+ export const runsReviewsExpectedFileDelete = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedFileDeleteData, ThrowOnError>): RequestResult<RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileDeleteErrors, ThrowOnError> => (options.client ?? client).delete<RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileDeleteErrors, ThrowOnError>({
1188
1188
  security: [{ scheme: 'bearer', type: 'http' }],
1189
1189
  url: '/v1/runs/{id}/reviews/expected/{filename}',
1190
1190
  ...options
@@ -1195,7 +1195,7 @@ export const runsReviewsExpectedFileDelete = <ThrowOnError extends boolean = fal
1195
1195
  *
1196
1196
  * Downloads one corrected artifact file attached to the run review. Use the `filename` returned by the corrected-output collection endpoint.
1197
1197
  */
1198
- export const runsReviewsExpectedFileGet = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedFileGetData, ThrowOnError>) => (options.client ?? client).get<RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileGetErrors, ThrowOnError>({
1198
+ export const runsReviewsExpectedFileGet = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedFileGetData, ThrowOnError>): RequestResult<RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileGetErrors, ThrowOnError> => (options.client ?? client).get<RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileGetErrors, ThrowOnError>({
1199
1199
  security: [{ scheme: 'bearer', type: 'http' }],
1200
1200
  url: '/v1/runs/{id}/reviews/expected/{filename}',
1201
1201
  ...options
@@ -1206,7 +1206,7 @@ export const runsReviewsExpectedFileGet = <ThrowOnError extends boolean = false>
1206
1206
  *
1207
1207
  * Renames one corrected artifact file attached to the run review.
1208
1208
  */
1209
- export const runsReviewsExpectedFileUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedFileUpdateData, ThrowOnError>) => (options.client ?? client).patch<RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedFileUpdateErrors, ThrowOnError>({
1209
+ export const runsReviewsExpectedFileUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsReviewsExpectedFileUpdateData, ThrowOnError>): RequestResult<RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedFileUpdateErrors, ThrowOnError> => (options.client ?? client).patch<RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedFileUpdateErrors, ThrowOnError>({
1210
1210
  security: [{ scheme: 'bearer', type: 'http' }],
1211
1211
  url: '/v1/runs/{id}/reviews/expected/{filename}',
1212
1212
  ...options,
@@ -1221,7 +1221,7 @@ export const runsReviewsExpectedFileUpdate = <ThrowOnError extends boolean = fal
1221
1221
  *
1222
1222
  * List automated evaluator results for one run. Use `score` for evaluator output and run reviews for human verdicts.
1223
1223
  */
1224
- export const runsScoresList = <ThrowOnError extends boolean = false>(options: Options<RunsScoresListData, ThrowOnError>) => (options.client ?? client).get<RunsScoresListResponses, RunsScoresListErrors, ThrowOnError>({
1224
+ export const runsScoresList = <ThrowOnError extends boolean = false>(options: Options<RunsScoresListData, ThrowOnError>): RequestResult<RunsScoresListResponses, RunsScoresListErrors, ThrowOnError> => (options.client ?? client).get<RunsScoresListResponses, RunsScoresListErrors, ThrowOnError>({
1225
1225
  security: [{ scheme: 'bearer', type: 'http' }],
1226
1226
  url: '/v1/runs/{id}/scores',
1227
1227
  ...options
@@ -1232,7 +1232,7 @@ export const runsScoresList = <ThrowOnError extends boolean = false>(options: Op
1232
1232
  *
1233
1233
  * List slim workflow step rows for a run (no input/output payloads) plus the total count. Fetch a single step for full payloads.
1234
1234
  */
1235
- export const runsStepsList = <ThrowOnError extends boolean = false>(options: Options<RunsStepsListData, ThrowOnError>) => (options.client ?? client).get<RunsStepsListResponses, RunsStepsListErrors, ThrowOnError>({
1235
+ export const runsStepsList = <ThrowOnError extends boolean = false>(options: Options<RunsStepsListData, ThrowOnError>): RequestResult<RunsStepsListResponses, RunsStepsListErrors, ThrowOnError> => (options.client ?? client).get<RunsStepsListResponses, RunsStepsListErrors, ThrowOnError>({
1236
1236
  security: [{ scheme: 'bearer', type: 'http' }],
1237
1237
  url: '/v1/runs/{id}/steps',
1238
1238
  ...options
@@ -1243,7 +1243,7 @@ export const runsStepsList = <ThrowOnError extends boolean = false>(options: Opt
1243
1243
  *
1244
1244
  * Return the full single step execution (including input/output) for on-demand inspection. The step must belong to this run or a child invoke-workflow run.
1245
1245
  */
1246
- export const runsStepsGet = <ThrowOnError extends boolean = false>(options: Options<RunsStepsGetData, ThrowOnError>) => (options.client ?? client).get<RunsStepsGetResponses, RunsStepsGetErrors, ThrowOnError>({
1246
+ export const runsStepsGet = <ThrowOnError extends boolean = false>(options: Options<RunsStepsGetData, ThrowOnError>): RequestResult<RunsStepsGetResponses, RunsStepsGetErrors, ThrowOnError> => (options.client ?? client).get<RunsStepsGetResponses, RunsStepsGetErrors, ThrowOnError>({
1247
1247
  security: [{ scheme: 'bearer', type: 'http' }],
1248
1248
  url: '/v1/runs/{id}/steps/{stepExecutionId}',
1249
1249
  ...options
@@ -1254,7 +1254,7 @@ export const runsStepsGet = <ThrowOnError extends boolean = false>(options: Opti
1254
1254
  *
1255
1255
  * Return low-level execution trace events for debugging one run. Workflow runs expose observability phases or step records; agent runs expose parsed trace.jsonl events. The shape is intentionally extensible, but common fields are documented.
1256
1256
  */
1257
- export const runsTraceGet = <ThrowOnError extends boolean = false>(options: Options<RunsTraceGetData, ThrowOnError>) => (options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
1257
+ export const runsTraceGet = <ThrowOnError extends boolean = false>(options: Options<RunsTraceGetData, ThrowOnError>): RequestResult<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError> => (options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
1258
1258
  security: [{ scheme: 'bearer', type: 'http' }],
1259
1259
  url: '/v1/runs/{id}/trace',
1260
1260
  ...options
@@ -1265,7 +1265,7 @@ export const runsTraceGet = <ThrowOnError extends boolean = false>(options: Opti
1265
1265
  *
1266
1266
  * Get token, credit, duration, and execution usage for a run.
1267
1267
  */
1268
- export const runsUsageGet = <ThrowOnError extends boolean = false>(options: Options<RunsUsageGetData, ThrowOnError>) => (options.client ?? client).get<RunsUsageGetResponses, RunsUsageGetErrors, ThrowOnError>({
1268
+ export const runsUsageGet = <ThrowOnError extends boolean = false>(options: Options<RunsUsageGetData, ThrowOnError>): RequestResult<RunsUsageGetResponses, RunsUsageGetErrors, ThrowOnError> => (options.client ?? client).get<RunsUsageGetResponses, RunsUsageGetErrors, ThrowOnError>({
1269
1269
  security: [{ scheme: 'bearer', type: 'http' }],
1270
1270
  url: '/v1/runs/{id}/usage',
1271
1271
  ...options
@@ -1276,7 +1276,7 @@ export const runsUsageGet = <ThrowOnError extends boolean = false>(options: Opti
1276
1276
  *
1277
1277
  * List tenant-scoped DOCX and XLSX template resources.
1278
1278
  */
1279
- export const templatesList = <ThrowOnError extends boolean = false>(options?: Options<TemplatesListData, ThrowOnError>) => (options?.client ?? client).get<TemplatesListResponses, TemplatesListErrors, ThrowOnError>({
1279
+ export const templatesList = <ThrowOnError extends boolean = false>(options?: Options<TemplatesListData, ThrowOnError>): RequestResult<TemplatesListResponses, TemplatesListErrors, ThrowOnError> => (options?.client ?? client).get<TemplatesListResponses, TemplatesListErrors, ThrowOnError>({
1280
1280
  security: [{ scheme: 'bearer', type: 'http' }],
1281
1281
  url: '/v1/templates',
1282
1282
  ...options
@@ -1287,7 +1287,7 @@ export const templatesList = <ThrowOnError extends boolean = false>(options?: Op
1287
1287
  *
1288
1288
  * Create a stable `tmpl_…` resource and its first immutable content revision from a reusable `fileId`. Public SDK helpers `create(file)` and `createFromFileId(fileId)` upload through the Files API when needed, then send this JSON body. Generated clients send `{ fileId }` JSON only. The HTTP route still accepts a multipart `file` for CLI/internal use; that path is not generated into the public SDKs.
1289
1289
  */
1290
- export const templatesCreate = <ThrowOnError extends boolean = false>(options: Options<TemplatesCreateData, ThrowOnError>) => (options.client ?? client).post<TemplatesCreateResponses, TemplatesCreateErrors, ThrowOnError>({
1290
+ export const templatesCreate = <ThrowOnError extends boolean = false>(options: Options<TemplatesCreateData, ThrowOnError>): RequestResult<TemplatesCreateResponses, TemplatesCreateErrors, ThrowOnError> => (options.client ?? client).post<TemplatesCreateResponses, TemplatesCreateErrors, ThrowOnError>({
1291
1291
  security: [{ scheme: 'bearer', type: 'http' }],
1292
1292
  url: '/v1/templates',
1293
1293
  ...options,
@@ -1302,7 +1302,7 @@ export const templatesCreate = <ThrowOnError extends boolean = false>(options: O
1302
1302
  *
1303
1303
  * Delete the mutable logical template. Immutable revisions are retained so workflows pinned with `templateRevisionId` continue to execute; unpinned workflows can no longer resolve the deleted `tmpl_…` id.
1304
1304
  */
1305
- export const templatesDelete = <ThrowOnError extends boolean = false>(options: Options<TemplatesDeleteData, ThrowOnError>) => (options.client ?? client).delete<TemplatesDeleteResponses, TemplatesDeleteErrors, ThrowOnError>({
1305
+ export const templatesDelete = <ThrowOnError extends boolean = false>(options: Options<TemplatesDeleteData, ThrowOnError>): RequestResult<TemplatesDeleteResponses, TemplatesDeleteErrors, ThrowOnError> => (options.client ?? client).delete<TemplatesDeleteResponses, TemplatesDeleteErrors, ThrowOnError>({
1306
1306
  security: [{ scheme: 'bearer', type: 'http' }],
1307
1307
  url: '/v1/templates/{id}',
1308
1308
  ...options
@@ -1313,7 +1313,7 @@ export const templatesDelete = <ThrowOnError extends boolean = false>(options: O
1313
1313
  *
1314
1314
  * Get template metadata, checksum, discovered tokens, grammar capabilities, and current immutable revision. Storage keys are never exposed.
1315
1315
  */
1316
- export const templatesGet = <ThrowOnError extends boolean = false>(options: Options<TemplatesGetData, ThrowOnError>) => (options.client ?? client).get<TemplatesGetResponses, TemplatesGetErrors, ThrowOnError>({
1316
+ export const templatesGet = <ThrowOnError extends boolean = false>(options: Options<TemplatesGetData, ThrowOnError>): RequestResult<TemplatesGetResponses, TemplatesGetErrors, ThrowOnError> => (options.client ?? client).get<TemplatesGetResponses, TemplatesGetErrors, ThrowOnError>({
1317
1317
  security: [{ scheme: 'bearer', type: 'http' }],
1318
1318
  url: '/v1/templates/{id}',
1319
1319
  ...options
@@ -1324,7 +1324,7 @@ export const templatesGet = <ThrowOnError extends boolean = false>(options: Opti
1324
1324
  *
1325
1325
  * Append an immutable revision and advance the logical template pointer from a reusable `fileId`. Public SDK helpers `replace(file)` and `replaceFromFileId(fileId)` upload through the Files API when needed, then send this JSON body. Generated clients send `{ fileId }` JSON only. The HTTP route still accepts a multipart `file` for CLI/internal use; that path is not generated into the public SDKs.
1326
1326
  */
1327
- export const templatesReplace = <ThrowOnError extends boolean = false>(options: Options<TemplatesReplaceData, ThrowOnError>) => (options.client ?? client).put<TemplatesReplaceResponses, TemplatesReplaceErrors, ThrowOnError>({
1327
+ export const templatesReplace = <ThrowOnError extends boolean = false>(options: Options<TemplatesReplaceData, ThrowOnError>): RequestResult<TemplatesReplaceResponses, TemplatesReplaceErrors, ThrowOnError> => (options.client ?? client).put<TemplatesReplaceResponses, TemplatesReplaceErrors, ThrowOnError>({
1328
1328
  security: [{ scheme: 'bearer', type: 'http' }],
1329
1329
  url: '/v1/templates/{id}',
1330
1330
  ...options,
@@ -1339,7 +1339,7 @@ export const templatesReplace = <ThrowOnError extends boolean = false>(options:
1339
1339
  *
1340
1340
  * Download current bytes while the logical template exists, or a specific immutable revision using `revisionId`. Pinned revision downloads remain available after logical template deletion. Large objects may 302 to a short-lived signed storage URL.
1341
1341
  */
1342
- export const templatesContentGet = <ThrowOnError extends boolean = false>(options: Options<TemplatesContentGetData, ThrowOnError>) => (options.client ?? client).get<TemplatesContentGetResponses, TemplatesContentGetErrors, ThrowOnError>({
1342
+ export const templatesContentGet = <ThrowOnError extends boolean = false>(options: Options<TemplatesContentGetData, ThrowOnError>): RequestResult<TemplatesContentGetResponses, TemplatesContentGetErrors, ThrowOnError> => (options.client ?? client).get<TemplatesContentGetResponses, TemplatesContentGetErrors, ThrowOnError>({
1343
1343
  security: [{ scheme: 'bearer', type: 'http' }],
1344
1344
  url: '/v1/templates/{id}/content',
1345
1345
  ...options
@@ -1350,7 +1350,7 @@ export const templatesContentGet = <ThrowOnError extends boolean = false>(option
1350
1350
  *
1351
1351
  * Consume the one-time cleanupProof issued on a staged create. `finalize` makes the template live so later deletion keeps pinned revisions. `cleanup` hard-removes only unpublished resources from that staging attempt. Normal DELETE is unchanged and never takes this path.
1352
1352
  */
1353
- export const templatesStaging = <ThrowOnError extends boolean = false>(options: Options<TemplatesStagingData, ThrowOnError>) => (options.client ?? client).post<TemplatesStagingResponses, TemplatesStagingErrors, ThrowOnError>({
1353
+ export const templatesStaging = <ThrowOnError extends boolean = false>(options: Options<TemplatesStagingData, ThrowOnError>): RequestResult<TemplatesStagingResponses, TemplatesStagingErrors, ThrowOnError> => (options.client ?? client).post<TemplatesStagingResponses, TemplatesStagingErrors, ThrowOnError>({
1354
1354
  security: [{ scheme: 'bearer', type: 'http' }],
1355
1355
  url: '/v1/templates/{id}/staging',
1356
1356
  ...options,