@transloadit/node 4.10.5 → 4.10.6
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/ApiError.d.ts.map +1 -1
- package/dist/ApiError.js.map +1 -1
- package/dist/PaginationStream.d.ts +1 -1
- package/dist/PaginationStream.d.ts.map +1 -1
- package/dist/PaginationStream.js.map +1 -1
- package/dist/Transloadit.d.ts +8 -8
- package/dist/Transloadit.d.ts.map +1 -1
- package/dist/Transloadit.js.map +1 -1
- package/dist/alphalib/errors.d.ts +1 -0
- package/dist/alphalib/errors.d.ts.map +1 -1
- package/dist/alphalib/errors.js +15 -0
- package/dist/alphalib/errors.js.map +1 -1
- package/dist/alphalib/types/assemblyStatus.d.ts +22 -10
- package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
- package/dist/alphalib/types/assemblyStatus.js +8 -8
- package/dist/alphalib/types/assemblyStatus.js.map +1 -1
- package/dist/alphalib/types/assemblyUrls.d.ts.map +1 -1
- package/dist/alphalib/types/assemblyUrls.js.map +1 -1
- package/dist/alphalib/types/file.d.ts +4 -0
- package/dist/alphalib/types/file.d.ts.map +1 -0
- package/dist/alphalib/types/file.js +3 -0
- package/dist/alphalib/types/file.js.map +1 -0
- package/dist/alphalib/types/robots/_index.d.ts +93 -93
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts +8 -8
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.js +5 -2
- package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.js +2 -0
- package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.d.ts +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.d.ts +5 -5
- package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.d.ts +5 -5
- package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.d.ts +5 -5
- package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.d.ts +5 -5
- package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.d.ts +5 -5
- package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
- package/dist/alphalib/types/robots/audio-split.d.ts +5 -5
- package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-split.js.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.d.ts +5 -5
- package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
- package/dist/alphalib/types/robots/azure-import.d.ts +1 -1
- package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-import.js.map +1 -1
- package/dist/alphalib/types/robots/azure-store.d.ts +15 -9
- package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-store.js +5 -2
- package/dist/alphalib/types/robots/azure-store.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.d.ts +1 -1
- package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.d.ts +1 -1
- package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
- package/dist/alphalib/types/robots/box-import.d.ts +1 -1
- package/dist/alphalib/types/robots/box-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-import.js.map +1 -1
- package/dist/alphalib/types/robots/box-store.d.ts +1 -1
- package/dist/alphalib/types/robots/box-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.d.ts +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.d.ts +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.d.ts +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.d.ts +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.d.ts +1 -1
- package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
- package/dist/alphalib/types/robots/document-convert.d.ts +1 -1
- package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-convert.js.map +1 -1
- package/dist/alphalib/types/robots/document-extract.d.ts +573 -0
- package/dist/alphalib/types/robots/document-extract.d.ts.map +1 -0
- package/dist/alphalib/types/robots/document-extract.js +152 -0
- package/dist/alphalib/types/robots/document-extract.js.map +1 -0
- package/dist/alphalib/types/robots/document-merge.d.ts +1 -1
- package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-merge.js.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.d.ts +1 -1
- package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.d.ts +1 -1
- package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/document-split.d.ts +1 -1
- package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-split.js.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.d.ts +1 -1
- package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.d.ts +21 -3
- package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.js +12 -1
- package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.d.ts +1 -1
- package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.d.ts +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/file-compress.d.ts +1 -1
- package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-compress.js.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.d.ts +1 -1
- package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
- package/dist/alphalib/types/robots/file-filter.d.ts +1 -1
- package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-filter.js.map +1 -1
- package/dist/alphalib/types/robots/file-hash.d.ts +1 -1
- package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-hash.js.map +1 -1
- package/dist/alphalib/types/robots/file-preview.d.ts +1 -1
- package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-preview.js.map +1 -1
- package/dist/alphalib/types/robots/file-read.d.ts +1 -1
- package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-read.js.map +1 -1
- package/dist/alphalib/types/robots/file-serve.d.ts +1 -1
- package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-serve.js.map +1 -1
- package/dist/alphalib/types/robots/file-verify.d.ts +1 -1
- package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-verify.js.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.d.ts +1 -1
- package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.d.ts +1 -1
- package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.d.ts +1 -1
- package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.d.ts +1 -1
- package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/google-import.d.ts +1 -1
- package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-import.js.map +1 -1
- package/dist/alphalib/types/robots/google-store.d.ts +1 -1
- package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-store.js.map +1 -1
- package/dist/alphalib/types/robots/html-convert.d.ts +1 -1
- package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/html-convert.js.map +1 -1
- package/dist/alphalib/types/robots/http-import.d.ts +1 -1
- package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/http-import.js.map +1 -1
- package/dist/alphalib/types/robots/image-bgremove.d.ts +1 -1
- package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-describe.d.ts +1 -1
- package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-describe.js.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.d.ts +1 -1
- package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.js.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.d.ts +1 -1
- package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-generate.d.ts +1 -1
- package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-generate.js.map +1 -1
- package/dist/alphalib/types/robots/image-merge.d.ts +1 -1
- package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-merge.js.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.d.ts +1 -1
- package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.d.ts +1 -1
- package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/image-resize.d.ts +1 -1
- package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-resize.js +1 -5
- package/dist/alphalib/types/robots/image-resize.js.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.d.ts +1 -1
- package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
- package/dist/alphalib/types/robots/mega-import.d.ts +1 -1
- package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-import.js.map +1 -1
- package/dist/alphalib/types/robots/mega-store.d.ts +1 -1
- package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-store.js.map +1 -1
- package/dist/alphalib/types/robots/meta-read.d.ts +1 -1
- package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-read.js.map +1 -1
- package/dist/alphalib/types/robots/meta-write.d.ts +5 -5
- package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-write.js.map +1 -1
- package/dist/alphalib/types/robots/minio-import.d.ts +1 -1
- package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-import.js.map +1 -1
- package/dist/alphalib/types/robots/minio-store.d.ts +1 -1
- package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-store.js.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.d.ts +1 -1
- package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
- package/dist/alphalib/types/robots/s3-import.d.ts +1 -1
- package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-import.js.map +1 -1
- package/dist/alphalib/types/robots/s3-store.d.ts +1 -1
- package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-store.js.map +1 -1
- package/dist/alphalib/types/robots/script-run.d.ts +1 -1
- package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
- package/dist/alphalib/types/robots/script-run.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.d.ts +1 -1
- package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.d.ts +1 -1
- package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.d.ts +11 -11
- package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.js +12 -5
- package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.d.ts +1 -1
- package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.d.ts +1 -1
- package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
- package/dist/alphalib/types/robots/swift-import.d.ts +1 -1
- package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-import.js.map +1 -1
- package/dist/alphalib/types/robots/swift-store.d.ts +1 -1
- package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-store.js.map +1 -1
- package/dist/alphalib/types/robots/text-speak.d.ts +1 -1
- package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-speak.js.map +1 -1
- package/dist/alphalib/types/robots/text-translate.d.ts +1 -1
- package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-translate.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.d.ts +1 -1
- package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.d.ts +1 -1
- package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/tus-store.d.ts +1 -1
- package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tus-store.js.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.d.ts +1 -1
- package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.d.ts +5 -5
- package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.d.ts +5 -5
- package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/video-concat.d.ts +5 -5
- package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-concat.js.map +1 -1
- package/dist/alphalib/types/robots/video-encode.d.ts +11 -5
- package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-encode.js +2 -1
- package/dist/alphalib/types/robots/video-encode.js.map +1 -1
- package/dist/alphalib/types/robots/video-generate.d.ts +1 -1
- package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-generate.js.map +1 -1
- package/dist/alphalib/types/robots/video-merge.d.ts +11 -5
- package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-merge.js +1 -0
- package/dist/alphalib/types/robots/video-merge.js.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.d.ts +5 -5
- package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
- package/dist/alphalib/types/robots/video-split.d.ts +5 -5
- package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-split.js.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.d.ts +5 -5
- package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.d.ts +5 -5
- package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.d.ts +1 -1
- package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.d.ts +1 -1
- package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.d.ts +1 -1
- package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.d.ts +1 -1
- package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.d.ts +1 -1
- package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
- package/dist/alphalib/types/stackVersions.d.ts +1 -1
- package/dist/alphalib/types/stackVersions.js +2 -2
- package/dist/apiTypes.d.ts +1 -1
- package/dist/apiTypes.d.ts.map +1 -1
- package/dist/apiTypes.js.map +1 -1
- package/dist/cli/commands/BaseCommand.d.ts +1 -1
- package/dist/cli/commands/BaseCommand.d.ts.map +1 -1
- package/dist/cli/commands/BaseCommand.js.map +1 -1
- package/dist/cli/commands/assemblies.d.ts.map +1 -1
- package/dist/cli/commands/assemblies.js.map +1 -1
- package/dist/cli/commands/auth.d.ts.map +1 -1
- package/dist/cli/commands/auth.js.map +1 -1
- package/dist/cli/commands/bills.d.ts.map +1 -1
- package/dist/cli/commands/bills.js.map +1 -1
- package/dist/cli/commands/docs.d.ts.map +1 -1
- package/dist/cli/commands/docs.js.map +1 -1
- package/dist/cli/commands/notifications.d.ts.map +1 -1
- package/dist/cli/commands/notifications.js.map +1 -1
- package/dist/cli/commands/templates.d.ts.map +1 -1
- package/dist/cli/commands/templates.js.map +1 -1
- package/dist/cli/commands/upload.d.ts.map +1 -1
- package/dist/cli/commands/upload.js.map +1 -1
- package/dist/cli/generateIntentDocs.d.ts.map +1 -1
- package/dist/cli/generateIntentDocs.js.map +1 -1
- package/dist/cli/helpers.d.ts.map +1 -1
- package/dist/cli/helpers.js.map +1 -1
- package/dist/cli/intentCommandSpecs.d.ts.map +1 -1
- package/dist/cli/intentCommandSpecs.js.map +1 -1
- package/dist/cli/intentCommands.d.ts.map +1 -1
- package/dist/cli/intentCommands.js.map +1 -1
- package/dist/cli/intentFields.d.ts.map +1 -1
- package/dist/cli/intentFields.js.map +1 -1
- package/dist/cli/intentRuntime.d.ts +1 -1
- package/dist/cli/intentRuntime.d.ts.map +1 -1
- package/dist/cli/intentRuntime.js.map +1 -1
- package/dist/cli/resultUrls.d.ts.map +1 -1
- package/dist/cli/resultUrls.js.map +1 -1
- package/dist/cli/semanticIntents/imageDescribe.d.ts.map +1 -1
- package/dist/cli/semanticIntents/imageDescribe.js.map +1 -1
- package/dist/cli/semanticIntents/imageGenerate.d.ts.map +1 -1
- package/dist/cli/semanticIntents/imageGenerate.js.map +1 -1
- package/dist/cli/semanticIntents/index.d.ts.map +1 -1
- package/dist/cli/semanticIntents/index.js.map +1 -1
- package/dist/cli/semanticIntents/markdownPdf.d.ts.map +1 -1
- package/dist/cli/semanticIntents/markdownPdf.js.map +1 -1
- package/dist/cli/semanticIntents/speechTranscribe.d.ts.map +1 -1
- package/dist/cli/semanticIntents/speechTranscribe.js.map +1 -1
- package/dist/cli/stepsInput.d.ts.map +1 -1
- package/dist/cli/stepsInput.js.map +1 -1
- package/dist/cli/template-last-modified.d.ts.map +1 -1
- package/dist/cli/template-last-modified.js.map +1 -1
- package/dist/cli/types.d.ts +1 -1
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/types.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/inputFiles.d.ts.map +1 -1
- package/dist/inputFiles.js.map +1 -1
- package/dist/lintAssemblyInput.d.ts.map +1 -1
- package/dist/lintAssemblyInput.js.map +1 -1
- package/dist/lintAssemblyInstructions.d.ts.map +1 -1
- package/dist/lintAssemblyInstructions.js.map +1 -1
- package/dist/robots.d.ts.map +1 -1
- package/dist/robots.js.map +1 -1
- package/dist/tus.d.ts.map +1 -1
- package/dist/tus.js.map +1 -1
- package/package.json +1 -1
- package/src/ApiError.ts +1 -0
- package/src/PaginationStream.ts +2 -1
- package/src/Transloadit.ts +43 -36
- package/src/alphalib/errors.ts +18 -0
- package/src/alphalib/types/assemblyStatus.ts +9 -8
- package/src/alphalib/types/assemblyUrls.ts +1 -0
- package/src/alphalib/types/file.ts +4 -0
- package/src/alphalib/types/robots/_instructions-primitives.ts +6 -2
- package/src/alphalib/types/robots/ai-chat.ts +2 -0
- package/src/alphalib/types/robots/assembly-savejson.ts +3 -1
- package/src/alphalib/types/robots/audio-artwork.ts +2 -1
- package/src/alphalib/types/robots/audio-concat.ts +2 -1
- package/src/alphalib/types/robots/audio-encode.ts +2 -1
- package/src/alphalib/types/robots/audio-loop.ts +2 -1
- package/src/alphalib/types/robots/audio-merge.ts +2 -1
- package/src/alphalib/types/robots/audio-split.ts +2 -1
- package/src/alphalib/types/robots/audio-waveform.ts +2 -1
- package/src/alphalib/types/robots/azure-import.ts +2 -1
- package/src/alphalib/types/robots/azure-store.ts +8 -3
- package/src/alphalib/types/robots/backblaze-import.ts +2 -1
- package/src/alphalib/types/robots/backblaze-store.ts +2 -1
- package/src/alphalib/types/robots/box-import.ts +2 -1
- package/src/alphalib/types/robots/box-store.ts +2 -1
- package/src/alphalib/types/robots/cloudfiles-import.ts +2 -1
- package/src/alphalib/types/robots/cloudfiles-store.ts +2 -1
- package/src/alphalib/types/robots/cloudflare-import.ts +2 -1
- package/src/alphalib/types/robots/cloudflare-store.ts +2 -1
- package/src/alphalib/types/robots/digitalocean-import.ts +2 -1
- package/src/alphalib/types/robots/digitalocean-store.ts +2 -1
- package/src/alphalib/types/robots/document-autorotate.ts +2 -1
- package/src/alphalib/types/robots/document-convert.ts +2 -1
- package/src/alphalib/types/robots/document-extract.ts +183 -0
- package/src/alphalib/types/robots/document-merge.ts +2 -1
- package/src/alphalib/types/robots/document-ocr.ts +2 -1
- package/src/alphalib/types/robots/document-optimize.ts +2 -1
- package/src/alphalib/types/robots/document-split.ts +2 -1
- package/src/alphalib/types/robots/document-thumbs.ts +2 -1
- package/src/alphalib/types/robots/dropbox-import.ts +14 -2
- package/src/alphalib/types/robots/dropbox-store.ts +2 -1
- package/src/alphalib/types/robots/edgly-deliver.ts +3 -1
- package/src/alphalib/types/robots/file-compress.ts +2 -1
- package/src/alphalib/types/robots/file-decompress.ts +2 -1
- package/src/alphalib/types/robots/file-filter.ts +2 -1
- package/src/alphalib/types/robots/file-hash.ts +2 -1
- package/src/alphalib/types/robots/file-preview.ts +2 -1
- package/src/alphalib/types/robots/file-read.ts +2 -1
- package/src/alphalib/types/robots/file-serve.ts +2 -1
- package/src/alphalib/types/robots/file-verify.ts +2 -1
- package/src/alphalib/types/robots/file-virusscan.ts +2 -1
- package/src/alphalib/types/robots/file-watermark.ts +2 -1
- package/src/alphalib/types/robots/ftp-import.ts +2 -1
- package/src/alphalib/types/robots/ftp-store.ts +2 -1
- package/src/alphalib/types/robots/google-import.ts +2 -1
- package/src/alphalib/types/robots/google-store.ts +2 -1
- package/src/alphalib/types/robots/html-convert.ts +2 -1
- package/src/alphalib/types/robots/http-import.ts +2 -1
- package/src/alphalib/types/robots/image-bgremove.ts +2 -1
- package/src/alphalib/types/robots/image-copyrightdetect.ts +2 -1
- package/src/alphalib/types/robots/image-describe.ts +2 -1
- package/src/alphalib/types/robots/image-enhance.ts +2 -1
- package/src/alphalib/types/robots/image-facedetect.ts +2 -1
- package/src/alphalib/types/robots/image-generate.ts +2 -1
- package/src/alphalib/types/robots/image-merge.ts +2 -1
- package/src/alphalib/types/robots/image-ocr.ts +2 -1
- package/src/alphalib/types/robots/image-optimize.ts +2 -1
- package/src/alphalib/types/robots/image-resize.ts +3 -6
- package/src/alphalib/types/robots/image-upscale.ts +2 -1
- package/src/alphalib/types/robots/mega-import.ts +2 -1
- package/src/alphalib/types/robots/mega-store.ts +2 -1
- package/src/alphalib/types/robots/meta-read.ts +3 -1
- package/src/alphalib/types/robots/meta-write.ts +2 -1
- package/src/alphalib/types/robots/minio-import.ts +2 -1
- package/src/alphalib/types/robots/minio-store.ts +2 -1
- package/src/alphalib/types/robots/progress-simulate.ts +2 -1
- package/src/alphalib/types/robots/s3-import.ts +2 -1
- package/src/alphalib/types/robots/s3-store.ts +2 -1
- package/src/alphalib/types/robots/script-run.ts +2 -1
- package/src/alphalib/types/robots/sftp-import.ts +2 -1
- package/src/alphalib/types/robots/sftp-store.ts +2 -1
- package/src/alphalib/types/robots/speech-transcribe.ts +14 -6
- package/src/alphalib/types/robots/supabase-import.ts +2 -1
- package/src/alphalib/types/robots/supabase-store.ts +2 -1
- package/src/alphalib/types/robots/swift-import.ts +2 -1
- package/src/alphalib/types/robots/swift-store.ts +2 -1
- package/src/alphalib/types/robots/text-speak.ts +2 -1
- package/src/alphalib/types/robots/text-translate.ts +2 -1
- package/src/alphalib/types/robots/tigris-import.ts +2 -1
- package/src/alphalib/types/robots/tigris-store.ts +2 -1
- package/src/alphalib/types/robots/tlcdn-deliver.ts +3 -1
- package/src/alphalib/types/robots/tus-store.ts +2 -1
- package/src/alphalib/types/robots/upload-handle.ts +2 -1
- package/src/alphalib/types/robots/video-adaptive.ts +2 -1
- package/src/alphalib/types/robots/video-artwork.ts +2 -1
- package/src/alphalib/types/robots/video-concat.ts +2 -1
- package/src/alphalib/types/robots/video-encode.ts +4 -2
- package/src/alphalib/types/robots/video-generate.ts +2 -1
- package/src/alphalib/types/robots/video-merge.ts +3 -1
- package/src/alphalib/types/robots/video-ondemand.ts +2 -1
- package/src/alphalib/types/robots/video-split.ts +2 -1
- package/src/alphalib/types/robots/video-subtitle.ts +2 -1
- package/src/alphalib/types/robots/video-thumbs.ts +2 -1
- package/src/alphalib/types/robots/vimeo-import.ts +2 -1
- package/src/alphalib/types/robots/vimeo-store.ts +2 -1
- package/src/alphalib/types/robots/wasabi-import.ts +2 -1
- package/src/alphalib/types/robots/wasabi-store.ts +2 -1
- package/src/alphalib/types/robots/youtube-store.ts +2 -1
- package/src/alphalib/types/stackVersions.ts +2 -2
- package/src/apiTypes.ts +2 -1
- package/src/cli/commands/BaseCommand.ts +3 -1
- package/src/cli/commands/assemblies.ts +12 -8
- package/src/cli/commands/auth.ts +8 -4
- package/src/cli/commands/bills.ts +4 -2
- package/src/cli/commands/docs.ts +1 -0
- package/src/cli/commands/notifications.ts +4 -2
- package/src/cli/commands/templates.ts +7 -4
- package/src/cli/commands/upload.ts +5 -2
- package/src/cli/generateIntentDocs.ts +5 -3
- package/src/cli/helpers.ts +4 -1
- package/src/cli/intentCommandSpecs.ts +1 -0
- package/src/cli/intentCommands.ts +10 -8
- package/src/cli/intentFields.ts +2 -1
- package/src/cli/intentRuntime.ts +8 -5
- package/src/cli/resultUrls.ts +1 -0
- package/src/cli/semanticIntents/imageDescribe.ts +2 -1
- package/src/cli/semanticIntents/imageGenerate.ts +3 -1
- package/src/cli/semanticIntents/index.ts +1 -0
- package/src/cli/semanticIntents/markdownPdf.ts +1 -0
- package/src/cli/semanticIntents/speechTranscribe.ts +1 -0
- package/src/cli/stepsInput.ts +2 -1
- package/src/cli/template-last-modified.ts +1 -0
- package/src/cli/types.ts +3 -1
- package/src/cli.ts +1 -0
- package/src/inputFiles.ts +10 -5
- package/src/lintAssemblyInput.ts +3 -2
- package/src/lintAssemblyInstructions.ts +3 -2
- package/src/robots.ts +1 -0
- package/src/tus.ts +8 -4
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { fileAsSchema } from './file.ts'
|
|
4
|
+
|
|
3
5
|
export const assemblyBusyCodeSchema = z.enum([
|
|
4
6
|
'ASSEMBLY_UPLOADING',
|
|
5
7
|
'ASSEMBLY_EXECUTING',
|
|
@@ -128,6 +130,7 @@ export const assemblyStatusErrCodeSchema = z.enum([
|
|
|
128
130
|
'DOCUMENT_AUTOROTATE_VALIDATION',
|
|
129
131
|
'DOCUMENT_CONVERT_UNSUPPORTED_CONVERSION',
|
|
130
132
|
'DOCUMENT_CONVERT_VALIDATION',
|
|
133
|
+
'DOCUMENT_EXTRACT_VALIDATION',
|
|
131
134
|
'DOCUMENT_MERGE_UNSUPPORTED_CONVERSION',
|
|
132
135
|
'DOCUMENT_MERGE_VALIDATION',
|
|
133
136
|
'DOCUMENT_OCR_VALIDATION',
|
|
@@ -596,10 +599,7 @@ export const assemblyStatusUploadSchema = z
|
|
|
596
599
|
ssl_url: z.string().nullable(),
|
|
597
600
|
meta: assemblyStatusMetaSchema,
|
|
598
601
|
user_meta: z.record(z.unknown()).optional(),
|
|
599
|
-
as:
|
|
600
|
-
.union([z.string(), z.array(z.string())])
|
|
601
|
-
.nullable()
|
|
602
|
-
.optional(),
|
|
602
|
+
as: fileAsSchema.optional(),
|
|
603
603
|
is_temp_url: z.boolean().optional(),
|
|
604
604
|
queue: z.string().nullable().optional(),
|
|
605
605
|
queue_time: z.number().optional(),
|
|
@@ -652,10 +652,7 @@ export const assemblyStatusResultSchema = z
|
|
|
652
652
|
.nullable()
|
|
653
653
|
.optional(),
|
|
654
654
|
width: z.number().nullable().optional(),
|
|
655
|
-
as:
|
|
656
|
-
.union([z.string(), z.array(z.string())])
|
|
657
|
-
.nullable()
|
|
658
|
-
.optional(),
|
|
655
|
+
as: fileAsSchema.optional(),
|
|
659
656
|
queueTime: z.number().nullable().optional(),
|
|
660
657
|
execTime: z.number().nullable().optional(),
|
|
661
658
|
import_url: z.string().optional(),
|
|
@@ -837,6 +834,10 @@ export const assemblyStatusErrSchema = assemblyStatusBaseSchema
|
|
|
837
834
|
stderr: z.string().optional(),
|
|
838
835
|
cmd: z.union([z.string(), z.array(z.union([z.string(), z.number()]))]).optional(),
|
|
839
836
|
admin_cmd: z.union([z.string(), z.array(z.union([z.string(), z.number()]))]).optional(),
|
|
837
|
+
is_private_address: z.boolean().optional(),
|
|
838
|
+
playwright_error_code: z.string().optional(),
|
|
839
|
+
url: z.string().optional(),
|
|
840
|
+
url_host: z.string().nullable().optional(),
|
|
840
841
|
worker: z.string().optional(),
|
|
841
842
|
headers: z.record(z.unknown()).optional(),
|
|
842
843
|
retryable: z.boolean().optional(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Replace } from 'type-fest'
|
|
2
|
+
|
|
2
3
|
import { z } from 'zod'
|
|
3
4
|
|
|
4
5
|
import { stackVersions } from '../stackVersions.ts'
|
|
@@ -46,6 +47,7 @@ export const robotNames = z.enum([
|
|
|
46
47
|
'MetaWriteRobot',
|
|
47
48
|
'DocumentThumbsRobot',
|
|
48
49
|
'DocumentConvertRobot',
|
|
50
|
+
'DocumentExtractRobot',
|
|
49
51
|
'DocumentMergeRobot',
|
|
50
52
|
'DocumentSplitRobot',
|
|
51
53
|
'DocumentOptimizeRobot',
|
|
@@ -518,6 +520,8 @@ For images, you can also add \`"blurhash": true\` to extract a [BlurHash](https:
|
|
|
518
520
|
|
|
519
521
|
For videos, you can add the \`"colorspace: true"\` parameter to extract the colorspace of the output video.
|
|
520
522
|
|
|
523
|
+
For videos, you can also add \`"interlaced": true\` to detect whether the video is interlaced. This combines the cheap ffprobe \`field_order\` flag with a bounded \`idet\` sampling pass over the first frames of the source, exposing \`interlaced\`, \`field_order\`, and a diagnostic \`interlace_detection\` object under \`file.meta\`. This is computationally expensive and billed accordingly.
|
|
524
|
+
|
|
521
525
|
For audio, you can add \`"mean_volume": true\` to get a single value representing the mean average volume of the audio file.
|
|
522
526
|
|
|
523
527
|
You can also set this to \`false\` to skip metadata extraction and speed up transcoding.
|
|
@@ -861,10 +865,10 @@ A parameter object to be passed to FFmpeg. If a preset is used, the options spec
|
|
|
861
865
|
|
|
862
866
|
ffmpeg_stack: z
|
|
863
867
|
// Any semver in range is allowed and normalized. The enum is used for editor completions.
|
|
864
|
-
.union([z.enum(['
|
|
868
|
+
.union([z.enum(['v6', 'v7', 'v8']), z.string().regex(/^v?[5-8](\.\d+)?(\.\d+)?$/)])
|
|
865
869
|
.default('v6.0.0')
|
|
866
870
|
.describe(`
|
|
867
|
-
Selects the FFmpeg stack version to use for encoding. These versions reflect real FFmpeg versions. We currently recommend to use "v6.0.0".
|
|
871
|
+
Selects the FFmpeg stack version to use for encoding. These versions reflect real FFmpeg versions. We currently recommend to use "v6.0.0". Deprecated "v5.x" values are accepted for backward compatibility.
|
|
868
872
|
`),
|
|
869
873
|
})
|
|
870
874
|
|
|
@@ -168,6 +168,8 @@ export const MODEL_CAPABILITIES: Record<string, { pdf: boolean; image: boolean }
|
|
|
168
168
|
'openai/gpt-4.1-2025-04-14': { pdf: false, image: true },
|
|
169
169
|
'openai/chatgpt-4o-latest': { pdf: false, image: true },
|
|
170
170
|
'openai/o3-2025-04-16': { pdf: false, image: true },
|
|
171
|
+
'openai/gpt-audio': { pdf: false, image: false },
|
|
172
|
+
'openai/gpt-audio-2025-08-28': { pdf: false, image: false },
|
|
171
173
|
'openai/gpt-4o-audio-preview': { pdf: false, image: false },
|
|
172
174
|
'openai/gpt-5.2': { pdf: false, image: true },
|
|
173
175
|
'openai/gpt-5.2-2025-12-11': { pdf: false, image: true },
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
5
|
import { stackVersions } from '../stackVersions.ts'
|
|
4
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
5
6
|
import {
|
|
6
7
|
interpolateRobot,
|
|
7
8
|
robotBase,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
5
|
import { stackVersions } from '../stackVersions.ts'
|
|
4
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
5
6
|
import {
|
|
6
7
|
bitrateSchema,
|
|
7
8
|
interpolateRobot,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
5
|
import { stackVersions } from '../stackVersions.ts'
|
|
4
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
5
6
|
import {
|
|
6
7
|
bitrateSchema,
|
|
7
8
|
interpolateRobot,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
5
|
import { stackVersions } from '../stackVersions.ts'
|
|
4
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
5
6
|
import {
|
|
6
7
|
bitrateSchema,
|
|
7
8
|
interpolateRobot,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
5
|
import { stackVersions } from '../stackVersions.ts'
|
|
4
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
5
6
|
import {
|
|
6
7
|
bitrateSchema,
|
|
7
8
|
interpolateRobot,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
5
|
import { stackVersions } from '../stackVersions.ts'
|
|
4
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
5
6
|
import {
|
|
6
7
|
bitrateSchema,
|
|
7
8
|
interpolateRobot,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { azureBase, interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -41,6 +42,10 @@ export const meta: RobotMetaInput = {
|
|
|
41
42
|
stage: 'ga',
|
|
42
43
|
}
|
|
43
44
|
|
|
45
|
+
const azureStoreMetadataValueSchema = z
|
|
46
|
+
.union([z.string(), z.number(), z.boolean()])
|
|
47
|
+
.transform(String)
|
|
48
|
+
|
|
44
49
|
export const robotAzureStoreInstructionsSchema = robotBase
|
|
45
50
|
.merge(robotUse)
|
|
46
51
|
.merge(azureBase)
|
|
@@ -82,9 +87,8 @@ The content disposition with which to store the file. By default this will be gu
|
|
|
82
87
|
.describe(`
|
|
83
88
|
The cache control header with which to store the file.
|
|
84
89
|
`),
|
|
85
|
-
// TODO: verify if this is correct.
|
|
86
90
|
metadata: z
|
|
87
|
-
.record(
|
|
91
|
+
.record(azureStoreMetadataValueSchema)
|
|
88
92
|
.default({})
|
|
89
93
|
.describe(`
|
|
90
94
|
A JavaScript object containing a list of metadata to be set for this file on Azure, such as \`{ FileURL: "\${file.url_name}" }\`. This can also include any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables).
|
|
@@ -114,6 +118,7 @@ export const robotAzureStoreInstructionsWithHiddenFieldsSchema =
|
|
|
114
118
|
result: z
|
|
115
119
|
.union([z.literal('debug'), robotAzureStoreInstructionsSchema.shape.result])
|
|
116
120
|
.optional(),
|
|
121
|
+
upload_stack: z.enum(['v1', 'v2']).optional(),
|
|
117
122
|
})
|
|
118
123
|
|
|
119
124
|
export type RobotAzureStoreInstructions = z.infer<typeof robotAzureStoreInstructionsSchema>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { backblazeBase, interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { boxBase, interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
3
|
+
import { z } from 'zod'
|
|
4
|
+
|
|
5
|
+
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
6
|
+
|
|
7
|
+
const extractTargets = z.enum(['text', 'images'])
|
|
8
|
+
const imageFormats = z.enum(['auto', 'original', 'png', 'jpg'])
|
|
9
|
+
const ocrProviders = z.enum(['aws', 'gcp'])
|
|
10
|
+
const textFormats = z.enum(['txt', 'json'])
|
|
11
|
+
const textGranularities = z.enum(['document', 'page'])
|
|
12
|
+
const textMethods = z.enum(['native', 'ocr', 'auto'])
|
|
13
|
+
|
|
14
|
+
export const meta: RobotMetaInput = {
|
|
15
|
+
bytescount: 1,
|
|
16
|
+
discount_factor: 1,
|
|
17
|
+
discount_pct: 0,
|
|
18
|
+
example_code: {
|
|
19
|
+
steps: {
|
|
20
|
+
extracted: {
|
|
21
|
+
robot: '/document/extract',
|
|
22
|
+
use: ':original',
|
|
23
|
+
extract: ['text', 'images'],
|
|
24
|
+
text_method: 'native',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
example_code_description: 'Extract native text and embedded raster images from a PDF document:',
|
|
29
|
+
minimum_charge: 1048576,
|
|
30
|
+
output_factor: 1,
|
|
31
|
+
override_lvl1: 'Document Processing',
|
|
32
|
+
purpose_sentence: 'extracts text and embedded images from PDF documents',
|
|
33
|
+
purpose_verb: 'extract',
|
|
34
|
+
purpose_word: 'extracts text and images',
|
|
35
|
+
purpose_words: 'Extracts text and embedded images',
|
|
36
|
+
service_slug: 'document-processing',
|
|
37
|
+
slot_count: 10,
|
|
38
|
+
title: 'Extract text and images from documents',
|
|
39
|
+
typical_file_size_mb: 0.8,
|
|
40
|
+
typical_file_type: 'document',
|
|
41
|
+
name: 'DocumentExtractRobot',
|
|
42
|
+
priceFactor: 1,
|
|
43
|
+
queueSlotCount: 10,
|
|
44
|
+
minimumCharge: 1048576,
|
|
45
|
+
isAllowedForUrlTransform: true,
|
|
46
|
+
trackOutputFileSize: true,
|
|
47
|
+
isInternal: false,
|
|
48
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
49
|
+
stage: 'beta',
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const robotDocumentExtractInstructionsSchema = robotBase
|
|
53
|
+
.merge(robotUse)
|
|
54
|
+
.extend({
|
|
55
|
+
robot: z.literal('/document/extract').describe(`
|
|
56
|
+
Extracts native/selectable text and embedded raster image assets from PDF documents.
|
|
57
|
+
|
|
58
|
+
This robot does not render full pages. If you need page images, use \`/document/thumbs\`. Vector graphics, charts, and page backgrounds are not always embedded raster images and may therefore not be returned by this robot.
|
|
59
|
+
`),
|
|
60
|
+
extract: z
|
|
61
|
+
.union([extractTargets, z.array(extractTargets).min(1)])
|
|
62
|
+
.default(['text', 'images'])
|
|
63
|
+
.describe(`
|
|
64
|
+
Selects which assets to extract. Use \`["text"]\`, \`["images"]\`, or \`["text", "images"]\`.
|
|
65
|
+
`),
|
|
66
|
+
page_range: z
|
|
67
|
+
.string()
|
|
68
|
+
.regex(/^\s*\d+(?:\s*-\s*\d+)?(?:\s*,\s*\d+(?:\s*-\s*\d+)?)*\s*$/)
|
|
69
|
+
.optional()
|
|
70
|
+
.describe(`
|
|
71
|
+
Optional comma-separated page selection, such as \`"1"\`, \`"1-3"\`, or \`"1,3-5"\`. Page numbers start at 1. Ranges are clamped to the detected page count.
|
|
72
|
+
|
|
73
|
+
At most 1,000 selected pages are allowed per job.
|
|
74
|
+
|
|
75
|
+
This is supported for native text extraction and embedded image extraction. OCR extraction currently works on the full document.
|
|
76
|
+
`),
|
|
77
|
+
password: z
|
|
78
|
+
.string()
|
|
79
|
+
.optional()
|
|
80
|
+
.describe(`
|
|
81
|
+
Password used to unlock encrypted PDFs for native text extraction and embedded image extraction. OCR extraction currently does not support encrypted PDFs, so do not combine this with \`text_method: "ocr"\` or \`text_method: "auto"\`.
|
|
82
|
+
`),
|
|
83
|
+
text_method: textMethods.default('native').describe(`
|
|
84
|
+
Controls how text is extracted.
|
|
85
|
+
|
|
86
|
+
- \`"native"\` extracts selectable PDF text locally with Poppler. This is fast, but returns little or no text for scanned PDFs.
|
|
87
|
+
- \`"ocr"\` delegates to \`/document/ocr\` and requires \`ocr_provider\`.
|
|
88
|
+
- \`"auto"\` tries native extraction first, then falls back to OCR when no native text is found. This also requires \`ocr_provider\`.
|
|
89
|
+
|
|
90
|
+
OCR modes currently cannot be combined with \`password\`.
|
|
91
|
+
`),
|
|
92
|
+
ocr_provider: ocrProviders.optional().describe(`
|
|
93
|
+
OCR provider to use when \`text_method\` is \`"ocr"\` or \`"auto"\`. Valid values are \`"aws"\` and \`"gcp"\`.
|
|
94
|
+
`),
|
|
95
|
+
text_format: textFormats.default('txt').describe(`
|
|
96
|
+
Output format for extracted text. Use \`"txt"\` for plain text or \`"json"\` for structured output.
|
|
97
|
+
`),
|
|
98
|
+
text_granularity: textGranularities.default('document').describe(`
|
|
99
|
+
Controls text output grouping for native extraction.
|
|
100
|
+
|
|
101
|
+
- \`"document"\` creates one text result for the selected pages.
|
|
102
|
+
- \`"page"\` creates one text result per selected page.
|
|
103
|
+
|
|
104
|
+
Page granularity is currently only supported with \`text_method: "native"\`.
|
|
105
|
+
`),
|
|
106
|
+
image_format: imageFormats.default('auto').describe(`
|
|
107
|
+
Output format for extracted embedded raster images.
|
|
108
|
+
|
|
109
|
+
- \`"auto"\` and \`"original"\` preserve the embedded image format where possible.
|
|
110
|
+
- \`"png"\` asks Poppler to decode images as PNG.
|
|
111
|
+
- \`"jpg"\` converts non-JPEG extracted images through \`/image/resize\`.
|
|
112
|
+
`),
|
|
113
|
+
min_image_width: z
|
|
114
|
+
.number()
|
|
115
|
+
.int()
|
|
116
|
+
.min(0)
|
|
117
|
+
.default(0)
|
|
118
|
+
.describe(`
|
|
119
|
+
Minimum width in pixels for extracted images. Smaller images are ignored. Set to \`0\` to disable this filter.
|
|
120
|
+
`),
|
|
121
|
+
min_image_height: z
|
|
122
|
+
.number()
|
|
123
|
+
.int()
|
|
124
|
+
.min(0)
|
|
125
|
+
.default(0)
|
|
126
|
+
.describe(`
|
|
127
|
+
Minimum height in pixels for extracted images. Smaller images are ignored. Set to \`0\` to disable this filter.
|
|
128
|
+
`),
|
|
129
|
+
min_image_bytes: z
|
|
130
|
+
.number()
|
|
131
|
+
.int()
|
|
132
|
+
.min(0)
|
|
133
|
+
.default(0)
|
|
134
|
+
.describe(`
|
|
135
|
+
Minimum file size in bytes for extracted images. Smaller images are ignored.
|
|
136
|
+
`),
|
|
137
|
+
dedupe_images: z
|
|
138
|
+
.boolean()
|
|
139
|
+
.default(true)
|
|
140
|
+
.describe(`
|
|
141
|
+
When enabled, identical extracted image files are emitted only once.
|
|
142
|
+
`),
|
|
143
|
+
include_image_masks: z
|
|
144
|
+
.boolean()
|
|
145
|
+
.default(false)
|
|
146
|
+
.describe(`
|
|
147
|
+
When enabled, the robot also keeps image mask files when Poppler exposes them as separate files.
|
|
148
|
+
`),
|
|
149
|
+
})
|
|
150
|
+
.strict()
|
|
151
|
+
|
|
152
|
+
export const robotDocumentExtractInstructionsWithHiddenFieldsSchema =
|
|
153
|
+
robotDocumentExtractInstructionsSchema.extend({
|
|
154
|
+
result: z
|
|
155
|
+
.union([z.literal('debug'), robotDocumentExtractInstructionsSchema.shape.result])
|
|
156
|
+
.optional(),
|
|
157
|
+
})
|
|
158
|
+
|
|
159
|
+
export type RobotDocumentExtractInstructions = z.infer<
|
|
160
|
+
typeof robotDocumentExtractInstructionsSchema
|
|
161
|
+
>
|
|
162
|
+
export type RobotDocumentExtractInstructionsWithHiddenFields = z.infer<
|
|
163
|
+
typeof robotDocumentExtractInstructionsWithHiddenFieldsSchema
|
|
164
|
+
>
|
|
165
|
+
|
|
166
|
+
export const interpolatableRobotDocumentExtractInstructionsSchema = interpolateRobot(
|
|
167
|
+
robotDocumentExtractInstructionsSchema,
|
|
168
|
+
)
|
|
169
|
+
export type InterpolatableRobotDocumentExtractInstructions =
|
|
170
|
+
InterpolatableRobotDocumentExtractInstructionsInput
|
|
171
|
+
|
|
172
|
+
export type InterpolatableRobotDocumentExtractInstructionsInput = z.input<
|
|
173
|
+
typeof interpolatableRobotDocumentExtractInstructionsSchema
|
|
174
|
+
>
|
|
175
|
+
|
|
176
|
+
export const interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema =
|
|
177
|
+
interpolateRobot(robotDocumentExtractInstructionsWithHiddenFieldsSchema)
|
|
178
|
+
export type InterpolatableRobotDocumentExtractInstructionsWithHiddenFields = z.infer<
|
|
179
|
+
typeof interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema
|
|
180
|
+
>
|
|
181
|
+
export type InterpolatableRobotDocumentExtractInstructionsWithHiddenFieldsInput = z.input<
|
|
182
|
+
typeof interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema
|
|
183
|
+
>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import {
|
|
5
6
|
dropboxBase,
|
|
6
7
|
interpolateRobot,
|
|
@@ -53,6 +54,18 @@ export const robotDropboxImportInstructionsSchema = robotBase
|
|
|
53
54
|
.merge(dropboxBase)
|
|
54
55
|
.extend({
|
|
55
56
|
robot: z.literal('/dropbox/import'),
|
|
57
|
+
access_token: z
|
|
58
|
+
.string()
|
|
59
|
+
.optional()
|
|
60
|
+
.describe(`
|
|
61
|
+
The Dropbox OAuth access token. We recommend using <dfn>Template Credentials</dfn> via \`credentials\`, but you can use this parameter for dynamic Dropbox credentials.
|
|
62
|
+
`),
|
|
63
|
+
refresh_token: z
|
|
64
|
+
.string()
|
|
65
|
+
.optional()
|
|
66
|
+
.describe(`
|
|
67
|
+
The Dropbox OAuth refresh token. This is optional and can be used together with \`access_token\` for dynamic Dropbox credentials.
|
|
68
|
+
`),
|
|
56
69
|
path: path.describe(`
|
|
57
70
|
The path in your Dropbox to the specific file or directory. If the path points to a file, only this file will be imported. For example: \`images/avatar.jpg\`.
|
|
58
71
|
|
|
@@ -70,7 +83,6 @@ export const robotDropboxImportInstructionsWithHiddenFieldsSchema =
|
|
|
70
83
|
result: z
|
|
71
84
|
.union([z.literal('debug'), robotDropboxImportInstructionsSchema.shape.result])
|
|
72
85
|
.optional(),
|
|
73
|
-
access_token: z.string().optional(), // Legacy field for backward compatibility
|
|
74
86
|
})
|
|
75
87
|
|
|
76
88
|
export type RobotDropboxImportInstructions = z.infer<typeof robotDropboxImportInstructionsSchema>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
2
|
+
|
|
1
3
|
import { z } from 'zod'
|
|
2
4
|
|
|
3
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
5
|
import { dropboxBase, interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
6
|
|
|
6
7
|
export const meta: RobotMetaInput = {
|