extend-ai 1.6.0 → 1.8.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.
- package/BaseClient.js +2 -2
- package/Client.d.ts +9 -0
- package/Client.js +64 -46
- package/api/client/requests/ParseRequest.d.ts +2 -0
- package/api/resources/batchProcessorRun/client/Client.d.ts +2 -1
- package/api/resources/batchProcessorRun/client/Client.js +10 -5
- package/api/resources/batchProcessorRun/client/index.d.ts +1 -1
- package/api/resources/batchProcessorRun/client/index.js +15 -0
- package/api/resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.d.ts +8 -0
- package/api/resources/batchProcessorRun/client/requests/index.d.ts +1 -0
- package/api/resources/batchProcessorRun/client/requests/index.js +2 -0
- package/api/resources/batchRuns/client/Client.d.ts +49 -0
- package/api/resources/batchRuns/client/Client.js +142 -0
- package/api/resources/batchRuns/client/index.d.ts +1 -0
- package/api/resources/batchRuns/client/index.js +2 -0
- package/api/resources/batchRuns/index.d.ts +1 -0
- package/api/resources/batchRuns/index.js +17 -0
- package/api/resources/classifierVersions/client/Client.d.ts +8 -4
- package/api/resources/classifierVersions/client/Client.js +38 -12
- package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +2 -0
- package/api/resources/classifierVersions/client/requests/ClassifierVersionsListRequest.d.ts +2 -0
- package/api/resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.d.ts +8 -0
- package/api/resources/classifierVersions/client/requests/index.d.ts +1 -0
- package/api/resources/classifiers/client/Client.d.ts +2 -1
- package/api/resources/classifiers/client/Client.js +32 -9
- package/api/resources/classifiers/client/requests/ClassifiersListRequest.d.ts +2 -0
- package/api/resources/classifiers/client/requests/ClassifiersRetrieveRequest.d.ts +8 -0
- package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +2 -0
- package/api/resources/classifiers/client/requests/index.d.ts +1 -0
- package/api/resources/classifyRuns/client/Client.d.ts +63 -3
- package/api/resources/classifyRuns/client/Client.js +145 -17
- package/api/resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.d.ts +8 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsCreateBatchRequest.d.ts +38 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.d.ts +8 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +8 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsRetrieveRequest.js +3 -0
- package/api/resources/classifyRuns/client/requests/index.d.ts +4 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestClassifier.d.ts +11 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestClassifier.js +3 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItem.d.ts +6 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItem.js +3 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItemFile.js +3 -0
- package/api/resources/classifyRuns/types/index.d.ts +3 -0
- package/api/resources/classifyRuns/types/index.js +3 -0
- package/api/resources/editRuns/client/Client.d.ts +4 -2
- package/api/resources/editRuns/client/Client.js +20 -10
- package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.d.ts +8 -0
- package/api/resources/editRuns/client/requests/EditRunsDeleteRequest.js +3 -0
- package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/editRuns/client/requests/EditRunsRetrieveRequest.js +3 -0
- package/api/resources/editRuns/client/requests/index.d.ts +2 -0
- package/api/resources/editSchemas/client/Client.d.ts +49 -0
- package/api/resources/editSchemas/client/Client.js +147 -0
- package/api/resources/editSchemas/client/index.d.ts +1 -0
- package/api/resources/editSchemas/client/index.js +17 -0
- package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.d.ts +20 -0
- package/api/resources/editSchemas/client/requests/EditSchemasGenerateRequest.js +3 -0
- package/api/resources/editSchemas/client/requests/index.d.ts +1 -0
- package/api/resources/editSchemas/client/requests/index.js +2 -0
- package/api/resources/editSchemas/index.d.ts +2 -0
- package/api/resources/editSchemas/index.js +18 -0
- package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.d.ts +5 -0
- package/api/resources/editSchemas/types/EditSchemasGenerateRequestFile.js +3 -0
- package/api/resources/editSchemas/types/index.d.ts +1 -0
- package/api/resources/editSchemas/types/index.js +17 -0
- package/api/resources/evaluationSetItems/client/Client.d.ts +4 -2
- package/api/resources/evaluationSetItems/client/Client.js +48 -16
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +2 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.d.ts +8 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsDeleteRequest.js +3 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsListRequest.d.ts +2 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.d.ts +8 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsRetrieveRequest.js +3 -0
- package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +2 -0
- package/api/resources/evaluationSetItems/client/requests/index.d.ts +2 -0
- package/api/resources/evaluationSetRuns/client/Client.d.ts +2 -1
- package/api/resources/evaluationSetRuns/client/Client.js +10 -5
- package/api/resources/evaluationSetRuns/client/index.d.ts +1 -1
- package/api/resources/evaluationSetRuns/client/index.js +15 -0
- package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/evaluationSetRuns/client/requests/EvaluationSetRunsRetrieveRequest.js +3 -0
- package/api/resources/evaluationSetRuns/client/requests/index.d.ts +1 -0
- package/api/resources/evaluationSetRuns/client/requests/index.js +2 -0
- package/api/resources/evaluationSets/client/Client.d.ts +2 -1
- package/api/resources/evaluationSets/client/Client.js +15 -7
- package/api/resources/evaluationSets/client/requests/EvaluationSetsListRequest.d.ts +2 -0
- package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.d.ts +8 -0
- package/api/resources/evaluationSets/client/requests/EvaluationSetsRetrieveRequest.js +3 -0
- package/api/resources/evaluationSets/client/requests/index.d.ts +1 -0
- package/api/resources/extractRuns/client/Client.d.ts +63 -3
- package/api/resources/extractRuns/client/Client.js +145 -17
- package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.d.ts +8 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsCancelRequest.js +3 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsCreateBatchRequest.d.ts +38 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsCreateBatchRequest.js +3 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.d.ts +8 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsDeleteRequest.js +3 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +8 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsRetrieveRequest.js +3 -0
- package/api/resources/extractRuns/client/requests/index.d.ts +4 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestExtractor.d.ts +11 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestExtractor.js +3 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItem.d.ts +6 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItem.js +3 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItemFile.js +3 -0
- package/api/resources/extractRuns/types/index.d.ts +3 -0
- package/api/resources/extractRuns/types/index.js +3 -0
- package/api/resources/extractorVersions/client/Client.d.ts +8 -4
- package/api/resources/extractorVersions/client/Client.js +38 -12
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +2 -0
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsListRequest.d.ts +2 -0
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.d.ts +8 -0
- package/api/resources/extractorVersions/client/requests/ExtractorVersionsRetrieveRequest.js +3 -0
- package/api/resources/extractorVersions/client/requests/index.d.ts +1 -0
- package/api/resources/extractors/client/Client.d.ts +2 -1
- package/api/resources/extractors/client/Client.js +32 -9
- package/api/resources/extractors/client/requests/ExtractorsListRequest.d.ts +2 -0
- package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.d.ts +8 -0
- package/api/resources/extractors/client/requests/ExtractorsRetrieveRequest.js +3 -0
- package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +2 -0
- package/api/resources/extractors/client/requests/index.d.ts +1 -0
- package/api/resources/files/client/Client.d.ts +2 -1
- package/api/resources/files/client/Client.js +21 -10
- package/api/resources/files/client/requests/FilesDeleteRequest.d.ts +8 -0
- package/api/resources/files/client/requests/FilesDeleteRequest.js +3 -0
- package/api/resources/files/client/requests/FilesListRequest.d.ts +2 -0
- package/api/resources/files/client/requests/FilesRetrieveRequest.d.ts +2 -0
- package/api/resources/files/client/requests/FilesUploadRequest.d.ts +2 -0
- package/api/resources/files/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +10 -0
- package/api/resources/index.js +11 -1
- package/api/resources/parseRuns/client/Client.d.ts +2 -1
- package/api/resources/parseRuns/client/Client.js +15 -7
- package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.d.ts +8 -0
- package/api/resources/parseRuns/client/requests/ParseRunsDeleteRequest.js +3 -0
- package/api/resources/parseRuns/client/requests/ParseRunsRetrieveRequest.d.ts +2 -0
- package/api/resources/parseRuns/client/requests/index.d.ts +1 -0
- package/api/resources/processor/client/Client.js +22 -4
- package/api/resources/processor/client/requests/ProcessorListRequest.d.ts +2 -0
- package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +2 -0
- package/api/resources/processorRun/client/Client.d.ts +6 -3
- package/api/resources/processorRun/client/Client.js +35 -17
- package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.d.ts +8 -0
- package/api/resources/processorRun/client/requests/ProcessorRunCancelRequest.js +3 -0
- package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.d.ts +8 -0
- package/api/resources/processorRun/client/requests/ProcessorRunDeleteRequest.js +3 -0
- package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.d.ts +8 -0
- package/api/resources/processorRun/client/requests/ProcessorRunGetRequest.js +3 -0
- package/api/resources/processorRun/client/requests/ProcessorRunListRequest.d.ts +2 -0
- package/api/resources/processorRun/client/requests/index.d.ts +3 -0
- package/api/resources/processorVersion/client/Client.d.ts +4 -2
- package/api/resources/processorVersion/client/Client.js +37 -12
- package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +2 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.d.ts +8 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionGetRequest.js +3 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.d.ts +8 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionListRequest.js +3 -0
- package/api/resources/processorVersion/client/requests/index.d.ts +2 -0
- package/api/resources/splitRuns/client/Client.d.ts +64 -3
- package/api/resources/splitRuns/client/Client.js +146 -17
- package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.d.ts +8 -0
- package/api/resources/splitRuns/client/requests/SplitRunsCancelRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/SplitRunsCreateBatchRequest.d.ts +38 -0
- package/api/resources/splitRuns/client/requests/SplitRunsCreateBatchRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.d.ts +8 -0
- package/api/resources/splitRuns/client/requests/SplitRunsDeleteRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +8 -0
- package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/splitRuns/client/requests/SplitRunsRetrieveRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/index.d.ts +4 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItem.d.ts +6 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItem.js +3 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItemFile.js +3 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestSplitter.d.ts +11 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestSplitter.js +3 -0
- package/api/resources/splitRuns/types/index.d.ts +3 -0
- package/api/resources/splitRuns/types/index.js +3 -0
- package/api/resources/splitterVersions/client/Client.d.ts +8 -4
- package/api/resources/splitterVersions/client/Client.js +38 -12
- package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +2 -0
- package/api/resources/splitterVersions/client/requests/SplitterVersionsListRequest.d.ts +2 -0
- package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.d.ts +8 -0
- package/api/resources/splitterVersions/client/requests/SplitterVersionsRetrieveRequest.js +3 -0
- package/api/resources/splitterVersions/client/requests/index.d.ts +1 -0
- package/api/resources/splitters/client/Client.d.ts +2 -1
- package/api/resources/splitters/client/Client.js +32 -9
- package/api/resources/splitters/client/requests/SplittersListRequest.d.ts +2 -0
- package/api/resources/splitters/client/requests/SplittersRetrieveRequest.d.ts +8 -0
- package/api/resources/splitters/client/requests/SplittersRetrieveRequest.js +3 -0
- package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +2 -0
- package/api/resources/splitters/client/requests/index.d.ts +1 -0
- package/api/resources/webhookEndpoints/client/Client.d.ts +4 -2
- package/api/resources/webhookEndpoints/client/Client.js +42 -14
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +8 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +2 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +8 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +2 -0
- package/api/resources/webhookEndpoints/client/requests/index.d.ts +2 -0
- package/api/resources/webhookSubscriptions/client/Client.d.ts +4 -2
- package/api/resources/webhookSubscriptions/client/Client.js +42 -14
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.d.ts +8 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsDeleteRequest.js +3 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +2 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.d.ts +8 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsRetrieveRequest.js +3 -0
- package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +2 -0
- package/api/resources/webhookSubscriptions/client/requests/index.d.ts +2 -0
- package/api/resources/workflowRuns/client/Client.d.ts +6 -3
- package/api/resources/workflowRuns/client/Client.js +52 -19
- package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.d.ts +8 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsCancelRequest.js +3 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.d.ts +8 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsDeleteRequest.js +3 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +2 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.d.ts +8 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsRetrieveRequest.js +3 -0
- package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +2 -0
- package/api/resources/workflowRuns/client/requests/index.d.ts +3 -0
- package/api/resources/workflowVersions/client/Client.d.ts +85 -0
- package/api/resources/workflowVersions/client/Client.js +287 -0
- package/api/resources/workflowVersions/client/index.d.ts +1 -0
- package/api/resources/workflowVersions/client/index.js +17 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.d.ts +17 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsCreateRequest.js +3 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.d.ts +12 -0
- package/api/resources/workflowVersions/client/requests/WorkflowVersionsListRequest.js +3 -0
- package/api/resources/workflowVersions/client/requests/index.d.ts +2 -0
- package/api/resources/workflowVersions/client/requests/index.js +2 -0
- package/api/resources/workflowVersions/index.d.ts +2 -0
- package/api/resources/workflowVersions/index.js +18 -0
- package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.d.ts +6 -0
- package/api/resources/workflowVersions/types/WorkflowVersionsListResponse.js +3 -0
- package/api/resources/workflowVersions/types/index.d.ts +1 -0
- package/api/resources/workflowVersions/types/index.js +17 -0
- package/api/resources/workflows/client/Client.d.ts +124 -2
- package/api/resources/workflows/client/Client.js +281 -2
- package/api/resources/workflows/client/requests/WorkflowsCreateRequest.d.ts +52 -1
- package/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts +13 -0
- package/api/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
- package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.d.ts +28 -0
- package/api/resources/workflows/client/requests/WorkflowsUpdateRequest.js +3 -0
- package/api/resources/workflows/client/requests/index.d.ts +2 -0
- package/api/resources/workflows/index.d.ts +1 -0
- package/api/resources/workflows/index.js +1 -0
- package/api/resources/workflows/types/WorkflowsListResponse.d.ts +6 -0
- package/api/resources/workflows/types/WorkflowsListResponse.js +3 -0
- package/api/resources/workflows/types/index.d.ts +1 -0
- package/api/resources/workflows/types/index.js +17 -0
- package/api/types/BarcodeDetails.d.ts +13 -0
- package/api/types/BarcodeDetails.js +3 -0
- package/api/types/BatchProcessorRunCompletedWebhookEvent.d.ts +6 -0
- package/api/types/BatchProcessorRunCompletedWebhookEvent.js +3 -0
- package/api/types/BatchProcessorRunFailedWebhookEvent.d.ts +6 -0
- package/api/types/BatchProcessorRunFailedWebhookEvent.js +3 -0
- package/api/types/BatchRun.d.ts +9 -16
- package/api/types/BatchRunStatus.d.ts +7 -5
- package/api/types/BatchRunStatus.js +7 -5
- package/api/types/Block.d.ts +7 -1
- package/api/types/BlockDetails.d.ts +1 -1
- package/api/types/BlockMetadata.d.ts +2 -0
- package/api/types/BlockMetadataTextDirection.d.ts +6 -0
- package/api/types/BlockMetadataTextDirection.js +9 -0
- package/api/types/BlockType.d.ts +13 -1
- package/api/types/BlockType.js +13 -1
- package/api/types/ClassificationNextEntry.d.ts +11 -0
- package/api/types/ClassificationNextEntry.js +3 -0
- package/api/types/ClassifierRef.d.ts +9 -0
- package/api/types/ClassifierRef.js +3 -0
- package/api/types/ClassifyStepDefinition.d.ts +27 -0
- package/api/types/ClassifyStepDefinition.js +3 -0
- package/api/types/ClassifyStepDefinitionConfig.d.ts +13 -0
- package/api/types/ClassifyStepDefinitionConfig.js +3 -0
- package/api/types/CollectStepDefinition.d.ts +10 -0
- package/api/types/CollectStepDefinition.js +3 -0
- package/api/types/ConditionalExtractStepDefinition.d.ts +15 -0
- package/api/types/ConditionalExtractStepDefinition.js +3 -0
- package/api/types/ConditionalExtractStepDefinitionConfig.d.ts +12 -0
- package/api/types/ConditionalExtractStepDefinitionConfig.js +3 -0
- package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.d.ts +11 -0
- package/api/types/ConditionalExtractStepDefinitionConfigRulesItem.js +3 -0
- package/api/types/ConditionalNextEntry.d.ts +11 -0
- package/api/types/ConditionalNextEntry.js +3 -0
- package/api/types/ConditionalStepDefinition.d.ts +16 -0
- package/api/types/ConditionalStepDefinition.js +3 -0
- package/api/types/ConditionalStepDefinitionConfig.d.ts +9 -0
- package/api/types/ConditionalStepDefinitionConfig.js +3 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItem.d.ts +24 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItem.js +3 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.d.ts +14 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemOperation.js +17 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemType.d.ts +6 -0
- package/api/types/ConditionalStepDefinitionConfigConditionsItemType.js +9 -0
- package/api/types/EditConditionalClause.d.ts +22 -0
- package/api/types/EditConditionalClause.js +3 -0
- package/api/types/EditConditionalObjectProperty.d.ts +16 -0
- package/api/types/EditConditionalObjectProperty.js +3 -0
- package/api/types/EditConditionalProperty.d.ts +51 -0
- package/api/types/EditConditionalProperty.js +3 -0
- package/api/types/EditConfig.d.ts +2 -0
- package/api/types/EditDependentRequired.d.ts +4 -0
- package/api/types/EditDependentRequired.js +3 -0
- package/api/types/EditJson.d.ts +2 -0
- package/api/types/EditJsonExtendEditImage.d.ts +7 -0
- package/api/types/EditJsonExtendEditImage.js +3 -0
- package/api/types/EditRootJson.d.ts +14 -0
- package/api/types/EditSchemaGenerationConfig.d.ts +15 -0
- package/api/types/EditSchemaGenerationConfig.js +3 -0
- package/api/types/EditSchemaGenerationConfigAdvancedOptions.d.ts +11 -0
- package/api/types/EditSchemaGenerationConfigAdvancedOptions.js +3 -0
- package/api/types/EditSchemaGenerationMappingMatch.d.ts +9 -0
- package/api/types/EditSchemaGenerationMappingMatch.js +3 -0
- package/api/types/EditSchemaGenerationMappingResult.d.ts +12 -0
- package/api/types/EditSchemaGenerationMappingResult.js +3 -0
- package/api/types/EditSchemaGenerationResponse.d.ts +12 -0
- package/api/types/EditSchemaGenerationResponse.js +3 -0
- package/api/types/ExternalDataValidationStepDefinition.d.ts +13 -0
- package/api/types/ExternalDataValidationStepDefinition.js +3 -0
- package/api/types/ExternalDataValidationStepDefinitionConfig.d.ts +18 -0
- package/api/types/ExternalDataValidationStepDefinitionConfig.js +3 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.d.ts +10 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigFailureBehavior.js +13 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.d.ts +23 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptions.js +3 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.d.ts +10 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsContentType.js +13 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.d.ts +6 -0
- package/api/types/ExternalDataValidationStepDefinitionConfigRequestOptionsMethod.js +9 -0
- package/api/types/ExtractStepDefinition.d.ts +15 -0
- package/api/types/ExtractStepDefinition.js +3 -0
- package/api/types/ExtractStepDefinitionConfig.d.ts +7 -0
- package/api/types/ExtractStepDefinitionConfig.js +3 -0
- package/api/types/ExtractorRef.d.ts +9 -0
- package/api/types/ExtractorRef.js +3 -0
- package/api/types/FileConversionStepDefinition.d.ts +11 -0
- package/api/types/FileConversionStepDefinition.js +3 -0
- package/api/types/FileConversionStepDefinitionConfig.d.ts +9 -0
- package/api/types/FileConversionStepDefinitionConfig.js +3 -0
- package/api/types/FileConversionStepDefinitionConfigFailureBehavior.d.ts +10 -0
- package/api/types/FileConversionStepDefinitionConfigFailureBehavior.js +13 -0
- package/api/types/FormulaDetails.d.ts +9 -0
- package/api/types/FormulaDetails.js +3 -0
- package/api/types/HumanReviewStepDefinition.d.ts +10 -0
- package/api/types/HumanReviewStepDefinition.js +3 -0
- package/api/types/KeyValueDetails.d.ts +7 -0
- package/api/types/KeyValueDetails.js +3 -0
- package/api/types/LegacyListProcessorsResponse.d.ts +1 -1
- package/api/types/MergeExtractStepDefinition.d.ts +11 -0
- package/api/types/MergeExtractStepDefinition.js +3 -0
- package/api/types/MergeExtractStepDefinitionConfig.d.ts +9 -0
- package/api/types/MergeExtractStepDefinitionConfig.js +3 -0
- package/api/types/MergeExtractStepDefinitionConfigMergeOrder.d.ts +12 -0
- package/api/types/MergeExtractStepDefinitionConfigMergeOrder.js +15 -0
- package/api/types/ParseConfigAdvancedOptions.d.ts +25 -0
- package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.d.ts +11 -0
- package/api/types/ParseConfigAdvancedOptionsEnrichmentFormat.js +14 -0
- package/api/types/ParseConfigAdvancedOptionsFormattingDetectionItem.d.ts +8 -0
- package/api/types/ParseConfigAdvancedOptionsFormattingDetectionItem.js +3 -0
- package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.d.ts +13 -0
- package/api/types/ParseConfigAdvancedOptionsImageConversionQuality.js +16 -0
- package/api/types/ParseConfigBlockOptions.d.ts +6 -0
- package/api/types/ParseConfigBlockOptionsBarcodes.d.ts +9 -0
- package/api/types/ParseConfigBlockOptionsBarcodes.js +3 -0
- package/api/types/ParseConfigBlockOptionsFigures.d.ts +2 -0
- package/api/types/ParseConfigBlockOptionsFormulas.d.ts +7 -0
- package/api/types/ParseConfigBlockOptionsFormulas.js +3 -0
- package/api/types/ParseConfigBlockOptionsKeyValue.d.ts +7 -0
- package/api/types/ParseConfigBlockOptionsKeyValue.js +3 -0
- package/api/types/ParseStepDefinition.d.ts +11 -0
- package/api/types/ParseStepDefinition.js +3 -0
- package/api/types/ParseStepDefinitionConfig.d.ts +4 -0
- package/api/types/ParseStepDefinitionConfig.js +3 -0
- package/api/types/ProcessorRunStatus.d.ts +2 -0
- package/api/types/ProcessorRunStatus.js +2 -0
- package/api/types/RuleValidationNextEntry.d.ts +12 -0
- package/api/types/RuleValidationNextEntry.js +3 -0
- package/api/types/RuleValidationNextEntryResult.d.ts +6 -0
- package/api/types/RuleValidationNextEntryResult.js +9 -0
- package/api/types/RuleValidationStepDefinition.d.ts +17 -0
- package/api/types/RuleValidationStepDefinition.js +3 -0
- package/api/types/RuleValidationStepDefinitionConfig.d.ts +12 -0
- package/api/types/RuleValidationStepDefinitionConfig.js +3 -0
- package/api/types/RuleValidationStepDefinitionConfigRulesItem.d.ts +10 -0
- package/api/types/RuleValidationStepDefinitionConfigRulesItem.js +3 -0
- package/api/types/SimpleNextEntry.d.ts +7 -0
- package/api/types/SimpleNextEntry.js +3 -0
- package/api/types/SplitStepDefinition.d.ts +27 -0
- package/api/types/SplitStepDefinition.js +3 -0
- package/api/types/SplitStepDefinitionConfig.d.ts +13 -0
- package/api/types/SplitStepDefinitionConfig.js +3 -0
- package/api/types/SplitterRef.d.ts +9 -0
- package/api/types/SplitterRef.js +3 -0
- package/api/types/TriggerStepDefinition.d.ts +12 -0
- package/api/types/TriggerStepDefinition.js +3 -0
- package/api/types/WebhookEndpointEventType.d.ts +2 -0
- package/api/types/WebhookEndpointEventType.js +2 -0
- package/api/types/WebhookEvent.d.ts +7 -1
- package/api/types/WebhookResponseStepDefinition.d.ts +8 -0
- package/api/types/WebhookResponseStepDefinition.js +3 -0
- package/api/types/WebhookSubscriptionEventType.d.ts +5 -3
- package/api/types/WebhookSubscriptionEventType.js +5 -3
- package/api/types/Workflow.d.ts +10 -11
- package/api/types/WorkflowStepBase.d.ts +2 -0
- package/api/types/WorkflowStepDefinition.d.ts +51 -0
- package/api/types/WorkflowStepDefinition.js +3 -0
- package/api/types/WorkflowSummary.d.ts +9 -11
- package/api/types/WorkflowVersion.d.ts +11 -16
- package/api/types/WorkflowVersionSummary.d.ts +9 -16
- package/api/types/index.d.ts +66 -8
- package/api/types/index.js +66 -8
- package/package.json +1 -1
- package/reference.md +1303 -112
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.js +1 -1
- package/wrapper/resources/classifyRuns/ClassifyRunsWrapper.test.js +2 -2
- package/wrapper/resources/editRuns/EditRunsWrapper.js +1 -1
- package/wrapper/resources/editRuns/EditRunsWrapper.test.js +2 -2
- package/wrapper/resources/extractRuns/ExtractRunsWrapper.js +1 -1
- package/wrapper/resources/extractRuns/ExtractRunsWrapper.test.js +2 -2
- package/wrapper/resources/splitRuns/SplitRunsWrapper.js +1 -1
- package/wrapper/resources/splitRuns/SplitRunsWrapper.test.js +2 -2
- package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.js +1 -1
- package/wrapper/resources/workflowRuns/WorkflowRunsWrapper.test.js +5 -2
- package/wrapper/webhooks/Webhooks.test.js +3 -0
- package/api/types/BatchProcessorRun.d.ts +0 -66
- package/api/types/BatchProcessorRunMetrics.d.ts +0 -6
- package/api/types/BatchProcessorRunOptions.d.ts +0 -9
- package/api/types/BatchProcessorRunSource.d.ts +0 -12
- package/api/types/BatchProcessorRunSource.js +0 -15
- package/api/types/BatchProcessorRunStatus.d.ts +0 -14
- package/api/types/BatchProcessorRunStatus.js +0 -17
- package/api/types/BatchRunEntity.d.ts +0 -18
- package/api/types/BatchRunEntityVersion.d.ts +0 -18
- package/api/types/BatchRunMetrics.d.ts +0 -6
- /package/api/{types/BatchProcessorRun.js → resources/batchProcessorRun/client/requests/BatchProcessorRunGetRequest.js} +0 -0
- /package/api/{types/BatchProcessorRunMetrics.js → resources/classifierVersions/client/requests/ClassifierVersionsRetrieveRequest.js} +0 -0
- /package/api/{types/BatchProcessorRunOptions.js → resources/classifiers/client/requests/ClassifiersRetrieveRequest.js} +0 -0
- /package/api/{types/BatchRunEntity.js → resources/classifyRuns/client/requests/ClassifyRunsCancelRequest.js} +0 -0
- /package/api/{types/BatchRunEntityVersion.js → resources/classifyRuns/client/requests/ClassifyRunsCreateBatchRequest.js} +0 -0
- /package/api/{types/BatchRunMetrics.js → resources/classifyRuns/client/requests/ClassifyRunsDeleteRequest.js} +0 -0
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.8.0";
|
package/version.js
CHANGED
|
@@ -74,7 +74,7 @@ class ClassifyRunsClient extends Client_1.ClassifyRunsClient {
|
|
|
74
74
|
const createResponse = yield this.create(request, requestOptions);
|
|
75
75
|
const runId = createResponse.id;
|
|
76
76
|
// Poll until terminal state
|
|
77
|
-
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
77
|
+
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, {}, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -96,7 +96,7 @@ describe("ClassifyRunsClient", () => {
|
|
|
96
96
|
jitterFraction: 0,
|
|
97
97
|
});
|
|
98
98
|
expect(mockCreate).toHaveBeenCalledWith(request, undefined);
|
|
99
|
-
expect(mockRetrieve).toHaveBeenCalledWith("classify_run_test123", undefined);
|
|
99
|
+
expect(mockRetrieve).toHaveBeenCalledWith("classify_run_test123", {}, undefined);
|
|
100
100
|
expect(result.status).toBe("PROCESSED");
|
|
101
101
|
}));
|
|
102
102
|
it("should return immediately if already processed on first retrieve", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -178,7 +178,7 @@ describe("ClassifyRunsClient", () => {
|
|
|
178
178
|
classifier: { id: "classifier_123" },
|
|
179
179
|
}, { requestOptions });
|
|
180
180
|
expect(mockCreate).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
181
|
-
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
181
|
+
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), {}, requestOptions);
|
|
182
182
|
}));
|
|
183
183
|
});
|
|
184
184
|
});
|
|
@@ -80,7 +80,7 @@ class EditRunsClient extends Client_1.EditRunsClient {
|
|
|
80
80
|
const createResponse = yield this.create(request, requestOptions);
|
|
81
81
|
const runId = createResponse.id;
|
|
82
82
|
// Poll until terminal state
|
|
83
|
-
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
83
|
+
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, {}, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -72,7 +72,7 @@ describe("EditRunsClient", () => {
|
|
|
72
72
|
jitterFraction: 0,
|
|
73
73
|
});
|
|
74
74
|
expect(mockCreate).toHaveBeenCalledWith(request, undefined);
|
|
75
|
-
expect(mockRetrieve).toHaveBeenCalledWith("edit_run_test123", undefined);
|
|
75
|
+
expect(mockRetrieve).toHaveBeenCalledWith("edit_run_test123", {}, undefined);
|
|
76
76
|
expect(result.status).toBe("PROCESSED");
|
|
77
77
|
}));
|
|
78
78
|
it("should return immediately if already processed on first retrieve", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -135,7 +135,7 @@ describe("EditRunsClient", () => {
|
|
|
135
135
|
file: { url: "https://example.com/doc.pdf" },
|
|
136
136
|
}, { requestOptions });
|
|
137
137
|
expect(mockCreate).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
138
|
-
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
138
|
+
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), {}, requestOptions);
|
|
139
139
|
}));
|
|
140
140
|
});
|
|
141
141
|
});
|
|
@@ -77,7 +77,7 @@ class ExtractRunsClient extends Client_1.ExtractRunsClient {
|
|
|
77
77
|
const createResponse = yield this.create(apiRequest, requestOptions);
|
|
78
78
|
const runId = createResponse.id;
|
|
79
79
|
// Poll until terminal state
|
|
80
|
-
const result = yield (0, polling_1.pollUntilDone)(() => this.retrieve(runId, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
80
|
+
const result = yield (0, polling_1.pollUntilDone)(() => this.retrieve(runId, {}, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
81
81
|
// Return result - TypeScript will infer the correct type based on the overload
|
|
82
82
|
return result;
|
|
83
83
|
});
|
|
@@ -94,7 +94,7 @@ describe("ExtractRunsClient", () => {
|
|
|
94
94
|
jitterFraction: 0,
|
|
95
95
|
});
|
|
96
96
|
expect(mockCreate).toHaveBeenCalledWith(request, undefined);
|
|
97
|
-
expect(mockRetrieve).toHaveBeenCalledWith("extract_run_test123", undefined);
|
|
97
|
+
expect(mockRetrieve).toHaveBeenCalledWith("extract_run_test123", {}, undefined);
|
|
98
98
|
expect(result.status).toBe("PROCESSED");
|
|
99
99
|
}));
|
|
100
100
|
it("should return immediately if already processed on first retrieve", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -177,7 +177,7 @@ describe("ExtractRunsClient", () => {
|
|
|
177
177
|
extractor: { id: "extractor_123" },
|
|
178
178
|
}, { requestOptions });
|
|
179
179
|
expect(mockCreate).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
180
|
-
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
180
|
+
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), {}, requestOptions);
|
|
181
181
|
}));
|
|
182
182
|
});
|
|
183
183
|
describe("with typed inline config (raw zod schema)", () => {
|
|
@@ -74,7 +74,7 @@ class SplitRunsClient extends Client_1.SplitRunsClient {
|
|
|
74
74
|
const createResponse = yield this.create(request, requestOptions);
|
|
75
75
|
const runId = createResponse.id;
|
|
76
76
|
// Poll until terminal state
|
|
77
|
-
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
77
|
+
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, {}, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -86,7 +86,7 @@ describe("SplitRunsClient", () => {
|
|
|
86
86
|
jitterFraction: 0,
|
|
87
87
|
});
|
|
88
88
|
expect(mockCreate).toHaveBeenCalledWith(request, undefined);
|
|
89
|
-
expect(mockRetrieve).toHaveBeenCalledWith("split_run_test123", undefined);
|
|
89
|
+
expect(mockRetrieve).toHaveBeenCalledWith("split_run_test123", {}, undefined);
|
|
90
90
|
expect(result.status).toBe("PROCESSED");
|
|
91
91
|
}));
|
|
92
92
|
it("should return immediately if already processed on first retrieve", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -168,7 +168,7 @@ describe("SplitRunsClient", () => {
|
|
|
168
168
|
splitter: { id: "splitter_123" },
|
|
169
169
|
}, { requestOptions });
|
|
170
170
|
expect(mockCreate).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
171
|
-
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
171
|
+
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), {}, requestOptions);
|
|
172
172
|
}));
|
|
173
173
|
});
|
|
174
174
|
});
|
|
@@ -85,7 +85,7 @@ class WorkflowRunsClient extends Client_1.WorkflowRunsClient {
|
|
|
85
85
|
const createResponse = yield this.create(request, requestOptions);
|
|
86
86
|
const runId = createResponse.id;
|
|
87
87
|
// Poll until terminal state
|
|
88
|
-
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
88
|
+
return (0, polling_1.pollUntilDone)(() => this.retrieve(runId, {}, requestOptions), (response) => isTerminalStatus(response.status), { maxWaitMs, initialDelayMs, maxDelayMs, jitterFraction });
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -29,11 +29,14 @@ function createMockWorkflowRun(overrides = {}) {
|
|
|
29
29
|
object: "workflow",
|
|
30
30
|
id: "workflow_123",
|
|
31
31
|
name: "Test Workflow",
|
|
32
|
+
createdAt: "2024-01-01T00:00:00Z",
|
|
33
|
+
updatedAt: "2024-01-01T00:00:00Z",
|
|
32
34
|
}, workflowVersion: {
|
|
33
35
|
object: "workflow_version",
|
|
34
36
|
id: "workflow_version_456",
|
|
35
37
|
version: "1",
|
|
36
38
|
name: "Test Workflow v1",
|
|
39
|
+
createdAt: "2024-01-01T00:00:00Z",
|
|
37
40
|
}, status: "PROCESSED", dashboardUrl: "https://dashboard.extend.ai/workflow-runs/workflow_run_test123", metadata: {}, files: [], stepRuns: [], reviewed: false, batchId: null, failureReason: null, failureMessage: null, initialRunAt: null, reviewedByUser: null, rejectionNote: null, reviewedAt: null, startTime: null, endTime: null, usage: null }, overrides);
|
|
38
41
|
}
|
|
39
42
|
// ============================================================================
|
|
@@ -73,7 +76,7 @@ describe("WorkflowRunsClient", () => {
|
|
|
73
76
|
jitterFraction: 0,
|
|
74
77
|
});
|
|
75
78
|
expect(mockCreate).toHaveBeenCalledWith(request, undefined);
|
|
76
|
-
expect(mockRetrieve).toHaveBeenCalledWith("workflow_run_test123", undefined);
|
|
79
|
+
expect(mockRetrieve).toHaveBeenCalledWith("workflow_run_test123", {}, undefined);
|
|
77
80
|
expect(result.status).toBe("PROCESSED");
|
|
78
81
|
}));
|
|
79
82
|
it("should return immediately if already processed on first retrieve", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -256,7 +259,7 @@ describe("WorkflowRunsClient", () => {
|
|
|
256
259
|
workflow: { id: "workflow_123" },
|
|
257
260
|
}, { requestOptions });
|
|
258
261
|
expect(mockCreate).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
259
|
-
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), requestOptions);
|
|
262
|
+
expect(mockRetrieve).toHaveBeenCalledWith(expect.anything(), {}, requestOptions);
|
|
260
263
|
}));
|
|
261
264
|
});
|
|
262
265
|
});
|
|
@@ -66,12 +66,15 @@ const sampleWorkflowRunPayload = {
|
|
|
66
66
|
object: "workflow",
|
|
67
67
|
id: "workflow_123",
|
|
68
68
|
name: "Test Workflow",
|
|
69
|
+
createdAt: "2024-01-01T00:00:00Z",
|
|
70
|
+
updatedAt: "2024-01-01T00:00:00Z",
|
|
69
71
|
},
|
|
70
72
|
workflowVersion: {
|
|
71
73
|
object: "workflow_version",
|
|
72
74
|
id: "workflow_version_456",
|
|
73
75
|
version: "1",
|
|
74
76
|
name: "Test Workflow v1",
|
|
77
|
+
createdAt: "2024-01-01T00:00:00Z",
|
|
75
78
|
},
|
|
76
79
|
dashboardUrl: "https://dashboard.extend.ai/workflows/workflow_run_abc123",
|
|
77
80
|
status: "PROCESSED",
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type * as Extend from "../index";
|
|
2
|
-
export interface BatchProcessorRun {
|
|
3
|
-
/** The type of response. In this case, it will always be `"batch_processor_run"`. */
|
|
4
|
-
object: string;
|
|
5
|
-
/**
|
|
6
|
-
* The unique identifier for this batch processor run.
|
|
7
|
-
*
|
|
8
|
-
* Example: `"batch_processor_run_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
9
|
-
*/
|
|
10
|
-
id: string;
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the processor used for this run.
|
|
13
|
-
*
|
|
14
|
-
* Example: `"ex_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
15
|
-
*/
|
|
16
|
-
processorId: string;
|
|
17
|
-
/**
|
|
18
|
-
* The ID of the specific processor version used.
|
|
19
|
-
*
|
|
20
|
-
* Example: `"exv_xK9mLPqRtN3vS8wF5hB2cQ"`
|
|
21
|
-
*/
|
|
22
|
-
processorVersionId: string;
|
|
23
|
-
/**
|
|
24
|
-
* The name of the processor.
|
|
25
|
-
*
|
|
26
|
-
* Example: `"Invoice Processor"`
|
|
27
|
-
*/
|
|
28
|
-
processorName: string;
|
|
29
|
-
metrics: Extend.BatchProcessorRunMetrics;
|
|
30
|
-
/**
|
|
31
|
-
* The current status of the batch processor run:
|
|
32
|
-
* * `"PENDING"` - The batch processor run is waiting to start
|
|
33
|
-
* * `"PROCESSING"` - The batch processor run is in progress
|
|
34
|
-
* * `"PROCESSED"` - The batch processor run completed successfully
|
|
35
|
-
* * `"FAILED"` - The batch processor run encountered an error
|
|
36
|
-
*/
|
|
37
|
-
status: Extend.BatchProcessorRunStatus;
|
|
38
|
-
/**
|
|
39
|
-
* The source of the batch processor run:
|
|
40
|
-
* * `"EVAL_SET"` - The batch processor run was made from an evaluation set. The `sourceId` will be the ID of the evaluation set (e.g., `"ev_1234"`)
|
|
41
|
-
* * `"PLAYGROUND"` - The batch processor run was made from the playground. The `sourceId` will not be set
|
|
42
|
-
* * `"STUDIO"` - The batch processor run was made for a processor in Studio. The `sourceId` will be the ID of the processor (e.g., `"ex_1234"`)
|
|
43
|
-
*/
|
|
44
|
-
source: Extend.BatchProcessorRunSource;
|
|
45
|
-
/**
|
|
46
|
-
* The ID of the source of the batch processor run. See the `source` field for more details.
|
|
47
|
-
* Example: `"ev_1234"` for EVAL_SET source, `"ex_1234"` for STUDIO source
|
|
48
|
-
*/
|
|
49
|
-
sourceId?: string;
|
|
50
|
-
/** The number of runs that were made. */
|
|
51
|
-
runCount: number;
|
|
52
|
-
/** The options for the batch processor run. */
|
|
53
|
-
options: Extend.BatchProcessorRunOptions;
|
|
54
|
-
/**
|
|
55
|
-
* The time (in UTC) at which the batch processor run was created. Will follow the RFC 3339 format.
|
|
56
|
-
*
|
|
57
|
-
* Example: `"2024-03-21T15:30:00Z"`
|
|
58
|
-
*/
|
|
59
|
-
createdAt: string;
|
|
60
|
-
/**
|
|
61
|
-
* The time (in UTC) at which the batch processor run was last updated. Will follow the RFC 3339 format.
|
|
62
|
-
*
|
|
63
|
-
* Example: `"2024-03-21T16:45:00Z"`
|
|
64
|
-
*/
|
|
65
|
-
updatedAt: string;
|
|
66
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The source of the batch processor run:
|
|
3
|
-
* * `"EVAL_SET"` - The batch processor run was made from an evaluation set. The `sourceId` will be the ID of the evaluation set (e.g., `"ev_1234"`)
|
|
4
|
-
* * `"PLAYGROUND"` - The batch processor run was made from the playground. The `sourceId` will not be set
|
|
5
|
-
* * `"STUDIO"` - The batch processor run was made for a processor in Studio. The `sourceId` will be the ID of the processor (e.g., `"ex_1234"`)
|
|
6
|
-
*/
|
|
7
|
-
export declare const BatchProcessorRunSource: {
|
|
8
|
-
readonly EvalSet: "EVAL_SET";
|
|
9
|
-
readonly Playground: "PLAYGROUND";
|
|
10
|
-
readonly Studio: "STUDIO";
|
|
11
|
-
};
|
|
12
|
-
export type BatchProcessorRunSource = (typeof BatchProcessorRunSource)[keyof typeof BatchProcessorRunSource] | string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BatchProcessorRunSource = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* The source of the batch processor run:
|
|
7
|
-
* * `"EVAL_SET"` - The batch processor run was made from an evaluation set. The `sourceId` will be the ID of the evaluation set (e.g., `"ev_1234"`)
|
|
8
|
-
* * `"PLAYGROUND"` - The batch processor run was made from the playground. The `sourceId` will not be set
|
|
9
|
-
* * `"STUDIO"` - The batch processor run was made for a processor in Studio. The `sourceId` will be the ID of the processor (e.g., `"ex_1234"`)
|
|
10
|
-
*/
|
|
11
|
-
exports.BatchProcessorRunSource = {
|
|
12
|
-
EvalSet: "EVAL_SET",
|
|
13
|
-
Playground: "PLAYGROUND",
|
|
14
|
-
Studio: "STUDIO",
|
|
15
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The current status of the batch processor run:
|
|
3
|
-
* * `"PENDING"` - The batch processor run is waiting to start
|
|
4
|
-
* * `"PROCESSING"` - The batch processor run is in progress
|
|
5
|
-
* * `"PROCESSED"` - The batch processor run completed successfully
|
|
6
|
-
* * `"FAILED"` - The batch processor run encountered an error
|
|
7
|
-
*/
|
|
8
|
-
export declare const BatchProcessorRunStatus: {
|
|
9
|
-
readonly Pending: "PENDING";
|
|
10
|
-
readonly Processing: "PROCESSING";
|
|
11
|
-
readonly Processed: "PROCESSED";
|
|
12
|
-
readonly Failed: "FAILED";
|
|
13
|
-
};
|
|
14
|
-
export type BatchProcessorRunStatus = (typeof BatchProcessorRunStatus)[keyof typeof BatchProcessorRunStatus] | string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BatchProcessorRunStatus = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* The current status of the batch processor run:
|
|
7
|
-
* * `"PENDING"` - The batch processor run is waiting to start
|
|
8
|
-
* * `"PROCESSING"` - The batch processor run is in progress
|
|
9
|
-
* * `"PROCESSED"` - The batch processor run completed successfully
|
|
10
|
-
* * `"FAILED"` - The batch processor run encountered an error
|
|
11
|
-
*/
|
|
12
|
-
exports.BatchProcessorRunStatus = {
|
|
13
|
-
Pending: "PENDING",
|
|
14
|
-
Processing: "PROCESSING",
|
|
15
|
-
Processed: "PROCESSED",
|
|
16
|
-
Failed: "FAILED",
|
|
17
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type * as Extend from "../index";
|
|
2
|
-
/**
|
|
3
|
-
* The extractor, classifier, or splitter that was run.
|
|
4
|
-
*
|
|
5
|
-
* **Availability:** Present when an entity was provided when creating the batch run.
|
|
6
|
-
*/
|
|
7
|
-
export type BatchRunEntity = Extend.BatchRunEntity.Extractor | Extend.BatchRunEntity.Classifier | Extend.BatchRunEntity.Splitter;
|
|
8
|
-
export declare namespace BatchRunEntity {
|
|
9
|
-
interface Extractor extends Extend.ExtractorSummary {
|
|
10
|
-
object: "extractor";
|
|
11
|
-
}
|
|
12
|
-
interface Classifier extends Extend.ClassifierSummary {
|
|
13
|
-
object: "classifier";
|
|
14
|
-
}
|
|
15
|
-
interface Splitter extends Extend.SplitterSummary {
|
|
16
|
-
object: "splitter";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type * as Extend from "../index";
|
|
2
|
-
/**
|
|
3
|
-
* The version of the extractor, classifier, or splitter that was run.
|
|
4
|
-
*
|
|
5
|
-
* **Availability:** Present when an entity was provided when creating the batch run.
|
|
6
|
-
*/
|
|
7
|
-
export type BatchRunEntityVersion = Extend.BatchRunEntityVersion.ExtractorVersion | Extend.BatchRunEntityVersion.ClassifierVersion | Extend.BatchRunEntityVersion.SplitterVersion;
|
|
8
|
-
export declare namespace BatchRunEntityVersion {
|
|
9
|
-
interface ExtractorVersion extends Extend.ExtractorVersionSummary {
|
|
10
|
-
object: "extractor_version";
|
|
11
|
-
}
|
|
12
|
-
interface ClassifierVersion extends Extend.ClassifierVersionSummary {
|
|
13
|
-
object: "classifier_version";
|
|
14
|
-
}
|
|
15
|
-
interface SplitterVersion extends Extend.SplitterVersionSummary {
|
|
16
|
-
object: "splitter_version";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|