extend-ai 1.10.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/.gitattributes +1 -0
  2. package/BaseClient.js +2 -2
  3. package/Client.d.ts +32 -13
  4. package/Client.js +32 -13
  5. package/LICENSE +21 -0
  6. package/api/client/requests/ExtractRequest.d.ts +21 -2
  7. package/api/client/requests/ParseRequest.d.ts +1 -1
  8. package/api/resources/batchProcessorRun/client/Client.d.ts +2 -2
  9. package/api/resources/batchProcessorRun/client/Client.js +2 -2
  10. package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.d.ts +1 -1
  11. package/api/resources/batchRuns/client/Client.d.ts +1 -1
  12. package/api/resources/batchRuns/client/Client.js +1 -1
  13. package/api/resources/classifierVersions/client/Client.d.ts +1 -1
  14. package/api/resources/classifierVersions/client/Client.js +1 -1
  15. package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +1 -1
  16. package/api/resources/classifierVersions/client/requests/ClassifierVersionsListRequest.d.ts +1 -1
  17. package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts +1 -1
  18. package/api/resources/classifiers/client/Client.d.ts +1 -1
  19. package/api/resources/classifiers/client/Client.js +1 -1
  20. package/api/resources/classifiers/client/requests/ClassifiersListRequest.d.ts +1 -1
  21. package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.d.ts +1 -1
  22. package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +1 -1
  23. package/api/resources/classifyRuns/client/Client.d.ts +3 -3
  24. package/api/resources/classifyRuns/client/Client.js +3 -3
  25. package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.d.ts +1 -1
  26. package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.d.ts +1 -1
  27. package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +1 -1
  28. package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.d.ts +1 -1
  29. package/api/resources/editRuns/client/Client.d.ts +2 -2
  30. package/api/resources/editRuns/client/Client.js +2 -2
  31. package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.d.ts +1 -1
  32. package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.d.ts +1 -1
  33. package/api/resources/editSchemas/client/Client.d.ts +2 -2
  34. package/api/resources/editSchemas/client/Client.js +2 -2
  35. package/api/resources/editTemplates/client/Client.d.ts +1 -1
  36. package/api/resources/editTemplates/client/Client.js +1 -1
  37. package/api/resources/editTemplates/client/requests/EditTemplatesRetrieveRequest.d.ts +1 -1
  38. package/api/resources/evaluationSetItems/client/Client.d.ts +3 -3
  39. package/api/resources/evaluationSetItems/client/Client.js +3 -3
  40. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +1 -1
  41. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.d.ts +1 -1
  42. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsListRequest.d.ts +1 -1
  43. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.d.ts +1 -1
  44. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +1 -1
  45. package/api/resources/evaluationSetRuns/client/Client.d.ts +37 -3
  46. package/api/resources/evaluationSetRuns/client/Client.js +104 -3
  47. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsCreateRequest.d.ts +27 -0
  48. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsCreateRequest.js +3 -0
  49. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.d.ts +1 -1
  50. package/api/resources/evaluationSetRuns/client/requests/index.d.ts +1 -0
  51. package/api/resources/evaluationSetRuns/index.d.ts +1 -0
  52. package/api/resources/evaluationSetRuns/index.js +1 -0
  53. package/api/resources/evaluationSetRuns/types/EvaluationSetRunsCreateRequestEntity.d.ts +9 -0
  54. package/api/resources/evaluationSetRuns/types/EvaluationSetRunsCreateRequestEntity.js +3 -0
  55. package/api/resources/evaluationSetRuns/types/index.d.ts +1 -0
  56. package/api/resources/evaluationSetRuns/types/index.js +17 -0
  57. package/api/resources/evaluationSets/client/Client.d.ts +4 -4
  58. package/api/resources/evaluationSets/client/Client.js +4 -4
  59. package/api/resources/evaluationSets/client/requests/EvaluationSetsListRequest.d.ts +1 -1
  60. package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.d.ts +1 -1
  61. package/api/resources/extractRuns/client/Client.d.ts +3 -3
  62. package/api/resources/extractRuns/client/Client.js +3 -3
  63. package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.d.ts +1 -1
  64. package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.d.ts +1 -1
  65. package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +1 -1
  66. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +1 -1
  67. package/api/resources/extractorVersions/client/Client.d.ts +1 -1
  68. package/api/resources/extractorVersions/client/Client.js +1 -1
  69. package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +1 -1
  70. package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +1 -1
  71. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +1 -1
  72. package/api/resources/extractors/client/Client.d.ts +43 -5
  73. package/api/resources/extractors/client/Client.js +43 -5
  74. package/api/resources/extractors/client/requests/ExtractorsCreateRequest.d.ts +48 -6
  75. package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +1 -1
  76. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +1 -1
  77. package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +1 -1
  78. package/api/resources/extractors/types/ExtractorsCreateRequestGenerate.d.ts +12 -0
  79. package/api/resources/extractors/types/ExtractorsCreateRequestGenerate.js +3 -0
  80. package/api/resources/extractors/types/ExtractorsCreateRequestGenerateFilesItem.d.ts +2 -0
  81. package/api/resources/extractors/types/ExtractorsCreateRequestGenerateFilesItem.js +3 -0
  82. package/api/resources/extractors/types/index.d.ts +2 -0
  83. package/api/resources/extractors/types/index.js +2 -0
  84. package/api/resources/files/client/Client.d.ts +3 -3
  85. package/api/resources/files/client/Client.js +3 -3
  86. package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +1 -1
  87. package/api/resources/files/client/requests/FilesListRequest.d.ts +1 -1
  88. package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +1 -1
  89. package/api/resources/files/client/requests/FilesUploadRequest.d.ts +1 -1
  90. package/api/resources/index.d.ts +1 -0
  91. package/api/resources/index.js +1 -0
  92. package/api/resources/parseRuns/client/Client.d.ts +3 -3
  93. package/api/resources/parseRuns/client/Client.js +3 -3
  94. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +1 -1
  95. package/api/resources/parseRuns/client/requests/ParseRunsListRequest.d.ts +1 -1
  96. package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +1 -1
  97. package/api/resources/processor/client/Client.d.ts +1 -1
  98. package/api/resources/processor/client/Client.js +1 -1
  99. package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +1 -1
  100. package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +1 -1
  101. package/api/resources/processorRun/client/Client.d.ts +4 -4
  102. package/api/resources/processorRun/client/Client.js +4 -4
  103. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +1 -1
  104. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +2 -2
  105. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +1 -1
  106. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +1 -1
  107. package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +1 -1
  108. package/api/resources/processorVersion/client/Client.d.ts +1 -1
  109. package/api/resources/processorVersion/client/Client.js +1 -1
  110. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +1 -1
  111. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +1 -1
  112. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +1 -1
  113. package/api/resources/splitRuns/client/Client.d.ts +3 -3
  114. package/api/resources/splitRuns/client/Client.js +3 -3
  115. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +1 -1
  116. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +1 -1
  117. package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +1 -1
  118. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +1 -1
  119. package/api/resources/splitterVersions/client/Client.d.ts +1 -1
  120. package/api/resources/splitterVersions/client/Client.js +1 -1
  121. package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +1 -1
  122. package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +1 -1
  123. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +1 -1
  124. package/api/resources/splitters/client/Client.d.ts +1 -1
  125. package/api/resources/splitters/client/Client.js +1 -1
  126. package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +1 -1
  127. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +1 -1
  128. package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +1 -1
  129. package/api/resources/webhookEndpoints/client/Client.d.ts +3 -3
  130. package/api/resources/webhookEndpoints/client/Client.js +3 -3
  131. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +1 -1
  132. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +1 -1
  133. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +1 -1
  134. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +1 -1
  135. package/api/resources/webhookSubscriptions/client/Client.d.ts +1 -1
  136. package/api/resources/webhookSubscriptions/client/Client.js +1 -1
  137. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +1 -1
  138. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +1 -1
  139. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +1 -1
  140. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +1 -1
  141. package/api/resources/workflowRuns/client/Client.d.ts +5 -5
  142. package/api/resources/workflowRuns/client/Client.js +5 -5
  143. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +1 -1
  144. package/api/resources/workflowRuns/client/requests/WorkflowRunsCreateRequest.d.ts +1 -1
  145. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +1 -1
  146. package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -2
  147. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +1 -1
  148. package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +1 -1
  149. package/api/resources/workflowRuns/types/WorkflowRunsCreateRequestFile.d.ts +1 -1
  150. package/api/resources/workflowVersions/client/Client.d.ts +1 -1
  151. package/api/resources/workflowVersions/client/Client.js +1 -1
  152. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +1 -1
  153. package/api/resources/workflows/client/Client.d.ts +1 -1
  154. package/api/resources/workflows/client/Client.js +1 -1
  155. package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +1 -1
  156. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +1 -1
  157. package/api/types/ApiError.d.ts +1 -1
  158. package/api/types/BlockMetadata.d.ts +6 -0
  159. package/api/types/BlockMetadataSheet.d.ts +9 -0
  160. package/api/types/BlockMetadataSheet.js +3 -0
  161. package/api/types/ChunkMetadata.d.ts +4 -0
  162. package/api/types/ClassificationNextEntry.d.ts +1 -1
  163. package/api/types/ClassifyAdvancedOptions.d.ts +2 -0
  164. package/api/types/ClassifyBaseProcessor.d.ts +1 -1
  165. package/api/types/ClassifyBaseProcessor.js +1 -1
  166. package/api/types/ClassifyConfig.d.ts +1 -1
  167. package/api/types/ClassifyOverrideConfig.d.ts +1 -1
  168. package/api/types/ClassifyRun.d.ts +9 -9
  169. package/api/types/ClassifyRunSummary.d.ts +2 -2
  170. package/api/types/ClassifyStepDefinition.d.ts +3 -3
  171. package/api/types/ClassifyStepDefinitionConfig.d.ts +1 -1
  172. package/api/types/CollectStepDefinition.d.ts +1 -1
  173. package/api/types/ConditionalExtractStepDefinition.d.ts +1 -1
  174. package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +1 -1
  175. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +1 -1
  176. package/api/types/ConditionalNextEntry.d.ts +1 -1
  177. package/api/types/ConditionalStepDefinition.d.ts +2 -2
  178. package/api/types/ConditionalStepDefinitionConfig.d.ts +1 -1
  179. package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +3 -3
  180. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +1 -1
  181. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +1 -1
  182. package/api/types/EvaluationSetRun.d.ts +1 -1
  183. package/api/types/ExternalDataValidationStepDefinition.d.ts +1 -1
  184. package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +2 -2
  185. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +1 -1
  186. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +1 -1
  187. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +3 -3
  188. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +1 -1
  189. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +1 -1
  190. package/api/types/ExtractAdvancedOptions.d.ts +10 -3
  191. package/api/types/ExtractAdvancedOptionsCitationMode.d.ts +12 -0
  192. package/api/types/ExtractAdvancedOptionsCitationMode.js +15 -0
  193. package/api/types/ExtractAdvancedOptionsReviewAgent.d.ts +1 -1
  194. package/api/types/ExtractBaseProcessor.d.ts +1 -1
  195. package/api/types/ExtractBaseProcessor.js +1 -1
  196. package/api/types/ExtractConfigJson.d.ts +2 -2
  197. package/api/types/ExtractConfigLegacy.d.ts +2 -2
  198. package/api/types/ExtractConfigLegacyBaseProcessor.d.ts +1 -1
  199. package/api/types/ExtractConfigLegacyBaseProcessor.js +1 -1
  200. package/api/types/ExtractOutputMetadataValue.d.ts +1 -1
  201. package/api/types/ExtractOverrideConfigJson.d.ts +2 -2
  202. package/api/types/ExtractRun.d.ts +16 -16
  203. package/api/types/ExtractRunSummary.d.ts +2 -2
  204. package/api/types/ExtractStepDefinition.d.ts +1 -1
  205. package/api/types/ExtractorVersion.d.ts +1 -1
  206. package/api/types/FileConversionStepDefinition.d.ts +1 -1
  207. package/api/types/FileConversionStepDefinitionConfig.d.ts +1 -1
  208. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +1 -1
  209. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +1 -1
  210. package/api/types/FileFromUrl.d.ts +1 -1
  211. package/api/types/HumanReviewStepDefinition.d.ts +1 -1
  212. package/api/types/LegacyClassificationAdvancedOptions.d.ts +1 -1
  213. package/api/types/LegacyClassificationConfig.d.ts +2 -2
  214. package/api/types/LegacyClassificationConfigBaseProcessor.d.ts +1 -1
  215. package/api/types/LegacyClassificationConfigBaseProcessor.js +1 -1
  216. package/api/types/LegacyDocumentProcessorRunCredits.d.ts +2 -2
  217. package/api/types/LegacyExtractionAdvancedOptions.d.ts +2 -2
  218. package/api/types/LegacyExtractionAdvancedOptionsReviewAgent.d.ts +1 -1
  219. package/api/types/LegacyExtractionConfig.d.ts +3 -3
  220. package/api/types/LegacyExtractionConfigBaseProcessor.d.ts +1 -1
  221. package/api/types/LegacyExtractionConfigBaseProcessor.js +1 -1
  222. package/api/types/LegacyJsonOutputMetadataValue.d.ts +1 -1
  223. package/api/types/LegacySplitterAdvancedOptions.d.ts +1 -1
  224. package/api/types/LegacySplitterConfig.d.ts +2 -2
  225. package/api/types/LegacySplitterConfigBaseProcessor.d.ts +1 -1
  226. package/api/types/LegacySplitterConfigBaseProcessor.js +1 -1
  227. package/api/types/MergeExtractStepDefinition.d.ts +1 -1
  228. package/api/types/MergeExtractStepDefinitionConfig.d.ts +1 -1
  229. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +1 -1
  230. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +1 -1
  231. package/api/types/PageRanges.d.ts +1 -1
  232. package/api/types/ParseConfig.d.ts +2 -2
  233. package/api/types/ParseConfigEngine.d.ts +1 -1
  234. package/api/types/ParseConfigEngine.js +1 -1
  235. package/api/types/ParseConfigTarget.d.ts +1 -1
  236. package/api/types/ParseConfigTarget.js +1 -1
  237. package/api/types/ParseStepDefinition.d.ts +1 -1
  238. package/api/types/RuleValidationNextEntry.d.ts +1 -1
  239. package/api/types/RuleValidationStepDefinition.d.ts +2 -2
  240. package/api/types/RuleValidationStepDefinitionConfig.d.ts +1 -1
  241. package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +1 -1
  242. package/api/types/RunUsage.d.ts +1 -1
  243. package/api/types/RunUsageSummary.d.ts +1 -1
  244. package/api/types/SplitBaseProcessor.d.ts +1 -1
  245. package/api/types/SplitBaseProcessor.js +1 -1
  246. package/api/types/SplitConfig.d.ts +1 -1
  247. package/api/types/SplitOverrideConfig.d.ts +1 -1
  248. package/api/types/SplitRun.d.ts +9 -9
  249. package/api/types/SplitRunSummary.d.ts +2 -2
  250. package/api/types/SplitStepDefinition.d.ts +3 -3
  251. package/api/types/SplitStepDefinitionConfig.d.ts +1 -1
  252. package/api/types/StepRun.d.ts +28 -2
  253. package/api/types/TriggerStepDefinition.d.ts +1 -1
  254. package/api/types/WebhookResponseStepDefinition.d.ts +1 -1
  255. package/api/types/WorkflowStepDefinition.d.ts +1 -1
  256. package/api/types/index.d.ts +2 -0
  257. package/api/types/index.js +2 -0
  258. package/auth/BearerAuthProvider.d.ts +1 -1
  259. package/auth/BearerAuthProvider.js +6 -3
  260. package/package.json +2 -1
  261. package/reference.md +162 -45
  262. package/version.d.ts +1 -1
  263. package/version.js +1 -1
@@ -63,7 +63,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
63
63
  const errors = __importStar(require("../../../../errors/index"));
64
64
  const Extend = __importStar(require("../../../index"));
65
65
  class WorkflowRunsClient {
66
- constructor(options) {
66
+ constructor(options = {}) {
67
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
@@ -552,17 +552,17 @@ class WorkflowRunsClient {
552
552
  /**
553
553
  * This endpoint allows you to efficiently initiate large batches of workflow runs in a single request (up to 1,000 in a single request, but you can queue up multiple batches in rapid succession). It accepts an array of inputs, each containing a file and metadata pair. The primary use case for this endpoint is for doing large bulk runs of >1000 files at a time that can process over the course of a few hours without needing to manage rate limits that would likely occur using the primary run endpoint.
554
554
  *
555
- * Unlike the single [Run Workflow](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/create-workflow-run) endpoint which returns the details of the created workflow runs immediately, this batch endpoint returns a `batchId`.
555
+ * Unlike the single [Run Workflow](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/create-workflow-run) endpoint which returns the details of the created workflow runs immediately, this batch endpoint returns a `batchId`.
556
556
  *
557
- * Our recommended usage pattern is to integrate with [Webhooks](https://docs.extend.ai/2026-02-09/product/webhooks/configuration) for consuming results, using the `metadata` and `batchId` to match up results to the original inputs in your downstream systems. However, you can integrate in a polling mechanism by using a combination of the [List Workflow Runs](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/list-workflow-runs) endpoint to fetch all runs via a batch, and then [Get Workflow Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/get-workflow-run) to fetch the full outputs each run.
557
+ * Our recommended usage pattern is to integrate with [Webhooks](https://docs.extend.ai/2026-02-09/webhooks/configuration) for consuming results, using the `metadata` and `batchId` to match up results to the original inputs in your downstream systems. However, you can integrate in a polling mechanism by using a combination of the [List Workflow Runs](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/list-workflow-runs) endpoint to fetch all runs via a batch, and then [Get Workflow Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/get-workflow-run) to fetch the full outputs each run.
558
558
  *
559
559
  * **Priority:** All workflow runs created through this batch endpoint are automatically assigned a priority of 90.
560
560
  *
561
561
  * **Processing and Monitoring:**
562
562
  * Upon successful submission, the endpoint returns a `batchId`. The individual workflow runs are then queued for processing.
563
563
  *
564
- * - **Monitoring:** Track the progress and consume results of individual runs using [Webhooks](https://docs.extend.ai/2026-02-09/product/webhooks/configuration). Subscribe to events like `workflow_run.completed`, `workflow_run.failed`, etc. The webhook payload for these events will include the corresponding `batchId` and the `metadata` you provided for each input.
565
- * - **Fetching Results:** You can also use the [List Workflow Runs](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/list-workflow-runs) endpoint and filter using the `batchId` query param.
564
+ * - **Monitoring:** Track the progress and consume results of individual runs using [Webhooks](https://docs.extend.ai/2026-02-09/webhooks/configuration). Subscribe to events like `workflow_run.completed`, `workflow_run.failed`, etc. The webhook payload for these events will include the corresponding `batchId` and the `metadata` you provided for each input.
565
+ * - **Fetching Results:** You can also use the [List Workflow Runs](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/list-workflow-runs) endpoint and filter using the `batchId` query param.
566
566
  *
567
567
  * @param {Extend.WorkflowRunsCreateBatchRequest} request
568
568
  * @param {WorkflowRunsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface WorkflowRunsCancelRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -12,7 +12,7 @@ import type * as Extend from "../../../../index";
12
12
  */
13
13
  export interface WorkflowRunsCreateRequest {
14
14
  workflow: Extend.WorkflowReference;
15
- /** The file to be processed. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/product/general/supported-file-types). Files can be provided as a URL, an Extend file ID, or raw text. If you wish to process more at a time, consider using the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint. */
15
+ /** The file to be processed. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/general/supported-file-types). Files can be provided as a URL, an Extend file ID, or raw text. If you wish to process more at a time, consider using the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint. */
16
16
  file: Extend.WorkflowRunsCreateRequestFile;
17
17
  /** Predetermined outputs to be used for the workflow run. Generally not recommended for most use cases, however, can be useful in cases of overriding a classification in a workflow, or a subset of extraction fields when data is known. */
18
18
  outputs?: Extend.WorkflowRunsCreateRequestOutputsItem[];
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface WorkflowRunsDeleteRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -14,7 +14,7 @@ export interface WorkflowRunsListRequest {
14
14
  */
15
15
  workflowId?: string;
16
16
  /**
17
- * Filters workflow runs by the batch ID. This is useful for fetching all runs for a given batch created via the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint.
17
+ * Filters workflow runs by the batch ID. This is useful for fetching all runs for a given batch created via the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint.
18
18
  *
19
19
  * Example: `"batch_7Ws31-F5"`
20
20
  */
@@ -29,6 +29,6 @@ export interface WorkflowRunsListRequest {
29
29
  sortDir?: Extend.SortDir;
30
30
  nextPageToken?: Extend.NextPageToken;
31
31
  maxPageSize?: Extend.MaxPageSize;
32
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
32
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
33
33
  "x-extend-workspace-id"?: string;
34
34
  }
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface WorkflowRunsRetrieveRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -9,7 +9,7 @@
9
9
  * }
10
10
  */
11
11
  export interface WorkflowRunsUpdateRequest {
12
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
12
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
13
13
  "x-extend-workspace-id"?: string;
14
14
  /** An optional name that can be assigned to a specific WorkflowRun */
15
15
  name?: string;
@@ -1,5 +1,5 @@
1
1
  import type * as Extend from "../../../index";
2
2
  /**
3
- * The file to be processed. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/product/general/supported-file-types). Files can be provided as a URL, an Extend file ID, or raw text. If you wish to process more at a time, consider using the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint.
3
+ * The file to be processed. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/general/supported-file-types). Files can be provided as a URL, an Extend file ID, or raw text. If you wish to process more at a time, consider using the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint.
4
4
  */
5
5
  export type WorkflowRunsCreateRequestFile = Extend.FileFromUrl | Extend.FileFromId | Extend.FileFromText;
@@ -9,7 +9,7 @@ export declare namespace WorkflowVersionsClient {
9
9
  }
10
10
  export declare class WorkflowVersionsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<WorkflowVersionsClient.Options>;
12
- constructor(options: WorkflowVersionsClient.Options);
12
+ constructor(options?: WorkflowVersionsClient.Options);
13
13
  /**
14
14
  * List all versions of a workflow, including the draft version. Returns a paginated list of version summaries.
15
15
  *
@@ -52,7 +52,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
53
  const Extend = __importStar(require("../../../index"));
54
54
  class WorkflowVersionsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -11,7 +11,7 @@ export interface WorkflowVersionsCreateRequest {
11
11
  *
12
12
  * All configurable steps (`EXTRACT`, `CLASSIFY`, `SPLIT`, `CONDITIONAL_EXTRACT`, `RULE_VALIDATION`, `EXTERNAL_DATA_VALIDATION`) must include `config` when deploying. Unconfigured steps are rejected with a 400.
13
13
  *
14
- * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for step definitions, branching patterns, and examples.
14
+ * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows) for step definitions, branching patterns, and examples.
15
15
  */
16
16
  steps?: Extend.WorkflowStepDefinition[];
17
17
  }
@@ -9,7 +9,7 @@ export declare namespace WorkflowsClient {
9
9
  }
10
10
  export declare class WorkflowsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<WorkflowsClient.Options>;
12
- constructor(options: WorkflowsClient.Options);
12
+ constructor(options?: WorkflowsClient.Options);
13
13
  /**
14
14
  * List all workflows. Returns a paginated list of workflow summaries.
15
15
  *
@@ -52,7 +52,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
53
  const Extend = __importStar(require("../../../index"));
54
54
  class WorkflowsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -55,7 +55,7 @@ export interface WorkflowsCreateRequest {
55
55
  *
56
56
  * When omitted, the workflow is created with default steps (`TRIGGER` → `PARSE`). The default steps may change in the future.
57
57
  *
58
- * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for step definitions, branching patterns, and examples.
58
+ * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows) for step definitions, branching patterns, and examples.
59
59
  */
60
60
  steps?: Extend.WorkflowStepDefinition[];
61
61
  }
@@ -22,7 +22,7 @@ export interface WorkflowsUpdateRequest {
22
22
  /**
23
23
  * The new step definitions for the draft version. Replaces all existing draft steps.
24
24
  *
25
- * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for step definitions, branching patterns, and examples.
25
+ * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows) for step definitions, branching patterns, and examples.
26
26
  */
27
27
  steps?: Extend.WorkflowStepDefinition[];
28
28
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Standard error response format for all Extend API errors.
3
3
  *
4
- * See the [Error Codes documentation](https://docs.extend.ai/2026-02-09/developers/error-codes) for error handling recommendations.
4
+ * See the [Error Codes documentation](https://docs.extend.ai/2026-02-09/api-reference/error-handling) for error handling recommendations.
5
5
  */
6
6
  export interface ApiError {
7
7
  /** Error code for programmatic handling. */
@@ -5,6 +5,12 @@ import type * as Extend from "../index";
5
5
  export interface BlockMetadata {
6
6
  /** Information about the page this block appears on. */
7
7
  page?: Extend.BlockMetadataPage;
8
+ /** Spreadsheet sheet metadata. Present for blocks parsed from spreadsheet files, such as Excel workbooks. */
9
+ sheet?: Extend.BlockMetadataSheet;
8
10
  /** Text direction for this block's content ("ltr" for left-to-right, "rtl" for right-to-left). */
9
11
  textDirection?: Extend.BlockMetadataTextDirection;
12
+ /** Lowest per-word OCR confidence across words in this block, or `null` when word-level confidence is unavailable. */
13
+ minOcrConfidence?: number | null;
14
+ /** Average per-word OCR confidence across words in this block, or `null` when word-level confidence is unavailable. */
15
+ avgOcrConfidence?: number | null;
10
16
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Spreadsheet sheet metadata. Present for blocks parsed from spreadsheet files, such as Excel workbooks.
3
+ */
4
+ export interface BlockMetadataSheet {
5
+ /** The zero-based index of the sheet in the original workbook. */
6
+ index: number;
7
+ /** The name of the sheet in the original workbook. */
8
+ name: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,8 @@ import type * as Extend from "../index";
5
5
  export interface ChunkMetadata {
6
6
  /** The page range this chunk covers. Often will just be a partial page, in which cases `start` and `end` will be the same. */
7
7
  pageRange: Extend.ChunkMetadataPageRange;
8
+ /** Lowest per-word OCR confidence across words in this chunk, or `null` when word-level confidence is unavailable. */
9
+ minOcrConfidence?: number | null;
10
+ /** Average per-word OCR confidence across words in this chunk, or `null` when word-level confidence is unavailable. */
11
+ avgOcrConfidence?: number | null;
8
12
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A next entry for `CLASSIFY` and `SPLIT` steps. Routes based on the classification result.
3
3
  *
4
- * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for end-to-end examples.
4
+ * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows) for end-to-end examples.
5
5
  */
6
6
  export interface ClassificationNextEntry {
7
7
  /** The name of the target step. */
@@ -4,5 +4,7 @@ export interface ClassifyAdvancedOptions {
4
4
  context?: Extend.ClassifyAdvancedOptionsContext;
5
5
  /** Enable advanced multimodal processing for better handling of visual elements during classification. */
6
6
  advancedMultimodalEnabled?: boolean;
7
+ /** Enable memory for enhanced processing by learning from past successful classifications. */
8
+ memoryEnabled?: boolean;
7
9
  pageRanges?: Extend.PageRanges;
8
10
  }
@@ -1,4 +1,4 @@
1
- /** The base processor to use. For classifiers, this can be either `"classification_performance"` or `"classification_light"`. Defaults to `"classification_performance"` if not provided. See [Classification Changelog](https://docs.extend.ai/2026-02-09/changelog/classification/classification-performance) for more details. */
1
+ /** The base processor to use. For classifiers, this can be either `"classification_performance"` or `"classification_light"`. Defaults to `"classification_performance"` if not provided. See [Classification Changelog](https://docs.extend.ai/2026-02-09/model-versioning/classification/classification-performance) for more details. */
2
2
  export declare const ClassifyBaseProcessor: {
3
3
  readonly ClassificationPerformance: "classification_performance";
4
4
  readonly ClassificationLight: "classification_light";
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ClassifyBaseProcessor = void 0;
5
- /** The base processor to use. For classifiers, this can be either `"classification_performance"` or `"classification_light"`. Defaults to `"classification_performance"` if not provided. See [Classification Changelog](https://docs.extend.ai/2026-02-09/changelog/classification/classification-performance) for more details. */
5
+ /** The base processor to use. For classifiers, this can be either `"classification_performance"` or `"classification_light"`. Defaults to `"classification_performance"` if not provided. See [Classification Changelog](https://docs.extend.ai/2026-02-09/model-versioning/classification/classification-performance) for more details. */
6
6
  exports.ClassifyBaseProcessor = {
7
7
  ClassificationPerformance: "classification_performance",
8
8
  ClassificationLight: "classification_light",
@@ -1,7 +1,7 @@
1
1
  import type * as Extend from "../index";
2
2
  export interface ClassifyConfig {
3
3
  baseProcessor?: Extend.ClassifyBaseProcessor;
4
- /** The version of the `"classification_performance"` or `"classification_light"` processor to use. If not provided, the latest stable version for the selected `baseProcessor` will be used automatically. See [Classification Changelog](https://docs.extend.ai/2026-02-09/changelog/classification/classification-performance) for more details. */
4
+ /** The version of the `"classification_performance"` or `"classification_light"` processor to use. If not provided, the latest stable version for the selected `baseProcessor` will be used automatically. See [Classification Changelog](https://docs.extend.ai/2026-02-09/model-versioning/classification/classification-performance) for more details. */
5
5
  baseVersion?: string;
6
6
  classifications: Extend.Classifications;
7
7
  /** Custom rules to guide the classification process in natural language. */
@@ -5,7 +5,7 @@ import type * as Extend from "../index";
5
5
  */
6
6
  export interface ClassifyOverrideConfig {
7
7
  baseProcessor?: Extend.ClassifyBaseProcessor;
8
- /** The version of the `"classification_performance"` or `"classification_light"` processor to use. If not provided, the latest stable version for the selected `baseProcessor` will be used automatically. See [Classification Changelog](https://docs.extend.ai/2026-02-09/changelog/classification/classification-performance) for more details. */
8
+ /** The version of the `"classification_performance"` or `"classification_light"` processor to use. If not provided, the latest stable version for the selected `baseProcessor` will be used automatically. See [Classification Changelog](https://docs.extend.ai/2026-02-09/model-versioning/classification/classification-performance) for more details. */
9
9
  baseVersion?: string;
10
10
  classifications?: Extend.Classifications;
11
11
  /** Custom rules to guide the classification process in natural language. */
@@ -11,6 +11,13 @@ export interface ClassifyRun {
11
11
  * Example: `"clr_Xj8mK2pL9nR4vT7qY5wZ"`
12
12
  */
13
13
  id: string;
14
+ status: Extend.ProcessorRunStatus;
15
+ /**
16
+ * The final output, either reviewed or initial.
17
+ *
18
+ * **Availability:** Present when `status` is `"PROCESSED"`.
19
+ */
20
+ output: Extend.ClassifyOutput | null;
14
21
  /**
15
22
  * The classifier that was used for this run.
16
23
  *
@@ -23,13 +30,6 @@ export interface ClassifyRun {
23
30
  * **Availability:** Present when a classifier reference was provided. Not present when using inline `config`.
24
31
  */
25
32
  classifierVersion: Extend.ClassifierVersionSummary | null;
26
- status: Extend.ProcessorRunStatus;
27
- /**
28
- * The final output, either reviewed or initial.
29
- *
30
- * **Availability:** Present when `status` is `"PROCESSED"`.
31
- */
32
- output: Extend.ClassifyOutput | null;
33
33
  /**
34
34
  * The initial output from the classify run, before any review edits.
35
35
  *
@@ -79,8 +79,8 @@ export interface ClassifyRun {
79
79
  edited: boolean;
80
80
  /** The configuration used for this classify run. */
81
81
  config: Extend.ClassifyConfig;
82
- /** The file that was processed. */
83
- file: Extend.FileSummary;
82
+ /** The file that was processed. `null` when the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run). */
83
+ file: Extend.FileSummary | null;
84
84
  /**
85
85
  * The ID of the parse run that was used for this classify run.
86
86
  *
@@ -42,8 +42,8 @@ export interface ClassifyRunSummary {
42
42
  reviewed: boolean;
43
43
  /** Indicates whether the run results have been edited during review. */
44
44
  edited: boolean;
45
- /** The file that was processed. */
46
- file: Extend.FileSummary;
45
+ /** The file that was processed. `null` when the file could not be accessed or processed (for example a run that failed during file ingestion, or a multi-file batch run). */
46
+ file: Extend.FileSummary | null;
47
47
  /**
48
48
  * The ID of the parse run that was used for this classify run.
49
49
  *
@@ -4,7 +4,7 @@ import type * as Extend from "../index";
4
4
  *
5
5
  * The classifier reference must include a pinned `version` — `"latest"` is not supported for `CLASSIFY` steps. Use a specific semver string (e.g. `"0.1"`) or `"draft"`. This is because classification IDs used for routing are tied to a specific processor version's config.
6
6
  *
7
- * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
7
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#classify).
8
8
  */
9
9
  export interface ClassifyStepDefinition {
10
10
  name: string;
@@ -15,13 +15,13 @@ export interface ClassifyStepDefinition {
15
15
  *
16
16
  * The classifier `version` is required and must be a pinned version (semver like `"0.1"` or `"draft"`). `"latest"` is not allowed.
17
17
  *
18
- * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
18
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#classify).
19
19
  */
20
20
  config?: Extend.ClassifyStepDefinitionConfig;
21
21
  /**
22
22
  * Can only be set when `config` is present. Each entry must include a `classificationId` matching a classification `id` from the referenced classifier's configuration. Use the classification's stable `id` (e.g. `"cls_invoice"`), not the `type` string.
23
23
  *
24
- * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
24
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#classify).
25
25
  */
26
26
  next?: Extend.ClassificationNextEntry[];
27
27
  }
@@ -6,7 +6,7 @@ import type * as Extend from "../index";
6
6
  *
7
7
  * The classifier `version` is required and must be a pinned version (semver like `"0.1"` or `"draft"`). `"latest"` is not allowed.
8
8
  *
9
- * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
9
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#classify).
10
10
  */
11
11
  export interface ClassifyStepDefinitionConfig {
12
12
  classifier: Extend.ClassifierRef;
@@ -2,7 +2,7 @@ import type * as Extend from "../index";
2
2
  /**
3
3
  * Collects outputs from multiple upstream branches before continuing.
4
4
  *
5
- * See the [Collect step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#collect-step).
5
+ * See the [Collect step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#collect).
6
6
  */
7
7
  export interface CollectStepDefinition {
8
8
  name: string;
@@ -4,7 +4,7 @@ import type * as Extend from "../index";
4
4
  *
5
5
  * Each extractor reference must include an explicit `version`. Valid values are `"latest"`, `"draft"`, or a specific semver string (e.g. `"1.0"`).
6
6
  *
7
- * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-extract-step).
7
+ * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional-extract).
8
8
  */
9
9
  export interface ConditionalExtractStepDefinition {
10
10
  name: string;
@@ -6,7 +6,7 @@ export interface ConditionalExtractStepDefinitionConfig {
6
6
  /**
7
7
  * Formula-based extractor rules for this step. Each rule pairs a formula with an extractor reference. The last rule must have `formula: "TRUE"` as a default catch-all.
8
8
  *
9
- * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-extract-step).
9
+ * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional-extract).
10
10
  */
11
11
  rules: Extend.ConditionalExtractStepDefinitionConfigRulesItem[];
12
12
  }
@@ -4,7 +4,7 @@ export interface ConditionalExtractStepDefinitionConfigRulesItem {
4
4
  /**
5
5
  * The formula that determines when this extractor runs.
6
6
  *
7
- * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-extract-step) and [Formulas](https://docs.extend.ai/2026-02-09/product/workflows/formulas).
7
+ * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional-extract) and [Formulas](https://docs.extend.ai/2026-02-09/workflows/formulas).
8
8
  */
9
9
  formula: string;
10
10
  extractor: Extend.ExtractorRef;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A next entry for `CONDITIONAL` steps. Routes based on which condition branch matched.
3
3
  *
4
- * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for end-to-end examples.
4
+ * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows) for end-to-end examples.
5
5
  */
6
6
  export interface ConditionalNextEntry {
7
7
  /** The name of the target step. */
@@ -2,7 +2,7 @@ import type * as Extend from "../index";
2
2
  /**
3
3
  * Routes to different next steps based on ordered conditional branches evaluated against upstream step outputs.
4
4
  *
5
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
5
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
6
6
  */
7
7
  export interface ConditionalStepDefinition {
8
8
  name: string;
@@ -10,7 +10,7 @@ export interface ConditionalStepDefinition {
10
10
  /**
11
11
  * Each entry should include a `conditionId` matching a `config.conditions[].id` value.
12
12
  *
13
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
13
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
14
14
  */
15
15
  next?: Extend.ConditionalNextEntry[];
16
16
  }
@@ -3,7 +3,7 @@ export interface ConditionalStepDefinitionConfig {
3
3
  /**
4
4
  * Ordered conditional branches for this step. Use `IF` for the first branch, `ELSE_IF` for additional branches, and `ELSE` for the fallback branch.
5
5
  *
6
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
6
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
7
7
  */
8
8
  conditions: Extend.ConditionalStepDefinitionConfigConditionsItem[];
9
9
  }
@@ -6,19 +6,19 @@ export interface ConditionalStepDefinitionConfigConditionsItem {
6
6
  /**
7
7
  * The comparison operation for this branch.
8
8
  *
9
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
9
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
10
10
  */
11
11
  operation?: Extend.ConditionalStepDefinitionConfigConditionsItemOperation;
12
12
  /**
13
13
  * The left operand expression. This is typically a workflow variable or dynamic expression.
14
14
  *
15
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
15
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
16
16
  */
17
17
  leftOperand?: string;
18
18
  /**
19
19
  * The right operand value. This is typically a literal comparison value and is omitted for fallback branches like `ELSE`.
20
20
  *
21
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
21
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
22
22
  */
23
23
  rightOperand?: string;
24
24
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The comparison operation for this branch.
3
3
  *
4
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
4
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
5
5
  */
6
6
  export declare const ConditionalStepDefinitionConfigConditionsItemOperation: {
7
7
  readonly Equals: "EQUALS";
@@ -5,7 +5,7 @@ exports.ConditionalStepDefinitionConfigConditionsItemOperation = void 0;
5
5
  /**
6
6
  * The comparison operation for this branch.
7
7
  *
8
- * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
8
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#conditional).
9
9
  */
10
10
  exports.ConditionalStepDefinitionConfigConditionsItemOperation = {
11
11
  Equals: "EQUALS",
@@ -5,7 +5,7 @@ export interface EvaluationSetRun {
5
5
  /**
6
6
  * The unique identifier for this evaluation set run.
7
7
  *
8
- * Example: `"eval_set_run_Xj8mK2pL9nR4vT7qY5wZ"`
8
+ * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
9
9
  */
10
10
  id: string;
11
11
  /**
@@ -2,7 +2,7 @@ import type * as Extend from "../index";
2
2
  /**
3
3
  * Sends extraction data to an external HTTP endpoint for validation.
4
4
  *
5
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
5
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
6
6
  */
7
7
  export interface ExternalDataValidationStepDefinition {
8
8
  name: string;
@@ -6,13 +6,13 @@ export interface ExternalDataValidationStepDefinitionConfig {
6
6
  /**
7
7
  * HTTP request configuration for the external validation call.
8
8
  *
9
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
9
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
10
10
  */
11
11
  requestOptions: Extend.ExternalDataValidationStepDefinitionConfigRequestOptions;
12
12
  /**
13
13
  * Whether to continue or exit the workflow on validation failure. Defaults to `CONTINUE`.
14
14
  *
15
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
15
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
16
16
  */
17
17
  failureBehavior?: Extend.ExternalDataValidationStepDefinitionConfigFailureBehavior;
18
18
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Whether to continue or exit the workflow on validation failure. Defaults to `CONTINUE`.
3
3
  *
4
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
4
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
5
5
  */
6
6
  export declare const ExternalDataValidationStepDefinitionConfigFailureBehavior: {
7
7
  readonly Continue: "CONTINUE";
@@ -5,7 +5,7 @@ exports.ExternalDataValidationStepDefinitionConfigFailureBehavior = void 0;
5
5
  /**
6
6
  * Whether to continue or exit the workflow on validation failure. Defaults to `CONTINUE`.
7
7
  *
8
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
8
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
9
9
  */
10
10
  exports.ExternalDataValidationStepDefinitionConfigFailureBehavior = {
11
11
  Continue: "CONTINUE",
@@ -2,7 +2,7 @@ import type * as Extend from "../index";
2
2
  /**
3
3
  * HTTP request configuration for the external validation call.
4
4
  *
5
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
5
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
6
6
  */
7
7
  export interface ExternalDataValidationStepDefinitionConfigRequestOptions {
8
8
  /** The URL to send the validation request to. */
@@ -11,13 +11,13 @@ export interface ExternalDataValidationStepDefinitionConfigRequestOptions {
11
11
  /**
12
12
  * Optional HTTP headers to include on the external validation request.
13
13
  *
14
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
14
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
15
15
  */
16
16
  headers?: Record<string, string>;
17
17
  /**
18
18
  * Content type of the request body sent to the external endpoint.
19
19
  *
20
- * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
20
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/workflows/configuring-workflows#external-data-validation).
21
21
  */
22
22
  contentType?: Extend.ExternalDataValidationStepDefinitionConfigRequestOptionsContentType;
23
23
  }