extend-ai 1.10.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 (263) hide show
  1. package/.gitattributes +1 -0
  2. package/BaseClient.js +2 -2
  3. package/Client.d.ts +32 -13
  4. package/Client.js +32 -13
  5. package/LICENSE +21 -0
  6. package/api/client/requests/ExtractRequest.d.ts +21 -2
  7. package/api/client/requests/ParseRequest.d.ts +1 -1
  8. package/api/resources/batchProcessorRun/client/Client.d.ts +2 -2
  9. package/api/resources/batchProcessorRun/client/Client.js +2 -2
  10. package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.d.ts +1 -1
  11. package/api/resources/batchRuns/client/Client.d.ts +1 -1
  12. package/api/resources/batchRuns/client/Client.js +1 -1
  13. package/api/resources/classifierVersions/client/Client.d.ts +1 -1
  14. package/api/resources/classifierVersions/client/Client.js +1 -1
  15. package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +1 -1
  16. package/api/resources/classifierVersions/client/requests/ClassifierVersionsListRequest.d.ts +1 -1
  17. package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts +1 -1
  18. package/api/resources/classifiers/client/Client.d.ts +1 -1
  19. package/api/resources/classifiers/client/Client.js +1 -1
  20. package/api/resources/classifiers/client/requests/ClassifiersListRequest.d.ts +1 -1
  21. package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.d.ts +1 -1
  22. package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +1 -1
  23. package/api/resources/classifyRuns/client/Client.d.ts +3 -3
  24. package/api/resources/classifyRuns/client/Client.js +3 -3
  25. package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.d.ts +1 -1
  26. package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.d.ts +1 -1
  27. package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +1 -1
  28. package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.d.ts +1 -1
  29. package/api/resources/editRuns/client/Client.d.ts +2 -2
  30. package/api/resources/editRuns/client/Client.js +2 -2
  31. package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.d.ts +1 -1
  32. package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.d.ts +1 -1
  33. package/api/resources/editSchemas/client/Client.d.ts +2 -2
  34. package/api/resources/editSchemas/client/Client.js +2 -2
  35. package/api/resources/editTemplates/client/Client.d.ts +1 -1
  36. package/api/resources/editTemplates/client/Client.js +1 -1
  37. package/api/resources/editTemplates/client/requests/EditTemplatesRetrieveRequest.d.ts +1 -1
  38. package/api/resources/evaluationSetItems/client/Client.d.ts +3 -3
  39. package/api/resources/evaluationSetItems/client/Client.js +3 -3
  40. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +1 -1
  41. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.d.ts +1 -1
  42. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsListRequest.d.ts +1 -1
  43. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.d.ts +1 -1
  44. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +1 -1
  45. package/api/resources/evaluationSetRuns/client/Client.d.ts +37 -3
  46. package/api/resources/evaluationSetRuns/client/Client.js +104 -3
  47. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsCreateRequest.d.ts +27 -0
  48. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsCreateRequest.js +3 -0
  49. package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.d.ts +1 -1
  50. package/api/resources/evaluationSetRuns/client/requests/index.d.ts +1 -0
  51. package/api/resources/evaluationSetRuns/index.d.ts +1 -0
  52. package/api/resources/evaluationSetRuns/index.js +1 -0
  53. package/api/resources/evaluationSetRuns/types/EvaluationSetRunsCreateRequestEntity.d.ts +9 -0
  54. package/api/resources/evaluationSetRuns/types/EvaluationSetRunsCreateRequestEntity.js +3 -0
  55. package/api/resources/evaluationSetRuns/types/index.d.ts +1 -0
  56. package/api/resources/evaluationSetRuns/types/index.js +17 -0
  57. package/api/resources/evaluationSets/client/Client.d.ts +4 -4
  58. package/api/resources/evaluationSets/client/Client.js +4 -4
  59. package/api/resources/evaluationSets/client/requests/EvaluationSetsListRequest.d.ts +1 -1
  60. package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.d.ts +1 -1
  61. package/api/resources/extractRuns/client/Client.d.ts +3 -3
  62. package/api/resources/extractRuns/client/Client.js +3 -3
  63. package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.d.ts +1 -1
  64. package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.d.ts +1 -1
  65. package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +1 -1
  66. package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +1 -1
  67. package/api/resources/extractorVersions/client/Client.d.ts +1 -1
  68. package/api/resources/extractorVersions/client/Client.js +1 -1
  69. package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +1 -1
  70. package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +1 -1
  71. package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +1 -1
  72. package/api/resources/extractors/client/Client.d.ts +43 -5
  73. package/api/resources/extractors/client/Client.js +43 -5
  74. package/api/resources/extractors/client/requests/ExtractorsCreateRequest.d.ts +48 -6
  75. package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +1 -1
  76. package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +1 -1
  77. package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +1 -1
  78. package/api/resources/extractors/types/ExtractorsCreateRequestGenerate.d.ts +12 -0
  79. package/api/resources/extractors/types/ExtractorsCreateRequestGenerate.js +3 -0
  80. package/api/resources/extractors/types/ExtractorsCreateRequestGenerateFilesItem.d.ts +2 -0
  81. package/api/resources/extractors/types/ExtractorsCreateRequestGenerateFilesItem.js +3 -0
  82. package/api/resources/extractors/types/index.d.ts +2 -0
  83. package/api/resources/extractors/types/index.js +2 -0
  84. package/api/resources/files/client/Client.d.ts +3 -3
  85. package/api/resources/files/client/Client.js +3 -3
  86. package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +1 -1
  87. package/api/resources/files/client/requests/FilesListRequest.d.ts +1 -1
  88. package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +1 -1
  89. package/api/resources/files/client/requests/FilesUploadRequest.d.ts +1 -1
  90. package/api/resources/index.d.ts +1 -0
  91. package/api/resources/index.js +1 -0
  92. package/api/resources/parseRuns/client/Client.d.ts +3 -3
  93. package/api/resources/parseRuns/client/Client.js +3 -3
  94. package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +1 -1
  95. package/api/resources/parseRuns/client/requests/ParseRunsListRequest.d.ts +1 -1
  96. package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +1 -1
  97. package/api/resources/processor/client/Client.d.ts +1 -1
  98. package/api/resources/processor/client/Client.js +1 -1
  99. package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +1 -1
  100. package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +1 -1
  101. package/api/resources/processorRun/client/Client.d.ts +4 -4
  102. package/api/resources/processorRun/client/Client.js +4 -4
  103. package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +1 -1
  104. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +2 -2
  105. package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +1 -1
  106. package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +1 -1
  107. package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +1 -1
  108. package/api/resources/processorVersion/client/Client.d.ts +1 -1
  109. package/api/resources/processorVersion/client/Client.js +1 -1
  110. package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +1 -1
  111. package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +1 -1
  112. package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +1 -1
  113. package/api/resources/splitRuns/client/Client.d.ts +3 -3
  114. package/api/resources/splitRuns/client/Client.js +3 -3
  115. package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +1 -1
  116. package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +1 -1
  117. package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +1 -1
  118. package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +1 -1
  119. package/api/resources/splitterVersions/client/Client.d.ts +1 -1
  120. package/api/resources/splitterVersions/client/Client.js +1 -1
  121. package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +1 -1
  122. package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +1 -1
  123. package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +1 -1
  124. package/api/resources/splitters/client/Client.d.ts +1 -1
  125. package/api/resources/splitters/client/Client.js +1 -1
  126. package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +1 -1
  127. package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +1 -1
  128. package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +1 -1
  129. package/api/resources/webhookEndpoints/client/Client.d.ts +3 -3
  130. package/api/resources/webhookEndpoints/client/Client.js +3 -3
  131. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +1 -1
  132. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +1 -1
  133. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +1 -1
  134. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +1 -1
  135. package/api/resources/webhookSubscriptions/client/Client.d.ts +1 -1
  136. package/api/resources/webhookSubscriptions/client/Client.js +1 -1
  137. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +1 -1
  138. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +1 -1
  139. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +1 -1
  140. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +1 -1
  141. package/api/resources/workflowRuns/client/Client.d.ts +5 -5
  142. package/api/resources/workflowRuns/client/Client.js +5 -5
  143. package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +1 -1
  144. package/api/resources/workflowRuns/client/requests/WorkflowRunsCreateRequest.d.ts +1 -1
  145. package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +1 -1
  146. package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -2
  147. package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +1 -1
  148. package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +1 -1
  149. package/api/resources/workflowRuns/types/WorkflowRunsCreateRequestFile.d.ts +1 -1
  150. package/api/resources/workflowVersions/client/Client.d.ts +1 -1
  151. package/api/resources/workflowVersions/client/Client.js +1 -1
  152. package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +1 -1
  153. package/api/resources/workflows/client/Client.d.ts +1 -1
  154. package/api/resources/workflows/client/Client.js +1 -1
  155. package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +1 -1
  156. package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +1 -1
  157. package/api/types/ApiError.d.ts +1 -1
  158. package/api/types/BlockMetadata.d.ts +6 -0
  159. package/api/types/BlockMetadataSheet.d.ts +9 -0
  160. package/api/types/BlockMetadataSheet.js +3 -0
  161. package/api/types/ChunkMetadata.d.ts +4 -0
  162. package/api/types/ClassificationNextEntry.d.ts +1 -1
  163. package/api/types/ClassifyAdvancedOptions.d.ts +2 -0
  164. package/api/types/ClassifyBaseProcessor.d.ts +1 -1
  165. package/api/types/ClassifyBaseProcessor.js +1 -1
  166. package/api/types/ClassifyConfig.d.ts +1 -1
  167. package/api/types/ClassifyOverrideConfig.d.ts +1 -1
  168. package/api/types/ClassifyRun.d.ts +9 -9
  169. package/api/types/ClassifyRunSummary.d.ts +2 -2
  170. package/api/types/ClassifyStepDefinition.d.ts +3 -3
  171. package/api/types/ClassifyStepDefinitionConfig.d.ts +1 -1
  172. package/api/types/CollectStepDefinition.d.ts +1 -1
  173. package/api/types/ConditionalExtractStepDefinition.d.ts +1 -1
  174. package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +1 -1
  175. package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +1 -1
  176. package/api/types/ConditionalNextEntry.d.ts +1 -1
  177. package/api/types/ConditionalStepDefinition.d.ts +2 -2
  178. package/api/types/ConditionalStepDefinitionConfig.d.ts +1 -1
  179. package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +3 -3
  180. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +1 -1
  181. package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +1 -1
  182. package/api/types/EvaluationSetRun.d.ts +1 -1
  183. package/api/types/ExternalDataValidationStepDefinition.d.ts +1 -1
  184. package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +2 -2
  185. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +1 -1
  186. package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +1 -1
  187. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +3 -3
  188. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +1 -1
  189. package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +1 -1
  190. package/api/types/ExtractAdvancedOptions.d.ts +10 -3
  191. package/api/types/ExtractAdvancedOptionsCitationMode.d.ts +12 -0
  192. package/api/types/ExtractAdvancedOptionsCitationMode.js +15 -0
  193. package/api/types/ExtractAdvancedOptionsReviewAgent.d.ts +1 -1
  194. package/api/types/ExtractBaseProcessor.d.ts +1 -1
  195. package/api/types/ExtractBaseProcessor.js +1 -1
  196. package/api/types/ExtractConfigJson.d.ts +2 -2
  197. package/api/types/ExtractConfigLegacy.d.ts +2 -2
  198. package/api/types/ExtractConfigLegacyBaseProcessor.d.ts +1 -1
  199. package/api/types/ExtractConfigLegacyBaseProcessor.js +1 -1
  200. package/api/types/ExtractOutputMetadataValue.d.ts +1 -1
  201. package/api/types/ExtractOverrideConfigJson.d.ts +2 -2
  202. package/api/types/ExtractRun.d.ts +16 -16
  203. package/api/types/ExtractRunSummary.d.ts +2 -2
  204. package/api/types/ExtractStepDefinition.d.ts +1 -1
  205. package/api/types/ExtractorVersion.d.ts +1 -1
  206. package/api/types/FileConversionStepDefinition.d.ts +1 -1
  207. package/api/types/FileConversionStepDefinitionConfig.d.ts +1 -1
  208. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +1 -1
  209. package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +1 -1
  210. package/api/types/FileFromUrl.d.ts +1 -1
  211. package/api/types/HumanReviewStepDefinition.d.ts +1 -1
  212. package/api/types/LegacyClassificationAdvancedOptions.d.ts +1 -1
  213. package/api/types/LegacyClassificationConfig.d.ts +2 -2
  214. package/api/types/LegacyClassificationConfigBaseProcessor.d.ts +1 -1
  215. package/api/types/LegacyClassificationConfigBaseProcessor.js +1 -1
  216. package/api/types/LegacyDocumentProcessorRunCredits.d.ts +2 -2
  217. package/api/types/LegacyExtractionAdvancedOptions.d.ts +2 -2
  218. package/api/types/LegacyExtractionAdvancedOptionsReviewAgent.d.ts +1 -1
  219. package/api/types/LegacyExtractionConfig.d.ts +3 -3
  220. package/api/types/LegacyExtractionConfigBaseProcessor.d.ts +1 -1
  221. package/api/types/LegacyExtractionConfigBaseProcessor.js +1 -1
  222. package/api/types/LegacyJsonOutputMetadataValue.d.ts +1 -1
  223. package/api/types/LegacySplitterAdvancedOptions.d.ts +1 -1
  224. package/api/types/LegacySplitterConfig.d.ts +2 -2
  225. package/api/types/LegacySplitterConfigBaseProcessor.d.ts +1 -1
  226. package/api/types/LegacySplitterConfigBaseProcessor.js +1 -1
  227. package/api/types/MergeExtractStepDefinition.d.ts +1 -1
  228. package/api/types/MergeExtractStepDefinitionConfig.d.ts +1 -1
  229. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +1 -1
  230. package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +1 -1
  231. package/api/types/PageRanges.d.ts +1 -1
  232. package/api/types/ParseConfig.d.ts +2 -2
  233. package/api/types/ParseConfigEngine.d.ts +1 -1
  234. package/api/types/ParseConfigEngine.js +1 -1
  235. package/api/types/ParseConfigTarget.d.ts +1 -1
  236. package/api/types/ParseConfigTarget.js +1 -1
  237. package/api/types/ParseStepDefinition.d.ts +1 -1
  238. package/api/types/RuleValidationNextEntry.d.ts +1 -1
  239. package/api/types/RuleValidationStepDefinition.d.ts +2 -2
  240. package/api/types/RuleValidationStepDefinitionConfig.d.ts +1 -1
  241. package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +1 -1
  242. package/api/types/RunUsage.d.ts +1 -1
  243. package/api/types/RunUsageSummary.d.ts +1 -1
  244. package/api/types/SplitBaseProcessor.d.ts +1 -1
  245. package/api/types/SplitBaseProcessor.js +1 -1
  246. package/api/types/SplitConfig.d.ts +1 -1
  247. package/api/types/SplitOverrideConfig.d.ts +1 -1
  248. package/api/types/SplitRun.d.ts +9 -9
  249. package/api/types/SplitRunSummary.d.ts +2 -2
  250. package/api/types/SplitStepDefinition.d.ts +3 -3
  251. package/api/types/SplitStepDefinitionConfig.d.ts +1 -1
  252. package/api/types/StepRun.d.ts +28 -2
  253. package/api/types/TriggerStepDefinition.d.ts +1 -1
  254. package/api/types/WebhookResponseStepDefinition.d.ts +1 -1
  255. package/api/types/WorkflowStepDefinition.d.ts +1 -1
  256. package/api/types/index.d.ts +2 -0
  257. package/api/types/index.js +2 -0
  258. package/auth/BearerAuthProvider.d.ts +1 -1
  259. package/auth/BearerAuthProvider.js +6 -3
  260. package/package.json +2 -1
  261. package/reference.md +162 -45
  262. package/version.d.ts +1 -1
  263. package/version.js +1 -1
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ExtractRunsDeleteRequest {
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 ExtractRunsListRequest {
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 ExtractRunsRetrieveRequest {
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 ExtractorVersionsClient {
9
9
  }
10
10
  export declare class ExtractorVersionsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ExtractorVersionsClient.Options>;
12
- constructor(options: ExtractorVersionsClient.Options);
12
+ constructor(options?: ExtractorVersionsClient.Options);
13
13
  /**
14
14
  * This endpoint allows you to fetch all versions of a given extractor, 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 ExtractorVersionsClient {
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 ExtractorVersionsCreateRequest {
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 ExtractorVersionsListRequest {
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 ExtractorVersionsRetrieveRequest {
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 ExtractorsClient {
9
9
  }
10
10
  export declare class ExtractorsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ExtractorsClient.Options>;
12
- constructor(options: ExtractorsClient.Options);
12
+ constructor(options?: ExtractorsClient.Options);
13
13
  /**
14
14
  * List all extractors.
15
15
  *
@@ -37,6 +37,8 @@ export declare class ExtractorsClient {
37
37
  /**
38
38
  * Create a new extractor.
39
39
  *
40
+ * You can optionally provide a `generate` object to automatically generate an extraction schema from sample documents using AI. `generate` is mutually exclusive with `config` and `cloneExtractorId`.
41
+ *
40
42
  * @param {Extend.ExtractorsCreateRequest} request
41
43
  * @param {ExtractorsClient.RequestOptions} requestOptions - Request-specific configuration.
42
44
  *
@@ -57,21 +59,57 @@ export declare class ExtractorsClient {
57
59
  * "type": "object",
58
60
  * "properties": {
59
61
  * "vendor_name": {
60
- * "type": "string",
62
+ * "type": [
63
+ * "string",
64
+ * "null"
65
+ * ],
61
66
  * "description": "The name of the vendor"
62
67
  * },
63
68
  * "invoice_number": {
64
- * "type": "string",
69
+ * "type": [
70
+ * "string",
71
+ * "null"
72
+ * ],
65
73
  * "description": "The invoice number"
66
74
  * },
67
75
  * "total_amount": {
68
- * "type": "number",
69
- * "description": "The total amount due"
76
+ * "type": "object",
77
+ * "extend:type": "currency",
78
+ * "description": "The total amount due",
79
+ * "properties": {
80
+ * "amount": {
81
+ * "type": [
82
+ * "number",
83
+ * "null"
84
+ * ]
85
+ * },
86
+ * "iso_4217_currency_code": {
87
+ * "type": [
88
+ * "string",
89
+ * "null"
90
+ * ]
91
+ * }
92
+ * },
93
+ * "required": [
94
+ * "amount",
95
+ * "iso_4217_currency_code"
96
+ * ]
70
97
  * }
71
98
  * }
72
99
  * }
73
100
  * }
74
101
  * })
102
+ *
103
+ * @example
104
+ * await client.extractors.create({
105
+ * name: "Invoice Extractor",
106
+ * generate: {
107
+ * files: [{
108
+ * url: "https://example.com/sample-invoice.pdf"
109
+ * }],
110
+ * instructions: "US tax invoice with line items, vendor details, and total amount"
111
+ * }
112
+ * })
75
113
  */
76
114
  create(request: Extend.ExtractorsCreateRequest, requestOptions?: ExtractorsClient.RequestOptions): core.HttpResponsePromise<Extend.Extractor>;
77
115
  private __create;
@@ -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 ExtractorsClient {
66
- constructor(options) {
66
+ constructor(options = {}) {
67
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
@@ -152,6 +152,8 @@ class ExtractorsClient {
152
152
  /**
153
153
  * Create a new extractor.
154
154
  *
155
+ * You can optionally provide a `generate` object to automatically generate an extraction schema from sample documents using AI. `generate` is mutually exclusive with `config` and `cloneExtractorId`.
156
+ *
155
157
  * @param {Extend.ExtractorsCreateRequest} request
156
158
  * @param {ExtractorsClient.RequestOptions} requestOptions - Request-specific configuration.
157
159
  *
@@ -172,21 +174,57 @@ class ExtractorsClient {
172
174
  * "type": "object",
173
175
  * "properties": {
174
176
  * "vendor_name": {
175
- * "type": "string",
177
+ * "type": [
178
+ * "string",
179
+ * "null"
180
+ * ],
176
181
  * "description": "The name of the vendor"
177
182
  * },
178
183
  * "invoice_number": {
179
- * "type": "string",
184
+ * "type": [
185
+ * "string",
186
+ * "null"
187
+ * ],
180
188
  * "description": "The invoice number"
181
189
  * },
182
190
  * "total_amount": {
183
- * "type": "number",
184
- * "description": "The total amount due"
191
+ * "type": "object",
192
+ * "extend:type": "currency",
193
+ * "description": "The total amount due",
194
+ * "properties": {
195
+ * "amount": {
196
+ * "type": [
197
+ * "number",
198
+ * "null"
199
+ * ]
200
+ * },
201
+ * "iso_4217_currency_code": {
202
+ * "type": [
203
+ * "string",
204
+ * "null"
205
+ * ]
206
+ * }
207
+ * },
208
+ * "required": [
209
+ * "amount",
210
+ * "iso_4217_currency_code"
211
+ * ]
185
212
  * }
186
213
  * }
187
214
  * }
188
215
  * }
189
216
  * })
217
+ *
218
+ * @example
219
+ * await client.extractors.create({
220
+ * name: "Invoice Extractor",
221
+ * generate: {
222
+ * files: [{
223
+ * url: "https://example.com/sample-invoice.pdf"
224
+ * }],
225
+ * instructions: "US tax invoice with line items, vendor details, and total amount"
226
+ * }
227
+ * })
190
228
  */
191
229
  create(request, requestOptions) {
192
230
  return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
@@ -8,31 +8,73 @@ import type * as Extend from "../../../../index";
8
8
  * "type": "object",
9
9
  * "properties": {
10
10
  * "vendor_name": {
11
- * "type": "string",
11
+ * "type": [
12
+ * "string",
13
+ * "null"
14
+ * ],
12
15
  * "description": "The name of the vendor"
13
16
  * },
14
17
  * "invoice_number": {
15
- * "type": "string",
18
+ * "type": [
19
+ * "string",
20
+ * "null"
21
+ * ],
16
22
  * "description": "The invoice number"
17
23
  * },
18
24
  * "total_amount": {
19
- * "type": "number",
20
- * "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
+ * ]
21
46
  * }
22
47
  * }
23
48
  * }
24
49
  * }
25
50
  * }
51
+ *
52
+ * @example
53
+ * {
54
+ * name: "Invoice Extractor",
55
+ * generate: {
56
+ * files: [{
57
+ * url: "https://example.com/sample-invoice.pdf"
58
+ * }],
59
+ * instructions: "US tax invoice with line items, vendor details, and total amount"
60
+ * }
61
+ * }
26
62
  */
27
63
  export interface ExtractorsCreateRequest {
28
64
  /** The name of the extractor. */
29
65
  name: string;
30
66
  /**
31
- * The ID of an existing extractor to clone. If provided, the new extractor will be created with the same config as the extractor with this ID. Cannot be provided together with `config`.
67
+ * The ID of an existing extractor to clone. If provided, the new extractor will be created with the same config as the extractor with this ID. Cannot be provided together with `config` or `generate`.
32
68
  *
33
69
  * Example: `"ex_BMdfq_yWM3sT-ZzvCnA3f"`
34
70
  */
35
71
  cloneExtractorId?: string;
36
- /** The configuration for the extractor. Cannot be provided together with `cloneExtractorId`. */
72
+ /** The configuration for the extractor. Cannot be provided together with `cloneExtractorId` or `generate`. */
37
73
  config?: Extend.ExtractConfigJson;
74
+ /**
75
+ * If provided, an extraction schema is automatically generated from the supplied sample documents and applied to the extractor's draft. The response includes the extractor with the generated schema already in place.
76
+ *
77
+ * Cannot be provided together with `config` or `cloneExtractorId`.
78
+ */
79
+ generate?: Extend.ExtractorsCreateRequestGenerate;
38
80
  }
@@ -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;
@@ -0,0 +1,12 @@
1
+ import type * as Extend from "../../../index";
2
+ /**
3
+ * If provided, an extraction schema is automatically generated from the supplied sample documents and applied to the extractor's draft. The response includes the extractor with the generated schema already in place.
4
+ *
5
+ * Cannot be provided together with `config` or `cloneExtractorId`.
6
+ */
7
+ export interface ExtractorsCreateRequestGenerate {
8
+ /** One to five sample documents used to generate the schema. Each item is either a file URL (downloaded inline) or an existing Extend file ID. */
9
+ files: Extend.ExtractorsCreateRequestGenerateFilesItem[];
10
+ /** Optional, but recommended. Describe the type of document, kinds of fields you want to extract, key requirements, and rules to follow. More context is better. */
11
+ instructions?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import type * as Extend from "../../../index";
2
+ export type ExtractorsCreateRequestGenerateFilesItem = Extend.FileFromUrl | Extend.FileFromId;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,3 @@
1
+ export * from "./ExtractorsCreateRequestGenerate";
2
+ export * from "./ExtractorsCreateRequestGenerateFilesItem";
1
3
  export * from "./ExtractorsListResponse";
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ExtractorsCreateRequestGenerate"), exports);
18
+ __exportStar(require("./ExtractorsCreateRequestGenerateFilesItem"), exports);
17
19
  __exportStar(require("./ExtractorsListResponse"), exports);
@@ -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;
@@ -24,6 +24,7 @@ export * from "./evaluationSetItems/client/requests";
24
24
  export * from "./evaluationSetItems/types";
25
25
  export * as evaluationSetRuns from "./evaluationSetRuns";
26
26
  export * from "./evaluationSetRuns/client/requests";
27
+ export * from "./evaluationSetRuns/types";
27
28
  export * as evaluationSets from "./evaluationSets";
28
29
  export * from "./evaluationSets/client/requests";
29
30
  export * from "./evaluationSets/types";
@@ -63,6 +63,7 @@ __exportStar(require("./evaluationSetItems/client/requests"), exports);
63
63
  __exportStar(require("./evaluationSetItems/types"), exports);
64
64
  exports.evaluationSetRuns = __importStar(require("./evaluationSetRuns"));
65
65
  __exportStar(require("./evaluationSetRuns/client/requests"), exports);
66
+ __exportStar(require("./evaluationSetRuns/types"), exports);
66
67
  exports.evaluationSets = __importStar(require("./evaluationSets"));
67
68
  __exportStar(require("./evaluationSets/client/requests"), exports);
68
69
  __exportStar(require("./evaluationSets/types"), exports);
@@ -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
  *
@@ -116,7 +116,7 @@ export declare class ParseRunsClient {
116
116
  /**
117
117
  * 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
118
  *
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.
119
+ * 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
120
  *
121
121
  * **Monitoring results:**
122
122
  * - **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
  *
@@ -384,7 +384,7 @@ class ParseRunsClient {
384
384
  /**
385
385
  * 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
386
  *
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.
387
+ * 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
388
  *
389
389
  * **Monitoring results:**
390
390
  * - **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}`.
@@ -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
  }
@@ -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
  }