@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,71 @@
|
|
|
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: 5,
|
|
9
|
+
discount_factor: 0.2,
|
|
10
|
+
discount_pct: 80,
|
|
11
|
+
minimum_charge: 512000,
|
|
12
|
+
output_factor: 1,
|
|
13
|
+
override_lvl1: 'Document Processing',
|
|
14
|
+
purpose_sentence: 'reads file contents from supported file-types',
|
|
15
|
+
purpose_verb: 'read',
|
|
16
|
+
purpose_word: 'read files',
|
|
17
|
+
purpose_words: 'Read file contents',
|
|
18
|
+
service_slug: 'document-processing',
|
|
19
|
+
slot_count: 5,
|
|
20
|
+
title: 'Read file contents',
|
|
21
|
+
typical_file_size_mb: 1.2,
|
|
22
|
+
typical_file_type: 'file',
|
|
23
|
+
name: 'FileReadRobot',
|
|
24
|
+
priceFactor: 5,
|
|
25
|
+
queueSlotCount: 5,
|
|
26
|
+
minimumCharge: 512000,
|
|
27
|
+
isAllowedForUrlTransform: true,
|
|
28
|
+
isInternal: false,
|
|
29
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
30
|
+
stage: 'ga',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const robotFileReadInstructionsSchema = robotBase
|
|
34
|
+
.merge(robotUse)
|
|
35
|
+
.extend({
|
|
36
|
+
robot: z.literal('/file/read').describe(`
|
|
37
|
+
This <dfn>Robot</dfn> accepts any file, and will read the file using UTF-8 encoding. The result is outputted to \`file.meta.content\` to be accessed in later <dfn>Steps</dfn>.
|
|
38
|
+
|
|
39
|
+
The <dfn>Robot</dfn> currently only accepts files under 500KB.
|
|
40
|
+
`),
|
|
41
|
+
})
|
|
42
|
+
.strict()
|
|
43
|
+
|
|
44
|
+
export const robotFileReadInstructionsWithHiddenFieldsSchema =
|
|
45
|
+
robotFileReadInstructionsSchema.extend({
|
|
46
|
+
result: z.union([z.literal('debug'), robotFileReadInstructionsSchema.shape.result]).optional(),
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
export type RobotFileReadInstructions = z.infer<typeof robotFileReadInstructionsSchema>
|
|
50
|
+
export type RobotFileReadInstructionsWithHiddenFields = z.infer<
|
|
51
|
+
typeof robotFileReadInstructionsWithHiddenFieldsSchema
|
|
52
|
+
>
|
|
53
|
+
|
|
54
|
+
export const interpolatableRobotFileReadInstructionsSchema = interpolateRobot(
|
|
55
|
+
robotFileReadInstructionsSchema,
|
|
56
|
+
)
|
|
57
|
+
export type InterpolatableRobotFileReadInstructions = InterpolatableRobotFileReadInstructionsInput
|
|
58
|
+
|
|
59
|
+
export type InterpolatableRobotFileReadInstructionsInput = z.input<
|
|
60
|
+
typeof interpolatableRobotFileReadInstructionsSchema
|
|
61
|
+
>
|
|
62
|
+
|
|
63
|
+
export const interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
64
|
+
robotFileReadInstructionsWithHiddenFieldsSchema,
|
|
65
|
+
)
|
|
66
|
+
export type InterpolatableRobotFileReadInstructionsWithHiddenFields = z.infer<
|
|
67
|
+
typeof interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema
|
|
68
|
+
>
|
|
69
|
+
export type InterpolatableRobotFileReadInstructionsWithHiddenFieldsInput = z.input<
|
|
70
|
+
typeof interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema
|
|
71
|
+
>
|
|
@@ -0,0 +1,128 @@
|
|
|
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: 4,
|
|
9
|
+
discount_factor: 0.25,
|
|
10
|
+
discount_pct: 75,
|
|
11
|
+
minimum_charge: 0,
|
|
12
|
+
output_factor: 1,
|
|
13
|
+
purpose_sentence: 'serves files to web browsers',
|
|
14
|
+
purpose_verb: 'serve',
|
|
15
|
+
purpose_word: 'Serve files',
|
|
16
|
+
purpose_words: 'Serve files to web browsers',
|
|
17
|
+
service_slug: 'content-delivery',
|
|
18
|
+
slot_count: 0,
|
|
19
|
+
title: 'Serve files to web browsers',
|
|
20
|
+
typical_file_size_mb: 1.2,
|
|
21
|
+
typical_file_type: 'file',
|
|
22
|
+
name: 'FileServeRobot',
|
|
23
|
+
priceFactor: 4,
|
|
24
|
+
queueSlotCount: 0,
|
|
25
|
+
downloadInputFiles: false,
|
|
26
|
+
preserveInputFileUrls: true,
|
|
27
|
+
isAllowedForUrlTransform: true,
|
|
28
|
+
trackOutputFileSize: false,
|
|
29
|
+
isInternal: false,
|
|
30
|
+
stage: 'ga',
|
|
31
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const robotFileServeInstructionsSchema = robotBase
|
|
35
|
+
.merge(robotUse)
|
|
36
|
+
.extend({
|
|
37
|
+
robot: z.literal('/file/serve').describe(`
|
|
38
|
+
When you want Transloadit to tranform files on the fly, you can use this <dfn>Robot</dfn> to determine which <dfn>Step</dfn> of a <dfn>Template</dfn> should be served to the end-user (via a CDN), as well as set extra information on the served files, such as headers. This way you can for instance suggest the CDN for how long to keep cached copies of the result around. By default, as you can see in the \`headers\` parameter, we instruct browsers to cache the result for 72h (\`259200\` seconds) and CDNs to cache the content for 24h (\`86400\` seconds). These values should be adjusted to suit your use case.
|
|
39
|
+
|
|
40
|
+
🤖/file/serve merely acts as the glue layer between our <dfn>Assembly</dfn> engine and serving files over HTTP. It let's you pick the proper result of a series of <dfn>Steps</dfn> via the \`use\` parameter and configure headers on the original content. That is where its responsibilies end, and 🤖/tlcdn/deliver, then takes over to globally distribute this original content across the globe, and make sure that is cached close to your end-users, when they make requests such as <https://my-app.tlcdn.com/resize-img/canoe.jpg?w=500>, another. 🤖/tlcdn/deliver is not a part of your <dfn>Assembly Instructions</dfn>, but it may appear on your invoices as bandwidth charges incur when distributing the cached copies. 🤖/file/serve only charges when the CDN does not have a cached copy and requests to regenerate the original content, which depending on your caching settings could be just once a month, or year, per file/transformation.
|
|
41
|
+
|
|
42
|
+
While theoretically possible, you could use [🤖/file/serve](/docs/robots/file-serve/) directly in HTML files, but we strongly recommend against this, because if your site gets popular and the media URL that /file/serve is handling gets hit one million times, that is one million new image resizes. Wrapping it with a CDN (and thanks to the caching that comes with it) makes sure encoding charges stay low, as well as latencies.
|
|
43
|
+
|
|
44
|
+
Also consider configuring caching headers and cache-control directives to control how content is cached and invalidated on the CDN edge servers, balancing between freshness and efficiency.
|
|
45
|
+
|
|
46
|
+
## Smart CDN Security with Signature Authentication
|
|
47
|
+
|
|
48
|
+
You can leverage [Signature Authentication](/docs/api/authentication/#smart-cdn) to avoid abuse of our encoding platform. Below is a quick Node.js example using our Node SDK, but there are [examples for other languages and SDKs](/docs/api/authentication/#example-code) as well.
|
|
49
|
+
|
|
50
|
+
\`\`\`javascript
|
|
51
|
+
// yarn add transloadit
|
|
52
|
+
// or
|
|
53
|
+
// npm install --save transloadit
|
|
54
|
+
|
|
55
|
+
import { Transloadit } from 'transloadit'
|
|
56
|
+
|
|
57
|
+
const transloadit = new Transloadit({
|
|
58
|
+
authKey: 'YOUR_TRANSLOADIT_KEY',
|
|
59
|
+
authSecret: 'YOUR_TRANSLOADIT_SECRET',
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
const url = transloadit.getSignedSmartCDNUrl({
|
|
63
|
+
workspace: 'YOUR_WORKSPACE',
|
|
64
|
+
template: 'YOUR_TEMPLATE',
|
|
65
|
+
input: 'image.png',
|
|
66
|
+
urlParams: { height: 100, width: 100 },
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
console.log(url)
|
|
70
|
+
\`\`\`
|
|
71
|
+
|
|
72
|
+
This will generate a signed Smart CDN URL that includes authentication parameters, preventing unauthorized access to your transformation endpoints.
|
|
73
|
+
|
|
74
|
+
## More information
|
|
75
|
+
|
|
76
|
+
- [Content Delivery](/services/content-delivery/)
|
|
77
|
+
- [🤖/file/serve](/docs/robots/file-serve/) pricing
|
|
78
|
+
- [🤖/tlcdn/deliver](/docs/robots/tlcdn-deliver/) pricing
|
|
79
|
+
- [File Preview Feature](/blog/2024/06/file-preview-with-smart-cdn/) blog post
|
|
80
|
+
`),
|
|
81
|
+
headers: z
|
|
82
|
+
.record(z.string())
|
|
83
|
+
.default({
|
|
84
|
+
'Access-Control-Allow-Headers':
|
|
85
|
+
'X-Requested-With, Content-Type, Cache-Control, Accept, Content-Length, Transloadit-Client, Authorization',
|
|
86
|
+
'Access-Control-Allow-Methods': 'POST, GET, PUT, DELETE, OPTIONS',
|
|
87
|
+
'Access-Control-Allow-Origin': '*',
|
|
88
|
+
'Cache-Control': 'public, max-age=259200, s-max-age=86400',
|
|
89
|
+
'Content-Type': '${file.mime}; charset=utf-8',
|
|
90
|
+
'Transfer-Encoding': 'chunked',
|
|
91
|
+
'Transloadit-Assembly': '…',
|
|
92
|
+
'Transloadit-RequestID': '…',
|
|
93
|
+
})
|
|
94
|
+
.describe(`
|
|
95
|
+
An object containing a list of headers to be set for a file as we serve it to a CDN/web browser, such as \`{ FileURL: "\${file.url_name}" }\` which will be merged over the defaults, and can include any available [Assembly Variable](/docs/topics/assembly-instructions/#assembly-variables).
|
|
96
|
+
`),
|
|
97
|
+
})
|
|
98
|
+
.strict()
|
|
99
|
+
|
|
100
|
+
export const robotFileServeInstructionsWithHiddenFieldsSchema =
|
|
101
|
+
robotFileServeInstructionsSchema.extend({
|
|
102
|
+
result: z.union([z.literal('debug'), robotFileServeInstructionsSchema.shape.result]).optional(),
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
export type RobotFileServeInstructions = z.infer<typeof robotFileServeInstructionsSchema>
|
|
106
|
+
export type RobotFileServeInstructionsInput = z.input<typeof robotFileServeInstructionsSchema>
|
|
107
|
+
export type RobotFileServeInstructionsWithHiddenFields = z.infer<
|
|
108
|
+
typeof robotFileServeInstructionsWithHiddenFieldsSchema
|
|
109
|
+
>
|
|
110
|
+
|
|
111
|
+
export const interpolatableRobotFileServeInstructionsSchema = interpolateRobot(
|
|
112
|
+
robotFileServeInstructionsSchema,
|
|
113
|
+
)
|
|
114
|
+
export type InterpolatableRobotFileServeInstructions = InterpolatableRobotFileServeInstructionsInput
|
|
115
|
+
|
|
116
|
+
export type InterpolatableRobotFileServeInstructionsInput = z.input<
|
|
117
|
+
typeof interpolatableRobotFileServeInstructionsSchema
|
|
118
|
+
>
|
|
119
|
+
|
|
120
|
+
export const interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
121
|
+
robotFileServeInstructionsWithHiddenFieldsSchema,
|
|
122
|
+
)
|
|
123
|
+
export type InterpolatableRobotFileServeInstructionsWithHiddenFields = z.infer<
|
|
124
|
+
typeof interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema
|
|
125
|
+
>
|
|
126
|
+
export type InterpolatableRobotFileServeInstructionsWithHiddenFieldsInput = z.input<
|
|
127
|
+
typeof interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema
|
|
128
|
+
>
|
|
@@ -0,0 +1,102 @@
|
|
|
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: 4,
|
|
9
|
+
description:
|
|
10
|
+
'/file/verify is a simple Robot that helps ensure that the files you upload are of the type you initially intended. This is especially useful when handling user-generated content, where you may not want to run certain Steps in your Template if the user hasn’t uploaded a file of the correct type. Another use case for /file/verify is when a user uploads a ZIP file, but we find that it has a few damaged files inside when we extract it. Perhaps you don’t want to error out, but only send the good files to a next processing step. With /file/verify, you can do exactly that (assuming the default of `error_on_decline`: `true`).',
|
|
11
|
+
discount_factor: 0.25,
|
|
12
|
+
discount_pct: 75,
|
|
13
|
+
example_code: {
|
|
14
|
+
steps: {
|
|
15
|
+
scanned: {
|
|
16
|
+
robot: '/file/verify',
|
|
17
|
+
use: ':original',
|
|
18
|
+
error_on_decline: true,
|
|
19
|
+
error_msg: 'At least one of the uploaded files was not the desired type',
|
|
20
|
+
verify_to_be: 'image',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
example_code_description: 'Scan the uploaded files and throw an error if they are not images:',
|
|
25
|
+
minimum_charge: 0,
|
|
26
|
+
output_factor: 1,
|
|
27
|
+
override_lvl1: 'File Filtering',
|
|
28
|
+
purpose_sentence: 'verifies your files are the type that you want',
|
|
29
|
+
purpose_verb: 'verify',
|
|
30
|
+
purpose_word: 'verify the file type',
|
|
31
|
+
purpose_words: 'Verify the file type',
|
|
32
|
+
service_slug: 'file-filtering',
|
|
33
|
+
slot_count: 10,
|
|
34
|
+
title: 'Verify the file type',
|
|
35
|
+
typical_file_size_mb: 1.2,
|
|
36
|
+
typical_file_type: 'file',
|
|
37
|
+
name: 'FileVerifyRobot',
|
|
38
|
+
priceFactor: 4,
|
|
39
|
+
queueSlotCount: 10,
|
|
40
|
+
isAllowedForUrlTransform: true,
|
|
41
|
+
trackOutputFileSize: true,
|
|
42
|
+
isInternal: false,
|
|
43
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
44
|
+
stage: 'ga',
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const robotFileVerifyInstructionsSchema = robotBase
|
|
48
|
+
.merge(robotUse)
|
|
49
|
+
.extend({
|
|
50
|
+
robot: z.literal('/file/verify'),
|
|
51
|
+
error_on_decline: z
|
|
52
|
+
.boolean()
|
|
53
|
+
.default(false)
|
|
54
|
+
.describe(`
|
|
55
|
+
If this is set to \`true\` and one or more files are declined, the Assembly will be stopped and marked with an error.
|
|
56
|
+
`),
|
|
57
|
+
error_msg: z
|
|
58
|
+
.string()
|
|
59
|
+
.default('One of your files was declined')
|
|
60
|
+
.describe(`
|
|
61
|
+
The error message shown to your users (such as by Uppy) when a file is declined and \`error_on_decline\` is set to \`true\`.
|
|
62
|
+
`),
|
|
63
|
+
verify_to_be: z
|
|
64
|
+
.string()
|
|
65
|
+
.default('pdf')
|
|
66
|
+
.describe(`
|
|
67
|
+
The type that you want to match against to ensure your file is of this type. For example, \`image\` will verify whether uploaded files are images. This also works against file media types, in this case \`image/png\` would also work to match against specifically \`png\` files.
|
|
68
|
+
`),
|
|
69
|
+
})
|
|
70
|
+
.strict()
|
|
71
|
+
|
|
72
|
+
export const robotFileVerifyInstructionsWithHiddenFieldsSchema =
|
|
73
|
+
robotFileVerifyInstructionsSchema.extend({
|
|
74
|
+
result: z
|
|
75
|
+
.union([z.literal('debug'), robotFileVerifyInstructionsSchema.shape.result])
|
|
76
|
+
.optional(),
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
export type RobotFileVerifyInstructions = z.infer<typeof robotFileVerifyInstructionsSchema>
|
|
80
|
+
export type RobotFileVerifyInstructionsWithHiddenFields = z.infer<
|
|
81
|
+
typeof robotFileVerifyInstructionsWithHiddenFieldsSchema
|
|
82
|
+
>
|
|
83
|
+
|
|
84
|
+
export const interpolatableRobotFileVerifyInstructionsSchema = interpolateRobot(
|
|
85
|
+
robotFileVerifyInstructionsSchema,
|
|
86
|
+
)
|
|
87
|
+
export type InterpolatableRobotFileVerifyInstructions =
|
|
88
|
+
InterpolatableRobotFileVerifyInstructionsInput
|
|
89
|
+
|
|
90
|
+
export type InterpolatableRobotFileVerifyInstructionsInput = z.input<
|
|
91
|
+
typeof interpolatableRobotFileVerifyInstructionsSchema
|
|
92
|
+
>
|
|
93
|
+
|
|
94
|
+
export const interpolatableRobotFileVerifyInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
95
|
+
robotFileVerifyInstructionsWithHiddenFieldsSchema,
|
|
96
|
+
)
|
|
97
|
+
export type InterpolatableRobotFileVerifyInstructionsWithHiddenFields = z.infer<
|
|
98
|
+
typeof interpolatableRobotFileVerifyInstructionsWithHiddenFieldsSchema
|
|
99
|
+
>
|
|
100
|
+
export type InterpolatableRobotFileVerifyInstructionsWithHiddenFieldsInput = z.input<
|
|
101
|
+
typeof interpolatableRobotFileVerifyInstructionsWithHiddenFieldsSchema
|
|
102
|
+
>
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
description:
|
|
10
|
+
'While 100% security is a myth, having /file/virusscan as a gatekeeper bot helps reject millions of trojans, viruses, malware & other malicious threats before they reach your platform.',
|
|
11
|
+
discount_factor: 1,
|
|
12
|
+
discount_pct: 0,
|
|
13
|
+
example_code: {
|
|
14
|
+
steps: {
|
|
15
|
+
scanned: {
|
|
16
|
+
robot: '/file/virusscan',
|
|
17
|
+
use: ':original',
|
|
18
|
+
error_on_decline: true,
|
|
19
|
+
error_msg: 'At least one of the uploaded files is malicious and was declined',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
example_code_description:
|
|
24
|
+
'Scan uploaded files and throw an error if a malicious file is detected:',
|
|
25
|
+
minimum_charge: 1048576,
|
|
26
|
+
ogimage: '/assets/images/robots/ogimages/file-virusscan.jpg',
|
|
27
|
+
output_factor: 1,
|
|
28
|
+
override_lvl1: 'File Filtering',
|
|
29
|
+
purpose_sentence:
|
|
30
|
+
'rejects millions of trojans, viruses, malware & other malicious threats before they reach your platform',
|
|
31
|
+
purpose_verb: 'scan',
|
|
32
|
+
purpose_word: 'scan for viruses and reject malware',
|
|
33
|
+
purpose_words: 'Scan files for viruses',
|
|
34
|
+
service_slug: 'file-filtering',
|
|
35
|
+
slot_count: 38,
|
|
36
|
+
title: 'Scan files for viruses',
|
|
37
|
+
typical_file_size_mb: 1.2,
|
|
38
|
+
typical_file_type: 'file',
|
|
39
|
+
name: 'FileVirusscanRobot',
|
|
40
|
+
priceFactor: 1,
|
|
41
|
+
queueSlotCount: 38,
|
|
42
|
+
minimumCharge: 1048576,
|
|
43
|
+
lazyLoad: true,
|
|
44
|
+
installVersionFile: process.env.API2_CLAMD_INSTALL_VERSION_FILE || '',
|
|
45
|
+
isAllowedForUrlTransform: false,
|
|
46
|
+
trackOutputFileSize: true,
|
|
47
|
+
isInternal: false,
|
|
48
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
49
|
+
stage: 'ga',
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const robotFileVirusscanInstructionsSchema = robotBase
|
|
53
|
+
.merge(robotUse)
|
|
54
|
+
.extend({
|
|
55
|
+
robot: z.literal('/file/virusscan').describe(`
|
|
56
|
+
This <dfn>Robot</dfn> is built on top of [ClamAV](https://www.clamav.net/), the best open source antivirus engine available. We update its signatures on a daily basis.
|
|
57
|
+
|
|
58
|
+
By default, this <dfn>Robot</dfn> excludes all malicious files from further processing without any additional notification. This behavior can be changed by setting \`error_on_decline\` to \`true\`, which will stop <dfn>Assemblies</dfn> as soon as malicious files are found. Such <dfn>Assemblies</dfn> will then be marked with an error.
|
|
59
|
+
|
|
60
|
+
We allow the use of industry standard [EICAR files](https://www.eicar.org/download-anti-malware-testfile/) for integration testing without needing to use potentially dangerous live virus samples.
|
|
61
|
+
`),
|
|
62
|
+
error_on_decline: z
|
|
63
|
+
.boolean()
|
|
64
|
+
.default(false)
|
|
65
|
+
.describe(`
|
|
66
|
+
If this is set to \`true\` and one or more files are declined, the Assembly will be stopped and marked with an error.
|
|
67
|
+
`),
|
|
68
|
+
error_msg: z
|
|
69
|
+
.string()
|
|
70
|
+
.default('One of your files was declined')
|
|
71
|
+
.describe(`
|
|
72
|
+
The error message shown to your users (such as by Uppy) when a file is declined and \`error_on_decline\` is set to \`true\`.
|
|
73
|
+
`),
|
|
74
|
+
})
|
|
75
|
+
.strict()
|
|
76
|
+
|
|
77
|
+
export const robotFileVirusscanInstructionsWithHiddenFieldsSchema =
|
|
78
|
+
robotFileVirusscanInstructionsSchema.extend({
|
|
79
|
+
result: z
|
|
80
|
+
.union([z.literal('debug'), robotFileVirusscanInstructionsSchema.shape.result])
|
|
81
|
+
.optional(),
|
|
82
|
+
can_use_daemon_fallback: z
|
|
83
|
+
.boolean()
|
|
84
|
+
.optional()
|
|
85
|
+
.describe(`
|
|
86
|
+
Allow the robot to use a daemon fallback mechanism if the primary scanning method fails.
|
|
87
|
+
`),
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
export type RobotFileVirusscanInstructions = z.infer<typeof robotFileVirusscanInstructionsSchema>
|
|
91
|
+
export type RobotFileVirusscanInstructionsWithHiddenFields = z.infer<
|
|
92
|
+
typeof robotFileVirusscanInstructionsWithHiddenFieldsSchema
|
|
93
|
+
>
|
|
94
|
+
|
|
95
|
+
export const interpolatableRobotFileVirusscanInstructionsSchema = interpolateRobot(
|
|
96
|
+
robotFileVirusscanInstructionsSchema,
|
|
97
|
+
)
|
|
98
|
+
export type InterpolatableRobotFileVirusscanInstructions =
|
|
99
|
+
InterpolatableRobotFileVirusscanInstructionsInput
|
|
100
|
+
|
|
101
|
+
export type InterpolatableRobotFileVirusscanInstructionsInput = z.input<
|
|
102
|
+
typeof interpolatableRobotFileVirusscanInstructionsSchema
|
|
103
|
+
>
|
|
104
|
+
|
|
105
|
+
export const interpolatableRobotFileVirusscanInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
106
|
+
robotFileVirusscanInstructionsWithHiddenFieldsSchema,
|
|
107
|
+
)
|
|
108
|
+
export type InterpolatableRobotFileVirusscanInstructionsWithHiddenFields = z.infer<
|
|
109
|
+
typeof interpolatableRobotFileVirusscanInstructionsWithHiddenFieldsSchema
|
|
110
|
+
>
|
|
111
|
+
export type InterpolatableRobotFileVirusscanInstructionsWithHiddenFieldsInput = z.input<
|
|
112
|
+
typeof interpolatableRobotFileVirusscanInstructionsWithHiddenFieldsSchema
|
|
113
|
+
>
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
// @ts-expect-error - FileWatermarkRobot is not ready yet @TODO please supply missing keys
|
|
7
|
+
export const meta: RobotMetaInput = {
|
|
8
|
+
name: 'FileWatermarkRobot',
|
|
9
|
+
priceFactor: 4,
|
|
10
|
+
queueSlotCount: 20,
|
|
11
|
+
isAllowedForUrlTransform: true,
|
|
12
|
+
trackOutputFileSize: false,
|
|
13
|
+
isInternal: false,
|
|
14
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
15
|
+
stage: 'ga',
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const robotFileWatermarkInstructionsSchema = robotBase
|
|
19
|
+
.merge(robotUse)
|
|
20
|
+
.extend({
|
|
21
|
+
robot: z.literal('/file/watermark'),
|
|
22
|
+
randomize: z.boolean().optional(),
|
|
23
|
+
})
|
|
24
|
+
.strict()
|
|
25
|
+
|
|
26
|
+
export const robotFileWatermarkInstructionsWithHiddenFieldsSchema =
|
|
27
|
+
robotFileWatermarkInstructionsSchema.extend({
|
|
28
|
+
result: z
|
|
29
|
+
.union([z.literal('debug'), robotFileWatermarkInstructionsSchema.shape.result])
|
|
30
|
+
.optional(),
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
export type RobotFileWatermarkInstructions = z.infer<typeof robotFileWatermarkInstructionsSchema>
|
|
34
|
+
export type RobotFileWatermarkInstructionsWithHiddenFields = z.infer<
|
|
35
|
+
typeof robotFileWatermarkInstructionsWithHiddenFieldsSchema
|
|
36
|
+
>
|
|
37
|
+
|
|
38
|
+
export const interpolatableRobotFileWatermarkInstructionsSchema = interpolateRobot(
|
|
39
|
+
robotFileWatermarkInstructionsSchema,
|
|
40
|
+
)
|
|
41
|
+
export type InterpolatableRobotFileWatermarkInstructions =
|
|
42
|
+
InterpolatableRobotFileWatermarkInstructionsInput
|
|
43
|
+
|
|
44
|
+
export type InterpolatableRobotFileWatermarkInstructionsInput = z.input<
|
|
45
|
+
typeof interpolatableRobotFileWatermarkInstructionsSchema
|
|
46
|
+
>
|
|
47
|
+
|
|
48
|
+
export const interpolatableRobotFileWatermarkInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
49
|
+
robotFileWatermarkInstructionsWithHiddenFieldsSchema,
|
|
50
|
+
)
|
|
51
|
+
export type InterpolatableRobotFileWatermarkInstructionsWithHiddenFields = z.infer<
|
|
52
|
+
typeof interpolatableRobotFileWatermarkInstructionsWithHiddenFieldsSchema
|
|
53
|
+
>
|
|
54
|
+
export type InterpolatableRobotFileWatermarkInstructionsWithHiddenFieldsInput = z.input<
|
|
55
|
+
typeof interpolatableRobotFileWatermarkInstructionsWithHiddenFieldsSchema
|
|
56
|
+
>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
|
+
import {
|
|
5
|
+
ftpBase,
|
|
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: '/ftp/import',
|
|
21
|
+
credentials: 'YOUR_FTP_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
|
+
minimum_charge: 0,
|
|
29
|
+
output_factor: 1,
|
|
30
|
+
override_lvl1: 'File Importing',
|
|
31
|
+
purpose_sentence:
|
|
32
|
+
'imports whole libraries of files from your FTP servers into Transloadit. This Robot relies on password access. For more security, consider our /sftp/import Robot',
|
|
33
|
+
purpose_verb: 'import',
|
|
34
|
+
purpose_word: 'FTP servers',
|
|
35
|
+
purpose_words: 'Import files from FTP servers',
|
|
36
|
+
service_slug: 'file-importing',
|
|
37
|
+
slot_count: 20,
|
|
38
|
+
title: 'Import files from FTP servers',
|
|
39
|
+
typical_file_size_mb: 1.2,
|
|
40
|
+
typical_file_type: 'file',
|
|
41
|
+
name: 'FtpImportRobot',
|
|
42
|
+
priceFactor: 6.6666,
|
|
43
|
+
queueSlotCount: 20,
|
|
44
|
+
isAllowedForUrlTransform: true,
|
|
45
|
+
trackOutputFileSize: false,
|
|
46
|
+
isInternal: false,
|
|
47
|
+
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
48
|
+
stage: 'ga',
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const robotFtpImportInstructionsSchema = robotBase
|
|
52
|
+
.merge(robotImport)
|
|
53
|
+
.merge(ftpBase)
|
|
54
|
+
.extend({
|
|
55
|
+
robot: z.literal('/ftp/import'),
|
|
56
|
+
path: path.describe(`
|
|
57
|
+
The path on your FTP server where to search for files. Files are imported recursively from all sub-directories and sub-sub-directories (and so on) from this path.
|
|
58
|
+
`),
|
|
59
|
+
passive_mode: z
|
|
60
|
+
.boolean()
|
|
61
|
+
.default(true)
|
|
62
|
+
.describe(`
|
|
63
|
+
Determines if passive mode should be used for the FTP connection.
|
|
64
|
+
`),
|
|
65
|
+
})
|
|
66
|
+
.strict()
|
|
67
|
+
|
|
68
|
+
export const robotFtpImportInstructionsWithHiddenFieldsSchema =
|
|
69
|
+
robotFtpImportInstructionsSchema.extend({
|
|
70
|
+
result: z.union([z.literal('debug'), robotFtpImportInstructionsSchema.shape.result]).optional(),
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
export type RobotFtpImportInstructions = z.infer<typeof robotFtpImportInstructionsSchema>
|
|
74
|
+
export type RobotFtpImportInstructionsWithHiddenFields = z.infer<
|
|
75
|
+
typeof robotFtpImportInstructionsWithHiddenFieldsSchema
|
|
76
|
+
>
|
|
77
|
+
|
|
78
|
+
export const interpolatableRobotFtpImportInstructionsSchema = interpolateRobot(
|
|
79
|
+
robotFtpImportInstructionsSchema,
|
|
80
|
+
)
|
|
81
|
+
export type InterpolatableRobotFtpImportInstructions = InterpolatableRobotFtpImportInstructionsInput
|
|
82
|
+
|
|
83
|
+
export type InterpolatableRobotFtpImportInstructionsInput = z.input<
|
|
84
|
+
typeof interpolatableRobotFtpImportInstructionsSchema
|
|
85
|
+
>
|
|
86
|
+
|
|
87
|
+
export const interpolatableRobotFtpImportInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
88
|
+
robotFtpImportInstructionsWithHiddenFieldsSchema,
|
|
89
|
+
)
|
|
90
|
+
export type InterpolatableRobotFtpImportInstructionsWithHiddenFields = z.infer<
|
|
91
|
+
typeof interpolatableRobotFtpImportInstructionsWithHiddenFieldsSchema
|
|
92
|
+
>
|
|
93
|
+
export type InterpolatableRobotFtpImportInstructionsWithHiddenFieldsInput = z.input<
|
|
94
|
+
typeof interpolatableRobotFtpImportInstructionsWithHiddenFieldsSchema
|
|
95
|
+
>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
4
|
+
import { ftpBase, 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: '/ftp/store',
|
|
15
|
+
use: ':original',
|
|
16
|
+
credentials: 'YOUR_FTP_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 an FTP server:',
|
|
22
|
+
minimum_charge: 0,
|
|
23
|
+
output_factor: 1,
|
|
24
|
+
override_lvl1: 'File Exporting',
|
|
25
|
+
purpose_sentence:
|
|
26
|
+
'exports encoding results to your FTP servers. This Robot relies on password access. For more security, consider our /sftp/store Robot',
|
|
27
|
+
purpose_verb: 'export',
|
|
28
|
+
purpose_word: 'FTP servers',
|
|
29
|
+
purpose_words: 'Export files to FTP servers',
|
|
30
|
+
service_slug: 'file-exporting',
|
|
31
|
+
slot_count: 10,
|
|
32
|
+
title: 'Export files to FTP servers',
|
|
33
|
+
typical_file_size_mb: 1.2,
|
|
34
|
+
typical_file_type: 'file',
|
|
35
|
+
name: 'FtpStoreRobot',
|
|
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 robotFtpStoreInstructionsSchema = robotBase
|
|
46
|
+
.merge(robotUse)
|
|
47
|
+
.merge(ftpBase)
|
|
48
|
+
.extend({
|
|
49
|
+
robot: z.literal('/ftp/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 can contain any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables).
|
|
55
|
+
|
|
56
|
+
Please note that you might need to include your homedir at the beginning of the path.
|
|
57
|
+
`),
|
|
58
|
+
url_template: z
|
|
59
|
+
.string()
|
|
60
|
+
.default('https://{HOST}/{PATH}')
|
|
61
|
+
.describe(`
|
|
62
|
+
The URL of the file in the result JSON. The following [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables) are supported.
|
|
63
|
+
`),
|
|
64
|
+
ssl_url_template: z
|
|
65
|
+
.string()
|
|
66
|
+
.default('https://{HOST}/{PATH}')
|
|
67
|
+
.describe(`
|
|
68
|
+
The SSL URL of the file in the result JSON. The following [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables) are supported.
|
|
69
|
+
`),
|
|
70
|
+
secure: z
|
|
71
|
+
.boolean()
|
|
72
|
+
.default(false)
|
|
73
|
+
.describe(`
|
|
74
|
+
Determines whether to establish a secure connection to the FTP server using SSL.
|
|
75
|
+
`),
|
|
76
|
+
})
|
|
77
|
+
.strict()
|
|
78
|
+
|
|
79
|
+
export const robotFtpStoreInstructionsWithHiddenFieldsSchema =
|
|
80
|
+
robotFtpStoreInstructionsSchema.extend({
|
|
81
|
+
result: z.union([z.literal('debug'), robotFtpStoreInstructionsSchema.shape.result]).optional(),
|
|
82
|
+
use_remote_utime: z
|
|
83
|
+
.boolean()
|
|
84
|
+
.optional()
|
|
85
|
+
.describe(`
|
|
86
|
+
Use the remote file's modification time instead of the current time when storing the file.
|
|
87
|
+
`),
|
|
88
|
+
version: z
|
|
89
|
+
.union([z.string(), z.number()])
|
|
90
|
+
.optional()
|
|
91
|
+
.describe(`
|
|
92
|
+
Version identifier for the underlying tool used (2 is ncftp, 1 is ftp).
|
|
93
|
+
`),
|
|
94
|
+
allowNetwork: z.string().optional(), // For internal test purposes
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
export type RobotFtpStoreInstructions = z.infer<typeof robotFtpStoreInstructionsSchema>
|
|
98
|
+
export type RobotFtpStoreInstructionsWithHiddenFields = z.infer<
|
|
99
|
+
typeof robotFtpStoreInstructionsWithHiddenFieldsSchema
|
|
100
|
+
>
|
|
101
|
+
|
|
102
|
+
export const interpolatableRobotFtpStoreInstructionsSchema = interpolateRobot(
|
|
103
|
+
robotFtpStoreInstructionsSchema,
|
|
104
|
+
)
|
|
105
|
+
export type InterpolatableRobotFtpStoreInstructions = InterpolatableRobotFtpStoreInstructionsInput
|
|
106
|
+
|
|
107
|
+
export type InterpolatableRobotFtpStoreInstructionsInput = z.input<
|
|
108
|
+
typeof interpolatableRobotFtpStoreInstructionsSchema
|
|
109
|
+
>
|
|
110
|
+
|
|
111
|
+
export const interpolatableRobotFtpStoreInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
112
|
+
robotFtpStoreInstructionsWithHiddenFieldsSchema,
|
|
113
|
+
)
|
|
114
|
+
export type InterpolatableRobotFtpStoreInstructionsWithHiddenFields = z.infer<
|
|
115
|
+
typeof interpolatableRobotFtpStoreInstructionsWithHiddenFieldsSchema
|
|
116
|
+
>
|
|
117
|
+
export type InterpolatableRobotFtpStoreInstructionsWithHiddenFieldsInput = z.input<
|
|
118
|
+
typeof interpolatableRobotFtpStoreInstructionsWithHiddenFieldsSchema
|
|
119
|
+
>
|