extend-ai 1.6.0 → 1.8.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 (447) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +9 -0
  3. package/Client.js +64 -46
  4. package/api/client/requests/ParseRequest.d.ts +2 -0
  5. package/api/resources/batchProcessorRun/client/Client.d.ts +2 -1
  6. package/api/resources/batchProcessorRun/client/Client.js +10 -5
  7. package/api/resources/batchProcessorRun/client/index.d.ts +1 -1
  8. package/api/resources/batchProcessorRun/client/index.js +15 -0
  9. package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.d.ts +8 -0
  10. package/api/resources/batchProcessorRun/client/requests/index.d.ts +1 -0
  11. package/api/resources/batchProcessorRun/client/requests/index.js +2 -0
  12. package/api/resources/batchRuns/client/Client.d.ts +49 -0
  13. package/api/resources/batchRuns/client/Client.js +142 -0
  14. package/api/resources/batchRuns/client/index.d.ts +1 -0
  15. package/api/resources/batchRuns/client/index.js +2 -0
  16. package/api/resources/batchRuns/index.d.ts +1 -0
  17. package/api/resources/batchRuns/index.js +17 -0
  18. package/api/resources/classifierVersions/client/Client.d.ts +8 -4
  19. package/api/resources/classifierVersions/client/Client.js +38 -12
  20. package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +2 -0
  21. package/api/resources/classifierVersions/client/requests/ClassifierVersionsListRequest.d.ts +2 -0
  22. package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts +8 -0
  23. package/api/resources/classifierVersions/client/requests/index.d.ts +1 -0
  24. package/api/resources/classifiers/client/Client.d.ts +2 -1
  25. package/api/resources/classifiers/client/Client.js +32 -9
  26. package/api/resources/classifiers/client/requests/ClassifiersListRequest.d.ts +2 -0
  27. package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.d.ts +8 -0
  28. package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +2 -0
  29. package/api/resources/classifiers/client/requests/index.d.ts +1 -0
  30. package/api/resources/classifyRuns/client/Client.d.ts +63 -3
  31. package/api/resources/classifyRuns/client/Client.js +145 -17
  32. package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.d.ts +8 -0
  33. package/api/resources/classifyRuns/client/requests/ClassifyRunsCreateBatchRequest.d.ts +38 -0
  34. package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.d.ts +8 -0
  35. package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +8 -0
  36. package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.d.ts +8 -0
  37. package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.js +3 -0
  38. package/api/resources/classifyRuns/client/requests/index.d.ts +4 -0
  39. package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestClassifier.d.ts +11 -0
  40. package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestClassifier.js +3 -0
  41. package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItem.d.ts +6 -0
  42. package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItem.js +3 -0
  43. package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
  44. package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItemFile.js +3 -0
  45. package/api/resources/classifyRuns/types/index.d.ts +3 -0
  46. package/api/resources/classifyRuns/types/index.js +3 -0
  47. package/api/resources/editRuns/client/Client.d.ts +4 -2
  48. package/api/resources/editRuns/client/Client.js +20 -10
  49. package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.d.ts +8 -0
  50. package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.js +3 -0
  51. package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.d.ts +8 -0
  52. package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.js +3 -0
  53. package/api/resources/editRuns/client/requests/index.d.ts +2 -0
  54. package/api/resources/editSchemas/client/Client.d.ts +49 -0
  55. package/api/resources/editSchemas/client/Client.js +147 -0
  56. package/api/resources/editSchemas/client/index.d.ts +1 -0
  57. package/api/resources/editSchemas/client/index.js +17 -0
  58. package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.d.ts +20 -0
  59. package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.js +3 -0
  60. package/api/resources/editSchemas/client/requests/index.d.ts +1 -0
  61. package/api/resources/editSchemas/client/requests/index.js +2 -0
  62. package/api/resources/editSchemas/index.d.ts +2 -0
  63. package/api/resources/editSchemas/index.js +18 -0
  64. package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.d.ts +5 -0
  65. package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.js +3 -0
  66. package/api/resources/editSchemas/types/index.d.ts +1 -0
  67. package/api/resources/editSchemas/types/index.js +17 -0
  68. package/api/resources/evaluationSetItems/client/Client.d.ts +4 -2
  69. package/api/resources/evaluationSetItems/client/Client.js +48 -16
  70. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +2 -0
  71. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.d.ts +8 -0
  72. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.js +3 -0
  73. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsListRequest.d.ts +2 -0
  74. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.d.ts +8 -0
  75. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.js +3 -0
  76. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +2 -0
  77. package/api/resources/evaluationSetItems/client/requests/index.d.ts +2 -0
  78. package/api/resources/evaluationSetRuns/client/Client.d.ts +2 -1
  79. package/api/resources/evaluationSetRuns/client/Client.js +10 -5
  80. package/api/resources/evaluationSetRuns/client/index.d.ts +1 -1
  81. package/api/resources/evaluationSetRuns/client/index.js +15 -0
  82. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.d.ts +8 -0
  83. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.js +3 -0
  84. package/api/resources/evaluationSetRuns/client/requests/index.d.ts +1 -0
  85. package/api/resources/evaluationSetRuns/client/requests/index.js +2 -0
  86. package/api/resources/evaluationSets/client/Client.d.ts +2 -1
  87. package/api/resources/evaluationSets/client/Client.js +15 -7
  88. package/api/resources/evaluationSets/client/requests/EvaluationSetsListRequest.d.ts +2 -0
  89. package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.d.ts +8 -0
  90. package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.js +3 -0
  91. package/api/resources/evaluationSets/client/requests/index.d.ts +1 -0
  92. package/api/resources/extractRuns/client/Client.d.ts +63 -3
  93. package/api/resources/extractRuns/client/Client.js +145 -17
  94. package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.d.ts +8 -0
  95. package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.js +3 -0
  96. package/api/resources/extractRuns/client/requests/ExtractRunsCreateBatchRequest.d.ts +38 -0
  97. package/api/resources/extractRuns/client/requests/ExtractRunsCreateBatchRequest.js +3 -0
  98. package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.d.ts +8 -0
  99. package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.js +3 -0
  100. package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +8 -0
  101. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +8 -0
  102. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.js +3 -0
  103. package/api/resources/extractRuns/client/requests/index.d.ts +4 -0
  104. package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestExtractor.d.ts +11 -0
  105. package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestExtractor.js +3 -0
  106. package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItem.d.ts +6 -0
  107. package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItem.js +3 -0
  108. package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
  109. package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItemFile.js +3 -0
  110. package/api/resources/extractRuns/types/index.d.ts +3 -0
  111. package/api/resources/extractRuns/types/index.js +3 -0
  112. package/api/resources/extractorVersions/client/Client.d.ts +8 -4
  113. package/api/resources/extractorVersions/client/Client.js +38 -12
  114. package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +2 -0
  115. package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +2 -0
  116. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +8 -0
  117. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.js +3 -0
  118. package/api/resources/extractorVersions/client/requests/index.d.ts +1 -0
  119. package/api/resources/extractors/client/Client.d.ts +2 -1
  120. package/api/resources/extractors/client/Client.js +32 -9
  121. package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +2 -0
  122. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +8 -0
  123. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.js +3 -0
  124. package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +2 -0
  125. package/api/resources/extractors/client/requests/index.d.ts +1 -0
  126. package/api/resources/files/client/Client.d.ts +2 -1
  127. package/api/resources/files/client/Client.js +21 -10
  128. package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +8 -0
  129. package/api/resources/files/client/requests/FilesDeleteRequest.js +3 -0
  130. package/api/resources/files/client/requests/FilesListRequest.d.ts +2 -0
  131. package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +2 -0
  132. package/api/resources/files/client/requests/FilesUploadRequest.d.ts +2 -0
  133. package/api/resources/files/client/requests/index.d.ts +1 -0
  134. package/api/resources/index.d.ts +10 -0
  135. package/api/resources/index.js +11 -1
  136. package/api/resources/parseRuns/client/Client.d.ts +2 -1
  137. package/api/resources/parseRuns/client/Client.js +15 -7
  138. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +8 -0
  139. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.js +3 -0
  140. package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +2 -0
  141. package/api/resources/parseRuns/client/requests/index.d.ts +1 -0
  142. package/api/resources/processor/client/Client.js +22 -4
  143. package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +2 -0
  144. package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +2 -0
  145. package/api/resources/processorRun/client/Client.d.ts +6 -3
  146. package/api/resources/processorRun/client/Client.js +35 -17
  147. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +8 -0
  148. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.js +3 -0
  149. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +8 -0
  150. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.js +3 -0
  151. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +8 -0
  152. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.js +3 -0
  153. package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +2 -0
  154. package/api/resources/processorRun/client/requests/index.d.ts +3 -0
  155. package/api/resources/processorVersion/client/Client.d.ts +4 -2
  156. package/api/resources/processorVersion/client/Client.js +37 -12
  157. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +2 -0
  158. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +8 -0
  159. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.js +3 -0
  160. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +8 -0
  161. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.js +3 -0
  162. package/api/resources/processorVersion/client/requests/index.d.ts +2 -0
  163. package/api/resources/splitRuns/client/Client.d.ts +64 -3
  164. package/api/resources/splitRuns/client/Client.js +146 -17
  165. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +8 -0
  166. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.js +3 -0
  167. package/api/resources/splitRuns/client/requests/SplitRunsCreateBatchRequest.d.ts +38 -0
  168. package/api/resources/splitRuns/client/requests/SplitRunsCreateBatchRequest.js +3 -0
  169. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +8 -0
  170. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.js +3 -0
  171. package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +8 -0
  172. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +8 -0
  173. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.js +3 -0
  174. package/api/resources/splitRuns/client/requests/index.d.ts +4 -0
  175. package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItem.d.ts +6 -0
  176. package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItem.js +3 -0
  177. package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
  178. package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItemFile.js +3 -0
  179. package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestSplitter.d.ts +11 -0
  180. package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestSplitter.js +3 -0
  181. package/api/resources/splitRuns/types/index.d.ts +3 -0
  182. package/api/resources/splitRuns/types/index.js +3 -0
  183. package/api/resources/splitterVersions/client/Client.d.ts +8 -4
  184. package/api/resources/splitterVersions/client/Client.js +38 -12
  185. package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +2 -0
  186. package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +2 -0
  187. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +8 -0
  188. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.js +3 -0
  189. package/api/resources/splitterVersions/client/requests/index.d.ts +1 -0
  190. package/api/resources/splitters/client/Client.d.ts +2 -1
  191. package/api/resources/splitters/client/Client.js +32 -9
  192. package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +2 -0
  193. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +8 -0
  194. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.js +3 -0
  195. package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +2 -0
  196. package/api/resources/splitters/client/requests/index.d.ts +1 -0
  197. package/api/resources/webhookEndpoints/client/Client.d.ts +4 -2
  198. package/api/resources/webhookEndpoints/client/Client.js +42 -14
  199. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +8 -0
  200. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.js +3 -0
  201. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +2 -0
  202. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +8 -0
  203. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.js +3 -0
  204. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +2 -0
  205. package/api/resources/webhookEndpoints/client/requests/index.d.ts +2 -0
  206. package/api/resources/webhookSubscriptions/client/Client.d.ts +4 -2
  207. package/api/resources/webhookSubscriptions/client/Client.js +42 -14
  208. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +8 -0
  209. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.js +3 -0
  210. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +2 -0
  211. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +8 -0
  212. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.js +3 -0
  213. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +2 -0
  214. package/api/resources/webhookSubscriptions/client/requests/index.d.ts +2 -0
  215. package/api/resources/workflowRuns/client/Client.d.ts +6 -3
  216. package/api/resources/workflowRuns/client/Client.js +52 -19
  217. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +8 -0
  218. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.js +3 -0
  219. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +8 -0
  220. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.js +3 -0
  221. package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -0
  222. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +8 -0
  223. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.js +3 -0
  224. package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +2 -0
  225. package/api/resources/workflowRuns/client/requests/index.d.ts +3 -0
  226. package/api/resources/workflowVersions/client/Client.d.ts +85 -0
  227. package/api/resources/workflowVersions/client/Client.js +287 -0
  228. package/api/resources/workflowVersions/client/index.d.ts +1 -0
  229. package/api/resources/workflowVersions/client/index.js +17 -0
  230. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +17 -0
  231. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.js +3 -0
  232. package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.d.ts +12 -0
  233. package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.js +3 -0
  234. package/api/resources/workflowVersions/client/requests/index.d.ts +2 -0
  235. package/api/resources/workflowVersions/client/requests/index.js +2 -0
  236. package/api/resources/workflowVersions/index.d.ts +2 -0
  237. package/api/resources/workflowVersions/index.js +18 -0
  238. package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.d.ts +6 -0
  239. package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.js +3 -0
  240. package/api/resources/workflowVersions/types/index.d.ts +1 -0
  241. package/api/resources/workflowVersions/types/index.js +17 -0
  242. package/api/resources/workflows/client/Client.d.ts +124 -2
  243. package/api/resources/workflows/client/Client.js +281 -2
  244. package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +52 -1
  245. package/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts +13 -0
  246. package/api/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
  247. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +28 -0
  248. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.js +3 -0
  249. package/api/resources/workflows/client/requests/index.d.ts +2 -0
  250. package/api/resources/workflows/index.d.ts +1 -0
  251. package/api/resources/workflows/index.js +1 -0
  252. package/api/resources/workflows/types/WorkflowsListResponse.d.ts +6 -0
  253. package/api/resources/workflows/types/WorkflowsListResponse.js +3 -0
  254. package/api/resources/workflows/types/index.d.ts +1 -0
  255. package/api/resources/workflows/types/index.js +17 -0
  256. package/api/types/BarcodeDetails.d.ts +13 -0
  257. package/api/types/BarcodeDetails.js +3 -0
  258. package/api/types/BatchProcessorRunCompletedWebhookEvent.d.ts +6 -0
  259. package/api/types/BatchProcessorRunCompletedWebhookEvent.js +3 -0
  260. package/api/types/BatchProcessorRunFailedWebhookEvent.d.ts +6 -0
  261. package/api/types/BatchProcessorRunFailedWebhookEvent.js +3 -0
  262. package/api/types/BatchRun.d.ts +9 -16
  263. package/api/types/BatchRunStatus.d.ts +7 -5
  264. package/api/types/BatchRunStatus.js +7 -5
  265. package/api/types/Block.d.ts +7 -1
  266. package/api/types/BlockDetails.d.ts +1 -1
  267. package/api/types/BlockMetadata.d.ts +2 -0
  268. package/api/types/BlockMetadataTextDirection.d.ts +6 -0
  269. package/api/types/BlockMetadataTextDirection.js +9 -0
  270. package/api/types/BlockType.d.ts +13 -1
  271. package/api/types/BlockType.js +13 -1
  272. package/api/types/ClassificationNextEntry.d.ts +11 -0
  273. package/api/types/ClassificationNextEntry.js +3 -0
  274. package/api/types/ClassifierRef.d.ts +9 -0
  275. package/api/types/ClassifierRef.js +3 -0
  276. package/api/types/ClassifyStepDefinition.d.ts +27 -0
  277. package/api/types/ClassifyStepDefinition.js +3 -0
  278. package/api/types/ClassifyStepDefinitionConfig.d.ts +13 -0
  279. package/api/types/ClassifyStepDefinitionConfig.js +3 -0
  280. package/api/types/CollectStepDefinition.d.ts +10 -0
  281. package/api/types/CollectStepDefinition.js +3 -0
  282. package/api/types/ConditionalExtractStepDefinition.d.ts +15 -0
  283. package/api/types/ConditionalExtractStepDefinition.js +3 -0
  284. package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +12 -0
  285. package/api/types/ConditionalExtractStepDefinitionConfig.js +3 -0
  286. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +11 -0
  287. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.js +3 -0
  288. package/api/types/ConditionalNextEntry.d.ts +11 -0
  289. package/api/types/ConditionalNextEntry.js +3 -0
  290. package/api/types/ConditionalStepDefinition.d.ts +16 -0
  291. package/api/types/ConditionalStepDefinition.js +3 -0
  292. package/api/types/ConditionalStepDefinitionConfig.d.ts +9 -0
  293. package/api/types/ConditionalStepDefinitionConfig.js +3 -0
  294. package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +24 -0
  295. package/api/types/ConditionalStepDefinitionConfigConditionsItem.js +3 -0
  296. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +14 -0
  297. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +17 -0
  298. package/api/types/ConditionalStepDefinitionConfigConditionsItemType.d.ts +6 -0
  299. package/api/types/ConditionalStepDefinitionConfigConditionsItemType.js +9 -0
  300. package/api/types/EditConditionalClause.d.ts +22 -0
  301. package/api/types/EditConditionalClause.js +3 -0
  302. package/api/types/EditConditionalObjectProperty.d.ts +16 -0
  303. package/api/types/EditConditionalObjectProperty.js +3 -0
  304. package/api/types/EditConditionalProperty.d.ts +51 -0
  305. package/api/types/EditConditionalProperty.js +3 -0
  306. package/api/types/EditConfig.d.ts +2 -0
  307. package/api/types/EditDependentRequired.d.ts +4 -0
  308. package/api/types/EditDependentRequired.js +3 -0
  309. package/api/types/EditJson.d.ts +2 -0
  310. package/api/types/EditJsonExtendEditImage.d.ts +7 -0
  311. package/api/types/EditJsonExtendEditImage.js +3 -0
  312. package/api/types/EditRootJson.d.ts +14 -0
  313. package/api/types/EditSchemaGenerationConfig.d.ts +15 -0
  314. package/api/types/EditSchemaGenerationConfig.js +3 -0
  315. package/api/types/EditSchemaGenerationConfigAdvancedOptions.d.ts +11 -0
  316. package/api/types/EditSchemaGenerationConfigAdvancedOptions.js +3 -0
  317. package/api/types/EditSchemaGenerationMappingMatch.d.ts +9 -0
  318. package/api/types/EditSchemaGenerationMappingMatch.js +3 -0
  319. package/api/types/EditSchemaGenerationMappingResult.d.ts +12 -0
  320. package/api/types/EditSchemaGenerationMappingResult.js +3 -0
  321. package/api/types/EditSchemaGenerationResponse.d.ts +12 -0
  322. package/api/types/EditSchemaGenerationResponse.js +3 -0
  323. package/api/types/ExternalDataValidationStepDefinition.d.ts +13 -0
  324. package/api/types/ExternalDataValidationStepDefinition.js +3 -0
  325. package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +18 -0
  326. package/api/types/ExternalDataValidationStepDefinitionConfig.js +3 -0
  327. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +10 -0
  328. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +13 -0
  329. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +23 -0
  330. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.js +3 -0
  331. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +10 -0
  332. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +13 -0
  333. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.d.ts +6 -0
  334. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.js +9 -0
  335. package/api/types/ExtractStepDefinition.d.ts +15 -0
  336. package/api/types/ExtractStepDefinition.js +3 -0
  337. package/api/types/ExtractStepDefinitionConfig.d.ts +7 -0
  338. package/api/types/ExtractStepDefinitionConfig.js +3 -0
  339. package/api/types/ExtractorRef.d.ts +9 -0
  340. package/api/types/ExtractorRef.js +3 -0
  341. package/api/types/FileConversionStepDefinition.d.ts +11 -0
  342. package/api/types/FileConversionStepDefinition.js +3 -0
  343. package/api/types/FileConversionStepDefinitionConfig.d.ts +9 -0
  344. package/api/types/FileConversionStepDefinitionConfig.js +3 -0
  345. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +10 -0
  346. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +13 -0
  347. package/api/types/FormulaDetails.d.ts +9 -0
  348. package/api/types/FormulaDetails.js +3 -0
  349. package/api/types/HumanReviewStepDefinition.d.ts +10 -0
  350. package/api/types/HumanReviewStepDefinition.js +3 -0
  351. package/api/types/KeyValueDetails.d.ts +7 -0
  352. package/api/types/KeyValueDetails.js +3 -0
  353. package/api/types/LegacyListProcessorsResponse.d.ts +1 -1
  354. package/api/types/MergeExtractStepDefinition.d.ts +11 -0
  355. package/api/types/MergeExtractStepDefinition.js +3 -0
  356. package/api/types/MergeExtractStepDefinitionConfig.d.ts +9 -0
  357. package/api/types/MergeExtractStepDefinitionConfig.js +3 -0
  358. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +12 -0
  359. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +15 -0
  360. package/api/types/ParseConfigAdvancedOptions.d.ts +25 -0
  361. package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.d.ts +11 -0
  362. package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.js +14 -0
  363. package/api/types/ParseConfigAdvancedOptionsFormattingDetectionItem.d.ts +8 -0
  364. package/api/types/ParseConfigAdvancedOptionsFormattingDetectionItem.js +3 -0
  365. package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.d.ts +13 -0
  366. package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.js +16 -0
  367. package/api/types/ParseConfigBlockOptions.d.ts +6 -0
  368. package/api/types/ParseConfigBlockOptionsBarcodes.d.ts +9 -0
  369. package/api/types/ParseConfigBlockOptionsBarcodes.js +3 -0
  370. package/api/types/ParseConfigBlockOptionsFigures.d.ts +2 -0
  371. package/api/types/ParseConfigBlockOptionsFormulas.d.ts +7 -0
  372. package/api/types/ParseConfigBlockOptionsFormulas.js +3 -0
  373. package/api/types/ParseConfigBlockOptionsKeyValue.d.ts +7 -0
  374. package/api/types/ParseConfigBlockOptionsKeyValue.js +3 -0
  375. package/api/types/ParseStepDefinition.d.ts +11 -0
  376. package/api/types/ParseStepDefinition.js +3 -0
  377. package/api/types/ParseStepDefinitionConfig.d.ts +4 -0
  378. package/api/types/ParseStepDefinitionConfig.js +3 -0
  379. package/api/types/ProcessorRunStatus.d.ts +2 -0
  380. package/api/types/ProcessorRunStatus.js +2 -0
  381. package/api/types/RuleValidationNextEntry.d.ts +12 -0
  382. package/api/types/RuleValidationNextEntry.js +3 -0
  383. package/api/types/RuleValidationNextEntryResult.d.ts +6 -0
  384. package/api/types/RuleValidationNextEntryResult.js +9 -0
  385. package/api/types/RuleValidationStepDefinition.d.ts +17 -0
  386. package/api/types/RuleValidationStepDefinition.js +3 -0
  387. package/api/types/RuleValidationStepDefinitionConfig.d.ts +12 -0
  388. package/api/types/RuleValidationStepDefinitionConfig.js +3 -0
  389. package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +10 -0
  390. package/api/types/RuleValidationStepDefinitionConfigRulesItem.js +3 -0
  391. package/api/types/SimpleNextEntry.d.ts +7 -0
  392. package/api/types/SimpleNextEntry.js +3 -0
  393. package/api/types/SplitStepDefinition.d.ts +27 -0
  394. package/api/types/SplitStepDefinition.js +3 -0
  395. package/api/types/SplitStepDefinitionConfig.d.ts +13 -0
  396. package/api/types/SplitStepDefinitionConfig.js +3 -0
  397. package/api/types/SplitterRef.d.ts +9 -0
  398. package/api/types/SplitterRef.js +3 -0
  399. package/api/types/TriggerStepDefinition.d.ts +12 -0
  400. package/api/types/TriggerStepDefinition.js +3 -0
  401. package/api/types/WebhookEndpointEventType.d.ts +2 -0
  402. package/api/types/WebhookEndpointEventType.js +2 -0
  403. package/api/types/WebhookEvent.d.ts +7 -1
  404. package/api/types/WebhookResponseStepDefinition.d.ts +8 -0
  405. package/api/types/WebhookResponseStepDefinition.js +3 -0
  406. package/api/types/WebhookSubscriptionEventType.d.ts +5 -3
  407. package/api/types/WebhookSubscriptionEventType.js +5 -3
  408. package/api/types/Workflow.d.ts +10 -11
  409. package/api/types/WorkflowStepBase.d.ts +2 -0
  410. package/api/types/WorkflowStepDefinition.d.ts +51 -0
  411. package/api/types/WorkflowStepDefinition.js +3 -0
  412. package/api/types/WorkflowSummary.d.ts +9 -11
  413. package/api/types/WorkflowVersion.d.ts +11 -16
  414. package/api/types/WorkflowVersionSummary.d.ts +9 -16
  415. package/api/types/index.d.ts +66 -8
  416. package/api/types/index.js +66 -8
  417. package/package.json +1 -1
  418. package/reference.md +1303 -112
  419. package/version.d.ts +1 -1
  420. package/version.js +1 -1
  421. package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.js +1 -1
  422. package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.test.js +2 -2
  423. package/wrapper/resources/editRuns/EditRunsWrapper.js +1 -1
  424. package/wrapper/resources/editRuns/EditRunsWrapper.test.js +2 -2
  425. package/wrapper/resources/extractRuns/ExtractRunsWrapper.js +1 -1
  426. package/wrapper/resources/extractRuns/ExtractRunsWrapper.test.js +2 -2
  427. package/wrapper/resources/splitRuns/SplitRunsWrapper.js +1 -1
  428. package/wrapper/resources/splitRuns/SplitRunsWrapper.test.js +2 -2
  429. package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.js +1 -1
  430. package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.test.js +5 -2
  431. package/wrapper/webhooks/Webhooks.test.js +3 -0
  432. package/api/types/BatchProcessorRun.d.ts +0 -66
  433. package/api/types/BatchProcessorRunMetrics.d.ts +0 -6
  434. package/api/types/BatchProcessorRunOptions.d.ts +0 -9
  435. package/api/types/BatchProcessorRunSource.d.ts +0 -12
  436. package/api/types/BatchProcessorRunSource.js +0 -15
  437. package/api/types/BatchProcessorRunStatus.d.ts +0 -14
  438. package/api/types/BatchProcessorRunStatus.js +0 -17
  439. package/api/types/BatchRunEntity.d.ts +0 -18
  440. package/api/types/BatchRunEntityVersion.d.ts +0 -18
  441. package/api/types/BatchRunMetrics.d.ts +0 -6
  442. /package/api/{types/BatchProcessorRun.js → resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.js} +0 -0
  443. /package/api/{types/BatchProcessorRunMetrics.js → resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.js} +0 -0
  444. /package/api/{types/BatchProcessorRunOptions.js → resources/classifiers/client/requests/ClassifiersRetrieveRequest.js} +0 -0
  445. /package/api/{types/BatchRunEntity.js → resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.js} +0 -0
  446. /package/api/{types/BatchRunEntityVersion.js → resources/classifyRuns/client/requests/ClassifyRunsCreateBatchRequest.js} +0 -0
  447. /package/api/{types/BatchRunMetrics.js → resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.js} +0 -0
package/BaseClient.js CHANGED
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "extend-ai",
47
- "X-Fern-SDK-Version": "1.6.0",
48
- "User-Agent": "extend-ai/1.6.0",
47
+ "X-Fern-SDK-Version": "1.8.0",
48
+ "User-Agent": "extend-ai/1.8.0",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "x-extend-api-version": (_a = options === null || options === void 0 ? void 0 : options.extendApiVersion) !== null && _a !== void 0 ? _a : "2026-02-09",
package/Client.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import * as Extend from "./api/index";
2
2
  import { BatchProcessorRunClient } from "./api/resources/batchProcessorRun/client/Client";
3
+ import { BatchRunsClient } from "./api/resources/batchRuns/client/Client";
3
4
  import { ClassifiersClient } from "./api/resources/classifiers/client/Client";
4
5
  import { ClassifierVersionsClient } from "./api/resources/classifierVersions/client/Client";
5
6
  import { ClassifyRunsClient } from "./api/resources/classifyRuns/client/Client";
6
7
  import { EditRunsClient } from "./api/resources/editRuns/client/Client";
8
+ import { EditSchemasClient } from "./api/resources/editSchemas/client/Client";
7
9
  import { EvaluationSetItemsClient } from "./api/resources/evaluationSetItems/client/Client";
8
10
  import { EvaluationSetRunsClient } from "./api/resources/evaluationSetRuns/client/Client";
9
11
  import { EvaluationSetsClient } from "./api/resources/evaluationSets/client/Client";
@@ -22,6 +24,7 @@ import { WebhookEndpointsClient } from "./api/resources/webhookEndpoints/client/
22
24
  import { WebhookSubscriptionsClient } from "./api/resources/webhookSubscriptions/client/Client";
23
25
  import { WorkflowRunsClient } from "./api/resources/workflowRuns/client/Client";
24
26
  import { WorkflowsClient } from "./api/resources/workflows/client/Client";
27
+ import { WorkflowVersionsClient } from "./api/resources/workflowVersions/client/Client";
25
28
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
26
29
  import { type NormalizedClientOptionsWithAuth } from "./BaseClient";
27
30
  import * as core from "./core";
@@ -35,6 +38,7 @@ export declare class ExtendClient {
35
38
  protected _files: FilesClient | undefined;
36
39
  protected _parseRuns: ParseRunsClient | undefined;
37
40
  protected _editRuns: EditRunsClient | undefined;
41
+ protected _editSchemas: EditSchemasClient | undefined;
38
42
  protected _extractRuns: ExtractRunsClient | undefined;
39
43
  protected _extractors: ExtractorsClient | undefined;
40
44
  protected _extractorVersions: ExtractorVersionsClient | undefined;
@@ -45,11 +49,13 @@ export declare class ExtendClient {
45
49
  protected _splitters: SplittersClient | undefined;
46
50
  protected _splitterVersions: SplitterVersionsClient | undefined;
47
51
  protected _workflows: WorkflowsClient | undefined;
52
+ protected _workflowVersions: WorkflowVersionsClient | undefined;
48
53
  protected _workflowRuns: WorkflowRunsClient | undefined;
49
54
  protected _processorRun: ProcessorRunClient | undefined;
50
55
  protected _processor: ProcessorClient | undefined;
51
56
  protected _processorVersion: ProcessorVersionClient | undefined;
52
57
  protected _batchProcessorRun: BatchProcessorRunClient | undefined;
58
+ protected _batchRuns: BatchRunsClient | undefined;
53
59
  protected _evaluationSets: EvaluationSetsClient | undefined;
54
60
  protected _evaluationSetItems: EvaluationSetItemsClient | undefined;
55
61
  protected _evaluationSetRuns: EvaluationSetRunsClient | undefined;
@@ -59,6 +65,7 @@ export declare class ExtendClient {
59
65
  get files(): FilesClient;
60
66
  get parseRuns(): ParseRunsClient;
61
67
  get editRuns(): EditRunsClient;
68
+ get editSchemas(): EditSchemasClient;
62
69
  get extractRuns(): ExtractRunsClient;
63
70
  get extractors(): ExtractorsClient;
64
71
  get extractorVersions(): ExtractorVersionsClient;
@@ -69,11 +76,13 @@ export declare class ExtendClient {
69
76
  get splitters(): SplittersClient;
70
77
  get splitterVersions(): SplitterVersionsClient;
71
78
  get workflows(): WorkflowsClient;
79
+ get workflowVersions(): WorkflowVersionsClient;
72
80
  get workflowRuns(): WorkflowRunsClient;
73
81
  get processorRun(): ProcessorRunClient;
74
82
  get processor(): ProcessorClient;
75
83
  get processorVersion(): ProcessorVersionClient;
76
84
  get batchProcessorRun(): BatchProcessorRunClient;
85
+ get batchRuns(): BatchRunsClient;
77
86
  get evaluationSets(): EvaluationSetsClient;
78
87
  get evaluationSetItems(): EvaluationSetItemsClient;
79
88
  get evaluationSetRuns(): EvaluationSetRunsClient;
package/Client.js CHANGED
@@ -57,28 +57,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
57
57
  exports.ExtendClient = void 0;
58
58
  const Extend = __importStar(require("./api/index"));
59
59
  const Client_1 = require("./api/resources/batchProcessorRun/client/Client");
60
- const Client_2 = require("./api/resources/classifiers/client/Client");
61
- const Client_3 = require("./api/resources/classifierVersions/client/Client");
62
- const Client_4 = require("./api/resources/classifyRuns/client/Client");
63
- const Client_5 = require("./api/resources/editRuns/client/Client");
64
- const Client_6 = require("./api/resources/evaluationSetItems/client/Client");
65
- const Client_7 = require("./api/resources/evaluationSetRuns/client/Client");
66
- const Client_8 = require("./api/resources/evaluationSets/client/Client");
67
- const Client_9 = require("./api/resources/extractors/client/Client");
68
- const Client_10 = require("./api/resources/extractorVersions/client/Client");
69
- const Client_11 = require("./api/resources/extractRuns/client/Client");
70
- const Client_12 = require("./api/resources/files/client/Client");
71
- const Client_13 = require("./api/resources/parseRuns/client/Client");
72
- const Client_14 = require("./api/resources/processor/client/Client");
73
- const Client_15 = require("./api/resources/processorRun/client/Client");
74
- const Client_16 = require("./api/resources/processorVersion/client/Client");
75
- const Client_17 = require("./api/resources/splitRuns/client/Client");
76
- const Client_18 = require("./api/resources/splitters/client/Client");
77
- const Client_19 = require("./api/resources/splitterVersions/client/Client");
78
- const Client_20 = require("./api/resources/webhookEndpoints/client/Client");
79
- const Client_21 = require("./api/resources/webhookSubscriptions/client/Client");
80
- const Client_22 = require("./api/resources/workflowRuns/client/Client");
81
- const Client_23 = require("./api/resources/workflows/client/Client");
60
+ const Client_2 = require("./api/resources/batchRuns/client/Client");
61
+ const Client_3 = require("./api/resources/classifiers/client/Client");
62
+ const Client_4 = require("./api/resources/classifierVersions/client/Client");
63
+ const Client_5 = require("./api/resources/classifyRuns/client/Client");
64
+ const Client_6 = require("./api/resources/editRuns/client/Client");
65
+ const Client_7 = require("./api/resources/editSchemas/client/Client");
66
+ const Client_8 = require("./api/resources/evaluationSetItems/client/Client");
67
+ const Client_9 = require("./api/resources/evaluationSetRuns/client/Client");
68
+ const Client_10 = require("./api/resources/evaluationSets/client/Client");
69
+ const Client_11 = require("./api/resources/extractors/client/Client");
70
+ const Client_12 = require("./api/resources/extractorVersions/client/Client");
71
+ const Client_13 = require("./api/resources/extractRuns/client/Client");
72
+ const Client_14 = require("./api/resources/files/client/Client");
73
+ const Client_15 = require("./api/resources/parseRuns/client/Client");
74
+ const Client_16 = require("./api/resources/processor/client/Client");
75
+ const Client_17 = require("./api/resources/processorRun/client/Client");
76
+ const Client_18 = require("./api/resources/processorVersion/client/Client");
77
+ const Client_19 = require("./api/resources/splitRuns/client/Client");
78
+ const Client_20 = require("./api/resources/splitters/client/Client");
79
+ const Client_21 = require("./api/resources/splitterVersions/client/Client");
80
+ const Client_22 = require("./api/resources/webhookEndpoints/client/Client");
81
+ const Client_23 = require("./api/resources/webhookSubscriptions/client/Client");
82
+ const Client_24 = require("./api/resources/workflowRuns/client/Client");
83
+ const Client_25 = require("./api/resources/workflows/client/Client");
84
+ const Client_26 = require("./api/resources/workflowVersions/client/Client");
82
85
  const BaseClient_1 = require("./BaseClient");
83
86
  const core = __importStar(require("./core"));
84
87
  const headers_1 = require("./core/headers");
@@ -91,95 +94,107 @@ class ExtendClient {
91
94
  }
92
95
  get files() {
93
96
  var _a;
94
- return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_12.FilesClient(this._options)));
97
+ return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_14.FilesClient(this._options)));
95
98
  }
96
99
  get parseRuns() {
97
100
  var _a;
98
- return ((_a = this._parseRuns) !== null && _a !== void 0 ? _a : (this._parseRuns = new Client_13.ParseRunsClient(this._options)));
101
+ return ((_a = this._parseRuns) !== null && _a !== void 0 ? _a : (this._parseRuns = new Client_15.ParseRunsClient(this._options)));
99
102
  }
100
103
  get editRuns() {
101
104
  var _a;
102
- return ((_a = this._editRuns) !== null && _a !== void 0 ? _a : (this._editRuns = new Client_5.EditRunsClient(this._options)));
105
+ return ((_a = this._editRuns) !== null && _a !== void 0 ? _a : (this._editRuns = new Client_6.EditRunsClient(this._options)));
106
+ }
107
+ get editSchemas() {
108
+ var _a;
109
+ return ((_a = this._editSchemas) !== null && _a !== void 0 ? _a : (this._editSchemas = new Client_7.EditSchemasClient(this._options)));
103
110
  }
104
111
  get extractRuns() {
105
112
  var _a;
106
- return ((_a = this._extractRuns) !== null && _a !== void 0 ? _a : (this._extractRuns = new Client_11.ExtractRunsClient(this._options)));
113
+ return ((_a = this._extractRuns) !== null && _a !== void 0 ? _a : (this._extractRuns = new Client_13.ExtractRunsClient(this._options)));
107
114
  }
108
115
  get extractors() {
109
116
  var _a;
110
- return ((_a = this._extractors) !== null && _a !== void 0 ? _a : (this._extractors = new Client_9.ExtractorsClient(this._options)));
117
+ return ((_a = this._extractors) !== null && _a !== void 0 ? _a : (this._extractors = new Client_11.ExtractorsClient(this._options)));
111
118
  }
112
119
  get extractorVersions() {
113
120
  var _a;
114
- return ((_a = this._extractorVersions) !== null && _a !== void 0 ? _a : (this._extractorVersions = new Client_10.ExtractorVersionsClient(this._options)));
121
+ return ((_a = this._extractorVersions) !== null && _a !== void 0 ? _a : (this._extractorVersions = new Client_12.ExtractorVersionsClient(this._options)));
115
122
  }
116
123
  get classifyRuns() {
117
124
  var _a;
118
- return ((_a = this._classifyRuns) !== null && _a !== void 0 ? _a : (this._classifyRuns = new Client_4.ClassifyRunsClient(this._options)));
125
+ return ((_a = this._classifyRuns) !== null && _a !== void 0 ? _a : (this._classifyRuns = new Client_5.ClassifyRunsClient(this._options)));
119
126
  }
120
127
  get classifiers() {
121
128
  var _a;
122
- return ((_a = this._classifiers) !== null && _a !== void 0 ? _a : (this._classifiers = new Client_2.ClassifiersClient(this._options)));
129
+ return ((_a = this._classifiers) !== null && _a !== void 0 ? _a : (this._classifiers = new Client_3.ClassifiersClient(this._options)));
123
130
  }
124
131
  get classifierVersions() {
125
132
  var _a;
126
- return ((_a = this._classifierVersions) !== null && _a !== void 0 ? _a : (this._classifierVersions = new Client_3.ClassifierVersionsClient(this._options)));
133
+ return ((_a = this._classifierVersions) !== null && _a !== void 0 ? _a : (this._classifierVersions = new Client_4.ClassifierVersionsClient(this._options)));
127
134
  }
128
135
  get splitRuns() {
129
136
  var _a;
130
- return ((_a = this._splitRuns) !== null && _a !== void 0 ? _a : (this._splitRuns = new Client_17.SplitRunsClient(this._options)));
137
+ return ((_a = this._splitRuns) !== null && _a !== void 0 ? _a : (this._splitRuns = new Client_19.SplitRunsClient(this._options)));
131
138
  }
132
139
  get splitters() {
133
140
  var _a;
134
- return ((_a = this._splitters) !== null && _a !== void 0 ? _a : (this._splitters = new Client_18.SplittersClient(this._options)));
141
+ return ((_a = this._splitters) !== null && _a !== void 0 ? _a : (this._splitters = new Client_20.SplittersClient(this._options)));
135
142
  }
136
143
  get splitterVersions() {
137
144
  var _a;
138
- return ((_a = this._splitterVersions) !== null && _a !== void 0 ? _a : (this._splitterVersions = new Client_19.SplitterVersionsClient(this._options)));
145
+ return ((_a = this._splitterVersions) !== null && _a !== void 0 ? _a : (this._splitterVersions = new Client_21.SplitterVersionsClient(this._options)));
139
146
  }
140
147
  get workflows() {
141
148
  var _a;
142
- return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_23.WorkflowsClient(this._options)));
149
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_25.WorkflowsClient(this._options)));
150
+ }
151
+ get workflowVersions() {
152
+ var _a;
153
+ return ((_a = this._workflowVersions) !== null && _a !== void 0 ? _a : (this._workflowVersions = new Client_26.WorkflowVersionsClient(this._options)));
143
154
  }
144
155
  get workflowRuns() {
145
156
  var _a;
146
- return ((_a = this._workflowRuns) !== null && _a !== void 0 ? _a : (this._workflowRuns = new Client_22.WorkflowRunsClient(this._options)));
157
+ return ((_a = this._workflowRuns) !== null && _a !== void 0 ? _a : (this._workflowRuns = new Client_24.WorkflowRunsClient(this._options)));
147
158
  }
148
159
  get processorRun() {
149
160
  var _a;
150
- return ((_a = this._processorRun) !== null && _a !== void 0 ? _a : (this._processorRun = new Client_15.ProcessorRunClient(this._options)));
161
+ return ((_a = this._processorRun) !== null && _a !== void 0 ? _a : (this._processorRun = new Client_17.ProcessorRunClient(this._options)));
151
162
  }
152
163
  get processor() {
153
164
  var _a;
154
- return ((_a = this._processor) !== null && _a !== void 0 ? _a : (this._processor = new Client_14.ProcessorClient(this._options)));
165
+ return ((_a = this._processor) !== null && _a !== void 0 ? _a : (this._processor = new Client_16.ProcessorClient(this._options)));
155
166
  }
156
167
  get processorVersion() {
157
168
  var _a;
158
- return ((_a = this._processorVersion) !== null && _a !== void 0 ? _a : (this._processorVersion = new Client_16.ProcessorVersionClient(this._options)));
169
+ return ((_a = this._processorVersion) !== null && _a !== void 0 ? _a : (this._processorVersion = new Client_18.ProcessorVersionClient(this._options)));
159
170
  }
160
171
  get batchProcessorRun() {
161
172
  var _a;
162
173
  return ((_a = this._batchProcessorRun) !== null && _a !== void 0 ? _a : (this._batchProcessorRun = new Client_1.BatchProcessorRunClient(this._options)));
163
174
  }
175
+ get batchRuns() {
176
+ var _a;
177
+ return ((_a = this._batchRuns) !== null && _a !== void 0 ? _a : (this._batchRuns = new Client_2.BatchRunsClient(this._options)));
178
+ }
164
179
  get evaluationSets() {
165
180
  var _a;
166
- return ((_a = this._evaluationSets) !== null && _a !== void 0 ? _a : (this._evaluationSets = new Client_8.EvaluationSetsClient(this._options)));
181
+ return ((_a = this._evaluationSets) !== null && _a !== void 0 ? _a : (this._evaluationSets = new Client_10.EvaluationSetsClient(this._options)));
167
182
  }
168
183
  get evaluationSetItems() {
169
184
  var _a;
170
- return ((_a = this._evaluationSetItems) !== null && _a !== void 0 ? _a : (this._evaluationSetItems = new Client_6.EvaluationSetItemsClient(this._options)));
185
+ return ((_a = this._evaluationSetItems) !== null && _a !== void 0 ? _a : (this._evaluationSetItems = new Client_8.EvaluationSetItemsClient(this._options)));
171
186
  }
172
187
  get evaluationSetRuns() {
173
188
  var _a;
174
- return ((_a = this._evaluationSetRuns) !== null && _a !== void 0 ? _a : (this._evaluationSetRuns = new Client_7.EvaluationSetRunsClient(this._options)));
189
+ return ((_a = this._evaluationSetRuns) !== null && _a !== void 0 ? _a : (this._evaluationSetRuns = new Client_9.EvaluationSetRunsClient(this._options)));
175
190
  }
176
191
  get webhookEndpoints() {
177
192
  var _a;
178
- return ((_a = this._webhookEndpoints) !== null && _a !== void 0 ? _a : (this._webhookEndpoints = new Client_20.WebhookEndpointsClient(this._options)));
193
+ return ((_a = this._webhookEndpoints) !== null && _a !== void 0 ? _a : (this._webhookEndpoints = new Client_22.WebhookEndpointsClient(this._options)));
179
194
  }
180
195
  get webhookSubscriptions() {
181
196
  var _a;
182
- return ((_a = this._webhookSubscriptions) !== null && _a !== void 0 ? _a : (this._webhookSubscriptions = new Client_21.WebhookSubscriptionsClient(this._options)));
197
+ return ((_a = this._webhookSubscriptions) !== null && _a !== void 0 ? _a : (this._webhookSubscriptions = new Client_23.WebhookSubscriptionsClient(this._options)));
183
198
  }
184
199
  /**
185
200
  * Parse a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
@@ -216,12 +231,15 @@ class ExtendClient {
216
231
  __parse(request, requestOptions) {
217
232
  return __awaiter(this, void 0, void 0, function* () {
218
233
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
219
- const { responseType } = request, _body = __rest(request, ["responseType"]);
234
+ const { responseType, "x-extend-workspace-id": extendWorkspaceId } = request, _body = __rest(request, ["responseType", "x-extend-workspace-id"]);
220
235
  const _queryParams = {
221
236
  responseType: responseType != null ? responseType : undefined,
222
237
  };
223
238
  const _authRequest = yield this._options.authProvider.getAuthRequest();
224
- const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
239
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
240
+ "x-extend-workspace-id": extendWorkspaceId,
241
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
242
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
225
243
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
226
244
  url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, "parse"),
227
245
  method: "POST",
@@ -15,6 +15,8 @@ export interface ParseRequest {
15
15
  * * `url` - Return a presigned URL to the parsed content in the response body
16
16
  */
17
17
  responseType?: Extend.ParseRequestResponseType;
18
+ /** 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. */
19
+ "x-extend-workspace-id"?: string;
18
20
  /** The file to be parsed. Files can be provided as a URL or an Extend file ID. */
19
21
  file: Extend.ParseRequestFile;
20
22
  config?: Extend.ParseConfig;
@@ -18,6 +18,7 @@ export declare class BatchProcessorRunClient {
18
18
  * @param {string} id - The unique identifier of the batch processor run to retrieve.
19
19
  *
20
20
  * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
21
+ * @param {Extend.BatchProcessorRunGetRequest} request
21
22
  * @param {BatchProcessorRunClient.RequestOptions} requestOptions - Request-specific configuration.
22
23
  *
23
24
  * @throws {@link Extend.BadRequestError}
@@ -27,6 +28,6 @@ export declare class BatchProcessorRunClient {
27
28
  * @example
28
29
  * await client.batchProcessorRun.get("bpr_id_here")
29
30
  */
30
- get(id: string, requestOptions?: BatchProcessorRunClient.RequestOptions): core.HttpResponsePromise<Extend.BatchProcessorRunGetResponse>;
31
+ get(id: string, request?: Extend.BatchProcessorRunGetRequest, requestOptions?: BatchProcessorRunClient.RequestOptions): core.HttpResponsePromise<Extend.BatchProcessorRunGetResponse>;
31
32
  private __get;
32
33
  }
@@ -63,6 +63,7 @@ class BatchProcessorRunClient {
63
63
  * @param {string} id - The unique identifier of the batch processor run to retrieve.
64
64
  *
65
65
  * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
66
+ * @param {Extend.BatchProcessorRunGetRequest} request
66
67
  * @param {BatchProcessorRunClient.RequestOptions} requestOptions - Request-specific configuration.
67
68
  *
68
69
  * @throws {@link Extend.BadRequestError}
@@ -72,14 +73,18 @@ class BatchProcessorRunClient {
72
73
  * @example
73
74
  * await client.batchProcessorRun.get("bpr_id_here")
74
75
  */
75
- get(id, requestOptions) {
76
- return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
76
+ get(id, request = {}, requestOptions) {
77
+ return core.HttpResponsePromise.fromPromise(this.__get(id, request, requestOptions));
77
78
  }
78
- __get(id, requestOptions) {
79
- return __awaiter(this, void 0, void 0, function* () {
79
+ __get(id_1) {
80
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
80
81
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
82
+ const { "x-extend-workspace-id": extendWorkspaceId } = request;
81
83
  const _authRequest = yield this._options.authProvider.getAuthRequest();
82
- const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
85
+ "x-extend-workspace-id": extendWorkspaceId,
86
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
87
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
83
88
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
84
89
  url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `batch_processor_runs/${core.url.encodePathParam(id)}`),
85
90
  method: "GET",
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface BatchProcessorRunGetRequest {
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. */
7
+ "x-extend-workspace-id"?: string;
8
+ }
@@ -0,0 +1 @@
1
+ export type { BatchProcessorRunGetRequest } from "./BatchProcessorRunGetRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,49 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
+ import * as core from "../../../../core";
4
+ import * as Extend from "../../../index";
5
+ export declare namespace BatchRunsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class BatchRunsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<BatchRunsClient.Options>;
12
+ constructor(options: BatchRunsClient.Options);
13
+ /**
14
+ * Retrieve the status of a batch run by its ID. The `status` field reflects the aggregate state of the batch.
15
+ *
16
+ * This is a unified endpoint that works for batches created via any of the batch submission endpoints (`POST /extract_runs/batch`, `POST /classify_runs/batch`, `POST /split_runs/batch`).
17
+ *
18
+ * | Status | Meaning |
19
+ * |---|---|
20
+ * | `PENDING` | Queued, not yet started |
21
+ * | `PROCESSING` | Runs are actively being processed |
22
+ * | `PROCESSED` | All runs have completed |
23
+ * | `FAILED` | The batch encountered a fatal error |
24
+ * | `CANCELLED` | The batch was cancelled |
25
+ *
26
+ * To retrieve individual run results, use the List endpoint for the relevant processor type filtered by `batchId`:
27
+ * - `GET /extract_runs?batchId={id}`
28
+ * - `GET /classify_runs?batchId={id}`
29
+ * - `GET /split_runs?batchId={id}`
30
+ *
31
+ * @param {string} id - The unique identifier of the batch processor run to retrieve.
32
+ *
33
+ * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
34
+ * @param {BatchRunsClient.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link Extend.BadRequestError}
37
+ * @throws {@link Extend.UnauthorizedError}
38
+ * @throws {@link Extend.PaymentRequiredError}
39
+ * @throws {@link Extend.ForbiddenError}
40
+ * @throws {@link Extend.NotFoundError}
41
+ * @throws {@link Extend.TooManyRequestsError}
42
+ * @throws {@link Extend.InternalServerError}
43
+ *
44
+ * @example
45
+ * await client.batchRuns.get("bpr_Xj8mK2pL9nR4vT7qY5wZ")
46
+ */
47
+ get(id: string, requestOptions?: BatchRunsClient.RequestOptions): core.HttpResponsePromise<Extend.BatchRun>;
48
+ private __get;
49
+ }
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.BatchRunsClient = void 0;
47
+ const BaseClient_1 = require("../../../../BaseClient");
48
+ const core = __importStar(require("../../../../core"));
49
+ const headers_1 = require("../../../../core/headers");
50
+ const environments = __importStar(require("../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
+ const errors = __importStar(require("../../../../errors/index"));
53
+ const Extend = __importStar(require("../../../index"));
54
+ class BatchRunsClient {
55
+ constructor(options) {
56
+ this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * Retrieve the status of a batch run by its ID. The `status` field reflects the aggregate state of the batch.
60
+ *
61
+ * This is a unified endpoint that works for batches created via any of the batch submission endpoints (`POST /extract_runs/batch`, `POST /classify_runs/batch`, `POST /split_runs/batch`).
62
+ *
63
+ * | Status | Meaning |
64
+ * |---|---|
65
+ * | `PENDING` | Queued, not yet started |
66
+ * | `PROCESSING` | Runs are actively being processed |
67
+ * | `PROCESSED` | All runs have completed |
68
+ * | `FAILED` | The batch encountered a fatal error |
69
+ * | `CANCELLED` | The batch was cancelled |
70
+ *
71
+ * To retrieve individual run results, use the List endpoint for the relevant processor type filtered by `batchId`:
72
+ * - `GET /extract_runs?batchId={id}`
73
+ * - `GET /classify_runs?batchId={id}`
74
+ * - `GET /split_runs?batchId={id}`
75
+ *
76
+ * @param {string} id - The unique identifier of the batch processor run to retrieve.
77
+ *
78
+ * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
79
+ * @param {BatchRunsClient.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link Extend.BadRequestError}
82
+ * @throws {@link Extend.UnauthorizedError}
83
+ * @throws {@link Extend.PaymentRequiredError}
84
+ * @throws {@link Extend.ForbiddenError}
85
+ * @throws {@link Extend.NotFoundError}
86
+ * @throws {@link Extend.TooManyRequestsError}
87
+ * @throws {@link Extend.InternalServerError}
88
+ *
89
+ * @example
90
+ * await client.batchRuns.get("bpr_Xj8mK2pL9nR4vT7qY5wZ")
91
+ */
92
+ get(id, requestOptions) {
93
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
94
+ }
95
+ __get(id, requestOptions) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
98
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
99
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
100
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
101
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `batch_runs/${core.url.encodePathParam(id)}`),
102
+ method: "GET",
103
+ headers: _headers,
104
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
105
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 300) * 1000,
106
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
107
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
108
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
109
+ logging: this._options.logging,
110
+ });
111
+ if (_response.ok) {
112
+ return { data: _response.body, rawResponse: _response.rawResponse };
113
+ }
114
+ if (_response.error.reason === "status-code") {
115
+ switch (_response.error.statusCode) {
116
+ case 400:
117
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
118
+ case 401:
119
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
120
+ case 402:
121
+ throw new Extend.PaymentRequiredError(_response.error.body, _response.rawResponse);
122
+ case 403:
123
+ throw new Extend.ForbiddenError(_response.error.body, _response.rawResponse);
124
+ case 404:
125
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
126
+ case 429:
127
+ throw new Extend.TooManyRequestsError(_response.error.body, _response.rawResponse);
128
+ case 500:
129
+ throw new Extend.InternalServerError(_response.error.body, _response.rawResponse);
130
+ default:
131
+ throw new errors.ExtendError({
132
+ statusCode: _response.error.statusCode,
133
+ body: _response.error.body,
134
+ rawResponse: _response.rawResponse,
135
+ });
136
+ }
137
+ }
138
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/batch_runs/{id}");
139
+ });
140
+ }
141
+ }
142
+ exports.BatchRunsClient = BatchRunsClient;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -71,9 +71,13 @@ export declare class ClassifierVersionsClient {
71
71
  * @param {string} classifierId - The ID of the classifier.
72
72
  *
73
73
  * Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"`
74
- * @param {string} versionId - The ID of the specific classifier version.
74
+ * @param {string} versionId - The version to retrieve. Accepts any of the following:
75
75
  *
76
- * Example: `"clsv_QYk6jgHA_8CsO8rVWhyNC"`
76
+ * - `"draft"` — returns the current draft version
77
+ * - `"latest"` — returns the latest published version (falls back to draft if none published)
78
+ * - A version number (e.g. `"0.1"`, `"1.0"`) — returns that specific published version
79
+ * - A version ID (e.g. `"clsv_QYk6jgHA_8CsO8rVWhyNC"`) — returns that specific version by ID
80
+ * @param {Extend.ClassifierVersionsRetrieveRequest} request
77
81
  * @param {ClassifierVersionsClient.RequestOptions} requestOptions - Request-specific configuration.
78
82
  *
79
83
  * @throws {@link Extend.BadRequestError}
@@ -86,8 +90,8 @@ export declare class ClassifierVersionsClient {
86
90
  * @throws {@link Extend.InternalServerError}
87
91
  *
88
92
  * @example
89
- * await client.classifierVersions.retrieve("classifier_id_here", "classifier_version_id_here")
93
+ * await client.classifierVersions.retrieve("classifier_id_here", "draft")
90
94
  */
91
- retrieve(classifierId: string, versionId: string, requestOptions?: ClassifierVersionsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifierVersion>;
95
+ retrieve(classifierId: string, versionId: string, request?: Extend.ClassifierVersionsRetrieveRequest, requestOptions?: ClassifierVersionsClient.RequestOptions): core.HttpResponsePromise<Extend.ClassifierVersion>;
92
96
  private __retrieve;
93
97
  }