@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,302 @@
|
|
|
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: true,
|
|
8
|
+
bytescount: 1,
|
|
9
|
+
discount_factor: 1,
|
|
10
|
+
discount_pct: 0,
|
|
11
|
+
example_code: {
|
|
12
|
+
steps: {
|
|
13
|
+
converted: {
|
|
14
|
+
robot: '/document/convert',
|
|
15
|
+
use: ':original',
|
|
16
|
+
format: 'pdf',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
example_code_description: 'Convert uploaded files to PDF documents:',
|
|
21
|
+
extended_description: `
|
|
22
|
+
> [!Note]
|
|
23
|
+
> This <dfn>Robot</dfn> can convert files to PDF, but cannot convert PDFs to different formats. If you want to convert PDFs to say, JPEG or TIFF, use [🤖/image/resize](/docs/robots/image-resize/). If you want to turn them into text files or recognize (OCR) them to make them searchable, reach out, as we have a new <dfn>Robot</dfn> in the works for this.
|
|
24
|
+
|
|
25
|
+
Sometimes, a certain file type might not support what you are trying to accomplish. Perhaps your company is trying to automate document formatting, but it only works with docx, so all your docs need to be converted. Or maybe your stored jpg files are taking up too much space and you want a lighter format. Whatever the case, we have you covered.
|
|
26
|
+
|
|
27
|
+
Using this <dfn>Robot</dfn>, you can bypass the issues that certain file types may bring, by converting your file into the most suitable format. This also works in conjunction with our other <dfn>Robots</dfn>, allowing for even greater versatility when using our services.
|
|
28
|
+
|
|
29
|
+
> ![Warning]
|
|
30
|
+
> A general rule of this <dfn>Robot</dfn> is that converting files into an alien format category will result in an error. For example, SRT files can be converted into the VTT format, but not to an image.
|
|
31
|
+
|
|
32
|
+
The following file formats can be converted from:
|
|
33
|
+
|
|
34
|
+
- \`ai\`
|
|
35
|
+
- \`csv\`
|
|
36
|
+
- \`doc\`
|
|
37
|
+
- \`docx\`
|
|
38
|
+
- \`eps\`
|
|
39
|
+
- \`gif\`
|
|
40
|
+
- \`html\`
|
|
41
|
+
- \`jpg\`
|
|
42
|
+
- \`latex\`
|
|
43
|
+
- \`md\`
|
|
44
|
+
- \`oda\`
|
|
45
|
+
- \`odd\`
|
|
46
|
+
- \`odt\`
|
|
47
|
+
- \`ott\`
|
|
48
|
+
- \`png\`
|
|
49
|
+
- \`pot\`
|
|
50
|
+
- \`pps\`
|
|
51
|
+
- \`ppt\`
|
|
52
|
+
- \`pptx\`
|
|
53
|
+
- \`ppz\`
|
|
54
|
+
- \`ps\`
|
|
55
|
+
- \`rtf\`
|
|
56
|
+
- \`rtx\`
|
|
57
|
+
- \`svg\`
|
|
58
|
+
- \`text\`
|
|
59
|
+
- \`txt\`
|
|
60
|
+
- \`xhtml\`
|
|
61
|
+
- \`xla\`
|
|
62
|
+
- \`xls\`
|
|
63
|
+
- \`xlsx\`
|
|
64
|
+
- \`xml\`
|
|
65
|
+
`,
|
|
66
|
+
minimum_charge: 1048576,
|
|
67
|
+
output_factor: 1,
|
|
68
|
+
override_lvl1: 'Document Processing',
|
|
69
|
+
purpose_sentence: 'converts documents into different formats',
|
|
70
|
+
purpose_verb: 'convert',
|
|
71
|
+
purpose_word: 'convert',
|
|
72
|
+
purpose_words: 'Convert documents into different formats',
|
|
73
|
+
service_slug: 'document-processing',
|
|
74
|
+
slot_count: 12,
|
|
75
|
+
title: 'Convert documents into different formats',
|
|
76
|
+
typical_file_size_mb: 0.8,
|
|
77
|
+
typical_file_type: 'document',
|
|
78
|
+
name: 'DocumentConvertRobot',
|
|
79
|
+
priceFactor: 1,
|
|
80
|
+
// This slot count needs to be unique, because unoconv can only process one document at a time,
|
|
81
|
+
// and is also only included in WorkerSlotCalculator::slotsThatFit() when
|
|
82
|
+
// we have enough idle unoconv daemons.
|
|
83
|
+
// We do not want a queue of this Robot to block any other Robot's jobs.
|
|
84
|
+
queueSlotCount: 32,
|
|
85
|
+
minimumCharge: 1048576,
|
|
86
|
+
lazyLoad: true,
|
|
87
|
+
installVersionFile: process.env.API2_UNOCONV_INSTALL_VERSION_FILE || '',
|
|
88
|
+
isAllowedForUrlTransform: true,
|
|
89
|
+
trackOutputFileSize: true,
|
|
90
|
+
// we cannot use coreConfig.numUnoconvDaemons, because it does not live in alphalib
|
|
91
|
+
numDaemons: 8,
|
|
92
|
+
isInternal: false,
|
|
93
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
94
|
+
stage: 'ga',
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const robotDocumentConvertInstructionsSchema = robotBase
|
|
98
|
+
.merge(robotUse)
|
|
99
|
+
.extend({
|
|
100
|
+
robot: z.literal('/document/convert').describe(`
|
|
101
|
+
> [!Note]
|
|
102
|
+
> This Robot can convert files to PDF, but cannot convert PDFs to different formats. If you want to convert PDFs to say, JPEG or TIFF, use [🤖/image/resize](/docs/robots/image-resize/). If you want to turn them into text files or recognize (OCR) them to make them searchable, reach out, as we have a new Robot in the works for this.
|
|
103
|
+
|
|
104
|
+
Sometimes, a certain file type might not support what you are trying to accomplish. Perhaps your company is trying to automate document formatting, but it only works with docx, so all your docs need to be converted. Or maybe your stored jpg files are taking up too much space and you want a lighter format. Whatever the case, we have you covered.
|
|
105
|
+
|
|
106
|
+
Using this Robot, you can bypass the issues that certain file types may bring, by converting your file into the most suitable format. This also works in conjunction with our other Robots, allowing for even greater versatility when using our services.
|
|
107
|
+
|
|
108
|
+
> [!Warning]
|
|
109
|
+
> A general rule of this Robot is that converting files into an alien format category will result in an error. For example, SRT files can be converted into the VTT format, but not to an image.
|
|
110
|
+
|
|
111
|
+
The following file formats can be converted from:
|
|
112
|
+
|
|
113
|
+
- \`ai\`
|
|
114
|
+
- \`csv\`
|
|
115
|
+
- \`doc\`
|
|
116
|
+
- \`docx\`
|
|
117
|
+
- \`eps\`
|
|
118
|
+
- \`gif\`
|
|
119
|
+
- \`html\`
|
|
120
|
+
- \`jpg\`
|
|
121
|
+
- \`latex\`
|
|
122
|
+
- \`md\`
|
|
123
|
+
- \`oda\`
|
|
124
|
+
- \`odd\`
|
|
125
|
+
- \`odt\`
|
|
126
|
+
- \`ott\`
|
|
127
|
+
- \`png\`
|
|
128
|
+
- \`pot\`
|
|
129
|
+
- \`pps\`
|
|
130
|
+
- \`ppt\`
|
|
131
|
+
- \`pptx\`
|
|
132
|
+
- \`ppz\`
|
|
133
|
+
- \`ps\`
|
|
134
|
+
- \`rtf\`
|
|
135
|
+
- \`rtx\`
|
|
136
|
+
- \`svg\`
|
|
137
|
+
- \`text\`
|
|
138
|
+
- \`txt\`
|
|
139
|
+
- \`xhtml\`
|
|
140
|
+
- \`xla\`
|
|
141
|
+
- \`xls\`
|
|
142
|
+
- \`xlsx\`
|
|
143
|
+
- \`xml\`
|
|
144
|
+
`),
|
|
145
|
+
format: z
|
|
146
|
+
.enum([
|
|
147
|
+
'ai',
|
|
148
|
+
'csv',
|
|
149
|
+
'doc',
|
|
150
|
+
'docx',
|
|
151
|
+
'eps',
|
|
152
|
+
'gif',
|
|
153
|
+
'html',
|
|
154
|
+
'jpeg',
|
|
155
|
+
'jpg',
|
|
156
|
+
'latex',
|
|
157
|
+
'oda',
|
|
158
|
+
'odd',
|
|
159
|
+
'odt',
|
|
160
|
+
'ott',
|
|
161
|
+
'pdf',
|
|
162
|
+
'png',
|
|
163
|
+
'pot',
|
|
164
|
+
'pps',
|
|
165
|
+
'ppt',
|
|
166
|
+
'pptx',
|
|
167
|
+
'ppz',
|
|
168
|
+
'ps',
|
|
169
|
+
'rtf',
|
|
170
|
+
'rtx',
|
|
171
|
+
'srt',
|
|
172
|
+
'svg',
|
|
173
|
+
'text',
|
|
174
|
+
'txt',
|
|
175
|
+
'vtt',
|
|
176
|
+
'xhtml',
|
|
177
|
+
'xla',
|
|
178
|
+
'xls',
|
|
179
|
+
'xlsx',
|
|
180
|
+
'xml',
|
|
181
|
+
])
|
|
182
|
+
.describe(`
|
|
183
|
+
The desired format for document conversion.
|
|
184
|
+
`),
|
|
185
|
+
markdown_format: z
|
|
186
|
+
.enum(['commonmark', 'gfm'])
|
|
187
|
+
.default('gfm')
|
|
188
|
+
.describe(`
|
|
189
|
+
Markdown can be represented in several [variants](https://www.iana.org/assignments/markdown-variants/markdown-variants.xhtml), so when using this Robot to transform Markdown into HTML please specify which revision is being used.
|
|
190
|
+
`),
|
|
191
|
+
markdown_theme: z
|
|
192
|
+
.enum(['bare', 'github'])
|
|
193
|
+
.default('github')
|
|
194
|
+
.describe(`
|
|
195
|
+
This parameter overhauls your Markdown files styling based on several canned presets.
|
|
196
|
+
`),
|
|
197
|
+
pdf_margin: z
|
|
198
|
+
.string()
|
|
199
|
+
.default('6.25mm,6.25mm,14.11mm,6.25mm')
|
|
200
|
+
.describe(`
|
|
201
|
+
PDF Paper margins, separated by \`,\` and with units.
|
|
202
|
+
|
|
203
|
+
We support the following unit values: \`px\`, \`in\`, \`cm\`, \`mm\`.
|
|
204
|
+
|
|
205
|
+
Currently this parameter is only supported when converting from \`html\`.
|
|
206
|
+
`),
|
|
207
|
+
pdf_print_background: z
|
|
208
|
+
.boolean()
|
|
209
|
+
.default(true)
|
|
210
|
+
.describe(`
|
|
211
|
+
Print PDF background graphics.
|
|
212
|
+
|
|
213
|
+
Currently this parameter is only supported when converting from \`html\`.
|
|
214
|
+
`),
|
|
215
|
+
pdf_format: z
|
|
216
|
+
.enum(['A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'Ledger', 'Legal', 'Letter', 'Tabloid'])
|
|
217
|
+
.default('Letter')
|
|
218
|
+
.describe(`
|
|
219
|
+
PDF paper format.
|
|
220
|
+
|
|
221
|
+
Currently this parameter is only supported when converting from \`html\`.
|
|
222
|
+
`),
|
|
223
|
+
pdf_display_header_footer: z
|
|
224
|
+
.boolean()
|
|
225
|
+
.default(false)
|
|
226
|
+
.describe(`
|
|
227
|
+
Display PDF header and footer.
|
|
228
|
+
|
|
229
|
+
Currently this parameter is only supported when converting from \`html\`.
|
|
230
|
+
`),
|
|
231
|
+
pdf_header_template: z
|
|
232
|
+
.string()
|
|
233
|
+
.optional()
|
|
234
|
+
.describe(`
|
|
235
|
+
HTML template for the PDF print header.
|
|
236
|
+
|
|
237
|
+
Should be valid HTML markup with following classes used to inject printing values into them:
|
|
238
|
+
- \`date\` formatted print date
|
|
239
|
+
- \`title\` document title
|
|
240
|
+
- \`url\` document location
|
|
241
|
+
- \`pageNumber\` current page number
|
|
242
|
+
- \`totalPages\` total pages in the document
|
|
243
|
+
|
|
244
|
+
Currently this parameter is only supported when converting from \`html\`, and requires \`pdf_display_header_footer\` to be enabled.
|
|
245
|
+
|
|
246
|
+
To change the formatting of the HTML element, the \`font-size\` must be specified in a wrapper. For example, to center the page number at the top of a page you'd use the following HTML for the header template:
|
|
247
|
+
|
|
248
|
+
\`\`\`html
|
|
249
|
+
<div style="font-size: 15px; width: 100%; text-align: center;"><span class="pageNumber"></span></div>
|
|
250
|
+
\`\`\`
|
|
251
|
+
`),
|
|
252
|
+
pdf_footer_template: z
|
|
253
|
+
.string()
|
|
254
|
+
.optional()
|
|
255
|
+
.describe(`
|
|
256
|
+
HTML template for the PDF print footer.
|
|
257
|
+
|
|
258
|
+
Should use the same format as the \`pdf_header_template\`.
|
|
259
|
+
|
|
260
|
+
Currently this parameter is only supported when converting from \`html\`, and requires \`pdf_display_header_footer\` to be enabled.
|
|
261
|
+
|
|
262
|
+
To change the formatting of the HTML element, the \`font-size\` must be specified in a wrapper. For example, to center the page number in the footer you'd use the following HTML for the footer template:
|
|
263
|
+
|
|
264
|
+
\`\`\`html
|
|
265
|
+
<div style="font-size: 15px; width: 100%; text-align: center;"><span class="pageNumber"></span></div>
|
|
266
|
+
\`\`\`
|
|
267
|
+
`),
|
|
268
|
+
})
|
|
269
|
+
.strict()
|
|
270
|
+
|
|
271
|
+
export const robotDocumentConvertInstructionsWithHiddenFieldsSchema =
|
|
272
|
+
robotDocumentConvertInstructionsSchema.extend({
|
|
273
|
+
result: z
|
|
274
|
+
.union([z.literal('debug'), robotDocumentConvertInstructionsSchema.shape.result])
|
|
275
|
+
.optional(),
|
|
276
|
+
})
|
|
277
|
+
|
|
278
|
+
export type RobotDocumentConvertInstructions = z.infer<
|
|
279
|
+
typeof robotDocumentConvertInstructionsSchema
|
|
280
|
+
>
|
|
281
|
+
export type RobotDocumentConvertInstructionsWithHiddenFields = z.infer<
|
|
282
|
+
typeof robotDocumentConvertInstructionsWithHiddenFieldsSchema
|
|
283
|
+
>
|
|
284
|
+
|
|
285
|
+
export const interpolatableRobotDocumentConvertInstructionsSchema = interpolateRobot(
|
|
286
|
+
robotDocumentConvertInstructionsSchema,
|
|
287
|
+
)
|
|
288
|
+
export type InterpolatableRobotDocumentConvertInstructions =
|
|
289
|
+
InterpolatableRobotDocumentConvertInstructionsInput
|
|
290
|
+
|
|
291
|
+
export type InterpolatableRobotDocumentConvertInstructionsInput = z.input<
|
|
292
|
+
typeof interpolatableRobotDocumentConvertInstructionsSchema
|
|
293
|
+
>
|
|
294
|
+
|
|
295
|
+
export const interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema =
|
|
296
|
+
interpolateRobot(robotDocumentConvertInstructionsWithHiddenFieldsSchema)
|
|
297
|
+
export type InterpolatableRobotDocumentConvertInstructionsWithHiddenFields = z.infer<
|
|
298
|
+
typeof interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema
|
|
299
|
+
>
|
|
300
|
+
export type InterpolatableRobotDocumentConvertInstructionsWithHiddenFieldsInput = z.input<
|
|
301
|
+
typeof interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema
|
|
302
|
+
>
|
|
@@ -0,0 +1,114 @@
|
|
|
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: true,
|
|
8
|
+
bytescount: 1,
|
|
9
|
+
discount_factor: 1,
|
|
10
|
+
discount_pct: 0,
|
|
11
|
+
example_code: {
|
|
12
|
+
steps: {
|
|
13
|
+
merged: {
|
|
14
|
+
robot: '/document/merge',
|
|
15
|
+
use: {
|
|
16
|
+
steps: [':original'],
|
|
17
|
+
bundle_steps: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
example_code_description: 'Merge all uploaded PDF documents into one:',
|
|
23
|
+
extended_description: `
|
|
24
|
+
> ![Note]
|
|
25
|
+
> This <dfn>Robot</dfn> can merge PDF files only at the moment.
|
|
26
|
+
|
|
27
|
+
Input files are sorted alphanumerically unless you provide the as-syntax in the "use" parameter. For example:
|
|
28
|
+
|
|
29
|
+
\`\`\`json
|
|
30
|
+
{
|
|
31
|
+
"use": [
|
|
32
|
+
{ "name": "my_step_name", "as": "document_2" },
|
|
33
|
+
{ "name": "my_other_step_name", "as": "document_1" }
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
\`\`\`
|
|
37
|
+
`,
|
|
38
|
+
minimum_charge: 1048576,
|
|
39
|
+
output_factor: 1,
|
|
40
|
+
override_lvl1: 'Document Processing',
|
|
41
|
+
purpose_sentence: 'concatenates several PDF documents into a single file',
|
|
42
|
+
purpose_verb: 'convert',
|
|
43
|
+
purpose_word: 'convert',
|
|
44
|
+
purpose_words: 'Merge documents into one',
|
|
45
|
+
service_slug: 'document-processing',
|
|
46
|
+
slot_count: 10,
|
|
47
|
+
title: 'Merge documents into one',
|
|
48
|
+
typical_file_size_mb: 0.8,
|
|
49
|
+
typical_file_type: 'document',
|
|
50
|
+
name: 'DocumentMergeRobot',
|
|
51
|
+
priceFactor: 1,
|
|
52
|
+
queueSlotCount: 10,
|
|
53
|
+
minimumCharge: 1048576,
|
|
54
|
+
isAllowedForUrlTransform: true,
|
|
55
|
+
trackOutputFileSize: true,
|
|
56
|
+
isInternal: false,
|
|
57
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
58
|
+
stage: 'ga',
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const robotDocumentMergeInstructionsSchema = robotBase
|
|
62
|
+
.merge(robotUse)
|
|
63
|
+
.extend({
|
|
64
|
+
robot: z.literal('/document/merge'),
|
|
65
|
+
input_passwords: z
|
|
66
|
+
.array(z.string())
|
|
67
|
+
.default([])
|
|
68
|
+
.describe(`
|
|
69
|
+
An array of passwords for the input documents, in case they are encrypted. The order of passwords must match the order of the documents as they are passed to the /document/merge step.
|
|
70
|
+
|
|
71
|
+
This can be achieved via our as-syntax using "document_1", "document_2", etc if provided. See the demos below.
|
|
72
|
+
|
|
73
|
+
If the as-syntax is not used in the "use" parameter, the documents are sorted alphanumerically based on their filename, and in that order input passwords should be provided.
|
|
74
|
+
`),
|
|
75
|
+
output_password: z
|
|
76
|
+
.string()
|
|
77
|
+
.optional()
|
|
78
|
+
.describe(`
|
|
79
|
+
If not empty, encrypts the output file and makes it accessible only by typing in this password.
|
|
80
|
+
`),
|
|
81
|
+
})
|
|
82
|
+
.strict()
|
|
83
|
+
|
|
84
|
+
export const robotDocumentMergeInstructionsWithHiddenFieldsSchema =
|
|
85
|
+
robotDocumentMergeInstructionsSchema.extend({
|
|
86
|
+
result: z
|
|
87
|
+
.union([z.literal('debug'), robotDocumentMergeInstructionsSchema.shape.result])
|
|
88
|
+
.optional(),
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
export type RobotDocumentMergeInstructions = z.infer<typeof robotDocumentMergeInstructionsSchema>
|
|
92
|
+
export type RobotDocumentMergeInstructionsWithHiddenFields = z.infer<
|
|
93
|
+
typeof robotDocumentMergeInstructionsWithHiddenFieldsSchema
|
|
94
|
+
>
|
|
95
|
+
|
|
96
|
+
export const interpolatableRobotDocumentMergeInstructionsSchema = interpolateRobot(
|
|
97
|
+
robotDocumentMergeInstructionsSchema,
|
|
98
|
+
)
|
|
99
|
+
export type InterpolatableRobotDocumentMergeInstructions =
|
|
100
|
+
InterpolatableRobotDocumentMergeInstructionsInput
|
|
101
|
+
|
|
102
|
+
export type InterpolatableRobotDocumentMergeInstructionsInput = z.input<
|
|
103
|
+
typeof interpolatableRobotDocumentMergeInstructionsSchema
|
|
104
|
+
>
|
|
105
|
+
|
|
106
|
+
export const interpolatableRobotDocumentMergeInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
107
|
+
robotDocumentMergeInstructionsWithHiddenFieldsSchema,
|
|
108
|
+
)
|
|
109
|
+
export type InterpolatableRobotDocumentMergeInstructionsWithHiddenFields = z.infer<
|
|
110
|
+
typeof interpolatableRobotDocumentMergeInstructionsWithHiddenFieldsSchema
|
|
111
|
+
>
|
|
112
|
+
export type InterpolatableRobotDocumentMergeInstructionsWithHiddenFieldsInput = z.input<
|
|
113
|
+
typeof interpolatableRobotDocumentMergeInstructionsWithHiddenFieldsSchema
|
|
114
|
+
>
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
|
+
import {
|
|
5
|
+
aiProviderSchema,
|
|
6
|
+
granularitySchema,
|
|
7
|
+
interpolateRobot,
|
|
8
|
+
robotBase,
|
|
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
|
+
recognized: {
|
|
20
|
+
robot: '/document/ocr',
|
|
21
|
+
use: ':original',
|
|
22
|
+
provider: 'gcp',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
example_code_description: 'Recognize text in an uploaded document and save it to a JSON file:',
|
|
27
|
+
extended_description: `
|
|
28
|
+
> [!Warning]
|
|
29
|
+
> Transloadit aims to be deterministic, but this <dfn>Robot</dfn> uses third-party AI services. The providers (AWS, GCP) will evolve their models over time, giving different responses for the same input PDFs. Avoid relying on exact responses in your tests and application.
|
|
30
|
+
|
|
31
|
+
> [!Note]
|
|
32
|
+
> Currently, this <dfn>Robot</dfn> only supports character recognition for PDFs. To use this <dfn>Robot</dfn> with other document formats, use [/document/convert](/docs/robots/document-convert/) first to convert the document into a PDF.
|
|
33
|
+
`,
|
|
34
|
+
minimum_charge: 1048576,
|
|
35
|
+
output_factor: 1,
|
|
36
|
+
override_lvl1: 'Artificial Intelligence',
|
|
37
|
+
purpose_sentence: 'recognizes text in documents and returns it in a machine-readable format',
|
|
38
|
+
purpose_verb: 'recognize',
|
|
39
|
+
purpose_word: 'recognize text',
|
|
40
|
+
purpose_words: 'Recognize text in documents (OCR)',
|
|
41
|
+
service_slug: 'artificial-intelligence',
|
|
42
|
+
slot_count: 10,
|
|
43
|
+
title: 'Recognize text in documents',
|
|
44
|
+
typical_file_size_mb: 0.8,
|
|
45
|
+
typical_file_type: 'document',
|
|
46
|
+
name: 'DocumentOcrRobot',
|
|
47
|
+
priceFactor: 1,
|
|
48
|
+
queueSlotCount: 10,
|
|
49
|
+
minimumChargeUsdPerDocumentOcrPage: {
|
|
50
|
+
aws: 0.02,
|
|
51
|
+
gcp: 0.015,
|
|
52
|
+
},
|
|
53
|
+
isAllowedForUrlTransform: true,
|
|
54
|
+
trackOutputFileSize: true,
|
|
55
|
+
isInternal: false,
|
|
56
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
57
|
+
stage: 'ga',
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export const robotDocumentOcrInstructionsSchema = robotBase
|
|
61
|
+
.merge(robotUse)
|
|
62
|
+
.extend({
|
|
63
|
+
robot: z.literal('/document/ocr').describe(`
|
|
64
|
+
With this <dfn>Robot</dfn>, you can detect and extract text from PDFs using optical character recognition (OCR).
|
|
65
|
+
|
|
66
|
+
For example, you can use the results to obtain the content of invoices, legal documents or restaurant menus. You can also pass the text down to other <dfn>Robots</dfn> to filter documents that contain (or do not contain) certain phrases.
|
|
67
|
+
`),
|
|
68
|
+
provider: aiProviderSchema.describe(`
|
|
69
|
+
Which AI provider to leverage. Valid values are \`"aws"\` and \`"gcp"\`.
|
|
70
|
+
|
|
71
|
+
Transloadit outsources this task and abstracts the interface so you can expect the same data structures, but different latencies and information being returned. Different cloud vendors have different areas they shine in, and we recommend to try out and see what yields the best results for your use case.
|
|
72
|
+
|
|
73
|
+
AWS supports detection for the following languages: English, Arabic, Russian, German, French, Italian, Portuguese and Spanish. GCP allows for a wider range of languages, with varying levels of support which can be found on the [official documentation](https://cloud.google.com/vision/docs/languages/).
|
|
74
|
+
`),
|
|
75
|
+
granularity: granularitySchema.describe(`
|
|
76
|
+
Whether to return a full response including coordinates for the text (\`"full"\`), or a flat list of the extracted phrases (\`"list"\`). This parameter has no effect if the \`format\` parameter is set to \`"text"\`.
|
|
77
|
+
`),
|
|
78
|
+
format: z
|
|
79
|
+
.enum(['json', 'meta', 'text'])
|
|
80
|
+
.default('json')
|
|
81
|
+
.describe(`
|
|
82
|
+
In what format to return the extracted text.
|
|
83
|
+
- \`"json"\` returns a JSON file.
|
|
84
|
+
- \`"meta"\` does not return a file, but stores the data inside Transloadit's file object (under \`\${file.meta.recognized_text}\`, which is an array of strings) that's passed around between encoding <dfn>Steps</dfn>, so that you can use the values to burn the data into videos, filter on them, etc.
|
|
85
|
+
- \`"text"\` returns the recognized text as a plain UTF-8 encoded text file.
|
|
86
|
+
`),
|
|
87
|
+
})
|
|
88
|
+
.strict()
|
|
89
|
+
|
|
90
|
+
export const robotDocumentOcrInstructionsWithHiddenFieldsSchema =
|
|
91
|
+
robotDocumentOcrInstructionsSchema.extend({
|
|
92
|
+
result: z
|
|
93
|
+
.union([z.literal('debug'), robotDocumentOcrInstructionsSchema.shape.result])
|
|
94
|
+
.optional(),
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
export type RobotDocumentOcrInstructions = z.infer<typeof robotDocumentOcrInstructionsSchema>
|
|
98
|
+
export type RobotDocumentOcrInstructionsWithHiddenFields = z.infer<
|
|
99
|
+
typeof robotDocumentOcrInstructionsWithHiddenFieldsSchema
|
|
100
|
+
>
|
|
101
|
+
|
|
102
|
+
export const interpolatableRobotDocumentOcrInstructionsSchema = interpolateRobot(
|
|
103
|
+
robotDocumentOcrInstructionsSchema,
|
|
104
|
+
)
|
|
105
|
+
export type InterpolatableRobotDocumentOcrInstructions =
|
|
106
|
+
InterpolatableRobotDocumentOcrInstructionsInput
|
|
107
|
+
|
|
108
|
+
export type InterpolatableRobotDocumentOcrInstructionsInput = z.input<
|
|
109
|
+
typeof interpolatableRobotDocumentOcrInstructionsSchema
|
|
110
|
+
>
|
|
111
|
+
|
|
112
|
+
export const interpolatableRobotDocumentOcrInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
113
|
+
robotDocumentOcrInstructionsWithHiddenFieldsSchema,
|
|
114
|
+
)
|
|
115
|
+
export type InterpolatableRobotDocumentOcrInstructionsWithHiddenFields = z.infer<
|
|
116
|
+
typeof interpolatableRobotDocumentOcrInstructionsWithHiddenFieldsSchema
|
|
117
|
+
>
|
|
118
|
+
export type InterpolatableRobotDocumentOcrInstructionsWithHiddenFieldsInput = z.input<
|
|
119
|
+
typeof interpolatableRobotDocumentOcrInstructionsWithHiddenFieldsSchema
|
|
120
|
+
>
|
|
@@ -0,0 +1,78 @@
|
|
|
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: true,
|
|
8
|
+
bytescount: 1,
|
|
9
|
+
discount_factor: 1,
|
|
10
|
+
discount_pct: 0,
|
|
11
|
+
example_code_description: 'Extract single or multiple pages from a PDF document:',
|
|
12
|
+
minimum_charge: 2097152,
|
|
13
|
+
output_factor: 1,
|
|
14
|
+
override_lvl1: 'Document Processing',
|
|
15
|
+
purpose_sentence: 'extracts pages from documents',
|
|
16
|
+
purpose_verb: 'extract',
|
|
17
|
+
purpose_word: 'extracts pages',
|
|
18
|
+
purpose_words: 'Extracts pages',
|
|
19
|
+
service_slug: 'document-processing',
|
|
20
|
+
slot_count: 10,
|
|
21
|
+
title: 'Extract pages from a document',
|
|
22
|
+
typical_file_size_mb: 0.8,
|
|
23
|
+
typical_file_type: 'document',
|
|
24
|
+
name: 'DocumentSplitRobot',
|
|
25
|
+
priceFactor: 1,
|
|
26
|
+
queueSlotCount: 10,
|
|
27
|
+
minimumCharge: 1048576,
|
|
28
|
+
isAllowedForUrlTransform: true,
|
|
29
|
+
trackOutputFileSize: true,
|
|
30
|
+
isInternal: false,
|
|
31
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
32
|
+
stage: 'ga',
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const robotDocumentSplitInstructionsSchema = robotBase
|
|
36
|
+
.merge(robotUse)
|
|
37
|
+
.extend({
|
|
38
|
+
robot: z.literal('/document/split'),
|
|
39
|
+
pages: z
|
|
40
|
+
.union([z.string(), z.array(z.string())])
|
|
41
|
+
.describe(
|
|
42
|
+
'The pages to select from the input PDF and to be included in the output PDF. Each entry can be a single page number (e.g. 5), or a range (e.g. `5-10`). Page numbers start at 1. By default all pages are extracted.',
|
|
43
|
+
)
|
|
44
|
+
.optional(),
|
|
45
|
+
})
|
|
46
|
+
.strict()
|
|
47
|
+
|
|
48
|
+
export const robotDocumentSplitInstructionsWithHiddenFieldsSchema =
|
|
49
|
+
robotDocumentSplitInstructionsSchema.extend({
|
|
50
|
+
result: z
|
|
51
|
+
.union([z.literal('debug'), robotDocumentSplitInstructionsSchema.shape.result])
|
|
52
|
+
.optional(),
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
export type RobotDocumentSplitInstructions = z.infer<typeof robotDocumentSplitInstructionsSchema>
|
|
56
|
+
export type RobotDocumentSplitInstructionsWithHiddenFields = z.infer<
|
|
57
|
+
typeof robotDocumentSplitInstructionsWithHiddenFieldsSchema
|
|
58
|
+
>
|
|
59
|
+
|
|
60
|
+
export const interpolatableRobotDocumentSplitInstructionsSchema = interpolateRobot(
|
|
61
|
+
robotDocumentSplitInstructionsSchema,
|
|
62
|
+
)
|
|
63
|
+
export type InterpolatableRobotDocumentSplitInstructions =
|
|
64
|
+
InterpolatableRobotDocumentSplitInstructionsInput
|
|
65
|
+
|
|
66
|
+
export type InterpolatableRobotDocumentSplitInstructionsInput = z.input<
|
|
67
|
+
typeof interpolatableRobotDocumentSplitInstructionsSchema
|
|
68
|
+
>
|
|
69
|
+
|
|
70
|
+
export const interpolatableRobotDocumentSplitInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
71
|
+
robotDocumentSplitInstructionsWithHiddenFieldsSchema,
|
|
72
|
+
)
|
|
73
|
+
export type InterpolatableRobotDocumentSplitInstructionsWithHiddenFields = z.infer<
|
|
74
|
+
typeof interpolatableRobotDocumentSplitInstructionsWithHiddenFieldsSchema
|
|
75
|
+
>
|
|
76
|
+
export type InterpolatableRobotDocumentSplitInstructionsWithHiddenFieldsInput = z.input<
|
|
77
|
+
typeof interpolatableRobotDocumentSplitInstructionsWithHiddenFieldsSchema
|
|
78
|
+
>
|