@docling/docling-client 2.141.0 → 2.145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -113,6 +113,10 @@ interface ConvertDocumentsOptions {
113
113
  from_formats?: InputFormat[];
114
114
  to_formats?: OutputFormat[];
115
115
  pipeline?: ProcessingPipeline;
116
+ /**
117
+ * Only convert a range of pages (1-based, inclusive). The service default
118
+ * is the whole document, which the client never sends explicitly.
119
+ */
116
120
  page_range?: [number, number];
117
121
  do_ocr?: boolean;
118
122
  force_ocr?: boolean;
@@ -543,6 +547,12 @@ type DocumentResultItem<TDocument = DoclingDocument> = ExportResult<TDocument>;
543
547
  interface ZipArchiveResult {
544
548
  kind: 'ZipArchiveResult';
545
549
  content: Uint8Array | unknown;
550
+ /**
551
+ * Suggested download name for the archive, e.g. derived from the source
552
+ * document when the task had a single input. Absent or null when no specific
553
+ * name applies.
554
+ */
555
+ filename?: string | null;
546
556
  }
547
557
  interface RemoteTargetResult {
548
558
  kind: 'RemoteTargetResult';
@@ -1097,4 +1107,5 @@ declare function preflightFileSize(source: NormalizedSource, maxFileSize: number
1097
1107
  declare function appendFormValue(form: FormData, key: string, value: unknown): void;
1098
1108
  declare function fileSourceFromBinary(source: BinaryFileSource, signal?: AbortSignal): Promise<FileSource>;
1099
1109
 
1100
- export { type AnyHttpSourceRequest, type ArtifactAddressResolver, ArtifactDownloader, type ArtifactDownloaderOptions, type ArtifactRef, type ArtifactType, type AutoSubmitResult, type AzureBlobCoordinates, type AzureBlobSource, type AzureBlobSourceRequest, type AzureBlobTarget, type BaseChunkDocumentsRequest, type BaseChunkerOptions, type BaseChunkingOptions, type BaseProgress, type BatchConvertSourcesRequest, type BatchResultForTarget, type BatchSource, type BatchSourceRequestInput, type BatchSourceRequestItem, type BatchSubmitCallOptions, type BatchTarget, type BatchTargetRequest, type BatchTargetRequestInput, type BinaryFileSource, type CallbackSpec, type ChunkCallOptions, type ChunkDocumentResponse, type ChunkSourceOptions, type ChunkSourcesRequest, type ChunkedDocumentResult, type ChunkedDocumentResultItem, ChunkerKind, ChunkerType, type ChunkingExportOptions, type ChunkingOptionType, type ClearResponse, type ConfidenceScores, type ConversionInput, type ConversionItem, type ConversionResult, type ConversionSource, type ConversionSourceInput, type ConversionStatus, type ConvertAllOptions, type ConvertDocumentErrorResponse, type ConvertDocumentResponse, type ConvertDocumentResult, type ConvertDocumentsOptions, type ConvertDocumentsRequest, type ConvertOptions, type ConvertSourcesRequest, type ConvertedOutcomeCountsMixin, DEFAULT_MAX_CONCURRENCY, DoclingArtifactDownloadError, DoclingBatchConversionError, type DoclingBinaryResponse, DoclingClient, type DoclingClientOptions, type DoclingComponentType, DoclingConversionError, type DoclingDocument, DoclingError, DoclingHttpError, DoclingJob, DoclingProtocolError, type DoclingRequestBodyType, DoclingResponseSchemaMismatchError, type DoclingResponseType, DoclingResultExpiredError, DoclingResultNotReadyError, DoclingServiceError, DoclingServiceUnavailableError, DoclingTaskError, DoclingTaskNotFoundError, type DoclingTaskResult, DoclingTimeoutError, type DoclingTransport, type DoclingTransportRequest, DoclingUsageLimitExceededError, type DocumentArtifactItem, type DocumentCompletedItem, type DocumentLimits, type DocumentResultItem, type ErrorItem, type ExportDocumentResponse, type ExportResult, type FailureCategory, type FailurePhase, type FetchLike, FetchTransport, type FetchTransportOptions, type FileSource, type FileSourceRequest, type GenericChunkDocumentsRequest, type GenericSource, type GenericSourceRequest, type GenericTarget, type GenericTargetRequest, type GoogleCloudStorageCoordinates, type GoogleCloudStorageServiceAccountInfo, type GoogleCloudStorageSource, type GoogleCloudStorageSourceRequest, type GoogleCloudStorageTarget, type GoogleDriveCoordinates, type GoogleDriveCredentials, type GoogleDriveSource, type GoogleDriveSourceRequest, type GoogleDriveTarget, type HeadingHierarchyOptions, type HealthCheckResponse, type HierarchicalChunkSourcesRequest, type HierarchicalChunkerOptions, type HierarchicalChunkingOptions, type HttpSource, type HttpSourceRequest, type HybridChunkSourcesRequest, type HybridChunkerOptions, type HybridChunkingOptions, type ImageExportMode, type ImageRefMode, type InBodyConversionResponse, type InBodyTarget, type InferenceFramework, type InputFormat, type KnownBatchSourceRequestItem, type KnownBatchTargetRequest, type LegacyVlmModelType, MAX_CONCURRENCY_LIMIT, type MessageKind, type NormalizedJsonSource, type NormalizedMultipartSource, type NormalizedSource, type OutcomeCounts, type OutputFormat, type PdfBackend, type PictureClassificationLabel, type PictureDescriptionApi, type PictureDescriptionLocal, type PresignedArtifactResult, type PresignedUrlConvertDocumentResponse, type PresignedUrlConvertResponse, type PresignedUrlTarget, type ProcessedDocsItem, type ProcessingPipeline, type ProfilingItem, type ProfilingScope, type ProgressCallbackRequest, type ProgressCallbackResponse, type ProgressDocumentCompleted, type ProgressKind, type ProgressSetNumDocs, type ProgressTaskCompleted, type ProgressUpdateProcessed, type PublicFailureInfo, type PutTarget, type QualityGrade, type RawServiceResult, type ReadinessResponse, type RemoteTargetResponse, type RemoteTargetResult, type ResponseFormat, type ResultType, type S3Coordinates, type S3Source, type S3SourceRequest, type S3Target, type SourceRequestItem, StatusWatcherKind, type StorageTarget, type SubmitAndRetrieveOptions, type SubmitCallOptions, type SubmitResultForTarget, type SubmitSourceOptions, type SubmitTarget, type TableFormerMode, type TableMode, type Target, TargetName, type TargetRequest, type TaskFailureResult, type TaskProcessingMeta, type TaskStatus, type TaskStatusResponse, type TaskType, type TransformersModelType, type UsageLimitExceededDetails, type UsageLimitExceededResponse, type VlmInferenceFramework, type VlmModelApi, type VlmModelLocal, type VlmModelType, type VlmResponseFormat, type WaitForTaskOptions, type WatchTaskOptions, type WebSocketFactory, type WebSocketFactoryOptions, type WebSocketLike, type WebsocketMessage, type ZipArchiveResult, type ZipTarget, appendFormValue, applyPageLimits, documentFromBundle, documentFromJson, fileSourceFromBinary, materializePresignedResult, normalizeSourceInput, preflightFileSize, resolveConvertOptions, selectDocumentArtifact, validateConvertOptions, validateMaxFileSize, watchTask, withJsonOutput };
1110
+ export { ArtifactDownloader, ChunkerKind, ChunkerType, DEFAULT_MAX_CONCURRENCY, DoclingArtifactDownloadError, DoclingBatchConversionError, DoclingClient, DoclingConversionError, DoclingError, DoclingHttpError, DoclingJob, DoclingProtocolError, DoclingResponseSchemaMismatchError, DoclingResultExpiredError, DoclingResultNotReadyError, DoclingServiceError, DoclingServiceUnavailableError, DoclingTaskError, DoclingTaskNotFoundError, DoclingTimeoutError, DoclingUsageLimitExceededError, FetchTransport, MAX_CONCURRENCY_LIMIT, StatusWatcherKind, TargetName, appendFormValue, applyPageLimits, documentFromBundle, documentFromJson, fileSourceFromBinary, materializePresignedResult, normalizeSourceInput, preflightFileSize, resolveConvertOptions, selectDocumentArtifact, validateConvertOptions, validateMaxFileSize, watchTask, withJsonOutput };
1111
+ export type { AnyHttpSourceRequest, ArtifactAddressResolver, ArtifactDownloaderOptions, ArtifactRef, ArtifactType, AutoSubmitResult, AzureBlobCoordinates, AzureBlobSource, AzureBlobSourceRequest, AzureBlobTarget, BaseChunkDocumentsRequest, BaseChunkerOptions, BaseChunkingOptions, BaseProgress, BatchConvertSourcesRequest, BatchResultForTarget, BatchSource, BatchSourceRequestInput, BatchSourceRequestItem, BatchSubmitCallOptions, BatchTarget, BatchTargetRequest, BatchTargetRequestInput, BinaryFileSource, CallbackSpec, ChunkCallOptions, ChunkDocumentResponse, ChunkSourceOptions, ChunkSourcesRequest, ChunkedDocumentResult, ChunkedDocumentResultItem, ChunkingExportOptions, ChunkingOptionType, ClearResponse, ConfidenceScores, ConversionInput, ConversionItem, ConversionResult, ConversionSource, ConversionSourceInput, ConversionStatus, ConvertAllOptions, ConvertDocumentErrorResponse, ConvertDocumentResponse, ConvertDocumentResult, ConvertDocumentsOptions, ConvertDocumentsRequest, ConvertOptions, ConvertSourcesRequest, ConvertedOutcomeCountsMixin, DoclingBinaryResponse, DoclingClientOptions, DoclingComponentType, DoclingDocument, DoclingRequestBodyType, DoclingResponseType, DoclingTaskResult, DoclingTransport, DoclingTransportRequest, DocumentArtifactItem, DocumentCompletedItem, DocumentLimits, DocumentResultItem, ErrorItem, ExportDocumentResponse, ExportResult, FailureCategory, FailurePhase, FetchLike, FetchTransportOptions, FileSource, FileSourceRequest, GenericChunkDocumentsRequest, GenericSource, GenericSourceRequest, GenericTarget, GenericTargetRequest, GoogleCloudStorageCoordinates, GoogleCloudStorageServiceAccountInfo, GoogleCloudStorageSource, GoogleCloudStorageSourceRequest, GoogleCloudStorageTarget, GoogleDriveCoordinates, GoogleDriveCredentials, GoogleDriveSource, GoogleDriveSourceRequest, GoogleDriveTarget, HeadingHierarchyOptions, HealthCheckResponse, HierarchicalChunkSourcesRequest, HierarchicalChunkerOptions, HierarchicalChunkingOptions, HttpSource, HttpSourceRequest, HybridChunkSourcesRequest, HybridChunkerOptions, HybridChunkingOptions, ImageExportMode, ImageRefMode, InBodyConversionResponse, InBodyTarget, InferenceFramework, InputFormat, KnownBatchSourceRequestItem, KnownBatchTargetRequest, LegacyVlmModelType, MessageKind, NormalizedJsonSource, NormalizedMultipartSource, NormalizedSource, OutcomeCounts, OutputFormat, PdfBackend, PictureClassificationLabel, PictureDescriptionApi, PictureDescriptionLocal, PresignedArtifactResult, PresignedUrlConvertDocumentResponse, PresignedUrlConvertResponse, PresignedUrlTarget, ProcessedDocsItem, ProcessingPipeline, ProfilingItem, ProfilingScope, ProgressCallbackRequest, ProgressCallbackResponse, ProgressDocumentCompleted, ProgressKind, ProgressSetNumDocs, ProgressTaskCompleted, ProgressUpdateProcessed, PublicFailureInfo, PutTarget, QualityGrade, RawServiceResult, ReadinessResponse, RemoteTargetResponse, RemoteTargetResult, ResponseFormat, ResultType, S3Coordinates, S3Source, S3SourceRequest, S3Target, SourceRequestItem, StorageTarget, SubmitAndRetrieveOptions, SubmitCallOptions, SubmitResultForTarget, SubmitSourceOptions, SubmitTarget, TableFormerMode, TableMode, Target, TargetRequest, TaskFailureResult, TaskProcessingMeta, TaskStatus, TaskStatusResponse, TaskType, TransformersModelType, UsageLimitExceededDetails, UsageLimitExceededResponse, VlmInferenceFramework, VlmModelApi, VlmModelLocal, VlmModelType, VlmResponseFormat, WaitForTaskOptions, WatchTaskOptions, WebSocketFactory, WebSocketFactoryOptions, WebSocketLike, WebsocketMessage, ZipArchiveResult, ZipTarget };
package/dist/index.d.ts CHANGED
@@ -113,6 +113,10 @@ interface ConvertDocumentsOptions {
113
113
  from_formats?: InputFormat[];
114
114
  to_formats?: OutputFormat[];
115
115
  pipeline?: ProcessingPipeline;
116
+ /**
117
+ * Only convert a range of pages (1-based, inclusive). The service default
118
+ * is the whole document, which the client never sends explicitly.
119
+ */
116
120
  page_range?: [number, number];
117
121
  do_ocr?: boolean;
118
122
  force_ocr?: boolean;
@@ -543,6 +547,12 @@ type DocumentResultItem<TDocument = DoclingDocument> = ExportResult<TDocument>;
543
547
  interface ZipArchiveResult {
544
548
  kind: 'ZipArchiveResult';
545
549
  content: Uint8Array | unknown;
550
+ /**
551
+ * Suggested download name for the archive, e.g. derived from the source
552
+ * document when the task had a single input. Absent or null when no specific
553
+ * name applies.
554
+ */
555
+ filename?: string | null;
546
556
  }
547
557
  interface RemoteTargetResult {
548
558
  kind: 'RemoteTargetResult';
@@ -1097,4 +1107,5 @@ declare function preflightFileSize(source: NormalizedSource, maxFileSize: number
1097
1107
  declare function appendFormValue(form: FormData, key: string, value: unknown): void;
1098
1108
  declare function fileSourceFromBinary(source: BinaryFileSource, signal?: AbortSignal): Promise<FileSource>;
1099
1109
 
1100
- export { type AnyHttpSourceRequest, type ArtifactAddressResolver, ArtifactDownloader, type ArtifactDownloaderOptions, type ArtifactRef, type ArtifactType, type AutoSubmitResult, type AzureBlobCoordinates, type AzureBlobSource, type AzureBlobSourceRequest, type AzureBlobTarget, type BaseChunkDocumentsRequest, type BaseChunkerOptions, type BaseChunkingOptions, type BaseProgress, type BatchConvertSourcesRequest, type BatchResultForTarget, type BatchSource, type BatchSourceRequestInput, type BatchSourceRequestItem, type BatchSubmitCallOptions, type BatchTarget, type BatchTargetRequest, type BatchTargetRequestInput, type BinaryFileSource, type CallbackSpec, type ChunkCallOptions, type ChunkDocumentResponse, type ChunkSourceOptions, type ChunkSourcesRequest, type ChunkedDocumentResult, type ChunkedDocumentResultItem, ChunkerKind, ChunkerType, type ChunkingExportOptions, type ChunkingOptionType, type ClearResponse, type ConfidenceScores, type ConversionInput, type ConversionItem, type ConversionResult, type ConversionSource, type ConversionSourceInput, type ConversionStatus, type ConvertAllOptions, type ConvertDocumentErrorResponse, type ConvertDocumentResponse, type ConvertDocumentResult, type ConvertDocumentsOptions, type ConvertDocumentsRequest, type ConvertOptions, type ConvertSourcesRequest, type ConvertedOutcomeCountsMixin, DEFAULT_MAX_CONCURRENCY, DoclingArtifactDownloadError, DoclingBatchConversionError, type DoclingBinaryResponse, DoclingClient, type DoclingClientOptions, type DoclingComponentType, DoclingConversionError, type DoclingDocument, DoclingError, DoclingHttpError, DoclingJob, DoclingProtocolError, type DoclingRequestBodyType, DoclingResponseSchemaMismatchError, type DoclingResponseType, DoclingResultExpiredError, DoclingResultNotReadyError, DoclingServiceError, DoclingServiceUnavailableError, DoclingTaskError, DoclingTaskNotFoundError, type DoclingTaskResult, DoclingTimeoutError, type DoclingTransport, type DoclingTransportRequest, DoclingUsageLimitExceededError, type DocumentArtifactItem, type DocumentCompletedItem, type DocumentLimits, type DocumentResultItem, type ErrorItem, type ExportDocumentResponse, type ExportResult, type FailureCategory, type FailurePhase, type FetchLike, FetchTransport, type FetchTransportOptions, type FileSource, type FileSourceRequest, type GenericChunkDocumentsRequest, type GenericSource, type GenericSourceRequest, type GenericTarget, type GenericTargetRequest, type GoogleCloudStorageCoordinates, type GoogleCloudStorageServiceAccountInfo, type GoogleCloudStorageSource, type GoogleCloudStorageSourceRequest, type GoogleCloudStorageTarget, type GoogleDriveCoordinates, type GoogleDriveCredentials, type GoogleDriveSource, type GoogleDriveSourceRequest, type GoogleDriveTarget, type HeadingHierarchyOptions, type HealthCheckResponse, type HierarchicalChunkSourcesRequest, type HierarchicalChunkerOptions, type HierarchicalChunkingOptions, type HttpSource, type HttpSourceRequest, type HybridChunkSourcesRequest, type HybridChunkerOptions, type HybridChunkingOptions, type ImageExportMode, type ImageRefMode, type InBodyConversionResponse, type InBodyTarget, type InferenceFramework, type InputFormat, type KnownBatchSourceRequestItem, type KnownBatchTargetRequest, type LegacyVlmModelType, MAX_CONCURRENCY_LIMIT, type MessageKind, type NormalizedJsonSource, type NormalizedMultipartSource, type NormalizedSource, type OutcomeCounts, type OutputFormat, type PdfBackend, type PictureClassificationLabel, type PictureDescriptionApi, type PictureDescriptionLocal, type PresignedArtifactResult, type PresignedUrlConvertDocumentResponse, type PresignedUrlConvertResponse, type PresignedUrlTarget, type ProcessedDocsItem, type ProcessingPipeline, type ProfilingItem, type ProfilingScope, type ProgressCallbackRequest, type ProgressCallbackResponse, type ProgressDocumentCompleted, type ProgressKind, type ProgressSetNumDocs, type ProgressTaskCompleted, type ProgressUpdateProcessed, type PublicFailureInfo, type PutTarget, type QualityGrade, type RawServiceResult, type ReadinessResponse, type RemoteTargetResponse, type RemoteTargetResult, type ResponseFormat, type ResultType, type S3Coordinates, type S3Source, type S3SourceRequest, type S3Target, type SourceRequestItem, StatusWatcherKind, type StorageTarget, type SubmitAndRetrieveOptions, type SubmitCallOptions, type SubmitResultForTarget, type SubmitSourceOptions, type SubmitTarget, type TableFormerMode, type TableMode, type Target, TargetName, type TargetRequest, type TaskFailureResult, type TaskProcessingMeta, type TaskStatus, type TaskStatusResponse, type TaskType, type TransformersModelType, type UsageLimitExceededDetails, type UsageLimitExceededResponse, type VlmInferenceFramework, type VlmModelApi, type VlmModelLocal, type VlmModelType, type VlmResponseFormat, type WaitForTaskOptions, type WatchTaskOptions, type WebSocketFactory, type WebSocketFactoryOptions, type WebSocketLike, type WebsocketMessage, type ZipArchiveResult, type ZipTarget, appendFormValue, applyPageLimits, documentFromBundle, documentFromJson, fileSourceFromBinary, materializePresignedResult, normalizeSourceInput, preflightFileSize, resolveConvertOptions, selectDocumentArtifact, validateConvertOptions, validateMaxFileSize, watchTask, withJsonOutput };
1110
+ export { ArtifactDownloader, ChunkerKind, ChunkerType, DEFAULT_MAX_CONCURRENCY, DoclingArtifactDownloadError, DoclingBatchConversionError, DoclingClient, DoclingConversionError, DoclingError, DoclingHttpError, DoclingJob, DoclingProtocolError, DoclingResponseSchemaMismatchError, DoclingResultExpiredError, DoclingResultNotReadyError, DoclingServiceError, DoclingServiceUnavailableError, DoclingTaskError, DoclingTaskNotFoundError, DoclingTimeoutError, DoclingUsageLimitExceededError, FetchTransport, MAX_CONCURRENCY_LIMIT, StatusWatcherKind, TargetName, appendFormValue, applyPageLimits, documentFromBundle, documentFromJson, fileSourceFromBinary, materializePresignedResult, normalizeSourceInput, preflightFileSize, resolveConvertOptions, selectDocumentArtifact, validateConvertOptions, validateMaxFileSize, watchTask, withJsonOutput };
1111
+ export type { AnyHttpSourceRequest, ArtifactAddressResolver, ArtifactDownloaderOptions, ArtifactRef, ArtifactType, AutoSubmitResult, AzureBlobCoordinates, AzureBlobSource, AzureBlobSourceRequest, AzureBlobTarget, BaseChunkDocumentsRequest, BaseChunkerOptions, BaseChunkingOptions, BaseProgress, BatchConvertSourcesRequest, BatchResultForTarget, BatchSource, BatchSourceRequestInput, BatchSourceRequestItem, BatchSubmitCallOptions, BatchTarget, BatchTargetRequest, BatchTargetRequestInput, BinaryFileSource, CallbackSpec, ChunkCallOptions, ChunkDocumentResponse, ChunkSourceOptions, ChunkSourcesRequest, ChunkedDocumentResult, ChunkedDocumentResultItem, ChunkingExportOptions, ChunkingOptionType, ClearResponse, ConfidenceScores, ConversionInput, ConversionItem, ConversionResult, ConversionSource, ConversionSourceInput, ConversionStatus, ConvertAllOptions, ConvertDocumentErrorResponse, ConvertDocumentResponse, ConvertDocumentResult, ConvertDocumentsOptions, ConvertDocumentsRequest, ConvertOptions, ConvertSourcesRequest, ConvertedOutcomeCountsMixin, DoclingBinaryResponse, DoclingClientOptions, DoclingComponentType, DoclingDocument, DoclingRequestBodyType, DoclingResponseType, DoclingTaskResult, DoclingTransport, DoclingTransportRequest, DocumentArtifactItem, DocumentCompletedItem, DocumentLimits, DocumentResultItem, ErrorItem, ExportDocumentResponse, ExportResult, FailureCategory, FailurePhase, FetchLike, FetchTransportOptions, FileSource, FileSourceRequest, GenericChunkDocumentsRequest, GenericSource, GenericSourceRequest, GenericTarget, GenericTargetRequest, GoogleCloudStorageCoordinates, GoogleCloudStorageServiceAccountInfo, GoogleCloudStorageSource, GoogleCloudStorageSourceRequest, GoogleCloudStorageTarget, GoogleDriveCoordinates, GoogleDriveCredentials, GoogleDriveSource, GoogleDriveSourceRequest, GoogleDriveTarget, HeadingHierarchyOptions, HealthCheckResponse, HierarchicalChunkSourcesRequest, HierarchicalChunkerOptions, HierarchicalChunkingOptions, HttpSource, HttpSourceRequest, HybridChunkSourcesRequest, HybridChunkerOptions, HybridChunkingOptions, ImageExportMode, ImageRefMode, InBodyConversionResponse, InBodyTarget, InferenceFramework, InputFormat, KnownBatchSourceRequestItem, KnownBatchTargetRequest, LegacyVlmModelType, MessageKind, NormalizedJsonSource, NormalizedMultipartSource, NormalizedSource, OutcomeCounts, OutputFormat, PdfBackend, PictureClassificationLabel, PictureDescriptionApi, PictureDescriptionLocal, PresignedArtifactResult, PresignedUrlConvertDocumentResponse, PresignedUrlConvertResponse, PresignedUrlTarget, ProcessedDocsItem, ProcessingPipeline, ProfilingItem, ProfilingScope, ProgressCallbackRequest, ProgressCallbackResponse, ProgressDocumentCompleted, ProgressKind, ProgressSetNumDocs, ProgressTaskCompleted, ProgressUpdateProcessed, PublicFailureInfo, PutTarget, QualityGrade, RawServiceResult, ReadinessResponse, RemoteTargetResponse, RemoteTargetResult, ResponseFormat, ResultType, S3Coordinates, S3Source, S3SourceRequest, S3Target, SourceRequestItem, StorageTarget, SubmitAndRetrieveOptions, SubmitCallOptions, SubmitResultForTarget, SubmitSourceOptions, SubmitTarget, TableFormerMode, TableMode, Target, TargetRequest, TaskFailureResult, TaskProcessingMeta, TaskStatus, TaskStatusResponse, TaskType, TransformersModelType, UsageLimitExceededDetails, UsageLimitExceededResponse, VlmInferenceFramework, VlmModelApi, VlmModelLocal, VlmModelType, VlmResponseFormat, WaitForTaskOptions, WatchTaskOptions, WebSocketFactory, WebSocketFactoryOptions, WebSocketLike, WebsocketMessage, ZipArchiveResult, ZipTarget };
package/dist/index.js CHANGED
@@ -1118,6 +1118,9 @@ function applyPageLimits(options, pageRange, maxNumPages) {
1118
1118
  }
1119
1119
  if (effectiveRange !== void 0) {
1120
1120
  validatePageRange(effectiveRange);
1121
+ if (options.page_range === void 0 && effectiveRange[0] === 1 && effectiveRange[1] === Number.MAX_SAFE_INTEGER) {
1122
+ return clone(options);
1123
+ }
1121
1124
  return { ...clone(options), page_range: [...effectiveRange] };
1122
1125
  }
1123
1126
  return clone(options);