extend-ai 0.0.1-beta

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 (1173) hide show
  1. package/Client.d.ts +90 -0
  2. package/Client.js +196 -0
  3. package/README.md +167 -0
  4. package/api/client/index.d.ts +1 -0
  5. package/api/client/index.js +17 -0
  6. package/api/client/requests/ParseRequest.d.ts +15 -0
  7. package/api/client/requests/ParseRequest.js +5 -0
  8. package/api/client/requests/index.d.ts +1 -0
  9. package/api/client/requests/index.js +2 -0
  10. package/api/errors/BadRequestError.d.ts +8 -0
  11. package/api/errors/BadRequestError.js +52 -0
  12. package/api/errors/NotFoundError.d.ts +9 -0
  13. package/api/errors/NotFoundError.js +52 -0
  14. package/api/errors/UnauthorizedError.d.ts +9 -0
  15. package/api/errors/UnauthorizedError.js +52 -0
  16. package/api/errors/UnprocessableEntityError.d.ts +9 -0
  17. package/api/errors/UnprocessableEntityError.js +52 -0
  18. package/api/errors/index.d.ts +4 -0
  19. package/api/errors/index.js +20 -0
  20. package/api/index.d.ts +4 -0
  21. package/api/index.js +20 -0
  22. package/api/resources/batchProcessorRun/client/Client.d.ts +51 -0
  23. package/api/resources/batchProcessorRun/client/Client.js +134 -0
  24. package/api/resources/batchProcessorRun/client/index.d.ts +1 -0
  25. package/api/resources/batchProcessorRun/client/index.js +2 -0
  26. package/api/resources/batchProcessorRun/index.d.ts +2 -0
  27. package/api/resources/batchProcessorRun/index.js +18 -0
  28. package/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.d.ts +8 -0
  29. package/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.js +5 -0
  30. package/api/resources/batchProcessorRun/types/index.d.ts +1 -0
  31. package/api/resources/batchProcessorRun/types/index.js +17 -0
  32. package/api/resources/batchWorkflowRun/client/Client.d.ts +62 -0
  33. package/api/resources/batchWorkflowRun/client/Client.js +149 -0
  34. package/api/resources/batchWorkflowRun/client/index.d.ts +1 -0
  35. package/api/resources/batchWorkflowRun/client/index.js +17 -0
  36. package/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.d.ts +23 -0
  37. package/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.js +5 -0
  38. package/api/resources/batchWorkflowRun/client/requests/index.d.ts +1 -0
  39. package/api/resources/batchWorkflowRun/client/requests/index.js +2 -0
  40. package/api/resources/batchWorkflowRun/index.d.ts +2 -0
  41. package/api/resources/batchWorkflowRun/index.js +18 -0
  42. package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +14 -0
  43. package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.js +5 -0
  44. package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.d.ts +9 -0
  45. package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.js +5 -0
  46. package/api/resources/batchWorkflowRun/types/index.d.ts +2 -0
  47. package/api/resources/batchWorkflowRun/types/index.js +18 -0
  48. package/api/resources/evaluationSet/client/Client.d.ts +54 -0
  49. package/api/resources/evaluationSet/client/Client.js +136 -0
  50. package/api/resources/evaluationSet/client/index.d.ts +1 -0
  51. package/api/resources/evaluationSet/client/index.js +17 -0
  52. package/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.d.ts +31 -0
  53. package/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.js +5 -0
  54. package/api/resources/evaluationSet/client/requests/index.d.ts +1 -0
  55. package/api/resources/evaluationSet/client/requests/index.js +2 -0
  56. package/api/resources/evaluationSet/index.d.ts +2 -0
  57. package/api/resources/evaluationSet/index.js +18 -0
  58. package/api/resources/evaluationSet/types/EvaluationSetCreateResponse.d.ts +8 -0
  59. package/api/resources/evaluationSet/types/EvaluationSetCreateResponse.js +5 -0
  60. package/api/resources/evaluationSet/types/index.d.ts +1 -0
  61. package/api/resources/evaluationSet/types/index.js +17 -0
  62. package/api/resources/evaluationSetItem/client/Client.d.ts +119 -0
  63. package/api/resources/evaluationSetItem/client/Client.js +310 -0
  64. package/api/resources/evaluationSetItem/client/index.d.ts +1 -0
  65. package/api/resources/evaluationSetItem/client/index.js +17 -0
  66. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.d.ts +28 -0
  67. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.js +5 -0
  68. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.d.ts +32 -0
  69. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.js +5 -0
  70. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.d.ts +18 -0
  71. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.js +5 -0
  72. package/api/resources/evaluationSetItem/client/requests/index.d.ts +3 -0
  73. package/api/resources/evaluationSetItem/client/requests/index.js +2 -0
  74. package/api/resources/evaluationSetItem/index.d.ts +2 -0
  75. package/api/resources/evaluationSetItem/index.js +18 -0
  76. package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.d.ts +14 -0
  77. package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.js +5 -0
  78. package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.d.ts +8 -0
  79. package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.js +5 -0
  80. package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.d.ts +8 -0
  81. package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.js +5 -0
  82. package/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.d.ts +8 -0
  83. package/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.js +5 -0
  84. package/api/resources/evaluationSetItem/types/index.d.ts +4 -0
  85. package/api/resources/evaluationSetItem/types/index.js +20 -0
  86. package/api/resources/file/client/Client.d.ts +91 -0
  87. package/api/resources/file/client/Client.js +297 -0
  88. package/api/resources/file/client/index.d.ts +1 -0
  89. package/api/resources/file/client/index.js +17 -0
  90. package/api/resources/file/client/requests/FileGetRequest.d.ts +25 -0
  91. package/api/resources/file/client/requests/FileGetRequest.js +5 -0
  92. package/api/resources/file/client/requests/FileListRequest.d.ts +24 -0
  93. package/api/resources/file/client/requests/FileListRequest.js +5 -0
  94. package/api/resources/file/client/requests/FileUploadRequest.d.ts +9 -0
  95. package/api/resources/file/client/requests/FileUploadRequest.js +5 -0
  96. package/api/resources/file/client/requests/index.d.ts +3 -0
  97. package/api/resources/file/client/requests/index.js +2 -0
  98. package/api/resources/file/index.d.ts +2 -0
  99. package/api/resources/file/index.js +18 -0
  100. package/api/resources/file/types/FileGetResponse.d.ts +8 -0
  101. package/api/resources/file/types/FileGetResponse.js +5 -0
  102. package/api/resources/file/types/FileListResponse.d.ts +9 -0
  103. package/api/resources/file/types/FileListResponse.js +5 -0
  104. package/api/resources/file/types/FileUploadResponse.d.ts +8 -0
  105. package/api/resources/file/types/FileUploadResponse.js +5 -0
  106. package/api/resources/file/types/index.d.ts +3 -0
  107. package/api/resources/file/types/index.js +19 -0
  108. package/api/resources/index.d.ts +32 -0
  109. package/api/resources/index.js +71 -0
  110. package/api/resources/processor/client/Client.d.ts +70 -0
  111. package/api/resources/processor/client/Client.js +205 -0
  112. package/api/resources/processor/client/index.d.ts +1 -0
  113. package/api/resources/processor/client/index.js +17 -0
  114. package/api/resources/processor/client/requests/ProcessorCreateRequest.d.ts +24 -0
  115. package/api/resources/processor/client/requests/ProcessorCreateRequest.js +5 -0
  116. package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +19 -0
  117. package/api/resources/processor/client/requests/ProcessorUpdateRequest.js +5 -0
  118. package/api/resources/processor/client/requests/index.d.ts +2 -0
  119. package/api/resources/processor/client/requests/index.js +2 -0
  120. package/api/resources/processor/index.d.ts +2 -0
  121. package/api/resources/processor/index.js +18 -0
  122. package/api/resources/processor/types/ProcessorCreateRequestConfig.d.ts +19 -0
  123. package/api/resources/processor/types/ProcessorCreateRequestConfig.js +5 -0
  124. package/api/resources/processor/types/ProcessorCreateResponse.d.ts +8 -0
  125. package/api/resources/processor/types/ProcessorCreateResponse.js +5 -0
  126. package/api/resources/processor/types/ProcessorUpdateRequestConfig.d.ts +22 -0
  127. package/api/resources/processor/types/ProcessorUpdateRequestConfig.js +5 -0
  128. package/api/resources/processor/types/ProcessorUpdateResponse.d.ts +8 -0
  129. package/api/resources/processor/types/ProcessorUpdateResponse.js +5 -0
  130. package/api/resources/processor/types/index.d.ts +4 -0
  131. package/api/resources/processor/types/index.js +20 -0
  132. package/api/resources/processorRun/client/Client.d.ts +79 -0
  133. package/api/resources/processorRun/client/Client.js +213 -0
  134. package/api/resources/processorRun/client/index.d.ts +1 -0
  135. package/api/resources/processorRun/client/index.js +17 -0
  136. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +30 -0
  137. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.js +5 -0
  138. package/api/resources/processorRun/client/requests/index.d.ts +1 -0
  139. package/api/resources/processorRun/client/requests/index.js +2 -0
  140. package/api/resources/processorRun/index.d.ts +2 -0
  141. package/api/resources/processorRun/index.js +18 -0
  142. package/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.d.ts +19 -0
  143. package/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.js +5 -0
  144. package/api/resources/processorRun/types/ProcessorRunCreateResponse.d.ts +8 -0
  145. package/api/resources/processorRun/types/ProcessorRunCreateResponse.js +5 -0
  146. package/api/resources/processorRun/types/ProcessorRunGetResponse.d.ts +8 -0
  147. package/api/resources/processorRun/types/ProcessorRunGetResponse.js +5 -0
  148. package/api/resources/processorRun/types/index.d.ts +3 -0
  149. package/api/resources/processorRun/types/index.js +19 -0
  150. package/api/resources/processorVersion/client/Client.d.ts +95 -0
  151. package/api/resources/processorVersion/client/Client.js +280 -0
  152. package/api/resources/processorVersion/client/index.d.ts +1 -0
  153. package/api/resources/processorVersion/client/index.js +17 -0
  154. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +18 -0
  155. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.js +5 -0
  156. package/api/resources/processorVersion/client/requests/index.d.ts +1 -0
  157. package/api/resources/processorVersion/client/requests/index.js +2 -0
  158. package/api/resources/processorVersion/index.d.ts +2 -0
  159. package/api/resources/processorVersion/index.js +18 -0
  160. package/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.d.ts +19 -0
  161. package/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.js +5 -0
  162. package/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.d.ts +11 -0
  163. package/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.js +10 -0
  164. package/api/resources/processorVersion/types/ProcessorVersionCreateResponse.d.ts +8 -0
  165. package/api/resources/processorVersion/types/ProcessorVersionCreateResponse.js +5 -0
  166. package/api/resources/processorVersion/types/ProcessorVersionGetResponse.d.ts +9 -0
  167. package/api/resources/processorVersion/types/ProcessorVersionGetResponse.js +5 -0
  168. package/api/resources/processorVersion/types/ProcessorVersionListResponse.d.ts +9 -0
  169. package/api/resources/processorVersion/types/ProcessorVersionListResponse.js +5 -0
  170. package/api/resources/processorVersion/types/index.d.ts +5 -0
  171. package/api/resources/processorVersion/types/index.js +21 -0
  172. package/api/resources/workflow/client/Client.d.ts +52 -0
  173. package/api/resources/workflow/client/Client.js +134 -0
  174. package/api/resources/workflow/client/index.d.ts +1 -0
  175. package/api/resources/workflow/client/index.js +17 -0
  176. package/api/resources/workflow/client/requests/WorkflowCreateRequest.d.ts +13 -0
  177. package/api/resources/workflow/client/requests/WorkflowCreateRequest.js +5 -0
  178. package/api/resources/workflow/client/requests/index.d.ts +1 -0
  179. package/api/resources/workflow/client/requests/index.js +2 -0
  180. package/api/resources/workflow/index.d.ts +2 -0
  181. package/api/resources/workflow/index.js +18 -0
  182. package/api/resources/workflow/types/WorkflowCreateResponse.d.ts +8 -0
  183. package/api/resources/workflow/types/WorkflowCreateResponse.js +5 -0
  184. package/api/resources/workflow/types/index.d.ts +1 -0
  185. package/api/resources/workflow/types/index.js +17 -0
  186. package/api/resources/workflowRun/client/Client.d.ts +101 -0
  187. package/api/resources/workflowRun/client/Client.js +356 -0
  188. package/api/resources/workflowRun/client/index.d.ts +1 -0
  189. package/api/resources/workflowRun/client/index.js +17 -0
  190. package/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.d.ts +34 -0
  191. package/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.js +5 -0
  192. package/api/resources/workflowRun/client/requests/WorkflowRunListRequest.d.ts +46 -0
  193. package/api/resources/workflowRun/client/requests/WorkflowRunListRequest.js +5 -0
  194. package/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.d.ts +18 -0
  195. package/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.js +5 -0
  196. package/api/resources/workflowRun/client/requests/index.d.ts +3 -0
  197. package/api/resources/workflowRun/client/requests/index.js +2 -0
  198. package/api/resources/workflowRun/index.d.ts +2 -0
  199. package/api/resources/workflowRun/index.js +18 -0
  200. package/api/resources/workflowRun/types/WorkflowRunCreateResponse.d.ts +9 -0
  201. package/api/resources/workflowRun/types/WorkflowRunCreateResponse.js +5 -0
  202. package/api/resources/workflowRun/types/WorkflowRunGetResponse.d.ts +8 -0
  203. package/api/resources/workflowRun/types/WorkflowRunGetResponse.js +5 -0
  204. package/api/resources/workflowRun/types/WorkflowRunListResponse.d.ts +9 -0
  205. package/api/resources/workflowRun/types/WorkflowRunListResponse.js +5 -0
  206. package/api/resources/workflowRun/types/WorkflowRunUpdateResponse.d.ts +8 -0
  207. package/api/resources/workflowRun/types/WorkflowRunUpdateResponse.js +5 -0
  208. package/api/resources/workflowRun/types/index.d.ts +4 -0
  209. package/api/resources/workflowRun/types/index.js +20 -0
  210. package/api/resources/workflowRunOutput/client/Client.d.ts +61 -0
  211. package/api/resources/workflowRunOutput/client/Client.js +148 -0
  212. package/api/resources/workflowRunOutput/client/index.d.ts +1 -0
  213. package/api/resources/workflowRunOutput/client/index.js +17 -0
  214. package/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.d.ts +24 -0
  215. package/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.js +5 -0
  216. package/api/resources/workflowRunOutput/client/requests/index.d.ts +1 -0
  217. package/api/resources/workflowRunOutput/client/requests/index.js +2 -0
  218. package/api/resources/workflowRunOutput/index.d.ts +2 -0
  219. package/api/resources/workflowRunOutput/index.js +18 -0
  220. package/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.d.ts +8 -0
  221. package/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.js +5 -0
  222. package/api/resources/workflowRunOutput/types/index.d.ts +1 -0
  223. package/api/resources/workflowRunOutput/types/index.js +17 -0
  224. package/api/types/ApiVersionEnum.d.ts +11 -0
  225. package/api/types/ApiVersionEnum.js +13 -0
  226. package/api/types/BadRequestErrorBody.d.ts +7 -0
  227. package/api/types/BadRequestErrorBody.js +5 -0
  228. package/api/types/BadRequestErrorBodyCode.d.ts +10 -0
  229. package/api/types/BadRequestErrorBodyCode.js +12 -0
  230. package/api/types/BaseMetrics.d.ts +14 -0
  231. package/api/types/BaseMetrics.js +5 -0
  232. package/api/types/BatchProcessorRun.d.ts +69 -0
  233. package/api/types/BatchProcessorRun.js +5 -0
  234. package/api/types/BatchProcessorRunMetrics.d.ts +9 -0
  235. package/api/types/BatchProcessorRunMetrics.js +5 -0
  236. package/api/types/BatchProcessorRunOptions.d.ts +12 -0
  237. package/api/types/BatchProcessorRunOptions.js +5 -0
  238. package/api/types/BatchProcessorRunSource.d.ts +15 -0
  239. package/api/types/BatchProcessorRunSource.js +11 -0
  240. package/api/types/BatchProcessorRunStatus.d.ts +17 -0
  241. package/api/types/BatchProcessorRunStatus.js +12 -0
  242. package/api/types/BatchWorkflowRunFileInput.d.ts +18 -0
  243. package/api/types/BatchWorkflowRunFileInput.js +5 -0
  244. package/api/types/Block.d.ts +31 -0
  245. package/api/types/Block.js +5 -0
  246. package/api/types/BlockBoundingBox.d.ts +12 -0
  247. package/api/types/BlockBoundingBox.js +5 -0
  248. package/api/types/BlockDetails.d.ts +8 -0
  249. package/api/types/BlockDetails.js +5 -0
  250. package/api/types/BlockMetadata.d.ts +11 -0
  251. package/api/types/BlockMetadata.js +5 -0
  252. package/api/types/BlockMetadataPage.d.ts +14 -0
  253. package/api/types/BlockMetadataPage.js +5 -0
  254. package/api/types/BlockPolygonItem.d.ts +7 -0
  255. package/api/types/BlockPolygonItem.js +5 -0
  256. package/api/types/BlockType.d.ts +21 -0
  257. package/api/types/BlockType.js +13 -0
  258. package/api/types/Chunk.d.ts +16 -0
  259. package/api/types/Chunk.js +5 -0
  260. package/api/types/ChunkMetadata.d.ts +11 -0
  261. package/api/types/ChunkMetadata.js +5 -0
  262. package/api/types/ChunkMetadataPageRange.d.ts +12 -0
  263. package/api/types/ChunkMetadataPageRange.js +5 -0
  264. package/api/types/ChunkType.d.ts +12 -0
  265. package/api/types/ChunkType.js +11 -0
  266. package/api/types/Citation.d.ts +12 -0
  267. package/api/types/Citation.js +5 -0
  268. package/api/types/Classification.d.ts +11 -0
  269. package/api/types/Classification.js +5 -0
  270. package/api/types/ClassificationAdvancedOptions.d.ts +12 -0
  271. package/api/types/ClassificationAdvancedOptions.js +5 -0
  272. package/api/types/ClassificationAdvancedOptionsContext.d.ts +11 -0
  273. package/api/types/ClassificationAdvancedOptionsContext.js +10 -0
  274. package/api/types/ClassificationConfig.d.ts +16 -0
  275. package/api/types/ClassificationConfig.js +5 -0
  276. package/api/types/ClassificationConfigBaseProcessor.d.ts +11 -0
  277. package/api/types/ClassificationConfigBaseProcessor.js +10 -0
  278. package/api/types/ClassifierOutput.d.ts +14 -0
  279. package/api/types/ClassifierOutput.js +5 -0
  280. package/api/types/ClassifyMetrics.d.ts +21 -0
  281. package/api/types/ClassifyMetrics.js +5 -0
  282. package/api/types/EmptyBlockDetails.d.ts +7 -0
  283. package/api/types/EmptyBlockDetails.js +5 -0
  284. package/api/types/Enum.d.ts +9 -0
  285. package/api/types/Enum.js +5 -0
  286. package/api/types/EnumOption.d.ts +9 -0
  287. package/api/types/EnumOption.js +5 -0
  288. package/api/types/Error_.d.ts +8 -0
  289. package/api/types/Error_.js +5 -0
  290. package/api/types/EvaluationSet.d.ts +46 -0
  291. package/api/types/EvaluationSet.js +5 -0
  292. package/api/types/EvaluationSetItem.d.ts +31 -0
  293. package/api/types/EvaluationSetItem.js +5 -0
  294. package/api/types/ExtractChunkingOptions.d.ts +14 -0
  295. package/api/types/ExtractChunkingOptions.js +5 -0
  296. package/api/types/ExtractChunkingOptionsChunkSelectionStrategy.d.ts +13 -0
  297. package/api/types/ExtractChunkingOptionsChunkSelectionStrategy.js +12 -0
  298. package/api/types/ExtractChunkingOptionsChunkingStrategy.d.ts +11 -0
  299. package/api/types/ExtractChunkingOptionsChunkingStrategy.js +10 -0
  300. package/api/types/ExtractMetrics.d.ts +15 -0
  301. package/api/types/ExtractMetrics.js +5 -0
  302. package/api/types/ExtractMetricsFieldMetrics.d.ts +16 -0
  303. package/api/types/ExtractMetricsFieldMetrics.js +5 -0
  304. package/api/types/ExtractionAdvancedOptions.d.ts +23 -0
  305. package/api/types/ExtractionAdvancedOptions.js +5 -0
  306. package/api/types/ExtractionConfig.d.ts +26 -0
  307. package/api/types/ExtractionConfig.js +5 -0
  308. package/api/types/ExtractionConfigBaseProcessor.d.ts +11 -0
  309. package/api/types/ExtractionConfigBaseProcessor.js +10 -0
  310. package/api/types/ExtractionField.d.ts +18 -0
  311. package/api/types/ExtractionField.js +5 -0
  312. package/api/types/ExtractionFieldResult.d.ts +21 -0
  313. package/api/types/ExtractionFieldResult.js +5 -0
  314. package/api/types/ExtractionFieldResultReference.d.ts +14 -0
  315. package/api/types/ExtractionFieldResultReference.js +5 -0
  316. package/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.d.ts +13 -0
  317. package/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.js +5 -0
  318. package/api/types/ExtractionFieldResultType.d.ts +18 -0
  319. package/api/types/ExtractionFieldResultType.js +17 -0
  320. package/api/types/ExtractionFieldType.d.ts +18 -0
  321. package/api/types/ExtractionFieldType.js +17 -0
  322. package/api/types/ExtractionOutput.d.ts +8 -0
  323. package/api/types/ExtractionOutput.js +5 -0
  324. package/api/types/ExtractionOutputEdits.d.ts +16 -0
  325. package/api/types/ExtractionOutputEdits.js +5 -0
  326. package/api/types/FieldsArrayOutput.d.ts +8 -0
  327. package/api/types/FieldsArrayOutput.js +5 -0
  328. package/api/types/FigureDetails.d.ts +23 -0
  329. package/api/types/FigureDetails.js +5 -0
  330. package/api/types/FigureDetailsFigureType.d.ts +20 -0
  331. package/api/types/FigureDetailsFigureType.js +13 -0
  332. package/api/types/FileContents.d.ts +12 -0
  333. package/api/types/FileContents.js +5 -0
  334. package/api/types/FileContentsPagesItem.d.ts +15 -0
  335. package/api/types/FileContentsPagesItem.js +5 -0
  336. package/api/types/FileContentsSheetsItem.d.ts +9 -0
  337. package/api/types/FileContentsSheetsItem.js +5 -0
  338. package/api/types/FileMetadata.d.ts +10 -0
  339. package/api/types/FileMetadata.js +5 -0
  340. package/api/types/FileMetadataParentSplit.d.ts +18 -0
  341. package/api/types/FileMetadataParentSplit.js +5 -0
  342. package/api/types/FileType.d.ts +17 -0
  343. package/api/types/FileType.js +16 -0
  344. package/api/types/File_.d.ts +40 -0
  345. package/api/types/File_.js +5 -0
  346. package/api/types/Insight.d.ts +9 -0
  347. package/api/types/Insight.js +5 -0
  348. package/api/types/JsonObject.d.ts +7 -0
  349. package/api/types/JsonObject.js +5 -0
  350. package/api/types/JsonOutput.d.ts +10 -0
  351. package/api/types/JsonOutput.js +5 -0
  352. package/api/types/JsonOutputMetadataValue.d.ts +12 -0
  353. package/api/types/JsonOutputMetadataValue.js +5 -0
  354. package/api/types/JsonOutputMetadataValueCitationsItem.d.ts +12 -0
  355. package/api/types/JsonOutputMetadataValueCitationsItem.js +5 -0
  356. package/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.d.ts +9 -0
  357. package/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.js +5 -0
  358. package/api/types/JsonOutputMetadataValueInsightsItem.d.ts +9 -0
  359. package/api/types/JsonOutputMetadataValueInsightsItem.js +5 -0
  360. package/api/types/MaxPageSize.d.ts +7 -0
  361. package/api/types/MaxPageSize.js +5 -0
  362. package/api/types/NextPageToken.d.ts +11 -0
  363. package/api/types/NextPageToken.js +5 -0
  364. package/api/types/OutputMetadata.d.ts +5 -0
  365. package/api/types/OutputMetadata.js +5 -0
  366. package/api/types/OutputMetadataValue.d.ts +12 -0
  367. package/api/types/OutputMetadataValue.js +5 -0
  368. package/api/types/ParseConfig.d.ts +21 -0
  369. package/api/types/ParseConfig.js +5 -0
  370. package/api/types/ParseConfigAdvancedOptions.d.ts +7 -0
  371. package/api/types/ParseConfigAdvancedOptions.js +5 -0
  372. package/api/types/ParseConfigBlockOptions.d.ts +15 -0
  373. package/api/types/ParseConfigBlockOptions.js +5 -0
  374. package/api/types/ParseConfigBlockOptionsFigures.d.ts +12 -0
  375. package/api/types/ParseConfigBlockOptionsFigures.js +5 -0
  376. package/api/types/ParseConfigBlockOptionsTables.d.ts +17 -0
  377. package/api/types/ParseConfigBlockOptionsTables.js +5 -0
  378. package/api/types/ParseConfigBlockOptionsTablesTargetFormat.d.ts +13 -0
  379. package/api/types/ParseConfigBlockOptionsTablesTargetFormat.js +10 -0
  380. package/api/types/ParseConfigBlockOptionsText.d.ts +10 -0
  381. package/api/types/ParseConfigBlockOptionsText.js +5 -0
  382. package/api/types/ParseConfigChunkingStrategy.d.ts +21 -0
  383. package/api/types/ParseConfigChunkingStrategy.js +5 -0
  384. package/api/types/ParseConfigChunkingStrategyType.d.ts +16 -0
  385. package/api/types/ParseConfigChunkingStrategyType.js +11 -0
  386. package/api/types/ParseConfigTarget.d.ts +14 -0
  387. package/api/types/ParseConfigTarget.js +10 -0
  388. package/api/types/ParseError.d.ts +10 -0
  389. package/api/types/ParseError.js +5 -0
  390. package/api/types/ParseErrorCode.d.ts +16 -0
  391. package/api/types/ParseErrorCode.js +18 -0
  392. package/api/types/ParseRequestFile.d.ts +18 -0
  393. package/api/types/ParseRequestFile.js +5 -0
  394. package/api/types/ParseResponse.d.ts +30 -0
  395. package/api/types/ParseResponse.js +5 -0
  396. package/api/types/ParseResponseMetrics.d.ts +12 -0
  397. package/api/types/ParseResponseMetrics.js +5 -0
  398. package/api/types/ParseResponseStatus.d.ts +13 -0
  399. package/api/types/ParseResponseStatus.js +10 -0
  400. package/api/types/Polygon.d.ts +9 -0
  401. package/api/types/Polygon.js +5 -0
  402. package/api/types/Processor.d.ts +34 -0
  403. package/api/types/Processor.js +5 -0
  404. package/api/types/ProcessorId.d.ts +9 -0
  405. package/api/types/ProcessorId.js +5 -0
  406. package/api/types/ProcessorOutput.d.ts +8 -0
  407. package/api/types/ProcessorOutput.js +5 -0
  408. package/api/types/ProcessorRun.d.ts +77 -0
  409. package/api/types/ProcessorRun.js +5 -0
  410. package/api/types/ProcessorRunConfig.d.ts +19 -0
  411. package/api/types/ProcessorRunConfig.js +5 -0
  412. package/api/types/ProcessorRunFileInput.d.ts +14 -0
  413. package/api/types/ProcessorRunFileInput.js +5 -0
  414. package/api/types/ProcessorRunMergedProcessorsItem.d.ts +19 -0
  415. package/api/types/ProcessorRunMergedProcessorsItem.js +5 -0
  416. package/api/types/ProcessorRunStatus.d.ts +15 -0
  417. package/api/types/ProcessorRunStatus.js +11 -0
  418. package/api/types/ProcessorRunType.d.ts +15 -0
  419. package/api/types/ProcessorRunType.js +11 -0
  420. package/api/types/ProcessorType.d.ts +15 -0
  421. package/api/types/ProcessorType.js +11 -0
  422. package/api/types/ProcessorVersion.d.ts +57 -0
  423. package/api/types/ProcessorVersion.js +5 -0
  424. package/api/types/ProcessorVersionConfig.d.ts +21 -0
  425. package/api/types/ProcessorVersionConfig.js +5 -0
  426. package/api/types/ProvidedClassifierOutput.d.ts +11 -0
  427. package/api/types/ProvidedClassifierOutput.js +5 -0
  428. package/api/types/ProvidedExtractionFieldResult.d.ts +15 -0
  429. package/api/types/ProvidedExtractionFieldResult.js +5 -0
  430. package/api/types/ProvidedExtractionFieldResultType.d.ts +18 -0
  431. package/api/types/ProvidedExtractionFieldResultType.js +17 -0
  432. package/api/types/ProvidedExtractionOutput.d.ts +5 -0
  433. package/api/types/ProvidedExtractionOutput.js +5 -0
  434. package/api/types/ProvidedFieldsArrayOutput.d.ts +8 -0
  435. package/api/types/ProvidedFieldsArrayOutput.js +5 -0
  436. package/api/types/ProvidedJsonOutput.d.ts +9 -0
  437. package/api/types/ProvidedJsonOutput.js +5 -0
  438. package/api/types/ProvidedProcessorOutput.d.ts +5 -0
  439. package/api/types/ProvidedProcessorOutput.js +5 -0
  440. package/api/types/ProvidedSplitterOutput.d.ts +7 -0
  441. package/api/types/ProvidedSplitterOutput.js +5 -0
  442. package/api/types/ProvidedSplitterOutputSplitsItem.d.ts +19 -0
  443. package/api/types/ProvidedSplitterOutputSplitsItem.js +5 -0
  444. package/api/types/SortByEnum.d.ts +8 -0
  445. package/api/types/SortByEnum.js +10 -0
  446. package/api/types/SortDirEnum.d.ts +8 -0
  447. package/api/types/SortDirEnum.js +10 -0
  448. package/api/types/SplitterAdvancedOptions.d.ts +14 -0
  449. package/api/types/SplitterAdvancedOptions.js +5 -0
  450. package/api/types/SplitterAdvancedOptionsSplitMethod.d.ts +11 -0
  451. package/api/types/SplitterAdvancedOptionsSplitMethod.js +10 -0
  452. package/api/types/SplitterConfig.d.ts +16 -0
  453. package/api/types/SplitterConfig.js +5 -0
  454. package/api/types/SplitterMetrics.d.ts +21 -0
  455. package/api/types/SplitterMetrics.js +5 -0
  456. package/api/types/SplitterOutput.d.ts +8 -0
  457. package/api/types/SplitterOutput.js +5 -0
  458. package/api/types/SplitterOutputSplitsItem.d.ts +23 -0
  459. package/api/types/SplitterOutputSplitsItem.js +5 -0
  460. package/api/types/StepRun.d.ts +29 -0
  461. package/api/types/StepRun.js +5 -0
  462. package/api/types/StepRunOutput.d.ts +12 -0
  463. package/api/types/StepRunOutput.js +5 -0
  464. package/api/types/StepRunOutputRulesItem.d.ts +21 -0
  465. package/api/types/StepRunOutputRulesItem.js +5 -0
  466. package/api/types/StepRunOutputRulesItemFailureReason.d.ts +15 -0
  467. package/api/types/StepRunOutputRulesItemFailureReason.js +11 -0
  468. package/api/types/StepRunStatus.d.ts +17 -0
  469. package/api/types/StepRunStatus.js +12 -0
  470. package/api/types/StepRunStep.d.ts +26 -0
  471. package/api/types/StepRunStep.js +5 -0
  472. package/api/types/StepRunStepType.d.ts +13 -0
  473. package/api/types/StepRunStepType.js +10 -0
  474. package/api/types/TableCellDetails.d.ts +12 -0
  475. package/api/types/TableCellDetails.js +5 -0
  476. package/api/types/TableDetails.d.ts +14 -0
  477. package/api/types/TableDetails.js +5 -0
  478. package/api/types/WebhookEvent.d.ts +12 -0
  479. package/api/types/WebhookEvent.js +5 -0
  480. package/api/types/WebhookEventEventType.d.ts +24 -0
  481. package/api/types/WebhookEventEventType.js +23 -0
  482. package/api/types/WebhookEventPayload.d.ts +8 -0
  483. package/api/types/WebhookEventPayload.js +5 -0
  484. package/api/types/WebhookEventProcessor.d.ts +13 -0
  485. package/api/types/WebhookEventProcessor.js +5 -0
  486. package/api/types/WebhookEventProcessorEventType.d.ts +10 -0
  487. package/api/types/WebhookEventProcessorEventType.js +12 -0
  488. package/api/types/WebhookEventProcessorRun.d.ts +13 -0
  489. package/api/types/WebhookEventProcessorRun.js +5 -0
  490. package/api/types/WebhookEventProcessorRunEventType.d.ts +8 -0
  491. package/api/types/WebhookEventProcessorRunEventType.js +10 -0
  492. package/api/types/WebhookEventProcessorVersion.d.ts +13 -0
  493. package/api/types/WebhookEventProcessorVersion.js +5 -0
  494. package/api/types/WebhookEventWorkflow.d.ts +13 -0
  495. package/api/types/WebhookEventWorkflow.js +5 -0
  496. package/api/types/WebhookEventWorkflowEventType.d.ts +9 -0
  497. package/api/types/WebhookEventWorkflowEventType.js +11 -0
  498. package/api/types/WebhookEventWorkflowRun.d.ts +13 -0
  499. package/api/types/WebhookEventWorkflowRun.js +5 -0
  500. package/api/types/WebhookEventWorkflowRunEventType.d.ts +11 -0
  501. package/api/types/WebhookEventWorkflowRunEventType.js +13 -0
  502. package/api/types/Workflow.d.ts +25 -0
  503. package/api/types/Workflow.js +5 -0
  504. package/api/types/WorkflowRun.d.ts +86 -0
  505. package/api/types/WorkflowRun.js +5 -0
  506. package/api/types/WorkflowRunFileInput.d.ts +21 -0
  507. package/api/types/WorkflowRunFileInput.js +5 -0
  508. package/api/types/WorkflowRunFileInputOutputsItem.d.ts +13 -0
  509. package/api/types/WorkflowRunFileInputOutputsItem.js +5 -0
  510. package/api/types/WorkflowRunSummary.d.ts +85 -0
  511. package/api/types/WorkflowRunSummary.js +5 -0
  512. package/api/types/WorkflowStatus.d.ts +21 -0
  513. package/api/types/WorkflowStatus.js +14 -0
  514. package/api/types/index.d.ts +145 -0
  515. package/api/types/index.js +161 -0
  516. package/core/auth/BasicAuth.d.ts +8 -0
  517. package/core/auth/BasicAuth.js +26 -0
  518. package/core/auth/BearerToken.d.ts +5 -0
  519. package/core/auth/BearerToken.js +15 -0
  520. package/core/auth/index.d.ts +2 -0
  521. package/core/auth/index.js +7 -0
  522. package/core/fetcher/APIResponse.d.ts +20 -0
  523. package/core/fetcher/APIResponse.js +2 -0
  524. package/core/fetcher/Fetcher.d.ts +39 -0
  525. package/core/fetcher/Fetcher.js +107 -0
  526. package/core/fetcher/Headers.d.ts +2 -0
  527. package/core/fetcher/Headers.js +84 -0
  528. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  529. package/core/fetcher/HttpResponsePromise.js +103 -0
  530. package/core/fetcher/RawResponse.d.ts +29 -0
  531. package/core/fetcher/RawResponse.js +44 -0
  532. package/core/fetcher/Supplier.d.ts +4 -0
  533. package/core/fetcher/Supplier.js +22 -0
  534. package/core/fetcher/createRequestUrl.d.ts +1 -0
  535. package/core/fetcher/createRequestUrl.js +12 -0
  536. package/core/fetcher/getFetchFn.d.ts +4 -0
  537. package/core/fetcher/getFetchFn.js +68 -0
  538. package/core/fetcher/getHeader.d.ts +1 -0
  539. package/core/fetcher/getHeader.js +11 -0
  540. package/core/fetcher/getRequestBody.d.ts +7 -0
  541. package/core/fetcher/getRequestBody.js +23 -0
  542. package/core/fetcher/getResponseBody.d.ts +1 -0
  543. package/core/fetcher/getResponseBody.js +54 -0
  544. package/core/fetcher/index.d.ts +8 -0
  545. package/core/fetcher/index.js +15 -0
  546. package/core/fetcher/makeRequest.d.ts +1 -0
  547. package/core/fetcher/makeRequest.js +42 -0
  548. package/core/fetcher/requestWithRetries.d.ts +1 -0
  549. package/core/fetcher/requestWithRetries.js +40 -0
  550. package/core/fetcher/signals.d.ts +11 -0
  551. package/core/fetcher/signals.js +36 -0
  552. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  553. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  554. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  555. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  556. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  557. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  558. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  559. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  560. package/core/form-data-utils/FormDataWrapper.d.ts +63 -0
  561. package/core/form-data-utils/FormDataWrapper.js +227 -0
  562. package/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
  563. package/core/form-data-utils/encodeAsFormParameter.js +18 -0
  564. package/core/form-data-utils/index.d.ts +2 -0
  565. package/core/form-data-utils/index.js +20 -0
  566. package/core/index.d.ts +4 -0
  567. package/core/index.js +20 -0
  568. package/core/json.d.ts +15 -0
  569. package/core/json.js +24 -0
  570. package/core/runtime/index.d.ts +1 -0
  571. package/core/runtime/index.js +5 -0
  572. package/core/runtime/runtime.d.ts +9 -0
  573. package/core/runtime/runtime.js +103 -0
  574. package/dist/Client.d.ts +90 -0
  575. package/dist/Client.js +196 -0
  576. package/dist/api/client/index.d.ts +1 -0
  577. package/dist/api/client/index.js +17 -0
  578. package/dist/api/client/requests/ParseRequest.d.ts +15 -0
  579. package/dist/api/client/requests/ParseRequest.js +5 -0
  580. package/dist/api/client/requests/index.d.ts +1 -0
  581. package/dist/api/client/requests/index.js +2 -0
  582. package/dist/api/errors/BadRequestError.d.ts +8 -0
  583. package/dist/api/errors/BadRequestError.js +52 -0
  584. package/dist/api/errors/NotFoundError.d.ts +9 -0
  585. package/dist/api/errors/NotFoundError.js +52 -0
  586. package/dist/api/errors/UnauthorizedError.d.ts +9 -0
  587. package/dist/api/errors/UnauthorizedError.js +52 -0
  588. package/dist/api/errors/UnprocessableEntityError.d.ts +9 -0
  589. package/dist/api/errors/UnprocessableEntityError.js +52 -0
  590. package/dist/api/errors/index.d.ts +4 -0
  591. package/dist/api/errors/index.js +20 -0
  592. package/dist/api/index.d.ts +4 -0
  593. package/dist/api/index.js +20 -0
  594. package/dist/api/resources/batchProcessorRun/client/Client.d.ts +51 -0
  595. package/dist/api/resources/batchProcessorRun/client/Client.js +134 -0
  596. package/dist/api/resources/batchProcessorRun/client/index.d.ts +1 -0
  597. package/dist/api/resources/batchProcessorRun/client/index.js +2 -0
  598. package/dist/api/resources/batchProcessorRun/index.d.ts +2 -0
  599. package/dist/api/resources/batchProcessorRun/index.js +18 -0
  600. package/dist/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.d.ts +8 -0
  601. package/dist/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.js +5 -0
  602. package/dist/api/resources/batchProcessorRun/types/index.d.ts +1 -0
  603. package/dist/api/resources/batchProcessorRun/types/index.js +17 -0
  604. package/dist/api/resources/batchWorkflowRun/client/Client.d.ts +62 -0
  605. package/dist/api/resources/batchWorkflowRun/client/Client.js +149 -0
  606. package/dist/api/resources/batchWorkflowRun/client/index.d.ts +1 -0
  607. package/dist/api/resources/batchWorkflowRun/client/index.js +17 -0
  608. package/dist/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.d.ts +23 -0
  609. package/dist/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.js +5 -0
  610. package/dist/api/resources/batchWorkflowRun/client/requests/index.d.ts +1 -0
  611. package/dist/api/resources/batchWorkflowRun/client/requests/index.js +2 -0
  612. package/dist/api/resources/batchWorkflowRun/index.d.ts +2 -0
  613. package/dist/api/resources/batchWorkflowRun/index.js +18 -0
  614. package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +14 -0
  615. package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.js +5 -0
  616. package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.d.ts +9 -0
  617. package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.js +5 -0
  618. package/dist/api/resources/batchWorkflowRun/types/index.d.ts +2 -0
  619. package/dist/api/resources/batchWorkflowRun/types/index.js +18 -0
  620. package/dist/api/resources/evaluationSet/client/Client.d.ts +54 -0
  621. package/dist/api/resources/evaluationSet/client/Client.js +136 -0
  622. package/dist/api/resources/evaluationSet/client/index.d.ts +1 -0
  623. package/dist/api/resources/evaluationSet/client/index.js +17 -0
  624. package/dist/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.d.ts +31 -0
  625. package/dist/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.js +5 -0
  626. package/dist/api/resources/evaluationSet/client/requests/index.d.ts +1 -0
  627. package/dist/api/resources/evaluationSet/client/requests/index.js +2 -0
  628. package/dist/api/resources/evaluationSet/index.d.ts +2 -0
  629. package/dist/api/resources/evaluationSet/index.js +18 -0
  630. package/dist/api/resources/evaluationSet/types/EvaluationSetCreateResponse.d.ts +8 -0
  631. package/dist/api/resources/evaluationSet/types/EvaluationSetCreateResponse.js +5 -0
  632. package/dist/api/resources/evaluationSet/types/index.d.ts +1 -0
  633. package/dist/api/resources/evaluationSet/types/index.js +17 -0
  634. package/dist/api/resources/evaluationSetItem/client/Client.d.ts +119 -0
  635. package/dist/api/resources/evaluationSetItem/client/Client.js +310 -0
  636. package/dist/api/resources/evaluationSetItem/client/index.d.ts +1 -0
  637. package/dist/api/resources/evaluationSetItem/client/index.js +17 -0
  638. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.d.ts +28 -0
  639. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.js +5 -0
  640. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.d.ts +32 -0
  641. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.js +5 -0
  642. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.d.ts +18 -0
  643. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.js +5 -0
  644. package/dist/api/resources/evaluationSetItem/client/requests/index.d.ts +3 -0
  645. package/dist/api/resources/evaluationSetItem/client/requests/index.js +2 -0
  646. package/dist/api/resources/evaluationSetItem/index.d.ts +2 -0
  647. package/dist/api/resources/evaluationSetItem/index.js +18 -0
  648. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.d.ts +14 -0
  649. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.js +5 -0
  650. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.d.ts +8 -0
  651. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.js +5 -0
  652. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.d.ts +8 -0
  653. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.js +5 -0
  654. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.d.ts +8 -0
  655. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.js +5 -0
  656. package/dist/api/resources/evaluationSetItem/types/index.d.ts +4 -0
  657. package/dist/api/resources/evaluationSetItem/types/index.js +20 -0
  658. package/dist/api/resources/file/client/Client.d.ts +91 -0
  659. package/dist/api/resources/file/client/Client.js +297 -0
  660. package/dist/api/resources/file/client/index.d.ts +1 -0
  661. package/dist/api/resources/file/client/index.js +17 -0
  662. package/dist/api/resources/file/client/requests/FileGetRequest.d.ts +25 -0
  663. package/dist/api/resources/file/client/requests/FileGetRequest.js +5 -0
  664. package/dist/api/resources/file/client/requests/FileListRequest.d.ts +24 -0
  665. package/dist/api/resources/file/client/requests/FileListRequest.js +5 -0
  666. package/dist/api/resources/file/client/requests/FileUploadRequest.d.ts +9 -0
  667. package/dist/api/resources/file/client/requests/FileUploadRequest.js +5 -0
  668. package/dist/api/resources/file/client/requests/index.d.ts +3 -0
  669. package/dist/api/resources/file/client/requests/index.js +2 -0
  670. package/dist/api/resources/file/index.d.ts +2 -0
  671. package/dist/api/resources/file/index.js +18 -0
  672. package/dist/api/resources/file/types/FileGetResponse.d.ts +8 -0
  673. package/dist/api/resources/file/types/FileGetResponse.js +5 -0
  674. package/dist/api/resources/file/types/FileListResponse.d.ts +9 -0
  675. package/dist/api/resources/file/types/FileListResponse.js +5 -0
  676. package/dist/api/resources/file/types/FileUploadResponse.d.ts +8 -0
  677. package/dist/api/resources/file/types/FileUploadResponse.js +5 -0
  678. package/dist/api/resources/file/types/index.d.ts +3 -0
  679. package/dist/api/resources/file/types/index.js +19 -0
  680. package/dist/api/resources/index.d.ts +32 -0
  681. package/dist/api/resources/index.js +71 -0
  682. package/dist/api/resources/processor/client/Client.d.ts +70 -0
  683. package/dist/api/resources/processor/client/Client.js +205 -0
  684. package/dist/api/resources/processor/client/index.d.ts +1 -0
  685. package/dist/api/resources/processor/client/index.js +17 -0
  686. package/dist/api/resources/processor/client/requests/ProcessorCreateRequest.d.ts +24 -0
  687. package/dist/api/resources/processor/client/requests/ProcessorCreateRequest.js +5 -0
  688. package/dist/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +19 -0
  689. package/dist/api/resources/processor/client/requests/ProcessorUpdateRequest.js +5 -0
  690. package/dist/api/resources/processor/client/requests/index.d.ts +2 -0
  691. package/dist/api/resources/processor/client/requests/index.js +2 -0
  692. package/dist/api/resources/processor/index.d.ts +2 -0
  693. package/dist/api/resources/processor/index.js +18 -0
  694. package/dist/api/resources/processor/types/ProcessorCreateRequestConfig.d.ts +19 -0
  695. package/dist/api/resources/processor/types/ProcessorCreateRequestConfig.js +5 -0
  696. package/dist/api/resources/processor/types/ProcessorCreateResponse.d.ts +8 -0
  697. package/dist/api/resources/processor/types/ProcessorCreateResponse.js +5 -0
  698. package/dist/api/resources/processor/types/ProcessorUpdateRequestConfig.d.ts +22 -0
  699. package/dist/api/resources/processor/types/ProcessorUpdateRequestConfig.js +5 -0
  700. package/dist/api/resources/processor/types/ProcessorUpdateResponse.d.ts +8 -0
  701. package/dist/api/resources/processor/types/ProcessorUpdateResponse.js +5 -0
  702. package/dist/api/resources/processor/types/index.d.ts +4 -0
  703. package/dist/api/resources/processor/types/index.js +20 -0
  704. package/dist/api/resources/processorRun/client/Client.d.ts +79 -0
  705. package/dist/api/resources/processorRun/client/Client.js +213 -0
  706. package/dist/api/resources/processorRun/client/index.d.ts +1 -0
  707. package/dist/api/resources/processorRun/client/index.js +17 -0
  708. package/dist/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +30 -0
  709. package/dist/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.js +5 -0
  710. package/dist/api/resources/processorRun/client/requests/index.d.ts +1 -0
  711. package/dist/api/resources/processorRun/client/requests/index.js +2 -0
  712. package/dist/api/resources/processorRun/index.d.ts +2 -0
  713. package/dist/api/resources/processorRun/index.js +18 -0
  714. package/dist/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.d.ts +19 -0
  715. package/dist/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.js +5 -0
  716. package/dist/api/resources/processorRun/types/ProcessorRunCreateResponse.d.ts +8 -0
  717. package/dist/api/resources/processorRun/types/ProcessorRunCreateResponse.js +5 -0
  718. package/dist/api/resources/processorRun/types/ProcessorRunGetResponse.d.ts +8 -0
  719. package/dist/api/resources/processorRun/types/ProcessorRunGetResponse.js +5 -0
  720. package/dist/api/resources/processorRun/types/index.d.ts +3 -0
  721. package/dist/api/resources/processorRun/types/index.js +19 -0
  722. package/dist/api/resources/processorVersion/client/Client.d.ts +95 -0
  723. package/dist/api/resources/processorVersion/client/Client.js +280 -0
  724. package/dist/api/resources/processorVersion/client/index.d.ts +1 -0
  725. package/dist/api/resources/processorVersion/client/index.js +17 -0
  726. package/dist/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +18 -0
  727. package/dist/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.js +5 -0
  728. package/dist/api/resources/processorVersion/client/requests/index.d.ts +1 -0
  729. package/dist/api/resources/processorVersion/client/requests/index.js +2 -0
  730. package/dist/api/resources/processorVersion/index.d.ts +2 -0
  731. package/dist/api/resources/processorVersion/index.js +18 -0
  732. package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.d.ts +19 -0
  733. package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.js +5 -0
  734. package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.d.ts +11 -0
  735. package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.js +10 -0
  736. package/dist/api/resources/processorVersion/types/ProcessorVersionCreateResponse.d.ts +8 -0
  737. package/dist/api/resources/processorVersion/types/ProcessorVersionCreateResponse.js +5 -0
  738. package/dist/api/resources/processorVersion/types/ProcessorVersionGetResponse.d.ts +9 -0
  739. package/dist/api/resources/processorVersion/types/ProcessorVersionGetResponse.js +5 -0
  740. package/dist/api/resources/processorVersion/types/ProcessorVersionListResponse.d.ts +9 -0
  741. package/dist/api/resources/processorVersion/types/ProcessorVersionListResponse.js +5 -0
  742. package/dist/api/resources/processorVersion/types/index.d.ts +5 -0
  743. package/dist/api/resources/processorVersion/types/index.js +21 -0
  744. package/dist/api/resources/workflow/client/Client.d.ts +52 -0
  745. package/dist/api/resources/workflow/client/Client.js +134 -0
  746. package/dist/api/resources/workflow/client/index.d.ts +1 -0
  747. package/dist/api/resources/workflow/client/index.js +17 -0
  748. package/dist/api/resources/workflow/client/requests/WorkflowCreateRequest.d.ts +13 -0
  749. package/dist/api/resources/workflow/client/requests/WorkflowCreateRequest.js +5 -0
  750. package/dist/api/resources/workflow/client/requests/index.d.ts +1 -0
  751. package/dist/api/resources/workflow/client/requests/index.js +2 -0
  752. package/dist/api/resources/workflow/index.d.ts +2 -0
  753. package/dist/api/resources/workflow/index.js +18 -0
  754. package/dist/api/resources/workflow/types/WorkflowCreateResponse.d.ts +8 -0
  755. package/dist/api/resources/workflow/types/WorkflowCreateResponse.js +5 -0
  756. package/dist/api/resources/workflow/types/index.d.ts +1 -0
  757. package/dist/api/resources/workflow/types/index.js +17 -0
  758. package/dist/api/resources/workflowRun/client/Client.d.ts +101 -0
  759. package/dist/api/resources/workflowRun/client/Client.js +356 -0
  760. package/dist/api/resources/workflowRun/client/index.d.ts +1 -0
  761. package/dist/api/resources/workflowRun/client/index.js +17 -0
  762. package/dist/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.d.ts +34 -0
  763. package/dist/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.js +5 -0
  764. package/dist/api/resources/workflowRun/client/requests/WorkflowRunListRequest.d.ts +46 -0
  765. package/dist/api/resources/workflowRun/client/requests/WorkflowRunListRequest.js +5 -0
  766. package/dist/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.d.ts +18 -0
  767. package/dist/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.js +5 -0
  768. package/dist/api/resources/workflowRun/client/requests/index.d.ts +3 -0
  769. package/dist/api/resources/workflowRun/client/requests/index.js +2 -0
  770. package/dist/api/resources/workflowRun/index.d.ts +2 -0
  771. package/dist/api/resources/workflowRun/index.js +18 -0
  772. package/dist/api/resources/workflowRun/types/WorkflowRunCreateResponse.d.ts +9 -0
  773. package/dist/api/resources/workflowRun/types/WorkflowRunCreateResponse.js +5 -0
  774. package/dist/api/resources/workflowRun/types/WorkflowRunGetResponse.d.ts +8 -0
  775. package/dist/api/resources/workflowRun/types/WorkflowRunGetResponse.js +5 -0
  776. package/dist/api/resources/workflowRun/types/WorkflowRunListResponse.d.ts +9 -0
  777. package/dist/api/resources/workflowRun/types/WorkflowRunListResponse.js +5 -0
  778. package/dist/api/resources/workflowRun/types/WorkflowRunUpdateResponse.d.ts +8 -0
  779. package/dist/api/resources/workflowRun/types/WorkflowRunUpdateResponse.js +5 -0
  780. package/dist/api/resources/workflowRun/types/index.d.ts +4 -0
  781. package/dist/api/resources/workflowRun/types/index.js +20 -0
  782. package/dist/api/resources/workflowRunOutput/client/Client.d.ts +61 -0
  783. package/dist/api/resources/workflowRunOutput/client/Client.js +148 -0
  784. package/dist/api/resources/workflowRunOutput/client/index.d.ts +1 -0
  785. package/dist/api/resources/workflowRunOutput/client/index.js +17 -0
  786. package/dist/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.d.ts +24 -0
  787. package/dist/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.js +5 -0
  788. package/dist/api/resources/workflowRunOutput/client/requests/index.d.ts +1 -0
  789. package/dist/api/resources/workflowRunOutput/client/requests/index.js +2 -0
  790. package/dist/api/resources/workflowRunOutput/index.d.ts +2 -0
  791. package/dist/api/resources/workflowRunOutput/index.js +18 -0
  792. package/dist/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.d.ts +8 -0
  793. package/dist/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.js +5 -0
  794. package/dist/api/resources/workflowRunOutput/types/index.d.ts +1 -0
  795. package/dist/api/resources/workflowRunOutput/types/index.js +17 -0
  796. package/dist/api/types/ApiVersionEnum.d.ts +11 -0
  797. package/dist/api/types/ApiVersionEnum.js +13 -0
  798. package/dist/api/types/BadRequestErrorBody.d.ts +7 -0
  799. package/dist/api/types/BadRequestErrorBody.js +5 -0
  800. package/dist/api/types/BadRequestErrorBodyCode.d.ts +10 -0
  801. package/dist/api/types/BadRequestErrorBodyCode.js +12 -0
  802. package/dist/api/types/BaseMetrics.d.ts +14 -0
  803. package/dist/api/types/BaseMetrics.js +5 -0
  804. package/dist/api/types/BatchProcessorRun.d.ts +69 -0
  805. package/dist/api/types/BatchProcessorRun.js +5 -0
  806. package/dist/api/types/BatchProcessorRunMetrics.d.ts +9 -0
  807. package/dist/api/types/BatchProcessorRunMetrics.js +5 -0
  808. package/dist/api/types/BatchProcessorRunOptions.d.ts +12 -0
  809. package/dist/api/types/BatchProcessorRunOptions.js +5 -0
  810. package/dist/api/types/BatchProcessorRunSource.d.ts +15 -0
  811. package/dist/api/types/BatchProcessorRunSource.js +11 -0
  812. package/dist/api/types/BatchProcessorRunStatus.d.ts +17 -0
  813. package/dist/api/types/BatchProcessorRunStatus.js +12 -0
  814. package/dist/api/types/BatchWorkflowRunFileInput.d.ts +18 -0
  815. package/dist/api/types/BatchWorkflowRunFileInput.js +5 -0
  816. package/dist/api/types/Block.d.ts +31 -0
  817. package/dist/api/types/Block.js +5 -0
  818. package/dist/api/types/BlockBoundingBox.d.ts +12 -0
  819. package/dist/api/types/BlockBoundingBox.js +5 -0
  820. package/dist/api/types/BlockDetails.d.ts +8 -0
  821. package/dist/api/types/BlockDetails.js +5 -0
  822. package/dist/api/types/BlockMetadata.d.ts +11 -0
  823. package/dist/api/types/BlockMetadata.js +5 -0
  824. package/dist/api/types/BlockMetadataPage.d.ts +14 -0
  825. package/dist/api/types/BlockMetadataPage.js +5 -0
  826. package/dist/api/types/BlockPolygonItem.d.ts +7 -0
  827. package/dist/api/types/BlockPolygonItem.js +5 -0
  828. package/dist/api/types/BlockType.d.ts +21 -0
  829. package/dist/api/types/BlockType.js +13 -0
  830. package/dist/api/types/Chunk.d.ts +16 -0
  831. package/dist/api/types/Chunk.js +5 -0
  832. package/dist/api/types/ChunkMetadata.d.ts +11 -0
  833. package/dist/api/types/ChunkMetadata.js +5 -0
  834. package/dist/api/types/ChunkMetadataPageRange.d.ts +12 -0
  835. package/dist/api/types/ChunkMetadataPageRange.js +5 -0
  836. package/dist/api/types/ChunkType.d.ts +12 -0
  837. package/dist/api/types/ChunkType.js +11 -0
  838. package/dist/api/types/Citation.d.ts +12 -0
  839. package/dist/api/types/Citation.js +5 -0
  840. package/dist/api/types/Classification.d.ts +11 -0
  841. package/dist/api/types/Classification.js +5 -0
  842. package/dist/api/types/ClassificationAdvancedOptions.d.ts +12 -0
  843. package/dist/api/types/ClassificationAdvancedOptions.js +5 -0
  844. package/dist/api/types/ClassificationAdvancedOptionsContext.d.ts +11 -0
  845. package/dist/api/types/ClassificationAdvancedOptionsContext.js +10 -0
  846. package/dist/api/types/ClassificationConfig.d.ts +16 -0
  847. package/dist/api/types/ClassificationConfig.js +5 -0
  848. package/dist/api/types/ClassificationConfigBaseProcessor.d.ts +11 -0
  849. package/dist/api/types/ClassificationConfigBaseProcessor.js +10 -0
  850. package/dist/api/types/ClassifierOutput.d.ts +14 -0
  851. package/dist/api/types/ClassifierOutput.js +5 -0
  852. package/dist/api/types/ClassifyMetrics.d.ts +21 -0
  853. package/dist/api/types/ClassifyMetrics.js +5 -0
  854. package/dist/api/types/EmptyBlockDetails.d.ts +7 -0
  855. package/dist/api/types/EmptyBlockDetails.js +5 -0
  856. package/dist/api/types/Enum.d.ts +9 -0
  857. package/dist/api/types/Enum.js +5 -0
  858. package/dist/api/types/EnumOption.d.ts +9 -0
  859. package/dist/api/types/EnumOption.js +5 -0
  860. package/dist/api/types/Error_.d.ts +8 -0
  861. package/dist/api/types/Error_.js +5 -0
  862. package/dist/api/types/EvaluationSet.d.ts +46 -0
  863. package/dist/api/types/EvaluationSet.js +5 -0
  864. package/dist/api/types/EvaluationSetItem.d.ts +31 -0
  865. package/dist/api/types/EvaluationSetItem.js +5 -0
  866. package/dist/api/types/ExtractChunkingOptions.d.ts +14 -0
  867. package/dist/api/types/ExtractChunkingOptions.js +5 -0
  868. package/dist/api/types/ExtractChunkingOptionsChunkSelectionStrategy.d.ts +13 -0
  869. package/dist/api/types/ExtractChunkingOptionsChunkSelectionStrategy.js +12 -0
  870. package/dist/api/types/ExtractChunkingOptionsChunkingStrategy.d.ts +11 -0
  871. package/dist/api/types/ExtractChunkingOptionsChunkingStrategy.js +10 -0
  872. package/dist/api/types/ExtractMetrics.d.ts +15 -0
  873. package/dist/api/types/ExtractMetrics.js +5 -0
  874. package/dist/api/types/ExtractMetricsFieldMetrics.d.ts +16 -0
  875. package/dist/api/types/ExtractMetricsFieldMetrics.js +5 -0
  876. package/dist/api/types/ExtractionAdvancedOptions.d.ts +23 -0
  877. package/dist/api/types/ExtractionAdvancedOptions.js +5 -0
  878. package/dist/api/types/ExtractionConfig.d.ts +26 -0
  879. package/dist/api/types/ExtractionConfig.js +5 -0
  880. package/dist/api/types/ExtractionConfigBaseProcessor.d.ts +11 -0
  881. package/dist/api/types/ExtractionConfigBaseProcessor.js +10 -0
  882. package/dist/api/types/ExtractionField.d.ts +18 -0
  883. package/dist/api/types/ExtractionField.js +5 -0
  884. package/dist/api/types/ExtractionFieldResult.d.ts +21 -0
  885. package/dist/api/types/ExtractionFieldResult.js +5 -0
  886. package/dist/api/types/ExtractionFieldResultReference.d.ts +14 -0
  887. package/dist/api/types/ExtractionFieldResultReference.js +5 -0
  888. package/dist/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.d.ts +13 -0
  889. package/dist/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.js +5 -0
  890. package/dist/api/types/ExtractionFieldResultType.d.ts +18 -0
  891. package/dist/api/types/ExtractionFieldResultType.js +17 -0
  892. package/dist/api/types/ExtractionFieldType.d.ts +18 -0
  893. package/dist/api/types/ExtractionFieldType.js +17 -0
  894. package/dist/api/types/ExtractionOutput.d.ts +8 -0
  895. package/dist/api/types/ExtractionOutput.js +5 -0
  896. package/dist/api/types/ExtractionOutputEdits.d.ts +16 -0
  897. package/dist/api/types/ExtractionOutputEdits.js +5 -0
  898. package/dist/api/types/FieldsArrayOutput.d.ts +8 -0
  899. package/dist/api/types/FieldsArrayOutput.js +5 -0
  900. package/dist/api/types/FigureDetails.d.ts +23 -0
  901. package/dist/api/types/FigureDetails.js +5 -0
  902. package/dist/api/types/FigureDetailsFigureType.d.ts +20 -0
  903. package/dist/api/types/FigureDetailsFigureType.js +13 -0
  904. package/dist/api/types/FileContents.d.ts +12 -0
  905. package/dist/api/types/FileContents.js +5 -0
  906. package/dist/api/types/FileContentsPagesItem.d.ts +15 -0
  907. package/dist/api/types/FileContentsPagesItem.js +5 -0
  908. package/dist/api/types/FileContentsSheetsItem.d.ts +9 -0
  909. package/dist/api/types/FileContentsSheetsItem.js +5 -0
  910. package/dist/api/types/FileMetadata.d.ts +10 -0
  911. package/dist/api/types/FileMetadata.js +5 -0
  912. package/dist/api/types/FileMetadataParentSplit.d.ts +18 -0
  913. package/dist/api/types/FileMetadataParentSplit.js +5 -0
  914. package/dist/api/types/FileType.d.ts +17 -0
  915. package/dist/api/types/FileType.js +16 -0
  916. package/dist/api/types/File_.d.ts +40 -0
  917. package/dist/api/types/File_.js +5 -0
  918. package/dist/api/types/Insight.d.ts +9 -0
  919. package/dist/api/types/Insight.js +5 -0
  920. package/dist/api/types/JsonObject.d.ts +7 -0
  921. package/dist/api/types/JsonObject.js +5 -0
  922. package/dist/api/types/JsonOutput.d.ts +10 -0
  923. package/dist/api/types/JsonOutput.js +5 -0
  924. package/dist/api/types/JsonOutputMetadataValue.d.ts +12 -0
  925. package/dist/api/types/JsonOutputMetadataValue.js +5 -0
  926. package/dist/api/types/JsonOutputMetadataValueCitationsItem.d.ts +12 -0
  927. package/dist/api/types/JsonOutputMetadataValueCitationsItem.js +5 -0
  928. package/dist/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.d.ts +9 -0
  929. package/dist/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.js +5 -0
  930. package/dist/api/types/JsonOutputMetadataValueInsightsItem.d.ts +9 -0
  931. package/dist/api/types/JsonOutputMetadataValueInsightsItem.js +5 -0
  932. package/dist/api/types/MaxPageSize.d.ts +7 -0
  933. package/dist/api/types/MaxPageSize.js +5 -0
  934. package/dist/api/types/NextPageToken.d.ts +11 -0
  935. package/dist/api/types/NextPageToken.js +5 -0
  936. package/dist/api/types/OutputMetadata.d.ts +5 -0
  937. package/dist/api/types/OutputMetadata.js +5 -0
  938. package/dist/api/types/OutputMetadataValue.d.ts +12 -0
  939. package/dist/api/types/OutputMetadataValue.js +5 -0
  940. package/dist/api/types/ParseConfig.d.ts +21 -0
  941. package/dist/api/types/ParseConfig.js +5 -0
  942. package/dist/api/types/ParseConfigAdvancedOptions.d.ts +7 -0
  943. package/dist/api/types/ParseConfigAdvancedOptions.js +5 -0
  944. package/dist/api/types/ParseConfigBlockOptions.d.ts +15 -0
  945. package/dist/api/types/ParseConfigBlockOptions.js +5 -0
  946. package/dist/api/types/ParseConfigBlockOptionsFigures.d.ts +12 -0
  947. package/dist/api/types/ParseConfigBlockOptionsFigures.js +5 -0
  948. package/dist/api/types/ParseConfigBlockOptionsTables.d.ts +17 -0
  949. package/dist/api/types/ParseConfigBlockOptionsTables.js +5 -0
  950. package/dist/api/types/ParseConfigBlockOptionsTablesTargetFormat.d.ts +13 -0
  951. package/dist/api/types/ParseConfigBlockOptionsTablesTargetFormat.js +10 -0
  952. package/dist/api/types/ParseConfigBlockOptionsText.d.ts +10 -0
  953. package/dist/api/types/ParseConfigBlockOptionsText.js +5 -0
  954. package/dist/api/types/ParseConfigChunkingStrategy.d.ts +21 -0
  955. package/dist/api/types/ParseConfigChunkingStrategy.js +5 -0
  956. package/dist/api/types/ParseConfigChunkingStrategyType.d.ts +16 -0
  957. package/dist/api/types/ParseConfigChunkingStrategyType.js +11 -0
  958. package/dist/api/types/ParseConfigTarget.d.ts +14 -0
  959. package/dist/api/types/ParseConfigTarget.js +10 -0
  960. package/dist/api/types/ParseError.d.ts +10 -0
  961. package/dist/api/types/ParseError.js +5 -0
  962. package/dist/api/types/ParseErrorCode.d.ts +16 -0
  963. package/dist/api/types/ParseErrorCode.js +18 -0
  964. package/dist/api/types/ParseRequestFile.d.ts +18 -0
  965. package/dist/api/types/ParseRequestFile.js +5 -0
  966. package/dist/api/types/ParseResponse.d.ts +30 -0
  967. package/dist/api/types/ParseResponse.js +5 -0
  968. package/dist/api/types/ParseResponseMetrics.d.ts +12 -0
  969. package/dist/api/types/ParseResponseMetrics.js +5 -0
  970. package/dist/api/types/ParseResponseStatus.d.ts +13 -0
  971. package/dist/api/types/ParseResponseStatus.js +10 -0
  972. package/dist/api/types/Polygon.d.ts +9 -0
  973. package/dist/api/types/Polygon.js +5 -0
  974. package/dist/api/types/Processor.d.ts +34 -0
  975. package/dist/api/types/Processor.js +5 -0
  976. package/dist/api/types/ProcessorId.d.ts +9 -0
  977. package/dist/api/types/ProcessorId.js +5 -0
  978. package/dist/api/types/ProcessorOutput.d.ts +8 -0
  979. package/dist/api/types/ProcessorOutput.js +5 -0
  980. package/dist/api/types/ProcessorRun.d.ts +77 -0
  981. package/dist/api/types/ProcessorRun.js +5 -0
  982. package/dist/api/types/ProcessorRunConfig.d.ts +19 -0
  983. package/dist/api/types/ProcessorRunConfig.js +5 -0
  984. package/dist/api/types/ProcessorRunFileInput.d.ts +14 -0
  985. package/dist/api/types/ProcessorRunFileInput.js +5 -0
  986. package/dist/api/types/ProcessorRunMergedProcessorsItem.d.ts +19 -0
  987. package/dist/api/types/ProcessorRunMergedProcessorsItem.js +5 -0
  988. package/dist/api/types/ProcessorRunStatus.d.ts +15 -0
  989. package/dist/api/types/ProcessorRunStatus.js +11 -0
  990. package/dist/api/types/ProcessorRunType.d.ts +15 -0
  991. package/dist/api/types/ProcessorRunType.js +11 -0
  992. package/dist/api/types/ProcessorType.d.ts +15 -0
  993. package/dist/api/types/ProcessorType.js +11 -0
  994. package/dist/api/types/ProcessorVersion.d.ts +57 -0
  995. package/dist/api/types/ProcessorVersion.js +5 -0
  996. package/dist/api/types/ProcessorVersionConfig.d.ts +21 -0
  997. package/dist/api/types/ProcessorVersionConfig.js +5 -0
  998. package/dist/api/types/ProvidedClassifierOutput.d.ts +11 -0
  999. package/dist/api/types/ProvidedClassifierOutput.js +5 -0
  1000. package/dist/api/types/ProvidedExtractionFieldResult.d.ts +15 -0
  1001. package/dist/api/types/ProvidedExtractionFieldResult.js +5 -0
  1002. package/dist/api/types/ProvidedExtractionFieldResultType.d.ts +18 -0
  1003. package/dist/api/types/ProvidedExtractionFieldResultType.js +17 -0
  1004. package/dist/api/types/ProvidedExtractionOutput.d.ts +5 -0
  1005. package/dist/api/types/ProvidedExtractionOutput.js +5 -0
  1006. package/dist/api/types/ProvidedFieldsArrayOutput.d.ts +8 -0
  1007. package/dist/api/types/ProvidedFieldsArrayOutput.js +5 -0
  1008. package/dist/api/types/ProvidedJsonOutput.d.ts +9 -0
  1009. package/dist/api/types/ProvidedJsonOutput.js +5 -0
  1010. package/dist/api/types/ProvidedProcessorOutput.d.ts +5 -0
  1011. package/dist/api/types/ProvidedProcessorOutput.js +5 -0
  1012. package/dist/api/types/ProvidedSplitterOutput.d.ts +7 -0
  1013. package/dist/api/types/ProvidedSplitterOutput.js +5 -0
  1014. package/dist/api/types/ProvidedSplitterOutputSplitsItem.d.ts +19 -0
  1015. package/dist/api/types/ProvidedSplitterOutputSplitsItem.js +5 -0
  1016. package/dist/api/types/SortByEnum.d.ts +8 -0
  1017. package/dist/api/types/SortByEnum.js +10 -0
  1018. package/dist/api/types/SortDirEnum.d.ts +8 -0
  1019. package/dist/api/types/SortDirEnum.js +10 -0
  1020. package/dist/api/types/SplitterAdvancedOptions.d.ts +14 -0
  1021. package/dist/api/types/SplitterAdvancedOptions.js +5 -0
  1022. package/dist/api/types/SplitterAdvancedOptionsSplitMethod.d.ts +11 -0
  1023. package/dist/api/types/SplitterAdvancedOptionsSplitMethod.js +10 -0
  1024. package/dist/api/types/SplitterConfig.d.ts +16 -0
  1025. package/dist/api/types/SplitterConfig.js +5 -0
  1026. package/dist/api/types/SplitterMetrics.d.ts +21 -0
  1027. package/dist/api/types/SplitterMetrics.js +5 -0
  1028. package/dist/api/types/SplitterOutput.d.ts +8 -0
  1029. package/dist/api/types/SplitterOutput.js +5 -0
  1030. package/dist/api/types/SplitterOutputSplitsItem.d.ts +23 -0
  1031. package/dist/api/types/SplitterOutputSplitsItem.js +5 -0
  1032. package/dist/api/types/StepRun.d.ts +29 -0
  1033. package/dist/api/types/StepRun.js +5 -0
  1034. package/dist/api/types/StepRunOutput.d.ts +12 -0
  1035. package/dist/api/types/StepRunOutput.js +5 -0
  1036. package/dist/api/types/StepRunOutputRulesItem.d.ts +21 -0
  1037. package/dist/api/types/StepRunOutputRulesItem.js +5 -0
  1038. package/dist/api/types/StepRunOutputRulesItemFailureReason.d.ts +15 -0
  1039. package/dist/api/types/StepRunOutputRulesItemFailureReason.js +11 -0
  1040. package/dist/api/types/StepRunStatus.d.ts +17 -0
  1041. package/dist/api/types/StepRunStatus.js +12 -0
  1042. package/dist/api/types/StepRunStep.d.ts +26 -0
  1043. package/dist/api/types/StepRunStep.js +5 -0
  1044. package/dist/api/types/StepRunStepType.d.ts +13 -0
  1045. package/dist/api/types/StepRunStepType.js +10 -0
  1046. package/dist/api/types/TableCellDetails.d.ts +12 -0
  1047. package/dist/api/types/TableCellDetails.js +5 -0
  1048. package/dist/api/types/TableDetails.d.ts +14 -0
  1049. package/dist/api/types/TableDetails.js +5 -0
  1050. package/dist/api/types/WebhookEvent.d.ts +12 -0
  1051. package/dist/api/types/WebhookEvent.js +5 -0
  1052. package/dist/api/types/WebhookEventEventType.d.ts +24 -0
  1053. package/dist/api/types/WebhookEventEventType.js +23 -0
  1054. package/dist/api/types/WebhookEventPayload.d.ts +8 -0
  1055. package/dist/api/types/WebhookEventPayload.js +5 -0
  1056. package/dist/api/types/WebhookEventProcessor.d.ts +13 -0
  1057. package/dist/api/types/WebhookEventProcessor.js +5 -0
  1058. package/dist/api/types/WebhookEventProcessorEventType.d.ts +10 -0
  1059. package/dist/api/types/WebhookEventProcessorEventType.js +12 -0
  1060. package/dist/api/types/WebhookEventProcessorRun.d.ts +13 -0
  1061. package/dist/api/types/WebhookEventProcessorRun.js +5 -0
  1062. package/dist/api/types/WebhookEventProcessorRunEventType.d.ts +8 -0
  1063. package/dist/api/types/WebhookEventProcessorRunEventType.js +10 -0
  1064. package/dist/api/types/WebhookEventProcessorVersion.d.ts +13 -0
  1065. package/dist/api/types/WebhookEventProcessorVersion.js +5 -0
  1066. package/dist/api/types/WebhookEventWorkflow.d.ts +13 -0
  1067. package/dist/api/types/WebhookEventWorkflow.js +5 -0
  1068. package/dist/api/types/WebhookEventWorkflowEventType.d.ts +9 -0
  1069. package/dist/api/types/WebhookEventWorkflowEventType.js +11 -0
  1070. package/dist/api/types/WebhookEventWorkflowRun.d.ts +13 -0
  1071. package/dist/api/types/WebhookEventWorkflowRun.js +5 -0
  1072. package/dist/api/types/WebhookEventWorkflowRunEventType.d.ts +11 -0
  1073. package/dist/api/types/WebhookEventWorkflowRunEventType.js +13 -0
  1074. package/dist/api/types/Workflow.d.ts +25 -0
  1075. package/dist/api/types/Workflow.js +5 -0
  1076. package/dist/api/types/WorkflowRun.d.ts +86 -0
  1077. package/dist/api/types/WorkflowRun.js +5 -0
  1078. package/dist/api/types/WorkflowRunFileInput.d.ts +21 -0
  1079. package/dist/api/types/WorkflowRunFileInput.js +5 -0
  1080. package/dist/api/types/WorkflowRunFileInputOutputsItem.d.ts +13 -0
  1081. package/dist/api/types/WorkflowRunFileInputOutputsItem.js +5 -0
  1082. package/dist/api/types/WorkflowRunSummary.d.ts +85 -0
  1083. package/dist/api/types/WorkflowRunSummary.js +5 -0
  1084. package/dist/api/types/WorkflowStatus.d.ts +21 -0
  1085. package/dist/api/types/WorkflowStatus.js +14 -0
  1086. package/dist/api/types/index.d.ts +145 -0
  1087. package/dist/api/types/index.js +161 -0
  1088. package/dist/core/auth/BasicAuth.d.ts +8 -0
  1089. package/dist/core/auth/BasicAuth.js +26 -0
  1090. package/dist/core/auth/BearerToken.d.ts +5 -0
  1091. package/dist/core/auth/BearerToken.js +15 -0
  1092. package/dist/core/auth/index.d.ts +2 -0
  1093. package/dist/core/auth/index.js +7 -0
  1094. package/dist/core/fetcher/APIResponse.d.ts +20 -0
  1095. package/dist/core/fetcher/APIResponse.js +2 -0
  1096. package/dist/core/fetcher/Fetcher.d.ts +39 -0
  1097. package/dist/core/fetcher/Fetcher.js +107 -0
  1098. package/dist/core/fetcher/Headers.d.ts +2 -0
  1099. package/dist/core/fetcher/Headers.js +84 -0
  1100. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  1101. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  1102. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  1103. package/dist/core/fetcher/RawResponse.js +44 -0
  1104. package/dist/core/fetcher/Supplier.d.ts +4 -0
  1105. package/dist/core/fetcher/Supplier.js +22 -0
  1106. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  1107. package/dist/core/fetcher/createRequestUrl.js +12 -0
  1108. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  1109. package/dist/core/fetcher/getFetchFn.js +68 -0
  1110. package/dist/core/fetcher/getHeader.d.ts +1 -0
  1111. package/dist/core/fetcher/getHeader.js +11 -0
  1112. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  1113. package/dist/core/fetcher/getRequestBody.js +23 -0
  1114. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  1115. package/dist/core/fetcher/getResponseBody.js +54 -0
  1116. package/dist/core/fetcher/index.d.ts +8 -0
  1117. package/dist/core/fetcher/index.js +15 -0
  1118. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  1119. package/dist/core/fetcher/makeRequest.js +42 -0
  1120. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  1121. package/dist/core/fetcher/requestWithRetries.js +40 -0
  1122. package/dist/core/fetcher/signals.d.ts +11 -0
  1123. package/dist/core/fetcher/signals.js +36 -0
  1124. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  1125. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  1126. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  1127. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
  1128. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  1129. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  1130. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  1131. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
  1132. package/dist/core/form-data-utils/FormDataWrapper.d.ts +63 -0
  1133. package/dist/core/form-data-utils/FormDataWrapper.js +227 -0
  1134. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
  1135. package/dist/core/form-data-utils/encodeAsFormParameter.js +18 -0
  1136. package/dist/core/form-data-utils/index.d.ts +2 -0
  1137. package/dist/core/form-data-utils/index.js +20 -0
  1138. package/dist/core/index.d.ts +4 -0
  1139. package/dist/core/index.js +20 -0
  1140. package/dist/core/json.d.ts +15 -0
  1141. package/dist/core/json.js +24 -0
  1142. package/dist/core/runtime/index.d.ts +1 -0
  1143. package/dist/core/runtime/index.js +5 -0
  1144. package/dist/core/runtime/runtime.d.ts +9 -0
  1145. package/dist/core/runtime/runtime.js +103 -0
  1146. package/dist/environments.d.ts +7 -0
  1147. package/dist/environments.js +9 -0
  1148. package/dist/errors/ExtendError.d.ts +15 -0
  1149. package/dist/errors/ExtendError.js +30 -0
  1150. package/dist/errors/ExtendTimeoutError.d.ts +6 -0
  1151. package/dist/errors/ExtendTimeoutError.js +13 -0
  1152. package/dist/errors/index.d.ts +2 -0
  1153. package/dist/errors/index.js +7 -0
  1154. package/dist/index.d.ts +4 -0
  1155. package/dist/index.js +44 -0
  1156. package/dist/version.d.ts +1 -0
  1157. package/dist/version.js +4 -0
  1158. package/environments.d.ts +7 -0
  1159. package/environments.js +9 -0
  1160. package/errors/ExtendError.d.ts +15 -0
  1161. package/errors/ExtendError.js +30 -0
  1162. package/errors/ExtendTimeoutError.d.ts +6 -0
  1163. package/errors/ExtendTimeoutError.js +13 -0
  1164. package/errors/index.d.ts +2 -0
  1165. package/errors/index.js +7 -0
  1166. package/index.d.ts +4 -0
  1167. package/index.js +44 -0
  1168. package/jest.config.mjs +8 -0
  1169. package/package.json +45 -0
  1170. package/reference.md +1701 -0
  1171. package/scripts/rename-to-esm-files.js +115 -0
  1172. package/version.d.ts +1 -0
  1173. package/version.js +4 -0
@@ -0,0 +1,310 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.EvaluationSetItem = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const Extend = __importStar(require("../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class EvaluationSetItem {
58
+ constructor(_options) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Evaluation set items are the individual files and expected outputs that are used to evaluate the performance of a given processor in Extend. This endpoint will create a new evaluation set item in Extend, which will be used during an evaluation run.
63
+ *
64
+ * Best Practices for Outputs in Evaluation Sets:
65
+ * - **Configure First, Output Later**
66
+ * - Always create and finalize your processor configuration before creating evaluation sets
67
+ * - Field IDs in outputs must match those defined in your processor configuration
68
+ * - **Type Consistency**
69
+ * - Ensure output types exactly match your processor configuration
70
+ * - For example, if a field is configured as "currency", don't submit a simple number value
71
+ * - **Field IDs**
72
+ * - Use the exact field IDs from your processor configuration
73
+ * - Create your own semantic IDs instead in the configs for each field/type instead of using the generated ones
74
+ * - **Value**
75
+ * - Remember that all results are inside the value key of a result object, except the values within nested structures.
76
+ *
77
+ * @param {Extend.EvaluationSetItemCreateRequest} request
78
+ * @param {EvaluationSetItem.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link Extend.BadRequestError}
81
+ * @throws {@link Extend.UnauthorizedError}
82
+ *
83
+ * @example
84
+ * await client.evaluationSetItem.create({
85
+ * evaluationSetId: "evaluation_set_id_here",
86
+ * fileId: "file_id_here",
87
+ * expectedOutput: {
88
+ * value: {
89
+ * "key": "value"
90
+ * }
91
+ * }
92
+ * })
93
+ */
94
+ create(request, requestOptions) {
95
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
96
+ }
97
+ __create(request, requestOptions) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ var _a, _b, _c, _d, _e, _f;
100
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
101
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "evaluation_set_items"),
102
+ method: "POST",
103
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ contentType: "application/json",
105
+ requestType: "json",
106
+ body: request,
107
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
108
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
109
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
+ });
111
+ if (_response.ok) {
112
+ return {
113
+ data: _response.body,
114
+ rawResponse: _response.rawResponse,
115
+ };
116
+ }
117
+ if (_response.error.reason === "status-code") {
118
+ switch (_response.error.statusCode) {
119
+ case 400:
120
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
121
+ case 401:
122
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
123
+ default:
124
+ throw new errors.ExtendError({
125
+ statusCode: _response.error.statusCode,
126
+ body: _response.error.body,
127
+ rawResponse: _response.rawResponse,
128
+ });
129
+ }
130
+ }
131
+ switch (_response.error.reason) {
132
+ case "non-json":
133
+ throw new errors.ExtendError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.rawBody,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ case "timeout":
139
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling POST /evaluation_set_items.");
140
+ case "unknown":
141
+ throw new errors.ExtendError({
142
+ message: _response.error.errorMessage,
143
+ rawResponse: _response.rawResponse,
144
+ });
145
+ }
146
+ });
147
+ }
148
+ /**
149
+ * If you need to change the expected output for a given evaluation set item, you can use this endpoint to update the item. This can be useful if you need to correct an error in the expected output or if the output of the processor has changed.
150
+ *
151
+ * @param {string} id - The ID of the evaluation set item to update.
152
+ *
153
+ * Example: `"evi_kR9mNP12Qw4yTv8BdR3H"`
154
+ * @param {Extend.EvaluationSetItemUpdateRequest} request
155
+ * @param {EvaluationSetItem.RequestOptions} requestOptions - Request-specific configuration.
156
+ *
157
+ * @throws {@link Extend.BadRequestError}
158
+ * @throws {@link Extend.UnauthorizedError}
159
+ * @throws {@link Extend.NotFoundError}
160
+ *
161
+ * @example
162
+ * await client.evaluationSetItem.update("evaluation_set_item_id_here", {
163
+ * expectedOutput: {
164
+ * value: {
165
+ * "key": "value"
166
+ * }
167
+ * }
168
+ * })
169
+ */
170
+ update(id, request, requestOptions) {
171
+ return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
172
+ }
173
+ __update(id, request, requestOptions) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ var _a, _b, _c, _d, _e, _f;
176
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
177
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, `evaluation_set_items/${encodeURIComponent(id)}`),
178
+ method: "POST",
179
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ contentType: "application/json",
181
+ requestType: "json",
182
+ body: request,
183
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
184
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
185
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
186
+ });
187
+ if (_response.ok) {
188
+ return {
189
+ data: _response.body,
190
+ rawResponse: _response.rawResponse,
191
+ };
192
+ }
193
+ if (_response.error.reason === "status-code") {
194
+ switch (_response.error.statusCode) {
195
+ case 400:
196
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
197
+ case 401:
198
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
199
+ case 404:
200
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
201
+ default:
202
+ throw new errors.ExtendError({
203
+ statusCode: _response.error.statusCode,
204
+ body: _response.error.body,
205
+ rawResponse: _response.rawResponse,
206
+ });
207
+ }
208
+ }
209
+ switch (_response.error.reason) {
210
+ case "non-json":
211
+ throw new errors.ExtendError({
212
+ statusCode: _response.error.statusCode,
213
+ body: _response.error.rawBody,
214
+ rawResponse: _response.rawResponse,
215
+ });
216
+ case "timeout":
217
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling POST /evaluation_set_items/{id}.");
218
+ case "unknown":
219
+ throw new errors.ExtendError({
220
+ message: _response.error.errorMessage,
221
+ rawResponse: _response.rawResponse,
222
+ });
223
+ }
224
+ });
225
+ }
226
+ /**
227
+ * If you have a large number of files that you need to add to an evaluation set, you can use this endpoint to create multiple evaluation set items at once. This can be useful if you have a large dataset that you need to evaluate the performance of a processor against.
228
+ *
229
+ * Note: you still need to create each File first using the file API.
230
+ *
231
+ * @param {Extend.EvaluationSetItemCreateBatchRequest} request
232
+ * @param {EvaluationSetItem.RequestOptions} requestOptions - Request-specific configuration.
233
+ *
234
+ * @throws {@link Extend.BadRequestError}
235
+ * @throws {@link Extend.UnauthorizedError}
236
+ *
237
+ * @example
238
+ * await client.evaluationSetItem.createBatch({
239
+ * evaluationSetId: "evaluation_set_id_here",
240
+ * items: [{
241
+ * fileId: "file_id_here",
242
+ * expectedOutput: {
243
+ * value: {
244
+ * "key": "value"
245
+ * }
246
+ * }
247
+ * }]
248
+ * })
249
+ */
250
+ createBatch(request, requestOptions) {
251
+ return core.HttpResponsePromise.fromPromise(this.__createBatch(request, requestOptions));
252
+ }
253
+ __createBatch(request, requestOptions) {
254
+ return __awaiter(this, void 0, void 0, function* () {
255
+ var _a, _b, _c, _d, _e, _f;
256
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "evaluation_set_items/bulk"),
258
+ method: "POST",
259
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
+ contentType: "application/json",
261
+ requestType: "json",
262
+ body: request,
263
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
264
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
265
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
266
+ });
267
+ if (_response.ok) {
268
+ return {
269
+ data: _response.body,
270
+ rawResponse: _response.rawResponse,
271
+ };
272
+ }
273
+ if (_response.error.reason === "status-code") {
274
+ switch (_response.error.statusCode) {
275
+ case 400:
276
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
277
+ case 401:
278
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
279
+ default:
280
+ throw new errors.ExtendError({
281
+ statusCode: _response.error.statusCode,
282
+ body: _response.error.body,
283
+ rawResponse: _response.rawResponse,
284
+ });
285
+ }
286
+ }
287
+ switch (_response.error.reason) {
288
+ case "non-json":
289
+ throw new errors.ExtendError({
290
+ statusCode: _response.error.statusCode,
291
+ body: _response.error.rawBody,
292
+ rawResponse: _response.rawResponse,
293
+ });
294
+ case "timeout":
295
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling POST /evaluation_set_items/bulk.");
296
+ case "unknown":
297
+ throw new errors.ExtendError({
298
+ message: _response.error.errorMessage,
299
+ rawResponse: _response.rawResponse,
300
+ });
301
+ }
302
+ });
303
+ }
304
+ _getAuthorizationHeader() {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
307
+ });
308
+ }
309
+ }
310
+ exports.EvaluationSetItem = EvaluationSetItem;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * evaluationSetId: "evaluation_set_id_here",
9
+ * items: [{
10
+ * fileId: "file_id_here",
11
+ * expectedOutput: {
12
+ * value: {
13
+ * "key": "value"
14
+ * }
15
+ * }
16
+ * }]
17
+ * }
18
+ */
19
+ export interface EvaluationSetItemCreateBatchRequest {
20
+ /**
21
+ * The ID of the evaluation set to add the items to.
22
+ *
23
+ * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"`
24
+ */
25
+ evaluationSetId: string;
26
+ /** An array of objects representing the evaluation set items to create */
27
+ items: Extend.EvaluationSetItemCreateBatchRequestItemsItem[];
28
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * evaluationSetId: "evaluation_set_id_here",
9
+ * fileId: "file_id_here",
10
+ * expectedOutput: {
11
+ * value: {
12
+ * "key": "value"
13
+ * }
14
+ * }
15
+ * }
16
+ */
17
+ export interface EvaluationSetItemCreateRequest {
18
+ /**
19
+ * The ID of the evaluation set to add the item to.
20
+ *
21
+ * Example: `"ev_Xj8mK2pL9nR4vT7qY5wZ"`
22
+ */
23
+ evaluationSetId: string;
24
+ /**
25
+ * Extend's internal ID for the file. It will always start with "file_".
26
+ *
27
+ * Example: `"file_xK9mLPqRtN3vS8wF5hB2cQ"`
28
+ */
29
+ fileId: string;
30
+ /** The expected output that will be used to evaluate the processor's performance. */
31
+ expectedOutput: Extend.ProvidedProcessorOutput;
32
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * expectedOutput: {
9
+ * value: {
10
+ * "key": "value"
11
+ * }
12
+ * }
13
+ * }
14
+ */
15
+ export interface EvaluationSetItemUpdateRequest {
16
+ /** The expected output of the processor when run against the file */
17
+ expectedOutput: Extend.ProvidedProcessorOutput;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { type EvaluationSetItemCreateRequest } from "./EvaluationSetItemCreateRequest";
2
+ export { type EvaluationSetItemUpdateRequest } from "./EvaluationSetItemUpdateRequest";
3
+ export { type EvaluationSetItemCreateBatchRequest } from "./EvaluationSetItemCreateBatchRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
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("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../index";
5
+ export interface EvaluationSetItemCreateBatchRequestItemsItem {
6
+ /**
7
+ * Extend's internal ID for the file. It will always start with "file_".
8
+ *
9
+ * Example: `"file_xK9mLPqRtN3vS8wF5hB2cQ"`
10
+ */
11
+ fileId: string;
12
+ /** The expected output of the processor when run against the file */
13
+ expectedOutput: Extend.ProvidedProcessorOutput;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../index";
5
+ export interface EvaluationSetItemCreateBatchResponse {
6
+ success: boolean;
7
+ evaluationSetItems: Extend.EvaluationSetItem[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../index";
5
+ export interface EvaluationSetItemCreateResponse {
6
+ success: boolean;
7
+ evaluationSetItem: Extend.EvaluationSetItem;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../index";
5
+ export interface EvaluationSetItemUpdateResponse {
6
+ success: boolean;
7
+ evaluationSetItem: Extend.EvaluationSetItem;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from "./EvaluationSetItemCreateResponse";
2
+ export * from "./EvaluationSetItemUpdateResponse";
3
+ export * from "./EvaluationSetItemCreateBatchRequestItemsItem";
4
+ export * from "./EvaluationSetItemCreateBatchResponse";
@@ -0,0 +1,20 @@
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("./EvaluationSetItemCreateResponse"), exports);
18
+ __exportStar(require("./EvaluationSetItemUpdateResponse"), exports);
19
+ __exportStar(require("./EvaluationSetItemCreateBatchRequestItemsItem"), exports);
20
+ __exportStar(require("./EvaluationSetItemCreateBatchResponse"), exports);