transloadit 4.14.0 → 5.0.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 +44 -4
- 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.map +1 -1
- package/dist/Transloadit.js +3 -2
- 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 +6718 -64966
- package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
- package/dist/alphalib/types/assemblyStatus.js +68 -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 +627 -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 -368
- 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 +17 -22
- 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 +28 -22
- package/dist/alphalib/types/storageAsset.d.ts.map +1 -1
- package/dist/alphalib/types/storageAsset.js +30 -12
- package/dist/alphalib/types/storageAsset.js.map +1 -1
- package/dist/alphalib/types/storageResults.d.ts +29 -0
- package/dist/alphalib/types/storageResults.d.ts.map +1 -0
- package/dist/alphalib/types/storageResults.js +53 -0
- package/dist/alphalib/types/storageResults.js.map +1 -0
- 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/storageResults.d.ts +2 -13
- package/dist/storageResults.d.ts.map +1 -1
- package/dist/storageResults.js +9 -34
- package/dist/storageResults.js.map +1 -1
- package/package.json +1 -2
- package/src/ApiError.ts +11 -4
- package/src/Transloadit.ts +6 -3
- 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 +115 -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 +839 -308
- package/src/alphalib/types/robots/ai-chat.ts +358 -460
- 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 +29 -22
- 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 +84 -36
- package/src/alphalib/types/storageResults.ts +75 -0
- package/src/alphalib/types/utility.ts +52 -0
- package/src/storageResults.ts +19 -56
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
1
|
+
import type { RobotMetaInput, RobotSchemaPair } from './_instructions-primitives.ts'
|
|
2
2
|
|
|
3
3
|
import { z } from 'zod'
|
|
4
4
|
|
|
5
5
|
import { interpolateRobot, robotBase, robotUse } from './_instructions-primitives.ts'
|
|
6
6
|
|
|
7
7
|
export const meta: RobotMetaInput = {
|
|
8
|
-
bytescount: 10,
|
|
9
|
-
discount_factor: 0.1,
|
|
10
|
-
discount_pct: 90,
|
|
11
8
|
example_code: {
|
|
12
9
|
steps: {
|
|
13
10
|
stored: {
|
|
@@ -20,9 +17,7 @@ export const meta: RobotMetaInput = {
|
|
|
20
17
|
has_small_icon: true,
|
|
21
18
|
isAllowedForUrlTransform: false,
|
|
22
19
|
isInternal: false,
|
|
23
|
-
minimum_charge: 0,
|
|
24
20
|
name: 'TransloaditStoreRobot',
|
|
25
|
-
output_factor: 1,
|
|
26
21
|
override_lvl1: 'File Exporting',
|
|
27
22
|
priceFactor: 10,
|
|
28
23
|
purpose_sentence: 'stores files privately in Transloadit Storage',
|
|
@@ -32,7 +27,6 @@ export const meta: RobotMetaInput = {
|
|
|
32
27
|
queueSlotCount: 2,
|
|
33
28
|
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
34
29
|
service_slug: 'file-exporting',
|
|
35
|
-
slot_count: 2,
|
|
36
30
|
stage: 'beta',
|
|
37
31
|
title: 'Store files in Transloadit Storage',
|
|
38
32
|
trackOutputFileSize: true,
|
|
@@ -45,6 +39,15 @@ export const robotTransloaditStoreInstructionsSchema = robotBase
|
|
|
45
39
|
.extend({
|
|
46
40
|
robot: z.literal('/transloadit/store').describe(`
|
|
47
41
|
Stores each input privately in Transloadit Storage.
|
|
42
|
+
|
|
43
|
+
After \`ASSEMBLY_COMPLETED\`, save the stored result from \`results[producingStep][i]\` with
|
|
44
|
+
your application's owner or project record. Keep its \`workspace\`, \`asset_id\`, \`version_id\` and returned \`path\`.
|
|
45
|
+
A Step storing \`:original\` reports in \`results[':original']\`.
|
|
46
|
+
|
|
47
|
+
Collisions fail by default; explicit renaming can change the final path. Use the asset and version
|
|
48
|
+
IDs with 🤖/transloadit/import to reuse exact retained bytes after a native catalog rename or overwrite.
|
|
49
|
+
A path selects the current location; an asset ID without a version selects its current bytes.
|
|
50
|
+
Deleting an asset or removing a retained version makes that reference unavailable.
|
|
48
51
|
`),
|
|
49
52
|
conflict_strategy: z
|
|
50
53
|
.enum(['error', 'overwrite', 'rename'])
|
|
@@ -96,3 +99,13 @@ export type InterpolatableRobotTransloaditStoreInstructionsWithHiddenFields =
|
|
|
96
99
|
export type InterpolatableRobotTransloaditStoreInstructionsWithHiddenFieldsInput = z.input<
|
|
97
100
|
typeof interpolatableRobotTransloaditStoreInstructionsWithHiddenFieldsSchema
|
|
98
101
|
>
|
|
102
|
+
|
|
103
|
+
export const robotDefinition: RobotSchemaPair<
|
|
104
|
+
typeof interpolatableRobotTransloaditStoreInstructionsSchema,
|
|
105
|
+
typeof interpolatableRobotTransloaditStoreInstructionsWithHiddenFieldsSchema
|
|
106
|
+
> = {
|
|
107
|
+
meta,
|
|
108
|
+
interpolatable: interpolatableRobotTransloaditStoreInstructionsSchema,
|
|
109
|
+
interpolatableWithHiddenFields:
|
|
110
|
+
interpolatableRobotTransloaditStoreInstructionsWithHiddenFieldsSchema,
|
|
111
|
+
}
|
|
@@ -1,54 +1,39 @@
|
|
|
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
|
+
httpUrlSchema,
|
|
13
|
+
robotBase,
|
|
14
|
+
robotStoreMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
} from './_instructions-primitives.ts'
|
|
6
17
|
|
|
7
18
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
steps: {
|
|
13
|
-
exported: {
|
|
14
|
-
robot: '/tus/store',
|
|
15
|
-
use: ':original',
|
|
16
|
-
endpoint: 'https://tusd.tusdemo.net/files/',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
19
|
+
...robotStoreMeta,
|
|
20
|
+
example_code: createProcessingExample('exported', '/tus/store', {
|
|
21
|
+
endpoint: 'https://tusd.tusdemo.net/files/',
|
|
22
|
+
}),
|
|
20
23
|
example_code_description: 'Export uploaded files to the Tus live demo server:',
|
|
21
|
-
minimum_charge: 0,
|
|
22
|
-
output_factor: 1,
|
|
23
|
-
override_lvl1: 'File Exporting',
|
|
24
24
|
purpose_sentence: 'exports encoding results to any Tus-compatible server',
|
|
25
|
-
purpose_verb: 'export',
|
|
26
25
|
purpose_word: 'Tus servers',
|
|
27
26
|
purpose_words: 'Export files to Tus-compatible servers',
|
|
28
|
-
service_slug: 'file-exporting',
|
|
29
|
-
slot_count: 10,
|
|
30
27
|
title: 'Export files to Tus-compatible servers',
|
|
31
|
-
typical_file_size_mb: 1.2,
|
|
32
|
-
typical_file_type: 'file',
|
|
33
28
|
name: 'TusStoreRobot',
|
|
34
29
|
priceFactor: 10,
|
|
35
|
-
queueSlotCount: 10,
|
|
36
|
-
isAllowedForUrlTransform: true,
|
|
37
|
-
trackOutputFileSize: false,
|
|
38
|
-
isInternal: false,
|
|
39
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
40
|
-
stage: 'ga',
|
|
41
30
|
}
|
|
42
31
|
|
|
43
32
|
export const robotTusStoreInstructionsSchema = robotBase
|
|
44
33
|
.merge(robotUse)
|
|
45
34
|
.extend({
|
|
46
35
|
robot: z.literal('/tus/store'),
|
|
47
|
-
endpoint:
|
|
48
|
-
.string()
|
|
49
|
-
.url()
|
|
50
|
-
.describe('The URL of the destination Tus server')
|
|
51
|
-
.describe(`
|
|
36
|
+
endpoint: httpUrlSchema.describe('The URL of the destination Tus server').describe(`
|
|
52
37
|
The URL of the Tus-compatible server, which you're uploading files to.
|
|
53
38
|
`),
|
|
54
39
|
credentials: z
|
|
@@ -87,31 +72,22 @@ The SSL URL of the file in the <dfn>Assembly Status JSON</dfn>. The following [A
|
|
|
87
72
|
})
|
|
88
73
|
.strict()
|
|
89
74
|
|
|
90
|
-
export const
|
|
91
|
-
robotTusStoreInstructionsSchema
|
|
92
|
-
result: z.union([z.literal('debug'), robotTusStoreInstructionsSchema.shape.result]).optional(),
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
export type RobotTusStoreInstructions = z.infer<typeof robotTusStoreInstructionsSchema>
|
|
96
|
-
export type RobotTusStoreInstructionsWithHiddenFields = z.infer<
|
|
97
|
-
typeof robotTusStoreInstructionsWithHiddenFieldsSchema
|
|
98
|
-
>
|
|
75
|
+
export const robotDefinition: RobotDefinition<typeof robotTusStoreInstructionsSchema.shape> =
|
|
76
|
+
defineRobot(meta, robotTusStoreInstructionsSchema)
|
|
99
77
|
|
|
100
|
-
export const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
78
|
+
export const {
|
|
79
|
+
withHiddenFields: robotTusStoreInstructionsWithHiddenFieldsSchema,
|
|
80
|
+
interpolatable: interpolatableRobotTusStoreInstructionsSchema,
|
|
81
|
+
interpolatableWithHiddenFields: interpolatableRobotTusStoreInstructionsWithHiddenFieldsSchema,
|
|
82
|
+
} = robotDefinition
|
|
104
83
|
|
|
105
|
-
|
|
106
|
-
typeof interpolatableRobotTusStoreInstructionsSchema
|
|
107
|
-
>
|
|
84
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
108
85
|
|
|
109
|
-
export
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
export type
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export type InterpolatableRobotTusStoreInstructionsWithHiddenFieldsInput =
|
|
116
|
-
|
|
117
|
-
>
|
|
86
|
+
export type RobotTusStoreInstructions = Instructions['output']
|
|
87
|
+
export type RobotTusStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
88
|
+
export type InterpolatableRobotTusStoreInstructions = Instructions['interpolatableInput']
|
|
89
|
+
export type InterpolatableRobotTusStoreInstructionsInput = Instructions['interpolatableInput']
|
|
90
|
+
export type InterpolatableRobotTusStoreInstructionsWithHiddenFields =
|
|
91
|
+
Instructions['interpolatableHiddenOutput']
|
|
92
|
+
export type InterpolatableRobotTusStoreInstructionsWithHiddenFieldsInput =
|
|
93
|
+
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, robotProcessingMeta } from './_instructions-primitives.ts'
|
|
6
10
|
|
|
7
11
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
discount_factor: 0.1,
|
|
10
|
-
discount_pct: 90,
|
|
12
|
+
...robotProcessingMeta,
|
|
11
13
|
example_code: {
|
|
12
14
|
steps: {
|
|
13
15
|
':original': {
|
|
@@ -21,8 +23,6 @@ export const meta: RobotMetaInput = {
|
|
|
21
23
|
},
|
|
22
24
|
},
|
|
23
25
|
example_code_description: 'Handle uploads and export the uploaded files to S3:',
|
|
24
|
-
minimum_charge: 0,
|
|
25
|
-
output_factor: 1,
|
|
26
26
|
override_lvl1: 'Handling Uploads',
|
|
27
27
|
purpose_sentence:
|
|
28
28
|
'receives uploads that your users throw at you from browser or apps, or that you throw at us programmatically',
|
|
@@ -30,10 +30,7 @@ export const meta: RobotMetaInput = {
|
|
|
30
30
|
purpose_word: 'handle uploads',
|
|
31
31
|
purpose_words: 'Handle uploads',
|
|
32
32
|
service_slug: 'handling-uploads',
|
|
33
|
-
slot_count: 0,
|
|
34
33
|
title: 'Handle uploads',
|
|
35
|
-
typical_file_size_mb: 1.2,
|
|
36
|
-
typical_file_type: 'file',
|
|
37
34
|
name: 'UploadHandleRobot',
|
|
38
35
|
priceFactor: 10,
|
|
39
36
|
queueSlotCount: 0,
|
|
@@ -41,9 +38,6 @@ export const meta: RobotMetaInput = {
|
|
|
41
38
|
preserveInputFileUrls: true,
|
|
42
39
|
isAllowedForUrlTransform: false,
|
|
43
40
|
trackOutputFileSize: false,
|
|
44
|
-
isInternal: false,
|
|
45
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
46
|
-
stage: 'ga',
|
|
47
41
|
}
|
|
48
42
|
|
|
49
43
|
export const robotUploadHandleInstructionsSchema = robotBase
|
|
@@ -62,34 +56,22 @@ There are **3 important constraints** when using this <dfn>Robot</dfn>:
|
|
|
62
56
|
})
|
|
63
57
|
.strict()
|
|
64
58
|
|
|
65
|
-
export const
|
|
66
|
-
robotUploadHandleInstructionsSchema
|
|
67
|
-
result: z
|
|
68
|
-
.union([z.literal('debug'), robotUploadHandleInstructionsSchema.shape.result])
|
|
69
|
-
.optional(),
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
export type RobotUploadHandleInstructions = z.infer<typeof robotUploadHandleInstructionsSchema>
|
|
73
|
-
export type RobotUploadHandleInstructionsWithHiddenFields = z.infer<
|
|
74
|
-
typeof robotUploadHandleInstructionsWithHiddenFieldsSchema
|
|
75
|
-
>
|
|
59
|
+
export const robotDefinition: RobotDefinition<typeof robotUploadHandleInstructionsSchema.shape> =
|
|
60
|
+
defineRobot(meta, robotUploadHandleInstructionsSchema)
|
|
76
61
|
|
|
77
|
-
export const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
export const {
|
|
63
|
+
withHiddenFields: robotUploadHandleInstructionsWithHiddenFieldsSchema,
|
|
64
|
+
interpolatable: interpolatableRobotUploadHandleInstructionsSchema,
|
|
65
|
+
interpolatableWithHiddenFields: interpolatableRobotUploadHandleInstructionsWithHiddenFieldsSchema,
|
|
66
|
+
} = robotDefinition
|
|
82
67
|
|
|
83
|
-
|
|
84
|
-
typeof interpolatableRobotUploadHandleInstructionsSchema
|
|
85
|
-
>
|
|
68
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
86
69
|
|
|
87
|
-
export
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export type
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
export type InterpolatableRobotUploadHandleInstructionsWithHiddenFieldsInput =
|
|
94
|
-
|
|
95
|
-
>
|
|
70
|
+
export type RobotUploadHandleInstructions = Instructions['output']
|
|
71
|
+
export type RobotUploadHandleInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
72
|
+
export type InterpolatableRobotUploadHandleInstructions = Instructions['interpolatableInput']
|
|
73
|
+
export type InterpolatableRobotUploadHandleInstructionsInput = Instructions['interpolatableInput']
|
|
74
|
+
export type InterpolatableRobotUploadHandleInstructionsWithHiddenFields =
|
|
75
|
+
Instructions['interpolatableHiddenOutput']
|
|
76
|
+
export type InterpolatableRobotUploadHandleInstructionsWithHiddenFieldsInput =
|
|
77
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,19 +1,22 @@
|
|
|
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 { stackVersions } from '../stackVersions.ts'
|
|
6
10
|
import {
|
|
7
|
-
|
|
11
|
+
defineRobot,
|
|
8
12
|
robotBase,
|
|
9
13
|
robotFFmpegVideo,
|
|
10
14
|
robotUse,
|
|
15
|
+
robotVideoEncodingMeta,
|
|
11
16
|
} from './_instructions-primitives.ts'
|
|
12
17
|
|
|
13
18
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
discount_factor: 1,
|
|
16
|
-
discount_pct: 0,
|
|
19
|
+
...robotVideoEncodingMeta,
|
|
17
20
|
example_code: {
|
|
18
21
|
steps: {
|
|
19
22
|
':original': {
|
|
@@ -50,28 +53,13 @@ export const meta: RobotMetaInput = {
|
|
|
50
53
|
},
|
|
51
54
|
example_code_description:
|
|
52
55
|
'Implementing HTTP Live Streaming: encode the uploaded video into three versions, then cut them into several segments and generate playlist files containing all the segments:',
|
|
53
|
-
minimum_charge: 0,
|
|
54
|
-
output_factor: 1.2,
|
|
55
|
-
override_lvl1: 'Video Encoding',
|
|
56
56
|
purpose_sentence:
|
|
57
57
|
'encodes videos into HTTP Live Streaming (HLS), MPEG-Dash and CMAF supported formats and generates the necessary manifest and playlist files',
|
|
58
58
|
purpose_verb: 'convert',
|
|
59
59
|
purpose_word: 'make adaptive',
|
|
60
60
|
purpose_words: 'Convert videos to HLS, MPEG-Dash and CMAF',
|
|
61
|
-
service_slug: 'video-encoding',
|
|
62
|
-
slot_count: 60,
|
|
63
61
|
title: 'Convert videos to HLS, MPEG-Dash and CMAF',
|
|
64
|
-
typical_file_size_mb: 80,
|
|
65
|
-
typical_file_type: 'video',
|
|
66
62
|
name: 'VideoAdaptiveRobot',
|
|
67
|
-
priceFactor: 1,
|
|
68
|
-
queueSlotCount: 60,
|
|
69
|
-
isAllowedForUrlTransform: false,
|
|
70
|
-
trackOutputFileSize: true,
|
|
71
|
-
applyCommunityPlanMediaTrim: true,
|
|
72
|
-
isInternal: false,
|
|
73
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
74
|
-
stage: 'ga',
|
|
75
63
|
}
|
|
76
64
|
|
|
77
65
|
export const robotVideoAdaptiveInstructionsSchema = robotBase
|
|
@@ -164,34 +152,23 @@ This option is only supported for the \`"hls"\` technique and has no effect when
|
|
|
164
152
|
})
|
|
165
153
|
.strict()
|
|
166
154
|
|
|
167
|
-
export const
|
|
168
|
-
robotVideoAdaptiveInstructionsSchema
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
>
|
|
178
|
-
|
|
179
|
-
export
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
export type
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
export type
|
|
186
|
-
|
|
187
|
-
>
|
|
188
|
-
|
|
189
|
-
export const interpolatableRobotVideoAdaptiveInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
190
|
-
robotVideoAdaptiveInstructionsWithHiddenFieldsSchema,
|
|
191
|
-
)
|
|
192
|
-
export type InterpolatableRobotVideoAdaptiveInstructionsWithHiddenFields = z.infer<
|
|
193
|
-
typeof interpolatableRobotVideoAdaptiveInstructionsWithHiddenFieldsSchema
|
|
194
|
-
>
|
|
195
|
-
export type InterpolatableRobotVideoAdaptiveInstructionsWithHiddenFieldsInput = z.input<
|
|
196
|
-
typeof interpolatableRobotVideoAdaptiveInstructionsWithHiddenFieldsSchema
|
|
197
|
-
>
|
|
155
|
+
export const robotDefinition: RobotDefinition<typeof robotVideoAdaptiveInstructionsSchema.shape> =
|
|
156
|
+
defineRobot(meta, robotVideoAdaptiveInstructionsSchema)
|
|
157
|
+
|
|
158
|
+
export const {
|
|
159
|
+
withHiddenFields: robotVideoAdaptiveInstructionsWithHiddenFieldsSchema,
|
|
160
|
+
interpolatable: interpolatableRobotVideoAdaptiveInstructionsSchema,
|
|
161
|
+
interpolatableWithHiddenFields:
|
|
162
|
+
interpolatableRobotVideoAdaptiveInstructionsWithHiddenFieldsSchema,
|
|
163
|
+
} = robotDefinition
|
|
164
|
+
|
|
165
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
166
|
+
|
|
167
|
+
export type RobotVideoAdaptiveInstructions = Instructions['output']
|
|
168
|
+
export type RobotVideoAdaptiveInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
169
|
+
export type InterpolatableRobotVideoAdaptiveInstructions = Instructions['interpolatableInput']
|
|
170
|
+
export type InterpolatableRobotVideoAdaptiveInstructionsInput = Instructions['interpolatableInput']
|
|
171
|
+
export type InterpolatableRobotVideoAdaptiveInstructionsWithHiddenFields =
|
|
172
|
+
Instructions['interpolatableHiddenOutput']
|
|
173
|
+
export type InterpolatableRobotVideoAdaptiveInstructionsWithHiddenFieldsInput =
|
|
174
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,52 +1,38 @@
|
|
|
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 { stackVersions } from '../stackVersions.ts'
|
|
6
10
|
import {
|
|
7
|
-
|
|
11
|
+
createProcessingExample,
|
|
12
|
+
defineRobot,
|
|
8
13
|
robotBase,
|
|
9
14
|
robotFFmpegAudio,
|
|
10
15
|
robotUse,
|
|
16
|
+
robotVideoEncodingMeta,
|
|
11
17
|
} from './_instructions-primitives.ts'
|
|
12
18
|
|
|
13
19
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
steps: {
|
|
19
|
-
artwork_extracted: {
|
|
20
|
-
robot: '/video/artwork',
|
|
21
|
-
use: ':original',
|
|
22
|
-
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
20
|
+
...robotVideoEncodingMeta,
|
|
21
|
+
example_code: createProcessingExample('artwork_extracted', '/video/artwork', {
|
|
22
|
+
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
23
|
+
}),
|
|
26
24
|
example_code_description: 'Extract embedded cover artwork from uploaded video files:',
|
|
27
|
-
minimum_charge: 0,
|
|
28
|
-
output_factor: 0.8,
|
|
29
|
-
override_lvl1: 'Video Encoding',
|
|
30
25
|
purpose_sentence:
|
|
31
26
|
'extracts embedded cover artwork from video files or inserts a new cover image into them. Extracted artwork can be piped into other Steps such as /image/resize. Use `method: "insert"` to embed artwork into video files like MP4, MOV, or M4V',
|
|
32
27
|
purpose_verb: 'extract',
|
|
33
28
|
purpose_word: 'extract/insert artwork',
|
|
34
29
|
purpose_words: 'Extract or insert video artwork',
|
|
35
|
-
service_slug: 'video-encoding',
|
|
36
|
-
slot_count: 20,
|
|
37
30
|
title: 'Extract or insert video artwork',
|
|
38
31
|
typical_file_size_mb: 3.8,
|
|
39
|
-
typical_file_type: 'video',
|
|
40
32
|
uses_tools: ['ffmpeg'],
|
|
41
33
|
name: 'VideoArtworkRobot',
|
|
42
|
-
priceFactor: 1,
|
|
43
34
|
queueSlotCount: 20,
|
|
44
35
|
isAllowedForUrlTransform: true,
|
|
45
|
-
trackOutputFileSize: true,
|
|
46
|
-
applyCommunityPlanMediaTrim: true,
|
|
47
|
-
isInternal: false,
|
|
48
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
49
|
-
stage: 'ga',
|
|
50
36
|
}
|
|
51
37
|
|
|
52
38
|
export const robotVideoArtworkInstructionsSchema = robotBase
|
|
@@ -69,34 +55,22 @@ What should be done with the video file. A value of \`"extract"\` means video ar
|
|
|
69
55
|
})
|
|
70
56
|
.strict()
|
|
71
57
|
|
|
72
|
-
export const
|
|
73
|
-
robotVideoArtworkInstructionsSchema
|
|
74
|
-
result: z
|
|
75
|
-
.union([z.literal('debug'), robotVideoArtworkInstructionsSchema.shape.result])
|
|
76
|
-
.optional(),
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
export type RobotVideoArtworkInstructions = z.infer<typeof robotVideoArtworkInstructionsSchema>
|
|
80
|
-
export type RobotVideoArtworkInstructionsWithHiddenFields = z.infer<
|
|
81
|
-
typeof robotVideoArtworkInstructionsWithHiddenFieldsSchema
|
|
82
|
-
>
|
|
58
|
+
export const robotDefinition: RobotDefinition<typeof robotVideoArtworkInstructionsSchema.shape> =
|
|
59
|
+
defineRobot(meta, robotVideoArtworkInstructionsSchema)
|
|
83
60
|
|
|
84
|
-
export const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
61
|
+
export const {
|
|
62
|
+
withHiddenFields: robotVideoArtworkInstructionsWithHiddenFieldsSchema,
|
|
63
|
+
interpolatable: interpolatableRobotVideoArtworkInstructionsSchema,
|
|
64
|
+
interpolatableWithHiddenFields: interpolatableRobotVideoArtworkInstructionsWithHiddenFieldsSchema,
|
|
65
|
+
} = robotDefinition
|
|
89
66
|
|
|
90
|
-
|
|
91
|
-
typeof interpolatableRobotVideoArtworkInstructionsSchema
|
|
92
|
-
>
|
|
67
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
93
68
|
|
|
94
|
-
export
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export type
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
export type InterpolatableRobotVideoArtworkInstructionsWithHiddenFieldsInput =
|
|
101
|
-
|
|
102
|
-
>
|
|
69
|
+
export type RobotVideoArtworkInstructions = Instructions['output']
|
|
70
|
+
export type RobotVideoArtworkInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
71
|
+
export type InterpolatableRobotVideoArtworkInstructions = Instructions['interpolatableInput']
|
|
72
|
+
export type InterpolatableRobotVideoArtworkInstructionsInput = Instructions['interpolatableInput']
|
|
73
|
+
export type InterpolatableRobotVideoArtworkInstructionsWithHiddenFields =
|
|
74
|
+
Instructions['interpolatableHiddenOutput']
|
|
75
|
+
export type InterpolatableRobotVideoArtworkInstructionsWithHiddenFieldsInput =
|
|
76
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,19 +1,22 @@
|
|
|
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
|
+
defineRobot,
|
|
6
11
|
inputSortBySchema,
|
|
7
|
-
interpolateRobot,
|
|
8
12
|
robotBase,
|
|
9
13
|
robotFFmpegVideo,
|
|
10
14
|
robotUse,
|
|
15
|
+
robotVideoEncodingMeta,
|
|
11
16
|
} from './_instructions-primitives.ts'
|
|
12
17
|
|
|
13
18
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
discount_factor: 0.25,
|
|
16
|
-
discount_pct: 75,
|
|
19
|
+
...robotVideoEncodingMeta,
|
|
17
20
|
example_code: {
|
|
18
21
|
steps: {
|
|
19
22
|
concatenated: {
|
|
@@ -42,28 +45,14 @@ export const meta: RobotMetaInput = {
|
|
|
42
45
|
},
|
|
43
46
|
example_code_description:
|
|
44
47
|
'If you have a form with 3 file input fields and want to concatenate the uploaded videos in a specific order, instruct Transloadit using the `name` attribute of each input field. Use this attribute as the value for the `fields` key in the JSON, and set `as` to `video_[[index]]`. Transloadit will concatenate the files based on the ascending index order:',
|
|
45
|
-
minimum_charge: 0,
|
|
46
|
-
output_factor: 0.6,
|
|
47
|
-
override_lvl1: 'Video Encoding',
|
|
48
48
|
purpose_sentence: 'concatenates several videos together',
|
|
49
49
|
purpose_verb: 'concatenate',
|
|
50
50
|
purpose_word: 'concatenate',
|
|
51
51
|
purpose_words: 'Concatenate videos',
|
|
52
|
-
service_slug: 'video-encoding',
|
|
53
|
-
slot_count: 60,
|
|
54
52
|
title: 'Concatenate videos',
|
|
55
|
-
typical_file_size_mb: 80,
|
|
56
|
-
typical_file_type: 'video',
|
|
57
53
|
uses_tools: ['ffmpeg'],
|
|
58
54
|
name: 'VideoConcatRobot',
|
|
59
55
|
priceFactor: 4,
|
|
60
|
-
queueSlotCount: 60,
|
|
61
|
-
isAllowedForUrlTransform: false,
|
|
62
|
-
trackOutputFileSize: true,
|
|
63
|
-
applyCommunityPlanMediaTrim: true,
|
|
64
|
-
isInternal: false,
|
|
65
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
66
|
-
stage: 'ga',
|
|
67
56
|
}
|
|
68
57
|
|
|
69
58
|
export const robotVideoConcatInstructionsSchema = robotBase
|
|
@@ -74,7 +63,7 @@ export const robotVideoConcatInstructionsSchema = robotBase
|
|
|
74
63
|
> [!Note]
|
|
75
64
|
> Input videos may have differing dimensions and streams - the Robot can handle this fine. It will pre-transcode the input videos if necessary before concatenation at no additional cost.
|
|
76
65
|
|
|
77
|
-
|
|
66
|
+
It’s possible to concatenate a virtually infinite number of video files using [🤖/video/concat](/docs/robots/video-concat/).
|
|
78
67
|
`),
|
|
79
68
|
video_fade_seconds: z
|
|
80
69
|
.number()
|
|
@@ -92,7 +81,7 @@ Please note this parameter is independent of adding audio fades between sections
|
|
|
92
81
|
.describe(`
|
|
93
82
|
When used this adds an audio fade in and out effect between each section of your concatenated video. The float value is used so if you want an audio delay effect of 500 milliseconds between each video section you would select \`0.5\`, however, integer values can also be represented.
|
|
94
83
|
|
|
95
|
-
This parameter does not add an audio fade effect at the beginning or end of your video. If you want to do so, create an additional [🤖/video/encode](/docs/robots/video-encode/
|
|
84
|
+
This parameter does not add an audio fade effect at the beginning or end of your video. If you want to do so, create an additional [🤖/video/encode](/docs/robots/video-encode/) Step and use our \`ffmpeg\` parameter as shown in this [demo](/demos/audio-encoding/ffmpeg-fade-in-and-out/).
|
|
96
85
|
|
|
97
86
|
Please note this parameter is independent of adding video fades between sections.
|
|
98
87
|
`),
|
|
@@ -130,34 +119,22 @@ For crossfade transitions, this is the overlap duration where both clips are vis
|
|
|
130
119
|
})
|
|
131
120
|
.strict()
|
|
132
121
|
|
|
133
|
-
export const
|
|
134
|
-
robotVideoConcatInstructionsSchema
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
export
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
export type
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
typeof interpolatableRobotVideoConcatInstructionsSchema
|
|
153
|
-
>
|
|
154
|
-
|
|
155
|
-
export const interpolatableRobotVideoConcatInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
156
|
-
robotVideoConcatInstructionsWithHiddenFieldsSchema,
|
|
157
|
-
)
|
|
158
|
-
export type InterpolatableRobotVideoConcatInstructionsWithHiddenFields = z.infer<
|
|
159
|
-
typeof interpolatableRobotVideoConcatInstructionsWithHiddenFieldsSchema
|
|
160
|
-
>
|
|
161
|
-
export type InterpolatableRobotVideoConcatInstructionsWithHiddenFieldsInput = z.input<
|
|
162
|
-
typeof interpolatableRobotVideoConcatInstructionsWithHiddenFieldsSchema
|
|
163
|
-
>
|
|
122
|
+
export const robotDefinition: RobotDefinition<typeof robotVideoConcatInstructionsSchema.shape> =
|
|
123
|
+
defineRobot(meta, robotVideoConcatInstructionsSchema)
|
|
124
|
+
|
|
125
|
+
export const {
|
|
126
|
+
withHiddenFields: robotVideoConcatInstructionsWithHiddenFieldsSchema,
|
|
127
|
+
interpolatable: interpolatableRobotVideoConcatInstructionsSchema,
|
|
128
|
+
interpolatableWithHiddenFields: interpolatableRobotVideoConcatInstructionsWithHiddenFieldsSchema,
|
|
129
|
+
} = robotDefinition
|
|
130
|
+
|
|
131
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
132
|
+
|
|
133
|
+
export type RobotVideoConcatInstructions = Instructions['output']
|
|
134
|
+
export type RobotVideoConcatInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
135
|
+
export type InterpolatableRobotVideoConcatInstructions = Instructions['interpolatableInput']
|
|
136
|
+
export type InterpolatableRobotVideoConcatInstructionsInput = Instructions['interpolatableInput']
|
|
137
|
+
export type InterpolatableRobotVideoConcatInstructionsWithHiddenFields =
|
|
138
|
+
Instructions['interpolatableHiddenOutput']
|
|
139
|
+
export type InterpolatableRobotVideoConcatInstructionsWithHiddenFieldsInput =
|
|
140
|
+
Instructions['interpolatableHiddenInput']
|