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 EditRunsRetrieveRequest {
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 EditSchemasClient {
9
9
  }
10
10
  export declare class EditSchemasClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EditSchemasClient.Options>;
12
- constructor(options: EditSchemasClient.Options);
12
+ constructor(options?: EditSchemasClient.Options);
13
13
  /**
14
14
  * Detect fields in a PDF form and synchronously return an edit schema payload.
15
15
  *
@@ -17,7 +17,7 @@ export declare class EditSchemasClient {
17
17
  *
18
18
  * This endpoint returns the generated schema directly. There are no schema generation run resources to poll or delete.
19
19
  *
20
- * For more details, see the [Generate Edit Schema guide](https://docs.extend.ai/2026-02-09/product/editing/generate-edit-schema) and the [Edit File guide](https://docs.extend.ai/2026-02-09/product/editing/edit).
20
+ * For more details, see the [Generate Edit Schema guide](https://docs.extend.ai/2026-02-09/editing/generate-edit-schema) and the [Edit File guide](https://docs.extend.ai/2026-02-09/editing/edit).
21
21
  *
22
22
  * @param {Extend.EditSchemasGenerateRequest} request
23
23
  * @param {EditSchemasClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -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 EditSchemasClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -62,7 +62,7 @@ class EditSchemasClient {
62
62
  *
63
63
  * This endpoint returns the generated schema directly. There are no schema generation run resources to poll or delete.
64
64
  *
65
- * For more details, see the [Generate Edit Schema guide](https://docs.extend.ai/2026-02-09/product/editing/generate-edit-schema) and the [Edit File guide](https://docs.extend.ai/2026-02-09/product/editing/edit).
65
+ * For more details, see the [Generate Edit Schema guide](https://docs.extend.ai/2026-02-09/editing/generate-edit-schema) and the [Edit File guide](https://docs.extend.ai/2026-02-09/editing/edit).
66
66
  *
67
67
  * @param {Extend.EditSchemasGenerateRequest} request
68
68
  * @param {EditSchemasClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -9,7 +9,7 @@ export declare namespace EditTemplatesClient {
9
9
  }
10
10
  export declare class EditTemplatesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EditTemplatesClient.Options>;
12
- constructor(options: EditTemplatesClient.Options);
12
+ constructor(options?: EditTemplatesClient.Options);
13
13
  /**
14
14
  * Retrieve a saved edit template by ID.
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 EditTemplatesClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface EditTemplatesRetrieveRequest {
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,11 +9,11 @@ export declare namespace EvaluationSetItemsClient {
9
9
  }
10
10
  export declare class EvaluationSetItemsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EvaluationSetItemsClient.Options>;
12
- constructor(options: EvaluationSetItemsClient.Options);
12
+ constructor(options?: EvaluationSetItemsClient.Options);
13
13
  /**
14
14
  * List items in a specific evaluation set.
15
15
  *
16
- * Returns a summary of each evaluation set item. Use the [Get Evaluation Set Item](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/get-evaluation-set-item) endpoint to get the full details of an evaluation set item.
16
+ * Returns a summary of each evaluation set item. Use the [Get Evaluation Set Item](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/get-evaluation-set-item) endpoint to get the full details of an evaluation set item.
17
17
  *
18
18
  * @param {string} evaluationSetId - The ID of the evaluation set.
19
19
  *
@@ -42,7 +42,7 @@ export declare class EvaluationSetItemsClient {
42
42
  *
43
43
  * **Limit:** You can create up to 100 items at a time.
44
44
  *
45
- * Learn more about how to create evaluation set items in the [Evaluation Sets](https://docs.extend.ai/2026-02-09/product/evaluation/overview) product page.
45
+ * Learn more about how to create evaluation set items in the [Evaluation Sets](https://docs.extend.ai/2026-02-09/evaluation/overview) product page.
46
46
  *
47
47
  * @param {string} evaluationSetId - The ID of the evaluation set.
48
48
  *
@@ -63,13 +63,13 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
63
63
  const errors = __importStar(require("../../../../errors/index"));
64
64
  const Extend = __importStar(require("../../../index"));
65
65
  class EvaluationSetItemsClient {
66
- constructor(options) {
66
+ constructor(options = {}) {
67
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
70
70
  * List items in a specific evaluation set.
71
71
  *
72
- * Returns a summary of each evaluation set item. Use the [Get Evaluation Set Item](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/get-evaluation-set-item) endpoint to get the full details of an evaluation set item.
72
+ * Returns a summary of each evaluation set item. Use the [Get Evaluation Set Item](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/get-evaluation-set-item) endpoint to get the full details of an evaluation set item.
73
73
  *
74
74
  * @param {string} evaluationSetId - The ID of the evaluation set.
75
75
  *
@@ -160,7 +160,7 @@ class EvaluationSetItemsClient {
160
160
  *
161
161
  * **Limit:** You can create up to 100 items at a time.
162
162
  *
163
- * Learn more about how to create evaluation set items in the [Evaluation Sets](https://docs.extend.ai/2026-02-09/product/evaluation/overview) product page.
163
+ * Learn more about how to create evaluation set items in the [Evaluation Sets](https://docs.extend.ai/2026-02-09/evaluation/overview) product page.
164
164
  *
165
165
  * @param {string} evaluationSetId - The ID of the evaluation set.
166
166
  *
@@ -15,7 +15,7 @@ import type * as Extend from "../../../../index";
15
15
  * }
16
16
  */
17
17
  export interface EvaluationSetItemsCreateRequest {
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
  /** An array of objects representing the evaluation set items to create. */
21
21
  items: Extend.EvaluationSetItemsCreateRequestItemsItem[];
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface EvaluationSetItemsDeleteRequest {
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
  }
@@ -10,6 +10,6 @@ export interface EvaluationSetItemsListRequest {
10
10
  sortDir?: Extend.SortDir;
11
11
  nextPageToken?: Extend.NextPageToken;
12
12
  maxPageSize?: Extend.MaxPageSize;
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 EvaluationSetItemsRetrieveRequest {
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
  }
@@ -12,7 +12,7 @@ import type * as Extend from "../../../../index";
12
12
  * }
13
13
  */
14
14
  export interface EvaluationSetItemsUpdateRequest {
15
- /** 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. */
15
+ /** 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. */
16
16
  "x-extend-workspace-id"?: string;
17
17
  /** The expected output of the extractor, classifier, or splitter when run against the file. This must conform to the output schema of the entity associated with the evaluation set. */
18
18
  expectedOutput: Extend.ProvidedProcessorOutput;
@@ -9,13 +9,47 @@ export declare namespace EvaluationSetRunsClient {
9
9
  }
10
10
  export declare class EvaluationSetRunsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EvaluationSetRunsClient.Options>;
12
- constructor(options: EvaluationSetRunsClient.Options);
12
+ constructor(options?: EvaluationSetRunsClient.Options);
13
+ /**
14
+ * Create and start an async evaluation set run. The response returns the evaluation set run object with its initial status; use `GET /evaluation_set_runs/{id}` to poll for completion.
15
+ *
16
+ * Evaluation set runs are currently supported for document processor evaluation sets.
17
+ *
18
+ * @param {Extend.EvaluationSetRunsCreateRequest} request
19
+ * @param {EvaluationSetRunsClient.RequestOptions} requestOptions - Request-specific configuration.
20
+ *
21
+ * @throws {@link Extend.BadRequestError}
22
+ * @throws {@link Extend.UnauthorizedError}
23
+ * @throws {@link Extend.PaymentRequiredError}
24
+ * @throws {@link Extend.ForbiddenError}
25
+ * @throws {@link Extend.NotFoundError}
26
+ * @throws {@link Extend.UnprocessableEntityError}
27
+ * @throws {@link Extend.TooManyRequestsError}
28
+ * @throws {@link Extend.InternalServerError}
29
+ *
30
+ * @example
31
+ * await client.evaluationSetRuns.create({
32
+ * evaluationSetId: "ev_2LcgeY_mp2T5yPaEuq5Lw",
33
+ * entity: {
34
+ * id: "ex_Xj8mK2pL9nR4vT7qY5wZ",
35
+ * version: "1.0"
36
+ * }
37
+ * })
38
+ *
39
+ * @example
40
+ * await client.evaluationSetRuns.create({
41
+ * evaluationSetId: "ev_2LcgeY_mp2T5yPaEuq5Lw",
42
+ * evaluationSetItemIds: ["evi_kR9mNP12Qw4yTv8BdR3H"]
43
+ * })
44
+ */
45
+ create(request: Extend.EvaluationSetRunsCreateRequest, requestOptions?: EvaluationSetRunsClient.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetRun>;
46
+ private __create;
13
47
  /**
14
48
  * Get details of an evaluation set run.
15
49
  *
16
50
  * @param {string} id - The ID of the evaluation set run.
17
51
  *
18
- * Example: `"evr_Xj8mK2pL9nR4vT7qY5wZ"`
52
+ * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
19
53
  * @param {Extend.EvaluationSetRunsRetrieveRequest} request
20
54
  * @param {EvaluationSetRunsClient.RequestOptions} requestOptions - Request-specific configuration.
21
55
  *
@@ -29,7 +63,7 @@ export declare class EvaluationSetRunsClient {
29
63
  * @throws {@link Extend.InternalServerError}
30
64
  *
31
65
  * @example
32
- * await client.evaluationSetRuns.retrieve("evaluation_set_run_id_here")
66
+ * await client.evaluationSetRuns.retrieve("bpr_Xj8mK2pL9nR4vT7qY5wZ")
33
67
  */
34
68
  retrieve(id: string, request?: Extend.EvaluationSetRunsRetrieveRequest, requestOptions?: EvaluationSetRunsClient.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetRun>;
35
69
  private __retrieve;
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
42
42
  step((generator = generator.apply(thisArg, _arguments || [])).next());
43
43
  });
44
44
  };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
45
56
  Object.defineProperty(exports, "__esModule", { value: true });
46
57
  exports.EvaluationSetRunsClient = void 0;
47
58
  const BaseClient_1 = require("../../../../BaseClient");
@@ -52,15 +63,105 @@ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCo
52
63
  const errors = __importStar(require("../../../../errors/index"));
53
64
  const Extend = __importStar(require("../../../index"));
54
65
  class EvaluationSetRunsClient {
55
- constructor(options) {
66
+ constructor(options = {}) {
56
67
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
68
  }
69
+ /**
70
+ * Create and start an async evaluation set run. The response returns the evaluation set run object with its initial status; use `GET /evaluation_set_runs/{id}` to poll for completion.
71
+ *
72
+ * Evaluation set runs are currently supported for document processor evaluation sets.
73
+ *
74
+ * @param {Extend.EvaluationSetRunsCreateRequest} request
75
+ * @param {EvaluationSetRunsClient.RequestOptions} requestOptions - Request-specific configuration.
76
+ *
77
+ * @throws {@link Extend.BadRequestError}
78
+ * @throws {@link Extend.UnauthorizedError}
79
+ * @throws {@link Extend.PaymentRequiredError}
80
+ * @throws {@link Extend.ForbiddenError}
81
+ * @throws {@link Extend.NotFoundError}
82
+ * @throws {@link Extend.UnprocessableEntityError}
83
+ * @throws {@link Extend.TooManyRequestsError}
84
+ * @throws {@link Extend.InternalServerError}
85
+ *
86
+ * @example
87
+ * await client.evaluationSetRuns.create({
88
+ * evaluationSetId: "ev_2LcgeY_mp2T5yPaEuq5Lw",
89
+ * entity: {
90
+ * id: "ex_Xj8mK2pL9nR4vT7qY5wZ",
91
+ * version: "1.0"
92
+ * }
93
+ * })
94
+ *
95
+ * @example
96
+ * await client.evaluationSetRuns.create({
97
+ * evaluationSetId: "ev_2LcgeY_mp2T5yPaEuq5Lw",
98
+ * evaluationSetItemIds: ["evi_kR9mNP12Qw4yTv8BdR3H"]
99
+ * })
100
+ */
101
+ create(request, requestOptions) {
102
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
103
+ }
104
+ __create(request, requestOptions) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
107
+ const { "x-extend-workspace-id": extendWorkspaceId } = request, _body = __rest(request, ["x-extend-workspace-id"]);
108
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
109
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
110
+ "x-extend-workspace-id": extendWorkspaceId,
111
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2026-02-09",
112
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
113
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
114
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, "evaluation_set_runs"),
115
+ method: "POST",
116
+ headers: _headers,
117
+ contentType: "application/json",
118
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
119
+ requestType: "json",
120
+ body: _body,
121
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 300) * 1000,
122
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
123
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
124
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
125
+ logging: this._options.logging,
126
+ });
127
+ if (_response.ok) {
128
+ return { data: _response.body, rawResponse: _response.rawResponse };
129
+ }
130
+ if (_response.error.reason === "status-code") {
131
+ switch (_response.error.statusCode) {
132
+ case 400:
133
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
134
+ case 401:
135
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
136
+ case 402:
137
+ throw new Extend.PaymentRequiredError(_response.error.body, _response.rawResponse);
138
+ case 403:
139
+ throw new Extend.ForbiddenError(_response.error.body, _response.rawResponse);
140
+ case 404:
141
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
142
+ case 422:
143
+ throw new Extend.UnprocessableEntityError(_response.error.body, _response.rawResponse);
144
+ case 429:
145
+ throw new Extend.TooManyRequestsError(_response.error.body, _response.rawResponse);
146
+ case 500:
147
+ throw new Extend.InternalServerError(_response.error.body, _response.rawResponse);
148
+ default:
149
+ throw new errors.ExtendError({
150
+ statusCode: _response.error.statusCode,
151
+ body: _response.error.body,
152
+ rawResponse: _response.rawResponse,
153
+ });
154
+ }
155
+ }
156
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/evaluation_set_runs");
157
+ });
158
+ }
58
159
  /**
59
160
  * Get details of an evaluation set run.
60
161
  *
61
162
  * @param {string} id - The ID of the evaluation set run.
62
163
  *
63
- * Example: `"evr_Xj8mK2pL9nR4vT7qY5wZ"`
164
+ * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
64
165
  * @param {Extend.EvaluationSetRunsRetrieveRequest} request
65
166
  * @param {EvaluationSetRunsClient.RequestOptions} requestOptions - Request-specific configuration.
66
167
  *
@@ -74,7 +175,7 @@ class EvaluationSetRunsClient {
74
175
  * @throws {@link Extend.InternalServerError}
75
176
  *
76
177
  * @example
77
- * await client.evaluationSetRuns.retrieve("evaluation_set_run_id_here")
178
+ * await client.evaluationSetRuns.retrieve("bpr_Xj8mK2pL9nR4vT7qY5wZ")
78
179
  */
79
180
  retrieve(id, request = {}, requestOptions) {
80
181
  return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions));
@@ -0,0 +1,27 @@
1
+ import type * as Extend from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * evaluationSetId: "ev_2LcgeY_mp2T5yPaEuq5Lw",
6
+ * entity: {
7
+ * id: "ex_Xj8mK2pL9nR4vT7qY5wZ",
8
+ * version: "1.0"
9
+ * }
10
+ * }
11
+ *
12
+ * @example
13
+ * {
14
+ * evaluationSetId: "ev_2LcgeY_mp2T5yPaEuq5Lw",
15
+ * evaluationSetItemIds: ["evi_kR9mNP12Qw4yTv8BdR3H"]
16
+ * }
17
+ */
18
+ export interface EvaluationSetRunsCreateRequest {
19
+ /** 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. */
20
+ "x-extend-workspace-id"?: string;
21
+ /** The ID of the evaluation set to run. */
22
+ evaluationSetId: string;
23
+ /** Optional processor and version to run against the evaluation set. If omitted, the evaluation set's processor is run at its draft version. */
24
+ entity?: Extend.EvaluationSetRunsCreateRequestEntity;
25
+ /** Optional list of evaluation set item IDs to run. If omitted, all items in the evaluation set are run. */
26
+ evaluationSetItemIds?: string[];
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface EvaluationSetRunsRetrieveRequest {
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
  }
@@ -1 +1,2 @@
1
+ export type { EvaluationSetRunsCreateRequest } from "./EvaluationSetRunsCreateRequest";
1
2
  export type { EvaluationSetRunsRetrieveRequest } from "./EvaluationSetRunsRetrieveRequest";
@@ -1 +1,2 @@
1
1
  export * from "./client";
2
+ export * from "./types";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,9 @@
1
+ import type * as Extend from "../../../index";
2
+ /**
3
+ * Optional processor and version to run against the evaluation set. If omitted, the evaluation set's processor is run at its draft version.
4
+ */
5
+ export interface EvaluationSetRunsCreateRequestEntity {
6
+ /** The ID of the extractor, classifier, or splitter to evaluate. */
7
+ id: string;
8
+ version?: Extend.ProcessorVersionString;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./EvaluationSetRunsCreateRequestEntity";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EvaluationSetRunsCreateRequestEntity"), exports);
@@ -9,7 +9,7 @@ export declare namespace EvaluationSetsClient {
9
9
  }
10
10
  export declare class EvaluationSetsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EvaluationSetsClient.Options>;
12
- constructor(options: EvaluationSetsClient.Options);
12
+ constructor(options?: EvaluationSetsClient.Options);
13
13
  /**
14
14
  * List evaluation sets in your account.
15
15
  *
@@ -34,9 +34,9 @@ export declare class EvaluationSetsClient {
34
34
  list(request?: Extend.EvaluationSetsListRequest, requestOptions?: EvaluationSetsClient.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetsListResponse>;
35
35
  private __list;
36
36
  /**
37
- * Evaluation sets are collections of files and expected outputs that are used to evaluate the performance of a given extractor, classifier, or splitter. This endpoint will create a new evaluation set, which items can be added to using the [Create Evaluation Set Item](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/create-evaluation-set-item) endpoint.
37
+ * Evaluation sets are collections of files and expected outputs that are used to evaluate the performance of a given extractor, classifier, or splitter. This endpoint will create a new evaluation set, which items can be added to using the [Create Evaluation Set Item](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/create-evaluation-set-item) endpoint.
38
38
  *
39
- * Note: It is not necessary to create an evaluation set via API. You can also create an evaluation set via the Extend dashboard and take the ID from there. To learn more about how to create evaluation sets, see the [Evaluation Sets](https://docs.extend.ai/2026-02-09/product/evaluation/overview) product page.
39
+ * Note: It is not necessary to create an evaluation set via API. You can also create an evaluation set via the Extend dashboard and take the ID from there. To learn more about how to create evaluation sets, see the [Evaluation Sets](https://docs.extend.ai/2026-02-09/evaluation/overview) product page.
40
40
  *
41
41
  * @param {Extend.EvaluationSetsCreateRequest} request
42
42
  * @param {EvaluationSetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -60,7 +60,7 @@ export declare class EvaluationSetsClient {
60
60
  create(request: Extend.EvaluationSetsCreateRequest, requestOptions?: EvaluationSetsClient.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSet>;
61
61
  private __create;
62
62
  /**
63
- * Retrieve a specific evaluation set by ID. This returns an evaluation set object, but does not include the items in the evaluation set. You can use the [List Evaluation Set Items](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/list-evaluation-set-items) endpoint to get the items in an evaluation set.
63
+ * Retrieve a specific evaluation set by ID. This returns an evaluation set object, but does not include the items in the evaluation set. You can use the [List Evaluation Set Items](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/list-evaluation-set-items) endpoint to get the items in an evaluation set.
64
64
  *
65
65
  * @param {string} id - The ID of the evaluation set.
66
66
  *
@@ -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 EvaluationSetsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -139,9 +139,9 @@ class EvaluationSetsClient {
139
139
  });
140
140
  }
141
141
  /**
142
- * Evaluation sets are collections of files and expected outputs that are used to evaluate the performance of a given extractor, classifier, or splitter. This endpoint will create a new evaluation set, which items can be added to using the [Create Evaluation Set Item](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/create-evaluation-set-item) endpoint.
142
+ * Evaluation sets are collections of files and expected outputs that are used to evaluate the performance of a given extractor, classifier, or splitter. This endpoint will create a new evaluation set, which items can be added to using the [Create Evaluation Set Item](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/create-evaluation-set-item) endpoint.
143
143
  *
144
- * Note: It is not necessary to create an evaluation set via API. You can also create an evaluation set via the Extend dashboard and take the ID from there. To learn more about how to create evaluation sets, see the [Evaluation Sets](https://docs.extend.ai/2026-02-09/product/evaluation/overview) product page.
144
+ * Note: It is not necessary to create an evaluation set via API. You can also create an evaluation set via the Extend dashboard and take the ID from there. To learn more about how to create evaluation sets, see the [Evaluation Sets](https://docs.extend.ai/2026-02-09/evaluation/overview) product page.
145
145
  *
146
146
  * @param {Extend.EvaluationSetsCreateRequest} request
147
147
  * @param {EvaluationSetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -217,7 +217,7 @@ class EvaluationSetsClient {
217
217
  });
218
218
  }
219
219
  /**
220
- * Retrieve a specific evaluation set by ID. This returns an evaluation set object, but does not include the items in the evaluation set. You can use the [List Evaluation Set Items](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/evaluation/list-evaluation-set-items) endpoint to get the items in an evaluation set.
220
+ * Retrieve a specific evaluation set by ID. This returns an evaluation set object, but does not include the items in the evaluation set. You can use the [List Evaluation Set Items](https://docs.extend.ai/2026-02-09/api-reference/endpoints/evaluation/list-evaluation-set-items) endpoint to get the items in an evaluation set.
221
221
  *
222
222
  * @param {string} id - The ID of the evaluation set.
223
223
  *
@@ -17,6 +17,6 @@ export interface EvaluationSetsListRequest {
17
17
  sortDir?: Extend.SortDir;
18
18
  nextPageToken?: Extend.NextPageToken;
19
19
  maxPageSize?: Extend.MaxPageSize;
20
- /** 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. */
20
+ /** 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. */
21
21
  "x-extend-workspace-id"?: string;
22
22
  }
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface EvaluationSetsRetrieveRequest {
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 ExtractRunsClient {
9
9
  }
10
10
  export declare class ExtractRunsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ExtractRunsClient.Options>;
12
- constructor(options: ExtractRunsClient.Options);
12
+ constructor(options?: ExtractRunsClient.Options);
13
13
  /**
14
14
  * List all extract runs.
15
15
  *
@@ -66,7 +66,7 @@ export declare class ExtractRunsClient {
66
66
  /**
67
67
  * Retrieve details about a specific extract run, including its status, outputs, and any edits made during review.
68
68
  *
69
- * A common use case for this endpoint is to poll for the status and final output of an extract run when using the [Create Extract Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/extract/create-extract-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 an extract run when using the [Create Extract Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/extract/create-extract-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 extract run.
72
72
  *
@@ -139,7 +139,7 @@ export declare class ExtractRunsClient {
139
139
  /**
140
140
  * Submit up to **1,000 files** for extraction in a single request. Each file is processed as an independent extract run using the same extractor and configuration.
141
141
  *
142
- * Unlike the single [Extract File (Async)](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/extract/create-extract-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 [Extract File (Async)](https://docs.extend.ai/2026-02-09/api-reference/endpoints/extract/create-extract-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 /extract_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 ExtractRunsClient {
55
- constructor(options) {
55
+ constructor(options = {}) {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
@@ -228,7 +228,7 @@ class ExtractRunsClient {
228
228
  /**
229
229
  * Retrieve details about a specific extract run, including its status, outputs, and any edits made during review.
230
230
  *
231
- * A common use case for this endpoint is to poll for the status and final output of an extract run when using the [Create Extract Run](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/extract/create-extract-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 an extract run when using the [Create Extract Run](https://docs.extend.ai/2026-02-09/api-reference/endpoints/extract/create-extract-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 extract run.
234
234
  *
@@ -460,7 +460,7 @@ class ExtractRunsClient {
460
460
  /**
461
461
  * Submit up to **1,000 files** for extraction in a single request. Each file is processed as an independent extract run using the same extractor and configuration.
462
462
  *
463
- * Unlike the single [Extract File (Async)](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/extract/create-extract-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 [Extract File (Async)](https://docs.extend.ai/2026-02-09/api-reference/endpoints/extract/create-extract-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 /extract_runs?batchId={id}`.
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface ExtractRunsCancelRequest {
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
  }