transloadit 4.13.1 → 5.0.0
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 +58 -6
- package/dist/ApiError.d.ts +6 -2
- package/dist/ApiError.d.ts.map +1 -1
- package/dist/ApiError.js +6 -2
- package/dist/ApiError.js.map +1 -1
- package/dist/Transloadit.d.ts +2 -0
- package/dist/Transloadit.d.ts.map +1 -1
- package/dist/Transloadit.js +15 -4
- package/dist/Transloadit.js.map +1 -1
- package/dist/alphalib/aiMessages.d.ts +33254 -0
- package/dist/alphalib/aiMessages.d.ts.map +1 -0
- package/dist/alphalib/aiMessages.js +479 -0
- package/dist/alphalib/aiMessages.js.map +1 -0
- package/dist/alphalib/assembly-linter.d.ts.map +1 -1
- package/dist/alphalib/assembly-linter.js +20 -15
- package/dist/alphalib/assembly-linter.js.map +1 -1
- package/dist/alphalib/englishList.d.ts +3 -0
- package/dist/alphalib/englishList.d.ts.map +1 -0
- package/dist/alphalib/englishList.js +12 -0
- package/dist/alphalib/englishList.js.map +1 -0
- package/dist/alphalib/errors.d.ts +16 -0
- package/dist/alphalib/errors.d.ts.map +1 -1
- package/dist/alphalib/errors.js +124 -13
- package/dist/alphalib/errors.js.map +1 -1
- package/dist/alphalib/imagemagickDensity.d.ts.map +1 -1
- package/dist/alphalib/imagemagickDensity.js +2 -2
- package/dist/alphalib/imagemagickDensity.js.map +1 -1
- package/dist/alphalib/lib/zodInputSemantics.d.ts +18 -0
- package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -0
- package/dist/alphalib/lib/zodInputSemantics.js +86 -0
- package/dist/alphalib/lib/zodInputSemantics.js.map +1 -0
- package/dist/alphalib/object.d.ts +42 -2
- package/dist/alphalib/object.d.ts.map +1 -1
- package/dist/alphalib/object.js +133 -0
- package/dist/alphalib/object.js.map +1 -1
- package/dist/alphalib/stepParsing.d.ts +1 -0
- package/dist/alphalib/stepParsing.d.ts.map +1 -1
- package/dist/alphalib/stepParsing.js +9 -1
- package/dist/alphalib/stepParsing.js.map +1 -1
- package/dist/alphalib/types/apiParameterDescription.d.ts +14 -0
- package/dist/alphalib/types/apiParameterDescription.d.ts.map +1 -0
- package/dist/alphalib/types/apiParameterDescription.js +20 -0
- package/dist/alphalib/types/apiParameterDescription.js.map +1 -0
- package/dist/alphalib/types/assembliesGet.d.ts +1 -1
- package/dist/alphalib/types/assemblyReplay.d.ts +4 -4
- package/dist/alphalib/types/assemblyStatus.d.ts +7196 -64686
- package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
- package/dist/alphalib/types/assemblyStatus.js +74 -55
- package/dist/alphalib/types/assemblyStatus.js.map +1 -1
- package/dist/alphalib/types/errorReason.d.ts +7 -0
- package/dist/alphalib/types/errorReason.d.ts.map +1 -0
- package/dist/alphalib/types/errorReason.js +14 -0
- package/dist/alphalib/types/errorReason.js.map +1 -0
- package/dist/alphalib/types/file.d.ts +7 -0
- package/dist/alphalib/types/file.d.ts.map +1 -1
- package/dist/alphalib/types/file.js +15 -0
- package/dist/alphalib/types/file.js.map +1 -1
- package/dist/alphalib/types/fileHash.d.ts +16 -0
- package/dist/alphalib/types/fileHash.d.ts.map +1 -0
- package/dist/alphalib/types/fileHash.js +10 -0
- package/dist/alphalib/types/fileHash.js.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts +28 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.js +80 -0
- package/dist/alphalib/types/robots/_ai-models.js.map +1 -0
- package/dist/alphalib/types/robots/_index.d.ts +713 -1329
- package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_index.js +4 -0
- package/dist/alphalib/types/robots/_index.js.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts +504 -129
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.js +629 -280
- package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.d.ts +952 -2189
- package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.js +235 -367
- package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.d.ts +28 -16
- package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.js +2 -11
- package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.js +9 -38
- package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.js +11 -25
- package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.js +13 -43
- package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.js +12 -40
- package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.js +11 -25
- package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
- package/dist/alphalib/types/robots/audio-split.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-split.js +15 -45
- package/dist/alphalib/types/robots/audio-split.js.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.d.ts +120 -107
- package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.js +15 -39
- package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
- package/dist/alphalib/types/robots/azure-import.d.ts +48 -35
- package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-import.js +5 -35
- package/dist/alphalib/types/robots/azure-import.js.map +1 -1
- package/dist/alphalib/types/robots/azure-store.d.ts +87 -71
- package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-store.js +11 -50
- package/dist/alphalib/types/robots/azure-store.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.d.ts +48 -35
- package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.js +6 -39
- package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.d.ts +80 -67
- package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.js +8 -44
- package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
- package/dist/alphalib/types/robots/box-import.d.ts +44 -27
- package/dist/alphalib/types/robots/box-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-import.js +7 -33
- package/dist/alphalib/types/robots/box-import.js.map +1 -1
- package/dist/alphalib/types/robots/box-store.d.ts +85 -68
- package/dist/alphalib/types/robots/box-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-store.js +8 -40
- package/dist/alphalib/types/robots/box-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.js +8 -45
- package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.js +5 -36
- package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.js +10 -57
- package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.js +11 -54
- package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.d.ts +56 -43
- package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.js +8 -49
- package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.d.ts +88 -75
- package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.js +8 -56
- package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.d.ts +80 -67
- package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.js +5 -32
- package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
- package/dist/alphalib/types/robots/document-convert.d.ts +84 -71
- package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-convert.js +7 -33
- package/dist/alphalib/types/robots/document-convert.js.map +1 -1
- package/dist/alphalib/types/robots/document-extract.d.ts +80 -67
- package/dist/alphalib/types/robots/document-extract.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-extract.js +10 -36
- package/dist/alphalib/types/robots/document-extract.js.map +1 -1
- package/dist/alphalib/types/robots/document-merge.d.ts +80 -67
- package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-merge.js +4 -25
- package/dist/alphalib/types/robots/document-merge.js.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.js +10 -47
- package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.d.ts +80 -67
- package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.js +7 -31
- package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/document-split.d.ts +80 -67
- package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-split.js +7 -34
- package/dist/alphalib/types/robots/document-split.js.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.d.ts +120 -101
- package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.js +24 -31
- package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.d.ts +40 -27
- package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.js +5 -35
- package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.d.ts +84 -68
- package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.js +8 -42
- package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.js +4 -24
- package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/file-compress.d.ts +80 -67
- package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-compress.js +4 -20
- package/dist/alphalib/types/robots/file-compress.js.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.d.ts +96 -83
- package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.js +10 -41
- package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
- package/dist/alphalib/types/robots/file-filter.d.ts +99 -87
- package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-filter.js +11 -40
- package/dist/alphalib/types/robots/file-filter.js.map +1 -1
- package/dist/alphalib/types/robots/file-hash.d.ts +84 -71
- package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-hash.js +12 -43
- package/dist/alphalib/types/robots/file-hash.js.map +1 -1
- package/dist/alphalib/types/robots/file-preview.d.ts +113 -100
- package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-preview.js +14 -39
- package/dist/alphalib/types/robots/file-preview.js.map +1 -1
- package/dist/alphalib/types/robots/file-read.d.ts +80 -67
- package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-read.js +5 -26
- package/dist/alphalib/types/robots/file-read.js.map +1 -1
- package/dist/alphalib/types/robots/file-serve.d.ts +81 -68
- package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-serve.js +4 -21
- package/dist/alphalib/types/robots/file-serve.js.map +1 -1
- package/dist/alphalib/types/robots/file-verify.d.ts +88 -75
- package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-verify.js +11 -41
- package/dist/alphalib/types/robots/file-verify.js.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.d.ts +83 -67
- package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.js +16 -42
- package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.d.ts +81 -67
- package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.js +10 -29
- package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.d.ts +40 -27
- package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.js +5 -33
- package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.d.ts +85 -67
- package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.js +7 -34
- package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/google-import.d.ts +48 -35
- package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-import.js +10 -43
- package/dist/alphalib/types/robots/google-import.js.map +1 -1
- package/dist/alphalib/types/robots/google-store.d.ts +80 -67
- package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-store.js +10 -41
- package/dist/alphalib/types/robots/google-store.js.map +1 -1
- package/dist/alphalib/types/robots/html-convert.d.ts +107 -89
- package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/html-convert.js +6 -22
- package/dist/alphalib/types/robots/html-convert.js.map +1 -1
- package/dist/alphalib/types/robots/http-import.d.ts +76 -63
- package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/http-import.js +14 -19
- package/dist/alphalib/types/robots/http-import.js.map +1 -1
- package/dist/alphalib/types/robots/http-request.d.ts +538 -0
- package/dist/alphalib/types/robots/http-request.d.ts.map +1 -0
- package/dist/alphalib/types/robots/http-request.js +162 -0
- package/dist/alphalib/types/robots/http-request.js.map +1 -0
- package/dist/alphalib/types/robots/image-bgremove.d.ts +80 -67
- package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-bgremove.js +6 -33
- package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +92 -79
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.js +9 -33
- package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-describe.d.ts +80 -67
- package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-describe.js +8 -37
- package/dist/alphalib/types/robots/image-describe.js.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.d.ts +80 -67
- package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.js +7 -31
- package/dist/alphalib/types/robots/image-enhance.js.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.d.ts +88 -75
- package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.js +16 -44
- package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-generate.js +20 -25
- package/dist/alphalib/types/robots/image-generate.js.map +1 -1
- package/dist/alphalib/types/robots/image-merge.d.ts +96 -83
- package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-merge.js +9 -40
- package/dist/alphalib/types/robots/image-merge.js.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.js +11 -47
- package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.d.ts +88 -75
- package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.js +6 -32
- package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/image-resize.d.ts +217 -112
- package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-resize.js +15 -42
- package/dist/alphalib/types/robots/image-resize.js.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.d.ts +97 -81
- package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.js +23 -42
- package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
- package/dist/alphalib/types/robots/mega-import.d.ts +48 -35
- package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-import.js +12 -59
- package/dist/alphalib/types/robots/mega-import.js.map +1 -1
- package/dist/alphalib/types/robots/mega-store.d.ts +80 -67
- package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-store.js +14 -60
- package/dist/alphalib/types/robots/mega-store.js.map +1 -1
- package/dist/alphalib/types/robots/meta-read.d.ts +30 -16
- package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-read.js +4 -20
- package/dist/alphalib/types/robots/meta-read.js.map +1 -1
- package/dist/alphalib/types/robots/meta-write.d.ts +80 -67
- package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-write.js +9 -32
- package/dist/alphalib/types/robots/meta-write.js.map +1 -1
- package/dist/alphalib/types/robots/minio-import.d.ts +48 -35
- package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-import.js +9 -60
- package/dist/alphalib/types/robots/minio-import.js.map +1 -1
- package/dist/alphalib/types/robots/minio-store.d.ts +80 -67
- package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-store.js +9 -50
- package/dist/alphalib/types/robots/minio-store.js.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.d.ts +34 -28
- package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.js +8 -28
- package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
- package/dist/alphalib/types/robots/s3-import.d.ts +48 -35
- package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-import.js +7 -38
- package/dist/alphalib/types/robots/s3-import.js.map +1 -1
- package/dist/alphalib/types/robots/s3-store.d.ts +84 -68
- package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-store.js +14 -44
- package/dist/alphalib/types/robots/s3-store.js.map +1 -1
- package/dist/alphalib/types/robots/script-run.d.ts +83 -67
- package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
- package/dist/alphalib/types/robots/script-run.js +9 -27
- package/dist/alphalib/types/robots/script-run.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.d.ts +51 -35
- package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.js +7 -36
- package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.d.ts +83 -67
- package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.js +9 -41
- package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.d.ts +102 -85
- package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.js +23 -44
- package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.d.ts +48 -35
- package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.js +12 -59
- package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.d.ts +80 -79
- package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.js +12 -56
- package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
- package/dist/alphalib/types/robots/swift-import.d.ts +48 -47
- package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-import.js +14 -55
- package/dist/alphalib/types/robots/swift-import.js.map +1 -1
- package/dist/alphalib/types/robots/swift-store.d.ts +80 -79
- package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-store.js +14 -62
- package/dist/alphalib/types/robots/swift-store.js.map +1 -1
- package/dist/alphalib/types/robots/text-speak.d.ts +80 -67
- package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-speak.js +11 -37
- package/dist/alphalib/types/robots/text-speak.js.map +1 -1
- package/dist/alphalib/types/robots/text-translate.d.ts +92 -79
- package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-translate.js +9 -36
- package/dist/alphalib/types/robots/text-translate.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.d.ts +48 -35
- package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.js +9 -60
- package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.d.ts +80 -67
- package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.js +7 -48
- package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.js +4 -25
- package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.d.ts +58 -45
- package/dist/alphalib/types/robots/transloadit-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.js +17 -21
- package/dist/alphalib/types/robots/transloadit-import.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.d.ts +70 -57
- package/dist/alphalib/types/robots/transloadit-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.js +14 -6
- package/dist/alphalib/types/robots/transloadit-store.js.map +1 -1
- package/dist/alphalib/types/robots/tus-store.d.ts +84 -71
- package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tus-store.js +8 -37
- package/dist/alphalib/types/robots/tus-store.js.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.d.ts +32 -19
- package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.js +4 -19
- package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.d.ts +112 -99
- package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.js +4 -26
- package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.js +7 -32
- package/dist/alphalib/types/robots/video-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/video-concat.d.ts +104 -91
- package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-concat.js +6 -27
- package/dist/alphalib/types/robots/video-concat.js.map +1 -1
- package/dist/alphalib/types/robots/video-encode.d.ts +121 -103
- package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-encode.js +13 -38
- package/dist/alphalib/types/robots/video-encode.js.map +1 -1
- package/dist/alphalib/types/robots/video-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-generate.js +11 -18
- package/dist/alphalib/types/robots/video-generate.js.map +1 -1
- package/dist/alphalib/types/robots/video-merge.d.ts +135 -119
- package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-merge.js +12 -32
- package/dist/alphalib/types/robots/video-merge.js.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.d.ts +156 -139
- package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.js +11 -27
- package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
- package/dist/alphalib/types/robots/video-split.d.ts +104 -91
- package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-split.js +11 -39
- package/dist/alphalib/types/robots/video-split.js.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.d.ts +104 -91
- package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.js +7 -30
- package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.d.ts +112 -95
- package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.js +46 -53
- package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.d.ts +30 -17
- package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.js +7 -17
- package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.d.ts +83 -67
- package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.js +11 -37
- package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.d.ts +48 -35
- package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.js +9 -56
- package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.d.ts +80 -67
- package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.js +10 -52
- package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.d.ts +98 -85
- package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.js +42 -63
- package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
- package/dist/alphalib/types/stackVersions.d.ts +40 -1
- package/dist/alphalib/types/stackVersions.d.ts.map +1 -1
- package/dist/alphalib/types/stackVersions.js +25 -3
- package/dist/alphalib/types/stackVersions.js.map +1 -1
- package/dist/alphalib/types/storageAsset.d.ts +55 -23
- package/dist/alphalib/types/storageAsset.d.ts.map +1 -1
- package/dist/alphalib/types/storageAsset.js +33 -9
- package/dist/alphalib/types/storageAsset.js.map +1 -1
- package/dist/alphalib/types/template.d.ts +16 -16
- package/dist/alphalib/types/templateCredential.d.ts +2 -2
- package/dist/alphalib/types/utility.d.ts +22 -0
- package/dist/alphalib/types/utility.d.ts.map +1 -0
- package/dist/alphalib/types/utility.js +2 -0
- package/dist/alphalib/types/utility.js.map +1 -0
- package/dist/cli/commands/storage.d.ts +1 -0
- package/dist/cli/commands/storage.d.ts.map +1 -1
- package/dist/cli/commands/storage.js +27 -2
- package/dist/cli/commands/storage.js.map +1 -1
- package/dist/cli/semanticIntents/imageGenerate.d.ts +2 -2
- package/dist/cli/semanticIntents/imageGenerate.js +4 -4
- package/dist/cli/semanticIntents/imageGenerate.js.map +1 -1
- package/dist/cli/storageReceipts.d.ts.map +1 -1
- package/dist/cli/storageReceipts.js +4 -1
- package/dist/cli/storageReceipts.js.map +1 -1
- package/dist/storageImage.d.ts +6 -3
- package/dist/storageImage.d.ts.map +1 -1
- package/dist/storageImage.js +13 -0
- package/dist/storageImage.js.map +1 -1
- package/package.json +1 -2
- package/src/ApiError.ts +11 -4
- package/src/Transloadit.ts +24 -5
- package/src/alphalib/aiMessages.ts +554 -0
- package/src/alphalib/assembly-linter.ts +9 -2
- package/src/alphalib/englishList.ts +11 -0
- package/src/alphalib/errors.ts +159 -13
- package/src/alphalib/imagemagickDensity.ts +2 -1
- package/src/alphalib/lib/zodInputSemantics.ts +114 -0
- package/src/alphalib/object.ts +178 -3
- package/src/alphalib/stepParsing.ts +10 -2
- package/src/alphalib/types/apiParameterDescription.ts +41 -0
- package/src/alphalib/types/assemblyStatus.ts +121 -83
- package/src/alphalib/types/errorReason.ts +14 -0
- package/src/alphalib/types/file.ts +18 -0
- package/src/alphalib/types/fileHash.ts +10 -0
- package/src/alphalib/types/responseErrors/HttpImportRobot.ts +22 -0
- package/src/alphalib/types/robots/_ai-models.ts +91 -0
- package/src/alphalib/types/robots/_index.ts +14 -0
- package/src/alphalib/types/robots/_instructions-primitives.ts +841 -308
- package/src/alphalib/types/robots/ai-chat.ts +358 -459
- package/src/alphalib/types/robots/assembly-savejson.ts +2 -11
- package/src/alphalib/types/robots/audio-artwork.ts +35 -61
- package/src/alphalib/types/robots/audio-concat.ts +17 -25
- package/src/alphalib/types/robots/audio-encode.ts +35 -65
- package/src/alphalib/types/robots/audio-loop.ts +34 -61
- package/src/alphalib/types/robots/audio-merge.ts +17 -25
- package/src/alphalib/types/robots/audio-split.ts +37 -67
- package/src/alphalib/types/robots/audio-waveform.ts +42 -65
- package/src/alphalib/types/robots/azure-import.ts +26 -57
- package/src/alphalib/types/robots/azure-store.ts +48 -72
- package/src/alphalib/types/robots/backblaze-import.ts +30 -63
- package/src/alphalib/types/robots/backblaze-store.ts +37 -66
- package/src/alphalib/types/robots/box-import.ts +32 -55
- package/src/alphalib/types/robots/box-store.ts +40 -63
- package/src/alphalib/types/robots/cloudfiles-import.ts +34 -70
- package/src/alphalib/types/robots/cloudfiles-store.ts +28 -59
- package/src/alphalib/types/robots/cloudflare-import.ts +37 -83
- package/src/alphalib/types/robots/cloudflare-store.ts +37 -77
- package/src/alphalib/types/robots/digitalocean-import.ts +35 -75
- package/src/alphalib/types/robots/digitalocean-store.ts +35 -79
- package/src/alphalib/types/robots/document-autorotate.ts +36 -58
- package/src/alphalib/types/robots/document-convert.ts +37 -59
- package/src/alphalib/types/robots/document-extract.ts +45 -62
- package/src/alphalib/types/robots/document-merge.ts +25 -47
- package/src/alphalib/types/robots/document-ocr.ts +32 -70
- package/src/alphalib/types/robots/document-optimize.ts +38 -57
- package/src/alphalib/types/robots/document-split.ts +33 -56
- package/src/alphalib/types/robots/document-thumbs.ts +66 -67
- package/src/alphalib/types/robots/dropbox-import.ts +27 -57
- package/src/alphalib/types/robots/dropbox-store.ts +39 -65
- package/src/alphalib/types/robots/edgly-deliver.ts +26 -49
- package/src/alphalib/types/robots/file-compress.ts +31 -45
- package/src/alphalib/types/robots/file-decompress.ts +41 -68
- package/src/alphalib/types/robots/file-filter.ts +36 -65
- package/src/alphalib/types/robots/file-hash.ts +37 -64
- package/src/alphalib/types/robots/file-preview.ts +39 -65
- package/src/alphalib/types/robots/file-read.ts +33 -50
- package/src/alphalib/types/robots/file-serve.ts +32 -46
- package/src/alphalib/types/robots/file-verify.ts +37 -63
- package/src/alphalib/types/robots/file-virusscan.ts +49 -67
- package/src/alphalib/types/robots/file-watermark.ts +35 -54
- package/src/alphalib/types/robots/ftp-import.ts +26 -54
- package/src/alphalib/types/robots/ftp-store.ts +44 -63
- package/src/alphalib/types/robots/google-import.ts +32 -66
- package/src/alphalib/types/robots/google-store.ts +37 -63
- package/src/alphalib/types/robots/html-convert.ts +38 -49
- package/src/alphalib/types/robots/http-import.ts +21 -19
- package/src/alphalib/types/robots/http-request.ts +196 -0
- package/src/alphalib/types/robots/image-bgremove.ts +28 -55
- package/src/alphalib/types/robots/image-copyrightdetect.ts +38 -56
- package/src/alphalib/types/robots/image-describe.ts +31 -60
- package/src/alphalib/types/robots/image-enhance.ts +30 -56
- package/src/alphalib/types/robots/image-facedetect.ts +43 -71
- package/src/alphalib/types/robots/image-generate.ts +32 -25
- package/src/alphalib/types/robots/image-merge.ts +34 -65
- package/src/alphalib/types/robots/image-ocr.ts +33 -69
- package/src/alphalib/types/robots/image-optimize.ts +28 -54
- package/src/alphalib/types/robots/image-resize.ts +72 -96
- package/src/alphalib/types/robots/image-upscale.ts +52 -64
- package/src/alphalib/types/robots/mega-import.ts +36 -84
- package/src/alphalib/types/robots/mega-store.ts +44 -81
- package/src/alphalib/types/robots/meta-read.ts +21 -36
- package/src/alphalib/types/robots/meta-write.ts +35 -53
- package/src/alphalib/types/robots/minio-import.ts +34 -86
- package/src/alphalib/types/robots/minio-store.ts +37 -72
- package/src/alphalib/types/robots/progress-simulate.ts +14 -28
- package/src/alphalib/types/robots/s3-import.ts +32 -63
- package/src/alphalib/types/robots/s3-store.ts +53 -74
- package/src/alphalib/types/robots/script-run.ts +44 -55
- package/src/alphalib/types/robots/sftp-import.ts +34 -61
- package/src/alphalib/types/robots/sftp-store.ts +42 -65
- package/src/alphalib/types/robots/speech-transcribe.ts +53 -71
- package/src/alphalib/types/robots/supabase-import.ts +37 -84
- package/src/alphalib/types/robots/supabase-store.ts +41 -78
- package/src/alphalib/types/robots/swift-import.ts +38 -80
- package/src/alphalib/types/robots/swift-store.ts +44 -84
- package/src/alphalib/types/robots/text-speak.ts +36 -62
- package/src/alphalib/types/robots/text-translate.ts +35 -62
- package/src/alphalib/types/robots/tigris-import.ts +34 -86
- package/src/alphalib/types/robots/tigris-store.ts +35 -70
- package/src/alphalib/types/robots/tlcdn-deliver.ts +23 -47
- package/src/alphalib/types/robots/transloadit-import.ts +24 -29
- package/src/alphalib/types/robots/transloadit-store.ts +20 -7
- package/src/alphalib/types/robots/tus-store.ts +34 -58
- package/src/alphalib/types/robots/upload-handle.ts +23 -41
- package/src/alphalib/types/robots/video-adaptive.ts +28 -51
- package/src/alphalib/types/robots/video-artwork.ts +28 -54
- package/src/alphalib/types/robots/video-concat.ts +29 -52
- package/src/alphalib/types/robots/video-encode.ts +39 -62
- package/src/alphalib/types/robots/video-generate.ts +20 -18
- package/src/alphalib/types/robots/video-merge.ts +36 -55
- package/src/alphalib/types/robots/video-ondemand.ts +48 -62
- package/src/alphalib/types/robots/video-split.ts +32 -61
- package/src/alphalib/types/robots/video-subtitle.ts +30 -52
- package/src/alphalib/types/robots/video-thumbs.ts +74 -78
- package/src/alphalib/types/robots/vimeo-import.ts +12 -17
- package/src/alphalib/types/robots/vimeo-store.ts +46 -65
- package/src/alphalib/types/robots/wasabi-import.ts +33 -81
- package/src/alphalib/types/robots/wasabi-store.ts +38 -74
- package/src/alphalib/types/robots/youtube-store.ts +81 -91
- package/src/alphalib/types/stackVersions.ts +26 -3
- package/src/alphalib/types/storageAsset.ts +85 -29
- package/src/alphalib/types/utility.ts +52 -0
- package/src/cli/commands/storage.ts +28 -2
- package/src/cli/semanticIntents/imageGenerate.ts +4 -4
- package/src/cli/storageReceipts.ts +4 -1
- package/src/storageImage.ts +18 -3
|
@@ -1,52 +1,33 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
9
|
import {
|
|
10
|
+
createStorageImportExample,
|
|
11
|
+
defineRobot,
|
|
6
12
|
dropboxBase,
|
|
7
|
-
interpolateRobot,
|
|
8
13
|
path,
|
|
9
14
|
robotBase,
|
|
10
15
|
robotImport,
|
|
16
|
+
robotImportMeta,
|
|
11
17
|
} from './_instructions-primitives.ts'
|
|
12
18
|
|
|
13
19
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
discount_pct: 90,
|
|
17
|
-
example_code: {
|
|
18
|
-
steps: {
|
|
19
|
-
imported: {
|
|
20
|
-
robot: '/dropbox/import',
|
|
21
|
-
credentials: 'YOUR_DROPBOX_CREDENTIALS',
|
|
22
|
-
path: 'path/to/files/',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
20
|
+
...robotImportMeta,
|
|
21
|
+
example_code: createStorageImportExample('/dropbox/import', 'YOUR_DROPBOX_CREDENTIALS', false),
|
|
26
22
|
example_code_description:
|
|
27
23
|
'Import files from the `path/to/files` directory and its subdirectories:',
|
|
28
24
|
has_small_icon: true,
|
|
29
|
-
minimum_charge: 0,
|
|
30
|
-
output_factor: 1,
|
|
31
|
-
override_lvl1: 'File Importing',
|
|
32
25
|
purpose_sentence: 'imports whole directories of files from your Dropbox',
|
|
33
|
-
purpose_verb: 'import',
|
|
34
26
|
purpose_word: 'Dropbox',
|
|
35
27
|
purpose_words: 'Import files from Dropbox',
|
|
36
28
|
requires_credentials: true,
|
|
37
|
-
service_slug: 'file-importing',
|
|
38
|
-
slot_count: 20,
|
|
39
29
|
title: 'Import files from Dropbox',
|
|
40
|
-
typical_file_size_mb: 1.2,
|
|
41
|
-
typical_file_type: 'file',
|
|
42
30
|
name: 'DropboxImportRobot',
|
|
43
|
-
priceFactor: 6.6666,
|
|
44
|
-
queueSlotCount: 20,
|
|
45
|
-
isAllowedForUrlTransform: true,
|
|
46
|
-
trackOutputFileSize: false,
|
|
47
|
-
isInternal: false,
|
|
48
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
49
|
-
stage: 'ga',
|
|
50
31
|
}
|
|
51
32
|
|
|
52
33
|
export const robotDropboxImportInstructionsSchema = robotBase
|
|
@@ -78,34 +59,23 @@ You can also use an array of path strings here to import multiple paths in the s
|
|
|
78
59
|
})
|
|
79
60
|
.strict()
|
|
80
61
|
|
|
81
|
-
export const
|
|
82
|
-
robotDropboxImportInstructionsSchema
|
|
83
|
-
result: z
|
|
84
|
-
.union([z.literal('debug'), robotDropboxImportInstructionsSchema.shape.result])
|
|
85
|
-
.optional(),
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
export type RobotDropboxImportInstructions = z.infer<typeof robotDropboxImportInstructionsSchema>
|
|
89
|
-
export type RobotDropboxImportInstructionsWithHiddenFields = z.infer<
|
|
90
|
-
typeof robotDropboxImportInstructionsWithHiddenFieldsSchema
|
|
91
|
-
>
|
|
62
|
+
export const robotDefinition: RobotDefinition<typeof robotDropboxImportInstructionsSchema.shape> =
|
|
63
|
+
defineRobot(meta, robotDropboxImportInstructionsSchema)
|
|
92
64
|
|
|
93
|
-
export const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
65
|
+
export const {
|
|
66
|
+
withHiddenFields: robotDropboxImportInstructionsWithHiddenFieldsSchema,
|
|
67
|
+
interpolatable: interpolatableRobotDropboxImportInstructionsSchema,
|
|
68
|
+
interpolatableWithHiddenFields:
|
|
69
|
+
interpolatableRobotDropboxImportInstructionsWithHiddenFieldsSchema,
|
|
70
|
+
} = robotDefinition
|
|
98
71
|
|
|
99
|
-
|
|
100
|
-
typeof interpolatableRobotDropboxImportInstructionsSchema
|
|
101
|
-
>
|
|
72
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
102
73
|
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
export type
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
export type InterpolatableRobotDropboxImportInstructionsWithHiddenFieldsInput =
|
|
110
|
-
|
|
111
|
-
>
|
|
74
|
+
export type RobotDropboxImportInstructions = Instructions['output']
|
|
75
|
+
export type RobotDropboxImportInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
76
|
+
export type InterpolatableRobotDropboxImportInstructions = Instructions['interpolatableInput']
|
|
77
|
+
export type InterpolatableRobotDropboxImportInstructionsInput = Instructions['interpolatableInput']
|
|
78
|
+
export type InterpolatableRobotDropboxImportInstructionsWithHiddenFields =
|
|
79
|
+
Instructions['interpolatableHiddenOutput']
|
|
80
|
+
export type InterpolatableRobotDropboxImportInstructionsWithHiddenFieldsInput =
|
|
81
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,45 +1,31 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinitionWithHiddenFields,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
createStorageStoreExample,
|
|
11
|
+
defineRobotWithHiddenFields,
|
|
12
|
+
dropboxBase,
|
|
13
|
+
robotBase,
|
|
14
|
+
robotStoreMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
storePath,
|
|
17
|
+
} from './_instructions-primitives.ts'
|
|
6
18
|
|
|
7
19
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
discount_pct: 84.99984999849998,
|
|
11
|
-
example_code: {
|
|
12
|
-
steps: {
|
|
13
|
-
exported: {
|
|
14
|
-
robot: '/dropbox/store',
|
|
15
|
-
use: ':original',
|
|
16
|
-
credentials: 'YOUR_DROPBOX_CREDENTIALS',
|
|
17
|
-
path: 'my_target_folder/${unique_prefix}/${file.url_name}',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
20
|
+
...robotStoreMeta,
|
|
21
|
+
example_code: createStorageStoreExample('/dropbox/store', 'YOUR_DROPBOX_CREDENTIALS'),
|
|
21
22
|
example_code_description: 'Export uploaded files to `my_target_folder` on Dropbox:',
|
|
22
23
|
has_small_icon: true,
|
|
23
|
-
minimum_charge: 0,
|
|
24
|
-
output_factor: 1,
|
|
25
|
-
override_lvl1: 'File Exporting',
|
|
26
24
|
purpose_sentence: 'exports encoding results to Dropbox',
|
|
27
|
-
purpose_verb: 'export',
|
|
28
25
|
purpose_word: 'Dropbox',
|
|
29
26
|
purpose_words: 'Export files to Dropbox',
|
|
30
|
-
service_slug: 'file-exporting',
|
|
31
|
-
slot_count: 10,
|
|
32
27
|
title: 'Export files to Dropbox',
|
|
33
|
-
typical_file_size_mb: 1.2,
|
|
34
|
-
typical_file_type: 'file',
|
|
35
28
|
name: 'DropboxStoreRobot',
|
|
36
|
-
priceFactor: 6.6666,
|
|
37
|
-
queueSlotCount: 10,
|
|
38
|
-
isAllowedForUrlTransform: true,
|
|
39
|
-
trackOutputFileSize: false,
|
|
40
|
-
isInternal: false,
|
|
41
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
42
|
-
stage: 'ga',
|
|
43
29
|
}
|
|
44
30
|
|
|
45
31
|
export const robotDropboxStoreInstructionsSchema = robotBase
|
|
@@ -47,12 +33,7 @@ export const robotDropboxStoreInstructionsSchema = robotBase
|
|
|
47
33
|
.merge(dropboxBase)
|
|
48
34
|
.extend({
|
|
49
35
|
robot: z.literal('/dropbox/store'),
|
|
50
|
-
path:
|
|
51
|
-
.string()
|
|
52
|
-
.default('${unique_prefix}/${file.url_name}')
|
|
53
|
-
.describe(`
|
|
54
|
-
The path at which the file is to be stored. This may include any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables).
|
|
55
|
-
`),
|
|
36
|
+
path: storePath,
|
|
56
37
|
create_sharing_link: z
|
|
57
38
|
.boolean()
|
|
58
39
|
.default(false)
|
|
@@ -62,36 +43,29 @@ Whether to create a URL to this file for sharing with other people. This will ov
|
|
|
62
43
|
})
|
|
63
44
|
.strict()
|
|
64
45
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
.union([z.literal('debug'), robotDropboxStoreInstructionsSchema.shape.result])
|
|
69
|
-
.optional(),
|
|
70
|
-
access_token: z.string().optional(), // Legacy field for backward compatibility
|
|
71
|
-
})
|
|
46
|
+
const hiddenFields = {
|
|
47
|
+
access_token: z.string().optional(), // Legacy field for backward compatibility
|
|
48
|
+
}
|
|
72
49
|
|
|
73
|
-
export
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
>
|
|
50
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
51
|
+
typeof robotDropboxStoreInstructionsSchema.shape,
|
|
52
|
+
typeof hiddenFields
|
|
53
|
+
> = defineRobotWithHiddenFields(meta, robotDropboxStoreInstructionsSchema, hiddenFields)
|
|
78
54
|
|
|
79
|
-
export const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
55
|
+
export const {
|
|
56
|
+
withHiddenFields: robotDropboxStoreInstructionsWithHiddenFieldsSchema,
|
|
57
|
+
interpolatable: interpolatableRobotDropboxStoreInstructionsSchema,
|
|
58
|
+
interpolatableWithHiddenFields: interpolatableRobotDropboxStoreInstructionsWithHiddenFieldsSchema,
|
|
59
|
+
} = robotDefinition
|
|
84
60
|
|
|
85
|
-
|
|
86
|
-
typeof interpolatableRobotDropboxStoreInstructionsSchema
|
|
87
|
-
>
|
|
61
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
88
62
|
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
export type
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
63
|
+
export type RobotDropboxStoreInstructions = Instructions['output']
|
|
64
|
+
export type RobotDropboxStoreInstructionsInput = Instructions['input']
|
|
65
|
+
export type RobotDropboxStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
66
|
+
export type InterpolatableRobotDropboxStoreInstructions = Instructions['interpolatableInput']
|
|
67
|
+
export type InterpolatableRobotDropboxStoreInstructionsInput = Instructions['interpolatableInput']
|
|
68
|
+
export type InterpolatableRobotDropboxStoreInstructionsWithHiddenFields =
|
|
69
|
+
Instructions['interpolatableHiddenOutput']
|
|
70
|
+
export type InterpolatableRobotDropboxStoreInstructionsWithHiddenFieldsInput =
|
|
71
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import { defineRobot, robotBase, robotContentDeliveryMeta } from './_instructions-primitives.ts'
|
|
6
10
|
|
|
7
11
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
discount_factor: 0.05,
|
|
10
|
-
discount_pct: 95,
|
|
12
|
+
...robotContentDeliveryMeta,
|
|
11
13
|
example_code: {
|
|
12
14
|
steps: {
|
|
13
15
|
deliver: {
|
|
@@ -16,29 +18,16 @@ export const meta: RobotMetaInput = {
|
|
|
16
18
|
},
|
|
17
19
|
},
|
|
18
20
|
example_code_description: 'Cache and deliver files over Smart CDN using the edgly.net domain:',
|
|
19
|
-
minimum_charge: 102400,
|
|
20
|
-
output_factor: 1,
|
|
21
21
|
override_lvl1: 'Content Delivery',
|
|
22
22
|
purpose_sentence: 'caches and delivers files globally',
|
|
23
23
|
purpose_verb: 'cache & deliver',
|
|
24
24
|
purpose_word: 'Cache and deliver files',
|
|
25
25
|
purpose_words: 'Cache and deliver files globally',
|
|
26
|
-
service_slug: 'content-delivery',
|
|
27
|
-
slot_count: 0,
|
|
28
26
|
title: 'Cache and deliver files globally',
|
|
29
|
-
typical_file_size_mb: 1.2,
|
|
30
|
-
typical_file_type: 'file',
|
|
31
27
|
name: 'EdglyDeliverRobot',
|
|
32
28
|
priceFactor: 20,
|
|
33
|
-
queueSlotCount: 0,
|
|
34
29
|
minimumCharge: 102400,
|
|
35
|
-
downloadInputFiles: false,
|
|
36
|
-
preserveInputFileUrls: true,
|
|
37
|
-
isAllowedForUrlTransform: false,
|
|
38
|
-
trackOutputFileSize: false,
|
|
39
|
-
isInternal: true,
|
|
40
30
|
stage: 'removed',
|
|
41
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
42
31
|
}
|
|
43
32
|
|
|
44
33
|
export const robotEdglyDeliverInstructionsSchema = robotBase
|
|
@@ -49,34 +38,22 @@ When you want Transloadit to tranform files on the fly, this <dfn>Robot</dfn> ca
|
|
|
49
38
|
})
|
|
50
39
|
.strict()
|
|
51
40
|
|
|
52
|
-
export const
|
|
53
|
-
robotEdglyDeliverInstructionsSchema
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
export type
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
typeof interpolatableRobotEdglyDeliverInstructionsSchema
|
|
72
|
-
>
|
|
73
|
-
|
|
74
|
-
export const interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
75
|
-
robotEdglyDeliverInstructionsWithHiddenFieldsSchema,
|
|
76
|
-
)
|
|
77
|
-
export type InterpolatableRobotEdglyDeliverInstructionsWithHiddenFields = z.infer<
|
|
78
|
-
typeof interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema
|
|
79
|
-
>
|
|
80
|
-
export type InterpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsInput = z.input<
|
|
81
|
-
typeof interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema
|
|
82
|
-
>
|
|
41
|
+
export const robotDefinition: RobotDefinition<typeof robotEdglyDeliverInstructionsSchema.shape> =
|
|
42
|
+
defineRobot(meta, robotEdglyDeliverInstructionsSchema)
|
|
43
|
+
|
|
44
|
+
export const {
|
|
45
|
+
withHiddenFields: robotEdglyDeliverInstructionsWithHiddenFieldsSchema,
|
|
46
|
+
interpolatable: interpolatableRobotEdglyDeliverInstructionsSchema,
|
|
47
|
+
interpolatableWithHiddenFields: interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema,
|
|
48
|
+
} = robotDefinition
|
|
49
|
+
|
|
50
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
51
|
+
|
|
52
|
+
export type RobotEdglyDeliverInstructions = Instructions['output']
|
|
53
|
+
export type RobotEdglyDeliverInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
54
|
+
export type InterpolatableRobotEdglyDeliverInstructions = Instructions['interpolatableInput']
|
|
55
|
+
export type InterpolatableRobotEdglyDeliverInstructionsInput = Instructions['interpolatableInput']
|
|
56
|
+
export type InterpolatableRobotEdglyDeliverInstructionsWithHiddenFields =
|
|
57
|
+
Instructions['interpolatableHiddenOutput']
|
|
58
|
+
export type InterpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsInput =
|
|
59
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
defineRobot,
|
|
11
|
+
robotBase,
|
|
12
|
+
robotProcessingMeta,
|
|
13
|
+
robotUse,
|
|
14
|
+
} from './_instructions-primitives.ts'
|
|
6
15
|
|
|
7
16
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
discount_factor: 1,
|
|
10
|
-
discount_pct: 0,
|
|
17
|
+
...robotProcessingMeta,
|
|
11
18
|
example_code: {
|
|
12
19
|
steps: {
|
|
13
20
|
compressed: {
|
|
@@ -57,26 +64,17 @@ Here is an example:
|
|
|
57
64
|
- ff_jk_thumb.jpg # is a child of b.mov, as it starts with "ff"
|
|
58
65
|
\`\`\`
|
|
59
66
|
`,
|
|
60
|
-
minimum_charge: 0,
|
|
61
|
-
output_factor: 1,
|
|
62
67
|
override_lvl1: 'File Compressing',
|
|
63
68
|
purpose_sentence: 'creates archives of files or file conversion results',
|
|
64
69
|
purpose_verb: 'compress',
|
|
65
70
|
purpose_word: 'compress',
|
|
66
71
|
purpose_words: 'Compress files',
|
|
67
72
|
service_slug: 'file-compressing',
|
|
68
|
-
slot_count: 15,
|
|
69
73
|
title: 'Compress files',
|
|
70
|
-
typical_file_size_mb: 1.2,
|
|
71
|
-
typical_file_type: 'file',
|
|
72
74
|
name: 'FileCompressRobot',
|
|
73
|
-
priceFactor: 1,
|
|
74
75
|
queueSlotCount: 15,
|
|
75
76
|
isAllowedForUrlTransform: false,
|
|
76
77
|
trackOutputFileSize: true,
|
|
77
|
-
isInternal: false,
|
|
78
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
79
|
-
stage: 'ga',
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
export const robotFileCompressInstructionsSchema = robotBase
|
|
@@ -142,34 +140,22 @@ When this parameter is set, the \`file_layout\` parameter is ignored.
|
|
|
142
140
|
})
|
|
143
141
|
.strict()
|
|
144
142
|
|
|
145
|
-
export const
|
|
146
|
-
robotFileCompressInstructionsSchema
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
export
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export type
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
typeof interpolatableRobotFileCompressInstructionsSchema
|
|
165
|
-
>
|
|
166
|
-
|
|
167
|
-
export const interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
168
|
-
robotFileCompressInstructionsWithHiddenFieldsSchema,
|
|
169
|
-
)
|
|
170
|
-
export type InterpolatableRobotFileCompressInstructionsWithHiddenFields = z.infer<
|
|
171
|
-
typeof interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema
|
|
172
|
-
>
|
|
173
|
-
export type InterpolatableRobotFileCompressInstructionsWithHiddenFieldsInput = z.input<
|
|
174
|
-
typeof interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema
|
|
175
|
-
>
|
|
143
|
+
export const robotDefinition: RobotDefinition<typeof robotFileCompressInstructionsSchema.shape> =
|
|
144
|
+
defineRobot(meta, robotFileCompressInstructionsSchema)
|
|
145
|
+
|
|
146
|
+
export const {
|
|
147
|
+
withHiddenFields: robotFileCompressInstructionsWithHiddenFieldsSchema,
|
|
148
|
+
interpolatable: interpolatableRobotFileCompressInstructionsSchema,
|
|
149
|
+
interpolatableWithHiddenFields: interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema,
|
|
150
|
+
} = robotDefinition
|
|
151
|
+
|
|
152
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
153
|
+
|
|
154
|
+
export type RobotFileCompressInstructions = Instructions['output']
|
|
155
|
+
export type RobotFileCompressInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
156
|
+
export type InterpolatableRobotFileCompressInstructions = Instructions['interpolatableInput']
|
|
157
|
+
export type InterpolatableRobotFileCompressInstructionsInput = Instructions['interpolatableInput']
|
|
158
|
+
export type InterpolatableRobotFileCompressInstructionsWithHiddenFields =
|
|
159
|
+
Instructions['interpolatableHiddenOutput']
|
|
160
|
+
export type InterpolatableRobotFileCompressInstructionsWithHiddenFieldsInput =
|
|
161
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
createProcessingExample,
|
|
11
|
+
defineRobot,
|
|
12
|
+
robotBase,
|
|
13
|
+
robotParameterDocs,
|
|
14
|
+
robotProcessingMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
} from './_instructions-primitives.ts'
|
|
6
17
|
|
|
7
18
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
discount_pct: 20,
|
|
11
|
-
example_code: {
|
|
12
|
-
steps: {
|
|
13
|
-
decompressed: {
|
|
14
|
-
robot: '/file/decompress',
|
|
15
|
-
use: ':original',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
+
...robotProcessingMeta,
|
|
20
|
+
example_code: createProcessingExample('decompressed', '/file/decompress'),
|
|
19
21
|
example_code_description: 'Decompress an uploaded archive:',
|
|
20
|
-
minimum_charge: 0,
|
|
21
|
-
output_factor: 1,
|
|
22
22
|
override_lvl1: 'File Compressing',
|
|
23
23
|
purpose_sentence:
|
|
24
24
|
'extracts entire archives of files to be consumed by other Robots or exported as individual files',
|
|
@@ -26,20 +26,14 @@ export const meta: RobotMetaInput = {
|
|
|
26
26
|
purpose_word: 'decompress',
|
|
27
27
|
purpose_words: 'Decompress archives',
|
|
28
28
|
service_slug: 'file-compressing',
|
|
29
|
-
slot_count: 10,
|
|
30
29
|
title: 'Decompress archives',
|
|
31
|
-
typical_file_size_mb: 1.2,
|
|
32
|
-
typical_file_type: 'file',
|
|
33
30
|
name: 'FileDecompressRobot',
|
|
34
31
|
priceFactor: 1.25,
|
|
35
|
-
queueSlotCount: 10,
|
|
36
|
-
isAllowedForUrlTransform: true,
|
|
37
32
|
trackOutputFileSize: true,
|
|
38
|
-
isInternal: false,
|
|
39
33
|
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
40
|
-
stage: 'ga',
|
|
41
34
|
}
|
|
42
35
|
|
|
36
|
+
// Keep the inherited runtime contract while appending guidance specific to archive metadata.
|
|
43
37
|
export const robotFileDecompressInstructionsSchema = robotBase
|
|
44
38
|
.merge(robotUse)
|
|
45
39
|
.extend({
|
|
@@ -56,7 +50,6 @@ This Robot supports the following archive formats:
|
|
|
56
50
|
- POSIX pax interchange format
|
|
57
51
|
- POSIX octet-oriented cpio
|
|
58
52
|
- SVR4 ASCII cpio
|
|
59
|
-
- POSIX octet-oriented cpio
|
|
60
53
|
- Binary cpio (big-endian or little-endian)
|
|
61
54
|
- ISO9660 CD-ROM images (with optional Rockridge or Joliet extensions)
|
|
62
55
|
- GNU and BSD "ar" archives
|
|
@@ -74,9 +67,13 @@ This <dfn>Robot</dfn> also detects and handles any of the following before evalu
|
|
|
74
67
|
- compress/LZW compression
|
|
75
68
|
- lzma, lzip, and xz compression
|
|
76
69
|
|
|
77
|
-
For security reasons, archives
|
|
70
|
+
For security reasons, archives containing symlinks that point outside the archived directory will cause the <dfn>Assembly</dfn> to fail.
|
|
78
71
|
|
|
79
72
|
Password-protected archives (ZIP with ZipCrypto or AES encryption, RAR encrypted, 7z with AES-256) are supported via the \`password\` parameter.
|
|
73
|
+
`),
|
|
74
|
+
ignore_errors:
|
|
75
|
+
robotBase.shape.ignore_errors.describe(`${robotParameterDocs.ignore_errors.description}
|
|
76
|
+
Metadata extraction can fail for files inside an archive, for example when an archived file has a size of zero bytes. Configure the \`"meta"\` phase when decompression should continue in that case.
|
|
80
77
|
`),
|
|
81
78
|
password: z
|
|
82
79
|
.string()
|
|
@@ -89,19 +86,6 @@ Supports encrypted ZIP (ZipCrypto and AES), RAR (encrypted), and 7z (AES-256 enc
|
|
|
89
86
|
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.
|
|
90
87
|
|
|
91
88
|
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.
|
|
92
|
-
`),
|
|
93
|
-
ignore_errors: z
|
|
94
|
-
.union([z.boolean(), z.array(z.enum(['meta', 'execute']))])
|
|
95
|
-
.transform((ignoreErrors): ('meta' | 'execute')[] =>
|
|
96
|
-
ignoreErrors === true ? ['meta', 'execute'] : ignoreErrors === false ? [] : ignoreErrors,
|
|
97
|
-
)
|
|
98
|
-
.default([])
|
|
99
|
-
.describe(`
|
|
100
|
-
A possible array member is only \`"meta"\`.
|
|
101
|
-
|
|
102
|
-
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.
|
|
103
|
-
|
|
104
|
-
To keep backwards compatibility, setting this parameter to \`true\` will set it to \`["meta"]\` internally.
|
|
105
89
|
`),
|
|
106
90
|
turbo: z
|
|
107
91
|
.boolean()
|
|
@@ -118,34 +102,23 @@ Turbo Mode also changes usage accounting: emitted extracted-file bytes and origi
|
|
|
118
102
|
})
|
|
119
103
|
.strict()
|
|
120
104
|
|
|
121
|
-
export const
|
|
122
|
-
robotFileDecompressInstructionsSchema
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
>
|
|
132
|
-
|
|
133
|
-
export
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
export type
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
export type
|
|
140
|
-
|
|
141
|
-
>
|
|
142
|
-
|
|
143
|
-
export const interpolatableRobotFileDecompressInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
144
|
-
robotFileDecompressInstructionsWithHiddenFieldsSchema,
|
|
145
|
-
)
|
|
146
|
-
export type InterpolatableRobotFileDecompressInstructionsWithHiddenFields = z.infer<
|
|
147
|
-
typeof interpolatableRobotFileDecompressInstructionsWithHiddenFieldsSchema
|
|
148
|
-
>
|
|
149
|
-
export type InterpolatableRobotFileDecompressInstructionsWithHiddenFieldsInput = z.input<
|
|
150
|
-
typeof interpolatableRobotFileDecompressInstructionsWithHiddenFieldsSchema
|
|
151
|
-
>
|
|
105
|
+
export const robotDefinition: RobotDefinition<typeof robotFileDecompressInstructionsSchema.shape> =
|
|
106
|
+
defineRobot(meta, robotFileDecompressInstructionsSchema)
|
|
107
|
+
|
|
108
|
+
export const {
|
|
109
|
+
withHiddenFields: robotFileDecompressInstructionsWithHiddenFieldsSchema,
|
|
110
|
+
interpolatable: interpolatableRobotFileDecompressInstructionsSchema,
|
|
111
|
+
interpolatableWithHiddenFields:
|
|
112
|
+
interpolatableRobotFileDecompressInstructionsWithHiddenFieldsSchema,
|
|
113
|
+
} = robotDefinition
|
|
114
|
+
|
|
115
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
116
|
+
|
|
117
|
+
export type RobotFileDecompressInstructions = Instructions['output']
|
|
118
|
+
export type RobotFileDecompressInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
119
|
+
export type InterpolatableRobotFileDecompressInstructions = Instructions['interpolatableInput']
|
|
120
|
+
export type InterpolatableRobotFileDecompressInstructionsInput = Instructions['interpolatableInput']
|
|
121
|
+
export type InterpolatableRobotFileDecompressInstructionsWithHiddenFields =
|
|
122
|
+
Instructions['interpolatableHiddenOutput']
|
|
123
|
+
export type InterpolatableRobotFileDecompressInstructionsWithHiddenFieldsInput =
|
|
124
|
+
Instructions['interpolatableHiddenInput']
|