@transloadit/node 4.1.3
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/LICENSE +21 -0
- package/README.md +701 -0
- package/dist/ApiError.d.ts +22 -0
- package/dist/ApiError.d.ts.map +1 -0
- package/dist/ApiError.js +33 -0
- package/dist/ApiError.js.map +1 -0
- package/dist/InconsistentResponseError.d.ts +4 -0
- package/dist/InconsistentResponseError.d.ts.map +1 -0
- package/dist/InconsistentResponseError.js +4 -0
- package/dist/InconsistentResponseError.js.map +1 -0
- package/dist/PaginationStream.d.ts +14 -0
- package/dist/PaginationStream.d.ts.map +1 -0
- package/dist/PaginationStream.js +36 -0
- package/dist/PaginationStream.js.map +1 -0
- package/dist/PollingTimeoutError.d.ts +5 -0
- package/dist/PollingTimeoutError.d.ts.map +1 -0
- package/dist/PollingTimeoutError.js +5 -0
- package/dist/PollingTimeoutError.js.map +1 -0
- package/dist/Transloadit.d.ts +250 -0
- package/dist/Transloadit.d.ts.map +1 -0
- package/dist/Transloadit.js +661 -0
- package/dist/Transloadit.js.map +1 -0
- package/dist/alphalib/lib/nativeGlobby.d.ts +14 -0
- package/dist/alphalib/lib/nativeGlobby.d.ts.map +1 -0
- package/dist/alphalib/lib/nativeGlobby.js +181 -0
- package/dist/alphalib/lib/nativeGlobby.js.map +1 -0
- package/dist/alphalib/mcache.d.ts +65 -0
- package/dist/alphalib/mcache.d.ts.map +1 -0
- package/dist/alphalib/mcache.js +135 -0
- package/dist/alphalib/mcache.js.map +1 -0
- package/dist/alphalib/tryCatch.d.ts +21 -0
- package/dist/alphalib/tryCatch.d.ts.map +1 -0
- package/dist/alphalib/tryCatch.js +17 -0
- package/dist/alphalib/tryCatch.js.map +1 -0
- package/dist/alphalib/types/assembliesGet.d.ts +62 -0
- package/dist/alphalib/types/assembliesGet.d.ts.map +1 -0
- package/dist/alphalib/types/assembliesGet.js +33 -0
- package/dist/alphalib/types/assembliesGet.js.map +1 -0
- package/dist/alphalib/types/assemblyReplay.d.ts +7858 -0
- package/dist/alphalib/types/assemblyReplay.d.ts.map +1 -0
- package/dist/alphalib/types/assemblyReplay.js +15 -0
- package/dist/alphalib/types/assemblyReplay.js.map +1 -0
- package/dist/alphalib/types/assemblyReplayNotification.d.ts +7849 -0
- package/dist/alphalib/types/assemblyReplayNotification.d.ts.map +1 -0
- package/dist/alphalib/types/assemblyReplayNotification.js +13 -0
- package/dist/alphalib/types/assemblyReplayNotification.js.map +1 -0
- package/dist/alphalib/types/assemblyStatus.d.ts +71084 -0
- package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -0
- package/dist/alphalib/types/assemblyStatus.js +710 -0
- package/dist/alphalib/types/assemblyStatus.js.map +1 -0
- package/dist/alphalib/types/bill.d.ts +44 -0
- package/dist/alphalib/types/bill.d.ts.map +1 -0
- package/dist/alphalib/types/bill.js +8 -0
- package/dist/alphalib/types/bill.js.map +1 -0
- package/dist/alphalib/types/robots/_index.d.ts +76306 -0
- package/dist/alphalib/types/robots/_index.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_index.js +354 -0
- package/dist/alphalib/types/robots/_index.js.map +1 -0
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts +3533 -0
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_instructions-primitives.js +1491 -0
- package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -0
- package/dist/alphalib/types/robots/ai-chat.d.ts +2096 -0
- package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -0
- package/dist/alphalib/types/robots/ai-chat.js +223 -0
- package/dist/alphalib/types/robots/ai-chat.js.map +1 -0
- package/dist/alphalib/types/robots/assembly-savejson.d.ts +52 -0
- package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -0
- package/dist/alphalib/types/robots/assembly-savejson.js +22 -0
- package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -0
- package/dist/alphalib/types/robots/audio-artwork.d.ts +2867 -0
- package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -0
- package/dist/alphalib/types/robots/audio-artwork.js +73 -0
- package/dist/alphalib/types/robots/audio-artwork.js.map +1 -0
- package/dist/alphalib/types/robots/audio-concat.d.ts +2916 -0
- package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -0
- package/dist/alphalib/types/robots/audio-concat.js +106 -0
- package/dist/alphalib/types/robots/audio-concat.js.map +1 -0
- package/dist/alphalib/types/robots/audio-encode.d.ts +2864 -0
- package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -0
- package/dist/alphalib/types/robots/audio-encode.js +67 -0
- package/dist/alphalib/types/robots/audio-encode.js.map +1 -0
- package/dist/alphalib/types/robots/audio-loop.d.ts +2879 -0
- package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -0
- package/dist/alphalib/types/robots/audio-loop.js +67 -0
- package/dist/alphalib/types/robots/audio-loop.js.map +1 -0
- package/dist/alphalib/types/robots/audio-merge.d.ts +2931 -0
- package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -0
- package/dist/alphalib/types/robots/audio-merge.js +101 -0
- package/dist/alphalib/types/robots/audio-merge.js.map +1 -0
- package/dist/alphalib/types/robots/audio-waveform.d.ts +3131 -0
- package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -0
- package/dist/alphalib/types/robots/audio-waveform.js +238 -0
- package/dist/alphalib/types/robots/audio-waveform.js.map +1 -0
- package/dist/alphalib/types/robots/azure-import.d.ts +210 -0
- package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/azure-import.js +73 -0
- package/dist/alphalib/types/robots/azure-import.js.map +1 -0
- package/dist/alphalib/types/robots/azure-store.d.ts +562 -0
- package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/azure-store.js +115 -0
- package/dist/alphalib/types/robots/azure-store.js.map +1 -0
- package/dist/alphalib/types/robots/backblaze-import.d.ts +210 -0
- package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/backblaze-import.js +81 -0
- package/dist/alphalib/types/robots/backblaze-import.js.map +1 -0
- package/dist/alphalib/types/robots/backblaze-store.d.ts +478 -0
- package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/backblaze-store.js +76 -0
- package/dist/alphalib/types/robots/backblaze-store.js.map +1 -0
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts +234 -0
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/cloudfiles-import.js +80 -0
- package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -0
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts +490 -0
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/cloudfiles-store.js +70 -0
- package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -0
- package/dist/alphalib/types/robots/cloudflare-import.d.ts +234 -0
- package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/cloudflare-import.js +81 -0
- package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -0
- package/dist/alphalib/types/robots/cloudflare-store.d.ts +514 -0
- package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/cloudflare-store.js +86 -0
- package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -0
- package/dist/alphalib/types/robots/digitalocean-import.d.ts +234 -0
- package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/digitalocean-import.js +78 -0
- package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -0
- package/dist/alphalib/types/robots/digitalocean-store.d.ts +526 -0
- package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/digitalocean-store.js +91 -0
- package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -0
- package/dist/alphalib/types/robots/document-autorotate.d.ts +405 -0
- package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -0
- package/dist/alphalib/types/robots/document-autorotate.js +44 -0
- package/dist/alphalib/types/robots/document-autorotate.js.map +1 -0
- package/dist/alphalib/types/robots/document-convert.d.ts +513 -0
- package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -0
- package/dist/alphalib/types/robots/document-convert.js +273 -0
- package/dist/alphalib/types/robots/document-convert.js.map +1 -0
- package/dist/alphalib/types/robots/document-merge.d.ts +429 -0
- package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -0
- package/dist/alphalib/types/robots/document-merge.js +86 -0
- package/dist/alphalib/types/robots/document-merge.js.map +1 -0
- package/dist/alphalib/types/robots/document-ocr.d.ts +441 -0
- package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -0
- package/dist/alphalib/types/robots/document-ocr.js +86 -0
- package/dist/alphalib/types/robots/document-ocr.js.map +1 -0
- package/dist/alphalib/types/robots/document-split.d.ts +417 -0
- package/dist/alphalib/types/robots/document-split.d.ts.map +1 -0
- package/dist/alphalib/types/robots/document-split.js +48 -0
- package/dist/alphalib/types/robots/document-split.js.map +1 -0
- package/dist/alphalib/types/robots/document-thumbs.d.ts +592 -0
- package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -0
- package/dist/alphalib/types/robots/document-thumbs.js +196 -0
- package/dist/alphalib/types/robots/document-thumbs.js.map +1 -0
- package/dist/alphalib/types/robots/dropbox-import.d.ts +144 -0
- package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/dropbox-import.js +65 -0
- package/dist/alphalib/types/robots/dropbox-import.js.map +1 -0
- package/dist/alphalib/types/robots/dropbox-store.d.ts +449 -0
- package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/dropbox-store.js +68 -0
- package/dist/alphalib/types/robots/dropbox-store.js.map +1 -0
- package/dist/alphalib/types/robots/edgly-deliver.d.ts +100 -0
- package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -0
- package/dist/alphalib/types/robots/edgly-deliver.js +46 -0
- package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -0
- package/dist/alphalib/types/robots/file-compress.d.ts +477 -0
- package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-compress.js +139 -0
- package/dist/alphalib/types/robots/file-compress.js.map +1 -0
- package/dist/alphalib/types/robots/file-decompress.d.ts +404 -0
- package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-decompress.js +94 -0
- package/dist/alphalib/types/robots/file-decompress.js.map +1 -0
- package/dist/alphalib/types/robots/file-filter.d.ts +465 -0
- package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-filter.js +136 -0
- package/dist/alphalib/types/robots/file-filter.js.map +1 -0
- package/dist/alphalib/types/robots/file-hash.d.ts +417 -0
- package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-hash.js +59 -0
- package/dist/alphalib/types/robots/file-hash.js.map +1 -0
- package/dist/alphalib/types/robots/file-preview.d.ts +854 -0
- package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-preview.js +221 -0
- package/dist/alphalib/types/robots/file-preview.js.map +1 -0
- package/dist/alphalib/types/robots/file-read.d.ts +405 -0
- package/dist/alphalib/types/robots/file-read.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-read.js +44 -0
- package/dist/alphalib/types/robots/file-read.js.map +1 -0
- package/dist/alphalib/types/robots/file-serve.d.ts +418 -0
- package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-serve.js +99 -0
- package/dist/alphalib/types/robots/file-serve.js.map +1 -0
- package/dist/alphalib/types/robots/file-verify.d.ts +441 -0
- package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-verify.js +73 -0
- package/dist/alphalib/types/robots/file-verify.js.map +1 -0
- package/dist/alphalib/types/robots/file-virusscan.d.ts +435 -0
- package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-virusscan.js +82 -0
- package/dist/alphalib/types/robots/file-virusscan.js.map +1 -0
- package/dist/alphalib/types/robots/file-watermark.d.ts +417 -0
- package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -0
- package/dist/alphalib/types/robots/file-watermark.js +28 -0
- package/dist/alphalib/types/robots/file-watermark.js.map +1 -0
- package/dist/alphalib/types/robots/ftp-import.d.ts +198 -0
- package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/ftp-import.js +60 -0
- package/dist/alphalib/types/robots/ftp-import.js.map +1 -0
- package/dist/alphalib/types/robots/ftp-store.d.ts +532 -0
- package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/ftp-store.js +91 -0
- package/dist/alphalib/types/robots/ftp-store.js.map +1 -0
- package/dist/alphalib/types/robots/google-import.d.ts +174 -0
- package/dist/alphalib/types/robots/google-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/google-import.js +77 -0
- package/dist/alphalib/types/robots/google-import.js.map +1 -0
- package/dist/alphalib/types/robots/google-store.d.ts +476 -0
- package/dist/alphalib/types/robots/google-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/google-store.js +111 -0
- package/dist/alphalib/types/robots/google-store.js.map +1 -0
- package/dist/alphalib/types/robots/html-convert.d.ts +531 -0
- package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -0
- package/dist/alphalib/types/robots/html-convert.js +137 -0
- package/dist/alphalib/types/robots/html-convert.js.map +1 -0
- package/dist/alphalib/types/robots/http-import.d.ts +215 -0
- package/dist/alphalib/types/robots/http-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/http-import.js +135 -0
- package/dist/alphalib/types/robots/http-import.js.map +1 -0
- package/dist/alphalib/types/robots/image-bgremove.d.ts +453 -0
- package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-bgremove.js +65 -0
- package/dist/alphalib/types/robots/image-bgremove.js.map +1 -0
- package/dist/alphalib/types/robots/image-describe.d.ts +453 -0
- package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-describe.js +86 -0
- package/dist/alphalib/types/robots/image-describe.js.map +1 -0
- package/dist/alphalib/types/robots/image-facedetect.d.ts +477 -0
- package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-facedetect.js +151 -0
- package/dist/alphalib/types/robots/image-facedetect.js.map +1 -0
- package/dist/alphalib/types/robots/image-generate.d.ts +522 -0
- package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-generate.js +64 -0
- package/dist/alphalib/types/robots/image-generate.js.map +1 -0
- package/dist/alphalib/types/robots/image-merge.d.ts +477 -0
- package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-merge.js +92 -0
- package/dist/alphalib/types/robots/image-merge.js.map +1 -0
- package/dist/alphalib/types/robots/image-ocr.d.ts +441 -0
- package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-ocr.js +79 -0
- package/dist/alphalib/types/robots/image-ocr.js.map +1 -0
- package/dist/alphalib/types/robots/image-optimize.d.ts +453 -0
- package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-optimize.js +81 -0
- package/dist/alphalib/types/robots/image-optimize.js.map +1 -0
- package/dist/alphalib/types/robots/image-resize.d.ts +1758 -0
- package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -0
- package/dist/alphalib/types/robots/image-resize.js +602 -0
- package/dist/alphalib/types/robots/image-resize.js.map +1 -0
- package/dist/alphalib/types/robots/meta-read.d.ts +98 -0
- package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -0
- package/dist/alphalib/types/robots/meta-read.js +24 -0
- package/dist/alphalib/types/robots/meta-read.js.map +1 -0
- package/dist/alphalib/types/robots/meta-write.d.ts +2842 -0
- package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -0
- package/dist/alphalib/types/robots/meta-write.js +66 -0
- package/dist/alphalib/types/robots/meta-write.js.map +1 -0
- package/dist/alphalib/types/robots/minio-import.d.ts +234 -0
- package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/minio-import.js +81 -0
- package/dist/alphalib/types/robots/minio-import.js.map +1 -0
- package/dist/alphalib/types/robots/minio-store.d.ts +514 -0
- package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/minio-store.js +87 -0
- package/dist/alphalib/types/robots/minio-store.js.map +1 -0
- package/dist/alphalib/types/robots/progress-simulate.d.ts +229 -0
- package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -0
- package/dist/alphalib/types/robots/progress-simulate.js +25 -0
- package/dist/alphalib/types/robots/progress-simulate.js.map +1 -0
- package/dist/alphalib/types/robots/s3-import.d.ts +246 -0
- package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/s3-import.js +137 -0
- package/dist/alphalib/types/robots/s3-import.js.map +1 -0
- package/dist/alphalib/types/robots/s3-store.d.ts +593 -0
- package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/s3-store.js +169 -0
- package/dist/alphalib/types/robots/s3-store.js.map +1 -0
- package/dist/alphalib/types/robots/script-run.d.ts +423 -0
- package/dist/alphalib/types/robots/script-run.d.ts.map +1 -0
- package/dist/alphalib/types/robots/script-run.js +95 -0
- package/dist/alphalib/types/robots/script-run.js.map +1 -0
- package/dist/alphalib/types/robots/sftp-import.d.ts +192 -0
- package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/sftp-import.js +62 -0
- package/dist/alphalib/types/robots/sftp-import.js.map +1 -0
- package/dist/alphalib/types/robots/sftp-store.d.ts +520 -0
- package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/sftp-store.js +83 -0
- package/dist/alphalib/types/robots/sftp-store.js.map +1 -0
- package/dist/alphalib/types/robots/speech-transcribe.d.ts +465 -0
- package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -0
- package/dist/alphalib/types/robots/speech-transcribe.js +103 -0
- package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -0
- package/dist/alphalib/types/robots/supabase-import.d.ts +246 -0
- package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/supabase-import.js +83 -0
- package/dist/alphalib/types/robots/supabase-import.js.map +1 -0
- package/dist/alphalib/types/robots/supabase-store.d.ts +514 -0
- package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/supabase-store.js +77 -0
- package/dist/alphalib/types/robots/supabase-store.js.map +1 -0
- package/dist/alphalib/types/robots/swift-import.d.ts +246 -0
- package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/swift-import.js +81 -0
- package/dist/alphalib/types/robots/swift-import.js.map +1 -0
- package/dist/alphalib/types/robots/swift-store.d.ts +526 -0
- package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/swift-store.js +84 -0
- package/dist/alphalib/types/robots/swift-store.js.map +1 -0
- package/dist/alphalib/types/robots/text-speak.d.ts +465 -0
- package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -0
- package/dist/alphalib/types/robots/text-speak.js +119 -0
- package/dist/alphalib/types/robots/text-speak.js.map +1 -0
- package/dist/alphalib/types/robots/text-translate.d.ts +441 -0
- package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -0
- package/dist/alphalib/types/robots/text-translate.js +211 -0
- package/dist/alphalib/types/robots/text-translate.js.map +1 -0
- package/dist/alphalib/types/robots/tigris-import.d.ts +244 -0
- package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/tigris-import.js +85 -0
- package/dist/alphalib/types/robots/tigris-import.js.map +1 -0
- package/dist/alphalib/types/robots/tigris-store.d.ts +524 -0
- package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/tigris-store.js +91 -0
- package/dist/alphalib/types/robots/tigris-store.js.map +1 -0
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +100 -0
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -0
- package/dist/alphalib/types/robots/tlcdn-deliver.js +46 -0
- package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -0
- package/dist/alphalib/types/robots/tus-store.d.ts +477 -0
- package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/tus-store.js +102 -0
- package/dist/alphalib/types/robots/tus-store.js.map +1 -0
- package/dist/alphalib/types/robots/upload-handle.d.ts +100 -0
- package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -0
- package/dist/alphalib/types/robots/upload-handle.js +66 -0
- package/dist/alphalib/types/robots/upload-handle.js.map +1 -0
- package/dist/alphalib/types/robots/video-adaptive.d.ts +2915 -0
- package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -0
- package/dist/alphalib/types/robots/video-adaptive.js +144 -0
- package/dist/alphalib/types/robots/video-adaptive.js.map +1 -0
- package/dist/alphalib/types/robots/video-concat.d.ts +2891 -0
- package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -0
- package/dist/alphalib/types/robots/video-concat.js +96 -0
- package/dist/alphalib/types/robots/video-concat.js.map +1 -0
- package/dist/alphalib/types/robots/video-encode.d.ts +3280 -0
- package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -0
- package/dist/alphalib/types/robots/video-encode.js +107 -0
- package/dist/alphalib/types/robots/video-encode.js.map +1 -0
- package/dist/alphalib/types/robots/video-merge.d.ts +2987 -0
- package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -0
- package/dist/alphalib/types/robots/video-merge.js +102 -0
- package/dist/alphalib/types/robots/video-merge.js.map +1 -0
- package/dist/alphalib/types/robots/video-ondemand.d.ts +4553 -0
- package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -0
- package/dist/alphalib/types/robots/video-ondemand.js +112 -0
- package/dist/alphalib/types/robots/video-ondemand.js.map +1 -0
- package/dist/alphalib/types/robots/video-subtitle.d.ts +2975 -0
- package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -0
- package/dist/alphalib/types/robots/video-subtitle.js +122 -0
- package/dist/alphalib/types/robots/video-subtitle.js.map +1 -0
- package/dist/alphalib/types/robots/video-thumbs.d.ts +2938 -0
- package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -0
- package/dist/alphalib/types/robots/video-thumbs.js +122 -0
- package/dist/alphalib/types/robots/video-thumbs.js.map +1 -0
- package/dist/alphalib/types/robots/vimeo-import.d.ts +189 -0
- package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/vimeo-import.js +92 -0
- package/dist/alphalib/types/robots/vimeo-import.js.map +1 -0
- package/dist/alphalib/types/robots/vimeo-store.d.ts +520 -0
- package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/vimeo-store.js +115 -0
- package/dist/alphalib/types/robots/vimeo-store.js.map +1 -0
- package/dist/alphalib/types/robots/wasabi-import.d.ts +244 -0
- package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -0
- package/dist/alphalib/types/robots/wasabi-import.js +85 -0
- package/dist/alphalib/types/robots/wasabi-import.js.map +1 -0
- package/dist/alphalib/types/robots/wasabi-store.d.ts +526 -0
- package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/wasabi-store.js +85 -0
- package/dist/alphalib/types/robots/wasabi-store.js.map +1 -0
- package/dist/alphalib/types/robots/youtube-store.d.ts +477 -0
- package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -0
- package/dist/alphalib/types/robots/youtube-store.js +122 -0
- package/dist/alphalib/types/robots/youtube-store.js.map +1 -0
- package/dist/alphalib/types/stackVersions.d.ts +13 -0
- package/dist/alphalib/types/stackVersions.d.ts.map +1 -0
- package/dist/alphalib/types/stackVersions.js +13 -0
- package/dist/alphalib/types/stackVersions.js.map +1 -0
- package/dist/alphalib/types/template.d.ts +131710 -0
- package/dist/alphalib/types/template.d.ts.map +1 -0
- package/dist/alphalib/types/template.js +218 -0
- package/dist/alphalib/types/template.js.map +1 -0
- package/dist/alphalib/types/templateCredential.d.ts +95 -0
- package/dist/alphalib/types/templateCredential.d.ts.map +1 -0
- package/dist/alphalib/types/templateCredential.js +57 -0
- package/dist/alphalib/types/templateCredential.js.map +1 -0
- package/dist/alphalib/zodParseWithContext.d.ts +17 -0
- package/dist/alphalib/zodParseWithContext.d.ts.map +1 -0
- package/dist/alphalib/zodParseWithContext.js +248 -0
- package/dist/alphalib/zodParseWithContext.js.map +1 -0
- package/dist/apiTypes.d.ts +112 -0
- package/dist/apiTypes.d.ts.map +1 -0
- package/dist/apiTypes.js +3 -0
- package/dist/apiTypes.js.map +1 -0
- package/dist/cli/OutputCtl.d.ts +47 -0
- package/dist/cli/OutputCtl.d.ts.map +1 -0
- package/dist/cli/OutputCtl.js +85 -0
- package/dist/cli/OutputCtl.js.map +1 -0
- package/dist/cli/commands/BaseCommand.d.ts +24 -0
- package/dist/cli/commands/BaseCommand.d.ts.map +1 -0
- package/dist/cli/commands/BaseCommand.js +52 -0
- package/dist/cli/commands/BaseCommand.js.map +1 -0
- package/dist/cli/commands/assemblies.d.ts +93 -0
- package/dist/cli/commands/assemblies.d.ts.map +1 -0
- package/dist/cli/commands/assemblies.js +1021 -0
- package/dist/cli/commands/assemblies.js.map +1 -0
- package/dist/cli/commands/auth.d.ts +28 -0
- package/dist/cli/commands/auth.d.ts.map +1 -0
- package/dist/cli/commands/auth.js +280 -0
- package/dist/cli/commands/auth.js.map +1 -0
- package/dist/cli/commands/bills.d.ts +14 -0
- package/dist/cli/commands/bills.d.ts.map +1 -0
- package/dist/cli/commands/bills.js +69 -0
- package/dist/cli/commands/bills.js.map +1 -0
- package/dist/cli/commands/index.d.ts +3 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +39 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/notifications.d.ts +9 -0
- package/dist/cli/commands/notifications.d.ts.map +1 -0
- package/dist/cli/commands/notifications.js +44 -0
- package/dist/cli/commands/notifications.js.map +1 -0
- package/dist/cli/commands/templates.d.ts +73 -0
- package/dist/cli/commands/templates.d.ts.map +1 -0
- package/dist/cli/commands/templates.js +428 -0
- package/dist/cli/commands/templates.js.map +1 -0
- package/dist/cli/helpers.d.ts +13 -0
- package/dist/cli/helpers.d.ts.map +1 -0
- package/dist/cli/helpers.js +39 -0
- package/dist/cli/helpers.js.map +1 -0
- package/dist/cli/template-last-modified.d.ts +10 -0
- package/dist/cli/template-last-modified.d.ts.map +1 -0
- package/dist/cli/template-last-modified.js +134 -0
- package/dist/cli/template-last-modified.js.map +1 -0
- package/dist/cli/types.d.ts +78 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.js +49 -0
- package/dist/cli/types.js.map +1 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +41 -0
- package/dist/cli.js.map +1 -0
- package/dist/tus.d.ts +18 -0
- package/dist/tus.d.ts.map +1 -0
- package/dist/tus.js +122 -0
- package/dist/tus.js.map +1 -0
- package/package.json +92 -0
- package/src/ApiError.ts +49 -0
- package/src/InconsistentResponseError.ts +3 -0
- package/src/PaginationStream.ts +54 -0
- package/src/PollingTimeoutError.ts +5 -0
- package/src/Transloadit.ts +980 -0
- package/src/alphalib/lib/nativeGlobby.ts +244 -0
- package/src/alphalib/mcache.ts +184 -0
- package/src/alphalib/tryCatch.ts +30 -0
- package/src/alphalib/types/assembliesGet.ts +42 -0
- package/src/alphalib/types/assemblyReplay.ts +24 -0
- package/src/alphalib/types/assemblyReplayNotification.ts +16 -0
- package/src/alphalib/types/assemblyStatus.ts +794 -0
- package/src/alphalib/types/bill.ts +9 -0
- package/src/alphalib/types/robots/_index.ts +1201 -0
- package/src/alphalib/types/robots/_instructions-primitives.ts +1770 -0
- package/src/alphalib/types/robots/ai-chat.ts +278 -0
- package/src/alphalib/types/robots/assembly-savejson.ts +37 -0
- package/src/alphalib/types/robots/audio-artwork.ts +107 -0
- package/src/alphalib/types/robots/audio-concat.ts +142 -0
- package/src/alphalib/types/robots/audio-encode.ts +103 -0
- package/src/alphalib/types/robots/audio-loop.ts +102 -0
- package/src/alphalib/types/robots/audio-merge.ts +137 -0
- package/src/alphalib/types/robots/audio-waveform.ts +280 -0
- package/src/alphalib/types/robots/azure-import.ts +111 -0
- package/src/alphalib/types/robots/azure-store.ts +143 -0
- package/src/alphalib/types/robots/backblaze-import.ts +119 -0
- package/src/alphalib/types/robots/backblaze-store.ts +104 -0
- package/src/alphalib/types/robots/cloudfiles-import.ts +118 -0
- package/src/alphalib/types/robots/cloudfiles-store.ts +104 -0
- package/src/alphalib/types/robots/cloudflare-import.ts +121 -0
- package/src/alphalib/types/robots/cloudflare-store.ts +120 -0
- package/src/alphalib/types/robots/digitalocean-import.ts +118 -0
- package/src/alphalib/types/robots/digitalocean-store.ts +125 -0
- package/src/alphalib/types/robots/document-autorotate.ts +74 -0
- package/src/alphalib/types/robots/document-convert.ts +302 -0
- package/src/alphalib/types/robots/document-merge.ts +114 -0
- package/src/alphalib/types/robots/document-ocr.ts +120 -0
- package/src/alphalib/types/robots/document-split.ts +78 -0
- package/src/alphalib/types/robots/document-thumbs.ts +231 -0
- package/src/alphalib/types/robots/dropbox-import.ts +100 -0
- package/src/alphalib/types/robots/dropbox-store.ts +97 -0
- package/src/alphalib/types/robots/edgly-deliver.ts +73 -0
- package/src/alphalib/types/robots/file-compress.ts +167 -0
- package/src/alphalib/types/robots/file-decompress.ts +125 -0
- package/src/alphalib/types/robots/file-filter.ts +173 -0
- package/src/alphalib/types/robots/file-hash.ts +86 -0
- package/src/alphalib/types/robots/file-preview.ts +260 -0
- package/src/alphalib/types/robots/file-read.ts +71 -0
- package/src/alphalib/types/robots/file-serve.ts +128 -0
- package/src/alphalib/types/robots/file-verify.ts +102 -0
- package/src/alphalib/types/robots/file-virusscan.ts +113 -0
- package/src/alphalib/types/robots/file-watermark.ts +56 -0
- package/src/alphalib/types/robots/ftp-import.ts +95 -0
- package/src/alphalib/types/robots/ftp-store.ts +119 -0
- package/src/alphalib/types/robots/google-import.ts +115 -0
- package/src/alphalib/types/robots/google-store.ts +139 -0
- package/src/alphalib/types/robots/html-convert.ts +165 -0
- package/src/alphalib/types/robots/http-import.ts +168 -0
- package/src/alphalib/types/robots/image-bgremove.ts +95 -0
- package/src/alphalib/types/robots/image-describe.ts +121 -0
- package/src/alphalib/types/robots/image-facedetect.ts +187 -0
- package/src/alphalib/types/robots/image-generate.ts +92 -0
- package/src/alphalib/types/robots/image-merge.ts +127 -0
- package/src/alphalib/types/robots/image-ocr.ts +112 -0
- package/src/alphalib/types/robots/image-optimize.ts +114 -0
- package/src/alphalib/types/robots/image-resize.ts +653 -0
- package/src/alphalib/types/robots/meta-read.ts +44 -0
- package/src/alphalib/types/robots/meta-write.ts +93 -0
- package/src/alphalib/types/robots/minio-import.ts +120 -0
- package/src/alphalib/types/robots/minio-store.ts +115 -0
- package/src/alphalib/types/robots/progress-simulate.ts +40 -0
- package/src/alphalib/types/robots/s3-import.ts +175 -0
- package/src/alphalib/types/robots/s3-store.ts +198 -0
- package/src/alphalib/types/robots/script-run.ts +122 -0
- package/src/alphalib/types/robots/sftp-import.ts +92 -0
- package/src/alphalib/types/robots/sftp-store.ts +110 -0
- package/src/alphalib/types/robots/speech-transcribe.ts +139 -0
- package/src/alphalib/types/robots/supabase-import.ts +122 -0
- package/src/alphalib/types/robots/supabase-store.ts +105 -0
- package/src/alphalib/types/robots/swift-import.ts +120 -0
- package/src/alphalib/types/robots/swift-store.ts +112 -0
- package/src/alphalib/types/robots/text-speak.ts +152 -0
- package/src/alphalib/types/robots/text-translate.ts +245 -0
- package/src/alphalib/types/robots/tigris-import.ts +124 -0
- package/src/alphalib/types/robots/tigris-store.ts +119 -0
- package/src/alphalib/types/robots/tlcdn-deliver.ts +73 -0
- package/src/alphalib/types/robots/tus-store.ts +129 -0
- package/src/alphalib/types/robots/upload-handle.ts +95 -0
- package/src/alphalib/types/robots/video-adaptive.ts +179 -0
- package/src/alphalib/types/robots/video-concat.ts +130 -0
- package/src/alphalib/types/robots/video-encode.ts +141 -0
- package/src/alphalib/types/robots/video-merge.ts +138 -0
- package/src/alphalib/types/robots/video-ondemand.ts +161 -0
- package/src/alphalib/types/robots/video-subtitle.ts +159 -0
- package/src/alphalib/types/robots/video-thumbs.ts +158 -0
- package/src/alphalib/types/robots/vimeo-import.ts +126 -0
- package/src/alphalib/types/robots/vimeo-store.ts +143 -0
- package/src/alphalib/types/robots/wasabi-import.ts +124 -0
- package/src/alphalib/types/robots/wasabi-store.ts +113 -0
- package/src/alphalib/types/robots/youtube-store.ts +153 -0
- package/src/alphalib/types/stackVersions.ts +12 -0
- package/src/alphalib/types/template.ts +277 -0
- package/src/alphalib/types/templateCredential.ts +61 -0
- package/src/alphalib/zodParseWithContext.ts +306 -0
- package/src/apiTypes.ts +154 -0
- package/src/cli/OutputCtl.ts +115 -0
- package/src/cli/commands/BaseCommand.ts +71 -0
- package/src/cli/commands/assemblies.ts +1373 -0
- package/src/cli/commands/auth.ts +354 -0
- package/src/cli/commands/bills.ts +91 -0
- package/src/cli/commands/index.ts +65 -0
- package/src/cli/commands/notifications.ts +63 -0
- package/src/cli/commands/templates.ts +556 -0
- package/src/cli/helpers.ts +50 -0
- package/src/cli/template-last-modified.ts +156 -0
- package/src/cli/types.ts +70 -0
- package/src/cli.ts +44 -0
- package/src/tus.ts +168 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
|
+
import {
|
|
5
|
+
colorspaceSchema,
|
|
6
|
+
interpolateRobot,
|
|
7
|
+
robotBase,
|
|
8
|
+
robotImagemagick,
|
|
9
|
+
robotUse,
|
|
10
|
+
} from './_instructions-primitives.ts'
|
|
11
|
+
|
|
12
|
+
export const meta: RobotMetaInput = {
|
|
13
|
+
allowed_for_url_transform: true,
|
|
14
|
+
bytescount: 1,
|
|
15
|
+
discount_factor: 1,
|
|
16
|
+
discount_pct: 0,
|
|
17
|
+
example_code: {
|
|
18
|
+
steps: {
|
|
19
|
+
thumbnailed: {
|
|
20
|
+
use: ':original',
|
|
21
|
+
robot: '/document/thumbs',
|
|
22
|
+
width: 200,
|
|
23
|
+
resize_strategy: 'fit',
|
|
24
|
+
trim_whitespace: false,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
example_code_description: 'Convert all pages of a PDF document into separate 200px-wide images:',
|
|
29
|
+
minimum_charge: 524288,
|
|
30
|
+
output_factor: 1,
|
|
31
|
+
override_lvl1: 'Document Processing',
|
|
32
|
+
purpose_sentence:
|
|
33
|
+
'generates an image for each page in a PDF file or an animated GIF file that loops through all pages',
|
|
34
|
+
purpose_verb: 'extract',
|
|
35
|
+
purpose_word: 'thumbnail',
|
|
36
|
+
purpose_words: 'Extract thumbnail images from documents',
|
|
37
|
+
service_slug: 'document-processing',
|
|
38
|
+
slot_count: 10,
|
|
39
|
+
title: 'Extract thumbnail images from documents',
|
|
40
|
+
typical_file_size_mb: 0.8,
|
|
41
|
+
typical_file_type: 'document',
|
|
42
|
+
uses_tools: ['imagemagick'],
|
|
43
|
+
name: 'DocumentThumbsRobot',
|
|
44
|
+
priceFactor: 1,
|
|
45
|
+
queueSlotCount: 60,
|
|
46
|
+
minimumCharge: 524288,
|
|
47
|
+
isAllowedForUrlTransform: true,
|
|
48
|
+
trackOutputFileSize: true,
|
|
49
|
+
isInternal: false,
|
|
50
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
51
|
+
stage: 'ga',
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const robotDocumentThumbsInstructionsSchema = robotBase
|
|
55
|
+
.merge(robotUse)
|
|
56
|
+
.merge(robotImagemagick)
|
|
57
|
+
.extend({
|
|
58
|
+
robot: z.literal('/document/thumbs').describe(`
|
|
59
|
+
## Things to keep in mind
|
|
60
|
+
|
|
61
|
+
- If you convert a multi-page PDF file into several images, all result images will be sorted with the first image being the thumbnail of the first document page, etc.
|
|
62
|
+
- You can also check the \`meta.thumb_index\` key of each result image to find out which page it corresponds to. Keep in mind that these thumb indices **start at 0,** not at 1.
|
|
63
|
+
`),
|
|
64
|
+
page: z
|
|
65
|
+
.number()
|
|
66
|
+
.int()
|
|
67
|
+
.nullable()
|
|
68
|
+
.default(null)
|
|
69
|
+
.describe(`
|
|
70
|
+
The PDF page that you want to convert to an image. By default the value is \`null\` which means that all pages will be converted into images.
|
|
71
|
+
`),
|
|
72
|
+
format: z
|
|
73
|
+
.enum(['gif', 'jpeg', 'jpg', 'png'])
|
|
74
|
+
.default('png')
|
|
75
|
+
.describe(`
|
|
76
|
+
The format of the extracted image(s).
|
|
77
|
+
|
|
78
|
+
If you specify the value \`"gif"\`, then an animated gif cycling through all pages is created. Please check out [this demo](/demos/document-processing/convert-all-pages-of-a-document-into-an-animated-gif/) to learn more about this.
|
|
79
|
+
`),
|
|
80
|
+
delay: z
|
|
81
|
+
.number()
|
|
82
|
+
.int()
|
|
83
|
+
.min(0)
|
|
84
|
+
.optional()
|
|
85
|
+
.describe(`
|
|
86
|
+
If your output format is \`"gif"\` then this parameter sets the number of 100th seconds to pass before the next frame is shown in the animation. Set this to \`100\` for example to allow 1 second to pass between the frames of the animated gif.
|
|
87
|
+
|
|
88
|
+
If your output format is not \`"gif"\`, then this parameter does not have any effect.
|
|
89
|
+
`),
|
|
90
|
+
width: z
|
|
91
|
+
.number()
|
|
92
|
+
.int()
|
|
93
|
+
.min(1)
|
|
94
|
+
.max(5000)
|
|
95
|
+
.optional()
|
|
96
|
+
.describe(`
|
|
97
|
+
Width of the new image, in pixels. If not specified, will default to the width of the input image
|
|
98
|
+
`),
|
|
99
|
+
height: z
|
|
100
|
+
.number()
|
|
101
|
+
.int()
|
|
102
|
+
.min(1)
|
|
103
|
+
.max(5000)
|
|
104
|
+
.optional()
|
|
105
|
+
.describe(`
|
|
106
|
+
Height of the new image, in pixels. If not specified, will default to the height of the input image
|
|
107
|
+
`),
|
|
108
|
+
resize_strategy: z
|
|
109
|
+
.enum(['crop', 'fillcrop', 'fit', 'min_fit', 'pad', 'stretch'])
|
|
110
|
+
.default('pad')
|
|
111
|
+
.describe(`
|
|
112
|
+
One of the [available resize strategies](/docs/topics/resize-strategies/).
|
|
113
|
+
`),
|
|
114
|
+
// TODO: Determine the allowed colors
|
|
115
|
+
background: z
|
|
116
|
+
.string()
|
|
117
|
+
.default('#FFFFFF')
|
|
118
|
+
.describe(`
|
|
119
|
+
Either the hexadecimal code or [name](https://www.imagemagick.org/script/color.php#color_names) of the color used to fill the background (only used for the pad resize strategy).
|
|
120
|
+
|
|
121
|
+
By default, the background of transparent images is changed to white. For details about how to preserve transparency across all image types, see [this demo](/demos/image-manipulation/properly-preserve-transparency-across-all-image-types/).
|
|
122
|
+
`),
|
|
123
|
+
// TODO: Update options list. Why are they capitalized? They are lowercase in th ImageMagick docs.
|
|
124
|
+
alpha: z
|
|
125
|
+
.enum(['Remove', 'Set'])
|
|
126
|
+
.optional()
|
|
127
|
+
.describe(`
|
|
128
|
+
Change how the alpha channel of the resulting image should work. Valid values are \`"Set"\` to enable transparency and \`"Remove"\` to remove transparency.
|
|
129
|
+
|
|
130
|
+
For a list of all valid values please check the ImageMagick documentation [here](http://www.imagemagick.org/script/command-line-options.php#alpha).
|
|
131
|
+
`),
|
|
132
|
+
density: z
|
|
133
|
+
.string()
|
|
134
|
+
.regex(/\d+(x\d+)?/)
|
|
135
|
+
.optional()
|
|
136
|
+
.describe(`
|
|
137
|
+
While in-memory quality and file format depth specifies the color resolution, the density of an image is the spatial (space) resolution of the image. That is the density (in pixels per inch) of an image and defines how far apart (or how big) the individual pixels are. It defines the size of the image in real world terms when displayed on devices or printed.
|
|
138
|
+
|
|
139
|
+
You can set this value to a specific \`width\` or in the format \`width\`x\`height\`.
|
|
140
|
+
|
|
141
|
+
If your converted image has a low resolution, please try using the density parameter to resolve that.
|
|
142
|
+
`),
|
|
143
|
+
antialiasing: z
|
|
144
|
+
.boolean()
|
|
145
|
+
.default(false)
|
|
146
|
+
.describe(`
|
|
147
|
+
Controls whether or not antialiasing is used to remove jagged edges from text or images in a document.
|
|
148
|
+
`),
|
|
149
|
+
colorspace: colorspaceSchema.optional().describe(`
|
|
150
|
+
Sets the image colorspace. For details about the available values, see the [ImageMagick documentation](https://www.imagemagick.org/script/command-line-options.php#colorspace).
|
|
151
|
+
|
|
152
|
+
Please note that if you were using \`"RGB"\`, we recommend using \`"sRGB"\`. ImageMagick might try to find the most efficient \`colorspace\` based on the color of an image, and default to e.g. \`"Gray"\`. To force colors, you might then have to use this parameter.
|
|
153
|
+
`),
|
|
154
|
+
trim_whitespace: z
|
|
155
|
+
.boolean()
|
|
156
|
+
.default(true)
|
|
157
|
+
.describe(`
|
|
158
|
+
This determines if additional whitespace around the PDF should first be trimmed away before it is converted to an image. If you set this to \`true\` only the real PDF page contents will be shown in the image.
|
|
159
|
+
|
|
160
|
+
If you need to reflect the PDF's dimensions in your image, it is generally a good idea to set this to \`false\`.
|
|
161
|
+
`),
|
|
162
|
+
pdf_use_cropbox: z
|
|
163
|
+
.boolean()
|
|
164
|
+
.default(true)
|
|
165
|
+
.describe(`
|
|
166
|
+
Some PDF documents lie about their dimensions. For instance they'll say they are landscape, but when opened in decent Desktop readers, it's really in portrait mode. This can happen if the document has a cropbox defined. When this option is enabled (by default), the cropbox is leading in determining the dimensions of the resulting thumbnails.
|
|
167
|
+
`),
|
|
168
|
+
turbo: z
|
|
169
|
+
.boolean()
|
|
170
|
+
.default(true)
|
|
171
|
+
.describe(`
|
|
172
|
+
If you set this to \`false\`, the robot will not emit files as they become available. This is useful if you are only interested in the final result and not in the intermediate steps.
|
|
173
|
+
|
|
174
|
+
Also, extracted pages will be resized a lot faster as they are sent off to other machines for the resizing. This is especially useful for large documents with many pages to get up to 20 times faster processing.
|
|
175
|
+
|
|
176
|
+
Turbo Mode increases pricing, though, in that the input document's file size is added for every extracted page. There are no performance benefits nor increased charges for single-page documents.
|
|
177
|
+
`),
|
|
178
|
+
})
|
|
179
|
+
.strict()
|
|
180
|
+
|
|
181
|
+
export const robotDocumentThumbsInstructionsWithHiddenFieldsSchema =
|
|
182
|
+
robotDocumentThumbsInstructionsSchema.extend({
|
|
183
|
+
result: z
|
|
184
|
+
.union([z.literal('debug'), robotDocumentThumbsInstructionsSchema.shape.result])
|
|
185
|
+
.optional(),
|
|
186
|
+
stack: z
|
|
187
|
+
.string()
|
|
188
|
+
.optional()
|
|
189
|
+
.describe(`
|
|
190
|
+
The image processing stack to use. Defaults to the robot's preferred stack (ImageMagick).
|
|
191
|
+
`),
|
|
192
|
+
// Override to support lowercase for BC:
|
|
193
|
+
alpha: z
|
|
194
|
+
.enum(['Remove', 'Set', 'remove', 'set'])
|
|
195
|
+
.optional()
|
|
196
|
+
.describe(`
|
|
197
|
+
Change how the alpha channel of the resulting image should work. Valid values are \`"Set"\` to enable transparency and \`"Remove"\` to remove transparency. Lowercase values are also accepted for backwards compatibility.
|
|
198
|
+
`),
|
|
199
|
+
// Override to support 'none' for BC
|
|
200
|
+
resize_strategy: z
|
|
201
|
+
.enum(['crop', 'fillcrop', 'fit', 'min_fit', 'pad', 'stretch', 'none'])
|
|
202
|
+
.optional()
|
|
203
|
+
.describe(`
|
|
204
|
+
One of the [available resize strategies](/docs/transcoding/image-manipulation/image-resize/#resize-strategies). The 'none' value is supported for backwards compatibility.
|
|
205
|
+
`),
|
|
206
|
+
})
|
|
207
|
+
|
|
208
|
+
export type RobotDocumentThumbsInstructions = z.infer<typeof robotDocumentThumbsInstructionsSchema>
|
|
209
|
+
export type RobotDocumentThumbsInstructionsWithHiddenFields = z.infer<
|
|
210
|
+
typeof robotDocumentThumbsInstructionsWithHiddenFieldsSchema
|
|
211
|
+
>
|
|
212
|
+
|
|
213
|
+
export const interpolatableRobotDocumentThumbsInstructionsSchema = interpolateRobot(
|
|
214
|
+
robotDocumentThumbsInstructionsSchema,
|
|
215
|
+
)
|
|
216
|
+
export type InterpolatableRobotDocumentThumbsInstructions =
|
|
217
|
+
InterpolatableRobotDocumentThumbsInstructionsInput
|
|
218
|
+
|
|
219
|
+
export type InterpolatableRobotDocumentThumbsInstructionsInput = z.input<
|
|
220
|
+
typeof interpolatableRobotDocumentThumbsInstructionsSchema
|
|
221
|
+
>
|
|
222
|
+
|
|
223
|
+
export const interpolatableRobotDocumentThumbsInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
224
|
+
robotDocumentThumbsInstructionsWithHiddenFieldsSchema,
|
|
225
|
+
)
|
|
226
|
+
export type InterpolatableRobotDocumentThumbsInstructionsWithHiddenFields = z.infer<
|
|
227
|
+
typeof interpolatableRobotDocumentThumbsInstructionsWithHiddenFieldsSchema
|
|
228
|
+
>
|
|
229
|
+
export type InterpolatableRobotDocumentThumbsInstructionsWithHiddenFieldsInput = z.input<
|
|
230
|
+
typeof interpolatableRobotDocumentThumbsInstructionsWithHiddenFieldsSchema
|
|
231
|
+
>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
|
+
import {
|
|
5
|
+
dropboxBase,
|
|
6
|
+
interpolateRobot,
|
|
7
|
+
path,
|
|
8
|
+
robotBase,
|
|
9
|
+
robotImport,
|
|
10
|
+
} from './_instructions-primitives.ts'
|
|
11
|
+
|
|
12
|
+
export const meta: RobotMetaInput = {
|
|
13
|
+
allowed_for_url_transform: true,
|
|
14
|
+
bytescount: 10,
|
|
15
|
+
discount_factor: 0.1,
|
|
16
|
+
discount_pct: 90,
|
|
17
|
+
example_code: {
|
|
18
|
+
steps: {
|
|
19
|
+
imported: {
|
|
20
|
+
robot: '/dropbox/import',
|
|
21
|
+
credentials: 'YOUR_DROPBOX_CREDENTIALS',
|
|
22
|
+
path: 'path/to/files/',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
example_code_description:
|
|
27
|
+
'Import files from the `path/to/files` directory and its subdirectories:',
|
|
28
|
+
has_small_icon: true,
|
|
29
|
+
minimum_charge: 0,
|
|
30
|
+
output_factor: 1,
|
|
31
|
+
override_lvl1: 'File Importing',
|
|
32
|
+
purpose_sentence: 'imports whole directories of files from your Dropbox',
|
|
33
|
+
purpose_verb: 'import',
|
|
34
|
+
purpose_word: 'Dropbox',
|
|
35
|
+
purpose_words: 'Import files from Dropbox',
|
|
36
|
+
requires_credentials: true,
|
|
37
|
+
service_slug: 'file-importing',
|
|
38
|
+
slot_count: 20,
|
|
39
|
+
title: 'Import files from Dropbox',
|
|
40
|
+
typical_file_size_mb: 1.2,
|
|
41
|
+
typical_file_type: 'file',
|
|
42
|
+
name: 'DropboxImportRobot',
|
|
43
|
+
priceFactor: 6.6666,
|
|
44
|
+
queueSlotCount: 20,
|
|
45
|
+
isAllowedForUrlTransform: true,
|
|
46
|
+
trackOutputFileSize: false,
|
|
47
|
+
isInternal: false,
|
|
48
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
49
|
+
stage: 'ga',
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const robotDropboxImportInstructionsSchema = robotBase
|
|
53
|
+
.merge(robotImport)
|
|
54
|
+
.merge(dropboxBase)
|
|
55
|
+
.extend({
|
|
56
|
+
robot: z.literal('/dropbox/import'),
|
|
57
|
+
path: path.describe(`
|
|
58
|
+
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\`.
|
|
59
|
+
|
|
60
|
+
If it points to a directory, indicated by a trailing slash (\`/\`), then all files that are descendants of this directory are recursively imported. For example: \`images/\`.
|
|
61
|
+
|
|
62
|
+
If you want to import all files from the root directory, please use \`/\` as the value here.
|
|
63
|
+
|
|
64
|
+
You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
|
|
65
|
+
`),
|
|
66
|
+
})
|
|
67
|
+
.strict()
|
|
68
|
+
|
|
69
|
+
export const robotDropboxImportInstructionsWithHiddenFieldsSchema =
|
|
70
|
+
robotDropboxImportInstructionsSchema.extend({
|
|
71
|
+
result: z
|
|
72
|
+
.union([z.literal('debug'), robotDropboxImportInstructionsSchema.shape.result])
|
|
73
|
+
.optional(),
|
|
74
|
+
access_token: z.string().optional(), // Legacy field for backward compatibility
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
export type RobotDropboxImportInstructions = z.infer<typeof robotDropboxImportInstructionsSchema>
|
|
78
|
+
export type RobotDropboxImportInstructionsWithHiddenFields = z.infer<
|
|
79
|
+
typeof robotDropboxImportInstructionsWithHiddenFieldsSchema
|
|
80
|
+
>
|
|
81
|
+
|
|
82
|
+
export const interpolatableRobotDropboxImportInstructionsSchema = interpolateRobot(
|
|
83
|
+
robotDropboxImportInstructionsSchema,
|
|
84
|
+
)
|
|
85
|
+
export type InterpolatableRobotDropboxImportInstructions =
|
|
86
|
+
InterpolatableRobotDropboxImportInstructionsInput
|
|
87
|
+
|
|
88
|
+
export type InterpolatableRobotDropboxImportInstructionsInput = z.input<
|
|
89
|
+
typeof interpolatableRobotDropboxImportInstructionsSchema
|
|
90
|
+
>
|
|
91
|
+
|
|
92
|
+
export const interpolatableRobotDropboxImportInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
93
|
+
robotDropboxImportInstructionsWithHiddenFieldsSchema,
|
|
94
|
+
)
|
|
95
|
+
export type InterpolatableRobotDropboxImportInstructionsWithHiddenFields = z.infer<
|
|
96
|
+
typeof interpolatableRobotDropboxImportInstructionsWithHiddenFieldsSchema
|
|
97
|
+
>
|
|
98
|
+
export type InterpolatableRobotDropboxImportInstructionsWithHiddenFieldsInput = z.input<
|
|
99
|
+
typeof interpolatableRobotDropboxImportInstructionsWithHiddenFieldsSchema
|
|
100
|
+
>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
|
+
import { dropboxBase, interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
|
+
|
|
6
|
+
export const meta: RobotMetaInput = {
|
|
7
|
+
allowed_for_url_transform: true,
|
|
8
|
+
bytescount: 6,
|
|
9
|
+
discount_factor: 0.15000150001500018,
|
|
10
|
+
discount_pct: 84.99984999849998,
|
|
11
|
+
example_code: {
|
|
12
|
+
steps: {
|
|
13
|
+
exported: {
|
|
14
|
+
robot: '/dropbox/store',
|
|
15
|
+
use: ':original',
|
|
16
|
+
credentials: 'YOUR_DROPBOX_CREDENTIALS',
|
|
17
|
+
path: 'my_target_folder/${unique_prefix}/${file.url_name}',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
example_code_description: 'Export uploaded files to `my_target_folder` on Dropbox:',
|
|
22
|
+
has_small_icon: true,
|
|
23
|
+
minimum_charge: 0,
|
|
24
|
+
output_factor: 1,
|
|
25
|
+
override_lvl1: 'File Exporting',
|
|
26
|
+
purpose_sentence: 'exports encoding results to Dropbox',
|
|
27
|
+
purpose_verb: 'export',
|
|
28
|
+
purpose_word: 'Dropbox',
|
|
29
|
+
purpose_words: 'Export files to Dropbox',
|
|
30
|
+
service_slug: 'file-exporting',
|
|
31
|
+
slot_count: 10,
|
|
32
|
+
title: 'Export files to Dropbox',
|
|
33
|
+
typical_file_size_mb: 1.2,
|
|
34
|
+
typical_file_type: 'file',
|
|
35
|
+
name: 'DropboxStoreRobot',
|
|
36
|
+
priceFactor: 6.6666,
|
|
37
|
+
queueSlotCount: 10,
|
|
38
|
+
isAllowedForUrlTransform: true,
|
|
39
|
+
trackOutputFileSize: false,
|
|
40
|
+
isInternal: false,
|
|
41
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
42
|
+
stage: 'ga',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const robotDropboxStoreInstructionsSchema = robotBase
|
|
46
|
+
.merge(robotUse)
|
|
47
|
+
.merge(dropboxBase)
|
|
48
|
+
.extend({
|
|
49
|
+
robot: z.literal('/dropbox/store'),
|
|
50
|
+
path: z
|
|
51
|
+
.string()
|
|
52
|
+
.default('${unique_prefix}/${file.url_name}')
|
|
53
|
+
.describe(`
|
|
54
|
+
The path at which the file is to be stored. This may include any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables).
|
|
55
|
+
`),
|
|
56
|
+
create_sharing_link: z
|
|
57
|
+
.boolean()
|
|
58
|
+
.default(false)
|
|
59
|
+
.describe(`
|
|
60
|
+
Whether to create a URL to this file for sharing with other people. This will overwrite the file's \`"url"\` property.
|
|
61
|
+
`),
|
|
62
|
+
})
|
|
63
|
+
.strict()
|
|
64
|
+
|
|
65
|
+
export const robotDropboxStoreInstructionsWithHiddenFieldsSchema =
|
|
66
|
+
robotDropboxStoreInstructionsSchema.extend({
|
|
67
|
+
result: z
|
|
68
|
+
.union([z.literal('debug'), robotDropboxStoreInstructionsSchema.shape.result])
|
|
69
|
+
.optional(),
|
|
70
|
+
access_token: z.string().optional(), // Legacy field for backward compatibility
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
export type RobotDropboxStoreInstructions = z.infer<typeof robotDropboxStoreInstructionsSchema>
|
|
74
|
+
export type RobotDropboxStoreInstructionsInput = z.input<typeof robotDropboxStoreInstructionsSchema>
|
|
75
|
+
export type RobotDropboxStoreInstructionsWithHiddenFields = z.infer<
|
|
76
|
+
typeof robotDropboxStoreInstructionsWithHiddenFieldsSchema
|
|
77
|
+
>
|
|
78
|
+
|
|
79
|
+
export const interpolatableRobotDropboxStoreInstructionsSchema = interpolateRobot(
|
|
80
|
+
robotDropboxStoreInstructionsSchema,
|
|
81
|
+
)
|
|
82
|
+
export type InterpolatableRobotDropboxStoreInstructions =
|
|
83
|
+
InterpolatableRobotDropboxStoreInstructionsInput
|
|
84
|
+
|
|
85
|
+
export type InterpolatableRobotDropboxStoreInstructionsInput = z.input<
|
|
86
|
+
typeof interpolatableRobotDropboxStoreInstructionsSchema
|
|
87
|
+
>
|
|
88
|
+
|
|
89
|
+
export const interpolatableRobotDropboxStoreInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
90
|
+
robotDropboxStoreInstructionsWithHiddenFieldsSchema,
|
|
91
|
+
)
|
|
92
|
+
export type InterpolatableRobotDropboxStoreInstructionsWithHiddenFields = z.infer<
|
|
93
|
+
typeof interpolatableRobotDropboxStoreInstructionsWithHiddenFieldsSchema
|
|
94
|
+
>
|
|
95
|
+
export type InterpolatableRobotDropboxStoreInstructionsWithHiddenFieldsInput = z.input<
|
|
96
|
+
typeof interpolatableRobotDropboxStoreInstructionsWithHiddenFieldsSchema
|
|
97
|
+
>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
3
|
+
import { interpolateRobot, robotBase } from './_instructions-primitives.ts'
|
|
4
|
+
|
|
5
|
+
export const meta: RobotMetaInput = {
|
|
6
|
+
allowed_for_url_transform: false,
|
|
7
|
+
bytescount: 20,
|
|
8
|
+
discount_factor: 0.05,
|
|
9
|
+
discount_pct: 95,
|
|
10
|
+
minimum_charge: 102400,
|
|
11
|
+
output_factor: 1,
|
|
12
|
+
override_lvl1: 'Content Delivery',
|
|
13
|
+
purpose_sentence: 'caches and delivers files globally',
|
|
14
|
+
purpose_verb: 'cache & deliver',
|
|
15
|
+
purpose_word: 'Cache and deliver files',
|
|
16
|
+
purpose_words: 'Cache and deliver files globally',
|
|
17
|
+
service_slug: 'content-delivery',
|
|
18
|
+
slot_count: 0,
|
|
19
|
+
title: 'Cache and deliver files globally',
|
|
20
|
+
typical_file_size_mb: 1.2,
|
|
21
|
+
typical_file_type: 'file',
|
|
22
|
+
name: 'EdglyDeliverRobot',
|
|
23
|
+
priceFactor: 20,
|
|
24
|
+
queueSlotCount: 0,
|
|
25
|
+
minimumCharge: 102400,
|
|
26
|
+
downloadInputFiles: false,
|
|
27
|
+
preserveInputFileUrls: true,
|
|
28
|
+
isAllowedForUrlTransform: false,
|
|
29
|
+
trackOutputFileSize: false,
|
|
30
|
+
isInternal: true,
|
|
31
|
+
stage: 'removed',
|
|
32
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const robotEdglyDeliverInstructionsSchema = robotBase
|
|
36
|
+
.extend({
|
|
37
|
+
robot: z.literal('/edgly/deliver').describe(`
|
|
38
|
+
When you want Transloadit to tranform files on the fly, this <dfn>Robot</dfn> can cache and deliver the results close to your end-user, saving on latency and encoding volume. The use of this <dfn>Robot</dfn> is implicit when you use the <code>edgly.net</code> domain.
|
|
39
|
+
`),
|
|
40
|
+
})
|
|
41
|
+
.strict()
|
|
42
|
+
|
|
43
|
+
export const robotEdglyDeliverInstructionsWithHiddenFieldsSchema =
|
|
44
|
+
robotEdglyDeliverInstructionsSchema.extend({
|
|
45
|
+
result: z
|
|
46
|
+
.union([z.literal('debug'), robotEdglyDeliverInstructionsSchema.shape.result])
|
|
47
|
+
.optional(),
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
export type RobotEdglyDeliverInstructions = z.infer<typeof robotEdglyDeliverInstructionsSchema>
|
|
51
|
+
export type RobotEdglyDeliverInstructionsWithHiddenFields = z.infer<
|
|
52
|
+
typeof robotEdglyDeliverInstructionsWithHiddenFieldsSchema
|
|
53
|
+
>
|
|
54
|
+
|
|
55
|
+
export const interpolatableRobotEdglyDeliverInstructionsSchema = interpolateRobot(
|
|
56
|
+
robotEdglyDeliverInstructionsSchema,
|
|
57
|
+
)
|
|
58
|
+
export type InterpolatableRobotEdglyDeliverInstructions =
|
|
59
|
+
InterpolatableRobotEdglyDeliverInstructionsInput
|
|
60
|
+
|
|
61
|
+
export type InterpolatableRobotEdglyDeliverInstructionsInput = z.input<
|
|
62
|
+
typeof interpolatableRobotEdglyDeliverInstructionsSchema
|
|
63
|
+
>
|
|
64
|
+
|
|
65
|
+
export const interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
66
|
+
robotEdglyDeliverInstructionsWithHiddenFieldsSchema,
|
|
67
|
+
)
|
|
68
|
+
export type InterpolatableRobotEdglyDeliverInstructionsWithHiddenFields = z.infer<
|
|
69
|
+
typeof interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema
|
|
70
|
+
>
|
|
71
|
+
export type InterpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsInput = z.input<
|
|
72
|
+
typeof interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema
|
|
73
|
+
>
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
|
+
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
5
|
+
|
|
6
|
+
export const meta: RobotMetaInput = {
|
|
7
|
+
allowed_for_url_transform: false,
|
|
8
|
+
bytescount: 1,
|
|
9
|
+
discount_factor: 1,
|
|
10
|
+
discount_pct: 0,
|
|
11
|
+
example_code: {
|
|
12
|
+
steps: {
|
|
13
|
+
compressed: {
|
|
14
|
+
robot: '/file/compress',
|
|
15
|
+
use: {
|
|
16
|
+
steps: [':original'],
|
|
17
|
+
bundle_steps: true,
|
|
18
|
+
},
|
|
19
|
+
format: 'zip',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
example_code_description: 'Compress uploaded files into a ZIP archive:',
|
|
24
|
+
extended_description: `
|
|
25
|
+
### Archive structure for the \`"advanced"\` file layout.
|
|
26
|
+
|
|
27
|
+
There are a few things that we kept in mind when designing the \`"advanced"\` archive structure:
|
|
28
|
+
|
|
29
|
+
- There could be naming collisions.
|
|
30
|
+
- You want to know which <dfn>Step</dfn> a result file belongs to.
|
|
31
|
+
- You want to know from which originally uploaded file a result file was generated.
|
|
32
|
+
- Ideally, you want subfolders for a better structure of files.
|
|
33
|
+
|
|
34
|
+
To achieve all this, we have created the following archive file structure.
|
|
35
|
+
|
|
36
|
+
- There is a subfolder for each <dfn>Step</dfn> name that has result files in the archive.
|
|
37
|
+
- Files are named according to the first two letters of the unique original prefix + "_" + the first two letters of the unique prefix + "_" + the original file name. If you do not know what the original prefixes are, please check [our available Assembly variables](/docs/topics/assembly-instructions/#assembly-variables) and look for \`\${unique_original_prefix}\` and \`\${unique_prefix}\`.
|
|
38
|
+
- Files that belong to the \`:original\` <dfn>Step</dfn> (originally uploaded files) do **not** include the first two letters of the \`unique_original_prefix\`.
|
|
39
|
+
- If you are dealing with thumbnails from [🤖/video/thumbs](/docs/robots/video-thumbs/), there is an additional digit representing the order in the file name.
|
|
40
|
+
|
|
41
|
+
Here is an example:
|
|
42
|
+
|
|
43
|
+
\`\`\`yaml
|
|
44
|
+
":original":
|
|
45
|
+
- gh_a.mov # "gh" are the first 2 letters of the unique prefix.
|
|
46
|
+
# "a.mov" was the file name of the uploaded file.
|
|
47
|
+
- ff_b.mov
|
|
48
|
+
"thumbed":
|
|
49
|
+
- gh_e8_thumb_1.jpg # "gh" is the unique original prefix, meaning it's a result of a.mov.
|
|
50
|
+
# "e8" is the file's unique prefix.
|
|
51
|
+
# The "1" shows the thumbnail order.
|
|
52
|
+
- gh_cv_thumb_2.jpg
|
|
53
|
+
- ff_9b_thumb_3.jpg
|
|
54
|
+
"resized":
|
|
55
|
+
- gh_ll_thumb.jpg
|
|
56
|
+
- gh_df_thumb.jpg
|
|
57
|
+
- ff_jk_thumb.jpg # is a child of b.mov, as it starts with "ff"
|
|
58
|
+
\`\`\`
|
|
59
|
+
`,
|
|
60
|
+
minimum_charge: 0,
|
|
61
|
+
output_factor: 1,
|
|
62
|
+
override_lvl1: 'File Compressing',
|
|
63
|
+
purpose_sentence: 'creates archives of files or file conversion results',
|
|
64
|
+
purpose_verb: 'compress',
|
|
65
|
+
purpose_word: 'compress',
|
|
66
|
+
purpose_words: 'Compress files',
|
|
67
|
+
service_slug: 'file-compressing',
|
|
68
|
+
slot_count: 15,
|
|
69
|
+
title: 'Compress files',
|
|
70
|
+
typical_file_size_mb: 1.2,
|
|
71
|
+
typical_file_type: 'file',
|
|
72
|
+
name: 'FileCompressRobot',
|
|
73
|
+
priceFactor: 1,
|
|
74
|
+
queueSlotCount: 15,
|
|
75
|
+
isAllowedForUrlTransform: false,
|
|
76
|
+
trackOutputFileSize: true,
|
|
77
|
+
isInternal: false,
|
|
78
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
79
|
+
stage: 'ga',
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const robotFileCompressInstructionsSchema = robotBase
|
|
83
|
+
.merge(robotUse)
|
|
84
|
+
.extend({
|
|
85
|
+
robot: z.literal('/file/compress'),
|
|
86
|
+
format: z
|
|
87
|
+
.enum(['tar', 'zip'])
|
|
88
|
+
.default('tar')
|
|
89
|
+
.describe(`
|
|
90
|
+
The format of the archive to be created. Supported values are \`"tar"\` and \`"zip"\`.
|
|
91
|
+
|
|
92
|
+
Note that \`"tar"\` without setting \`gzip\` to \`true\` results in an archive that's not compressed in any way.
|
|
93
|
+
`),
|
|
94
|
+
gzip: z
|
|
95
|
+
.boolean()
|
|
96
|
+
.default(false)
|
|
97
|
+
.describe(`
|
|
98
|
+
Determines if the result archive should also be gzipped. Gzip compression is only applied if you use the \`"tar"\` format.
|
|
99
|
+
`),
|
|
100
|
+
password: z
|
|
101
|
+
.string()
|
|
102
|
+
.nullable()
|
|
103
|
+
.default(null)
|
|
104
|
+
.describe(`
|
|
105
|
+
This allows you to encrypt all archive contents with a password and thereby protect it against unauthorized use. To unzip the archive, the user will need to provide the password in a text input field prompt.
|
|
106
|
+
|
|
107
|
+
This parameter has no effect if the format parameter is anything other than \`"zip"\`.
|
|
108
|
+
`),
|
|
109
|
+
compression_level: z
|
|
110
|
+
.number()
|
|
111
|
+
.int()
|
|
112
|
+
.min(-9)
|
|
113
|
+
.max(0)
|
|
114
|
+
.default(-6)
|
|
115
|
+
.describe(`
|
|
116
|
+
Determines how fiercely to try to compress the archive. \`-0\` is compressionless, which is suitable for media that is already compressed. \`-1\` is fastest with lowest compression. \`-9\` is slowest with the highest compression.
|
|
117
|
+
|
|
118
|
+
If you are using \`-0\` in combination with the \`tar\` format with \`gzip\` enabled, consider setting \`gzip: false\` instead. This results in a plain Tar archive, meaning it already has no compression.
|
|
119
|
+
`),
|
|
120
|
+
file_layout: z
|
|
121
|
+
.enum(['advanced', 'simple', 'relative-path'])
|
|
122
|
+
.default('advanced')
|
|
123
|
+
.describe(`
|
|
124
|
+
Determines if the result archive should contain all files in one directory (value for this is \`"simple"\`) or in subfolders according to the explanation below (value for this is \`"advanced"\`). The \`"relative-path"\` option preserves the relative directory structure of the input files.
|
|
125
|
+
|
|
126
|
+
Files with same names are numbered in the \`"simple"\` file layout to avoid naming collisions.
|
|
127
|
+
`),
|
|
128
|
+
archive_name: z
|
|
129
|
+
.string()
|
|
130
|
+
.optional()
|
|
131
|
+
.describe(`
|
|
132
|
+
The name of the archive file to be created (without the file extension).
|
|
133
|
+
`),
|
|
134
|
+
})
|
|
135
|
+
.strict()
|
|
136
|
+
|
|
137
|
+
export const robotFileCompressInstructionsWithHiddenFieldsSchema =
|
|
138
|
+
robotFileCompressInstructionsSchema.extend({
|
|
139
|
+
result: z
|
|
140
|
+
.union([z.literal('debug'), robotFileCompressInstructionsSchema.shape.result])
|
|
141
|
+
.optional(),
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
export type RobotFileCompressInstructions = z.infer<typeof robotFileCompressInstructionsSchema>
|
|
145
|
+
export type RobotFileCompressInstructionsWithHiddenFields = z.infer<
|
|
146
|
+
typeof robotFileCompressInstructionsWithHiddenFieldsSchema
|
|
147
|
+
>
|
|
148
|
+
|
|
149
|
+
export const interpolatableRobotFileCompressInstructionsSchema = interpolateRobot(
|
|
150
|
+
robotFileCompressInstructionsSchema,
|
|
151
|
+
)
|
|
152
|
+
export type InterpolatableRobotFileCompressInstructions =
|
|
153
|
+
InterpolatableRobotFileCompressInstructionsInput
|
|
154
|
+
|
|
155
|
+
export type InterpolatableRobotFileCompressInstructionsInput = z.input<
|
|
156
|
+
typeof interpolatableRobotFileCompressInstructionsSchema
|
|
157
|
+
>
|
|
158
|
+
|
|
159
|
+
export const interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
160
|
+
robotFileCompressInstructionsWithHiddenFieldsSchema,
|
|
161
|
+
)
|
|
162
|
+
export type InterpolatableRobotFileCompressInstructionsWithHiddenFields = z.infer<
|
|
163
|
+
typeof interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema
|
|
164
|
+
>
|
|
165
|
+
export type InterpolatableRobotFileCompressInstructionsWithHiddenFieldsInput = z.input<
|
|
166
|
+
typeof interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema
|
|
167
|
+
>
|