extend-ai 0.0.1-beta
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/Client.d.ts +90 -0
- package/Client.js +196 -0
- package/README.md +167 -0
- package/api/client/index.d.ts +1 -0
- package/api/client/index.js +17 -0
- package/api/client/requests/ParseRequest.d.ts +15 -0
- package/api/client/requests/ParseRequest.js +5 -0
- package/api/client/requests/index.d.ts +1 -0
- package/api/client/requests/index.js +2 -0
- package/api/errors/BadRequestError.d.ts +8 -0
- package/api/errors/BadRequestError.js +52 -0
- package/api/errors/NotFoundError.d.ts +9 -0
- package/api/errors/NotFoundError.js +52 -0
- package/api/errors/UnauthorizedError.d.ts +9 -0
- package/api/errors/UnauthorizedError.js +52 -0
- package/api/errors/UnprocessableEntityError.d.ts +9 -0
- package/api/errors/UnprocessableEntityError.js +52 -0
- package/api/errors/index.d.ts +4 -0
- package/api/errors/index.js +20 -0
- package/api/index.d.ts +4 -0
- package/api/index.js +20 -0
- package/api/resources/batchProcessorRun/client/Client.d.ts +51 -0
- package/api/resources/batchProcessorRun/client/Client.js +134 -0
- package/api/resources/batchProcessorRun/client/index.d.ts +1 -0
- package/api/resources/batchProcessorRun/client/index.js +2 -0
- package/api/resources/batchProcessorRun/index.d.ts +2 -0
- package/api/resources/batchProcessorRun/index.js +18 -0
- package/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.d.ts +8 -0
- package/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.js +5 -0
- package/api/resources/batchProcessorRun/types/index.d.ts +1 -0
- package/api/resources/batchProcessorRun/types/index.js +17 -0
- package/api/resources/batchWorkflowRun/client/Client.d.ts +62 -0
- package/api/resources/batchWorkflowRun/client/Client.js +149 -0
- package/api/resources/batchWorkflowRun/client/index.d.ts +1 -0
- package/api/resources/batchWorkflowRun/client/index.js +17 -0
- package/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.d.ts +23 -0
- package/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.js +5 -0
- package/api/resources/batchWorkflowRun/client/requests/index.d.ts +1 -0
- package/api/resources/batchWorkflowRun/client/requests/index.js +2 -0
- package/api/resources/batchWorkflowRun/index.d.ts +2 -0
- package/api/resources/batchWorkflowRun/index.js +18 -0
- package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +14 -0
- package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.js +5 -0
- package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.d.ts +9 -0
- package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.js +5 -0
- package/api/resources/batchWorkflowRun/types/index.d.ts +2 -0
- package/api/resources/batchWorkflowRun/types/index.js +18 -0
- package/api/resources/evaluationSet/client/Client.d.ts +54 -0
- package/api/resources/evaluationSet/client/Client.js +136 -0
- package/api/resources/evaluationSet/client/index.d.ts +1 -0
- package/api/resources/evaluationSet/client/index.js +17 -0
- package/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.d.ts +31 -0
- package/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.js +5 -0
- package/api/resources/evaluationSet/client/requests/index.d.ts +1 -0
- package/api/resources/evaluationSet/client/requests/index.js +2 -0
- package/api/resources/evaluationSet/index.d.ts +2 -0
- package/api/resources/evaluationSet/index.js +18 -0
- package/api/resources/evaluationSet/types/EvaluationSetCreateResponse.d.ts +8 -0
- package/api/resources/evaluationSet/types/EvaluationSetCreateResponse.js +5 -0
- package/api/resources/evaluationSet/types/index.d.ts +1 -0
- package/api/resources/evaluationSet/types/index.js +17 -0
- package/api/resources/evaluationSetItem/client/Client.d.ts +119 -0
- package/api/resources/evaluationSetItem/client/Client.js +310 -0
- package/api/resources/evaluationSetItem/client/index.d.ts +1 -0
- package/api/resources/evaluationSetItem/client/index.js +17 -0
- package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.d.ts +28 -0
- package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.js +5 -0
- package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.d.ts +32 -0
- package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.js +5 -0
- package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.d.ts +18 -0
- package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.js +5 -0
- package/api/resources/evaluationSetItem/client/requests/index.d.ts +3 -0
- package/api/resources/evaluationSetItem/client/requests/index.js +2 -0
- package/api/resources/evaluationSetItem/index.d.ts +2 -0
- package/api/resources/evaluationSetItem/index.js +18 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.d.ts +14 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.js +5 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.d.ts +8 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.js +5 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.d.ts +8 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.js +5 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.d.ts +8 -0
- package/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.js +5 -0
- package/api/resources/evaluationSetItem/types/index.d.ts +4 -0
- package/api/resources/evaluationSetItem/types/index.js +20 -0
- package/api/resources/file/client/Client.d.ts +91 -0
- package/api/resources/file/client/Client.js +297 -0
- package/api/resources/file/client/index.d.ts +1 -0
- package/api/resources/file/client/index.js +17 -0
- package/api/resources/file/client/requests/FileGetRequest.d.ts +25 -0
- package/api/resources/file/client/requests/FileGetRequest.js +5 -0
- package/api/resources/file/client/requests/FileListRequest.d.ts +24 -0
- package/api/resources/file/client/requests/FileListRequest.js +5 -0
- package/api/resources/file/client/requests/FileUploadRequest.d.ts +9 -0
- package/api/resources/file/client/requests/FileUploadRequest.js +5 -0
- package/api/resources/file/client/requests/index.d.ts +3 -0
- package/api/resources/file/client/requests/index.js +2 -0
- package/api/resources/file/index.d.ts +2 -0
- package/api/resources/file/index.js +18 -0
- package/api/resources/file/types/FileGetResponse.d.ts +8 -0
- package/api/resources/file/types/FileGetResponse.js +5 -0
- package/api/resources/file/types/FileListResponse.d.ts +9 -0
- package/api/resources/file/types/FileListResponse.js +5 -0
- package/api/resources/file/types/FileUploadResponse.d.ts +8 -0
- package/api/resources/file/types/FileUploadResponse.js +5 -0
- package/api/resources/file/types/index.d.ts +3 -0
- package/api/resources/file/types/index.js +19 -0
- package/api/resources/index.d.ts +32 -0
- package/api/resources/index.js +71 -0
- package/api/resources/processor/client/Client.d.ts +70 -0
- package/api/resources/processor/client/Client.js +205 -0
- package/api/resources/processor/client/index.d.ts +1 -0
- package/api/resources/processor/client/index.js +17 -0
- package/api/resources/processor/client/requests/ProcessorCreateRequest.d.ts +24 -0
- package/api/resources/processor/client/requests/ProcessorCreateRequest.js +5 -0
- package/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +19 -0
- package/api/resources/processor/client/requests/ProcessorUpdateRequest.js +5 -0
- package/api/resources/processor/client/requests/index.d.ts +2 -0
- package/api/resources/processor/client/requests/index.js +2 -0
- package/api/resources/processor/index.d.ts +2 -0
- package/api/resources/processor/index.js +18 -0
- package/api/resources/processor/types/ProcessorCreateRequestConfig.d.ts +19 -0
- package/api/resources/processor/types/ProcessorCreateRequestConfig.js +5 -0
- package/api/resources/processor/types/ProcessorCreateResponse.d.ts +8 -0
- package/api/resources/processor/types/ProcessorCreateResponse.js +5 -0
- package/api/resources/processor/types/ProcessorUpdateRequestConfig.d.ts +22 -0
- package/api/resources/processor/types/ProcessorUpdateRequestConfig.js +5 -0
- package/api/resources/processor/types/ProcessorUpdateResponse.d.ts +8 -0
- package/api/resources/processor/types/ProcessorUpdateResponse.js +5 -0
- package/api/resources/processor/types/index.d.ts +4 -0
- package/api/resources/processor/types/index.js +20 -0
- package/api/resources/processorRun/client/Client.d.ts +79 -0
- package/api/resources/processorRun/client/Client.js +213 -0
- package/api/resources/processorRun/client/index.d.ts +1 -0
- package/api/resources/processorRun/client/index.js +17 -0
- package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +30 -0
- package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.js +5 -0
- package/api/resources/processorRun/client/requests/index.d.ts +1 -0
- package/api/resources/processorRun/client/requests/index.js +2 -0
- package/api/resources/processorRun/index.d.ts +2 -0
- package/api/resources/processorRun/index.js +18 -0
- package/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.d.ts +19 -0
- package/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.js +5 -0
- package/api/resources/processorRun/types/ProcessorRunCreateResponse.d.ts +8 -0
- package/api/resources/processorRun/types/ProcessorRunCreateResponse.js +5 -0
- package/api/resources/processorRun/types/ProcessorRunGetResponse.d.ts +8 -0
- package/api/resources/processorRun/types/ProcessorRunGetResponse.js +5 -0
- package/api/resources/processorRun/types/index.d.ts +3 -0
- package/api/resources/processorRun/types/index.js +19 -0
- package/api/resources/processorVersion/client/Client.d.ts +95 -0
- package/api/resources/processorVersion/client/Client.js +280 -0
- package/api/resources/processorVersion/client/index.d.ts +1 -0
- package/api/resources/processorVersion/client/index.js +17 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +18 -0
- package/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.js +5 -0
- package/api/resources/processorVersion/client/requests/index.d.ts +1 -0
- package/api/resources/processorVersion/client/requests/index.js +2 -0
- package/api/resources/processorVersion/index.d.ts +2 -0
- package/api/resources/processorVersion/index.js +18 -0
- package/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.d.ts +19 -0
- package/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.js +5 -0
- package/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.d.ts +11 -0
- package/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.js +10 -0
- package/api/resources/processorVersion/types/ProcessorVersionCreateResponse.d.ts +8 -0
- package/api/resources/processorVersion/types/ProcessorVersionCreateResponse.js +5 -0
- package/api/resources/processorVersion/types/ProcessorVersionGetResponse.d.ts +9 -0
- package/api/resources/processorVersion/types/ProcessorVersionGetResponse.js +5 -0
- package/api/resources/processorVersion/types/ProcessorVersionListResponse.d.ts +9 -0
- package/api/resources/processorVersion/types/ProcessorVersionListResponse.js +5 -0
- package/api/resources/processorVersion/types/index.d.ts +5 -0
- package/api/resources/processorVersion/types/index.js +21 -0
- package/api/resources/workflow/client/Client.d.ts +52 -0
- package/api/resources/workflow/client/Client.js +134 -0
- package/api/resources/workflow/client/index.d.ts +1 -0
- package/api/resources/workflow/client/index.js +17 -0
- package/api/resources/workflow/client/requests/WorkflowCreateRequest.d.ts +13 -0
- package/api/resources/workflow/client/requests/WorkflowCreateRequest.js +5 -0
- package/api/resources/workflow/client/requests/index.d.ts +1 -0
- package/api/resources/workflow/client/requests/index.js +2 -0
- package/api/resources/workflow/index.d.ts +2 -0
- package/api/resources/workflow/index.js +18 -0
- package/api/resources/workflow/types/WorkflowCreateResponse.d.ts +8 -0
- package/api/resources/workflow/types/WorkflowCreateResponse.js +5 -0
- package/api/resources/workflow/types/index.d.ts +1 -0
- package/api/resources/workflow/types/index.js +17 -0
- package/api/resources/workflowRun/client/Client.d.ts +101 -0
- package/api/resources/workflowRun/client/Client.js +356 -0
- package/api/resources/workflowRun/client/index.d.ts +1 -0
- package/api/resources/workflowRun/client/index.js +17 -0
- package/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.d.ts +34 -0
- package/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.js +5 -0
- package/api/resources/workflowRun/client/requests/WorkflowRunListRequest.d.ts +46 -0
- package/api/resources/workflowRun/client/requests/WorkflowRunListRequest.js +5 -0
- package/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.d.ts +18 -0
- package/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.js +5 -0
- package/api/resources/workflowRun/client/requests/index.d.ts +3 -0
- package/api/resources/workflowRun/client/requests/index.js +2 -0
- package/api/resources/workflowRun/index.d.ts +2 -0
- package/api/resources/workflowRun/index.js +18 -0
- package/api/resources/workflowRun/types/WorkflowRunCreateResponse.d.ts +9 -0
- package/api/resources/workflowRun/types/WorkflowRunCreateResponse.js +5 -0
- package/api/resources/workflowRun/types/WorkflowRunGetResponse.d.ts +8 -0
- package/api/resources/workflowRun/types/WorkflowRunGetResponse.js +5 -0
- package/api/resources/workflowRun/types/WorkflowRunListResponse.d.ts +9 -0
- package/api/resources/workflowRun/types/WorkflowRunListResponse.js +5 -0
- package/api/resources/workflowRun/types/WorkflowRunUpdateResponse.d.ts +8 -0
- package/api/resources/workflowRun/types/WorkflowRunUpdateResponse.js +5 -0
- package/api/resources/workflowRun/types/index.d.ts +4 -0
- package/api/resources/workflowRun/types/index.js +20 -0
- package/api/resources/workflowRunOutput/client/Client.d.ts +61 -0
- package/api/resources/workflowRunOutput/client/Client.js +148 -0
- package/api/resources/workflowRunOutput/client/index.d.ts +1 -0
- package/api/resources/workflowRunOutput/client/index.js +17 -0
- package/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.d.ts +24 -0
- package/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.js +5 -0
- package/api/resources/workflowRunOutput/client/requests/index.d.ts +1 -0
- package/api/resources/workflowRunOutput/client/requests/index.js +2 -0
- package/api/resources/workflowRunOutput/index.d.ts +2 -0
- package/api/resources/workflowRunOutput/index.js +18 -0
- package/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.d.ts +8 -0
- package/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.js +5 -0
- package/api/resources/workflowRunOutput/types/index.d.ts +1 -0
- package/api/resources/workflowRunOutput/types/index.js +17 -0
- package/api/types/ApiVersionEnum.d.ts +11 -0
- package/api/types/ApiVersionEnum.js +13 -0
- package/api/types/BadRequestErrorBody.d.ts +7 -0
- package/api/types/BadRequestErrorBody.js +5 -0
- package/api/types/BadRequestErrorBodyCode.d.ts +10 -0
- package/api/types/BadRequestErrorBodyCode.js +12 -0
- package/api/types/BaseMetrics.d.ts +14 -0
- package/api/types/BaseMetrics.js +5 -0
- package/api/types/BatchProcessorRun.d.ts +69 -0
- package/api/types/BatchProcessorRun.js +5 -0
- package/api/types/BatchProcessorRunMetrics.d.ts +9 -0
- package/api/types/BatchProcessorRunMetrics.js +5 -0
- package/api/types/BatchProcessorRunOptions.d.ts +12 -0
- package/api/types/BatchProcessorRunOptions.js +5 -0
- package/api/types/BatchProcessorRunSource.d.ts +15 -0
- package/api/types/BatchProcessorRunSource.js +11 -0
- package/api/types/BatchProcessorRunStatus.d.ts +17 -0
- package/api/types/BatchProcessorRunStatus.js +12 -0
- package/api/types/BatchWorkflowRunFileInput.d.ts +18 -0
- package/api/types/BatchWorkflowRunFileInput.js +5 -0
- package/api/types/Block.d.ts +31 -0
- package/api/types/Block.js +5 -0
- package/api/types/BlockBoundingBox.d.ts +12 -0
- package/api/types/BlockBoundingBox.js +5 -0
- package/api/types/BlockDetails.d.ts +8 -0
- package/api/types/BlockDetails.js +5 -0
- package/api/types/BlockMetadata.d.ts +11 -0
- package/api/types/BlockMetadata.js +5 -0
- package/api/types/BlockMetadataPage.d.ts +14 -0
- package/api/types/BlockMetadataPage.js +5 -0
- package/api/types/BlockPolygonItem.d.ts +7 -0
- package/api/types/BlockPolygonItem.js +5 -0
- package/api/types/BlockType.d.ts +21 -0
- package/api/types/BlockType.js +13 -0
- package/api/types/Chunk.d.ts +16 -0
- package/api/types/Chunk.js +5 -0
- package/api/types/ChunkMetadata.d.ts +11 -0
- package/api/types/ChunkMetadata.js +5 -0
- package/api/types/ChunkMetadataPageRange.d.ts +12 -0
- package/api/types/ChunkMetadataPageRange.js +5 -0
- package/api/types/ChunkType.d.ts +12 -0
- package/api/types/ChunkType.js +11 -0
- package/api/types/Citation.d.ts +12 -0
- package/api/types/Citation.js +5 -0
- package/api/types/Classification.d.ts +11 -0
- package/api/types/Classification.js +5 -0
- package/api/types/ClassificationAdvancedOptions.d.ts +12 -0
- package/api/types/ClassificationAdvancedOptions.js +5 -0
- package/api/types/ClassificationAdvancedOptionsContext.d.ts +11 -0
- package/api/types/ClassificationAdvancedOptionsContext.js +10 -0
- package/api/types/ClassificationConfig.d.ts +16 -0
- package/api/types/ClassificationConfig.js +5 -0
- package/api/types/ClassificationConfigBaseProcessor.d.ts +11 -0
- package/api/types/ClassificationConfigBaseProcessor.js +10 -0
- package/api/types/ClassifierOutput.d.ts +14 -0
- package/api/types/ClassifierOutput.js +5 -0
- package/api/types/ClassifyMetrics.d.ts +21 -0
- package/api/types/ClassifyMetrics.js +5 -0
- package/api/types/EmptyBlockDetails.d.ts +7 -0
- package/api/types/EmptyBlockDetails.js +5 -0
- package/api/types/Enum.d.ts +9 -0
- package/api/types/Enum.js +5 -0
- package/api/types/EnumOption.d.ts +9 -0
- package/api/types/EnumOption.js +5 -0
- package/api/types/Error_.d.ts +8 -0
- package/api/types/Error_.js +5 -0
- package/api/types/EvaluationSet.d.ts +46 -0
- package/api/types/EvaluationSet.js +5 -0
- package/api/types/EvaluationSetItem.d.ts +31 -0
- package/api/types/EvaluationSetItem.js +5 -0
- package/api/types/ExtractChunkingOptions.d.ts +14 -0
- package/api/types/ExtractChunkingOptions.js +5 -0
- package/api/types/ExtractChunkingOptionsChunkSelectionStrategy.d.ts +13 -0
- package/api/types/ExtractChunkingOptionsChunkSelectionStrategy.js +12 -0
- package/api/types/ExtractChunkingOptionsChunkingStrategy.d.ts +11 -0
- package/api/types/ExtractChunkingOptionsChunkingStrategy.js +10 -0
- package/api/types/ExtractMetrics.d.ts +15 -0
- package/api/types/ExtractMetrics.js +5 -0
- package/api/types/ExtractMetricsFieldMetrics.d.ts +16 -0
- package/api/types/ExtractMetricsFieldMetrics.js +5 -0
- package/api/types/ExtractionAdvancedOptions.d.ts +23 -0
- package/api/types/ExtractionAdvancedOptions.js +5 -0
- package/api/types/ExtractionConfig.d.ts +26 -0
- package/api/types/ExtractionConfig.js +5 -0
- package/api/types/ExtractionConfigBaseProcessor.d.ts +11 -0
- package/api/types/ExtractionConfigBaseProcessor.js +10 -0
- package/api/types/ExtractionField.d.ts +18 -0
- package/api/types/ExtractionField.js +5 -0
- package/api/types/ExtractionFieldResult.d.ts +21 -0
- package/api/types/ExtractionFieldResult.js +5 -0
- package/api/types/ExtractionFieldResultReference.d.ts +14 -0
- package/api/types/ExtractionFieldResultReference.js +5 -0
- package/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.d.ts +13 -0
- package/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.js +5 -0
- package/api/types/ExtractionFieldResultType.d.ts +18 -0
- package/api/types/ExtractionFieldResultType.js +17 -0
- package/api/types/ExtractionFieldType.d.ts +18 -0
- package/api/types/ExtractionFieldType.js +17 -0
- package/api/types/ExtractionOutput.d.ts +8 -0
- package/api/types/ExtractionOutput.js +5 -0
- package/api/types/ExtractionOutputEdits.d.ts +16 -0
- package/api/types/ExtractionOutputEdits.js +5 -0
- package/api/types/FieldsArrayOutput.d.ts +8 -0
- package/api/types/FieldsArrayOutput.js +5 -0
- package/api/types/FigureDetails.d.ts +23 -0
- package/api/types/FigureDetails.js +5 -0
- package/api/types/FigureDetailsFigureType.d.ts +20 -0
- package/api/types/FigureDetailsFigureType.js +13 -0
- package/api/types/FileContents.d.ts +12 -0
- package/api/types/FileContents.js +5 -0
- package/api/types/FileContentsPagesItem.d.ts +15 -0
- package/api/types/FileContentsPagesItem.js +5 -0
- package/api/types/FileContentsSheetsItem.d.ts +9 -0
- package/api/types/FileContentsSheetsItem.js +5 -0
- package/api/types/FileMetadata.d.ts +10 -0
- package/api/types/FileMetadata.js +5 -0
- package/api/types/FileMetadataParentSplit.d.ts +18 -0
- package/api/types/FileMetadataParentSplit.js +5 -0
- package/api/types/FileType.d.ts +17 -0
- package/api/types/FileType.js +16 -0
- package/api/types/File_.d.ts +40 -0
- package/api/types/File_.js +5 -0
- package/api/types/Insight.d.ts +9 -0
- package/api/types/Insight.js +5 -0
- package/api/types/JsonObject.d.ts +7 -0
- package/api/types/JsonObject.js +5 -0
- package/api/types/JsonOutput.d.ts +10 -0
- package/api/types/JsonOutput.js +5 -0
- package/api/types/JsonOutputMetadataValue.d.ts +12 -0
- package/api/types/JsonOutputMetadataValue.js +5 -0
- package/api/types/JsonOutputMetadataValueCitationsItem.d.ts +12 -0
- package/api/types/JsonOutputMetadataValueCitationsItem.js +5 -0
- package/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.d.ts +9 -0
- package/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.js +5 -0
- package/api/types/JsonOutputMetadataValueInsightsItem.d.ts +9 -0
- package/api/types/JsonOutputMetadataValueInsightsItem.js +5 -0
- package/api/types/MaxPageSize.d.ts +7 -0
- package/api/types/MaxPageSize.js +5 -0
- package/api/types/NextPageToken.d.ts +11 -0
- package/api/types/NextPageToken.js +5 -0
- package/api/types/OutputMetadata.d.ts +5 -0
- package/api/types/OutputMetadata.js +5 -0
- package/api/types/OutputMetadataValue.d.ts +12 -0
- package/api/types/OutputMetadataValue.js +5 -0
- package/api/types/ParseConfig.d.ts +21 -0
- package/api/types/ParseConfig.js +5 -0
- package/api/types/ParseConfigAdvancedOptions.d.ts +7 -0
- package/api/types/ParseConfigAdvancedOptions.js +5 -0
- package/api/types/ParseConfigBlockOptions.d.ts +15 -0
- package/api/types/ParseConfigBlockOptions.js +5 -0
- package/api/types/ParseConfigBlockOptionsFigures.d.ts +12 -0
- package/api/types/ParseConfigBlockOptionsFigures.js +5 -0
- package/api/types/ParseConfigBlockOptionsTables.d.ts +17 -0
- package/api/types/ParseConfigBlockOptionsTables.js +5 -0
- package/api/types/ParseConfigBlockOptionsTablesTargetFormat.d.ts +13 -0
- package/api/types/ParseConfigBlockOptionsTablesTargetFormat.js +10 -0
- package/api/types/ParseConfigBlockOptionsText.d.ts +10 -0
- package/api/types/ParseConfigBlockOptionsText.js +5 -0
- package/api/types/ParseConfigChunkingStrategy.d.ts +21 -0
- package/api/types/ParseConfigChunkingStrategy.js +5 -0
- package/api/types/ParseConfigChunkingStrategyType.d.ts +16 -0
- package/api/types/ParseConfigChunkingStrategyType.js +11 -0
- package/api/types/ParseConfigTarget.d.ts +14 -0
- package/api/types/ParseConfigTarget.js +10 -0
- package/api/types/ParseError.d.ts +10 -0
- package/api/types/ParseError.js +5 -0
- package/api/types/ParseErrorCode.d.ts +16 -0
- package/api/types/ParseErrorCode.js +18 -0
- package/api/types/ParseRequestFile.d.ts +18 -0
- package/api/types/ParseRequestFile.js +5 -0
- package/api/types/ParseResponse.d.ts +30 -0
- package/api/types/ParseResponse.js +5 -0
- package/api/types/ParseResponseMetrics.d.ts +12 -0
- package/api/types/ParseResponseMetrics.js +5 -0
- package/api/types/ParseResponseStatus.d.ts +13 -0
- package/api/types/ParseResponseStatus.js +10 -0
- package/api/types/Polygon.d.ts +9 -0
- package/api/types/Polygon.js +5 -0
- package/api/types/Processor.d.ts +34 -0
- package/api/types/Processor.js +5 -0
- package/api/types/ProcessorId.d.ts +9 -0
- package/api/types/ProcessorId.js +5 -0
- package/api/types/ProcessorOutput.d.ts +8 -0
- package/api/types/ProcessorOutput.js +5 -0
- package/api/types/ProcessorRun.d.ts +77 -0
- package/api/types/ProcessorRun.js +5 -0
- package/api/types/ProcessorRunConfig.d.ts +19 -0
- package/api/types/ProcessorRunConfig.js +5 -0
- package/api/types/ProcessorRunFileInput.d.ts +14 -0
- package/api/types/ProcessorRunFileInput.js +5 -0
- package/api/types/ProcessorRunMergedProcessorsItem.d.ts +19 -0
- package/api/types/ProcessorRunMergedProcessorsItem.js +5 -0
- package/api/types/ProcessorRunStatus.d.ts +15 -0
- package/api/types/ProcessorRunStatus.js +11 -0
- package/api/types/ProcessorRunType.d.ts +15 -0
- package/api/types/ProcessorRunType.js +11 -0
- package/api/types/ProcessorType.d.ts +15 -0
- package/api/types/ProcessorType.js +11 -0
- package/api/types/ProcessorVersion.d.ts +57 -0
- package/api/types/ProcessorVersion.js +5 -0
- package/api/types/ProcessorVersionConfig.d.ts +21 -0
- package/api/types/ProcessorVersionConfig.js +5 -0
- package/api/types/ProvidedClassifierOutput.d.ts +11 -0
- package/api/types/ProvidedClassifierOutput.js +5 -0
- package/api/types/ProvidedExtractionFieldResult.d.ts +15 -0
- package/api/types/ProvidedExtractionFieldResult.js +5 -0
- package/api/types/ProvidedExtractionFieldResultType.d.ts +18 -0
- package/api/types/ProvidedExtractionFieldResultType.js +17 -0
- package/api/types/ProvidedExtractionOutput.d.ts +5 -0
- package/api/types/ProvidedExtractionOutput.js +5 -0
- package/api/types/ProvidedFieldsArrayOutput.d.ts +8 -0
- package/api/types/ProvidedFieldsArrayOutput.js +5 -0
- package/api/types/ProvidedJsonOutput.d.ts +9 -0
- package/api/types/ProvidedJsonOutput.js +5 -0
- package/api/types/ProvidedProcessorOutput.d.ts +5 -0
- package/api/types/ProvidedProcessorOutput.js +5 -0
- package/api/types/ProvidedSplitterOutput.d.ts +7 -0
- package/api/types/ProvidedSplitterOutput.js +5 -0
- package/api/types/ProvidedSplitterOutputSplitsItem.d.ts +19 -0
- package/api/types/ProvidedSplitterOutputSplitsItem.js +5 -0
- package/api/types/SortByEnum.d.ts +8 -0
- package/api/types/SortByEnum.js +10 -0
- package/api/types/SortDirEnum.d.ts +8 -0
- package/api/types/SortDirEnum.js +10 -0
- package/api/types/SplitterAdvancedOptions.d.ts +14 -0
- package/api/types/SplitterAdvancedOptions.js +5 -0
- package/api/types/SplitterAdvancedOptionsSplitMethod.d.ts +11 -0
- package/api/types/SplitterAdvancedOptionsSplitMethod.js +10 -0
- package/api/types/SplitterConfig.d.ts +16 -0
- package/api/types/SplitterConfig.js +5 -0
- package/api/types/SplitterMetrics.d.ts +21 -0
- package/api/types/SplitterMetrics.js +5 -0
- package/api/types/SplitterOutput.d.ts +8 -0
- package/api/types/SplitterOutput.js +5 -0
- package/api/types/SplitterOutputSplitsItem.d.ts +23 -0
- package/api/types/SplitterOutputSplitsItem.js +5 -0
- package/api/types/StepRun.d.ts +29 -0
- package/api/types/StepRun.js +5 -0
- package/api/types/StepRunOutput.d.ts +12 -0
- package/api/types/StepRunOutput.js +5 -0
- package/api/types/StepRunOutputRulesItem.d.ts +21 -0
- package/api/types/StepRunOutputRulesItem.js +5 -0
- package/api/types/StepRunOutputRulesItemFailureReason.d.ts +15 -0
- package/api/types/StepRunOutputRulesItemFailureReason.js +11 -0
- package/api/types/StepRunStatus.d.ts +17 -0
- package/api/types/StepRunStatus.js +12 -0
- package/api/types/StepRunStep.d.ts +26 -0
- package/api/types/StepRunStep.js +5 -0
- package/api/types/StepRunStepType.d.ts +13 -0
- package/api/types/StepRunStepType.js +10 -0
- package/api/types/TableCellDetails.d.ts +12 -0
- package/api/types/TableCellDetails.js +5 -0
- package/api/types/TableDetails.d.ts +14 -0
- package/api/types/TableDetails.js +5 -0
- package/api/types/WebhookEvent.d.ts +12 -0
- package/api/types/WebhookEvent.js +5 -0
- package/api/types/WebhookEventEventType.d.ts +24 -0
- package/api/types/WebhookEventEventType.js +23 -0
- package/api/types/WebhookEventPayload.d.ts +8 -0
- package/api/types/WebhookEventPayload.js +5 -0
- package/api/types/WebhookEventProcessor.d.ts +13 -0
- package/api/types/WebhookEventProcessor.js +5 -0
- package/api/types/WebhookEventProcessorEventType.d.ts +10 -0
- package/api/types/WebhookEventProcessorEventType.js +12 -0
- package/api/types/WebhookEventProcessorRun.d.ts +13 -0
- package/api/types/WebhookEventProcessorRun.js +5 -0
- package/api/types/WebhookEventProcessorRunEventType.d.ts +8 -0
- package/api/types/WebhookEventProcessorRunEventType.js +10 -0
- package/api/types/WebhookEventProcessorVersion.d.ts +13 -0
- package/api/types/WebhookEventProcessorVersion.js +5 -0
- package/api/types/WebhookEventWorkflow.d.ts +13 -0
- package/api/types/WebhookEventWorkflow.js +5 -0
- package/api/types/WebhookEventWorkflowEventType.d.ts +9 -0
- package/api/types/WebhookEventWorkflowEventType.js +11 -0
- package/api/types/WebhookEventWorkflowRun.d.ts +13 -0
- package/api/types/WebhookEventWorkflowRun.js +5 -0
- package/api/types/WebhookEventWorkflowRunEventType.d.ts +11 -0
- package/api/types/WebhookEventWorkflowRunEventType.js +13 -0
- package/api/types/Workflow.d.ts +25 -0
- package/api/types/Workflow.js +5 -0
- package/api/types/WorkflowRun.d.ts +86 -0
- package/api/types/WorkflowRun.js +5 -0
- package/api/types/WorkflowRunFileInput.d.ts +21 -0
- package/api/types/WorkflowRunFileInput.js +5 -0
- package/api/types/WorkflowRunFileInputOutputsItem.d.ts +13 -0
- package/api/types/WorkflowRunFileInputOutputsItem.js +5 -0
- package/api/types/WorkflowRunSummary.d.ts +85 -0
- package/api/types/WorkflowRunSummary.js +5 -0
- package/api/types/WorkflowStatus.d.ts +21 -0
- package/api/types/WorkflowStatus.js +14 -0
- package/api/types/index.d.ts +145 -0
- package/api/types/index.js +161 -0
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +26 -0
- package/core/auth/BearerToken.d.ts +5 -0
- package/core/auth/BearerToken.js +15 -0
- package/core/auth/index.d.ts +2 -0
- package/core/auth/index.js +7 -0
- package/core/fetcher/APIResponse.d.ts +20 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +39 -0
- package/core/fetcher/Fetcher.js +107 -0
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +12 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +68 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +11 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +54 -0
- package/core/fetcher/index.d.ts +8 -0
- package/core/fetcher/index.js +15 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +40 -0
- package/core/fetcher/signals.d.ts +11 -0
- package/core/fetcher/signals.js +36 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/core/form-data-utils/FormDataWrapper.d.ts +63 -0
- package/core/form-data-utils/FormDataWrapper.js +227 -0
- package/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
- package/core/form-data-utils/encodeAsFormParameter.js +18 -0
- package/core/form-data-utils/index.d.ts +2 -0
- package/core/form-data-utils/index.js +20 -0
- package/core/index.d.ts +4 -0
- package/core/index.js +20 -0
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +9 -0
- package/core/runtime/runtime.js +103 -0
- package/dist/Client.d.ts +90 -0
- package/dist/Client.js +196 -0
- package/dist/api/client/index.d.ts +1 -0
- package/dist/api/client/index.js +17 -0
- package/dist/api/client/requests/ParseRequest.d.ts +15 -0
- package/dist/api/client/requests/ParseRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/client/requests/index.js +2 -0
- package/dist/api/errors/BadRequestError.d.ts +8 -0
- package/dist/api/errors/BadRequestError.js +52 -0
- package/dist/api/errors/NotFoundError.d.ts +9 -0
- package/dist/api/errors/NotFoundError.js +52 -0
- package/dist/api/errors/UnauthorizedError.d.ts +9 -0
- package/dist/api/errors/UnauthorizedError.js +52 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +9 -0
- package/dist/api/errors/UnprocessableEntityError.js +52 -0
- package/dist/api/errors/index.d.ts +4 -0
- package/dist/api/errors/index.js +20 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +20 -0
- package/dist/api/resources/batchProcessorRun/client/Client.d.ts +51 -0
- package/dist/api/resources/batchProcessorRun/client/Client.js +134 -0
- package/dist/api/resources/batchProcessorRun/client/index.d.ts +1 -0
- package/dist/api/resources/batchProcessorRun/client/index.js +2 -0
- package/dist/api/resources/batchProcessorRun/index.d.ts +2 -0
- package/dist/api/resources/batchProcessorRun/index.js +18 -0
- package/dist/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.d.ts +8 -0
- package/dist/api/resources/batchProcessorRun/types/BatchProcessorRunGetResponse.js +5 -0
- package/dist/api/resources/batchProcessorRun/types/index.d.ts +1 -0
- package/dist/api/resources/batchProcessorRun/types/index.js +17 -0
- package/dist/api/resources/batchWorkflowRun/client/Client.d.ts +62 -0
- package/dist/api/resources/batchWorkflowRun/client/Client.js +149 -0
- package/dist/api/resources/batchWorkflowRun/client/index.d.ts +1 -0
- package/dist/api/resources/batchWorkflowRun/client/index.js +17 -0
- package/dist/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.d.ts +23 -0
- package/dist/api/resources/batchWorkflowRun/client/requests/BatchWorkflowRunCreateRequest.js +5 -0
- package/dist/api/resources/batchWorkflowRun/client/requests/index.d.ts +1 -0
- package/dist/api/resources/batchWorkflowRun/client/requests/index.js +2 -0
- package/dist/api/resources/batchWorkflowRun/index.d.ts +2 -0
- package/dist/api/resources/batchWorkflowRun/index.js +18 -0
- package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +14 -0
- package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.js +5 -0
- package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.d.ts +9 -0
- package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateResponse.js +5 -0
- package/dist/api/resources/batchWorkflowRun/types/index.d.ts +2 -0
- package/dist/api/resources/batchWorkflowRun/types/index.js +18 -0
- package/dist/api/resources/evaluationSet/client/Client.d.ts +54 -0
- package/dist/api/resources/evaluationSet/client/Client.js +136 -0
- package/dist/api/resources/evaluationSet/client/index.d.ts +1 -0
- package/dist/api/resources/evaluationSet/client/index.js +17 -0
- package/dist/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.d.ts +31 -0
- package/dist/api/resources/evaluationSet/client/requests/EvaluationSetCreateRequest.js +5 -0
- package/dist/api/resources/evaluationSet/client/requests/index.d.ts +1 -0
- package/dist/api/resources/evaluationSet/client/requests/index.js +2 -0
- package/dist/api/resources/evaluationSet/index.d.ts +2 -0
- package/dist/api/resources/evaluationSet/index.js +18 -0
- package/dist/api/resources/evaluationSet/types/EvaluationSetCreateResponse.d.ts +8 -0
- package/dist/api/resources/evaluationSet/types/EvaluationSetCreateResponse.js +5 -0
- package/dist/api/resources/evaluationSet/types/index.d.ts +1 -0
- package/dist/api/resources/evaluationSet/types/index.js +17 -0
- package/dist/api/resources/evaluationSetItem/client/Client.d.ts +119 -0
- package/dist/api/resources/evaluationSetItem/client/Client.js +310 -0
- package/dist/api/resources/evaluationSetItem/client/index.d.ts +1 -0
- package/dist/api/resources/evaluationSetItem/client/index.js +17 -0
- package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.d.ts +28 -0
- package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateBatchRequest.js +5 -0
- package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.d.ts +32 -0
- package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemCreateRequest.js +5 -0
- package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.d.ts +18 -0
- package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemUpdateRequest.js +5 -0
- package/dist/api/resources/evaluationSetItem/client/requests/index.d.ts +3 -0
- package/dist/api/resources/evaluationSetItem/client/requests/index.js +2 -0
- package/dist/api/resources/evaluationSetItem/index.d.ts +2 -0
- package/dist/api/resources/evaluationSetItem/index.js +18 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.d.ts +14 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchRequestItemsItem.js +5 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.d.ts +8 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateBatchResponse.js +5 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.d.ts +8 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemCreateResponse.js +5 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.d.ts +8 -0
- package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemUpdateResponse.js +5 -0
- package/dist/api/resources/evaluationSetItem/types/index.d.ts +4 -0
- package/dist/api/resources/evaluationSetItem/types/index.js +20 -0
- package/dist/api/resources/file/client/Client.d.ts +91 -0
- package/dist/api/resources/file/client/Client.js +297 -0
- package/dist/api/resources/file/client/index.d.ts +1 -0
- package/dist/api/resources/file/client/index.js +17 -0
- package/dist/api/resources/file/client/requests/FileGetRequest.d.ts +25 -0
- package/dist/api/resources/file/client/requests/FileGetRequest.js +5 -0
- package/dist/api/resources/file/client/requests/FileListRequest.d.ts +24 -0
- package/dist/api/resources/file/client/requests/FileListRequest.js +5 -0
- package/dist/api/resources/file/client/requests/FileUploadRequest.d.ts +9 -0
- package/dist/api/resources/file/client/requests/FileUploadRequest.js +5 -0
- package/dist/api/resources/file/client/requests/index.d.ts +3 -0
- package/dist/api/resources/file/client/requests/index.js +2 -0
- package/dist/api/resources/file/index.d.ts +2 -0
- package/dist/api/resources/file/index.js +18 -0
- package/dist/api/resources/file/types/FileGetResponse.d.ts +8 -0
- package/dist/api/resources/file/types/FileGetResponse.js +5 -0
- package/dist/api/resources/file/types/FileListResponse.d.ts +9 -0
- package/dist/api/resources/file/types/FileListResponse.js +5 -0
- package/dist/api/resources/file/types/FileUploadResponse.d.ts +8 -0
- package/dist/api/resources/file/types/FileUploadResponse.js +5 -0
- package/dist/api/resources/file/types/index.d.ts +3 -0
- package/dist/api/resources/file/types/index.js +19 -0
- package/dist/api/resources/index.d.ts +32 -0
- package/dist/api/resources/index.js +71 -0
- package/dist/api/resources/processor/client/Client.d.ts +70 -0
- package/dist/api/resources/processor/client/Client.js +205 -0
- package/dist/api/resources/processor/client/index.d.ts +1 -0
- package/dist/api/resources/processor/client/index.js +17 -0
- package/dist/api/resources/processor/client/requests/ProcessorCreateRequest.d.ts +24 -0
- package/dist/api/resources/processor/client/requests/ProcessorCreateRequest.js +5 -0
- package/dist/api/resources/processor/client/requests/ProcessorUpdateRequest.d.ts +19 -0
- package/dist/api/resources/processor/client/requests/ProcessorUpdateRequest.js +5 -0
- package/dist/api/resources/processor/client/requests/index.d.ts +2 -0
- package/dist/api/resources/processor/client/requests/index.js +2 -0
- package/dist/api/resources/processor/index.d.ts +2 -0
- package/dist/api/resources/processor/index.js +18 -0
- package/dist/api/resources/processor/types/ProcessorCreateRequestConfig.d.ts +19 -0
- package/dist/api/resources/processor/types/ProcessorCreateRequestConfig.js +5 -0
- package/dist/api/resources/processor/types/ProcessorCreateResponse.d.ts +8 -0
- package/dist/api/resources/processor/types/ProcessorCreateResponse.js +5 -0
- package/dist/api/resources/processor/types/ProcessorUpdateRequestConfig.d.ts +22 -0
- package/dist/api/resources/processor/types/ProcessorUpdateRequestConfig.js +5 -0
- package/dist/api/resources/processor/types/ProcessorUpdateResponse.d.ts +8 -0
- package/dist/api/resources/processor/types/ProcessorUpdateResponse.js +5 -0
- package/dist/api/resources/processor/types/index.d.ts +4 -0
- package/dist/api/resources/processor/types/index.js +20 -0
- package/dist/api/resources/processorRun/client/Client.d.ts +79 -0
- package/dist/api/resources/processorRun/client/Client.js +213 -0
- package/dist/api/resources/processorRun/client/index.d.ts +1 -0
- package/dist/api/resources/processorRun/client/index.js +17 -0
- package/dist/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +30 -0
- package/dist/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.js +5 -0
- package/dist/api/resources/processorRun/client/requests/index.d.ts +1 -0
- package/dist/api/resources/processorRun/client/requests/index.js +2 -0
- package/dist/api/resources/processorRun/index.d.ts +2 -0
- package/dist/api/resources/processorRun/index.js +18 -0
- package/dist/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.d.ts +19 -0
- package/dist/api/resources/processorRun/types/ProcessorRunCreateRequestConfig.js +5 -0
- package/dist/api/resources/processorRun/types/ProcessorRunCreateResponse.d.ts +8 -0
- package/dist/api/resources/processorRun/types/ProcessorRunCreateResponse.js +5 -0
- package/dist/api/resources/processorRun/types/ProcessorRunGetResponse.d.ts +8 -0
- package/dist/api/resources/processorRun/types/ProcessorRunGetResponse.js +5 -0
- package/dist/api/resources/processorRun/types/index.d.ts +3 -0
- package/dist/api/resources/processorRun/types/index.js +19 -0
- package/dist/api/resources/processorVersion/client/Client.d.ts +95 -0
- package/dist/api/resources/processorVersion/client/Client.js +280 -0
- package/dist/api/resources/processorVersion/client/index.d.ts +1 -0
- package/dist/api/resources/processorVersion/client/index.js +17 -0
- package/dist/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.d.ts +18 -0
- package/dist/api/resources/processorVersion/client/requests/ProcessorVersionCreateRequest.js +5 -0
- package/dist/api/resources/processorVersion/client/requests/index.d.ts +1 -0
- package/dist/api/resources/processorVersion/client/requests/index.js +2 -0
- package/dist/api/resources/processorVersion/index.d.ts +2 -0
- package/dist/api/resources/processorVersion/index.js +18 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.d.ts +19 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestConfig.js +5 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.d.ts +11 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionCreateRequestReleaseType.js +10 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionCreateResponse.d.ts +8 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionCreateResponse.js +5 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionGetResponse.d.ts +9 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionGetResponse.js +5 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionListResponse.d.ts +9 -0
- package/dist/api/resources/processorVersion/types/ProcessorVersionListResponse.js +5 -0
- package/dist/api/resources/processorVersion/types/index.d.ts +5 -0
- package/dist/api/resources/processorVersion/types/index.js +21 -0
- package/dist/api/resources/workflow/client/Client.d.ts +52 -0
- package/dist/api/resources/workflow/client/Client.js +134 -0
- package/dist/api/resources/workflow/client/index.d.ts +1 -0
- package/dist/api/resources/workflow/client/index.js +17 -0
- package/dist/api/resources/workflow/client/requests/WorkflowCreateRequest.d.ts +13 -0
- package/dist/api/resources/workflow/client/requests/WorkflowCreateRequest.js +5 -0
- package/dist/api/resources/workflow/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workflow/client/requests/index.js +2 -0
- package/dist/api/resources/workflow/index.d.ts +2 -0
- package/dist/api/resources/workflow/index.js +18 -0
- package/dist/api/resources/workflow/types/WorkflowCreateResponse.d.ts +8 -0
- package/dist/api/resources/workflow/types/WorkflowCreateResponse.js +5 -0
- package/dist/api/resources/workflow/types/index.d.ts +1 -0
- package/dist/api/resources/workflow/types/index.js +17 -0
- package/dist/api/resources/workflowRun/client/Client.d.ts +101 -0
- package/dist/api/resources/workflowRun/client/Client.js +356 -0
- package/dist/api/resources/workflowRun/client/index.d.ts +1 -0
- package/dist/api/resources/workflowRun/client/index.js +17 -0
- package/dist/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.d.ts +34 -0
- package/dist/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.js +5 -0
- package/dist/api/resources/workflowRun/client/requests/WorkflowRunListRequest.d.ts +46 -0
- package/dist/api/resources/workflowRun/client/requests/WorkflowRunListRequest.js +5 -0
- package/dist/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.d.ts +18 -0
- package/dist/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.js +5 -0
- package/dist/api/resources/workflowRun/client/requests/index.d.ts +3 -0
- package/dist/api/resources/workflowRun/client/requests/index.js +2 -0
- package/dist/api/resources/workflowRun/index.d.ts +2 -0
- package/dist/api/resources/workflowRun/index.js +18 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunCreateResponse.d.ts +9 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunCreateResponse.js +5 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunGetResponse.d.ts +8 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunGetResponse.js +5 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunListResponse.d.ts +9 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunListResponse.js +5 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunUpdateResponse.d.ts +8 -0
- package/dist/api/resources/workflowRun/types/WorkflowRunUpdateResponse.js +5 -0
- package/dist/api/resources/workflowRun/types/index.d.ts +4 -0
- package/dist/api/resources/workflowRun/types/index.js +20 -0
- package/dist/api/resources/workflowRunOutput/client/Client.d.ts +61 -0
- package/dist/api/resources/workflowRunOutput/client/Client.js +148 -0
- package/dist/api/resources/workflowRunOutput/client/index.d.ts +1 -0
- package/dist/api/resources/workflowRunOutput/client/index.js +17 -0
- package/dist/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.d.ts +24 -0
- package/dist/api/resources/workflowRunOutput/client/requests/WorkflowRunOutputUpdateRequest.js +5 -0
- package/dist/api/resources/workflowRunOutput/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workflowRunOutput/client/requests/index.js +2 -0
- package/dist/api/resources/workflowRunOutput/index.d.ts +2 -0
- package/dist/api/resources/workflowRunOutput/index.js +18 -0
- package/dist/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.d.ts +8 -0
- package/dist/api/resources/workflowRunOutput/types/WorkflowRunOutputUpdateResponse.js +5 -0
- package/dist/api/resources/workflowRunOutput/types/index.d.ts +1 -0
- package/dist/api/resources/workflowRunOutput/types/index.js +17 -0
- package/dist/api/types/ApiVersionEnum.d.ts +11 -0
- package/dist/api/types/ApiVersionEnum.js +13 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +7 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/BadRequestErrorBodyCode.d.ts +10 -0
- package/dist/api/types/BadRequestErrorBodyCode.js +12 -0
- package/dist/api/types/BaseMetrics.d.ts +14 -0
- package/dist/api/types/BaseMetrics.js +5 -0
- package/dist/api/types/BatchProcessorRun.d.ts +69 -0
- package/dist/api/types/BatchProcessorRun.js +5 -0
- package/dist/api/types/BatchProcessorRunMetrics.d.ts +9 -0
- package/dist/api/types/BatchProcessorRunMetrics.js +5 -0
- package/dist/api/types/BatchProcessorRunOptions.d.ts +12 -0
- package/dist/api/types/BatchProcessorRunOptions.js +5 -0
- package/dist/api/types/BatchProcessorRunSource.d.ts +15 -0
- package/dist/api/types/BatchProcessorRunSource.js +11 -0
- package/dist/api/types/BatchProcessorRunStatus.d.ts +17 -0
- package/dist/api/types/BatchProcessorRunStatus.js +12 -0
- package/dist/api/types/BatchWorkflowRunFileInput.d.ts +18 -0
- package/dist/api/types/BatchWorkflowRunFileInput.js +5 -0
- package/dist/api/types/Block.d.ts +31 -0
- package/dist/api/types/Block.js +5 -0
- package/dist/api/types/BlockBoundingBox.d.ts +12 -0
- package/dist/api/types/BlockBoundingBox.js +5 -0
- package/dist/api/types/BlockDetails.d.ts +8 -0
- package/dist/api/types/BlockDetails.js +5 -0
- package/dist/api/types/BlockMetadata.d.ts +11 -0
- package/dist/api/types/BlockMetadata.js +5 -0
- package/dist/api/types/BlockMetadataPage.d.ts +14 -0
- package/dist/api/types/BlockMetadataPage.js +5 -0
- package/dist/api/types/BlockPolygonItem.d.ts +7 -0
- package/dist/api/types/BlockPolygonItem.js +5 -0
- package/dist/api/types/BlockType.d.ts +21 -0
- package/dist/api/types/BlockType.js +13 -0
- package/dist/api/types/Chunk.d.ts +16 -0
- package/dist/api/types/Chunk.js +5 -0
- package/dist/api/types/ChunkMetadata.d.ts +11 -0
- package/dist/api/types/ChunkMetadata.js +5 -0
- package/dist/api/types/ChunkMetadataPageRange.d.ts +12 -0
- package/dist/api/types/ChunkMetadataPageRange.js +5 -0
- package/dist/api/types/ChunkType.d.ts +12 -0
- package/dist/api/types/ChunkType.js +11 -0
- package/dist/api/types/Citation.d.ts +12 -0
- package/dist/api/types/Citation.js +5 -0
- package/dist/api/types/Classification.d.ts +11 -0
- package/dist/api/types/Classification.js +5 -0
- package/dist/api/types/ClassificationAdvancedOptions.d.ts +12 -0
- package/dist/api/types/ClassificationAdvancedOptions.js +5 -0
- package/dist/api/types/ClassificationAdvancedOptionsContext.d.ts +11 -0
- package/dist/api/types/ClassificationAdvancedOptionsContext.js +10 -0
- package/dist/api/types/ClassificationConfig.d.ts +16 -0
- package/dist/api/types/ClassificationConfig.js +5 -0
- package/dist/api/types/ClassificationConfigBaseProcessor.d.ts +11 -0
- package/dist/api/types/ClassificationConfigBaseProcessor.js +10 -0
- package/dist/api/types/ClassifierOutput.d.ts +14 -0
- package/dist/api/types/ClassifierOutput.js +5 -0
- package/dist/api/types/ClassifyMetrics.d.ts +21 -0
- package/dist/api/types/ClassifyMetrics.js +5 -0
- package/dist/api/types/EmptyBlockDetails.d.ts +7 -0
- package/dist/api/types/EmptyBlockDetails.js +5 -0
- package/dist/api/types/Enum.d.ts +9 -0
- package/dist/api/types/Enum.js +5 -0
- package/dist/api/types/EnumOption.d.ts +9 -0
- package/dist/api/types/EnumOption.js +5 -0
- package/dist/api/types/Error_.d.ts +8 -0
- package/dist/api/types/Error_.js +5 -0
- package/dist/api/types/EvaluationSet.d.ts +46 -0
- package/dist/api/types/EvaluationSet.js +5 -0
- package/dist/api/types/EvaluationSetItem.d.ts +31 -0
- package/dist/api/types/EvaluationSetItem.js +5 -0
- package/dist/api/types/ExtractChunkingOptions.d.ts +14 -0
- package/dist/api/types/ExtractChunkingOptions.js +5 -0
- package/dist/api/types/ExtractChunkingOptionsChunkSelectionStrategy.d.ts +13 -0
- package/dist/api/types/ExtractChunkingOptionsChunkSelectionStrategy.js +12 -0
- package/dist/api/types/ExtractChunkingOptionsChunkingStrategy.d.ts +11 -0
- package/dist/api/types/ExtractChunkingOptionsChunkingStrategy.js +10 -0
- package/dist/api/types/ExtractMetrics.d.ts +15 -0
- package/dist/api/types/ExtractMetrics.js +5 -0
- package/dist/api/types/ExtractMetricsFieldMetrics.d.ts +16 -0
- package/dist/api/types/ExtractMetricsFieldMetrics.js +5 -0
- package/dist/api/types/ExtractionAdvancedOptions.d.ts +23 -0
- package/dist/api/types/ExtractionAdvancedOptions.js +5 -0
- package/dist/api/types/ExtractionConfig.d.ts +26 -0
- package/dist/api/types/ExtractionConfig.js +5 -0
- package/dist/api/types/ExtractionConfigBaseProcessor.d.ts +11 -0
- package/dist/api/types/ExtractionConfigBaseProcessor.js +10 -0
- package/dist/api/types/ExtractionField.d.ts +18 -0
- package/dist/api/types/ExtractionField.js +5 -0
- package/dist/api/types/ExtractionFieldResult.d.ts +21 -0
- package/dist/api/types/ExtractionFieldResult.js +5 -0
- package/dist/api/types/ExtractionFieldResultReference.d.ts +14 -0
- package/dist/api/types/ExtractionFieldResultReference.js +5 -0
- package/dist/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.d.ts +13 -0
- package/dist/api/types/ExtractionFieldResultReferenceBoundingBoxesItem.js +5 -0
- package/dist/api/types/ExtractionFieldResultType.d.ts +18 -0
- package/dist/api/types/ExtractionFieldResultType.js +17 -0
- package/dist/api/types/ExtractionFieldType.d.ts +18 -0
- package/dist/api/types/ExtractionFieldType.js +17 -0
- package/dist/api/types/ExtractionOutput.d.ts +8 -0
- package/dist/api/types/ExtractionOutput.js +5 -0
- package/dist/api/types/ExtractionOutputEdits.d.ts +16 -0
- package/dist/api/types/ExtractionOutputEdits.js +5 -0
- package/dist/api/types/FieldsArrayOutput.d.ts +8 -0
- package/dist/api/types/FieldsArrayOutput.js +5 -0
- package/dist/api/types/FigureDetails.d.ts +23 -0
- package/dist/api/types/FigureDetails.js +5 -0
- package/dist/api/types/FigureDetailsFigureType.d.ts +20 -0
- package/dist/api/types/FigureDetailsFigureType.js +13 -0
- package/dist/api/types/FileContents.d.ts +12 -0
- package/dist/api/types/FileContents.js +5 -0
- package/dist/api/types/FileContentsPagesItem.d.ts +15 -0
- package/dist/api/types/FileContentsPagesItem.js +5 -0
- package/dist/api/types/FileContentsSheetsItem.d.ts +9 -0
- package/dist/api/types/FileContentsSheetsItem.js +5 -0
- package/dist/api/types/FileMetadata.d.ts +10 -0
- package/dist/api/types/FileMetadata.js +5 -0
- package/dist/api/types/FileMetadataParentSplit.d.ts +18 -0
- package/dist/api/types/FileMetadataParentSplit.js +5 -0
- package/dist/api/types/FileType.d.ts +17 -0
- package/dist/api/types/FileType.js +16 -0
- package/dist/api/types/File_.d.ts +40 -0
- package/dist/api/types/File_.js +5 -0
- package/dist/api/types/Insight.d.ts +9 -0
- package/dist/api/types/Insight.js +5 -0
- package/dist/api/types/JsonObject.d.ts +7 -0
- package/dist/api/types/JsonObject.js +5 -0
- package/dist/api/types/JsonOutput.d.ts +10 -0
- package/dist/api/types/JsonOutput.js +5 -0
- package/dist/api/types/JsonOutputMetadataValue.d.ts +12 -0
- package/dist/api/types/JsonOutputMetadataValue.js +5 -0
- package/dist/api/types/JsonOutputMetadataValueCitationsItem.d.ts +12 -0
- package/dist/api/types/JsonOutputMetadataValueCitationsItem.js +5 -0
- package/dist/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.d.ts +9 -0
- package/dist/api/types/JsonOutputMetadataValueCitationsItemPolygonItem.js +5 -0
- package/dist/api/types/JsonOutputMetadataValueInsightsItem.d.ts +9 -0
- package/dist/api/types/JsonOutputMetadataValueInsightsItem.js +5 -0
- package/dist/api/types/MaxPageSize.d.ts +7 -0
- package/dist/api/types/MaxPageSize.js +5 -0
- package/dist/api/types/NextPageToken.d.ts +11 -0
- package/dist/api/types/NextPageToken.js +5 -0
- package/dist/api/types/OutputMetadata.d.ts +5 -0
- package/dist/api/types/OutputMetadata.js +5 -0
- package/dist/api/types/OutputMetadataValue.d.ts +12 -0
- package/dist/api/types/OutputMetadataValue.js +5 -0
- package/dist/api/types/ParseConfig.d.ts +21 -0
- package/dist/api/types/ParseConfig.js +5 -0
- package/dist/api/types/ParseConfigAdvancedOptions.d.ts +7 -0
- package/dist/api/types/ParseConfigAdvancedOptions.js +5 -0
- package/dist/api/types/ParseConfigBlockOptions.d.ts +15 -0
- package/dist/api/types/ParseConfigBlockOptions.js +5 -0
- package/dist/api/types/ParseConfigBlockOptionsFigures.d.ts +12 -0
- package/dist/api/types/ParseConfigBlockOptionsFigures.js +5 -0
- package/dist/api/types/ParseConfigBlockOptionsTables.d.ts +17 -0
- package/dist/api/types/ParseConfigBlockOptionsTables.js +5 -0
- package/dist/api/types/ParseConfigBlockOptionsTablesTargetFormat.d.ts +13 -0
- package/dist/api/types/ParseConfigBlockOptionsTablesTargetFormat.js +10 -0
- package/dist/api/types/ParseConfigBlockOptionsText.d.ts +10 -0
- package/dist/api/types/ParseConfigBlockOptionsText.js +5 -0
- package/dist/api/types/ParseConfigChunkingStrategy.d.ts +21 -0
- package/dist/api/types/ParseConfigChunkingStrategy.js +5 -0
- package/dist/api/types/ParseConfigChunkingStrategyType.d.ts +16 -0
- package/dist/api/types/ParseConfigChunkingStrategyType.js +11 -0
- package/dist/api/types/ParseConfigTarget.d.ts +14 -0
- package/dist/api/types/ParseConfigTarget.js +10 -0
- package/dist/api/types/ParseError.d.ts +10 -0
- package/dist/api/types/ParseError.js +5 -0
- package/dist/api/types/ParseErrorCode.d.ts +16 -0
- package/dist/api/types/ParseErrorCode.js +18 -0
- package/dist/api/types/ParseRequestFile.d.ts +18 -0
- package/dist/api/types/ParseRequestFile.js +5 -0
- package/dist/api/types/ParseResponse.d.ts +30 -0
- package/dist/api/types/ParseResponse.js +5 -0
- package/dist/api/types/ParseResponseMetrics.d.ts +12 -0
- package/dist/api/types/ParseResponseMetrics.js +5 -0
- package/dist/api/types/ParseResponseStatus.d.ts +13 -0
- package/dist/api/types/ParseResponseStatus.js +10 -0
- package/dist/api/types/Polygon.d.ts +9 -0
- package/dist/api/types/Polygon.js +5 -0
- package/dist/api/types/Processor.d.ts +34 -0
- package/dist/api/types/Processor.js +5 -0
- package/dist/api/types/ProcessorId.d.ts +9 -0
- package/dist/api/types/ProcessorId.js +5 -0
- package/dist/api/types/ProcessorOutput.d.ts +8 -0
- package/dist/api/types/ProcessorOutput.js +5 -0
- package/dist/api/types/ProcessorRun.d.ts +77 -0
- package/dist/api/types/ProcessorRun.js +5 -0
- package/dist/api/types/ProcessorRunConfig.d.ts +19 -0
- package/dist/api/types/ProcessorRunConfig.js +5 -0
- package/dist/api/types/ProcessorRunFileInput.d.ts +14 -0
- package/dist/api/types/ProcessorRunFileInput.js +5 -0
- package/dist/api/types/ProcessorRunMergedProcessorsItem.d.ts +19 -0
- package/dist/api/types/ProcessorRunMergedProcessorsItem.js +5 -0
- package/dist/api/types/ProcessorRunStatus.d.ts +15 -0
- package/dist/api/types/ProcessorRunStatus.js +11 -0
- package/dist/api/types/ProcessorRunType.d.ts +15 -0
- package/dist/api/types/ProcessorRunType.js +11 -0
- package/dist/api/types/ProcessorType.d.ts +15 -0
- package/dist/api/types/ProcessorType.js +11 -0
- package/dist/api/types/ProcessorVersion.d.ts +57 -0
- package/dist/api/types/ProcessorVersion.js +5 -0
- package/dist/api/types/ProcessorVersionConfig.d.ts +21 -0
- package/dist/api/types/ProcessorVersionConfig.js +5 -0
- package/dist/api/types/ProvidedClassifierOutput.d.ts +11 -0
- package/dist/api/types/ProvidedClassifierOutput.js +5 -0
- package/dist/api/types/ProvidedExtractionFieldResult.d.ts +15 -0
- package/dist/api/types/ProvidedExtractionFieldResult.js +5 -0
- package/dist/api/types/ProvidedExtractionFieldResultType.d.ts +18 -0
- package/dist/api/types/ProvidedExtractionFieldResultType.js +17 -0
- package/dist/api/types/ProvidedExtractionOutput.d.ts +5 -0
- package/dist/api/types/ProvidedExtractionOutput.js +5 -0
- package/dist/api/types/ProvidedFieldsArrayOutput.d.ts +8 -0
- package/dist/api/types/ProvidedFieldsArrayOutput.js +5 -0
- package/dist/api/types/ProvidedJsonOutput.d.ts +9 -0
- package/dist/api/types/ProvidedJsonOutput.js +5 -0
- package/dist/api/types/ProvidedProcessorOutput.d.ts +5 -0
- package/dist/api/types/ProvidedProcessorOutput.js +5 -0
- package/dist/api/types/ProvidedSplitterOutput.d.ts +7 -0
- package/dist/api/types/ProvidedSplitterOutput.js +5 -0
- package/dist/api/types/ProvidedSplitterOutputSplitsItem.d.ts +19 -0
- package/dist/api/types/ProvidedSplitterOutputSplitsItem.js +5 -0
- package/dist/api/types/SortByEnum.d.ts +8 -0
- package/dist/api/types/SortByEnum.js +10 -0
- package/dist/api/types/SortDirEnum.d.ts +8 -0
- package/dist/api/types/SortDirEnum.js +10 -0
- package/dist/api/types/SplitterAdvancedOptions.d.ts +14 -0
- package/dist/api/types/SplitterAdvancedOptions.js +5 -0
- package/dist/api/types/SplitterAdvancedOptionsSplitMethod.d.ts +11 -0
- package/dist/api/types/SplitterAdvancedOptionsSplitMethod.js +10 -0
- package/dist/api/types/SplitterConfig.d.ts +16 -0
- package/dist/api/types/SplitterConfig.js +5 -0
- package/dist/api/types/SplitterMetrics.d.ts +21 -0
- package/dist/api/types/SplitterMetrics.js +5 -0
- package/dist/api/types/SplitterOutput.d.ts +8 -0
- package/dist/api/types/SplitterOutput.js +5 -0
- package/dist/api/types/SplitterOutputSplitsItem.d.ts +23 -0
- package/dist/api/types/SplitterOutputSplitsItem.js +5 -0
- package/dist/api/types/StepRun.d.ts +29 -0
- package/dist/api/types/StepRun.js +5 -0
- package/dist/api/types/StepRunOutput.d.ts +12 -0
- package/dist/api/types/StepRunOutput.js +5 -0
- package/dist/api/types/StepRunOutputRulesItem.d.ts +21 -0
- package/dist/api/types/StepRunOutputRulesItem.js +5 -0
- package/dist/api/types/StepRunOutputRulesItemFailureReason.d.ts +15 -0
- package/dist/api/types/StepRunOutputRulesItemFailureReason.js +11 -0
- package/dist/api/types/StepRunStatus.d.ts +17 -0
- package/dist/api/types/StepRunStatus.js +12 -0
- package/dist/api/types/StepRunStep.d.ts +26 -0
- package/dist/api/types/StepRunStep.js +5 -0
- package/dist/api/types/StepRunStepType.d.ts +13 -0
- package/dist/api/types/StepRunStepType.js +10 -0
- package/dist/api/types/TableCellDetails.d.ts +12 -0
- package/dist/api/types/TableCellDetails.js +5 -0
- package/dist/api/types/TableDetails.d.ts +14 -0
- package/dist/api/types/TableDetails.js +5 -0
- package/dist/api/types/WebhookEvent.d.ts +12 -0
- package/dist/api/types/WebhookEvent.js +5 -0
- package/dist/api/types/WebhookEventEventType.d.ts +24 -0
- package/dist/api/types/WebhookEventEventType.js +23 -0
- package/dist/api/types/WebhookEventPayload.d.ts +8 -0
- package/dist/api/types/WebhookEventPayload.js +5 -0
- package/dist/api/types/WebhookEventProcessor.d.ts +13 -0
- package/dist/api/types/WebhookEventProcessor.js +5 -0
- package/dist/api/types/WebhookEventProcessorEventType.d.ts +10 -0
- package/dist/api/types/WebhookEventProcessorEventType.js +12 -0
- package/dist/api/types/WebhookEventProcessorRun.d.ts +13 -0
- package/dist/api/types/WebhookEventProcessorRun.js +5 -0
- package/dist/api/types/WebhookEventProcessorRunEventType.d.ts +8 -0
- package/dist/api/types/WebhookEventProcessorRunEventType.js +10 -0
- package/dist/api/types/WebhookEventProcessorVersion.d.ts +13 -0
- package/dist/api/types/WebhookEventProcessorVersion.js +5 -0
- package/dist/api/types/WebhookEventWorkflow.d.ts +13 -0
- package/dist/api/types/WebhookEventWorkflow.js +5 -0
- package/dist/api/types/WebhookEventWorkflowEventType.d.ts +9 -0
- package/dist/api/types/WebhookEventWorkflowEventType.js +11 -0
- package/dist/api/types/WebhookEventWorkflowRun.d.ts +13 -0
- package/dist/api/types/WebhookEventWorkflowRun.js +5 -0
- package/dist/api/types/WebhookEventWorkflowRunEventType.d.ts +11 -0
- package/dist/api/types/WebhookEventWorkflowRunEventType.js +13 -0
- package/dist/api/types/Workflow.d.ts +25 -0
- package/dist/api/types/Workflow.js +5 -0
- package/dist/api/types/WorkflowRun.d.ts +86 -0
- package/dist/api/types/WorkflowRun.js +5 -0
- package/dist/api/types/WorkflowRunFileInput.d.ts +21 -0
- package/dist/api/types/WorkflowRunFileInput.js +5 -0
- package/dist/api/types/WorkflowRunFileInputOutputsItem.d.ts +13 -0
- package/dist/api/types/WorkflowRunFileInputOutputsItem.js +5 -0
- package/dist/api/types/WorkflowRunSummary.d.ts +85 -0
- package/dist/api/types/WorkflowRunSummary.js +5 -0
- package/dist/api/types/WorkflowStatus.d.ts +21 -0
- package/dist/api/types/WorkflowStatus.js +14 -0
- package/dist/api/types/index.d.ts +145 -0
- package/dist/api/types/index.js +161 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +39 -0
- package/dist/core/fetcher/Fetcher.js +107 -0
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +12 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +68 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +11 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +54 -0
- package/dist/core/fetcher/index.d.ts +8 -0
- package/dist/core/fetcher/index.js +15 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +40 -0
- package/dist/core/fetcher/signals.d.ts +11 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +63 -0
- package/dist/core/form-data-utils/FormDataWrapper.js +227 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.js +18 -0
- package/dist/core/form-data-utils/index.d.ts +2 -0
- package/dist/core/form-data-utils/index.js +20 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +20 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +103 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/ExtendError.d.ts +15 -0
- package/dist/errors/ExtendError.js +30 -0
- package/dist/errors/ExtendTimeoutError.d.ts +6 -0
- package/dist/errors/ExtendTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +44 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/ExtendError.d.ts +15 -0
- package/errors/ExtendError.js +30 -0
- package/errors/ExtendTimeoutError.d.ts +6 -0
- package/errors/ExtendTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +44 -0
- package/jest.config.mjs +8 -0
- package/package.json +45 -0
- package/reference.md +1701 -0
- package/scripts/rename-to-esm-files.js +115 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UnauthorizedError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index"));
|
|
41
|
+
class UnauthorizedError extends errors.ExtendError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "UnauthorizedError",
|
|
45
|
+
statusCode: 401,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Extend from "../index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare class UnprocessableEntityError extends errors.ExtendError {
|
|
8
|
+
constructor(body: Extend.Error_, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UnprocessableEntityError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index"));
|
|
41
|
+
class UnprocessableEntityError extends errors.ExtendError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "UnprocessableEntityError",
|
|
45
|
+
statusCode: 422,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./BadRequestError"), exports);
|
|
18
|
+
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
20
|
+
__exportStar(require("./UnprocessableEntityError"), exports);
|
package/api/index.d.ts
ADDED
package/api/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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("./resources"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./errors"), exports);
|
|
20
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Extend from "../../../index";
|
|
7
|
+
export declare namespace BatchProcessorRun {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
|
+
/** Override the x-extend-api-version header */
|
|
14
|
+
extendApiVersion?: "2025-04-21";
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the x-extend-api-version header */
|
|
25
|
+
extendApiVersion?: "2025-04-21";
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class BatchProcessorRun {
|
|
31
|
+
protected readonly _options: BatchProcessorRun.Options;
|
|
32
|
+
constructor(_options: BatchProcessorRun.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve details about a batch processor run, including evaluation runs
|
|
35
|
+
*
|
|
36
|
+
* @param {string} id - The unique identifier of the batch processor run to retrieve. The ID will always start with "bpr_".
|
|
37
|
+
*
|
|
38
|
+
* Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
39
|
+
* @param {BatchProcessorRun.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link Extend.BadRequestError}
|
|
42
|
+
* @throws {@link Extend.UnauthorizedError}
|
|
43
|
+
* @throws {@link Extend.NotFoundError}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.batchProcessorRun.get("batch_processor_run_id_here")
|
|
47
|
+
*/
|
|
48
|
+
get(id: string, requestOptions?: BatchProcessorRun.RequestOptions): core.HttpResponsePromise<Extend.BatchProcessorRunGetResponse>;
|
|
49
|
+
private __get;
|
|
50
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.BatchProcessorRun = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const Extend = __importStar(require("../../../index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
57
|
+
class BatchProcessorRun {
|
|
58
|
+
constructor(_options) {
|
|
59
|
+
this._options = _options;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieve details about a batch processor run, including evaluation runs
|
|
63
|
+
*
|
|
64
|
+
* @param {string} id - The unique identifier of the batch processor run to retrieve. The ID will always start with "bpr_".
|
|
65
|
+
*
|
|
66
|
+
* Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
67
|
+
* @param {BatchProcessorRun.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Extend.BadRequestError}
|
|
70
|
+
* @throws {@link Extend.UnauthorizedError}
|
|
71
|
+
* @throws {@link Extend.NotFoundError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.batchProcessorRun.get("batch_processor_run_id_here")
|
|
75
|
+
*/
|
|
76
|
+
get(id, requestOptions) {
|
|
77
|
+
return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
|
|
78
|
+
}
|
|
79
|
+
__get(id, requestOptions) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
var _a, _b, _c, _d, _e, _f;
|
|
82
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
83
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, `batch_processor_runs/${encodeURIComponent(id)}`),
|
|
84
|
+
method: "GET",
|
|
85
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
|
+
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
88
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
|
|
89
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
90
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 400:
|
|
98
|
+
throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
|
|
99
|
+
case 401:
|
|
100
|
+
throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
101
|
+
case 404:
|
|
102
|
+
throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
|
|
103
|
+
default:
|
|
104
|
+
throw new errors.ExtendError({
|
|
105
|
+
statusCode: _response.error.statusCode,
|
|
106
|
+
body: _response.error.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
switch (_response.error.reason) {
|
|
112
|
+
case "non-json":
|
|
113
|
+
throw new errors.ExtendError({
|
|
114
|
+
statusCode: _response.error.statusCode,
|
|
115
|
+
body: _response.error.rawBody,
|
|
116
|
+
rawResponse: _response.rawResponse,
|
|
117
|
+
});
|
|
118
|
+
case "timeout":
|
|
119
|
+
throw new errors.ExtendTimeoutError("Timeout exceeded when calling GET /batch_processor_runs/{id}.");
|
|
120
|
+
case "unknown":
|
|
121
|
+
throw new errors.ExtendError({
|
|
122
|
+
message: _response.error.errorMessage,
|
|
123
|
+
rawResponse: _response.rawResponse,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
_getAuthorizationHeader() {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.BatchProcessorRun = BatchProcessorRun;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BatchProcessorRunGetResponse";
|
|
@@ -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("./BatchProcessorRunGetResponse"), exports);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Extend from "../../../index";
|
|
7
|
+
export declare namespace BatchWorkflowRun {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
|
+
/** Override the x-extend-api-version header */
|
|
14
|
+
extendApiVersion?: "2025-04-21";
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the x-extend-api-version header */
|
|
25
|
+
extendApiVersion?: "2025-04-21";
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class BatchWorkflowRun {
|
|
31
|
+
protected readonly _options: BatchWorkflowRun.Options;
|
|
32
|
+
constructor(_options: BatchWorkflowRun.Options);
|
|
33
|
+
/**
|
|
34
|
+
* This endpoint allows you to efficiently initiate large batches of workflow runs in a single request (up to 1,000 in a single request, but you can queue up multiple batches in rapid succession). It accepts an array of inputs, each containing a file and metadata pair. The primary use case for this endpoint is for doing large bulk runs of >1000 files at a time that can process over the course of a few hours without needing to manage rate limits that would likely occur using the primary run endpoint.
|
|
35
|
+
*
|
|
36
|
+
* Unlike the single [Run Workflow](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/run-workflow) endpoint which returns the details of the created workflow runs immediately, this batch endpoint returns a `batchId`.
|
|
37
|
+
*
|
|
38
|
+
* Our recommended usage pattern is to integrate with [Webhooks](https://docs.extend.ai/2025-04-21/developers/webhooks/configuration) for consuming results, using the `metadata` and `batchId` to match up results to the original inputs in your downstream systems. However, you can integrate in a polling mechanism by using a combination of the [List Workflow Runs](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/list-workflow-runs) endpoint to fetch all runs via a batch, and then [Get Workflow Run](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/get-workflow-run) to fetch the full outputs each run.
|
|
39
|
+
*
|
|
40
|
+
* **Processing and Monitoring:**
|
|
41
|
+
* Upon successful submission, the endpoint returns a `batchId`. The individual workflow runs are then queued for processing.
|
|
42
|
+
*
|
|
43
|
+
* - **Monitoring:** Track the progress and consume results of individual runs using [Webhooks](https://docs.extend.ai/2025-04-21/developers/webhooks/configuration). Subscribe to events like `workflow_run.completed`, `workflow_run.failed`, etc. The webhook payload for these events will include the corresponding `batchId` and the `metadata` you provided for each input.
|
|
44
|
+
* - **Fetching Results:** You can also use the [List Workflow Runs](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/list-workflow-runs) endpoint and filter using the `batchId` query param.
|
|
45
|
+
*
|
|
46
|
+
* @param {Extend.BatchWorkflowRunCreateRequest} request
|
|
47
|
+
* @param {BatchWorkflowRun.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link Extend.BadRequestError}
|
|
50
|
+
* @throws {@link Extend.UnauthorizedError}
|
|
51
|
+
* @throws {@link Extend.NotFoundError}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await client.batchWorkflowRun.create({
|
|
55
|
+
* workflowId: "workflow_id_here",
|
|
56
|
+
* inputs: [{}]
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
create(request: Extend.BatchWorkflowRunCreateRequest, requestOptions?: BatchWorkflowRun.RequestOptions): core.HttpResponsePromise<Extend.BatchWorkflowRunCreateResponse>;
|
|
60
|
+
private __create;
|
|
61
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.BatchWorkflowRun = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const Extend = __importStar(require("../../../index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
57
|
+
class BatchWorkflowRun {
|
|
58
|
+
constructor(_options) {
|
|
59
|
+
this._options = _options;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* This endpoint allows you to efficiently initiate large batches of workflow runs in a single request (up to 1,000 in a single request, but you can queue up multiple batches in rapid succession). It accepts an array of inputs, each containing a file and metadata pair. The primary use case for this endpoint is for doing large bulk runs of >1000 files at a time that can process over the course of a few hours without needing to manage rate limits that would likely occur using the primary run endpoint.
|
|
63
|
+
*
|
|
64
|
+
* Unlike the single [Run Workflow](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/run-workflow) endpoint which returns the details of the created workflow runs immediately, this batch endpoint returns a `batchId`.
|
|
65
|
+
*
|
|
66
|
+
* Our recommended usage pattern is to integrate with [Webhooks](https://docs.extend.ai/2025-04-21/developers/webhooks/configuration) for consuming results, using the `metadata` and `batchId` to match up results to the original inputs in your downstream systems. However, you can integrate in a polling mechanism by using a combination of the [List Workflow Runs](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/list-workflow-runs) endpoint to fetch all runs via a batch, and then [Get Workflow Run](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/get-workflow-run) to fetch the full outputs each run.
|
|
67
|
+
*
|
|
68
|
+
* **Processing and Monitoring:**
|
|
69
|
+
* Upon successful submission, the endpoint returns a `batchId`. The individual workflow runs are then queued for processing.
|
|
70
|
+
*
|
|
71
|
+
* - **Monitoring:** Track the progress and consume results of individual runs using [Webhooks](https://docs.extend.ai/2025-04-21/developers/webhooks/configuration). Subscribe to events like `workflow_run.completed`, `workflow_run.failed`, etc. The webhook payload for these events will include the corresponding `batchId` and the `metadata` you provided for each input.
|
|
72
|
+
* - **Fetching Results:** You can also use the [List Workflow Runs](https://docs.extend.ai/2025-04-21/developers/api-reference/workflow-endpoints/list-workflow-runs) endpoint and filter using the `batchId` query param.
|
|
73
|
+
*
|
|
74
|
+
* @param {Extend.BatchWorkflowRunCreateRequest} request
|
|
75
|
+
* @param {BatchWorkflowRun.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link Extend.BadRequestError}
|
|
78
|
+
* @throws {@link Extend.UnauthorizedError}
|
|
79
|
+
* @throws {@link Extend.NotFoundError}
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await client.batchWorkflowRun.create({
|
|
83
|
+
* workflowId: "workflow_id_here",
|
|
84
|
+
* inputs: [{}]
|
|
85
|
+
* })
|
|
86
|
+
*/
|
|
87
|
+
create(request, requestOptions) {
|
|
88
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
89
|
+
}
|
|
90
|
+
__create(request, requestOptions) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
var _a, _b, _c, _d, _e, _f;
|
|
93
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
94
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "workflow_runs/batch"),
|
|
95
|
+
method: "POST",
|
|
96
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
97
|
+
contentType: "application/json",
|
|
98
|
+
requestType: "json",
|
|
99
|
+
body: request,
|
|
100
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
|
|
101
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
102
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
103
|
+
});
|
|
104
|
+
if (_response.ok) {
|
|
105
|
+
return {
|
|
106
|
+
data: _response.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (_response.error.reason === "status-code") {
|
|
111
|
+
switch (_response.error.statusCode) {
|
|
112
|
+
case 400:
|
|
113
|
+
throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 401:
|
|
115
|
+
throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 404:
|
|
117
|
+
throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
|
|
118
|
+
default:
|
|
119
|
+
throw new errors.ExtendError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.body,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
switch (_response.error.reason) {
|
|
127
|
+
case "non-json":
|
|
128
|
+
throw new errors.ExtendError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
body: _response.error.rawBody,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
case "timeout":
|
|
134
|
+
throw new errors.ExtendTimeoutError("Timeout exceeded when calling POST /workflow_runs/batch.");
|
|
135
|
+
case "unknown":
|
|
136
|
+
throw new errors.ExtendError({
|
|
137
|
+
message: _response.error.errorMessage,
|
|
138
|
+
rawResponse: _response.rawResponse,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
_getAuthorizationHeader() {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.BatchWorkflowRun = BatchWorkflowRun;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|