extend-ai 1.11.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +32 -13
  3. package/Client.js +32 -13
  4. package/LICENSE +21 -0
  5. package/api/client/requests/ExtractRequest.d.ts +21 -2
  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/ExtractRunsDeleteRequest.d.ts +1 -1
  56. package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +1 -1
  57. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +1 -1
  58. package/api/resources/extractorVersions/client/Client.d.ts +1 -1
  59. package/api/resources/extractorVersions/client/Client.js +1 -1
  60. package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +1 -1
  61. package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +1 -1
  62. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +1 -1
  63. package/api/resources/extractors/client/Client.d.ts +22 -6
  64. package/api/resources/extractors/client/Client.js +22 -6
  65. package/api/resources/extractors/client/requests/ExtractorsCreateRequest.d.ts +21 -5
  66. package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +1 -1
  67. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +1 -1
  68. package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +1 -1
  69. package/api/resources/files/client/Client.d.ts +3 -3
  70. package/api/resources/files/client/Client.js +3 -3
  71. package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +1 -1
  72. package/api/resources/files/client/requests/FilesListRequest.d.ts +1 -1
  73. package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +1 -1
  74. package/api/resources/files/client/requests/FilesUploadRequest.d.ts +1 -1
  75. package/api/resources/parseRuns/client/Client.d.ts +3 -3
  76. package/api/resources/parseRuns/client/Client.js +3 -3
  77. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +1 -1
  78. package/api/resources/parseRuns/client/requests/ParseRunsListRequest.d.ts +1 -1
  79. package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +1 -1
  80. package/api/resources/processor/client/Client.d.ts +1 -1
  81. package/api/resources/processor/client/Client.js +1 -1
  82. package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +1 -1
  83. package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +1 -1
  84. package/api/resources/processorRun/client/Client.d.ts +4 -4
  85. package/api/resources/processorRun/client/Client.js +4 -4
  86. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +1 -1
  87. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +2 -2
  88. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +1 -1
  89. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +1 -1
  90. package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +1 -1
  91. package/api/resources/processorVersion/client/Client.d.ts +1 -1
  92. package/api/resources/processorVersion/client/Client.js +1 -1
  93. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +1 -1
  94. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +1 -1
  95. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +1 -1
  96. package/api/resources/splitRuns/client/Client.d.ts +3 -3
  97. package/api/resources/splitRuns/client/Client.js +3 -3
  98. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +1 -1
  99. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +1 -1
  100. package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +1 -1
  101. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +1 -1
  102. package/api/resources/splitterVersions/client/Client.d.ts +1 -1
  103. package/api/resources/splitterVersions/client/Client.js +1 -1
  104. package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +1 -1
  105. package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +1 -1
  106. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +1 -1
  107. package/api/resources/splitters/client/Client.d.ts +1 -1
  108. package/api/resources/splitters/client/Client.js +1 -1
  109. package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +1 -1
  110. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +1 -1
  111. package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +1 -1
  112. package/api/resources/webhookEndpoints/client/Client.d.ts +3 -3
  113. package/api/resources/webhookEndpoints/client/Client.js +3 -3
  114. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +1 -1
  115. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +1 -1
  116. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +1 -1
  117. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +1 -1
  118. package/api/resources/webhookSubscriptions/client/Client.d.ts +1 -1
  119. package/api/resources/webhookSubscriptions/client/Client.js +1 -1
  120. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +1 -1
  121. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +1 -1
  122. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +1 -1
  123. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +1 -1
  124. package/api/resources/workflowRuns/client/Client.d.ts +5 -5
  125. package/api/resources/workflowRuns/client/Client.js +5 -5
  126. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +1 -1
  127. package/api/resources/workflowRuns/client/requests/WorkflowRunsCreateRequest.d.ts +1 -1
  128. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +1 -1
  129. package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -2
  130. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +1 -1
  131. package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +1 -1
  132. package/api/resources/workflowRuns/types/WorkflowRunsCreateRequestFile.d.ts +1 -1
  133. package/api/resources/workflowVersions/client/Client.d.ts +1 -1
  134. package/api/resources/workflowVersions/client/Client.js +1 -1
  135. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +1 -1
  136. package/api/resources/workflows/client/Client.d.ts +1 -1
  137. package/api/resources/workflows/client/Client.js +1 -1
  138. package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +1 -1
  139. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +1 -1
  140. package/api/types/ApiError.d.ts +1 -1
  141. package/api/types/BlockMetadata.d.ts +6 -0
  142. package/api/types/BlockMetadataSheet.d.ts +9 -0
  143. package/api/types/BlockMetadataSheet.js +3 -0
  144. package/api/types/ChunkMetadata.d.ts +4 -0
  145. package/api/types/ClassificationNextEntry.d.ts +1 -1
  146. package/api/types/ClassifyBaseProcessor.d.ts +1 -1
  147. package/api/types/ClassifyBaseProcessor.js +1 -1
  148. package/api/types/ClassifyConfig.d.ts +1 -1
  149. package/api/types/ClassifyOverrideConfig.d.ts +1 -1
  150. package/api/types/ClassifyRun.d.ts +2 -2
  151. package/api/types/ClassifyRunSummary.d.ts +2 -2
  152. package/api/types/ClassifyStepDefinition.d.ts +3 -3
  153. package/api/types/ClassifyStepDefinitionConfig.d.ts +1 -1
  154. package/api/types/CollectStepDefinition.d.ts +1 -1
  155. package/api/types/ConditionalExtractStepDefinition.d.ts +1 -1
  156. package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +1 -1
  157. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +1 -1
  158. package/api/types/ConditionalNextEntry.d.ts +1 -1
  159. package/api/types/ConditionalStepDefinition.d.ts +2 -2
  160. package/api/types/ConditionalStepDefinitionConfig.d.ts +1 -1
  161. package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +3 -3
  162. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +1 -1
  163. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +1 -1
  164. package/api/types/EvaluationSetRun.d.ts +1 -1
  165. package/api/types/ExternalDataValidationStepDefinition.d.ts +1 -1
  166. package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +2 -2
  167. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +1 -1
  168. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +1 -1
  169. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +3 -3
  170. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +1 -1
  171. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +1 -1
  172. package/api/types/ExtractAdvancedOptions.d.ts +1 -1
  173. package/api/types/ExtractAdvancedOptionsReviewAgent.d.ts +1 -1
  174. package/api/types/ExtractBaseProcessor.d.ts +1 -1
  175. package/api/types/ExtractBaseProcessor.js +1 -1
  176. package/api/types/ExtractConfigJson.d.ts +2 -2
  177. package/api/types/ExtractConfigLegacy.d.ts +2 -2
  178. package/api/types/ExtractConfigLegacyBaseProcessor.d.ts +1 -1
  179. package/api/types/ExtractConfigLegacyBaseProcessor.js +1 -1
  180. package/api/types/ExtractOutputMetadataValue.d.ts +1 -1
  181. package/api/types/ExtractOverrideConfigJson.d.ts +2 -2
  182. package/api/types/ExtractRun.d.ts +4 -4
  183. package/api/types/ExtractRunSummary.d.ts +2 -2
  184. package/api/types/ExtractStepDefinition.d.ts +1 -1
  185. package/api/types/ExtractorVersion.d.ts +1 -1
  186. package/api/types/FileConversionStepDefinition.d.ts +1 -1
  187. package/api/types/FileConversionStepDefinitionConfig.d.ts +1 -1
  188. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +1 -1
  189. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +1 -1
  190. package/api/types/FileFromUrl.d.ts +1 -1
  191. package/api/types/HumanReviewStepDefinition.d.ts +1 -1
  192. package/api/types/LegacyClassificationAdvancedOptions.d.ts +1 -1
  193. package/api/types/LegacyClassificationConfig.d.ts +2 -2
  194. package/api/types/LegacyClassificationConfigBaseProcessor.d.ts +1 -1
  195. package/api/types/LegacyClassificationConfigBaseProcessor.js +1 -1
  196. package/api/types/LegacyDocumentProcessorRunCredits.d.ts +2 -2
  197. package/api/types/LegacyExtractionAdvancedOptions.d.ts +2 -2
  198. package/api/types/LegacyExtractionAdvancedOptionsReviewAgent.d.ts +1 -1
  199. package/api/types/LegacyExtractionConfig.d.ts +3 -3
  200. package/api/types/LegacyExtractionConfigBaseProcessor.d.ts +1 -1
  201. package/api/types/LegacyExtractionConfigBaseProcessor.js +1 -1
  202. package/api/types/LegacyJsonOutputMetadataValue.d.ts +1 -1
  203. package/api/types/LegacySplitterAdvancedOptions.d.ts +1 -1
  204. package/api/types/LegacySplitterConfig.d.ts +2 -2
  205. package/api/types/LegacySplitterConfigBaseProcessor.d.ts +1 -1
  206. package/api/types/LegacySplitterConfigBaseProcessor.js +1 -1
  207. package/api/types/MergeExtractStepDefinition.d.ts +1 -1
  208. package/api/types/MergeExtractStepDefinitionConfig.d.ts +1 -1
  209. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +1 -1
  210. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +1 -1
  211. package/api/types/PageRanges.d.ts +1 -1
  212. package/api/types/ParseConfig.d.ts +2 -2
  213. package/api/types/ParseConfigEngine.d.ts +1 -1
  214. package/api/types/ParseConfigEngine.js +1 -1
  215. package/api/types/ParseConfigTarget.d.ts +1 -1
  216. package/api/types/ParseConfigTarget.js +1 -1
  217. package/api/types/ParseStepDefinition.d.ts +1 -1
  218. package/api/types/RuleValidationNextEntry.d.ts +1 -1
  219. package/api/types/RuleValidationStepDefinition.d.ts +2 -2
  220. package/api/types/RuleValidationStepDefinitionConfig.d.ts +1 -1
  221. package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +1 -1
  222. package/api/types/RunUsage.d.ts +1 -1
  223. package/api/types/RunUsageSummary.d.ts +1 -1
  224. package/api/types/SplitBaseProcessor.d.ts +1 -1
  225. package/api/types/SplitBaseProcessor.js +1 -1
  226. package/api/types/SplitConfig.d.ts +1 -1
  227. package/api/types/SplitOverrideConfig.d.ts +1 -1
  228. package/api/types/SplitRun.d.ts +2 -2
  229. package/api/types/SplitRunSummary.d.ts +2 -2
  230. package/api/types/SplitStepDefinition.d.ts +3 -3
  231. package/api/types/SplitStepDefinitionConfig.d.ts +1 -1
  232. package/api/types/TriggerStepDefinition.d.ts +1 -1
  233. package/api/types/WebhookResponseStepDefinition.d.ts +1 -1
  234. package/api/types/WorkflowStepDefinition.d.ts +1 -1
  235. package/api/types/index.d.ts +1 -0
  236. package/api/types/index.js +1 -0
  237. package/auth/BearerAuthProvider.d.ts +1 -1
  238. package/auth/BearerAuthProvider.js +6 -3
  239. package/package.json +2 -1
  240. package/reference.md +81 -46
  241. package/version.d.ts +1 -1
  242. package/version.js +1 -1
package/BaseClient.js CHANGED
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "extend-ai",
47
- "X-Fern-SDK-Version": "1.11.0",
48
- "User-Agent": "extend-ai/1.11.0",
47
+ "X-Fern-SDK-Version": "1.13.0",
48
+ "User-Agent": "extend-ai/1.13.0",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "x-extend-api-version": (_a = options === null || options === void 0 ? void 0 : options.extendApiVersion) !== null && _a !== void 0 ? _a : "2026-02-09",
package/Client.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare class ExtendClient {
63
63
  protected _evaluationSetRuns: EvaluationSetRunsClient | undefined;
64
64
  protected _webhookEndpoints: WebhookEndpointsClient | undefined;
65
65
  protected _webhookSubscriptions: WebhookSubscriptionsClient | undefined;
66
- constructor(options: ExtendClient.Options);
66
+ constructor(options?: ExtendClient.Options);
67
67
  get files(): FilesClient;
68
68
  get parseRuns(): ParseRunsClient;
69
69
  get editRuns(): EditRunsClient;
@@ -94,11 +94,11 @@ export declare class ExtendClient {
94
94
  /**
95
95
  * Parse a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
96
96
  *
97
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /parse_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
97
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /parse_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
98
98
  *
99
99
  * The Parse endpoint allows you to convert documents into structured, machine-readable formats with fine-grained control over the parsing process. This endpoint is ideal for extracting cleaned document content to be used as context for downstream processing, e.g. RAG pipelines, custom ingestion pipelines, embeddings classification, etc.
100
100
  *
101
- * For more details, see the [Parse File guide](https://docs.extend.ai/2026-02-09/product/parsing/parse).
101
+ * For more details, see the [Parse File guide](https://docs.extend.ai/2026-02-09/parsing/overview).
102
102
  *
103
103
  * @param {Extend.ParseRequest} request
104
104
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -125,11 +125,11 @@ export declare class ExtendClient {
125
125
  /**
126
126
  * Edit a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
127
127
  *
128
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /edit_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
128
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /edit_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
129
129
  *
130
130
  * The Edit endpoint allows you to detect and fill form fields in PDF documents.
131
131
  *
132
- * For more details, see the [Edit File guide](https://docs.extend.ai/2026-02-09/product/editing/edit).
132
+ * For more details, see the [Edit File guide](https://docs.extend.ai/2026-02-09/editing/edit).
133
133
  *
134
134
  * @param {Extend.EditRequest} request
135
135
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -161,11 +161,11 @@ export declare class ExtendClient {
161
161
  /**
162
162
  * Extract structured data from a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
163
163
  *
164
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /extract_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
164
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /extract_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
165
165
  *
166
166
  * The Extract endpoint allows you to extract structured data from files using an existing extractor or an inline configuration.
167
167
  *
168
- * For more details, see the [Extract File guide](https://docs.extend.ai/2026-02-09/product/extraction/quick-start-5-minutes).
168
+ * For more details, see the [Extract File guide](https://docs.extend.ai/2026-02-09/extraction/overview).
169
169
  *
170
170
  * @param {Extend.ExtractRequest} request
171
171
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -194,8 +194,27 @@ export declare class ExtendClient {
194
194
  * "description": "The invoice number"
195
195
  * },
196
196
  * "total_amount": {
197
- * "type": "number",
198
- * "description": "The total amount due"
197
+ * "type": "object",
198
+ * "extend:type": "currency",
199
+ * "description": "The total amount due",
200
+ * "properties": {
201
+ * "amount": {
202
+ * "type": [
203
+ * "number",
204
+ * "null"
205
+ * ]
206
+ * },
207
+ * "iso_4217_currency_code": {
208
+ * "type": [
209
+ * "string",
210
+ * "null"
211
+ * ]
212
+ * }
213
+ * },
214
+ * "required": [
215
+ * "amount",
216
+ * "iso_4217_currency_code"
217
+ * ]
199
218
  * }
200
219
  * }
201
220
  * }
@@ -210,11 +229,11 @@ export declare class ExtendClient {
210
229
  /**
211
230
  * Classify a document synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
212
231
  *
213
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /classify_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
232
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /classify_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
214
233
  *
215
234
  * The Classify endpoint allows you to classify documents using an existing classifier or an inline configuration.
216
235
  *
217
- * For more details, see the [Classify File guide](https://docs.extend.ai/2026-02-09/product/classification/configuring-a-classifier).
236
+ * For more details, see the [Classify File guide](https://docs.extend.ai/2026-02-09/classification/configuring-a-classifier).
218
237
  *
219
238
  * @param {Extend.ClassifyRequest} request
220
239
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -255,11 +274,11 @@ export declare class ExtendClient {
255
274
  /**
256
275
  * Split a document synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
257
276
  *
258
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /split_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
277
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /split_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
259
278
  *
260
279
  * The Split endpoint allows you to split documents into multiple parts using an existing splitter or an inline configuration.
261
280
  *
262
- * For more details, see the [Split File guide](https://docs.extend.ai/2026-02-09/product/splitting/configuring-a-splitter).
281
+ * For more details, see the [Split File guide](https://docs.extend.ai/2026-02-09/splitting/configuring-a-splitter).
263
282
  *
264
283
  * @param {Extend.SplitRequest} request
265
284
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
package/Client.js CHANGED
@@ -90,7 +90,7 @@ const environments = __importStar(require("./environments"));
90
90
  const handleNonStatusCodeError_1 = require("./errors/handleNonStatusCodeError");
91
91
  const errors = __importStar(require("./errors/index"));
92
92
  class ExtendClient {
93
- constructor(options) {
93
+ constructor(options = {}) {
94
94
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
95
95
  }
96
96
  get files() {
@@ -204,11 +204,11 @@ class ExtendClient {
204
204
  /**
205
205
  * Parse a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
206
206
  *
207
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /parse_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
207
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /parse_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
208
208
  *
209
209
  * The Parse endpoint allows you to convert documents into structured, machine-readable formats with fine-grained control over the parsing process. This endpoint is ideal for extracting cleaned document content to be used as context for downstream processing, e.g. RAG pipelines, custom ingestion pipelines, embeddings classification, etc.
210
210
  *
211
- * For more details, see the [Parse File guide](https://docs.extend.ai/2026-02-09/product/parsing/parse).
211
+ * For more details, see the [Parse File guide](https://docs.extend.ai/2026-02-09/parsing/overview).
212
212
  *
213
213
  * @param {Extend.ParseRequest} request
214
214
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -294,11 +294,11 @@ class ExtendClient {
294
294
  /**
295
295
  * Edit a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
296
296
  *
297
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /edit_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
297
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /edit_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
298
298
  *
299
299
  * The Edit endpoint allows you to detect and fill form fields in PDF documents.
300
300
  *
301
- * For more details, see the [Edit File guide](https://docs.extend.ai/2026-02-09/product/editing/edit).
301
+ * For more details, see the [Edit File guide](https://docs.extend.ai/2026-02-09/editing/edit).
302
302
  *
303
303
  * @param {Extend.EditRequest} request
304
304
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -382,11 +382,11 @@ class ExtendClient {
382
382
  /**
383
383
  * Extract structured data from a file synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
384
384
  *
385
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /extract_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
385
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /extract_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
386
386
  *
387
387
  * The Extract endpoint allows you to extract structured data from files using an existing extractor or an inline configuration.
388
388
  *
389
- * For more details, see the [Extract File guide](https://docs.extend.ai/2026-02-09/product/extraction/quick-start-5-minutes).
389
+ * For more details, see the [Extract File guide](https://docs.extend.ai/2026-02-09/extraction/overview).
390
390
  *
391
391
  * @param {Extend.ExtractRequest} request
392
392
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -415,8 +415,27 @@ class ExtendClient {
415
415
  * "description": "The invoice number"
416
416
  * },
417
417
  * "total_amount": {
418
- * "type": "number",
419
- * "description": "The total amount due"
418
+ * "type": "object",
419
+ * "extend:type": "currency",
420
+ * "description": "The total amount due",
421
+ * "properties": {
422
+ * "amount": {
423
+ * "type": [
424
+ * "number",
425
+ * "null"
426
+ * ]
427
+ * },
428
+ * "iso_4217_currency_code": {
429
+ * "type": [
430
+ * "string",
431
+ * "null"
432
+ * ]
433
+ * }
434
+ * },
435
+ * "required": [
436
+ * "amount",
437
+ * "iso_4217_currency_code"
438
+ * ]
420
439
  * }
421
440
  * }
422
441
  * }
@@ -483,11 +502,11 @@ class ExtendClient {
483
502
  /**
484
503
  * Classify a document synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
485
504
  *
486
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /classify_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
505
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /classify_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
487
506
  *
488
507
  * The Classify endpoint allows you to classify documents using an existing classifier or an inline configuration.
489
508
  *
490
- * For more details, see the [Classify File guide](https://docs.extend.ai/2026-02-09/product/classification/configuring-a-classifier).
509
+ * For more details, see the [Classify File guide](https://docs.extend.ai/2026-02-09/classification/configuring-a-classifier).
491
510
  *
492
511
  * @param {Extend.ClassifyRequest} request
493
512
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -580,11 +599,11 @@ class ExtendClient {
580
599
  /**
581
600
  * Split a document synchronously, waiting for the result before returning. This endpoint has a **5-minute timeout** — if processing takes longer, the request will fail.
582
601
  *
583
- * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /split_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/developers/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
602
+ * **Note:** This endpoint is intended for onboarding and testing only. For production workloads, use `POST /split_runs` with [polling or webhooks](https://docs.extend.ai/2026-02-09/general/async-processing) instead, as it provides better reliability for large files and avoids timeout issues.
584
603
  *
585
604
  * The Split endpoint allows you to split documents into multiple parts using an existing splitter or an inline configuration.
586
605
  *
587
- * For more details, see the [Split File guide](https://docs.extend.ai/2026-02-09/product/splitting/configuring-a-splitter).
606
+ * For more details, see the [Split File guide](https://docs.extend.ai/2026-02-09/splitting/configuring-a-splitter).
588
607
  *
589
608
  * @param {Extend.SplitRequest} request
590
609
  * @param {ExtendClient.RequestOptions} requestOptions - Request-specific configuration.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Extendconfig.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -15,8 +15,27 @@ import type * as Extend from "../../index";
15
15
  * "description": "The invoice number"
16
16
  * },
17
17
  * "total_amount": {
18
- * "type": "number",
19
- * "description": "The total amount due"
18
+ * "type": "object",
19
+ * "extend:type": "currency",
20
+ * "description": "The total amount due",
21
+ * "properties": {
22
+ * "amount": {
23
+ * "type": [
24
+ * "number",
25
+ * "null"
26
+ * ]
27
+ * },
28
+ * "iso_4217_currency_code": {
29
+ * "type": [
30
+ * "string",
31
+ * "null"
32
+ * ]
33
+ * }
34
+ * },
35
+ * "required": [
36
+ * "amount",
37
+ * "iso_4217_currency_code"
38
+ * ]
20
39
  * }
21
40
  * }
22
41
  * }
@@ -15,7 +15,7 @@ export interface ParseRequest {
15
15
  * * `url` - Return a presigned URL to the parsed content in the response body
16
16
  */
17
17
  responseType?: Extend.ParseRequestResponseType;
18
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
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
  /** The file to be parsed. Files can be provided as a URL or an Extend file ID. */
21
21
  file: Extend.ParseRequestFile;
@@ -9,11 +9,11 @@ export declare namespace BatchProcessorRunClient {
9
9
  }
10
10
  export declare class BatchProcessorRunClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<BatchProcessorRunClient.Options>;
12
- constructor(options: BatchProcessorRunClient.Options);
12
+ constructor(options?: BatchProcessorRunClient.Options);
13
13
  /**
14
14
  * Retrieve details about a batch processor run, including evaluation runs.
15
15
  *
16
- * **Deprecated:** This endpoint is maintained for backwards compatibility only and will be replaced in a future API version. Use [Get Evaluation Set Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/get-evaluation-set-run) for interacting with evaluation set runs.
16
+ * **Deprecated:** This endpoint is maintained for backwards compatibility only and will be replaced in a future API version. Use [Get Evaluation Set Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/get-evaluation-set-run) for interacting with evaluation set runs.
17
17
  *
18
18
  * @param {string} id - The unique identifier of the batch processor run to retrieve.
19
19
  *
@@ -52,13 +52,13 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
53
  const Extend = __importStar(require("../../../index"));
54
54
  class BatchProcessorRunClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
59
  * Retrieve details about a batch processor run, including evaluation runs.
60
60
  *
61
- * **Deprecated:** This endpoint is maintained for backwards compatibility only and will be replaced in a future API version. Use [Get Evaluation Set Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/get-evaluation-set-run) for interacting with evaluation set runs.
61
+ * **Deprecated:** This endpoint is maintained for backwards compatibility only and will be replaced in a future API version. Use [Get Evaluation Set Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/get-evaluation-set-run) for interacting with evaluation set runs.
62
62
  *
63
63
  * @param {string} id - The unique identifier of the batch processor run to retrieve.
64
64
  *
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface BatchProcessorRunGetRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -9,7 +9,7 @@ export declare namespace BatchRunsClient {
9
9
  }
10
10
  export declare class BatchRunsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<BatchRunsClient.Options>;
12
- constructor(options: BatchRunsClient.Options);
12
+ constructor(options?: BatchRunsClient.Options);
13
13
  /**
14
14
  * Retrieve the status of a batch run by its ID. The `status` field reflects the aggregate state of the batch.
15
15
  *
@@ -52,7 +52,7 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
52
  const errors = __importStar(require("../../../../errors/index"));
53
53
  const Extend = __importStar(require("../../../index"));
54
54
  class BatchRunsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -9,7 +9,7 @@ export declare namespace ClassifierVersionsClient {
9
9
  }
10
10
  export declare class ClassifierVersionsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ClassifierVersionsClient.Options>;
12
- constructor(options: ClassifierVersionsClient.Options);
12
+ constructor(options?: ClassifierVersionsClient.Options);
13
13
  /**
14
14
  * This endpoint allows you to fetch all versions of a given classifier, 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 ClassifierVersionsClient {
66
- constructor(options) {
66
+ constructor(options = {}) {
67
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
@@ -7,7 +7,7 @@ import type * as Extend from "../../../../index";
7
7
  * }
8
8
  */
9
9
  export interface ClassifierVersionsCreateRequest {
10
- /** 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. */
10
+ /** 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. */
11
11
  "x-extend-workspace-id"?: string;
12
12
  releaseType: Extend.ReleaseType;
13
13
  description?: Extend.VersionDescription;
@@ -9,6 +9,6 @@ export interface ClassifierVersionsListRequest {
9
9
  sortDir?: Extend.SortDir;
10
10
  nextPageToken?: Extend.NextPageToken;
11
11
  maxPageSize?: Extend.MaxPageSize;
12
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
12
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
13
13
  "x-extend-workspace-id"?: string;
14
14
  }
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ClassifierVersionsRetrieveRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -9,7 +9,7 @@ export declare namespace ClassifiersClient {
9
9
  }
10
10
  export declare class ClassifiersClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ClassifiersClient.Options>;
12
- constructor(options: ClassifiersClient.Options);
12
+ constructor(options?: ClassifiersClient.Options);
13
13
  /**
14
14
  * List all classifiers.
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 ClassifiersClient {
66
- constructor(options) {
66
+ constructor(options = {}) {
67
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
@@ -10,6 +10,6 @@ export interface ClassifiersListRequest {
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 ClassifiersRetrieveRequest {
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 ClassifiersUpdateRequest {
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 classifier. */
12
12
  name?: string;
@@ -9,7 +9,7 @@ export declare namespace ClassifyRunsClient {
9
9
  }
10
10
  export declare class ClassifyRunsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ClassifyRunsClient.Options>;
12
- constructor(options: ClassifyRunsClient.Options);
12
+ constructor(options?: ClassifyRunsClient.Options);
13
13
  /**
14
14
  * List all classify runs.
15
15
  *
@@ -66,7 +66,7 @@ export declare class ClassifyRunsClient {
66
66
  /**
67
67
  * Retrieve details about a specific classify run, including its status and outputs.
68
68
  *
69
- * A common use case for this endpoint is to poll for the status and final output of a classify run when using the [Create Classify Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/classify/create-classify-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
69
+ * A common use case for this endpoint is to poll for the status and final output of a classify run when using the [Create Classify Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/classify/create-classify-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
70
70
  *
71
71
  * @param {string} id - The unique identifier for this classify run.
72
72
  *
@@ -139,7 +139,7 @@ export declare class ClassifyRunsClient {
139
139
  /**
140
140
  * Submit up to **1,000 files** for classification in a single request. Each file is processed as an independent classify run using the same classifier and configuration.
141
141
  *
142
- * Unlike the single [Classify File (Async)](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/classify/create-classify-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.
142
+ * Unlike the single [Classify File (Async)](https://docs.extend.ai/2026-02-09/api-reference/endpoints/classify/create-classify-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.
143
143
  *
144
144
  * **Monitoring results:**
145
145
  * - **Webhooks (recommended):** Subscribe to `batch_processor_run.processed` and `batch_processor_run.failed` events. The webhook payload indicates the batch has finished — fetch individual run results using `GET /classify_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 ClassifyRunsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -228,7 +228,7 @@ class ClassifyRunsClient {
228
228
  /**
229
229
  * Retrieve details about a specific classify run, including its status and outputs.
230
230
  *
231
- * A common use case for this endpoint is to poll for the status and final output of a classify run when using the [Create Classify Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/classify/create-classify-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
231
+ * A common use case for this endpoint is to poll for the status and final output of a classify run when using the [Create Classify Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/classify/create-classify-run) endpoint. For instance, if you do not want to not configure webhooks to receive the output via completion/failure events.
232
232
  *
233
233
  * @param {string} id - The unique identifier for this classify run.
234
234
  *
@@ -460,7 +460,7 @@ class ClassifyRunsClient {
460
460
  /**
461
461
  * Submit up to **1,000 files** for classification in a single request. Each file is processed as an independent classify run using the same classifier and configuration.
462
462
  *
463
- * Unlike the single [Classify File (Async)](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/classify/create-classify-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.
463
+ * Unlike the single [Classify File (Async)](https://docs.extend.ai/2026-02-09/api-reference/endpoints/classify/create-classify-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.
464
464
  *
465
465
  * **Monitoring results:**
466
466
  * - **Webhooks (recommended):** Subscribe to `batch_processor_run.processed` and `batch_processor_run.failed` events. The webhook payload indicates the batch has finished — fetch individual run results using `GET /classify_runs?batchId={id}`.
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ClassifyRunsCancelRequest {
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 ClassifyRunsDeleteRequest {
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
  }
@@ -33,6 +33,6 @@ export interface ClassifyRunsListRequest {
33
33
  sortDir?: Extend.SortDir;
34
34
  nextPageToken?: Extend.NextPageToken;
35
35
  maxPageSize?: Extend.MaxPageSize;
36
- /** 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. */
36
+ /** 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. */
37
37
  "x-extend-workspace-id"?: string;
38
38
  }
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ClassifyRunsRetrieveRequest {
6
- /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */
6
+ /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/api-reference/authentication) for details on API key scopes. */
7
7
  "x-extend-workspace-id"?: string;
8
8
  }
@@ -9,7 +9,7 @@ export declare namespace EditRunsClient {
9
9
  }
10
10
  export declare class EditRunsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EditRunsClient.Options>;
12
- constructor(options: EditRunsClient.Options);
12
+ constructor(options?: EditRunsClient.Options);
13
13
  /**
14
14
  * Edit and manipulate PDF documents by detecting and filling form fields.
15
15
  *
@@ -47,7 +47,7 @@ export declare class EditRunsClient {
47
47
  /**
48
48
  * Retrieve the status and results of an edit run.
49
49
  *
50
- * Use this endpoint to get results for an edit run that has already completed, or to check on the status of an edit run initiated via the [Create Edit Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/edit/create-edit-run) endpoint.
50
+ * Use this endpoint to get results for an edit run that has already completed, or to check on the status of an edit run initiated via the [Create Edit Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/edit/create-edit-run) endpoint.
51
51
  *
52
52
  * @param {string} id - The unique identifier for the edit run.
53
53
  *
@@ -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 EditRunsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -144,7 +144,7 @@ class EditRunsClient {
144
144
  /**
145
145
  * Retrieve the status and results of an edit run.
146
146
  *
147
- * Use this endpoint to get results for an edit run that has already completed, or to check on the status of an edit run initiated via the [Create Edit Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/edit/create-edit-run) endpoint.
147
+ * Use this endpoint to get results for an edit run that has already completed, or to check on the status of an edit run initiated via the [Create Edit Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/edit/create-edit-run) endpoint.
148
148
  *
149
149
  * @param {string} id - The unique identifier for the edit run.
150
150
  *
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface EditRunsDeleteRequest {
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
  }