@transloadit/zod 4.2.0 → 4.3.1
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/README.md +2 -2
- package/dist/v3/assembliesGet.d.ts +8 -3
- package/dist/v3/assembliesGet.d.ts.map +1 -1
- package/dist/v3/assemblyReplay.d.ts +7 -7858
- package/dist/v3/assemblyReplay.d.ts.map +1 -1
- package/dist/v3/assemblyReplayNotification.d.ts +7 -7858
- package/dist/v3/assemblyReplayNotification.d.ts.map +1 -1
- package/dist/v3/assemblyStatus.d.ts +4832 -323
- package/dist/v3/assemblyStatus.d.ts.map +1 -1
- package/dist/v3/assemblyStatus.js +53 -3
- package/dist/v3/bill.d.ts +5 -0
- package/dist/v3/bill.d.ts.map +1 -1
- package/dist/v3/builtinTemplates.d.ts +83 -0
- package/dist/v3/builtinTemplates.d.ts.map +1 -0
- package/dist/v3/builtinTemplates.js +18 -0
- package/dist/v3/index.d.ts +2 -0
- package/dist/v3/index.d.ts.map +1 -1
- package/dist/v3/index.js +2 -0
- package/dist/v3/robots/_index.d.ts +903 -72600
- package/dist/v3/robots/_index.d.ts.map +1 -1
- package/dist/v3/robots/_index.js +62 -11
- package/dist/v3/robots/_instructions-primitives.d.ts +41 -10
- package/dist/v3/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v3/robots/_instructions-primitives.js +89 -3
- package/dist/v3/robots/ai-chat.d.ts +57 -4
- package/dist/v3/robots/ai-chat.d.ts.map +1 -1
- package/dist/v3/robots/ai-chat.js +34 -6
- package/dist/v3/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/v3/robots/assembly-savejson.js +8 -0
- package/dist/v3/robots/audio-artwork.d.ts.map +1 -1
- package/dist/v3/robots/audio-artwork.js +4 -5
- package/dist/v3/robots/audio-concat.d.ts.map +1 -1
- package/dist/v3/robots/audio-concat.js +1 -2
- package/dist/v3/robots/audio-encode.d.ts.map +1 -1
- package/dist/v3/robots/audio-encode.js +1 -2
- package/dist/v3/robots/audio-loop.d.ts.map +1 -1
- package/dist/v3/robots/audio-loop.js +1 -2
- package/dist/v3/robots/audio-merge.d.ts.map +1 -1
- package/dist/v3/robots/audio-merge.js +1 -2
- package/dist/v3/robots/audio-split.d.ts +2936 -0
- package/dist/v3/robots/audio-split.d.ts.map +1 -0
- package/dist/v3/robots/audio-split.js +87 -0
- package/dist/v3/robots/audio-waveform.d.ts +92 -6
- package/dist/v3/robots/audio-waveform.d.ts.map +1 -1
- package/dist/v3/robots/audio-waveform.js +72 -6
- package/dist/v3/robots/azure-import.d.ts.map +1 -1
- package/dist/v3/robots/azure-import.js +0 -1
- package/dist/v3/robots/azure-store.d.ts.map +1 -1
- package/dist/v3/robots/azure-store.js +0 -1
- package/dist/v3/robots/backblaze-import.d.ts.map +1 -1
- package/dist/v3/robots/backblaze-import.js +0 -1
- package/dist/v3/robots/backblaze-store.d.ts.map +1 -1
- package/dist/v3/robots/backblaze-store.js +0 -1
- package/dist/v3/robots/box-import.d.ts +150 -0
- package/dist/v3/robots/box-import.d.ts.map +1 -0
- package/dist/v3/robots/box-import.js +62 -0
- package/dist/v3/robots/box-store.d.ts +455 -0
- package/dist/v3/robots/box-store.d.ts.map +1 -0
- package/dist/v3/robots/box-store.js +65 -0
- package/dist/v3/robots/cloudfiles-import.d.ts.map +1 -1
- package/dist/v3/robots/cloudfiles-import.js +0 -1
- package/dist/v3/robots/cloudfiles-store.d.ts.map +1 -1
- package/dist/v3/robots/cloudfiles-store.js +0 -1
- package/dist/v3/robots/cloudflare-import.d.ts.map +1 -1
- package/dist/v3/robots/cloudflare-import.js +0 -1
- package/dist/v3/robots/cloudflare-store.d.ts.map +1 -1
- package/dist/v3/robots/cloudflare-store.js +0 -1
- package/dist/v3/robots/digitalocean-import.d.ts.map +1 -1
- package/dist/v3/robots/digitalocean-import.js +0 -1
- package/dist/v3/robots/digitalocean-store.d.ts.map +1 -1
- package/dist/v3/robots/digitalocean-store.js +0 -1
- package/dist/v3/robots/document-autorotate.d.ts.map +1 -1
- package/dist/v3/robots/document-autorotate.js +8 -1
- package/dist/v3/robots/document-convert.d.ts +8 -8
- package/dist/v3/robots/document-convert.d.ts.map +1 -1
- package/dist/v3/robots/document-convert.js +9 -3
- package/dist/v3/robots/document-merge.d.ts.map +1 -1
- package/dist/v3/robots/document-merge.js +0 -1
- package/dist/v3/robots/document-ocr.d.ts.map +1 -1
- package/dist/v3/robots/document-ocr.js +0 -1
- package/dist/v3/robots/document-optimize.d.ts.map +1 -1
- package/dist/v3/robots/document-optimize.js +0 -1
- package/dist/v3/robots/document-split.d.ts.map +1 -1
- package/dist/v3/robots/document-split.js +9 -1
- package/dist/v3/robots/document-thumbs.d.ts +12 -0
- package/dist/v3/robots/document-thumbs.d.ts.map +1 -1
- package/dist/v3/robots/document-thumbs.js +23 -4
- package/dist/v3/robots/dropbox-import.d.ts.map +1 -1
- package/dist/v3/robots/dropbox-import.js +0 -1
- package/dist/v3/robots/dropbox-store.d.ts.map +1 -1
- package/dist/v3/robots/dropbox-store.js +0 -1
- package/dist/v3/robots/edgly-deliver.d.ts.map +1 -1
- package/dist/v3/robots/edgly-deliver.js +8 -1
- package/dist/v3/robots/file-compress.d.ts +12 -0
- package/dist/v3/robots/file-compress.d.ts.map +1 -1
- package/dist/v3/robots/file-compress.js +8 -1
- package/dist/v3/robots/file-decompress.d.ts +24 -0
- package/dist/v3/robots/file-decompress.d.ts.map +1 -1
- package/dist/v3/robots/file-decompress.js +30 -5
- package/dist/v3/robots/file-filter.d.ts.map +1 -1
- package/dist/v3/robots/file-filter.js +23 -6
- package/dist/v3/robots/file-hash.d.ts +24 -0
- package/dist/v3/robots/file-hash.d.ts.map +1 -1
- package/dist/v3/robots/file-hash.js +23 -1
- package/dist/v3/robots/file-preview.d.ts +12 -0
- package/dist/v3/robots/file-preview.d.ts.map +1 -1
- package/dist/v3/robots/file-preview.js +8 -1
- package/dist/v3/robots/file-read.d.ts.map +1 -1
- package/dist/v3/robots/file-read.js +9 -1
- package/dist/v3/robots/file-serve.d.ts +12 -0
- package/dist/v3/robots/file-serve.d.ts.map +1 -1
- package/dist/v3/robots/file-serve.js +38 -7
- package/dist/v3/robots/file-verify.d.ts.map +1 -1
- package/dist/v3/robots/file-verify.js +0 -1
- package/dist/v3/robots/file-virusscan.d.ts.map +1 -1
- package/dist/v3/robots/file-virusscan.js +5 -4
- package/dist/v3/robots/file-watermark.d.ts.map +1 -1
- package/dist/v3/robots/file-watermark.js +10 -0
- package/dist/v3/robots/ftp-import.d.ts.map +1 -1
- package/dist/v3/robots/ftp-import.js +0 -1
- package/dist/v3/robots/ftp-store.d.ts.map +1 -1
- package/dist/v3/robots/ftp-store.js +0 -1
- package/dist/v3/robots/google-import.d.ts.map +1 -1
- package/dist/v3/robots/google-import.js +0 -1
- package/dist/v3/robots/google-store.d.ts.map +1 -1
- package/dist/v3/robots/google-store.js +0 -1
- package/dist/v3/robots/html-convert.d.ts.map +1 -1
- package/dist/v3/robots/html-convert.js +0 -1
- package/dist/v3/robots/http-import.d.ts.map +1 -1
- package/dist/v3/robots/http-import.js +0 -1
- package/dist/v3/robots/image-bgremove.d.ts +8 -8
- package/dist/v3/robots/image-bgremove.d.ts.map +1 -1
- package/dist/v3/robots/image-bgremove.js +4 -2
- package/dist/v3/robots/image-copyrightdetect.d.ts +465 -0
- package/dist/v3/robots/image-copyrightdetect.d.ts.map +1 -0
- package/dist/v3/robots/image-copyrightdetect.js +135 -0
- package/dist/v3/robots/image-describe.d.ts.map +1 -1
- package/dist/v3/robots/image-describe.js +0 -1
- package/dist/v3/robots/image-enhance.d.ts +502 -0
- package/dist/v3/robots/image-enhance.d.ts.map +1 -0
- package/dist/v3/robots/image-enhance.js +145 -0
- package/dist/v3/robots/image-facedetect.d.ts.map +1 -1
- package/dist/v3/robots/image-facedetect.js +0 -1
- package/dist/v3/robots/image-generate.d.ts +4 -5
- package/dist/v3/robots/image-generate.d.ts.map +1 -1
- package/dist/v3/robots/image-generate.js +62 -8
- package/dist/v3/robots/image-merge.d.ts +96 -24
- package/dist/v3/robots/image-merge.d.ts.map +1 -1
- package/dist/v3/robots/image-merge.js +75 -7
- package/dist/v3/robots/image-ocr.d.ts.map +1 -1
- package/dist/v3/robots/image-ocr.js +0 -1
- package/dist/v3/robots/image-optimize.d.ts +12 -0
- package/dist/v3/robots/image-optimize.d.ts.map +1 -1
- package/dist/v3/robots/image-optimize.js +16 -3
- package/dist/v3/robots/image-resize.d.ts +20 -8
- package/dist/v3/robots/image-resize.d.ts.map +1 -1
- package/dist/v3/robots/image-resize.js +37 -1
- package/dist/v3/robots/image-upscale.d.ts +447 -0
- package/dist/v3/robots/image-upscale.d.ts.map +1 -0
- package/dist/v3/robots/image-upscale.js +64 -0
- package/dist/v3/robots/mega-import.d.ts +244 -0
- package/dist/v3/robots/mega-import.d.ts.map +1 -0
- package/dist/v3/robots/mega-import.js +83 -0
- package/dist/v3/robots/mega-store.d.ts +526 -0
- package/dist/v3/robots/mega-store.d.ts.map +1 -0
- package/dist/v3/robots/mega-store.js +81 -0
- package/dist/v3/robots/meta-read.d.ts.map +1 -1
- package/dist/v3/robots/meta-read.js +8 -0
- package/dist/v3/robots/meta-write.d.ts.map +1 -1
- package/dist/v3/robots/meta-write.js +0 -1
- package/dist/v3/robots/minio-import.d.ts.map +1 -1
- package/dist/v3/robots/minio-import.js +0 -1
- package/dist/v3/robots/minio-store.d.ts.map +1 -1
- package/dist/v3/robots/minio-store.js +0 -1
- package/dist/v3/robots/progress-simulate.d.ts.map +1 -1
- package/dist/v3/robots/progress-simulate.js +13 -0
- package/dist/v3/robots/s3-import.d.ts.map +1 -1
- package/dist/v3/robots/s3-import.js +0 -1
- package/dist/v3/robots/s3-store.d.ts.map +1 -1
- package/dist/v3/robots/s3-store.js +0 -1
- package/dist/v3/robots/script-run.d.ts.map +1 -1
- package/dist/v3/robots/script-run.js +10 -1
- package/dist/v3/robots/sftp-import.d.ts.map +1 -1
- package/dist/v3/robots/sftp-import.js +0 -1
- package/dist/v3/robots/sftp-store.d.ts.map +1 -1
- package/dist/v3/robots/sftp-store.js +0 -1
- package/dist/v3/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/v3/robots/speech-transcribe.js +0 -1
- package/dist/v3/robots/supabase-import.d.ts.map +1 -1
- package/dist/v3/robots/supabase-import.js +0 -1
- package/dist/v3/robots/supabase-store.d.ts.map +1 -1
- package/dist/v3/robots/supabase-store.js +0 -1
- package/dist/v3/robots/swift-import.d.ts.map +1 -1
- package/dist/v3/robots/swift-import.js +0 -1
- package/dist/v3/robots/swift-store.d.ts.map +1 -1
- package/dist/v3/robots/swift-store.js +0 -1
- package/dist/v3/robots/text-speak.d.ts.map +1 -1
- package/dist/v3/robots/text-speak.js +0 -1
- package/dist/v3/robots/text-translate.d.ts +8 -8
- package/dist/v3/robots/text-translate.d.ts.map +1 -1
- package/dist/v3/robots/text-translate.js +0 -1
- package/dist/v3/robots/tigris-import.d.ts.map +1 -1
- package/dist/v3/robots/tigris-import.js +0 -1
- package/dist/v3/robots/tigris-store.d.ts.map +1 -1
- package/dist/v3/robots/tigris-store.js +0 -1
- package/dist/v3/robots/tlcdn-deliver.d.ts.map +1 -1
- package/dist/v3/robots/tlcdn-deliver.js +8 -1
- package/dist/v3/robots/tus-store.d.ts.map +1 -1
- package/dist/v3/robots/tus-store.js +1 -14
- package/dist/v3/robots/upload-handle.d.ts.map +1 -1
- package/dist/v3/robots/upload-handle.js +0 -1
- package/dist/v3/robots/video-adaptive.d.ts +32 -8
- package/dist/v3/robots/video-adaptive.d.ts.map +1 -1
- package/dist/v3/robots/video-adaptive.js +22 -6
- package/dist/v3/robots/video-artwork.d.ts +2855 -0
- package/dist/v3/robots/video-artwork.d.ts.map +1 -0
- package/dist/v3/robots/video-artwork.js +65 -0
- package/dist/v3/robots/video-concat.d.ts +36 -0
- package/dist/v3/robots/video-concat.d.ts.map +1 -1
- package/dist/v3/robots/video-concat.js +30 -1
- package/dist/v3/robots/video-encode.d.ts.map +1 -1
- package/dist/v3/robots/video-encode.js +0 -1
- package/dist/v3/robots/video-generate.d.ts +594 -0
- package/dist/v3/robots/video-generate.d.ts.map +1 -0
- package/dist/v3/robots/video-generate.js +89 -0
- package/dist/v3/robots/video-merge.d.ts +24 -0
- package/dist/v3/robots/video-merge.d.ts.map +1 -1
- package/dist/v3/robots/video-merge.js +33 -1
- package/dist/v3/robots/video-ondemand.d.ts.map +1 -1
- package/dist/v3/robots/video-ondemand.js +3 -4
- package/dist/v3/robots/video-split.d.ts +2939 -0
- package/dist/v3/robots/video-split.d.ts.map +1 -0
- package/dist/v3/robots/video-split.js +77 -0
- package/dist/v3/robots/video-subtitle.d.ts +52 -4
- package/dist/v3/robots/video-subtitle.d.ts.map +1 -1
- package/dist/v3/robots/video-subtitle.js +61 -8
- package/dist/v3/robots/video-thumbs.d.ts.map +1 -1
- package/dist/v3/robots/video-thumbs.js +0 -1
- package/dist/v3/robots/vimeo-import.d.ts +4 -4
- package/dist/v3/robots/vimeo-import.d.ts.map +1 -1
- package/dist/v3/robots/vimeo-import.js +0 -1
- package/dist/v3/robots/vimeo-store.d.ts +2 -2
- package/dist/v3/robots/vimeo-store.d.ts.map +1 -1
- package/dist/v3/robots/vimeo-store.js +14 -3
- package/dist/v3/robots/wasabi-import.d.ts.map +1 -1
- package/dist/v3/robots/wasabi-import.js +0 -1
- package/dist/v3/robots/wasabi-store.d.ts.map +1 -1
- package/dist/v3/robots/wasabi-store.js +0 -1
- package/dist/v3/robots/youtube-store.d.ts.map +1 -1
- package/dist/v3/robots/youtube-store.js +4 -5
- package/dist/v3/skillFrontmatter.d.ts +29 -0
- package/dist/v3/skillFrontmatter.d.ts.map +1 -0
- package/dist/v3/skillFrontmatter.js +18 -0
- package/dist/v3/template.d.ts +77 -132139
- package/dist/v3/template.d.ts.map +1 -1
- package/dist/v3/template.js +26 -3
- package/dist/v3/templateCredential.d.ts +13 -3
- package/dist/v3/templateCredential.d.ts.map +1 -1
- package/dist/v3/templateCredential.js +1 -0
- package/dist/v4/assembliesGet.d.ts +1 -0
- package/dist/v4/assembliesGet.d.ts.map +1 -1
- package/dist/v4/assemblyReplay.d.ts +1 -0
- package/dist/v4/assemblyReplay.d.ts.map +1 -1
- package/dist/v4/assemblyReplayNotification.d.ts +1 -0
- package/dist/v4/assemblyReplayNotification.d.ts.map +1 -1
- package/dist/v4/assemblyStatus.d.ts +259 -46
- package/dist/v4/assemblyStatus.d.ts.map +1 -1
- package/dist/v4/assemblyStatus.js +53 -3
- package/dist/v4/bill.d.ts +1 -0
- package/dist/v4/bill.d.ts.map +1 -1
- package/dist/v4/builtinTemplates.d.ts +35 -0
- package/dist/v4/builtinTemplates.d.ts.map +1 -0
- package/dist/v4/builtinTemplates.js +18 -0
- package/dist/v4/index.d.ts +2 -0
- package/dist/v4/index.d.ts.map +1 -1
- package/dist/v4/index.js +2 -0
- package/dist/v4/robots/_index.d.ts +911 -26311
- package/dist/v4/robots/_index.d.ts.map +1 -1
- package/dist/v4/robots/_index.js +62 -11
- package/dist/v4/robots/_instructions-primitives.d.ts +44 -7
- package/dist/v4/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/v4/robots/_instructions-primitives.js +89 -3
- package/dist/v4/robots/ai-chat.d.ts +45 -4
- package/dist/v4/robots/ai-chat.d.ts.map +1 -1
- package/dist/v4/robots/ai-chat.js +34 -6
- package/dist/v4/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/v4/robots/assembly-savejson.js +8 -0
- package/dist/v4/robots/audio-artwork.d.ts.map +1 -1
- package/dist/v4/robots/audio-artwork.js +4 -5
- package/dist/v4/robots/audio-concat.d.ts.map +1 -1
- package/dist/v4/robots/audio-concat.js +1 -2
- package/dist/v4/robots/audio-encode.d.ts.map +1 -1
- package/dist/v4/robots/audio-encode.js +1 -2
- package/dist/v4/robots/audio-loop.d.ts.map +1 -1
- package/dist/v4/robots/audio-loop.js +1 -2
- package/dist/v4/robots/audio-merge.d.ts.map +1 -1
- package/dist/v4/robots/audio-merge.js +1 -2
- package/dist/v4/robots/audio-split.d.ts +714 -0
- package/dist/v4/robots/audio-split.d.ts.map +1 -0
- package/dist/v4/robots/audio-split.js +87 -0
- package/dist/v4/robots/audio-waveform.d.ts +124 -6
- package/dist/v4/robots/audio-waveform.d.ts.map +1 -1
- package/dist/v4/robots/audio-waveform.js +72 -6
- package/dist/v4/robots/azure-import.d.ts.map +1 -1
- package/dist/v4/robots/azure-import.js +0 -1
- package/dist/v4/robots/azure-store.d.ts.map +1 -1
- package/dist/v4/robots/azure-store.js +0 -1
- package/dist/v4/robots/backblaze-import.d.ts.map +1 -1
- package/dist/v4/robots/backblaze-import.js +0 -1
- package/dist/v4/robots/backblaze-store.d.ts.map +1 -1
- package/dist/v4/robots/backblaze-store.js +0 -1
- package/dist/v4/robots/box-import.d.ts +82 -0
- package/dist/v4/robots/box-import.d.ts.map +1 -0
- package/dist/v4/robots/box-import.js +62 -0
- package/dist/v4/robots/box-store.d.ts +135 -0
- package/dist/v4/robots/box-store.d.ts.map +1 -0
- package/dist/v4/robots/box-store.js +65 -0
- package/dist/v4/robots/cloudfiles-import.d.ts.map +1 -1
- package/dist/v4/robots/cloudfiles-import.js +0 -1
- package/dist/v4/robots/cloudfiles-store.d.ts.map +1 -1
- package/dist/v4/robots/cloudfiles-store.js +0 -1
- package/dist/v4/robots/cloudflare-import.d.ts.map +1 -1
- package/dist/v4/robots/cloudflare-import.js +0 -1
- package/dist/v4/robots/cloudflare-store.d.ts.map +1 -1
- package/dist/v4/robots/cloudflare-store.js +0 -1
- package/dist/v4/robots/digitalocean-import.d.ts.map +1 -1
- package/dist/v4/robots/digitalocean-import.js +0 -1
- package/dist/v4/robots/digitalocean-store.d.ts.map +1 -1
- package/dist/v4/robots/digitalocean-store.js +0 -1
- package/dist/v4/robots/document-autorotate.d.ts.map +1 -1
- package/dist/v4/robots/document-autorotate.js +8 -1
- package/dist/v4/robots/document-convert.d.ts +4 -0
- package/dist/v4/robots/document-convert.d.ts.map +1 -1
- package/dist/v4/robots/document-convert.js +9 -3
- package/dist/v4/robots/document-merge.d.ts.map +1 -1
- package/dist/v4/robots/document-merge.js +0 -1
- package/dist/v4/robots/document-ocr.d.ts.map +1 -1
- package/dist/v4/robots/document-ocr.js +0 -1
- package/dist/v4/robots/document-optimize.d.ts.map +1 -1
- package/dist/v4/robots/document-optimize.js +0 -1
- package/dist/v4/robots/document-split.d.ts.map +1 -1
- package/dist/v4/robots/document-split.js +9 -1
- package/dist/v4/robots/document-thumbs.d.ts +4 -0
- package/dist/v4/robots/document-thumbs.d.ts.map +1 -1
- package/dist/v4/robots/document-thumbs.js +23 -4
- package/dist/v4/robots/dropbox-import.d.ts.map +1 -1
- package/dist/v4/robots/dropbox-import.js +0 -1
- package/dist/v4/robots/dropbox-store.d.ts.map +1 -1
- package/dist/v4/robots/dropbox-store.js +0 -1
- package/dist/v4/robots/edgly-deliver.d.ts.map +1 -1
- package/dist/v4/robots/edgly-deliver.js +8 -1
- package/dist/v4/robots/file-compress.d.ts +4 -0
- package/dist/v4/robots/file-compress.d.ts.map +1 -1
- package/dist/v4/robots/file-compress.js +8 -1
- package/dist/v4/robots/file-decompress.d.ts +8 -0
- package/dist/v4/robots/file-decompress.d.ts.map +1 -1
- package/dist/v4/robots/file-decompress.js +30 -5
- package/dist/v4/robots/file-filter.d.ts.map +1 -1
- package/dist/v4/robots/file-filter.js +23 -6
- package/dist/v4/robots/file-hash.d.ts +28 -0
- package/dist/v4/robots/file-hash.d.ts.map +1 -1
- package/dist/v4/robots/file-hash.js +23 -1
- package/dist/v4/robots/file-preview.d.ts +12 -8
- package/dist/v4/robots/file-preview.d.ts.map +1 -1
- package/dist/v4/robots/file-preview.js +8 -1
- package/dist/v4/robots/file-read.d.ts.map +1 -1
- package/dist/v4/robots/file-read.js +9 -1
- package/dist/v4/robots/file-serve.d.ts +4 -0
- package/dist/v4/robots/file-serve.d.ts.map +1 -1
- package/dist/v4/robots/file-serve.js +38 -7
- package/dist/v4/robots/file-verify.d.ts.map +1 -1
- package/dist/v4/robots/file-verify.js +0 -1
- package/dist/v4/robots/file-virusscan.d.ts.map +1 -1
- package/dist/v4/robots/file-virusscan.js +5 -4
- package/dist/v4/robots/file-watermark.d.ts.map +1 -1
- package/dist/v4/robots/file-watermark.js +10 -0
- package/dist/v4/robots/ftp-import.d.ts.map +1 -1
- package/dist/v4/robots/ftp-import.js +0 -1
- package/dist/v4/robots/ftp-store.d.ts.map +1 -1
- package/dist/v4/robots/ftp-store.js +0 -1
- package/dist/v4/robots/google-import.d.ts.map +1 -1
- package/dist/v4/robots/google-import.js +0 -1
- package/dist/v4/robots/google-store.d.ts.map +1 -1
- package/dist/v4/robots/google-store.js +0 -1
- package/dist/v4/robots/html-convert.d.ts.map +1 -1
- package/dist/v4/robots/html-convert.js +0 -1
- package/dist/v4/robots/http-import.d.ts.map +1 -1
- package/dist/v4/robots/http-import.js +0 -1
- package/dist/v4/robots/image-bgremove.d.ts +4 -4
- package/dist/v4/robots/image-bgremove.d.ts.map +1 -1
- package/dist/v4/robots/image-bgremove.js +4 -2
- package/dist/v4/robots/image-copyrightdetect.d.ts +174 -0
- package/dist/v4/robots/image-copyrightdetect.d.ts.map +1 -0
- package/dist/v4/robots/image-copyrightdetect.js +135 -0
- package/dist/v4/robots/image-describe.d.ts.map +1 -1
- package/dist/v4/robots/image-describe.js +0 -1
- package/dist/v4/robots/image-enhance.d.ts +262 -0
- package/dist/v4/robots/image-enhance.d.ts.map +1 -0
- package/dist/v4/robots/image-enhance.js +145 -0
- package/dist/v4/robots/image-facedetect.d.ts.map +1 -1
- package/dist/v4/robots/image-facedetect.js +0 -1
- package/dist/v4/robots/image-generate.d.ts +4 -4
- package/dist/v4/robots/image-generate.d.ts.map +1 -1
- package/dist/v4/robots/image-generate.js +62 -8
- package/dist/v4/robots/image-merge.d.ts +104 -8
- package/dist/v4/robots/image-merge.d.ts.map +1 -1
- package/dist/v4/robots/image-merge.js +75 -7
- package/dist/v4/robots/image-ocr.d.ts.map +1 -1
- package/dist/v4/robots/image-ocr.js +0 -1
- package/dist/v4/robots/image-optimize.d.ts +4 -0
- package/dist/v4/robots/image-optimize.d.ts.map +1 -1
- package/dist/v4/robots/image-optimize.js +16 -3
- package/dist/v4/robots/image-resize.d.ts +63 -59
- package/dist/v4/robots/image-resize.d.ts.map +1 -1
- package/dist/v4/robots/image-resize.js +37 -1
- package/dist/v4/robots/image-upscale.d.ts +148 -0
- package/dist/v4/robots/image-upscale.d.ts.map +1 -0
- package/dist/v4/robots/image-upscale.js +64 -0
- package/dist/v4/robots/mega-import.d.ts +114 -0
- package/dist/v4/robots/mega-import.d.ts.map +1 -0
- package/dist/v4/robots/mega-import.js +83 -0
- package/dist/v4/robots/mega-store.d.ts +170 -0
- package/dist/v4/robots/mega-store.d.ts.map +1 -0
- package/dist/v4/robots/mega-store.js +80 -0
- package/dist/v4/robots/meta-read.d.ts.map +1 -1
- package/dist/v4/robots/meta-read.js +8 -0
- package/dist/v4/robots/meta-write.d.ts.map +1 -1
- package/dist/v4/robots/meta-write.js +0 -1
- package/dist/v4/robots/minio-import.d.ts.map +1 -1
- package/dist/v4/robots/minio-import.js +0 -1
- package/dist/v4/robots/minio-store.d.ts.map +1 -1
- package/dist/v4/robots/minio-store.js +0 -1
- package/dist/v4/robots/progress-simulate.d.ts.map +1 -1
- package/dist/v4/robots/progress-simulate.js +13 -0
- package/dist/v4/robots/s3-import.d.ts.map +1 -1
- package/dist/v4/robots/s3-import.js +0 -1
- package/dist/v4/robots/s3-store.d.ts.map +1 -1
- package/dist/v4/robots/s3-store.js +0 -1
- package/dist/v4/robots/script-run.d.ts.map +1 -1
- package/dist/v4/robots/script-run.js +10 -1
- package/dist/v4/robots/sftp-import.d.ts.map +1 -1
- package/dist/v4/robots/sftp-import.js +0 -1
- package/dist/v4/robots/sftp-store.d.ts.map +1 -1
- package/dist/v4/robots/sftp-store.js +0 -1
- package/dist/v4/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/v4/robots/speech-transcribe.js +0 -1
- package/dist/v4/robots/supabase-import.d.ts.map +1 -1
- package/dist/v4/robots/supabase-import.js +0 -1
- package/dist/v4/robots/supabase-store.d.ts.map +1 -1
- package/dist/v4/robots/supabase-store.js +0 -1
- package/dist/v4/robots/swift-import.d.ts.map +1 -1
- package/dist/v4/robots/swift-import.js +0 -1
- package/dist/v4/robots/swift-store.d.ts.map +1 -1
- package/dist/v4/robots/swift-store.js +0 -1
- package/dist/v4/robots/text-speak.d.ts.map +1 -1
- package/dist/v4/robots/text-speak.js +0 -1
- package/dist/v4/robots/text-translate.d.ts +72 -72
- package/dist/v4/robots/text-translate.d.ts.map +1 -1
- package/dist/v4/robots/text-translate.js +0 -1
- package/dist/v4/robots/tigris-import.d.ts.map +1 -1
- package/dist/v4/robots/tigris-import.js +0 -1
- package/dist/v4/robots/tigris-store.d.ts.map +1 -1
- package/dist/v4/robots/tigris-store.js +0 -1
- package/dist/v4/robots/tlcdn-deliver.d.ts.map +1 -1
- package/dist/v4/robots/tlcdn-deliver.js +8 -1
- package/dist/v4/robots/tus-store.d.ts.map +1 -1
- package/dist/v4/robots/tus-store.js +1 -14
- package/dist/v4/robots/upload-handle.d.ts.map +1 -1
- package/dist/v4/robots/upload-handle.js +0 -1
- package/dist/v4/robots/video-adaptive.d.ts +12 -0
- package/dist/v4/robots/video-adaptive.d.ts.map +1 -1
- package/dist/v4/robots/video-adaptive.js +22 -6
- package/dist/v4/robots/video-artwork.d.ts +706 -0
- package/dist/v4/robots/video-artwork.d.ts.map +1 -0
- package/dist/v4/robots/video-artwork.js +65 -0
- package/dist/v4/robots/video-concat.d.ts +28 -0
- package/dist/v4/robots/video-concat.d.ts.map +1 -1
- package/dist/v4/robots/video-concat.js +30 -1
- package/dist/v4/robots/video-encode.d.ts.map +1 -1
- package/dist/v4/robots/video-encode.js +0 -1
- package/dist/v4/robots/video-generate.d.ts +193 -0
- package/dist/v4/robots/video-generate.d.ts.map +1 -0
- package/dist/v4/robots/video-generate.js +89 -0
- package/dist/v4/robots/video-merge.d.ts +24 -0
- package/dist/v4/robots/video-merge.d.ts.map +1 -1
- package/dist/v4/robots/video-merge.js +33 -1
- package/dist/v4/robots/video-ondemand.d.ts.map +1 -1
- package/dist/v4/robots/video-ondemand.js +3 -4
- package/dist/v4/robots/video-split.d.ts +1354 -0
- package/dist/v4/robots/video-split.d.ts.map +1 -0
- package/dist/v4/robots/video-split.js +77 -0
- package/dist/v4/robots/video-subtitle.d.ts +20 -4
- package/dist/v4/robots/video-subtitle.d.ts.map +1 -1
- package/dist/v4/robots/video-subtitle.js +61 -8
- package/dist/v4/robots/video-thumbs.d.ts.map +1 -1
- package/dist/v4/robots/video-thumbs.js +0 -1
- package/dist/v4/robots/vimeo-import.d.ts.map +1 -1
- package/dist/v4/robots/vimeo-import.js +0 -1
- package/dist/v4/robots/vimeo-store.d.ts.map +1 -1
- package/dist/v4/robots/vimeo-store.js +14 -3
- package/dist/v4/robots/wasabi-import.d.ts.map +1 -1
- package/dist/v4/robots/wasabi-import.js +0 -1
- package/dist/v4/robots/wasabi-store.d.ts.map +1 -1
- package/dist/v4/robots/wasabi-store.js +0 -1
- package/dist/v4/robots/youtube-store.d.ts +6 -6
- package/dist/v4/robots/youtube-store.d.ts.map +1 -1
- package/dist/v4/robots/youtube-store.js +4 -5
- package/dist/v4/skillFrontmatter.d.ts +15 -0
- package/dist/v4/skillFrontmatter.d.ts.map +1 -0
- package/dist/v4/skillFrontmatter.js +18 -0
- package/dist/v4/template.d.ts +55 -39011
- package/dist/v4/template.d.ts.map +1 -1
- package/dist/v4/template.js +25 -3
- package/dist/v4/templateCredential.d.ts +3 -0
- package/dist/v4/templateCredential.d.ts.map +1 -1
- package/dist/v4/templateCredential.js +1 -0
- package/package.json +5 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropbox-store.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/dropbox-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"dropbox-store.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/dropbox-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,cAoClB,CAAA;AAED,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBrC,CAAA;AAEX,eAAO,MAAM,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5D,CAAA;AAEJ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAC/F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AACpG,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,mDAAmD,CAC3D,CAAA;AAED,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7D,CAAA;AACD,MAAM,MAAM,2CAA2C,GACrD,gDAAgD,CAAA;AAElD,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CACpE,OAAO,iDAAiD,CACzD,CAAA;AAED,eAAO,MAAM,iEAAiE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7E,CAAA;AACD,MAAM,MAAM,2DAA2D,GAAG,CAAC,CAAC,KAAK,CAC/E,OAAO,iEAAiE,CACzE,CAAA;AACD,MAAM,MAAM,gEAAgE,GAAG,CAAC,CAAC,KAAK,CACpF,OAAO,iEAAiE,CACzE,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { dropboxBase, interpolateRobot, robotBase, robotUse } from "./_instructions-primitives.js";
|
|
3
3
|
export const meta = {
|
|
4
|
-
allowed_for_url_transform: true,
|
|
5
4
|
bytescount: 6,
|
|
6
5
|
discount_factor: 0.15000150001500018,
|
|
7
6
|
discount_pct: 84.99984999849998,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edgly-deliver.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/edgly-deliver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"edgly-deliver.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/edgly-deliver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,cAmClB,CAAA;AAED,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;EAMrC,CAAA;AAEX,eAAO,MAAM,mDAAmD;;;;;;;;;;;;;;;;;;;;;;EAK5D,CAAA;AAEJ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAC/F,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,mDAAmD,CAC3D,CAAA;AAED,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;EAE7D,CAAA;AACD,MAAM,MAAM,2CAA2C,GACrD,gDAAgD,CAAA;AAElD,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CACpE,OAAO,iDAAiD,CACzD,CAAA;AAED,eAAO,MAAM,iEAAiE;;;;;;;;;;;;;;;;;;;;;EAE7E,CAAA;AACD,MAAM,MAAM,2DAA2D,GAAG,CAAC,CAAC,KAAK,CAC/E,OAAO,iEAAiE,CACzE,CAAA;AACD,MAAM,MAAM,gEAAgE,GAAG,CAAC,CAAC,KAAK,CACpF,OAAO,iEAAiE,CACzE,CAAA"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { interpolateRobot, robotBase } from "./_instructions-primitives.js";
|
|
3
3
|
export const meta = {
|
|
4
|
-
allowed_for_url_transform: false,
|
|
5
4
|
bytescount: 20,
|
|
6
5
|
discount_factor: 0.05,
|
|
7
6
|
discount_pct: 95,
|
|
7
|
+
example_code: {
|
|
8
|
+
steps: {
|
|
9
|
+
deliver: {
|
|
10
|
+
robot: '/edgly/deliver',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
example_code_description: 'Cache and deliver files over Smart CDN using the edgly.net domain:',
|
|
8
15
|
minimum_charge: 102400,
|
|
9
16
|
output_factor: 1,
|
|
10
17
|
override_lvl1: 'Content Delivery',
|
|
@@ -64,6 +64,7 @@ export declare const robotFileCompressInstructionsSchema: z.ZodObject<{
|
|
|
64
64
|
compression_level: z.ZodDefault<z.ZodNumber>;
|
|
65
65
|
file_layout: z.ZodDefault<z.ZodEnum<["advanced", "simple", "relative-path"]>>;
|
|
66
66
|
archive_name: z.ZodOptional<z.ZodString>;
|
|
67
|
+
path: z.ZodOptional<z.ZodString>;
|
|
67
68
|
}, "strict", z.ZodTypeAny, {
|
|
68
69
|
robot: "/file/compress";
|
|
69
70
|
result: boolean;
|
|
@@ -74,6 +75,7 @@ export declare const robotFileCompressInstructionsSchema: z.ZodObject<{
|
|
|
74
75
|
gzip: boolean;
|
|
75
76
|
compression_level: number;
|
|
76
77
|
file_layout: "advanced" | "simple" | "relative-path";
|
|
78
|
+
path?: string | undefined;
|
|
77
79
|
use?: string | string[] | {
|
|
78
80
|
name: string;
|
|
79
81
|
fields?: string | undefined;
|
|
@@ -93,6 +95,7 @@ export declare const robotFileCompressInstructionsSchema: z.ZodObject<{
|
|
|
93
95
|
archive_name?: string | undefined;
|
|
94
96
|
}, {
|
|
95
97
|
robot: "/file/compress";
|
|
98
|
+
path?: string | undefined;
|
|
96
99
|
use?: string | string[] | {
|
|
97
100
|
name: string;
|
|
98
101
|
fields?: string | undefined;
|
|
@@ -179,6 +182,7 @@ export declare const robotFileCompressInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
179
182
|
compression_level: z.ZodDefault<z.ZodNumber>;
|
|
180
183
|
file_layout: z.ZodDefault<z.ZodEnum<["advanced", "simple", "relative-path"]>>;
|
|
181
184
|
archive_name: z.ZodOptional<z.ZodString>;
|
|
185
|
+
path: z.ZodOptional<z.ZodString>;
|
|
182
186
|
} & {
|
|
183
187
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
184
188
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -190,6 +194,7 @@ export declare const robotFileCompressInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
190
194
|
gzip: boolean;
|
|
191
195
|
compression_level: number;
|
|
192
196
|
file_layout: "advanced" | "simple" | "relative-path";
|
|
197
|
+
path?: string | undefined;
|
|
193
198
|
use?: string | string[] | {
|
|
194
199
|
name: string;
|
|
195
200
|
fields?: string | undefined;
|
|
@@ -210,6 +215,7 @@ export declare const robotFileCompressInstructionsWithHiddenFieldsSchema: z.ZodO
|
|
|
210
215
|
archive_name?: string | undefined;
|
|
211
216
|
}, {
|
|
212
217
|
robot: "/file/compress";
|
|
218
|
+
path?: string | undefined;
|
|
213
219
|
use?: string | string[] | {
|
|
214
220
|
name: string;
|
|
215
221
|
fields?: string | undefined;
|
|
@@ -299,6 +305,7 @@ export declare const interpolatableRobotFileCompressInstructionsSchema: z.ZodObj
|
|
|
299
305
|
compression_level: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
300
306
|
file_layout: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["advanced", "simple", "relative-path"]>]>>;
|
|
301
307
|
archive_name: z.ZodOptional<z.ZodString>;
|
|
308
|
+
path: z.ZodOptional<z.ZodString>;
|
|
302
309
|
}, "strict", z.ZodTypeAny, {
|
|
303
310
|
robot: "/file/compress";
|
|
304
311
|
result: string | boolean;
|
|
@@ -309,6 +316,7 @@ export declare const interpolatableRobotFileCompressInstructionsSchema: z.ZodObj
|
|
|
309
316
|
gzip: string | boolean;
|
|
310
317
|
compression_level: string | number;
|
|
311
318
|
file_layout: string;
|
|
319
|
+
path?: string | undefined;
|
|
312
320
|
use?: string | string[] | {
|
|
313
321
|
name: string;
|
|
314
322
|
fields?: string | undefined;
|
|
@@ -328,6 +336,7 @@ export declare const interpolatableRobotFileCompressInstructionsSchema: z.ZodObj
|
|
|
328
336
|
archive_name?: string | undefined;
|
|
329
337
|
}, {
|
|
330
338
|
robot: "/file/compress";
|
|
339
|
+
path?: string | undefined;
|
|
331
340
|
use?: string | string[] | {
|
|
332
341
|
name: string;
|
|
333
342
|
fields?: string | undefined;
|
|
@@ -416,6 +425,7 @@ export declare const interpolatableRobotFileCompressInstructionsWithHiddenFields
|
|
|
416
425
|
compression_level: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
417
426
|
file_layout: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["advanced", "simple", "relative-path"]>]>>;
|
|
418
427
|
archive_name: z.ZodOptional<z.ZodString>;
|
|
428
|
+
path: z.ZodOptional<z.ZodString>;
|
|
419
429
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
420
430
|
}, "strict", z.ZodTypeAny, {
|
|
421
431
|
robot: "/file/compress";
|
|
@@ -426,6 +436,7 @@ export declare const interpolatableRobotFileCompressInstructionsWithHiddenFields
|
|
|
426
436
|
gzip: string | boolean;
|
|
427
437
|
compression_level: string | number;
|
|
428
438
|
file_layout: string;
|
|
439
|
+
path?: string | undefined;
|
|
429
440
|
use?: string | string[] | {
|
|
430
441
|
name: string;
|
|
431
442
|
fields?: string | undefined;
|
|
@@ -446,6 +457,7 @@ export declare const interpolatableRobotFileCompressInstructionsWithHiddenFields
|
|
|
446
457
|
archive_name?: string | undefined;
|
|
447
458
|
}, {
|
|
448
459
|
robot: "/file/compress";
|
|
460
|
+
path?: string | undefined;
|
|
449
461
|
use?: string | string[] | {
|
|
450
462
|
name: string;
|
|
451
463
|
fields?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-compress.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-compress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"file-compress.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-compress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,cAyElB,CAAA;AAED,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DrC,CAAA;AAEX,eAAO,MAAM,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5D,CAAA;AAEJ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAC/F,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,mDAAmD,CAC3D,CAAA;AAED,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7D,CAAA;AACD,MAAM,MAAM,2CAA2C,GACrD,gDAAgD,CAAA;AAElD,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CACpE,OAAO,iDAAiD,CACzD,CAAA;AAED,eAAO,MAAM,iEAAiE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7E,CAAA;AACD,MAAM,MAAM,2DAA2D,GAAG,CAAC,CAAC,KAAK,CAC/E,OAAO,iEAAiE,CACzE,CAAA;AACD,MAAM,MAAM,gEAAgE,GAAG,CAAC,CAAC,KAAK,CACpF,OAAO,iEAAiE,CACzE,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { interpolateRobot, robotBase, robotUse } from "./_instructions-primitives.js";
|
|
3
3
|
export const meta = {
|
|
4
|
-
allowed_for_url_transform: false,
|
|
5
4
|
bytescount: 1,
|
|
6
5
|
discount_factor: 1,
|
|
7
6
|
discount_pct: 0,
|
|
@@ -126,6 +125,14 @@ Files with same names are numbered in the \`"simple"\` file layout to avoid nami
|
|
|
126
125
|
.optional()
|
|
127
126
|
.describe(`
|
|
128
127
|
The name of the archive file to be created (without the file extension).
|
|
128
|
+
`),
|
|
129
|
+
path: z
|
|
130
|
+
.string()
|
|
131
|
+
.optional()
|
|
132
|
+
.describe(`
|
|
133
|
+
The path at which each file is to be placed inside the archive. This may include any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables). Variables are evaluated per file, allowing templates like \`"\${file.meta.archive_directory}/\${file.name}"\` to preserve the original directory structure from a previously extracted archive.
|
|
134
|
+
|
|
135
|
+
When this parameter is set, the \`file_layout\` parameter is ignored.
|
|
129
136
|
`),
|
|
130
137
|
})
|
|
131
138
|
.strict();
|
|
@@ -56,12 +56,15 @@ export declare const robotFileDecompressInstructionsSchema: z.ZodObject<{
|
|
|
56
56
|
}>]>>;
|
|
57
57
|
} & {
|
|
58
58
|
robot: z.ZodLiteral<"/file/decompress">;
|
|
59
|
+
password: z.ZodOptional<z.ZodString>;
|
|
59
60
|
ignore_errors: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["meta", "execute"]>, "many">]>, ("meta" | "execute")[], boolean | ("meta" | "execute")[]>>;
|
|
61
|
+
turbo: z.ZodDefault<z.ZodBoolean>;
|
|
60
62
|
}, "strict", z.ZodTypeAny, {
|
|
61
63
|
robot: "/file/decompress";
|
|
62
64
|
result: boolean;
|
|
63
65
|
force_accept: boolean;
|
|
64
66
|
ignore_errors: ("meta" | "execute")[];
|
|
67
|
+
turbo: boolean;
|
|
65
68
|
use?: string | string[] | {
|
|
66
69
|
name: string;
|
|
67
70
|
fields?: string | undefined;
|
|
@@ -78,6 +81,7 @@ export declare const robotFileDecompressInstructionsSchema: z.ZodObject<{
|
|
|
78
81
|
} | undefined;
|
|
79
82
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
80
83
|
queue?: "batch" | undefined;
|
|
84
|
+
password?: string | undefined;
|
|
81
85
|
}, {
|
|
82
86
|
robot: "/file/decompress";
|
|
83
87
|
use?: string | string[] | {
|
|
@@ -99,6 +103,8 @@ export declare const robotFileDecompressInstructionsSchema: z.ZodObject<{
|
|
|
99
103
|
queue?: "batch" | undefined;
|
|
100
104
|
force_accept?: boolean | undefined;
|
|
101
105
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
106
|
+
password?: string | undefined;
|
|
107
|
+
turbo?: boolean | undefined;
|
|
102
108
|
}>;
|
|
103
109
|
export declare const robotFileDecompressInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
104
110
|
output_meta: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodBoolean>, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -153,13 +159,16 @@ export declare const robotFileDecompressInstructionsWithHiddenFieldsSchema: z.Zo
|
|
|
153
159
|
group_by_original?: boolean | undefined;
|
|
154
160
|
}>]>>;
|
|
155
161
|
robot: z.ZodLiteral<"/file/decompress">;
|
|
162
|
+
password: z.ZodOptional<z.ZodString>;
|
|
156
163
|
ignore_errors: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["meta", "execute"]>, "many">]>, ("meta" | "execute")[], boolean | ("meta" | "execute")[]>>;
|
|
164
|
+
turbo: z.ZodDefault<z.ZodBoolean>;
|
|
157
165
|
} & {
|
|
158
166
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
159
167
|
}, "strict", z.ZodTypeAny, {
|
|
160
168
|
robot: "/file/decompress";
|
|
161
169
|
force_accept: boolean;
|
|
162
170
|
ignore_errors: ("meta" | "execute")[];
|
|
171
|
+
turbo: boolean;
|
|
163
172
|
use?: string | string[] | {
|
|
164
173
|
name: string;
|
|
165
174
|
fields?: string | undefined;
|
|
@@ -177,6 +186,7 @@ export declare const robotFileDecompressInstructionsWithHiddenFieldsSchema: z.Zo
|
|
|
177
186
|
output_meta?: boolean | string[] | Record<string, boolean> | undefined;
|
|
178
187
|
result?: boolean | "debug" | undefined;
|
|
179
188
|
queue?: "batch" | undefined;
|
|
189
|
+
password?: string | undefined;
|
|
180
190
|
}, {
|
|
181
191
|
robot: "/file/decompress";
|
|
182
192
|
use?: string | string[] | {
|
|
@@ -198,6 +208,8 @@ export declare const robotFileDecompressInstructionsWithHiddenFieldsSchema: z.Zo
|
|
|
198
208
|
queue?: "batch" | undefined;
|
|
199
209
|
force_accept?: boolean | undefined;
|
|
200
210
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
211
|
+
password?: string | undefined;
|
|
212
|
+
turbo?: boolean | undefined;
|
|
201
213
|
}>;
|
|
202
214
|
export type RobotFileDecompressInstructions = z.infer<typeof robotFileDecompressInstructionsSchema>;
|
|
203
215
|
export type RobotFileDecompressInstructionsWithHiddenFields = z.infer<typeof robotFileDecompressInstructionsWithHiddenFieldsSchema>;
|
|
@@ -255,12 +267,15 @@ export declare const interpolatableRobotFileDecompressInstructionsSchema: z.ZodO
|
|
|
255
267
|
group_by_original?: boolean | undefined;
|
|
256
268
|
}>]>>;
|
|
257
269
|
robot: z.ZodLiteral<"/file/decompress">;
|
|
270
|
+
password: z.ZodOptional<z.ZodString>;
|
|
258
271
|
ignore_errors: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["meta", "execute"]>, "many">]>, ("meta" | "execute")[], boolean | ("meta" | "execute")[]>]>>;
|
|
272
|
+
turbo: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
259
273
|
}, "strict", z.ZodTypeAny, {
|
|
260
274
|
robot: "/file/decompress";
|
|
261
275
|
result: string | boolean;
|
|
262
276
|
force_accept: string | boolean;
|
|
263
277
|
ignore_errors: string | ("meta" | "execute")[];
|
|
278
|
+
turbo: string | boolean;
|
|
264
279
|
use?: string | string[] | {
|
|
265
280
|
name: string;
|
|
266
281
|
fields?: string | undefined;
|
|
@@ -277,6 +292,7 @@ export declare const interpolatableRobotFileDecompressInstructionsSchema: z.ZodO
|
|
|
277
292
|
} | undefined;
|
|
278
293
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
279
294
|
queue?: string | undefined;
|
|
295
|
+
password?: string | undefined;
|
|
280
296
|
}, {
|
|
281
297
|
robot: "/file/decompress";
|
|
282
298
|
use?: string | string[] | {
|
|
@@ -298,6 +314,8 @@ export declare const interpolatableRobotFileDecompressInstructionsSchema: z.ZodO
|
|
|
298
314
|
queue?: string | undefined;
|
|
299
315
|
force_accept?: string | boolean | undefined;
|
|
300
316
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
317
|
+
password?: string | undefined;
|
|
318
|
+
turbo?: string | boolean | undefined;
|
|
301
319
|
}>;
|
|
302
320
|
export type InterpolatableRobotFileDecompressInstructions = InterpolatableRobotFileDecompressInstructionsInput;
|
|
303
321
|
export type InterpolatableRobotFileDecompressInstructionsInput = z.input<typeof interpolatableRobotFileDecompressInstructionsSchema>;
|
|
@@ -354,12 +372,15 @@ export declare const interpolatableRobotFileDecompressInstructionsWithHiddenFiel
|
|
|
354
372
|
group_by_original?: boolean | undefined;
|
|
355
373
|
}>]>>;
|
|
356
374
|
robot: z.ZodLiteral<"/file/decompress">;
|
|
375
|
+
password: z.ZodOptional<z.ZodString>;
|
|
357
376
|
ignore_errors: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["meta", "execute"]>, "many">]>, ("meta" | "execute")[], boolean | ("meta" | "execute")[]>]>>;
|
|
377
|
+
turbo: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
358
378
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
359
379
|
}, "strict", z.ZodTypeAny, {
|
|
360
380
|
robot: "/file/decompress";
|
|
361
381
|
force_accept: string | boolean;
|
|
362
382
|
ignore_errors: string | ("meta" | "execute")[];
|
|
383
|
+
turbo: string | boolean;
|
|
363
384
|
use?: string | string[] | {
|
|
364
385
|
name: string;
|
|
365
386
|
fields?: string | undefined;
|
|
@@ -377,6 +398,7 @@ export declare const interpolatableRobotFileDecompressInstructionsWithHiddenFiel
|
|
|
377
398
|
output_meta?: string | boolean | string[] | Record<string, string | boolean> | undefined;
|
|
378
399
|
result?: string | boolean | undefined;
|
|
379
400
|
queue?: string | undefined;
|
|
401
|
+
password?: string | undefined;
|
|
380
402
|
}, {
|
|
381
403
|
robot: "/file/decompress";
|
|
382
404
|
use?: string | string[] | {
|
|
@@ -398,6 +420,8 @@ export declare const interpolatableRobotFileDecompressInstructionsWithHiddenFiel
|
|
|
398
420
|
queue?: string | undefined;
|
|
399
421
|
force_accept?: string | boolean | undefined;
|
|
400
422
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
423
|
+
password?: string | undefined;
|
|
424
|
+
turbo?: string | boolean | undefined;
|
|
401
425
|
}>;
|
|
402
426
|
export type InterpolatableRobotFileDecompressInstructionsWithHiddenFields = z.infer<typeof interpolatableRobotFileDecompressInstructionsWithHiddenFieldsSchema>;
|
|
403
427
|
export type InterpolatableRobotFileDecompressInstructionsWithHiddenFieldsInput = z.input<typeof interpolatableRobotFileDecompressInstructionsWithHiddenFieldsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-decompress.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-decompress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"file-decompress.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-decompress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,cAkClB,CAAA;AAED,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EvC,CAAA;AAEX,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK9D,CAAA;AAEJ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA;AACnG,MAAM,MAAM,+CAA+C,GAAG,CAAC,CAAC,KAAK,CACnE,OAAO,qDAAqD,CAC7D,CAAA;AAED,eAAO,MAAM,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/D,CAAA;AACD,MAAM,MAAM,6CAA6C,GACvD,kDAAkD,CAAA;AAEpD,MAAM,MAAM,kDAAkD,GAAG,CAAC,CAAC,KAAK,CACtE,OAAO,mDAAmD,CAC3D,CAAA;AAED,eAAO,MAAM,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/E,CAAA;AACD,MAAM,MAAM,6DAA6D,GAAG,CAAC,CAAC,KAAK,CACjF,OAAO,mEAAmE,CAC3E,CAAA;AACD,MAAM,MAAM,kEAAkE,GAAG,CAAC,CAAC,KAAK,CACtF,OAAO,mEAAmE,CAC3E,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { interpolateRobot, robotBase, robotUse } from "./_instructions-primitives.js";
|
|
3
3
|
export const meta = {
|
|
4
|
-
allowed_for_url_transform: true,
|
|
5
4
|
bytescount: 1,
|
|
6
5
|
discount_factor: 0.8,
|
|
7
6
|
discount_pct: 20,
|
|
@@ -41,9 +40,9 @@ export const robotFileDecompressInstructionsSchema = robotBase
|
|
|
41
40
|
robot: z.literal('/file/decompress').describe(`
|
|
42
41
|
This Robot supports the following archive formats:
|
|
43
42
|
|
|
44
|
-
- ZIP archives (with uncompressed or "deflate"-compressed entries)
|
|
45
|
-
- 7-Zip archives
|
|
46
|
-
- RAR archives
|
|
43
|
+
- ZIP archives (with uncompressed or "deflate"-compressed entries, including password-protected)
|
|
44
|
+
- 7-Zip archives (including AES-256 encrypted)
|
|
45
|
+
- RAR archives (including encrypted)
|
|
47
46
|
- GNU tar format (including GNU long filenames, long link names, and sparse files)
|
|
48
47
|
- Solaris 9 extended tar format (including ACLs)
|
|
49
48
|
- Old V7 tar archives
|
|
@@ -69,7 +68,21 @@ This <dfn>Robot</dfn> also detects and handles any of the following before evalu
|
|
|
69
68
|
- compress/LZW compression
|
|
70
69
|
- lzma, lzip, and xz compression
|
|
71
70
|
|
|
72
|
-
For security reasons, archives that contain symlinks to outside the archived dir, will error out the <dfn>Assembly</dfn>.
|
|
71
|
+
For security reasons, archives that contain symlinks to outside the archived dir, will error out the <dfn>Assembly</dfn>.
|
|
72
|
+
|
|
73
|
+
Password-protected archives (ZIP with ZipCrypto or AES encryption, RAR encrypted, 7z with AES-256) are supported via the \`password\` parameter.
|
|
74
|
+
`),
|
|
75
|
+
password: z
|
|
76
|
+
.string()
|
|
77
|
+
.optional()
|
|
78
|
+
.describe(`
|
|
79
|
+
The password to use for decrypting password-protected archives.
|
|
80
|
+
|
|
81
|
+
Supports encrypted ZIP (ZipCrypto and AES), RAR (encrypted), and 7z (AES-256 encrypted) archives.
|
|
82
|
+
|
|
83
|
+
For security, this value should be passed via Template Variables (\`\${fields.archive_password}\`) or Template Credentials rather than hardcoded in your Assembly Instructions. The password is never logged or included in Assembly status responses.
|
|
84
|
+
|
|
85
|
+
If the archive is encrypted and no password is provided, or if the password is incorrect, the <dfn>Assembly</dfn> will fail with a \`FILE_DECOMPRESS_PASSWORD_REQUIRED\` or \`FILE_DECOMPRESS_PASSWORD_INCORRECT\` error.
|
|
73
86
|
`),
|
|
74
87
|
ignore_errors: z
|
|
75
88
|
.union([z.boolean(), z.array(z.enum(['meta', 'execute']))])
|
|
@@ -81,6 +94,18 @@ A possible array member is only \`"meta"\`.
|
|
|
81
94
|
You might see an error when trying to extract metadata from the files inside your archive. This happens, for example, for files with a size of zero bytes. Setting this to \`true\` will cause the <dfn>Robot</dfn> to not stop the file decompression (and the entire <dfn>Assembly</dfn>) when that happens.
|
|
82
95
|
|
|
83
96
|
To keep backwards compatibility, setting this parameter to \`true\` will set it to \`["meta"]\` internally.
|
|
97
|
+
`),
|
|
98
|
+
turbo: z
|
|
99
|
+
.boolean()
|
|
100
|
+
.default(true)
|
|
101
|
+
.describe(`
|
|
102
|
+
Enables Turbo Mode for \`/file/decompress\`.
|
|
103
|
+
|
|
104
|
+
This setting defaults to \`true\`. Set it to \`false\` to disable Turbo Mode.
|
|
105
|
+
|
|
106
|
+
When enabled, extracted files are emitted as soon as they are available, which can speed up downstream processing for large archives.
|
|
107
|
+
|
|
108
|
+
Turbo Mode also changes usage accounting: emitted extracted-file bytes and original input-archive bytes are billed with a surcharge (25% by default).
|
|
84
109
|
`),
|
|
85
110
|
})
|
|
86
111
|
.strict();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-filter.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAQnE,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"file-filter.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAQnE,eAAO,MAAM,IAAI,EAAE,cAsClB,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6GnC,CAAA;AAEX,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1D,CAAA;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAC3F,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,iDAAiD,CACzD,CAAA;AAED,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3D,CAAA;AACD,MAAM,MAAM,yCAAyC,GACnD,8CAA8C,CAAA;AAEhD,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,+CAA+C,CACvD,CAAA;AAED,eAAO,MAAM,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3E,CAAA;AACD,MAAM,MAAM,yDAAyD,GAAG,CAAC,CAAC,KAAK,CAC7E,OAAO,+DAA+D,CACvE,CAAA;AACD,MAAM,MAAM,8DAA8D,GAAG,CAAC,CAAC,KAAK,CAClF,OAAO,+DAA+D,CACvE,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { filterCondition, interpolateRobot, robotBase, robotUse, } from "./_instructions-primitives.js";
|
|
3
3
|
export const meta = {
|
|
4
|
-
allowed_for_url_transform: true,
|
|
5
4
|
bytescount: 0,
|
|
6
5
|
discount_factor: 0,
|
|
7
6
|
discount_pct: 100,
|
|
@@ -10,7 +9,7 @@ export const meta = {
|
|
|
10
9
|
filtered: {
|
|
11
10
|
robot: '/file/filter',
|
|
12
11
|
use: ':original',
|
|
13
|
-
declines: [['${file.size}', '>', '
|
|
12
|
+
declines: [['${file.size}', '>', '20mb']],
|
|
14
13
|
error_on_decline: true,
|
|
15
14
|
error_msg: 'File size must not exceed 20 MB',
|
|
16
15
|
},
|
|
@@ -65,9 +64,21 @@ Examples:
|
|
|
65
64
|
|
|
66
65
|
- \`[["\${file.meta.width}", ">", "\${file.meta.height}"]]\`
|
|
67
66
|
- \`[["\${file.size}", "<=", "720"]]\`
|
|
67
|
+
- \`[["\${file.size}", ">", "20mb"]]\`
|
|
68
68
|
- \`[["720", ">=", "\${file.size}"]]\`
|
|
69
69
|
- \`[["\${file.mime}", "regex", "image"]]\`
|
|
70
70
|
|
|
71
|
+
When you match against \`\${file.mime}\`, the value is typically based on Transloadit’s
|
|
72
|
+
server-side metadata extraction in the normal upload flow, rather than only the MIME type reported
|
|
73
|
+
by the client or browser. This makes \`/file/filter\` suitable for rejecting mislabeled files.
|
|
74
|
+
Depending on the file container and the detection tools involved, some formats may be reported under
|
|
75
|
+
closely related MIME types such as \`image/heic\` or \`image/heif\`.
|
|
76
|
+
|
|
77
|
+
If you only want formats that browsers consistently render, prefer an explicit allowlist such as
|
|
78
|
+
\`^(image/jpeg|image/png|image/gif|image/webp|image/avif)$\` over a broad \`^image/\` rule.
|
|
79
|
+
|
|
80
|
+
For numeric comparisons (\`<\`, \`>\`, \`<=\`, \`>=\`), you can use human-readable byte values such as \`"20mb"\`, \`"1gb"\`, or \`"512kb"\`. These use binary (1024-based) multipliers. Supported units: \`b\`, \`kb\`, \`mb\`, \`gb\`, \`tb\`, \`pb\` (and their IEC equivalents \`kib\`, \`mib\`, \`gib\`, \`tib\`, \`pib\`).
|
|
81
|
+
|
|
71
82
|
The \`includes\` and \`!includes\` operators work with arrays or strings (strings use substring checks).
|
|
72
83
|
|
|
73
84
|
> [!Warning]
|
|
@@ -88,9 +99,12 @@ As indicated, we charge for this via [🤖/script/run](/docs/robots/script-run/)
|
|
|
88
99
|
`),
|
|
89
100
|
accepts: filterCondition
|
|
90
101
|
.describe(`
|
|
91
|
-
Files that match at least one requirement will be accepted, or declined otherwise. If the value is \`null\`, all files will be accepted. If the array is empty, no files will be accepted.
|
|
102
|
+
Files that match at least one requirement will be accepted, or declined otherwise. If the value is \`null\`, all files will be accepted. If the array is empty, no files will be accepted. Examples:
|
|
92
103
|
|
|
93
|
-
\`[["\${file.mime}", "==", "image/gif"]]
|
|
104
|
+
\`[["\${file.mime}", "==", "image/gif"]]\`
|
|
105
|
+
\`[["\${file.size}", "<", "5kb"]]\`
|
|
106
|
+
|
|
107
|
+
For numeric comparisons (\`<\`, \`>\`, \`<=\`, \`>=\`), human-readable byte values such as \`"20mb"\`, \`"1gb"\`, or \`"512kb"\` are supported.
|
|
94
108
|
|
|
95
109
|
If the \`condition_type\` parameter is set to \`"and"\`, then all requirements must match for the file to be accepted.
|
|
96
110
|
|
|
@@ -99,9 +113,12 @@ If \`accepts\` and \`declines\` are both provided, the requirements in \`accepts
|
|
|
99
113
|
.optional(),
|
|
100
114
|
declines: filterCondition
|
|
101
115
|
.describe(`
|
|
102
|
-
Files that match at least one requirement will be declined, or accepted otherwise. If the value is \`null\` or an empty array, no files will be declined.
|
|
116
|
+
Files that match at least one requirement will be declined, or accepted otherwise. If the value is \`null\` or an empty array, no files will be declined. Examples:
|
|
117
|
+
|
|
118
|
+
\`[["\${file.size}", ">", "1024"]]\`
|
|
119
|
+
\`[["\${file.size}", ">", "20mb"]]\`
|
|
103
120
|
|
|
104
|
-
\`
|
|
121
|
+
For numeric comparisons (\`<\`, \`>\`, \`<=\`, \`>=\`), human-readable byte values such as \`"20mb"\`, \`"1gb"\`, or \`"512kb"\` are supported.
|
|
105
122
|
|
|
106
123
|
If the \`condition_type\` parameter is set to \`"and"\`, then all requirements must match for the file to be declined.
|
|
107
124
|
|
|
@@ -59,12 +59,16 @@ export declare const robotFileHashInstructionsSchema: z.ZodObject<{
|
|
|
59
59
|
} & {
|
|
60
60
|
robot: z.ZodLiteral<"/file/hash">;
|
|
61
61
|
algorithm: z.ZodDefault<z.ZodEnum<["b2", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"]>>;
|
|
62
|
+
partial: z.ZodDefault<z.ZodEnum<["full", "first", "last", "both"]>>;
|
|
63
|
+
partial_size: z.ZodDefault<z.ZodNumber>;
|
|
62
64
|
}, "strict", z.ZodTypeAny, {
|
|
65
|
+
partial: "full" | "last" | "first" | "both";
|
|
63
66
|
robot: "/file/hash";
|
|
64
67
|
result: boolean;
|
|
65
68
|
force_accept: boolean;
|
|
66
69
|
ignore_errors: string[];
|
|
67
70
|
algorithm: "sha1" | "b2" | "md5" | "sha224" | "sha256" | "sha384" | "sha512";
|
|
71
|
+
partial_size: number;
|
|
68
72
|
use?: string | string[] | {
|
|
69
73
|
name: string;
|
|
70
74
|
fields?: string | undefined;
|
|
@@ -83,6 +87,7 @@ export declare const robotFileHashInstructionsSchema: z.ZodObject<{
|
|
|
83
87
|
queue?: "batch" | undefined;
|
|
84
88
|
}, {
|
|
85
89
|
robot: "/file/hash";
|
|
90
|
+
partial?: "full" | "last" | "first" | "both" | undefined;
|
|
86
91
|
use?: string | string[] | {
|
|
87
92
|
name: string;
|
|
88
93
|
fields?: string | undefined;
|
|
@@ -103,6 +108,7 @@ export declare const robotFileHashInstructionsSchema: z.ZodObject<{
|
|
|
103
108
|
force_accept?: boolean | undefined;
|
|
104
109
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
105
110
|
algorithm?: "sha1" | "b2" | "md5" | "sha224" | "sha256" | "sha384" | "sha512" | undefined;
|
|
111
|
+
partial_size?: number | undefined;
|
|
106
112
|
}>;
|
|
107
113
|
export declare const robotFileHashInstructionsWithHiddenFieldsSchema: z.ZodObject<{
|
|
108
114
|
output_meta: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodBoolean>, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -159,13 +165,17 @@ export declare const robotFileHashInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
159
165
|
}>]>>;
|
|
160
166
|
robot: z.ZodLiteral<"/file/hash">;
|
|
161
167
|
algorithm: z.ZodDefault<z.ZodEnum<["b2", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"]>>;
|
|
168
|
+
partial: z.ZodDefault<z.ZodEnum<["full", "first", "last", "both"]>>;
|
|
169
|
+
partial_size: z.ZodDefault<z.ZodNumber>;
|
|
162
170
|
} & {
|
|
163
171
|
result: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
|
|
164
172
|
}, "strict", z.ZodTypeAny, {
|
|
173
|
+
partial: "full" | "last" | "first" | "both";
|
|
165
174
|
robot: "/file/hash";
|
|
166
175
|
force_accept: boolean;
|
|
167
176
|
ignore_errors: string[];
|
|
168
177
|
algorithm: "sha1" | "b2" | "md5" | "sha224" | "sha256" | "sha384" | "sha512";
|
|
178
|
+
partial_size: number;
|
|
169
179
|
use?: string | string[] | {
|
|
170
180
|
name: string;
|
|
171
181
|
fields?: string | undefined;
|
|
@@ -185,6 +195,7 @@ export declare const robotFileHashInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
185
195
|
queue?: "batch" | undefined;
|
|
186
196
|
}, {
|
|
187
197
|
robot: "/file/hash";
|
|
198
|
+
partial?: "full" | "last" | "first" | "both" | undefined;
|
|
188
199
|
use?: string | string[] | {
|
|
189
200
|
name: string;
|
|
190
201
|
fields?: string | undefined;
|
|
@@ -205,6 +216,7 @@ export declare const robotFileHashInstructionsWithHiddenFieldsSchema: z.ZodObjec
|
|
|
205
216
|
force_accept?: boolean | undefined;
|
|
206
217
|
ignore_errors?: boolean | ("meta" | "execute")[] | undefined;
|
|
207
218
|
algorithm?: "sha1" | "b2" | "md5" | "sha224" | "sha256" | "sha384" | "sha512" | undefined;
|
|
219
|
+
partial_size?: number | undefined;
|
|
208
220
|
}>;
|
|
209
221
|
export type RobotFileHashInstructions = z.infer<typeof robotFileHashInstructionsSchema>;
|
|
210
222
|
export type RobotFileHashInstructionsWithHiddenFields = z.infer<typeof robotFileHashInstructionsWithHiddenFieldsSchema>;
|
|
@@ -264,12 +276,16 @@ export declare const interpolatableRobotFileHashInstructionsSchema: z.ZodObject<
|
|
|
264
276
|
}>]>>;
|
|
265
277
|
robot: z.ZodLiteral<"/file/hash">;
|
|
266
278
|
algorithm: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["b2", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"]>]>>;
|
|
279
|
+
partial: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["full", "first", "last", "both"]>]>>;
|
|
280
|
+
partial_size: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
267
281
|
}, "strict", z.ZodTypeAny, {
|
|
282
|
+
partial: string;
|
|
268
283
|
robot: "/file/hash";
|
|
269
284
|
result: string | boolean;
|
|
270
285
|
force_accept: string | boolean;
|
|
271
286
|
ignore_errors: string | string[];
|
|
272
287
|
algorithm: string;
|
|
288
|
+
partial_size: string | number;
|
|
273
289
|
use?: string | string[] | {
|
|
274
290
|
name: string;
|
|
275
291
|
fields?: string | undefined;
|
|
@@ -288,6 +304,7 @@ export declare const interpolatableRobotFileHashInstructionsSchema: z.ZodObject<
|
|
|
288
304
|
queue?: string | undefined;
|
|
289
305
|
}, {
|
|
290
306
|
robot: "/file/hash";
|
|
307
|
+
partial?: string | undefined;
|
|
291
308
|
use?: string | string[] | {
|
|
292
309
|
name: string;
|
|
293
310
|
fields?: string | undefined;
|
|
@@ -308,6 +325,7 @@ export declare const interpolatableRobotFileHashInstructionsSchema: z.ZodObject<
|
|
|
308
325
|
force_accept?: string | boolean | undefined;
|
|
309
326
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
310
327
|
algorithm?: string | undefined;
|
|
328
|
+
partial_size?: string | number | undefined;
|
|
311
329
|
}>;
|
|
312
330
|
export type InterpolatableRobotFileHashInstructions = InterpolatableRobotFileHashInstructionsInput;
|
|
313
331
|
export type InterpolatableRobotFileHashInstructionsInput = z.input<typeof interpolatableRobotFileHashInstructionsSchema>;
|
|
@@ -366,12 +384,16 @@ export declare const interpolatableRobotFileHashInstructionsWithHiddenFieldsSche
|
|
|
366
384
|
}>]>>;
|
|
367
385
|
robot: z.ZodLiteral<"/file/hash">;
|
|
368
386
|
algorithm: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["b2", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"]>]>>;
|
|
387
|
+
partial: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodEnum<["full", "first", "last", "both"]>]>>;
|
|
388
|
+
partial_size: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
369
389
|
result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
|
|
370
390
|
}, "strict", z.ZodTypeAny, {
|
|
391
|
+
partial: string;
|
|
371
392
|
robot: "/file/hash";
|
|
372
393
|
force_accept: string | boolean;
|
|
373
394
|
ignore_errors: string | string[];
|
|
374
395
|
algorithm: string;
|
|
396
|
+
partial_size: string | number;
|
|
375
397
|
use?: string | string[] | {
|
|
376
398
|
name: string;
|
|
377
399
|
fields?: string | undefined;
|
|
@@ -391,6 +413,7 @@ export declare const interpolatableRobotFileHashInstructionsWithHiddenFieldsSche
|
|
|
391
413
|
queue?: string | undefined;
|
|
392
414
|
}, {
|
|
393
415
|
robot: "/file/hash";
|
|
416
|
+
partial?: string | undefined;
|
|
394
417
|
use?: string | string[] | {
|
|
395
418
|
name: string;
|
|
396
419
|
fields?: string | undefined;
|
|
@@ -411,6 +434,7 @@ export declare const interpolatableRobotFileHashInstructionsWithHiddenFieldsSche
|
|
|
411
434
|
force_accept?: string | boolean | undefined;
|
|
412
435
|
ignore_errors?: string | boolean | ("meta" | "execute")[] | undefined;
|
|
413
436
|
algorithm?: string | undefined;
|
|
437
|
+
partial_size?: string | number | undefined;
|
|
414
438
|
}>;
|
|
415
439
|
export type InterpolatableRobotFileHashInstructionsWithHiddenFields = z.infer<typeof interpolatableRobotFileHashInstructionsWithHiddenFieldsSchema>;
|
|
416
440
|
export type InterpolatableRobotFileHashInstructionsWithHiddenFieldsInput = z.input<typeof interpolatableRobotFileHashInstructionsWithHiddenFieldsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-hash.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"file-hash.d.ts","sourceRoot":"","sources":["../../../src/v3/robots/file-hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAGnE,eAAO,MAAM,IAAI,EAAE,cAiClB,CAAA;AAED,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCjC,CAAA;AAEX,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxD,CAAA;AAEJ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,+CAA+C,CACvD,CAAA;AAED,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzD,CAAA;AACD,MAAM,MAAM,uCAAuC,GAAG,4CAA4C,CAAA;AAElG,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAChE,OAAO,6CAA6C,CACrD,CAAA;AAED,eAAO,MAAM,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzE,CAAA;AACD,MAAM,MAAM,uDAAuD,GAAG,CAAC,CAAC,KAAK,CAC3E,OAAO,6DAA6D,CACrE,CAAA;AACD,MAAM,MAAM,4DAA4D,GAAG,CAAC,CAAC,KAAK,CAChF,OAAO,6DAA6D,CACrE,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import { interpolateRobot, robotBase, robotUse } from "./_instructions-primitives.js";
|
|
3
3
|
export const meta = {
|
|
4
|
-
allowed_for_url_transform: false,
|
|
5
4
|
bytescount: 5,
|
|
6
5
|
discount_factor: 0.2,
|
|
7
6
|
discount_pct: 80,
|
|
@@ -48,6 +47,29 @@ This <dfn>Robot</dfn> allows you to hash any file as part of the <dfn>Assembly</
|
|
|
48
47
|
The hashing algorithm to use.
|
|
49
48
|
|
|
50
49
|
The file hash is exported as \`file.meta.hash\`.
|
|
50
|
+
`),
|
|
51
|
+
partial: z
|
|
52
|
+
.enum(['full', 'first', 'last', 'both'])
|
|
53
|
+
.default('full')
|
|
54
|
+
.describe(`
|
|
55
|
+
Specifies which portion of the file to hash. This is useful for fast fingerprinting of large files.
|
|
56
|
+
|
|
57
|
+
- \`"full"\` (default): Hash the entire file.
|
|
58
|
+
- \`"first"\`: Hash only the first N bytes (specified by \`partial_size\`).
|
|
59
|
+
- \`"last"\`: Hash only the last N bytes (specified by \`partial_size\`).
|
|
60
|
+
- \`"both"\`: Hash the first N bytes concatenated with the last N bytes.
|
|
61
|
+
|
|
62
|
+
When using partial hashing, \`file.meta.hash_partial\` indicates the mode used, and \`file.meta.hash_partial_size\` indicates the number of bytes hashed from each portion.
|
|
63
|
+
`),
|
|
64
|
+
partial_size: z
|
|
65
|
+
.number()
|
|
66
|
+
.int()
|
|
67
|
+
.positive()
|
|
68
|
+
.default(1048576)
|
|
69
|
+
.describe(`
|
|
70
|
+
The number of bytes to hash when using partial hashing. Defaults to \`1048576\` (1 MB).
|
|
71
|
+
|
|
72
|
+
This parameter is only used when \`partial\` is set to \`"first"\`, \`"last"\`, or \`"both"\`.
|
|
51
73
|
`),
|
|
52
74
|
})
|
|
53
75
|
.strict();
|