extend-ai 1.11.0 → 1.14.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 (262) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +33 -14
  3. package/Client.js +33 -14
  4. package/LICENSE +21 -0
  5. package/api/client/requests/ExtractRequest.d.ts +23 -4
  6. package/api/client/requests/ParseRequest.d.ts +1 -1
  7. package/api/resources/batchProcessorRun/client/Client.d.ts +2 -2
  8. package/api/resources/batchProcessorRun/client/Client.js +2 -2
  9. package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.d.ts +1 -1
  10. package/api/resources/batchRuns/client/Client.d.ts +1 -1
  11. package/api/resources/batchRuns/client/Client.js +1 -1
  12. package/api/resources/classifierVersions/client/Client.d.ts +1 -1
  13. package/api/resources/classifierVersions/client/Client.js +1 -1
  14. package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +1 -1
  15. package/api/resources/classifierVersions/client/requests/ClassifierVersionsListRequest.d.ts +1 -1
  16. package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts +1 -1
  17. package/api/resources/classifiers/client/Client.d.ts +1 -1
  18. package/api/resources/classifiers/client/Client.js +1 -1
  19. package/api/resources/classifiers/client/requests/ClassifiersListRequest.d.ts +1 -1
  20. package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.d.ts +1 -1
  21. package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +1 -1
  22. package/api/resources/classifyRuns/client/Client.d.ts +3 -3
  23. package/api/resources/classifyRuns/client/Client.js +3 -3
  24. package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.d.ts +1 -1
  25. package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.d.ts +1 -1
  26. package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +1 -1
  27. package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.d.ts +1 -1
  28. package/api/resources/editRuns/client/Client.d.ts +2 -2
  29. package/api/resources/editRuns/client/Client.js +2 -2
  30. package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.d.ts +1 -1
  31. package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.d.ts +1 -1
  32. package/api/resources/editSchemas/client/Client.d.ts +2 -2
  33. package/api/resources/editSchemas/client/Client.js +2 -2
  34. package/api/resources/editTemplates/client/Client.d.ts +1 -1
  35. package/api/resources/editTemplates/client/Client.js +1 -1
  36. package/api/resources/editTemplates/client/requests/EditTemplatesRetrieveRequest.d.ts +1 -1
  37. package/api/resources/evaluationSetItems/client/Client.d.ts +3 -3
  38. package/api/resources/evaluationSetItems/client/Client.js +3 -3
  39. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +1 -1
  40. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.d.ts +1 -1
  41. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsListRequest.d.ts +1 -1
  42. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.d.ts +1 -1
  43. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +1 -1
  44. package/api/resources/evaluationSetRuns/client/Client.d.ts +3 -3
  45. package/api/resources/evaluationSetRuns/client/Client.js +3 -3
  46. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsCreateRequest.d.ts +1 -1
  47. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.d.ts +1 -1
  48. package/api/resources/evaluationSets/client/Client.d.ts +4 -4
  49. package/api/resources/evaluationSets/client/Client.js +4 -4
  50. package/api/resources/evaluationSets/client/requests/EvaluationSetsListRequest.d.ts +1 -1
  51. package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.d.ts +1 -1
  52. package/api/resources/extractRuns/client/Client.d.ts +3 -3
  53. package/api/resources/extractRuns/client/Client.js +3 -3
  54. package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.d.ts +1 -1
  55. package/api/resources/extractRuns/client/requests/ExtractRunsCreateRequest.d.ts +2 -2
  56. package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.d.ts +1 -1
  57. package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +1 -1
  58. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +1 -1
  59. package/api/resources/extractRuns/types/ExtractRunsCreateRequestExtractor.d.ts +1 -1
  60. package/api/resources/extractorVersions/client/Client.d.ts +1 -1
  61. package/api/resources/extractorVersions/client/Client.js +1 -1
  62. package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +1 -1
  63. package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +1 -1
  64. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +1 -1
  65. package/api/resources/extractors/client/Client.d.ts +22 -6
  66. package/api/resources/extractors/client/Client.js +22 -6
  67. package/api/resources/extractors/client/requests/ExtractorsCreateRequest.d.ts +21 -5
  68. package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +1 -1
  69. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +1 -1
  70. package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +1 -1
  71. package/api/resources/files/client/Client.d.ts +3 -3
  72. package/api/resources/files/client/Client.js +3 -3
  73. package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +1 -1
  74. package/api/resources/files/client/requests/FilesListRequest.d.ts +1 -1
  75. package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +1 -1
  76. package/api/resources/files/client/requests/FilesUploadRequest.d.ts +1 -1
  77. package/api/resources/parseRuns/client/Client.d.ts +28 -3
  78. package/api/resources/parseRuns/client/Client.js +81 -3
  79. package/api/resources/parseRuns/client/requests/ParseRunsCancelRequest.d.ts +8 -0
  80. package/api/resources/parseRuns/client/requests/ParseRunsCancelRequest.js +3 -0
  81. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +1 -1
  82. package/api/resources/parseRuns/client/requests/ParseRunsListRequest.d.ts +1 -1
  83. package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +1 -1
  84. package/api/resources/parseRuns/client/requests/index.d.ts +1 -0
  85. package/api/resources/parseRuns/types/ParseRunsListResponse.d.ts +1 -1
  86. package/api/resources/processor/client/Client.d.ts +1 -1
  87. package/api/resources/processor/client/Client.js +1 -1
  88. package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +1 -1
  89. package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +1 -1
  90. package/api/resources/processorRun/client/Client.d.ts +4 -4
  91. package/api/resources/processorRun/client/Client.js +4 -4
  92. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +1 -1
  93. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +2 -2
  94. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +1 -1
  95. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +1 -1
  96. package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +1 -1
  97. package/api/resources/processorVersion/client/Client.d.ts +1 -1
  98. package/api/resources/processorVersion/client/Client.js +1 -1
  99. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +1 -1
  100. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +1 -1
  101. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +1 -1
  102. package/api/resources/splitRuns/client/Client.d.ts +3 -3
  103. package/api/resources/splitRuns/client/Client.js +3 -3
  104. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +1 -1
  105. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +1 -1
  106. package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +1 -1
  107. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +1 -1
  108. package/api/resources/splitterVersions/client/Client.d.ts +1 -1
  109. package/api/resources/splitterVersions/client/Client.js +1 -1
  110. package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +1 -1
  111. package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +1 -1
  112. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +1 -1
  113. package/api/resources/splitters/client/Client.d.ts +1 -1
  114. package/api/resources/splitters/client/Client.js +1 -1
  115. package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +1 -1
  116. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +1 -1
  117. package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +1 -1
  118. package/api/resources/webhookEndpoints/client/Client.d.ts +3 -3
  119. package/api/resources/webhookEndpoints/client/Client.js +3 -3
  120. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +1 -1
  121. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +1 -1
  122. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +1 -1
  123. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +1 -1
  124. package/api/resources/webhookSubscriptions/client/Client.d.ts +1 -1
  125. package/api/resources/webhookSubscriptions/client/Client.js +1 -1
  126. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +1 -1
  127. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +1 -1
  128. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +1 -1
  129. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +1 -1
  130. package/api/resources/workflowRuns/client/Client.d.ts +6 -6
  131. package/api/resources/workflowRuns/client/Client.js +6 -6
  132. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +1 -1
  133. package/api/resources/workflowRuns/client/requests/WorkflowRunsCreateBatchRequest.d.ts +2 -0
  134. package/api/resources/workflowRuns/client/requests/WorkflowRunsCreateRequest.d.ts +1 -1
  135. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +1 -1
  136. package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -2
  137. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +1 -1
  138. package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +1 -1
  139. package/api/resources/workflowRuns/types/WorkflowRunsCreateRequestFile.d.ts +1 -1
  140. package/api/resources/workflowVersions/client/Client.d.ts +1 -1
  141. package/api/resources/workflowVersions/client/Client.js +1 -1
  142. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +1 -1
  143. package/api/resources/workflows/client/Client.d.ts +1 -1
  144. package/api/resources/workflows/client/Client.js +1 -1
  145. package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +1 -1
  146. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +1 -1
  147. package/api/types/ApiError.d.ts +1 -1
  148. package/api/types/BlockMetadata.d.ts +6 -0
  149. package/api/types/BlockMetadataSheet.d.ts +9 -0
  150. package/api/types/BlockMetadataSheet.js +3 -0
  151. package/api/types/ChunkMetadata.d.ts +4 -0
  152. package/api/types/ClassificationNextEntry.d.ts +1 -1
  153. package/api/types/ClassifyBaseProcessor.d.ts +1 -1
  154. package/api/types/ClassifyBaseProcessor.js +1 -1
  155. package/api/types/ClassifyConfig.d.ts +1 -1
  156. package/api/types/ClassifyOverrideConfig.d.ts +1 -1
  157. package/api/types/ClassifyRun.d.ts +2 -2
  158. package/api/types/ClassifyRunSummary.d.ts +2 -2
  159. package/api/types/ClassifyStepDefinition.d.ts +3 -3
  160. package/api/types/ClassifyStepDefinitionConfig.d.ts +1 -1
  161. package/api/types/CollectStepDefinition.d.ts +1 -1
  162. package/api/types/ConditionalExtractStepDefinition.d.ts +1 -1
  163. package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +1 -1
  164. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +1 -1
  165. package/api/types/ConditionalNextEntry.d.ts +1 -1
  166. package/api/types/ConditionalStepDefinition.d.ts +2 -2
  167. package/api/types/ConditionalStepDefinitionConfig.d.ts +1 -1
  168. package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +3 -3
  169. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +1 -1
  170. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +1 -1
  171. package/api/types/EvaluationSetRun.d.ts +1 -1
  172. package/api/types/ExternalDataValidationStepDefinition.d.ts +1 -1
  173. package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +2 -2
  174. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +1 -1
  175. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +1 -1
  176. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +3 -3
  177. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +1 -1
  178. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +1 -1
  179. package/api/types/ExtractAdvancedOptions.d.ts +1 -1
  180. package/api/types/ExtractAdvancedOptionsReviewAgent.d.ts +1 -1
  181. package/api/types/ExtractBaseProcessor.d.ts +1 -1
  182. package/api/types/ExtractBaseProcessor.js +1 -1
  183. package/api/types/ExtractConfigJson.d.ts +9 -5
  184. package/api/types/ExtractConfigLegacy.d.ts +2 -2
  185. package/api/types/ExtractConfigLegacyBaseProcessor.d.ts +1 -1
  186. package/api/types/ExtractConfigLegacyBaseProcessor.js +1 -1
  187. package/api/types/ExtractOutputMetadataValue.d.ts +1 -1
  188. package/api/types/ExtractOverrideConfigJson.d.ts +2 -2
  189. package/api/types/ExtractRequestExtractor.d.ts +1 -1
  190. package/api/types/ExtractRun.d.ts +5 -4
  191. package/api/types/ExtractRunSummary.d.ts +16 -2
  192. package/api/types/ExtractStepDefinition.d.ts +1 -1
  193. package/api/types/ExtractorVersion.d.ts +1 -1
  194. package/api/types/FileConversionStepDefinition.d.ts +1 -1
  195. package/api/types/FileConversionStepDefinitionConfig.d.ts +1 -1
  196. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +1 -1
  197. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +1 -1
  198. package/api/types/FileFromUrl.d.ts +1 -1
  199. package/api/types/HumanReviewStepDefinition.d.ts +1 -1
  200. package/api/types/LegacyClassificationAdvancedOptions.d.ts +1 -1
  201. package/api/types/LegacyClassificationConfig.d.ts +2 -2
  202. package/api/types/LegacyClassificationConfigBaseProcessor.d.ts +1 -1
  203. package/api/types/LegacyClassificationConfigBaseProcessor.js +1 -1
  204. package/api/types/LegacyDocumentProcessorRunCredits.d.ts +2 -2
  205. package/api/types/LegacyExtractionAdvancedOptions.d.ts +2 -2
  206. package/api/types/LegacyExtractionAdvancedOptionsReviewAgent.d.ts +1 -1
  207. package/api/types/LegacyExtractionConfig.d.ts +3 -3
  208. package/api/types/LegacyExtractionConfigBaseProcessor.d.ts +1 -1
  209. package/api/types/LegacyExtractionConfigBaseProcessor.js +1 -1
  210. package/api/types/LegacyJsonOutputMetadataValue.d.ts +1 -1
  211. package/api/types/LegacySplitterAdvancedOptions.d.ts +1 -1
  212. package/api/types/LegacySplitterConfig.d.ts +2 -2
  213. package/api/types/LegacySplitterConfigBaseProcessor.d.ts +1 -1
  214. package/api/types/LegacySplitterConfigBaseProcessor.js +1 -1
  215. package/api/types/MergeExtractStepDefinition.d.ts +1 -1
  216. package/api/types/MergeExtractStepDefinitionConfig.d.ts +1 -1
  217. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +1 -1
  218. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +1 -1
  219. package/api/types/PageRanges.d.ts +1 -1
  220. package/api/types/ParseConfig.d.ts +2 -2
  221. package/api/types/ParseConfigBlockOptionsFigures.d.ts +2 -0
  222. package/api/types/ParseConfigEngine.d.ts +1 -1
  223. package/api/types/ParseConfigEngine.js +1 -1
  224. package/api/types/ParseConfigTarget.d.ts +1 -1
  225. package/api/types/ParseConfigTarget.js +1 -1
  226. package/api/types/ParseRun.d.ts +6 -0
  227. package/api/types/ParseRunSummary.d.ts +81 -0
  228. package/api/types/ParseRunSummary.js +3 -0
  229. package/api/types/ParseRunSummaryMetrics.d.ts +11 -0
  230. package/api/types/ParseRunSummaryMetrics.js +3 -0
  231. package/api/types/ParseRunSummaryStatus.d.ts +14 -0
  232. package/api/types/ParseRunSummaryStatus.js +17 -0
  233. package/api/types/ParseStepDefinition.d.ts +1 -1
  234. package/api/types/RuleValidationNextEntry.d.ts +1 -1
  235. package/api/types/RuleValidationStepDefinition.d.ts +2 -2
  236. package/api/types/RuleValidationStepDefinitionConfig.d.ts +1 -1
  237. package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +1 -1
  238. package/api/types/RunUsage.d.ts +1 -1
  239. package/api/types/RunUsageBreakdownCharge.d.ts +15 -0
  240. package/api/types/RunUsageBreakdownCharge.js +3 -0
  241. package/api/types/RunUsageBreakdownEntry.d.ts +7 -1
  242. package/api/types/RunUsageSummary.d.ts +1 -1
  243. package/api/types/SplitBaseProcessor.d.ts +1 -1
  244. package/api/types/SplitBaseProcessor.js +1 -1
  245. package/api/types/SplitConfig.d.ts +1 -1
  246. package/api/types/SplitOverrideConfig.d.ts +1 -1
  247. package/api/types/SplitRun.d.ts +2 -2
  248. package/api/types/SplitRunSummary.d.ts +2 -2
  249. package/api/types/SplitStepDefinition.d.ts +3 -3
  250. package/api/types/SplitStepDefinitionConfig.d.ts +1 -1
  251. package/api/types/TriggerStepDefinition.d.ts +1 -1
  252. package/api/types/WebhookResponseStepDefinition.d.ts +1 -1
  253. package/api/types/WorkflowStepDefinition.d.ts +1 -1
  254. package/api/types/index.d.ts +5 -0
  255. package/api/types/index.js +5 -0
  256. package/auth/BearerAuthProvider.d.ts +1 -1
  257. package/auth/BearerAuthProvider.js +6 -3
  258. package/package.json +2 -1
  259. package/reference.md +160 -48
  260. package/version.d.ts +1 -1
  261. package/version.js +1 -1
  262. package/wrapper/resources/parseRuns/ParseRunsWrapper.test.js +1 -1
@@ -22,11 +22,27 @@ import type * as Extend from "../../../../index";
22
22
  * "description": "The invoice number"
23
23
  * },
24
24
  * "total_amount": {
25
- * "type": [
26
- * "number",
27
- * "null"
28
- * ],
29
- * "description": "The total amount due"
25
+ * "type": "object",
26
+ * "extend:type": "currency",
27
+ * "description": "The total amount due",
28
+ * "properties": {
29
+ * "amount": {
30
+ * "type": [
31
+ * "number",
32
+ * "null"
33
+ * ]
34
+ * },
35
+ * "iso_4217_currency_code": {
36
+ * "type": [
37
+ * "string",
38
+ * "null"
39
+ * ]
40
+ * }
41
+ * },
42
+ * "required": [
43
+ * "amount",
44
+ * "iso_4217_currency_code"
45
+ * ]
30
46
  * }
31
47
  * }
32
48
  * }
@@ -10,6 +10,6 @@ export interface ExtractorsListRequest {
10
10
  maxPageSize?: Extend.MaxPageSize;
11
11
  sortBy?: Extend.SortBy;
12
12
  sortDir?: Extend.SortDir;
13
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
13
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
14
14
  "x-extend-workspace-id"?: string;
15
15
  }
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ExtractorsRetrieveRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -6,7 +6,7 @@ import type * as Extend from "../../../../index";
6
6
  * }
7
7
  */
8
8
  export interface ExtractorsUpdateRequest {
9
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
9
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
10
10
  "x-extend-workspace-id"?: string;
11
11
  /** The new name of the extractor. */
12
12
  name?: string;
@@ -11,7 +11,7 @@ export declare namespace FilesClient {
11
11
  }
12
12
  export declare class FilesClient {
13
13
  protected readonly _options: NormalizedClientOptionsWithAuth<FilesClient.Options>;
14
- constructor(options: FilesClient.Options);
14
+ constructor(options?: FilesClient.Options);
15
15
  /**
16
16
  * List files.
17
17
  *
@@ -85,11 +85,11 @@ export declare class FilesClient {
85
85
  /**
86
86
  * Upload and create a new file in Extend.
87
87
  *
88
- * This endpoint accepts file contents and registers them as a File in Extend, which can be used for [running workflows](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/create-workflow-run), [creating evaluation set items](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/create-evaluation-set-item), [parsing](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/parse/parse-file), etc.
88
+ * This endpoint accepts file contents and registers them as a File in Extend, which can be used for [running workflows](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/create-workflow-run), [creating evaluation set items](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/create-evaluation-set-item), [parsing](https://docs.extend.ai/2026-02-09/api-reference/endpoints/parse/parse-file), etc.
89
89
  *
90
90
  * If an uploaded file is detected as a Word or PowerPoint document, it will be automatically converted to a PDF.
91
91
  *
92
- * Supported file types can be found [here](https://docs.extend.ai/2026-02-09/product/general/supported-file-types).
92
+ * Supported file types can be found [here](https://docs.extend.ai/2026-02-09/general/supported-file-types).
93
93
  *
94
94
  * This endpoint requires multipart form encoding. Most HTTP clients will handle this encoding automatically (see the examples).
95
95
  *
@@ -52,7 +52,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
53
  const Extend = __importStar(require("../../../index"));
54
54
  class FilesClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -298,11 +298,11 @@ class FilesClient {
298
298
  /**
299
299
  * Upload and create a new file in Extend.
300
300
  *
301
- * This endpoint accepts file contents and registers them as a File in Extend, which can be used for [running workflows](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/create-workflow-run), [creating evaluation set items](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/create-evaluation-set-item), [parsing](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/parse/parse-file), etc.
301
+ * This endpoint accepts file contents and registers them as a File in Extend, which can be used for [running workflows](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/create-workflow-run), [creating evaluation set items](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/create-evaluation-set-item), [parsing](https://docs.extend.ai/2026-02-09/api-reference/endpoints/parse/parse-file), etc.
302
302
  *
303
303
  * If an uploaded file is detected as a Word or PowerPoint document, it will be automatically converted to a PDF.
304
304
  *
305
- * Supported file types can be found [here](https://docs.extend.ai/2026-02-09/product/general/supported-file-types).
305
+ * Supported file types can be found [here](https://docs.extend.ai/2026-02-09/general/supported-file-types).
306
306
  *
307
307
  * This endpoint requires multipart form encoding. Most HTTP clients will handle this encoding automatically (see the examples).
308
308
  *
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface FilesDeleteRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -15,6 +15,6 @@ export interface FilesListRequest {
15
15
  sortDir?: Extend.SortDir;
16
16
  nextPageToken?: Extend.NextPageToken;
17
17
  maxPageSize?: Extend.MaxPageSize;
18
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
18
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
19
19
  "x-extend-workspace-id"?: string;
20
20
  }
@@ -25,6 +25,6 @@ export interface FilesRetrieveRequest {
25
25
  * Only available for files with a type of DOCX.
26
26
  */
27
27
  html?: boolean;
28
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
28
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
29
29
  "x-extend-workspace-id"?: string;
30
30
  }
@@ -5,7 +5,7 @@
5
5
  export interface FilesUploadRequest {
6
6
  /** When true, converts the uploaded file to PDF. Supported file types include images (JPEG, PNG, TIFF, GIF, BMP, WebP, HEIC/HEIF), Word documents, PowerPoint, Excel, and HTML. */
7
7
  convertToPdf?: boolean;
8
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
8
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
9
9
  "x-extend-workspace-id"?: string;
10
10
  /** The password to unlock a password-protected PDF. */
11
11
  password?: string;
@@ -9,7 +9,7 @@ export declare namespace ParseRunsClient {
9
9
  }
10
10
  export declare class ParseRunsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ParseRunsClient.Options>;
12
- constructor(options: ParseRunsClient.Options);
12
+ constructor(options?: ParseRunsClient.Options);
13
13
  /**
14
14
  * List parse runs, with optional filters for status, batch ID, source, and file name.
15
15
  *
@@ -66,7 +66,7 @@ export declare class ParseRunsClient {
66
66
  /**
67
67
  * Retrieve the status and results of a parse run.
68
68
  *
69
- * Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the [Create Parse Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/parse/create-parse-run) endpoint.
69
+ * Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the [Create Parse Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/parse/create-parse-run) endpoint.
70
70
  *
71
71
  * @param {string} id - The unique identifier for the parse run.
72
72
  *
@@ -113,10 +113,35 @@ export declare class ParseRunsClient {
113
113
  */
114
114
  delete(id: string, request?: Extend.ParseRunsDeleteRequest, requestOptions?: ParseRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ParseRunsDeleteResponse>;
115
115
  private __delete;
116
+ /**
117
+ * Cancel an in-progress parse run.
118
+ *
119
+ * Note: Only parse runs with a status of `"PROCESSING"` can be cancelled. Parse runs that have already completed, failed, or been cancelled cannot be cancelled again.
120
+ *
121
+ * @param {string} id - The ID of the parse run to cancel.
122
+ *
123
+ * Example: `"pr_xK9mLPqRtN3vS8wF5hB2cQ"`
124
+ * @param {Extend.ParseRunsCancelRequest} request
125
+ * @param {ParseRunsClient.RequestOptions} requestOptions - Request-specific configuration.
126
+ *
127
+ * @throws {@link Extend.BadRequestError}
128
+ * @throws {@link Extend.UnauthorizedError}
129
+ * @throws {@link Extend.PaymentRequiredError}
130
+ * @throws {@link Extend.ForbiddenError}
131
+ * @throws {@link Extend.NotFoundError}
132
+ * @throws {@link Extend.UnprocessableEntityError}
133
+ * @throws {@link Extend.TooManyRequestsError}
134
+ * @throws {@link Extend.InternalServerError}
135
+ *
136
+ * @example
137
+ * await client.parseRuns.cancel("parse_run_id_here")
138
+ */
139
+ cancel(id: string, request?: Extend.ParseRunsCancelRequest, requestOptions?: ParseRunsClient.RequestOptions): core.HttpResponsePromise<Extend.ParseRun>;
140
+ private __cancel;
116
141
  /**
117
142
  * Submit up to **1,000 files** for parsing in a single request. Each file is processed as an independent parse run using the same configuration.
118
143
  *
119
- * Unlike the single [Parse File (Async)](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/parse/create-parse-run) endpoint, this batch endpoint accepts an `inputs` array and immediately returns a `BatchRun` object containing a batch `id` and a `PENDING` status. The individual runs are then queued and processed asynchronously.
144
+ * Unlike the single [Parse File (Async)](https://docs.extend.ai/2026-02-09/api-reference/endpoints/parse/create-parse-run) endpoint, this batch endpoint accepts an `inputs` array and immediately returns a `BatchRun` object containing a batch `id` and a `PENDING` status. The individual runs are then queued and processed asynchronously.
120
145
  *
121
146
  * **Monitoring results:**
122
147
  * - **Webhooks (recommended):** Subscribe to `batch_parse_run.processed` and `batch_parse_run.failed` events. The webhook payload indicates the batch has finished — fetch individual run results using `GET /parse_runs?batchId={id}`.
@@ -52,7 +52,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
53
  const Extend = __importStar(require("../../../index"));
54
54
  class ParseRunsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -225,7 +225,7 @@ class ParseRunsClient {
225
225
  /**
226
226
  * Retrieve the status and results of a parse run.
227
227
  *
228
- * Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the [Create Parse Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/parse/create-parse-run) endpoint.
228
+ * Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the [Create Parse Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/parse/create-parse-run) endpoint.
229
229
  *
230
230
  * @param {string} id - The unique identifier for the parse run.
231
231
  *
@@ -381,10 +381,88 @@ class ParseRunsClient {
381
381
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/parse_runs/{id}");
382
382
  });
383
383
  }
384
+ /**
385
+ * Cancel an in-progress parse run.
386
+ *
387
+ * Note: Only parse runs with a status of `"PROCESSING"` can be cancelled. Parse runs that have already completed, failed, or been cancelled cannot be cancelled again.
388
+ *
389
+ * @param {string} id - The ID of the parse run to cancel.
390
+ *
391
+ * Example: `"pr_xK9mLPqRtN3vS8wF5hB2cQ"`
392
+ * @param {Extend.ParseRunsCancelRequest} request
393
+ * @param {ParseRunsClient.RequestOptions} requestOptions - Request-specific configuration.
394
+ *
395
+ * @throws {@link Extend.BadRequestError}
396
+ * @throws {@link Extend.UnauthorizedError}
397
+ * @throws {@link Extend.PaymentRequiredError}
398
+ * @throws {@link Extend.ForbiddenError}
399
+ * @throws {@link Extend.NotFoundError}
400
+ * @throws {@link Extend.UnprocessableEntityError}
401
+ * @throws {@link Extend.TooManyRequestsError}
402
+ * @throws {@link Extend.InternalServerError}
403
+ *
404
+ * @example
405
+ * await client.parseRuns.cancel("parse_run_id_here")
406
+ */
407
+ cancel(id, request = {}, requestOptions) {
408
+ return core.HttpResponsePromise.fromPromise(this.__cancel(id, request, requestOptions));
409
+ }
410
+ __cancel(id_1) {
411
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
412
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
413
+ const { "x-extend-workspace-id": extendWorkspaceId } = request;
414
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
415
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
416
+ "x-extend-workspace-id": extendWorkspaceId,
417
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
418
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
419
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
420
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `parse_runs/${core.url.encodePathParam(id)}/cancel`),
421
+ method: "POST",
422
+ headers: _headers,
423
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
424
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 300) * 1000,
425
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
426
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
427
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
428
+ logging: this._options.logging,
429
+ });
430
+ if (_response.ok) {
431
+ return { data: _response.body, rawResponse: _response.rawResponse };
432
+ }
433
+ if (_response.error.reason === "status-code") {
434
+ switch (_response.error.statusCode) {
435
+ case 400:
436
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
437
+ case 401:
438
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
439
+ case 402:
440
+ throw new Extend.PaymentRequiredError(_response.error.body, _response.rawResponse);
441
+ case 403:
442
+ throw new Extend.ForbiddenError(_response.error.body, _response.rawResponse);
443
+ case 404:
444
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
445
+ case 422:
446
+ throw new Extend.UnprocessableEntityError(_response.error.body, _response.rawResponse);
447
+ case 429:
448
+ throw new Extend.TooManyRequestsError(_response.error.body, _response.rawResponse);
449
+ case 500:
450
+ throw new Extend.InternalServerError(_response.error.body, _response.rawResponse);
451
+ default:
452
+ throw new errors.ExtendError({
453
+ statusCode: _response.error.statusCode,
454
+ body: _response.error.body,
455
+ rawResponse: _response.rawResponse,
456
+ });
457
+ }
458
+ }
459
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/parse_runs/{id}/cancel");
460
+ });
461
+ }
384
462
  /**
385
463
  * Submit up to **1,000 files** for parsing in a single request. Each file is processed as an independent parse run using the same configuration.
386
464
  *
387
- * Unlike the single [Parse File (Async)](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/parse/create-parse-run) endpoint, this batch endpoint accepts an `inputs` array and immediately returns a `BatchRun` object containing a batch `id` and a `PENDING` status. The individual runs are then queued and processed asynchronously.
465
+ * Unlike the single [Parse File (Async)](https://docs.extend.ai/2026-02-09/api-reference/endpoints/parse/create-parse-run) endpoint, this batch endpoint accepts an `inputs` array and immediately returns a `BatchRun` object containing a batch `id` and a `PENDING` status. The individual runs are then queued and processed asynchronously.
388
466
  *
389
467
  * **Monitoring results:**
390
468
  * - **Webhooks (recommended):** Subscribe to `batch_parse_run.processed` and `batch_parse_run.failed` events. The webhook payload indicates the batch has finished — fetch individual run results using `GET /parse_runs?batchId={id}`.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ParseRunsCancelRequest {
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
+ "x-extend-workspace-id"?: string;
8
+ }
@@ -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 });
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ParseRunsDeleteRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -30,6 +30,6 @@ export interface ParseRunsListRequest {
30
30
  fileNameContains?: string;
31
31
  nextPageToken?: Extend.NextPageToken;
32
32
  maxPageSize?: Extend.MaxPageSize;
33
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
33
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
34
34
  "x-extend-workspace-id"?: string;
35
35
  }
@@ -10,6 +10,6 @@ export interface ParseRunsRetrieveRequest {
10
10
  * * `url` - Returns a presigned URL in the `outputUrl` field to download the output as a JSON file. The URL expires after 15 minutes. Useful for large outputs.
11
11
  */
12
12
  responseType?: Extend.ParseRunsRetrieveRequestResponseType;
13
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
13
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
14
14
  "x-extend-workspace-id"?: string;
15
15
  }
@@ -1,3 +1,4 @@
1
+ export type { ParseRunsCancelRequest } from "./ParseRunsCancelRequest";
1
2
  export type { ParseRunsCreateBatchRequest } from "./ParseRunsCreateBatchRequest";
2
3
  export type { ParseRunsCreateRequest } from "./ParseRunsCreateRequest";
3
4
  export type { ParseRunsDeleteRequest } from "./ParseRunsDeleteRequest";
@@ -1,6 +1,6 @@
1
1
  import type * as Extend from "../../../index";
2
2
  export interface ParseRunsListResponse {
3
3
  object: "list";
4
- data: Extend.ParseRun[];
4
+ data: Extend.ParseRunSummary[];
5
5
  nextPageToken?: Extend.NextPageToken;
6
6
  }
@@ -9,7 +9,7 @@ export declare namespace ProcessorClient {
9
9
  }
10
10
  export declare class ProcessorClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ProcessorClient.Options>;
12
- constructor(options: ProcessorClient.Options);
12
+ constructor(options?: ProcessorClient.Options);
13
13
  /**
14
14
  * List all processors in your organization
15
15
  *
@@ -63,7 +63,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
63
63
  const errors = __importStar(require("../../../../errors/index"));
64
64
  const Extend = __importStar(require("../../../index"));
65
65
  class ProcessorClient {
66
- constructor(options) {
66
+ constructor(options = {}) {
67
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
@@ -14,6 +14,6 @@ export interface ProcessorListRequest {
14
14
  sortBy?: Extend.ProcessorListRequestSortBy;
15
15
  /** Sort direction */
16
16
  sortDir?: Extend.ProcessorListRequestSortDir;
17
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
17
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
18
18
  "x-extend-workspace-id"?: string;
19
19
  }
@@ -4,7 +4,7 @@ import type * as Extend from "../../../../index";
4
4
  * {}
5
5
  */
6
6
  export interface ProcessorUpdateRequest {
7
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
7
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
8
8
  "x-extend-workspace-id"?: string;
9
9
  /** The new name for the processor */
10
10
  name?: string;
@@ -9,7 +9,7 @@ export declare namespace ProcessorRunClient {
9
9
  }
10
10
  export declare class ProcessorRunClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ProcessorRunClient.Options>;
12
- constructor(options: ProcessorRunClient.Options);
12
+ constructor(options?: ProcessorRunClient.Options);
13
13
  /**
14
14
  * List runs of a Processor. A ProcessorRun represents a single execution of a processor against a file.
15
15
  *
@@ -34,8 +34,8 @@ export declare class ProcessorRunClient {
34
34
  * - **Synchronous**: Set `sync: true` to wait for completion and get final results in the response (5-minute timeout).
35
35
  *
36
36
  * **For asynchronous processing:**
37
- * - You can [configure webhooks](https://docs.extend.ai/2026-02-09/product/webhooks/configuration) to receive notifications when a processor run is complete or failed.
38
- * - Or you can [poll the get endpoint](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/legacy/get-processor-run) for updates on the status of the processor run.
37
+ * - You can [configure webhooks](https://docs.extend.ai/2026-02-09/webhooks/configuration) to receive notifications when a processor run is complete or failed.
38
+ * - Or you can [poll the get endpoint](https://docs.extend.ai/2026-02-09/api-reference/endpoints/legacy/get-processor-run) for updates on the status of the processor run.
39
39
  *
40
40
  * @param {Extend.ProcessorRunCreateRequest} request
41
41
  * @param {ProcessorRunClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -55,7 +55,7 @@ export declare class ProcessorRunClient {
55
55
  /**
56
56
  * Retrieve details about a specific processor run, including its status, outputs, and any edits made during review.
57
57
  *
58
- * A common use case for this endpoint is to poll for the status and final output of an async processor run when using the [Run Processor](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/legacy/create-processor-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
58
+ * A common use case for this endpoint is to poll for the status and final output of an async processor run when using the [Run Processor](https://docs.extend.ai/2026-02-09/api-reference/endpoints/legacy/create-processor-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
59
59
  *
60
60
  * @param {string} id - The unique identifier for this processor run.
61
61
  *
@@ -52,7 +52,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
53
  const Extend = __importStar(require("../../../index"));
54
54
  class ProcessorRunClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -132,8 +132,8 @@ class ProcessorRunClient {
132
132
  * - **Synchronous**: Set `sync: true` to wait for completion and get final results in the response (5-minute timeout).
133
133
  *
134
134
  * **For asynchronous processing:**
135
- * - You can [configure webhooks](https://docs.extend.ai/2026-02-09/product/webhooks/configuration) to receive notifications when a processor run is complete or failed.
136
- * - Or you can [poll the get endpoint](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/legacy/get-processor-run) for updates on the status of the processor run.
135
+ * - You can [configure webhooks](https://docs.extend.ai/2026-02-09/webhooks/configuration) to receive notifications when a processor run is complete or failed.
136
+ * - Or you can [poll the get endpoint](https://docs.extend.ai/2026-02-09/api-reference/endpoints/legacy/get-processor-run) for updates on the status of the processor run.
137
137
  *
138
138
  * @param {Extend.ProcessorRunCreateRequest} request
139
139
  * @param {ProcessorRunClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -197,7 +197,7 @@ class ProcessorRunClient {
197
197
  /**
198
198
  * Retrieve details about a specific processor run, including its status, outputs, and any edits made during review.
199
199
  *
200
- * A common use case for this endpoint is to poll for the status and final output of an async processor run when using the [Run Processor](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/legacy/create-processor-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
200
+ * A common use case for this endpoint is to poll for the status and final output of an async processor run when using the [Run Processor](https://docs.extend.ai/2026-02-09/api-reference/endpoints/legacy/create-processor-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
201
201
  *
202
202
  * @param {string} id - The unique identifier for this processor run.
203
203
  *
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ProcessorRunCancelRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -14,12 +14,12 @@ export interface ProcessorRunCreateRequest {
14
14
  * - Specific version numbers corresponding to versions your team has published, e.g. `"1.0"`, `"2.2"`, etc.
15
15
  */
16
16
  version?: string;
17
- /** The file to be processed. One of `file` or `rawText` must be provided. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/product/general/supported-file-types). */
17
+ /** The file to be processed. One of `file` or `rawText` must be provided. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/general/supported-file-types). */
18
18
  file?: Extend.LegacyProcessorRunFileInput;
19
19
  /** A raw string to be processed. Can be used in place of file when passing raw text data streams. One of `file` or `rawText` must be provided. */
20
20
  rawText?: string;
21
21
  /**
22
- * Whether to run the processor synchronously. When `true`, the request will wait for the processor run to complete and return the final results. When `false` (default), the request returns immediately with a `PROCESSING` status, and you can poll for completion or use webhooks. For production use cases, we recommending leaving sync off and building around an async integration for more resiliency, unless your use case is predictably fast (e.g. sub < 30 seconds) run time or otherwise have integration constraints that require a synchronous API. See [Async Processing](https://docs.extend.ai/2026-02-09/developers/async-processing) for more details.
22
+ * Whether to run the processor synchronously. When `true`, the request will wait for the processor run to complete and return the final results. When `false` (default), the request returns immediately with a `PROCESSING` status, and you can poll for completion or use webhooks. For production use cases, we recommending leaving sync off and building around an async integration for more resiliency, unless your use case is predictably fast (e.g. sub < 30 seconds) run time or otherwise have integration constraints that require a synchronous API. See [Async Processing](https://docs.extend.ai/2026-02-09/general/async-processing) for more details.
23
23
  *
24
24
  * **Timeout**: Synchronous requests have a 5-minute timeout. If the processor run takes longer, it will continue processing asynchronously and you can retrieve the results via the GET endpoint.
25
25
  */
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ProcessorRunDeleteRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ProcessorRunGetRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -60,6 +60,6 @@ export interface ProcessorRunListRequest {
60
60
  sortDir?: Extend.LegacySortDirEnum;
61
61
  nextPageToken?: Extend.LegacyNextPageToken;
62
62
  maxPageSize?: Extend.LegacyMaxPageSize;
63
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
63
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
64
64
  "x-extend-workspace-id"?: string;
65
65
  }
@@ -9,7 +9,7 @@ export declare namespace ProcessorVersionClient {
9
9
  }
10
10
  export declare class ProcessorVersionClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ProcessorVersionClient.Options>;
12
- constructor(options: ProcessorVersionClient.Options);
12
+ constructor(options?: ProcessorVersionClient.Options);
13
13
  /**
14
14
  * This endpoint allows you to fetch all versions of a given processor, including the current `draft` version.
15
15
  *
@@ -63,7 +63,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
63
63
  const errors = __importStar(require("../../../../errors/index"));
64
64
  const Extend = __importStar(require("../../../index"));
65
65
  class ProcessorVersionClient {
66
- constructor(options) {
66
+ constructor(options = {}) {
67
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
@@ -6,7 +6,7 @@ import type * as Extend from "../../../../index";
6
6
  * }
7
7
  */
8
8
  export interface ProcessorVersionCreateRequest {
9
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
9
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
10
10
  "x-extend-workspace-id"?: string;
11
11
  /** The type of release for this version. The two options are "major" and "minor", which will increment the version number accordingly. */
12
12
  releaseType: Extend.ProcessorVersionCreateRequestReleaseType;
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ProcessorVersionGetRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ProcessorVersionListRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }