transloadit 4.14.0 → 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 +38 -1
- 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/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/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/utility.ts +52 -0
|
@@ -1,56 +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
9
|
import { stackVersions } from '../stackVersions.ts'
|
|
6
10
|
import {
|
|
7
|
-
|
|
11
|
+
createProcessingExample,
|
|
12
|
+
defineRobot,
|
|
8
13
|
robotBase,
|
|
9
14
|
robotFFmpegVideo,
|
|
10
15
|
robotUse,
|
|
16
|
+
robotVideoEncodingMeta,
|
|
11
17
|
} from './_instructions-primitives.ts'
|
|
12
18
|
|
|
13
19
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
23
|
-
segments: [
|
|
24
|
-
{ from: 0, to: 30 },
|
|
25
|
-
{ from: 60, to: 90 },
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
20
|
+
...robotVideoEncodingMeta,
|
|
21
|
+
example_code: createProcessingExample('split', '/video/split', {
|
|
22
|
+
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
23
|
+
segments: [
|
|
24
|
+
{ from: 0, to: 30 },
|
|
25
|
+
{ from: 60, to: 90 },
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
30
28
|
example_code_description:
|
|
31
29
|
'Split a video into two segments, extracting the first 30 seconds and a segment from 1:00 to 1:30:',
|
|
32
|
-
minimum_charge: 0,
|
|
33
|
-
output_factor: 0.6,
|
|
34
|
-
override_lvl1: 'Video Encoding',
|
|
35
30
|
purpose_sentence: 'splits a video into multiple segments based on an array of from/to durations',
|
|
36
31
|
purpose_verb: 'split',
|
|
37
32
|
purpose_word: 'split',
|
|
38
33
|
purpose_words: 'Split video',
|
|
39
|
-
service_slug: 'video-encoding',
|
|
40
|
-
slot_count: 60,
|
|
41
34
|
title: 'Split video',
|
|
42
|
-
typical_file_size_mb: 80,
|
|
43
|
-
typical_file_type: 'video',
|
|
44
35
|
uses_tools: ['ffmpeg'],
|
|
45
36
|
name: 'VideoSplitRobot',
|
|
46
|
-
priceFactor: 1,
|
|
47
|
-
queueSlotCount: 60,
|
|
48
|
-
isAllowedForUrlTransform: false,
|
|
49
|
-
trackOutputFileSize: true,
|
|
50
|
-
applyCommunityPlanMediaTrim: true,
|
|
51
|
-
isInternal: false,
|
|
52
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
53
|
-
stage: 'ga',
|
|
54
37
|
}
|
|
55
38
|
|
|
56
39
|
const segmentSchema = z
|
|
@@ -86,34 +69,22 @@ Times can be specified as numbers (seconds) or as timecode strings (e.g. \`"00:0
|
|
|
86
69
|
})
|
|
87
70
|
.strict()
|
|
88
71
|
|
|
89
|
-
export const
|
|
90
|
-
robotVideoSplitInstructionsSchema
|
|
91
|
-
result: z
|
|
92
|
-
.union([z.literal('debug'), robotVideoSplitInstructionsSchema.shape.result])
|
|
93
|
-
.optional(),
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
export type RobotVideoSplitInstructions = z.infer<typeof robotVideoSplitInstructionsSchema>
|
|
97
|
-
export type RobotVideoSplitInstructionsWithHiddenFields = z.infer<
|
|
98
|
-
typeof robotVideoSplitInstructionsWithHiddenFieldsSchema
|
|
99
|
-
>
|
|
72
|
+
export const robotDefinition: RobotDefinition<typeof robotVideoSplitInstructionsSchema.shape> =
|
|
73
|
+
defineRobot(meta, robotVideoSplitInstructionsSchema)
|
|
100
74
|
|
|
101
|
-
export const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
75
|
+
export const {
|
|
76
|
+
withHiddenFields: robotVideoSplitInstructionsWithHiddenFieldsSchema,
|
|
77
|
+
interpolatable: interpolatableRobotVideoSplitInstructionsSchema,
|
|
78
|
+
interpolatableWithHiddenFields: interpolatableRobotVideoSplitInstructionsWithHiddenFieldsSchema,
|
|
79
|
+
} = robotDefinition
|
|
106
80
|
|
|
107
|
-
|
|
108
|
-
typeof interpolatableRobotVideoSplitInstructionsSchema
|
|
109
|
-
>
|
|
81
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
110
82
|
|
|
111
|
-
export
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
export type
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export type InterpolatableRobotVideoSplitInstructionsWithHiddenFieldsInput =
|
|
118
|
-
|
|
119
|
-
>
|
|
83
|
+
export type RobotVideoSplitInstructions = Instructions['output']
|
|
84
|
+
export type RobotVideoSplitInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
85
|
+
export type InterpolatableRobotVideoSplitInstructions = Instructions['interpolatableInput']
|
|
86
|
+
export type InterpolatableRobotVideoSplitInstructionsInput = Instructions['interpolatableInput']
|
|
87
|
+
export type InterpolatableRobotVideoSplitInstructionsWithHiddenFields =
|
|
88
|
+
Instructions['interpolatableHiddenOutput']
|
|
89
|
+
export type InterpolatableRobotVideoSplitInstructionsWithHiddenFieldsInput =
|
|
90
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,22 +1,26 @@
|
|
|
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
|
|
|
9
|
+
import { zodInputPreservingTransform } from '../../lib/zodInputSemantics.ts'
|
|
5
10
|
import { stackVersions } from '../stackVersions.ts'
|
|
6
11
|
import {
|
|
7
12
|
color_with_alpha,
|
|
8
13
|
color_without_alpha,
|
|
9
|
-
|
|
14
|
+
defineRobot,
|
|
10
15
|
positionSchema,
|
|
11
16
|
robotBase,
|
|
12
17
|
robotFFmpegVideo,
|
|
13
18
|
robotUse,
|
|
19
|
+
robotVideoEncodingMeta,
|
|
14
20
|
} from './_instructions-primitives.ts'
|
|
15
21
|
|
|
16
22
|
export const meta: RobotMetaInput = {
|
|
17
|
-
|
|
18
|
-
discount_factor: 1,
|
|
19
|
-
discount_pct: 0,
|
|
23
|
+
...robotVideoEncodingMeta,
|
|
20
24
|
example_code: {
|
|
21
25
|
steps: {
|
|
22
26
|
add_english_subtitles: {
|
|
@@ -62,29 +66,14 @@ export const meta: RobotMetaInput = {
|
|
|
62
66
|
},
|
|
63
67
|
},
|
|
64
68
|
example_code_description:
|
|
65
|
-
'If you have file input fields in a form — one for a video and one for each subtitle language (named `input_video`, `input_srt_en`, and `input_srt_de` via the HTML `name` attribute) —
|
|
66
|
-
minimum_charge: 0,
|
|
67
|
-
output_factor: 0.6,
|
|
68
|
-
override_lvl1: 'Video Encoding',
|
|
69
|
+
'If you have file input fields in a form — one for a video and one for each subtitle language (named `input_video`, `input_srt_en`, and `input_srt_de` via the HTML `name` attribute) — here’s how to add multiple subtitle streams with language tags to the video. Chain multiple `/video/subtitle` Steps with `keep_subtitles` set to `true` so each new stream is added alongside existing ones:',
|
|
69
70
|
purpose_sentence: 'adds subtitles and closed captions to videos',
|
|
70
71
|
purpose_verb: 'subtitle',
|
|
71
72
|
purpose_word: 'subtitle',
|
|
72
73
|
purpose_words: 'Add subtitles to videos',
|
|
73
|
-
service_slug: 'video-encoding',
|
|
74
|
-
slot_count: 60,
|
|
75
74
|
title: 'Add subtitles to videos',
|
|
76
|
-
typical_file_size_mb: 80,
|
|
77
|
-
typical_file_type: 'video',
|
|
78
75
|
uses_tools: ['ffmpeg'],
|
|
79
76
|
name: 'VideoSubtitleRobot',
|
|
80
|
-
priceFactor: 1,
|
|
81
|
-
queueSlotCount: 60,
|
|
82
|
-
isAllowedForUrlTransform: false,
|
|
83
|
-
trackOutputFileSize: true,
|
|
84
|
-
applyCommunityPlanMediaTrim: true,
|
|
85
|
-
isInternal: false,
|
|
86
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
87
|
-
stage: 'ga',
|
|
88
77
|
}
|
|
89
78
|
|
|
90
79
|
export const robotVideoSubtitleInstructionsSchema = robotBase
|
|
@@ -94,9 +83,9 @@ export const robotVideoSubtitleInstructionsSchema = robotBase
|
|
|
94
83
|
robot: z.literal('/video/subtitle').describe(`
|
|
95
84
|
This <dfn>Robot</dfn> supports both SRT and VTT subtitle files.
|
|
96
85
|
`),
|
|
97
|
-
subtitles_type: z
|
|
98
|
-
|
|
99
|
-
|
|
86
|
+
subtitles_type: zodInputPreservingTransform(z.enum(['burned', 'external', 'burn']), (val) =>
|
|
87
|
+
val === 'burn' ? 'burned' : val,
|
|
88
|
+
)
|
|
100
89
|
.default('external')
|
|
101
90
|
.describe(`
|
|
102
91
|
Determines if subtitles are added as a separate stream to the video (value \`"external"\`) that then can be switched on and off in your video player, or if they should be burned directly into the video (value \`"burned"\` or \`"burn"\`) so that they become part of the video stream.
|
|
@@ -181,34 +170,23 @@ Specifies if existing subtitles in the input file should be kept or be replaced
|
|
|
181
170
|
})
|
|
182
171
|
.strict()
|
|
183
172
|
|
|
184
|
-
export const
|
|
185
|
-
robotVideoSubtitleInstructionsSchema
|
|
186
|
-
result: z
|
|
187
|
-
.union([z.literal('debug'), robotVideoSubtitleInstructionsSchema.shape.result])
|
|
188
|
-
.optional(),
|
|
189
|
-
})
|
|
190
|
-
|
|
191
|
-
export type RobotVideoSubtitleInstructions = z.infer<typeof robotVideoSubtitleInstructionsSchema>
|
|
192
|
-
export type RobotVideoSubtitleInstructionsWithHiddenFields = z.infer<
|
|
193
|
-
typeof robotVideoSubtitleInstructionsWithHiddenFieldsSchema
|
|
194
|
-
>
|
|
173
|
+
export const robotDefinition: RobotDefinition<typeof robotVideoSubtitleInstructionsSchema.shape> =
|
|
174
|
+
defineRobot(meta, robotVideoSubtitleInstructionsSchema)
|
|
195
175
|
|
|
196
|
-
export const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
176
|
+
export const {
|
|
177
|
+
withHiddenFields: robotVideoSubtitleInstructionsWithHiddenFieldsSchema,
|
|
178
|
+
interpolatable: interpolatableRobotVideoSubtitleInstructionsSchema,
|
|
179
|
+
interpolatableWithHiddenFields:
|
|
180
|
+
interpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsSchema,
|
|
181
|
+
} = robotDefinition
|
|
201
182
|
|
|
202
|
-
|
|
203
|
-
typeof interpolatableRobotVideoSubtitleInstructionsSchema
|
|
204
|
-
>
|
|
183
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
205
184
|
|
|
206
|
-
export
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
export type
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
export type InterpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsInput =
|
|
213
|
-
|
|
214
|
-
>
|
|
185
|
+
export type RobotVideoSubtitleInstructions = Instructions['output']
|
|
186
|
+
export type RobotVideoSubtitleInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
187
|
+
export type InterpolatableRobotVideoSubtitleInstructions = Instructions['interpolatableInput']
|
|
188
|
+
export type InterpolatableRobotVideoSubtitleInstructionsInput = Instructions['interpolatableInput']
|
|
189
|
+
export type InterpolatableRobotVideoSubtitleInstructionsWithHiddenFields =
|
|
190
|
+
Instructions['interpolatableHiddenOutput']
|
|
191
|
+
export type InterpolatableRobotVideoSubtitleInstructionsWithHiddenFieldsInput =
|
|
192
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,55 +1,56 @@
|
|
|
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
|
color_with_alpha,
|
|
8
|
-
|
|
12
|
+
createProcessingExample,
|
|
13
|
+
defineRobot,
|
|
9
14
|
percentageSchema,
|
|
10
15
|
resize_strategy,
|
|
11
16
|
robotBase,
|
|
12
17
|
robotFFmpeg,
|
|
13
18
|
robotUse,
|
|
19
|
+
robotVideoEncodingMeta,
|
|
14
20
|
} from './_instructions-primitives.ts'
|
|
15
21
|
|
|
22
|
+
/** Markup over the AI provider cost for smart thumbnail selection. */
|
|
23
|
+
export const smartThumbnailMarkupPercent = 50
|
|
24
|
+
|
|
25
|
+
const thumbnailCountSchema = z.number().int().min(1).max(999).default(8)
|
|
26
|
+
const smartMaximumCandidatesSchema = z.number().int().min(2).max(100).default(20)
|
|
27
|
+
const defaultThumbnailCount = thumbnailCountSchema.parse(undefined)
|
|
28
|
+
const defaultSmartMaximumCandidates = smartMaximumCandidatesSchema.parse(undefined)
|
|
29
|
+
|
|
30
|
+
/** Candidate-pool size shared by smart thumbnail execution and its documented default example. */
|
|
31
|
+
export function getSmartThumbnailCandidateCount(count: number, maximumCandidates: number): number {
|
|
32
|
+
return Math.max(count, Math.min(maximumCandidates, count * 3))
|
|
33
|
+
}
|
|
34
|
+
|
|
16
35
|
export const meta: RobotMetaInput = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
example_code_description: 'Extract 10 thumbnails from each uploaded video:',
|
|
31
|
-
minimum_charge: 0,
|
|
32
|
-
output_factor: 0.05,
|
|
33
|
-
override_lvl1: 'Video Encoding',
|
|
36
|
+
...robotVideoEncodingMeta,
|
|
37
|
+
example_code: createProcessingExample('thumbnailed', '/video/thumbs', {
|
|
38
|
+
count: 3,
|
|
39
|
+
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
40
|
+
smart: true,
|
|
41
|
+
smart_max_candidates: 12,
|
|
42
|
+
}),
|
|
43
|
+
example_code_description:
|
|
44
|
+
'Select three visually appealing thumbnails from each uploaded video with AI:',
|
|
34
45
|
purpose_sentence: 'extracts any number of images from videos for use as previews',
|
|
35
46
|
purpose_verb: 'extract',
|
|
36
47
|
purpose_word: 'thumbnail',
|
|
37
48
|
purpose_words: 'Extract thumbnails from videos',
|
|
38
|
-
service_slug: 'video-encoding',
|
|
39
|
-
slot_count: 15,
|
|
40
49
|
title: 'Extract thumbnails from videos',
|
|
41
|
-
typical_file_size_mb: 80,
|
|
42
|
-
typical_file_type: 'video',
|
|
43
50
|
uses_tools: ['ffmpeg'],
|
|
44
51
|
name: 'VideoThumbsRobot',
|
|
45
52
|
priceFactor: 10,
|
|
46
53
|
queueSlotCount: 15,
|
|
47
|
-
isAllowedForUrlTransform: false,
|
|
48
|
-
trackOutputFileSize: true,
|
|
49
|
-
applyCommunityPlanMediaTrim: true,
|
|
50
|
-
isInternal: false,
|
|
51
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
52
|
-
stage: 'ga',
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export const robotVideoThumbsInstructionsSchema = robotBase
|
|
@@ -57,16 +58,23 @@ export const robotVideoThumbsInstructionsSchema = robotBase
|
|
|
57
58
|
.merge(robotFFmpeg)
|
|
58
59
|
.extend({
|
|
59
60
|
robot: z.literal('/video/thumbs').describe(`
|
|
61
|
+
Set \`smart: true\` to select strong preview images with AI instead of taking frames only at regular intervals. The Robot scores candidate frames for clarity, brightness, composition, faces, expressions, action, and visual interest, then returns the best \`count\` frames in chronological order. Smart results include \`file.meta.smart_score\` and \`file.meta.smart_reasons\`. If AI scoring is unavailable, the Assembly continues with the candidate frames in fallback order. No AI credentials are required.
|
|
62
|
+
|
|
63
|
+
## AI pricing
|
|
64
|
+
|
|
65
|
+
Regular \`/video/thumbs\` processing charges still apply. AI frame analysis is billed separately at the underlying provider cost plus a ${smartThumbnailMarkupPercent}% Transloadit markup. The exact AI charge varies with the number of candidate frames, the internally selected model and provider pricing, and the image payload size.
|
|
66
|
+
|
|
67
|
+
\`smart_max_candidates\` is the main cost and latency control. The Robot analyzes up to three candidates per requested thumbnail, capped by \`smart_max_candidates\`, but never fewer than \`count\`. With the defaults of \`count: ${defaultThumbnailCount}\` and \`smart_max_candidates: ${defaultSmartMaximumCandidates}\`, it analyzes ${getSmartThumbnailCandidateCount(defaultThumbnailCount, defaultSmartMaximumCandidates)} frames and returns the best ${defaultThumbnailCount}. Lower the candidate limit to reduce AI cost and latency; raise it to give the AI more frames to choose from.
|
|
68
|
+
|
|
60
69
|
> [!Note]
|
|
61
|
-
>
|
|
70
|
+
> Use \`count\` with smart selection. To consistently extract exact timestamps with \`offsets\`, set \`smart: false\`.
|
|
71
|
+
|
|
72
|
+
> [!Note]
|
|
73
|
+
> Even though thumbnails are extracted from videos in parallel, we sort the thumbnails before adding them to the Assembly results. So the order in which they appear there reflects the order in which they appear in the video. You can also make sure by checking the \`thumb_index\` meta key.
|
|
74
|
+
|
|
75
|
+
For an upload-to-poster Template, SDK usage, and publication checks, see the [HTML video workflow guide](/guides/html-video-production-checklist/#html-video-production-checklist-section-6). The [video and S3 demo](/demos/file-exporting/store-encoding-and-thumbnails-on-s3/) includes a recorded input and extracted frames.
|
|
62
76
|
`),
|
|
63
|
-
count:
|
|
64
|
-
.number()
|
|
65
|
-
.int()
|
|
66
|
-
.min(1)
|
|
67
|
-
.max(999)
|
|
68
|
-
.default(8)
|
|
69
|
-
.describe(`
|
|
77
|
+
count: thumbnailCountSchema.describe(`
|
|
70
78
|
The number of thumbnails to be extracted. As some videos have incorrect durations, the actual number of thumbnails generated may be less in rare cases. The maximum number of thumbnails we currently allow is 999.
|
|
71
79
|
|
|
72
80
|
The thumbnails are taken at regular intervals, determined by dividing the video duration by the count. For example, a count of 3 will produce thumbnails at 25%, 50% and 75% through the video.
|
|
@@ -80,6 +88,8 @@ To extract thumbnails for specific timestamps, use the \`offsets\` parameter.
|
|
|
80
88
|
An array of offsets representing seconds of the file duration, such as \`[ 2, 45, 120 ]\`. Millisecond durations of a file can also be used by using decimal place values. For example, an offset from 1250 milliseconds would be represented with \`1.25\`. Offsets can also be percentage values such as \`[ "2%", "50%", "75%" ]\`.
|
|
81
89
|
|
|
82
90
|
This option cannot be used with the \`count\` parameter, and takes precedence if both are specified. Out-of-range offsets are silently ignored.
|
|
91
|
+
|
|
92
|
+
When \`smart\` is \`true\`, smart selection ignores \`offsets\` and uses \`count\` to select from its own candidate timestamps. If no smart candidates can be extracted, the Robot falls back to standard extraction, where \`offsets\` takes precedence. Use \`smart: false\` to consistently extract the specified timestamps.
|
|
83
93
|
`),
|
|
84
94
|
format: z
|
|
85
95
|
.enum(['jpeg', 'jpg', 'png'])
|
|
@@ -136,52 +146,38 @@ The AI evaluates frames based on:
|
|
|
136
146
|
- Action and motion (avoiding transition frames)
|
|
137
147
|
- Overall visual interest
|
|
138
148
|
|
|
139
|
-
|
|
149
|
+
Regular \`/video/thumbs\` processing charges still apply. AI frame analysis is billed separately at the underlying provider cost plus a ${smartThumbnailMarkupPercent}% Transloadit markup. You do not need to provide AI credentials.
|
|
150
|
+
|
|
151
|
+
Smart mode generates its own regularly spaced candidate timestamps; use \`smart: false\` with \`offsets\` when you need specified timestamps. Selected smart thumbnails are returned in chronological order, not score order. Inspect \`meta.thumb_offset\`, \`meta.smart_score\`, and \`meta.smart_reasons\` when evaluating the selection.
|
|
152
|
+
|
|
153
|
+
If AI scoring fails, the Robot selects from the extracted candidates in chronological order and records a fallback reason. If no candidates can be extracted, it attempts standard thumbnail extraction. A completed Assembly does not guarantee a representative or publication-safe poster; check that outputs exist and apply your application’s review policy.
|
|
140
154
|
`),
|
|
141
|
-
smart_max_candidates:
|
|
142
|
-
|
|
143
|
-
.int()
|
|
144
|
-
.min(2)
|
|
145
|
-
.max(100)
|
|
146
|
-
.default(20)
|
|
147
|
-
.describe(`
|
|
148
|
-
The maximum number of candidate frames to extract and analyze when \`smart\` is \`true\`.
|
|
155
|
+
smart_max_candidates: smartMaximumCandidatesSchema.describe(`
|
|
156
|
+
The maximum size of the candidate pool when \`smart\` is \`true\`. The Robot analyzes up to three candidates per requested thumbnail, capped by this value, but it will never analyze fewer candidates than the requested \`count\`.
|
|
149
157
|
|
|
150
|
-
A higher number may yield better results but increases processing time and cost.
|
|
158
|
+
A higher number may yield better results but increases processing time and AI cost. With the defaults of \`count: ${defaultThumbnailCount}\` and \`smart_max_candidates: ${defaultSmartMaximumCandidates}\`, the Robot analyzes ${getSmartThumbnailCandidateCount(defaultThumbnailCount, defaultSmartMaximumCandidates)} frames and returns the best ${defaultThumbnailCount} in chronological order.
|
|
151
159
|
|
|
152
160
|
This parameter is only used when \`smart\` is \`true\`.
|
|
153
161
|
`),
|
|
154
162
|
})
|
|
155
163
|
.strict()
|
|
156
164
|
|
|
157
|
-
export const
|
|
158
|
-
robotVideoThumbsInstructionsSchema
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
export type
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
typeof interpolatableRobotVideoThumbsInstructionsSchema
|
|
177
|
-
>
|
|
178
|
-
|
|
179
|
-
export const interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
180
|
-
robotVideoThumbsInstructionsWithHiddenFieldsSchema,
|
|
181
|
-
)
|
|
182
|
-
export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFields = z.infer<
|
|
183
|
-
typeof interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema
|
|
184
|
-
>
|
|
185
|
-
export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFieldsInput = z.input<
|
|
186
|
-
typeof interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema
|
|
187
|
-
>
|
|
165
|
+
export const robotDefinition: RobotDefinition<typeof robotVideoThumbsInstructionsSchema.shape> =
|
|
166
|
+
defineRobot(meta, robotVideoThumbsInstructionsSchema)
|
|
167
|
+
|
|
168
|
+
export const {
|
|
169
|
+
withHiddenFields: robotVideoThumbsInstructionsWithHiddenFieldsSchema,
|
|
170
|
+
interpolatable: interpolatableRobotVideoThumbsInstructionsSchema,
|
|
171
|
+
interpolatableWithHiddenFields: interpolatableRobotVideoThumbsInstructionsWithHiddenFieldsSchema,
|
|
172
|
+
} = robotDefinition
|
|
173
|
+
|
|
174
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
175
|
+
|
|
176
|
+
export type RobotVideoThumbsInstructions = Instructions['output']
|
|
177
|
+
export type RobotVideoThumbsInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
178
|
+
export type InterpolatableRobotVideoThumbsInstructions = Instructions['interpolatableInput']
|
|
179
|
+
export type InterpolatableRobotVideoThumbsInstructionsInput = Instructions['interpolatableInput']
|
|
180
|
+
export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFields =
|
|
181
|
+
Instructions['interpolatableHiddenOutput']
|
|
182
|
+
export type InterpolatableRobotVideoThumbsInstructionsWithHiddenFieldsInput =
|
|
183
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
|
@@ -7,13 +7,12 @@ import {
|
|
|
7
7
|
path,
|
|
8
8
|
robotBase,
|
|
9
9
|
robotImport,
|
|
10
|
+
robotImportMeta,
|
|
10
11
|
vimeoBase,
|
|
11
12
|
} from './_instructions-primitives.ts'
|
|
12
13
|
|
|
13
14
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
discount_factor: 0.1,
|
|
16
|
-
discount_pct: 90,
|
|
15
|
+
...robotImportMeta,
|
|
17
16
|
example_code: {
|
|
18
17
|
steps: {
|
|
19
18
|
imported: {
|
|
@@ -28,27 +27,14 @@ export const meta: RobotMetaInput = {
|
|
|
28
27
|
},
|
|
29
28
|
example_code_description: 'Import videos from your Vimeo account:',
|
|
30
29
|
has_small_icon: true,
|
|
31
|
-
minimum_charge: 0,
|
|
32
|
-
output_factor: 1,
|
|
33
|
-
override_lvl1: 'File Importing',
|
|
34
30
|
purpose_sentence: 'imports videos from your Vimeo account',
|
|
35
|
-
purpose_verb: 'import',
|
|
36
31
|
purpose_word: 'Vimeo',
|
|
37
32
|
purpose_words: 'Import videos from Vimeo',
|
|
38
33
|
requires_credentials: true,
|
|
39
|
-
service_slug: 'file-importing',
|
|
40
|
-
slot_count: 20,
|
|
41
34
|
title: 'Import videos from Vimeo',
|
|
42
35
|
typical_file_size_mb: 50,
|
|
43
36
|
typical_file_type: 'video',
|
|
44
37
|
name: 'VimeoImportRobot',
|
|
45
|
-
priceFactor: 6.6666,
|
|
46
|
-
queueSlotCount: 20,
|
|
47
|
-
isAllowedForUrlTransform: true,
|
|
48
|
-
trackOutputFileSize: false,
|
|
49
|
-
isInternal: false,
|
|
50
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
51
|
-
stage: 'ga',
|
|
52
38
|
}
|
|
53
39
|
|
|
54
40
|
export const robotVimeoImportInstructionsSchema = robotBase
|
|
@@ -124,3 +110,12 @@ export type InterpolatableRobotVimeoImportInstructionsWithHiddenFields = z.infer
|
|
|
124
110
|
export type InterpolatableRobotVimeoImportInstructionsWithHiddenFieldsInput = z.input<
|
|
125
111
|
typeof interpolatableRobotVimeoImportInstructionsWithHiddenFieldsSchema
|
|
126
112
|
>
|
|
113
|
+
|
|
114
|
+
export const robotDefinition: RobotSchemaPair<
|
|
115
|
+
typeof interpolatableRobotVimeoImportInstructionsSchema,
|
|
116
|
+
typeof interpolatableRobotVimeoImportInstructionsWithHiddenFieldsSchema
|
|
117
|
+
> = {
|
|
118
|
+
meta,
|
|
119
|
+
interpolatable: interpolatableRobotVimeoImportInstructionsSchema,
|
|
120
|
+
interpolatableWithHiddenFields: interpolatableRobotVimeoImportInstructionsWithHiddenFieldsSchema,
|
|
121
|
+
}
|
|
@@ -1,47 +1,35 @@
|
|
|
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
|
+
createProcessingExample,
|
|
11
|
+
defineRobotWithHiddenFields,
|
|
12
|
+
robotBase,
|
|
13
|
+
robotStoreMeta,
|
|
14
|
+
robotUse,
|
|
15
|
+
vimeoBase,
|
|
16
|
+
} from './_instructions-primitives.ts'
|
|
6
17
|
|
|
7
18
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
discount_factor: 0.15000150001500018,
|
|
10
|
-
discount_pct: 84.99984999849998,
|
|
19
|
+
...robotStoreMeta,
|
|
11
20
|
hideCredentialsWarning: true,
|
|
12
|
-
example_code: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
credentials: 'YOUR_VIMEO_CREDENTIALS',
|
|
18
|
-
title: 'Transloadit: Video Example',
|
|
19
|
-
description: 'Some nice description',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
21
|
+
example_code: createProcessingExample('exported', '/vimeo/store', {
|
|
22
|
+
credentials: 'YOUR_VIMEO_CREDENTIALS',
|
|
23
|
+
title: 'Transloadit: Video Example',
|
|
24
|
+
description: 'Some nice description',
|
|
25
|
+
}),
|
|
23
26
|
example_code_description: 'Export an uploaded video to Vimeo and set its title and description:',
|
|
24
27
|
has_small_icon: true,
|
|
25
|
-
minimum_charge: 0,
|
|
26
|
-
output_factor: 1,
|
|
27
|
-
override_lvl1: 'File Exporting',
|
|
28
28
|
purpose_sentence: 'exports encoding results to Vimeo',
|
|
29
|
-
purpose_verb: 'export',
|
|
30
29
|
purpose_word: 'Vimeo',
|
|
31
30
|
purpose_words: 'Export files to Vimeo',
|
|
32
|
-
service_slug: 'file-exporting',
|
|
33
|
-
slot_count: 10,
|
|
34
31
|
title: 'Export files to Vimeo',
|
|
35
|
-
typical_file_size_mb: 1.2,
|
|
36
|
-
typical_file_type: 'file',
|
|
37
32
|
name: 'VimeoStoreRobot',
|
|
38
|
-
priceFactor: 6.6666,
|
|
39
|
-
queueSlotCount: 10,
|
|
40
|
-
isAllowedForUrlTransform: true,
|
|
41
|
-
trackOutputFileSize: false,
|
|
42
|
-
isInternal: false,
|
|
43
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
44
|
-
stage: 'ga',
|
|
45
33
|
}
|
|
46
34
|
|
|
47
35
|
export const robotVimeoStoreInstructionsSchema = robotBase
|
|
@@ -118,38 +106,31 @@ Deprecated. Please use \`folder_id\` instead. The URI of the folder to which the
|
|
|
118
106
|
})
|
|
119
107
|
.strict()
|
|
120
108
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
.string()
|
|
128
|
-
.optional()
|
|
129
|
-
.describe('Legacy authentication field. Use credentials instead.'),
|
|
130
|
-
})
|
|
109
|
+
const hiddenFields = {
|
|
110
|
+
access_token: z
|
|
111
|
+
.string()
|
|
112
|
+
.optional()
|
|
113
|
+
.describe('Legacy authentication field. Use credentials instead.'),
|
|
114
|
+
}
|
|
131
115
|
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
typeof
|
|
135
|
-
>
|
|
136
|
-
|
|
137
|
-
export const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
export
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
export type InterpolatableRobotVimeoStoreInstructionsWithHiddenFieldsInput = z.input<
|
|
154
|
-
typeof interpolatableRobotVimeoStoreInstructionsWithHiddenFieldsSchema
|
|
155
|
-
>
|
|
116
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
117
|
+
typeof robotVimeoStoreInstructionsSchema.shape,
|
|
118
|
+
typeof hiddenFields
|
|
119
|
+
> = defineRobotWithHiddenFields(meta, robotVimeoStoreInstructionsSchema, hiddenFields)
|
|
120
|
+
|
|
121
|
+
export const {
|
|
122
|
+
withHiddenFields: robotVimeoStoreInstructionsWithHiddenFieldsSchema,
|
|
123
|
+
interpolatable: interpolatableRobotVimeoStoreInstructionsSchema,
|
|
124
|
+
interpolatableWithHiddenFields: interpolatableRobotVimeoStoreInstructionsWithHiddenFieldsSchema,
|
|
125
|
+
} = robotDefinition
|
|
126
|
+
|
|
127
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
128
|
+
|
|
129
|
+
export type RobotVimeoStoreInstructions = Instructions['output']
|
|
130
|
+
export type RobotVimeoStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
131
|
+
export type InterpolatableRobotVimeoStoreInstructions = Instructions['interpolatableInput']
|
|
132
|
+
export type InterpolatableRobotVimeoStoreInstructionsInput = Instructions['interpolatableInput']
|
|
133
|
+
export type InterpolatableRobotVimeoStoreInstructionsWithHiddenFields =
|
|
134
|
+
Instructions['interpolatableHiddenOutput']
|
|
135
|
+
export type InterpolatableRobotVimeoStoreInstructionsWithHiddenFieldsInput =
|
|
136
|
+
Instructions['interpolatableHiddenInput']
|