extend-ai 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +6 -0
  3. package/Client.js +51 -38
  4. package/api/client/requests/ParseRequest.d.ts +2 -0
  5. package/api/resources/batchProcessorRun/client/Client.d.ts +2 -1
  6. package/api/resources/batchProcessorRun/client/Client.js +10 -5
  7. package/api/resources/batchProcessorRun/client/index.d.ts +1 -1
  8. package/api/resources/batchProcessorRun/client/index.js +15 -0
  9. package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.d.ts +8 -0
  10. package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.js +3 -0
  11. package/api/resources/batchProcessorRun/client/requests/index.d.ts +1 -0
  12. package/api/resources/batchProcessorRun/client/requests/index.js +2 -0
  13. package/api/resources/classifierVersions/client/Client.d.ts +2 -1
  14. package/api/resources/classifierVersions/client/Client.js +32 -9
  15. package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +2 -0
  16. package/api/resources/classifierVersions/client/requests/ClassifierVersionsListRequest.d.ts +2 -0
  17. package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts +8 -0
  18. package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.js +3 -0
  19. package/api/resources/classifierVersions/client/requests/index.d.ts +1 -0
  20. package/api/resources/classifiers/client/Client.d.ts +2 -1
  21. package/api/resources/classifiers/client/Client.js +32 -9
  22. package/api/resources/classifiers/client/requests/ClassifiersListRequest.d.ts +2 -0
  23. package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.d.ts +8 -0
  24. package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.js +3 -0
  25. package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +2 -0
  26. package/api/resources/classifiers/client/requests/index.d.ts +1 -0
  27. package/api/resources/classifyRuns/client/Client.d.ts +6 -3
  28. package/api/resources/classifyRuns/client/Client.js +35 -17
  29. package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.d.ts +8 -0
  30. package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.js +3 -0
  31. package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.d.ts +8 -0
  32. package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.js +3 -0
  33. package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +2 -0
  34. package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.d.ts +8 -0
  35. package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.js +3 -0
  36. package/api/resources/classifyRuns/client/requests/index.d.ts +3 -0
  37. package/api/resources/editRuns/client/Client.d.ts +4 -2
  38. package/api/resources/editRuns/client/Client.js +20 -10
  39. package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.d.ts +8 -0
  40. package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.js +3 -0
  41. package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.d.ts +8 -0
  42. package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.js +3 -0
  43. package/api/resources/editRuns/client/requests/index.d.ts +2 -0
  44. package/api/resources/editSchemas/client/Client.d.ts +49 -0
  45. package/api/resources/editSchemas/client/Client.js +147 -0
  46. package/api/resources/editSchemas/client/index.d.ts +1 -0
  47. package/api/resources/editSchemas/client/index.js +17 -0
  48. package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.d.ts +20 -0
  49. package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.js +3 -0
  50. package/api/resources/editSchemas/client/requests/index.d.ts +1 -0
  51. package/api/resources/editSchemas/client/requests/index.js +2 -0
  52. package/api/resources/editSchemas/index.d.ts +2 -0
  53. package/api/resources/editSchemas/index.js +18 -0
  54. package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.d.ts +5 -0
  55. package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.js +3 -0
  56. package/api/resources/editSchemas/types/index.d.ts +1 -0
  57. package/api/resources/editSchemas/types/index.js +17 -0
  58. package/api/resources/evaluationSetItems/client/Client.d.ts +4 -2
  59. package/api/resources/evaluationSetItems/client/Client.js +48 -16
  60. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +2 -0
  61. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.d.ts +8 -0
  62. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.js +3 -0
  63. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsListRequest.d.ts +2 -0
  64. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.d.ts +8 -0
  65. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.js +3 -0
  66. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +2 -0
  67. package/api/resources/evaluationSetItems/client/requests/index.d.ts +2 -0
  68. package/api/resources/evaluationSetRuns/client/Client.d.ts +2 -1
  69. package/api/resources/evaluationSetRuns/client/Client.js +10 -5
  70. package/api/resources/evaluationSetRuns/client/index.d.ts +1 -1
  71. package/api/resources/evaluationSetRuns/client/index.js +15 -0
  72. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.d.ts +8 -0
  73. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.js +3 -0
  74. package/api/resources/evaluationSetRuns/client/requests/index.d.ts +1 -0
  75. package/api/resources/evaluationSetRuns/client/requests/index.js +2 -0
  76. package/api/resources/evaluationSets/client/Client.d.ts +2 -1
  77. package/api/resources/evaluationSets/client/Client.js +15 -7
  78. package/api/resources/evaluationSets/client/requests/EvaluationSetsListRequest.d.ts +2 -0
  79. package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.d.ts +8 -0
  80. package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.js +3 -0
  81. package/api/resources/evaluationSets/client/requests/index.d.ts +1 -0
  82. package/api/resources/extractRuns/client/Client.d.ts +6 -3
  83. package/api/resources/extractRuns/client/Client.js +35 -17
  84. package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.d.ts +8 -0
  85. package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.js +3 -0
  86. package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.d.ts +8 -0
  87. package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.js +3 -0
  88. package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +2 -0
  89. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +8 -0
  90. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.js +3 -0
  91. package/api/resources/extractRuns/client/requests/index.d.ts +3 -0
  92. package/api/resources/extractorVersions/client/Client.d.ts +2 -1
  93. package/api/resources/extractorVersions/client/Client.js +32 -9
  94. package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +2 -0
  95. package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +2 -0
  96. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +8 -0
  97. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.js +3 -0
  98. package/api/resources/extractorVersions/client/requests/index.d.ts +1 -0
  99. package/api/resources/extractors/client/Client.d.ts +2 -1
  100. package/api/resources/extractors/client/Client.js +32 -9
  101. package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +2 -0
  102. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +8 -0
  103. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.js +3 -0
  104. package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +2 -0
  105. package/api/resources/extractors/client/requests/index.d.ts +1 -0
  106. package/api/resources/files/client/Client.d.ts +2 -1
  107. package/api/resources/files/client/Client.js +21 -10
  108. package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +8 -0
  109. package/api/resources/files/client/requests/FilesDeleteRequest.js +3 -0
  110. package/api/resources/files/client/requests/FilesListRequest.d.ts +2 -0
  111. package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +2 -0
  112. package/api/resources/files/client/requests/FilesUploadRequest.d.ts +2 -0
  113. package/api/resources/files/client/requests/index.d.ts +1 -0
  114. package/api/resources/index.d.ts +9 -0
  115. package/api/resources/index.js +10 -1
  116. package/api/resources/parseRuns/client/Client.d.ts +2 -1
  117. package/api/resources/parseRuns/client/Client.js +15 -7
  118. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +8 -0
  119. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.js +3 -0
  120. package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +2 -0
  121. package/api/resources/parseRuns/client/requests/index.d.ts +1 -0
  122. package/api/resources/processor/client/Client.js +22 -4
  123. package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +2 -0
  124. package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +2 -0
  125. package/api/resources/processorRun/client/Client.d.ts +6 -3
  126. package/api/resources/processorRun/client/Client.js +35 -17
  127. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +8 -0
  128. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.js +3 -0
  129. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +8 -0
  130. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.js +3 -0
  131. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +8 -0
  132. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.js +3 -0
  133. package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +2 -0
  134. package/api/resources/processorRun/client/requests/index.d.ts +3 -0
  135. package/api/resources/processorVersion/client/Client.d.ts +4 -2
  136. package/api/resources/processorVersion/client/Client.js +37 -12
  137. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +2 -0
  138. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +8 -0
  139. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.js +3 -0
  140. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +8 -0
  141. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.js +3 -0
  142. package/api/resources/processorVersion/client/requests/index.d.ts +2 -0
  143. package/api/resources/splitRuns/client/Client.d.ts +6 -3
  144. package/api/resources/splitRuns/client/Client.js +35 -17
  145. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +8 -0
  146. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.js +3 -0
  147. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +8 -0
  148. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.js +3 -0
  149. package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +2 -0
  150. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +8 -0
  151. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.js +3 -0
  152. package/api/resources/splitRuns/client/requests/index.d.ts +3 -0
  153. package/api/resources/splitterVersions/client/Client.d.ts +2 -1
  154. package/api/resources/splitterVersions/client/Client.js +32 -9
  155. package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +2 -0
  156. package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +2 -0
  157. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +8 -0
  158. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.js +3 -0
  159. package/api/resources/splitterVersions/client/requests/index.d.ts +1 -0
  160. package/api/resources/splitters/client/Client.d.ts +2 -1
  161. package/api/resources/splitters/client/Client.js +32 -9
  162. package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +2 -0
  163. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +8 -0
  164. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.js +3 -0
  165. package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +2 -0
  166. package/api/resources/splitters/client/requests/index.d.ts +1 -0
  167. package/api/resources/webhookEndpoints/client/Client.d.ts +4 -2
  168. package/api/resources/webhookEndpoints/client/Client.js +42 -14
  169. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +8 -0
  170. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.js +3 -0
  171. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +2 -0
  172. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +8 -0
  173. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.js +3 -0
  174. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +2 -0
  175. package/api/resources/webhookEndpoints/client/requests/index.d.ts +2 -0
  176. package/api/resources/webhookSubscriptions/client/Client.d.ts +4 -2
  177. package/api/resources/webhookSubscriptions/client/Client.js +42 -14
  178. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +8 -0
  179. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.js +3 -0
  180. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +2 -0
  181. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +8 -0
  182. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.js +3 -0
  183. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +2 -0
  184. package/api/resources/webhookSubscriptions/client/requests/index.d.ts +2 -0
  185. package/api/resources/workflowRuns/client/Client.d.ts +6 -3
  186. package/api/resources/workflowRuns/client/Client.js +52 -19
  187. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +8 -0
  188. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.js +3 -0
  189. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +8 -0
  190. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.js +3 -0
  191. package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -0
  192. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +8 -0
  193. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.js +3 -0
  194. package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +2 -0
  195. package/api/resources/workflowRuns/client/requests/index.d.ts +3 -0
  196. package/api/resources/workflowVersions/client/Client.d.ts +85 -0
  197. package/api/resources/workflowVersions/client/Client.js +287 -0
  198. package/api/resources/workflowVersions/client/index.d.ts +1 -0
  199. package/api/resources/workflowVersions/client/index.js +17 -0
  200. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +17 -0
  201. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.js +3 -0
  202. package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.d.ts +12 -0
  203. package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.js +3 -0
  204. package/api/resources/workflowVersions/client/requests/index.d.ts +2 -0
  205. package/api/resources/workflowVersions/client/requests/index.js +2 -0
  206. package/api/resources/workflowVersions/index.d.ts +2 -0
  207. package/api/resources/workflowVersions/index.js +18 -0
  208. package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.d.ts +6 -0
  209. package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.js +3 -0
  210. package/api/resources/workflowVersions/types/index.d.ts +1 -0
  211. package/api/resources/workflowVersions/types/index.js +17 -0
  212. package/api/resources/workflows/client/Client.d.ts +124 -2
  213. package/api/resources/workflows/client/Client.js +281 -2
  214. package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +52 -1
  215. package/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts +13 -0
  216. package/api/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
  217. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +28 -0
  218. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.js +3 -0
  219. package/api/resources/workflows/client/requests/index.d.ts +2 -0
  220. package/api/resources/workflows/index.d.ts +1 -0
  221. package/api/resources/workflows/index.js +1 -0
  222. package/api/resources/workflows/types/WorkflowsListResponse.d.ts +6 -0
  223. package/api/resources/workflows/types/WorkflowsListResponse.js +3 -0
  224. package/api/resources/workflows/types/index.d.ts +1 -0
  225. package/api/resources/workflows/types/index.js +17 -0
  226. package/api/types/BarcodeDetails.d.ts +13 -0
  227. package/api/types/BarcodeDetails.js +3 -0
  228. package/api/types/Block.d.ts +6 -1
  229. package/api/types/BlockDetails.d.ts +1 -1
  230. package/api/types/BlockMetadata.d.ts +2 -0
  231. package/api/types/BlockMetadataTextDirection.d.ts +6 -0
  232. package/api/types/BlockMetadataTextDirection.js +9 -0
  233. package/api/types/BlockType.d.ts +11 -1
  234. package/api/types/BlockType.js +11 -1
  235. package/api/types/ClassificationNextEntry.d.ts +11 -0
  236. package/api/types/ClassificationNextEntry.js +3 -0
  237. package/api/types/ClassifierRef.d.ts +9 -0
  238. package/api/types/ClassifierRef.js +3 -0
  239. package/api/types/ClassifyStepDefinition.d.ts +27 -0
  240. package/api/types/ClassifyStepDefinition.js +3 -0
  241. package/api/types/ClassifyStepDefinitionConfig.d.ts +13 -0
  242. package/api/types/ClassifyStepDefinitionConfig.js +3 -0
  243. package/api/types/CollectStepDefinition.d.ts +10 -0
  244. package/api/types/CollectStepDefinition.js +3 -0
  245. package/api/types/ConditionalExtractStepDefinition.d.ts +15 -0
  246. package/api/types/ConditionalExtractStepDefinition.js +3 -0
  247. package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +12 -0
  248. package/api/types/ConditionalExtractStepDefinitionConfig.js +3 -0
  249. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +11 -0
  250. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.js +3 -0
  251. package/api/types/ConditionalNextEntry.d.ts +11 -0
  252. package/api/types/ConditionalNextEntry.js +3 -0
  253. package/api/types/ConditionalStepDefinition.d.ts +16 -0
  254. package/api/types/ConditionalStepDefinition.js +3 -0
  255. package/api/types/ConditionalStepDefinitionConfig.d.ts +9 -0
  256. package/api/types/ConditionalStepDefinitionConfig.js +3 -0
  257. package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +24 -0
  258. package/api/types/ConditionalStepDefinitionConfigConditionsItem.js +3 -0
  259. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +14 -0
  260. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +17 -0
  261. package/api/types/ConditionalStepDefinitionConfigConditionsItemType.d.ts +6 -0
  262. package/api/types/ConditionalStepDefinitionConfigConditionsItemType.js +9 -0
  263. package/api/types/EditConditionalClause.d.ts +22 -0
  264. package/api/types/EditConditionalClause.js +3 -0
  265. package/api/types/EditConditionalObjectProperty.d.ts +16 -0
  266. package/api/types/EditConditionalObjectProperty.js +3 -0
  267. package/api/types/EditConditionalProperty.d.ts +51 -0
  268. package/api/types/EditConditionalProperty.js +3 -0
  269. package/api/types/EditConfig.d.ts +2 -0
  270. package/api/types/EditDependentRequired.d.ts +4 -0
  271. package/api/types/EditDependentRequired.js +3 -0
  272. package/api/types/EditJson.d.ts +2 -0
  273. package/api/types/EditJsonExtendEditImage.d.ts +7 -0
  274. package/api/types/EditJsonExtendEditImage.js +3 -0
  275. package/api/types/EditRootJson.d.ts +14 -0
  276. package/api/types/EditSchemaGenerationConfig.d.ts +15 -0
  277. package/api/types/EditSchemaGenerationConfig.js +3 -0
  278. package/api/types/EditSchemaGenerationConfigAdvancedOptions.d.ts +11 -0
  279. package/api/types/EditSchemaGenerationConfigAdvancedOptions.js +3 -0
  280. package/api/types/EditSchemaGenerationMappingMatch.d.ts +9 -0
  281. package/api/types/EditSchemaGenerationMappingMatch.js +3 -0
  282. package/api/types/EditSchemaGenerationMappingResult.d.ts +12 -0
  283. package/api/types/EditSchemaGenerationMappingResult.js +3 -0
  284. package/api/types/EditSchemaGenerationResponse.d.ts +12 -0
  285. package/api/types/EditSchemaGenerationResponse.js +3 -0
  286. package/api/types/ExternalDataValidationStepDefinition.d.ts +13 -0
  287. package/api/types/ExternalDataValidationStepDefinition.js +3 -0
  288. package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +18 -0
  289. package/api/types/ExternalDataValidationStepDefinitionConfig.js +3 -0
  290. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +10 -0
  291. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +13 -0
  292. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +23 -0
  293. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.js +3 -0
  294. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +10 -0
  295. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +13 -0
  296. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.d.ts +6 -0
  297. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.js +9 -0
  298. package/api/types/ExtractStepDefinition.d.ts +15 -0
  299. package/api/types/ExtractStepDefinition.js +3 -0
  300. package/api/types/ExtractStepDefinitionConfig.d.ts +7 -0
  301. package/api/types/ExtractStepDefinitionConfig.js +3 -0
  302. package/api/types/ExtractorRef.d.ts +9 -0
  303. package/api/types/ExtractorRef.js +3 -0
  304. package/api/types/FileConversionStepDefinition.d.ts +11 -0
  305. package/api/types/FileConversionStepDefinition.js +3 -0
  306. package/api/types/FileConversionStepDefinitionConfig.d.ts +9 -0
  307. package/api/types/FileConversionStepDefinitionConfig.js +3 -0
  308. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +10 -0
  309. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +13 -0
  310. package/api/types/HumanReviewStepDefinition.d.ts +10 -0
  311. package/api/types/HumanReviewStepDefinition.js +3 -0
  312. package/api/types/KeyValueDetails.d.ts +7 -0
  313. package/api/types/KeyValueDetails.js +3 -0
  314. package/api/types/MergeExtractStepDefinition.d.ts +11 -0
  315. package/api/types/MergeExtractStepDefinition.js +3 -0
  316. package/api/types/MergeExtractStepDefinitionConfig.d.ts +9 -0
  317. package/api/types/MergeExtractStepDefinitionConfig.js +3 -0
  318. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +12 -0
  319. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +15 -0
  320. package/api/types/ParseConfigAdvancedOptions.d.ts +15 -0
  321. package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.d.ts +11 -0
  322. package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.js +14 -0
  323. package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.d.ts +13 -0
  324. package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.js +16 -0
  325. package/api/types/ParseConfigBlockOptions.d.ts +4 -0
  326. package/api/types/ParseConfigBlockOptionsBarcodes.d.ts +9 -0
  327. package/api/types/ParseConfigBlockOptionsBarcodes.js +3 -0
  328. package/api/types/ParseConfigBlockOptionsFigures.d.ts +2 -0
  329. package/api/types/ParseConfigBlockOptionsKeyValue.d.ts +7 -0
  330. package/api/types/ParseConfigBlockOptionsKeyValue.js +3 -0
  331. package/api/types/ParseStepDefinition.d.ts +11 -0
  332. package/api/types/ParseStepDefinition.js +3 -0
  333. package/api/types/ParseStepDefinitionConfig.d.ts +4 -0
  334. package/api/types/ParseStepDefinitionConfig.js +3 -0
  335. package/api/types/RuleValidationNextEntry.d.ts +12 -0
  336. package/api/types/RuleValidationNextEntry.js +3 -0
  337. package/api/types/RuleValidationNextEntryResult.d.ts +6 -0
  338. package/api/types/RuleValidationNextEntryResult.js +9 -0
  339. package/api/types/RuleValidationStepDefinition.d.ts +17 -0
  340. package/api/types/RuleValidationStepDefinition.js +3 -0
  341. package/api/types/RuleValidationStepDefinitionConfig.d.ts +12 -0
  342. package/api/types/RuleValidationStepDefinitionConfig.js +3 -0
  343. package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +10 -0
  344. package/api/types/RuleValidationStepDefinitionConfigRulesItem.js +3 -0
  345. package/api/types/SimpleNextEntry.d.ts +7 -0
  346. package/api/types/SimpleNextEntry.js +3 -0
  347. package/api/types/SplitStepDefinition.d.ts +27 -0
  348. package/api/types/SplitStepDefinition.js +3 -0
  349. package/api/types/SplitStepDefinitionConfig.d.ts +13 -0
  350. package/api/types/SplitStepDefinitionConfig.js +3 -0
  351. package/api/types/SplitterRef.d.ts +9 -0
  352. package/api/types/SplitterRef.js +3 -0
  353. package/api/types/TriggerStepDefinition.d.ts +12 -0
  354. package/api/types/TriggerStepDefinition.js +3 -0
  355. package/api/types/WebhookResponseStepDefinition.d.ts +8 -0
  356. package/api/types/WebhookResponseStepDefinition.js +3 -0
  357. package/api/types/Workflow.d.ts +10 -11
  358. package/api/types/WorkflowStepBase.d.ts +2 -0
  359. package/api/types/WorkflowStepDefinition.d.ts +51 -0
  360. package/api/types/WorkflowStepDefinition.js +3 -0
  361. package/api/types/WorkflowSummary.d.ts +9 -11
  362. package/api/types/WorkflowVersion.d.ts +11 -16
  363. package/api/types/WorkflowVersionSummary.d.ts +9 -16
  364. package/api/types/index.d.ts +61 -0
  365. package/api/types/index.js +61 -0
  366. package/package.json +1 -1
  367. package/reference.md +871 -75
  368. package/version.d.ts +1 -1
  369. package/version.js +1 -1
  370. package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.js +1 -1
  371. package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.test.js +2 -2
  372. package/wrapper/resources/editRuns/EditRunsWrapper.js +1 -1
  373. package/wrapper/resources/editRuns/EditRunsWrapper.test.js +2 -2
  374. package/wrapper/resources/extractRuns/ExtractRunsWrapper.js +1 -1
  375. package/wrapper/resources/extractRuns/ExtractRunsWrapper.test.js +2 -2
  376. package/wrapper/resources/splitRuns/SplitRunsWrapper.js +1 -1
  377. package/wrapper/resources/splitRuns/SplitRunsWrapper.test.js +2 -2
  378. package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.js +1 -1
  379. package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.test.js +5 -2
  380. package/wrapper/webhooks/Webhooks.test.js +3 -0
@@ -0,0 +1,27 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Classifies documents using a classifier. Routes to different next steps based on classification result.
4
+ *
5
+ * The classifier reference must include a pinned `version` — `"latest"` is not supported for `CLASSIFY` steps. Use a specific semver string (e.g. `"0.1"`) or `"draft"`. This is because classification IDs used for routing are tied to a specific processor version's config.
6
+ *
7
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
8
+ */
9
+ export interface ClassifyStepDefinition {
10
+ name: string;
11
+ /**
12
+ * Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured.
13
+ *
14
+ * Reference to the classifier used by this step. The `next[].classificationId` values must match classification `id` values (not `type` strings) from the referenced classifier's configuration. For example, if the classifier defines `{ "id": "cls_invoice", "type": "invoice" }`, use `"cls_invoice"` as the `classificationId`.
15
+ *
16
+ * The classifier `version` is required and must be a pinned version (semver like `"0.1"` or `"draft"`). `"latest"` is not allowed.
17
+ *
18
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
19
+ */
20
+ config?: Extend.ClassifyStepDefinitionConfig;
21
+ /**
22
+ * Can only be set when `config` is present. Each entry must include a `classificationId` matching a classification `id` from the referenced classifier's configuration. Use the classification's stable `id` (e.g. `"cls_invoice"`), not the `type` string.
23
+ *
24
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
25
+ */
26
+ next?: Extend.ClassificationNextEntry[];
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured.
4
+ *
5
+ * Reference to the classifier used by this step. The `next[].classificationId` values must match classification `id` values (not `type` strings) from the referenced classifier's configuration. For example, if the classifier defines `{ "id": "cls_invoice", "type": "invoice" }`, use `"cls_invoice"` as the `classificationId`.
6
+ *
7
+ * The classifier `version` is required and must be a pinned version (semver like `"0.1"` or `"draft"`). `"latest"` is not allowed.
8
+ *
9
+ * See the [Classify step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#classify-step).
10
+ */
11
+ export interface ClassifyStepDefinitionConfig {
12
+ classifier: Extend.ClassifierRef;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Collects outputs from multiple upstream branches before continuing.
4
+ *
5
+ * See the [Collect step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#collect-step).
6
+ */
7
+ export interface CollectStepDefinition {
8
+ name: string;
9
+ next?: Extend.SimpleNextEntry[];
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Runs extractors based on formula conditions.
4
+ *
5
+ * Each extractor reference must include an explicit `version`. Valid values are `"latest"`, `"draft"`, or a specific semver string (e.g. `"1.0"`).
6
+ *
7
+ * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-extract-step).
8
+ */
9
+ export interface ConditionalExtractStepDefinition {
10
+ name: string;
11
+ /** Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured. */
12
+ config?: Extend.ConditionalExtractStepDefinitionConfig;
13
+ /** Can only be set when `config` is present. */
14
+ next?: Extend.SimpleNextEntry[];
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured.
4
+ */
5
+ export interface ConditionalExtractStepDefinitionConfig {
6
+ /**
7
+ * Formula-based extractor rules for this step. Each rule pairs a formula with an extractor reference. The last rule must have `formula: "TRUE"` as a default catch-all.
8
+ *
9
+ * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-extract-step).
10
+ */
11
+ rules: Extend.ConditionalExtractStepDefinitionConfigRulesItem[];
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as Extend from "../index";
2
+ export interface ConditionalExtractStepDefinitionConfigRulesItem {
3
+ name?: string;
4
+ /**
5
+ * The formula that determines when this extractor runs.
6
+ *
7
+ * See the [Conditional Extract step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-extract-step) and [Formulas](https://docs.extend.ai/2026-02-09/product/workflows/formulas).
8
+ */
9
+ formula: string;
10
+ extractor: Extend.ExtractorRef;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A next entry for `CONDITIONAL` steps. Routes based on which condition branch matched.
3
+ *
4
+ * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for end-to-end examples.
5
+ */
6
+ export interface ConditionalNextEntry {
7
+ /** The name of the target step. */
8
+ step: string;
9
+ /** Must match one of the `config.conditions[].id` values on the conditional step. */
10
+ conditionId: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Routes to different next steps based on ordered conditional branches evaluated against upstream step outputs.
4
+ *
5
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
6
+ */
7
+ export interface ConditionalStepDefinition {
8
+ name: string;
9
+ config: Extend.ConditionalStepDefinitionConfig;
10
+ /**
11
+ * Each entry should include a `conditionId` matching a `config.conditions[].id` value.
12
+ *
13
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
14
+ */
15
+ next?: Extend.ConditionalNextEntry[];
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as Extend from "../index";
2
+ export interface ConditionalStepDefinitionConfig {
3
+ /**
4
+ * Ordered conditional branches for this step. Use `IF` for the first branch, `ELSE_IF` for additional branches, and `ELSE` for the fallback branch.
5
+ *
6
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
7
+ */
8
+ conditions: Extend.ConditionalStepDefinitionConfigConditionsItem[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import type * as Extend from "../index";
2
+ export interface ConditionalStepDefinitionConfigConditionsItem {
3
+ /** Unique ID for this condition branch. */
4
+ id: string;
5
+ type: Extend.ConditionalStepDefinitionConfigConditionsItemType;
6
+ /**
7
+ * The comparison operation for this branch.
8
+ *
9
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
10
+ */
11
+ operation?: Extend.ConditionalStepDefinitionConfigConditionsItemOperation;
12
+ /**
13
+ * The left operand expression. This is typically a workflow variable or dynamic expression.
14
+ *
15
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
16
+ */
17
+ leftOperand?: string;
18
+ /**
19
+ * The right operand value. This is typically a literal comparison value and is omitted for fallback branches like `ELSE`.
20
+ *
21
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
22
+ */
23
+ rightOperand?: string;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The comparison operation for this branch.
3
+ *
4
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
5
+ */
6
+ export declare const ConditionalStepDefinitionConfigConditionsItemOperation: {
7
+ readonly Equals: "EQUALS";
8
+ readonly Gte: "GTE";
9
+ readonly Lte: "LTE";
10
+ readonly IsNull: "IS_NULL";
11
+ readonly Contains: "CONTAINS";
12
+ readonly NoOp: "NO_OP";
13
+ };
14
+ export type ConditionalStepDefinitionConfigConditionsItemOperation = (typeof ConditionalStepDefinitionConfigConditionsItemOperation)[keyof typeof ConditionalStepDefinitionConfigConditionsItemOperation] | string;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ConditionalStepDefinitionConfigConditionsItemOperation = void 0;
5
+ /**
6
+ * The comparison operation for this branch.
7
+ *
8
+ * See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
9
+ */
10
+ exports.ConditionalStepDefinitionConfigConditionsItemOperation = {
11
+ Equals: "EQUALS",
12
+ Gte: "GTE",
13
+ Lte: "LTE",
14
+ IsNull: "IS_NULL",
15
+ Contains: "CONTAINS",
16
+ NoOp: "NO_OP",
17
+ };
@@ -0,0 +1,6 @@
1
+ export declare const ConditionalStepDefinitionConfigConditionsItemType: {
2
+ readonly If: "IF";
3
+ readonly ElseIf: "ELSE_IF";
4
+ readonly Else: "ELSE";
5
+ };
6
+ export type ConditionalStepDefinitionConfigConditionsItemType = (typeof ConditionalStepDefinitionConfigConditionsItemType)[keyof typeof ConditionalStepDefinitionConfigConditionsItemType] | string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ConditionalStepDefinitionConfigConditionsItemType = void 0;
5
+ exports.ConditionalStepDefinitionConfigConditionsItemType = {
6
+ If: "IF",
7
+ ElseIf: "ELSE_IF",
8
+ Else: "ELSE",
9
+ };
@@ -0,0 +1,22 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Recursive conditional clause for edit schemas. Use these clauses with root-level `if` / `then` / `else`,
4
+ * `dependentRequired`, and logical combinators to model conditional field requirements.
5
+ */
6
+ export interface EditConditionalClause {
7
+ /** Conditional field constraints keyed by top-level property name. */
8
+ properties?: Record<string, Extend.EditConditionalProperty>;
9
+ /** List of fields that must be present when this clause applies. */
10
+ required?: string[];
11
+ dependentRequired?: Extend.EditDependentRequired;
12
+ if?: Extend.EditConditionalClause;
13
+ then?: Extend.EditConditionalClause;
14
+ else?: Extend.EditConditionalClause;
15
+ /** List of nested conditional clauses that must all match. */
16
+ allOf?: Extend.EditConditionalClause[];
17
+ /** List of nested conditional clauses where exactly one must match. */
18
+ oneOf?: Extend.EditConditionalClause[];
19
+ /** List of nested conditional clauses where at least one must match. */
20
+ anyOf?: Extend.EditConditionalClause[];
21
+ not?: Extend.EditConditionalClause;
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Nested object/row schema used inside conditional array and object constraints.
4
+ */
5
+ export interface EditConditionalObjectProperty {
6
+ /** Must be `object` for nested object conditional schemas. */
7
+ type?: "object";
8
+ /** Description of the nested object constraint. */
9
+ description?: string;
10
+ /** Nested conditional property constraints. */
11
+ properties?: Record<string, Extend.EditConditionalProperty>;
12
+ /** Required nested properties. */
13
+ required?: string[];
14
+ /** Whether additional nested properties are allowed. */
15
+ additionalProperties?: boolean;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,51 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Field-level schema fragment used inside conditional clauses. These condition objects support nested JSON
4
+ * Schema structure such as `type`, `enum`, `items`, `properties`, `required`, and `contains`, but do not
5
+ * allow any `extend_edit:*` placement or styling keys.
6
+ */
7
+ export interface EditConditionalProperty {
8
+ /**
9
+ * JSON Schema type for the conditional property. Can be a simple type such as `"object"` or `"array"`,
10
+ * a nullable tuple like `["string", "null"]`, or omitted for enum-only constraints.
11
+ */
12
+ type?: unknown;
13
+ /** Description of the field constraint. */
14
+ description?: string;
15
+ /** Allowed values for enum-based conditional constraints. */
16
+ enum?: string[];
17
+ /** Nested array item schema for conditional array constraints. */
18
+ items?: Extend.EditConditionalObjectProperty;
19
+ /** Nested object property constraints. */
20
+ properties?: Record<string, Extend.EditConditionalProperty>;
21
+ /** Required nested object properties. */
22
+ required?: string[];
23
+ /** Whether additional nested object properties are allowed. */
24
+ additionalProperties?: boolean;
25
+ /** Exact value that the property must match. */
26
+ const?: unknown;
27
+ /** Regular expression that string values must match. */
28
+ pattern?: string;
29
+ /** Conditional schema that at least one array item must satisfy. */
30
+ contains?: Extend.EditConditionalProperty;
31
+ /** Inclusive lower bound for numeric values. */
32
+ minimum?: number;
33
+ /** Inclusive upper bound for numeric values. */
34
+ maximum?: number;
35
+ /** Exclusive lower bound for numeric values. */
36
+ exclusiveMinimum?: number;
37
+ /** Exclusive upper bound for numeric values. */
38
+ exclusiveMaximum?: number;
39
+ /** Minimum string length. */
40
+ minLength?: number;
41
+ /** Maximum string length. */
42
+ maxLength?: number;
43
+ /** Minimum number of array items. */
44
+ minItems?: number;
45
+ /** Maximum number of array items. */
46
+ maxItems?: number;
47
+ /** Minimum number of matching items for `contains`. */
48
+ minContains?: number;
49
+ /** Maximum number of matching items for `contains`. */
50
+ maxContains?: number;
51
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,8 @@ export interface EditConfig {
6
6
  schema?: Extend.EditRootJson;
7
7
  /** Custom instructions provided for the edit operation. */
8
8
  instructions?: string;
9
+ /** Additional instructions used when generating a schema from the document. */
10
+ schemaGenerationInstructions?: string;
9
11
  /** Advanced options for the edit operation. */
10
12
  advancedOptions?: Extend.EditConfigAdvancedOptions;
11
13
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Map of field names to additional fields that become required when the key field is present.
3
+ */
4
+ export type EditDependentRequired = Record<string, string[]>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -42,6 +42,8 @@ export interface EditJson {
42
42
  "extend_edit:column_width"?: number;
43
43
  /** The value to fill into this field. Can be any type. This will force the value at this field to be filled with this value. If a value is not provided, we will attempt to generate or infer one based on the instructions. */
44
44
  "extend_edit:value"?: unknown;
45
+ /** Image fill for signature fields. Only PNG and JPEG image URLs are supported. */
46
+ "extend_edit:image"?: Extend.EditJsonExtendEditImage;
45
47
  /** Array of row height percentages for array/table fields (e.g. [0.25, 0.50, 0.25]) */
46
48
  "extend_edit:row_heights"?: number[];
47
49
  /** Schema for array items (when type is "array"). Must be an EditObjectJSON. */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Image fill for signature fields. Only PNG and JPEG image URLs are supported.
3
+ */
4
+ export interface EditJsonExtendEditImage {
5
+ /** URL of the image to place in the signature field. */
6
+ image_url: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
1
  import type * as Extend from "../index";
2
2
  /**
3
3
  * JSON Schema definition for editing PDF documents. The schema defines the structure and placement of fields to edit.
4
+ * It also supports JSON Schema conditional keywords at the root level, including `dependentRequired`,
5
+ * `if` / `then` / `else`, and logical combinators such as `allOf`, `oneOf`, `anyOf`, and `not`.
6
+ * Conditional property constraints do not accept `extend_edit:*` keys.
4
7
  */
5
8
  export interface EditRootJson {
6
9
  /** Must be "object" for the root schema */
@@ -11,4 +14,15 @@ export interface EditRootJson {
11
14
  required?: string[];
12
15
  /** Whether additional properties are allowed */
13
16
  additionalProperties?: boolean;
17
+ dependentRequired?: Extend.EditDependentRequired;
18
+ if?: Extend.EditConditionalClause;
19
+ then?: Extend.EditConditionalClause;
20
+ else?: Extend.EditConditionalClause;
21
+ /** List of conditional clauses that must all match. */
22
+ allOf?: Extend.EditConditionalClause[];
23
+ /** List of conditional clauses where exactly one must match. */
24
+ oneOf?: Extend.EditConditionalClause[];
25
+ /** List of conditional clauses where at least one must match. */
26
+ anyOf?: Extend.EditConditionalClause[];
27
+ not?: Extend.EditConditionalClause;
14
28
  }
@@ -0,0 +1,15 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Configuration options for edit schema generation.
4
+ */
5
+ export interface EditSchemaGenerationConfig {
6
+ /**
7
+ * Optional existing edit schema to map onto the detected form fields. When provided, the response may include a `mappingResult`
8
+ * that shows which input schema paths matched the generated form fields.
9
+ */
10
+ inputSchema?: Extend.EditRootJson;
11
+ /** Custom instructions provided for schema generation. */
12
+ instructions?: string;
13
+ /** Advanced options for schema generation. */
14
+ advancedOptions?: Extend.EditSchemaGenerationConfigAdvancedOptions;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Advanced options for schema generation.
3
+ */
4
+ export interface EditSchemaGenerationConfigAdvancedOptions {
5
+ /** Whether to parse table regions as arrays of objects. Defaults to `false`. */
6
+ tableParsingEnabled?: boolean;
7
+ /** Whether to model radio fields as enums. This ensures only one radio widget is selected. Defaults to `false`. */
8
+ radioEnumsEnabled?: boolean;
9
+ /** If enabled, only native AcroForm fields from the PDF will be imported and used in the schema, skipping object detection. Defaults to `false`. */
10
+ nativeFieldsOnly?: boolean;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A successful mapping between an input schema path and a detected form field.
3
+ */
4
+ export interface EditSchemaGenerationMappingMatch {
5
+ /** The path from the provided `inputSchema`. */
6
+ inputPath: string;
7
+ /** The detected form field key matched to the input path. */
8
+ formFieldKey: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Mapping information between an input schema and the detected form fields.
4
+ */
5
+ export interface EditSchemaGenerationMappingResult {
6
+ /** Fields from the input schema that were successfully mapped to detected form fields. */
7
+ matches: Extend.EditSchemaGenerationMappingMatch[];
8
+ /** Input schema field paths that could not be matched to the form. */
9
+ unmatchedInputPaths: string[];
10
+ /** Detected form field keys that were not used by the input schema mapping. */
11
+ unusedFormFieldKeys: string[];
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * The generated schema and optional mapping metadata.
4
+ */
5
+ export interface EditSchemaGenerationResponse {
6
+ /** The final generated schema after mapping. If no input schema was provided this will be the same as the annotatedSchema. */
7
+ schema: Extend.EditRootJson;
8
+ /** The original schema that was detected and annotated from the file. */
9
+ annotatedSchema: Extend.EditRootJson | null;
10
+ /** Mapping information between `inputSchema` paths and detected form fields when an input schema was provided. */
11
+ mappingResult: Extend.EditSchemaGenerationMappingResult | null;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Sends extraction data to an external HTTP endpoint for validation.
4
+ *
5
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
6
+ */
7
+ export interface ExternalDataValidationStepDefinition {
8
+ name: string;
9
+ /** Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured. */
10
+ config?: Extend.ExternalDataValidationStepDefinitionConfig;
11
+ /** Can only be set when `config` is present. */
12
+ next?: Extend.SimpleNextEntry[];
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured.
4
+ */
5
+ export interface ExternalDataValidationStepDefinitionConfig {
6
+ /**
7
+ * HTTP request configuration for the external validation call.
8
+ *
9
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
10
+ */
11
+ requestOptions: Extend.ExternalDataValidationStepDefinitionConfigRequestOptions;
12
+ /**
13
+ * Whether to continue or exit the workflow on validation failure. Defaults to `CONTINUE`.
14
+ *
15
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
16
+ */
17
+ failureBehavior?: Extend.ExternalDataValidationStepDefinitionConfigFailureBehavior;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Whether to continue or exit the workflow on validation failure. Defaults to `CONTINUE`.
3
+ *
4
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
5
+ */
6
+ export declare const ExternalDataValidationStepDefinitionConfigFailureBehavior: {
7
+ readonly Continue: "CONTINUE";
8
+ readonly Exit: "EXIT";
9
+ };
10
+ export type ExternalDataValidationStepDefinitionConfigFailureBehavior = (typeof ExternalDataValidationStepDefinitionConfigFailureBehavior)[keyof typeof ExternalDataValidationStepDefinitionConfigFailureBehavior] | string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExternalDataValidationStepDefinitionConfigFailureBehavior = void 0;
5
+ /**
6
+ * Whether to continue or exit the workflow on validation failure. Defaults to `CONTINUE`.
7
+ *
8
+ * See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
9
+ */
10
+ exports.ExternalDataValidationStepDefinitionConfigFailureBehavior = {
11
+ Continue: "CONTINUE",
12
+ Exit: "EXIT",
13
+ };