transloadit 4.13.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -6
- package/dist/ApiError.d.ts +6 -2
- package/dist/ApiError.d.ts.map +1 -1
- package/dist/ApiError.js +6 -2
- package/dist/ApiError.js.map +1 -1
- package/dist/Transloadit.d.ts +2 -0
- package/dist/Transloadit.d.ts.map +1 -1
- package/dist/Transloadit.js +15 -4
- package/dist/Transloadit.js.map +1 -1
- package/dist/alphalib/aiMessages.d.ts +33254 -0
- package/dist/alphalib/aiMessages.d.ts.map +1 -0
- package/dist/alphalib/aiMessages.js +479 -0
- package/dist/alphalib/aiMessages.js.map +1 -0
- package/dist/alphalib/assembly-linter.d.ts.map +1 -1
- package/dist/alphalib/assembly-linter.js +20 -15
- package/dist/alphalib/assembly-linter.js.map +1 -1
- package/dist/alphalib/englishList.d.ts +3 -0
- package/dist/alphalib/englishList.d.ts.map +1 -0
- package/dist/alphalib/englishList.js +12 -0
- package/dist/alphalib/englishList.js.map +1 -0
- package/dist/alphalib/errors.d.ts +16 -0
- package/dist/alphalib/errors.d.ts.map +1 -1
- package/dist/alphalib/errors.js +124 -13
- package/dist/alphalib/errors.js.map +1 -1
- package/dist/alphalib/imagemagickDensity.d.ts.map +1 -1
- package/dist/alphalib/imagemagickDensity.js +2 -2
- package/dist/alphalib/imagemagickDensity.js.map +1 -1
- package/dist/alphalib/lib/zodInputSemantics.d.ts +18 -0
- package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -0
- package/dist/alphalib/lib/zodInputSemantics.js +86 -0
- package/dist/alphalib/lib/zodInputSemantics.js.map +1 -0
- package/dist/alphalib/object.d.ts +42 -2
- package/dist/alphalib/object.d.ts.map +1 -1
- package/dist/alphalib/object.js +133 -0
- package/dist/alphalib/object.js.map +1 -1
- package/dist/alphalib/stepParsing.d.ts +1 -0
- package/dist/alphalib/stepParsing.d.ts.map +1 -1
- package/dist/alphalib/stepParsing.js +9 -1
- package/dist/alphalib/stepParsing.js.map +1 -1
- package/dist/alphalib/types/apiParameterDescription.d.ts +14 -0
- package/dist/alphalib/types/apiParameterDescription.d.ts.map +1 -0
- package/dist/alphalib/types/apiParameterDescription.js +20 -0
- package/dist/alphalib/types/apiParameterDescription.js.map +1 -0
- package/dist/alphalib/types/assembliesGet.d.ts +1 -1
- package/dist/alphalib/types/assemblyReplay.d.ts +4 -4
- package/dist/alphalib/types/assemblyStatus.d.ts +7196 -64686
- package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
- package/dist/alphalib/types/assemblyStatus.js +74 -55
- package/dist/alphalib/types/assemblyStatus.js.map +1 -1
- package/dist/alphalib/types/errorReason.d.ts +7 -0
- package/dist/alphalib/types/errorReason.d.ts.map +1 -0
- package/dist/alphalib/types/errorReason.js +14 -0
- package/dist/alphalib/types/errorReason.js.map +1 -0
- package/dist/alphalib/types/file.d.ts +7 -0
- package/dist/alphalib/types/file.d.ts.map +1 -1
- package/dist/alphalib/types/file.js +15 -0
- package/dist/alphalib/types/file.js.map +1 -1
- package/dist/alphalib/types/fileHash.d.ts +16 -0
- package/dist/alphalib/types/fileHash.d.ts.map +1 -0
- package/dist/alphalib/types/fileHash.js +10 -0
- package/dist/alphalib/types/fileHash.js.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts +28 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.js +80 -0
- package/dist/alphalib/types/robots/_ai-models.js.map +1 -0
- package/dist/alphalib/types/robots/_index.d.ts +713 -1329
- package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_index.js +4 -0
- package/dist/alphalib/types/robots/_index.js.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts +504 -129
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.js +629 -280
- package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.d.ts +952 -2189
- package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.js +235 -367
- package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.d.ts +28 -16
- package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.js +2 -11
- package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.js +9 -38
- package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.js +11 -25
- package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.js +13 -43
- package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.js +12 -40
- package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.js +11 -25
- package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
- package/dist/alphalib/types/robots/audio-split.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-split.js +15 -45
- package/dist/alphalib/types/robots/audio-split.js.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.d.ts +120 -107
- package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.js +15 -39
- package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
- package/dist/alphalib/types/robots/azure-import.d.ts +48 -35
- package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-import.js +5 -35
- package/dist/alphalib/types/robots/azure-import.js.map +1 -1
- package/dist/alphalib/types/robots/azure-store.d.ts +87 -71
- package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-store.js +11 -50
- package/dist/alphalib/types/robots/azure-store.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.d.ts +48 -35
- package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.js +6 -39
- package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.d.ts +80 -67
- package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.js +8 -44
- package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
- package/dist/alphalib/types/robots/box-import.d.ts +44 -27
- package/dist/alphalib/types/robots/box-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-import.js +7 -33
- package/dist/alphalib/types/robots/box-import.js.map +1 -1
- package/dist/alphalib/types/robots/box-store.d.ts +85 -68
- package/dist/alphalib/types/robots/box-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-store.js +8 -40
- package/dist/alphalib/types/robots/box-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.js +8 -45
- package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.js +5 -36
- package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.js +10 -57
- package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.js +11 -54
- package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.d.ts +56 -43
- package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.js +8 -49
- package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.d.ts +88 -75
- package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.js +8 -56
- package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.d.ts +80 -67
- package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.js +5 -32
- package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
- package/dist/alphalib/types/robots/document-convert.d.ts +84 -71
- package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-convert.js +7 -33
- package/dist/alphalib/types/robots/document-convert.js.map +1 -1
- package/dist/alphalib/types/robots/document-extract.d.ts +80 -67
- package/dist/alphalib/types/robots/document-extract.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-extract.js +10 -36
- package/dist/alphalib/types/robots/document-extract.js.map +1 -1
- package/dist/alphalib/types/robots/document-merge.d.ts +80 -67
- package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-merge.js +4 -25
- package/dist/alphalib/types/robots/document-merge.js.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.js +10 -47
- package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.d.ts +80 -67
- package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.js +7 -31
- package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/document-split.d.ts +80 -67
- package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-split.js +7 -34
- package/dist/alphalib/types/robots/document-split.js.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.d.ts +120 -101
- package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.js +24 -31
- package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.d.ts +40 -27
- package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.js +5 -35
- package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.d.ts +84 -68
- package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.js +8 -42
- package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.js +4 -24
- package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/file-compress.d.ts +80 -67
- package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-compress.js +4 -20
- package/dist/alphalib/types/robots/file-compress.js.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.d.ts +96 -83
- package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.js +10 -41
- package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
- package/dist/alphalib/types/robots/file-filter.d.ts +99 -87
- package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-filter.js +11 -40
- package/dist/alphalib/types/robots/file-filter.js.map +1 -1
- package/dist/alphalib/types/robots/file-hash.d.ts +84 -71
- package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-hash.js +12 -43
- package/dist/alphalib/types/robots/file-hash.js.map +1 -1
- package/dist/alphalib/types/robots/file-preview.d.ts +113 -100
- package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-preview.js +14 -39
- package/dist/alphalib/types/robots/file-preview.js.map +1 -1
- package/dist/alphalib/types/robots/file-read.d.ts +80 -67
- package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-read.js +5 -26
- package/dist/alphalib/types/robots/file-read.js.map +1 -1
- package/dist/alphalib/types/robots/file-serve.d.ts +81 -68
- package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-serve.js +4 -21
- package/dist/alphalib/types/robots/file-serve.js.map +1 -1
- package/dist/alphalib/types/robots/file-verify.d.ts +88 -75
- package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-verify.js +11 -41
- package/dist/alphalib/types/robots/file-verify.js.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.d.ts +83 -67
- package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.js +16 -42
- package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.d.ts +81 -67
- package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.js +10 -29
- package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.d.ts +40 -27
- package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.js +5 -33
- package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.d.ts +85 -67
- package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.js +7 -34
- package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/google-import.d.ts +48 -35
- package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-import.js +10 -43
- package/dist/alphalib/types/robots/google-import.js.map +1 -1
- package/dist/alphalib/types/robots/google-store.d.ts +80 -67
- package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-store.js +10 -41
- package/dist/alphalib/types/robots/google-store.js.map +1 -1
- package/dist/alphalib/types/robots/html-convert.d.ts +107 -89
- package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/html-convert.js +6 -22
- package/dist/alphalib/types/robots/html-convert.js.map +1 -1
- package/dist/alphalib/types/robots/http-import.d.ts +76 -63
- package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/http-import.js +14 -19
- package/dist/alphalib/types/robots/http-import.js.map +1 -1
- package/dist/alphalib/types/robots/http-request.d.ts +538 -0
- package/dist/alphalib/types/robots/http-request.d.ts.map +1 -0
- package/dist/alphalib/types/robots/http-request.js +162 -0
- package/dist/alphalib/types/robots/http-request.js.map +1 -0
- package/dist/alphalib/types/robots/image-bgremove.d.ts +80 -67
- package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-bgremove.js +6 -33
- package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +92 -79
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.js +9 -33
- package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-describe.d.ts +80 -67
- package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-describe.js +8 -37
- package/dist/alphalib/types/robots/image-describe.js.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.d.ts +80 -67
- package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.js +7 -31
- package/dist/alphalib/types/robots/image-enhance.js.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.d.ts +88 -75
- package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.js +16 -44
- package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-generate.js +20 -25
- package/dist/alphalib/types/robots/image-generate.js.map +1 -1
- package/dist/alphalib/types/robots/image-merge.d.ts +96 -83
- package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-merge.js +9 -40
- package/dist/alphalib/types/robots/image-merge.js.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.js +11 -47
- package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.d.ts +88 -75
- package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.js +6 -32
- package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/image-resize.d.ts +217 -112
- package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-resize.js +15 -42
- package/dist/alphalib/types/robots/image-resize.js.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.d.ts +97 -81
- package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.js +23 -42
- package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
- package/dist/alphalib/types/robots/mega-import.d.ts +48 -35
- package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-import.js +12 -59
- package/dist/alphalib/types/robots/mega-import.js.map +1 -1
- package/dist/alphalib/types/robots/mega-store.d.ts +80 -67
- package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-store.js +14 -60
- package/dist/alphalib/types/robots/mega-store.js.map +1 -1
- package/dist/alphalib/types/robots/meta-read.d.ts +30 -16
- package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-read.js +4 -20
- package/dist/alphalib/types/robots/meta-read.js.map +1 -1
- package/dist/alphalib/types/robots/meta-write.d.ts +80 -67
- package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-write.js +9 -32
- package/dist/alphalib/types/robots/meta-write.js.map +1 -1
- package/dist/alphalib/types/robots/minio-import.d.ts +48 -35
- package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-import.js +9 -60
- package/dist/alphalib/types/robots/minio-import.js.map +1 -1
- package/dist/alphalib/types/robots/minio-store.d.ts +80 -67
- package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-store.js +9 -50
- package/dist/alphalib/types/robots/minio-store.js.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.d.ts +34 -28
- package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.js +8 -28
- package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
- package/dist/alphalib/types/robots/s3-import.d.ts +48 -35
- package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-import.js +7 -38
- package/dist/alphalib/types/robots/s3-import.js.map +1 -1
- package/dist/alphalib/types/robots/s3-store.d.ts +84 -68
- package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-store.js +14 -44
- package/dist/alphalib/types/robots/s3-store.js.map +1 -1
- package/dist/alphalib/types/robots/script-run.d.ts +83 -67
- package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
- package/dist/alphalib/types/robots/script-run.js +9 -27
- package/dist/alphalib/types/robots/script-run.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.d.ts +51 -35
- package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.js +7 -36
- package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.d.ts +83 -67
- package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.js +9 -41
- package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.d.ts +102 -85
- package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.js +23 -44
- package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.d.ts +48 -35
- package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.js +12 -59
- package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.d.ts +80 -79
- package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.js +12 -56
- package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
- package/dist/alphalib/types/robots/swift-import.d.ts +48 -47
- package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-import.js +14 -55
- package/dist/alphalib/types/robots/swift-import.js.map +1 -1
- package/dist/alphalib/types/robots/swift-store.d.ts +80 -79
- package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-store.js +14 -62
- package/dist/alphalib/types/robots/swift-store.js.map +1 -1
- package/dist/alphalib/types/robots/text-speak.d.ts +80 -67
- package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-speak.js +11 -37
- package/dist/alphalib/types/robots/text-speak.js.map +1 -1
- package/dist/alphalib/types/robots/text-translate.d.ts +92 -79
- package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-translate.js +9 -36
- package/dist/alphalib/types/robots/text-translate.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.d.ts +48 -35
- package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.js +9 -60
- package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.d.ts +80 -67
- package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.js +7 -48
- package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.js +4 -25
- package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.d.ts +58 -45
- package/dist/alphalib/types/robots/transloadit-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.js +17 -21
- package/dist/alphalib/types/robots/transloadit-import.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.d.ts +70 -57
- package/dist/alphalib/types/robots/transloadit-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.js +14 -6
- package/dist/alphalib/types/robots/transloadit-store.js.map +1 -1
- package/dist/alphalib/types/robots/tus-store.d.ts +84 -71
- package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tus-store.js +8 -37
- package/dist/alphalib/types/robots/tus-store.js.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.d.ts +32 -19
- package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.js +4 -19
- package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.d.ts +112 -99
- package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.js +4 -26
- package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.js +7 -32
- package/dist/alphalib/types/robots/video-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/video-concat.d.ts +104 -91
- package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-concat.js +6 -27
- package/dist/alphalib/types/robots/video-concat.js.map +1 -1
- package/dist/alphalib/types/robots/video-encode.d.ts +121 -103
- package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-encode.js +13 -38
- package/dist/alphalib/types/robots/video-encode.js.map +1 -1
- package/dist/alphalib/types/robots/video-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-generate.js +11 -18
- package/dist/alphalib/types/robots/video-generate.js.map +1 -1
- package/dist/alphalib/types/robots/video-merge.d.ts +135 -119
- package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-merge.js +12 -32
- package/dist/alphalib/types/robots/video-merge.js.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.d.ts +156 -139
- package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.js +11 -27
- package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
- package/dist/alphalib/types/robots/video-split.d.ts +104 -91
- package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-split.js +11 -39
- package/dist/alphalib/types/robots/video-split.js.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.d.ts +104 -91
- package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.js +7 -30
- package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.d.ts +112 -95
- package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.js +46 -53
- package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.d.ts +30 -17
- package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.js +7 -17
- package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.d.ts +83 -67
- package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.js +11 -37
- package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.d.ts +48 -35
- package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.js +9 -56
- package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.d.ts +80 -67
- package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.js +10 -52
- package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.d.ts +98 -85
- package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.js +42 -63
- package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
- package/dist/alphalib/types/stackVersions.d.ts +40 -1
- package/dist/alphalib/types/stackVersions.d.ts.map +1 -1
- package/dist/alphalib/types/stackVersions.js +25 -3
- package/dist/alphalib/types/stackVersions.js.map +1 -1
- package/dist/alphalib/types/storageAsset.d.ts +55 -23
- package/dist/alphalib/types/storageAsset.d.ts.map +1 -1
- package/dist/alphalib/types/storageAsset.js +33 -9
- package/dist/alphalib/types/storageAsset.js.map +1 -1
- package/dist/alphalib/types/template.d.ts +16 -16
- package/dist/alphalib/types/templateCredential.d.ts +2 -2
- package/dist/alphalib/types/utility.d.ts +22 -0
- package/dist/alphalib/types/utility.d.ts.map +1 -0
- package/dist/alphalib/types/utility.js +2 -0
- package/dist/alphalib/types/utility.js.map +1 -0
- package/dist/cli/commands/storage.d.ts +1 -0
- package/dist/cli/commands/storage.d.ts.map +1 -1
- package/dist/cli/commands/storage.js +27 -2
- package/dist/cli/commands/storage.js.map +1 -1
- package/dist/cli/semanticIntents/imageGenerate.d.ts +2 -2
- package/dist/cli/semanticIntents/imageGenerate.js +4 -4
- package/dist/cli/semanticIntents/imageGenerate.js.map +1 -1
- package/dist/cli/storageReceipts.d.ts.map +1 -1
- package/dist/cli/storageReceipts.js +4 -1
- package/dist/cli/storageReceipts.js.map +1 -1
- package/dist/storageImage.d.ts +6 -3
- package/dist/storageImage.d.ts.map +1 -1
- package/dist/storageImage.js +13 -0
- package/dist/storageImage.js.map +1 -1
- package/package.json +1 -2
- package/src/ApiError.ts +11 -4
- package/src/Transloadit.ts +24 -5
- package/src/alphalib/aiMessages.ts +554 -0
- package/src/alphalib/assembly-linter.ts +9 -2
- package/src/alphalib/englishList.ts +11 -0
- package/src/alphalib/errors.ts +159 -13
- package/src/alphalib/imagemagickDensity.ts +2 -1
- package/src/alphalib/lib/zodInputSemantics.ts +114 -0
- package/src/alphalib/object.ts +178 -3
- package/src/alphalib/stepParsing.ts +10 -2
- package/src/alphalib/types/apiParameterDescription.ts +41 -0
- package/src/alphalib/types/assemblyStatus.ts +121 -83
- package/src/alphalib/types/errorReason.ts +14 -0
- package/src/alphalib/types/file.ts +18 -0
- package/src/alphalib/types/fileHash.ts +10 -0
- package/src/alphalib/types/responseErrors/HttpImportRobot.ts +22 -0
- package/src/alphalib/types/robots/_ai-models.ts +91 -0
- package/src/alphalib/types/robots/_index.ts +14 -0
- package/src/alphalib/types/robots/_instructions-primitives.ts +841 -308
- package/src/alphalib/types/robots/ai-chat.ts +358 -459
- package/src/alphalib/types/robots/assembly-savejson.ts +2 -11
- package/src/alphalib/types/robots/audio-artwork.ts +35 -61
- package/src/alphalib/types/robots/audio-concat.ts +17 -25
- package/src/alphalib/types/robots/audio-encode.ts +35 -65
- package/src/alphalib/types/robots/audio-loop.ts +34 -61
- package/src/alphalib/types/robots/audio-merge.ts +17 -25
- package/src/alphalib/types/robots/audio-split.ts +37 -67
- package/src/alphalib/types/robots/audio-waveform.ts +42 -65
- package/src/alphalib/types/robots/azure-import.ts +26 -57
- package/src/alphalib/types/robots/azure-store.ts +48 -72
- package/src/alphalib/types/robots/backblaze-import.ts +30 -63
- package/src/alphalib/types/robots/backblaze-store.ts +37 -66
- package/src/alphalib/types/robots/box-import.ts +32 -55
- package/src/alphalib/types/robots/box-store.ts +40 -63
- package/src/alphalib/types/robots/cloudfiles-import.ts +34 -70
- package/src/alphalib/types/robots/cloudfiles-store.ts +28 -59
- package/src/alphalib/types/robots/cloudflare-import.ts +37 -83
- package/src/alphalib/types/robots/cloudflare-store.ts +37 -77
- package/src/alphalib/types/robots/digitalocean-import.ts +35 -75
- package/src/alphalib/types/robots/digitalocean-store.ts +35 -79
- package/src/alphalib/types/robots/document-autorotate.ts +36 -58
- package/src/alphalib/types/robots/document-convert.ts +37 -59
- package/src/alphalib/types/robots/document-extract.ts +45 -62
- package/src/alphalib/types/robots/document-merge.ts +25 -47
- package/src/alphalib/types/robots/document-ocr.ts +32 -70
- package/src/alphalib/types/robots/document-optimize.ts +38 -57
- package/src/alphalib/types/robots/document-split.ts +33 -56
- package/src/alphalib/types/robots/document-thumbs.ts +66 -67
- package/src/alphalib/types/robots/dropbox-import.ts +27 -57
- package/src/alphalib/types/robots/dropbox-store.ts +39 -65
- package/src/alphalib/types/robots/edgly-deliver.ts +26 -49
- package/src/alphalib/types/robots/file-compress.ts +31 -45
- package/src/alphalib/types/robots/file-decompress.ts +41 -68
- package/src/alphalib/types/robots/file-filter.ts +36 -65
- package/src/alphalib/types/robots/file-hash.ts +37 -64
- package/src/alphalib/types/robots/file-preview.ts +39 -65
- package/src/alphalib/types/robots/file-read.ts +33 -50
- package/src/alphalib/types/robots/file-serve.ts +32 -46
- package/src/alphalib/types/robots/file-verify.ts +37 -63
- package/src/alphalib/types/robots/file-virusscan.ts +49 -67
- package/src/alphalib/types/robots/file-watermark.ts +35 -54
- package/src/alphalib/types/robots/ftp-import.ts +26 -54
- package/src/alphalib/types/robots/ftp-store.ts +44 -63
- package/src/alphalib/types/robots/google-import.ts +32 -66
- package/src/alphalib/types/robots/google-store.ts +37 -63
- package/src/alphalib/types/robots/html-convert.ts +38 -49
- package/src/alphalib/types/robots/http-import.ts +21 -19
- package/src/alphalib/types/robots/http-request.ts +196 -0
- package/src/alphalib/types/robots/image-bgremove.ts +28 -55
- package/src/alphalib/types/robots/image-copyrightdetect.ts +38 -56
- package/src/alphalib/types/robots/image-describe.ts +31 -60
- package/src/alphalib/types/robots/image-enhance.ts +30 -56
- package/src/alphalib/types/robots/image-facedetect.ts +43 -71
- package/src/alphalib/types/robots/image-generate.ts +32 -25
- package/src/alphalib/types/robots/image-merge.ts +34 -65
- package/src/alphalib/types/robots/image-ocr.ts +33 -69
- package/src/alphalib/types/robots/image-optimize.ts +28 -54
- package/src/alphalib/types/robots/image-resize.ts +72 -96
- package/src/alphalib/types/robots/image-upscale.ts +52 -64
- package/src/alphalib/types/robots/mega-import.ts +36 -84
- package/src/alphalib/types/robots/mega-store.ts +44 -81
- package/src/alphalib/types/robots/meta-read.ts +21 -36
- package/src/alphalib/types/robots/meta-write.ts +35 -53
- package/src/alphalib/types/robots/minio-import.ts +34 -86
- package/src/alphalib/types/robots/minio-store.ts +37 -72
- package/src/alphalib/types/robots/progress-simulate.ts +14 -28
- package/src/alphalib/types/robots/s3-import.ts +32 -63
- package/src/alphalib/types/robots/s3-store.ts +53 -74
- package/src/alphalib/types/robots/script-run.ts +44 -55
- package/src/alphalib/types/robots/sftp-import.ts +34 -61
- package/src/alphalib/types/robots/sftp-store.ts +42 -65
- package/src/alphalib/types/robots/speech-transcribe.ts +53 -71
- package/src/alphalib/types/robots/supabase-import.ts +37 -84
- package/src/alphalib/types/robots/supabase-store.ts +41 -78
- package/src/alphalib/types/robots/swift-import.ts +38 -80
- package/src/alphalib/types/robots/swift-store.ts +44 -84
- package/src/alphalib/types/robots/text-speak.ts +36 -62
- package/src/alphalib/types/robots/text-translate.ts +35 -62
- package/src/alphalib/types/robots/tigris-import.ts +34 -86
- package/src/alphalib/types/robots/tigris-store.ts +35 -70
- package/src/alphalib/types/robots/tlcdn-deliver.ts +23 -47
- package/src/alphalib/types/robots/transloadit-import.ts +24 -29
- package/src/alphalib/types/robots/transloadit-store.ts +20 -7
- package/src/alphalib/types/robots/tus-store.ts +34 -58
- package/src/alphalib/types/robots/upload-handle.ts +23 -41
- package/src/alphalib/types/robots/video-adaptive.ts +28 -51
- package/src/alphalib/types/robots/video-artwork.ts +28 -54
- package/src/alphalib/types/robots/video-concat.ts +29 -52
- package/src/alphalib/types/robots/video-encode.ts +39 -62
- package/src/alphalib/types/robots/video-generate.ts +20 -18
- package/src/alphalib/types/robots/video-merge.ts +36 -55
- package/src/alphalib/types/robots/video-ondemand.ts +48 -62
- package/src/alphalib/types/robots/video-split.ts +32 -61
- package/src/alphalib/types/robots/video-subtitle.ts +30 -52
- package/src/alphalib/types/robots/video-thumbs.ts +74 -78
- package/src/alphalib/types/robots/vimeo-import.ts +12 -17
- package/src/alphalib/types/robots/vimeo-store.ts +46 -65
- package/src/alphalib/types/robots/wasabi-import.ts +33 -81
- package/src/alphalib/types/robots/wasabi-store.ts +38 -74
- package/src/alphalib/types/robots/youtube-store.ts +81 -91
- package/src/alphalib/types/stackVersions.ts +26 -3
- package/src/alphalib/types/storageAsset.ts +85 -29
- package/src/alphalib/types/utility.ts +52 -0
- package/src/cli/commands/storage.ts +28 -2
- package/src/cli/semanticIntents/imageGenerate.ts +4 -4
- package/src/cli/storageReceipts.ts +4 -1
- package/src/storageImage.ts +18 -3
|
@@ -1,51 +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
|
|
|
9
|
+
import { stackVersions } from '../stackVersions.ts'
|
|
5
10
|
import {
|
|
6
|
-
|
|
11
|
+
createProcessingExample,
|
|
12
|
+
defineRobotWithHiddenFields,
|
|
7
13
|
robotBase,
|
|
8
14
|
robotUse,
|
|
15
|
+
robotVideoEncodingMeta,
|
|
9
16
|
videoEncodeSpecificInstructionsSchema,
|
|
10
17
|
} from './_instructions-primitives.ts'
|
|
11
18
|
|
|
12
19
|
export const meta: RobotMetaInput = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
steps: {
|
|
18
|
-
hevc_encoded: {
|
|
19
|
-
robot: '/video/encode',
|
|
20
|
-
use: ':original',
|
|
21
|
-
preset: 'hevc',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
20
|
+
...robotVideoEncodingMeta,
|
|
21
|
+
example_code: createProcessingExample('hevc_encoded', '/video/encode', {
|
|
22
|
+
preset: 'hevc',
|
|
23
|
+
}),
|
|
25
24
|
example_code_description:
|
|
26
25
|
'Transcode uploaded video to [HEVC](https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding) (H.265):',
|
|
27
|
-
minimum_charge: 0,
|
|
28
|
-
output_factor: 0.6,
|
|
29
|
-
override_lvl1: 'Video Encoding',
|
|
30
26
|
purpose_sentence: 'encodes, resizes, applies watermarks to videos and animated GIFs',
|
|
31
27
|
purpose_verb: 'transcode',
|
|
32
28
|
purpose_word: 'transcode/resize/watermark',
|
|
33
29
|
purpose_words: 'Transcode, resize, or watermark videos',
|
|
34
|
-
service_slug: 'video-encoding',
|
|
35
|
-
slot_count: 60,
|
|
36
30
|
title: 'Transcode, resize, or watermark videos',
|
|
37
|
-
typical_file_size_mb: 80,
|
|
38
|
-
typical_file_type: 'video',
|
|
39
31
|
uses_tools: ['ffmpeg'],
|
|
40
32
|
name: 'VideoEncodeRobot',
|
|
41
|
-
priceFactor: 1,
|
|
42
|
-
queueSlotCount: 60,
|
|
43
|
-
isAllowedForUrlTransform: false,
|
|
44
|
-
trackOutputFileSize: true,
|
|
45
|
-
applyCommunityPlanMediaTrim: true,
|
|
46
|
-
isInternal: false,
|
|
47
|
-
stage: 'ga',
|
|
48
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
49
33
|
}
|
|
50
34
|
|
|
51
35
|
export const robotVideoEncodeInstructionsSchema = robotBase
|
|
@@ -69,7 +53,7 @@ You can add text overlays to videos using FFmpeg's \`drawtext\` filter through t
|
|
|
69
53
|
"use": ":original",
|
|
70
54
|
"robot": "/video/encode",
|
|
71
55
|
"preset": "empty",
|
|
72
|
-
"ffmpeg_stack": "{
|
|
56
|
+
"ffmpeg_stack": "${stackVersions.ffmpeg.recommendedVersion}",
|
|
73
57
|
"ffmpeg": {
|
|
74
58
|
"codec:a": "copy",
|
|
75
59
|
"vf": "drawtext=text='My text overlay':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2"
|
|
@@ -80,7 +64,7 @@ You can add text overlays to videos using FFmpeg's \`drawtext\` filter through t
|
|
|
80
64
|
"use": ":original",
|
|
81
65
|
"robot": "/video/encode",
|
|
82
66
|
"preset": "empty",
|
|
83
|
-
"ffmpeg_stack": "{
|
|
67
|
+
"ffmpeg_stack": "${stackVersions.ffmpeg.recommendedVersion}",
|
|
84
68
|
"ffmpeg": {
|
|
85
69
|
"codec:a": "copy",
|
|
86
70
|
"vf": "drawtext=font='Times New Roman':text='My text overlay':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2"
|
|
@@ -101,7 +85,7 @@ You can add text overlays to videos using FFmpeg's \`drawtext\` filter through t
|
|
|
101
85
|
- Preserve the source audio by setting \`"codec:a": "copy"\`.
|
|
102
86
|
- Position text with the \`x\` and \`y\` expressions. The example above centers the text.
|
|
103
87
|
|
|
104
|
-
See the live demo
|
|
88
|
+
See the [live text overlay demo](/demos/video-encoding/add-text-overlay/).
|
|
105
89
|
`),
|
|
106
90
|
font_size: z.number().optional(),
|
|
107
91
|
font_color: z.string().optional(),
|
|
@@ -109,37 +93,30 @@ See the live demo [here](/demos/video-encoding/add-text-overlay/).
|
|
|
109
93
|
})
|
|
110
94
|
.strict()
|
|
111
95
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
chunked_transcoding: z.boolean().optional(),
|
|
118
|
-
freeze_detect: z.boolean().optional(),
|
|
119
|
-
realtime: z.boolean().optional(),
|
|
120
|
-
})
|
|
96
|
+
const hiddenFields = {
|
|
97
|
+
chunked_transcoding: z.boolean().optional(),
|
|
98
|
+
freeze_detect: z.boolean().optional(),
|
|
99
|
+
realtime: z.boolean().optional(),
|
|
100
|
+
}
|
|
121
101
|
|
|
122
|
-
export
|
|
123
|
-
|
|
124
|
-
typeof
|
|
125
|
-
>
|
|
102
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
103
|
+
typeof robotVideoEncodeInstructionsSchema.shape,
|
|
104
|
+
typeof hiddenFields
|
|
105
|
+
> = defineRobotWithHiddenFields(meta, robotVideoEncodeInstructionsSchema, hiddenFields)
|
|
126
106
|
|
|
127
|
-
export const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
107
|
+
export const {
|
|
108
|
+
withHiddenFields: robotVideoEncodeInstructionsWithHiddenFieldsSchema,
|
|
109
|
+
interpolatable: interpolatableRobotVideoEncodeInstructionsSchema,
|
|
110
|
+
interpolatableWithHiddenFields: interpolatableRobotVideoEncodeInstructionsWithHiddenFieldsSchema,
|
|
111
|
+
} = robotDefinition
|
|
132
112
|
|
|
133
|
-
|
|
134
|
-
typeof interpolatableRobotVideoEncodeInstructionsSchema
|
|
135
|
-
>
|
|
113
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
136
114
|
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
export type
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
export type InterpolatableRobotVideoEncodeInstructionsWithHiddenFieldsInput =
|
|
144
|
-
|
|
145
|
-
>
|
|
115
|
+
export type RobotVideoEncodeInstructions = Instructions['output']
|
|
116
|
+
export type RobotVideoEncodeInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
117
|
+
export type InterpolatableRobotVideoEncodeInstructions = Instructions['interpolatableInput']
|
|
118
|
+
export type InterpolatableRobotVideoEncodeInstructionsInput = Instructions['interpolatableInput']
|
|
119
|
+
export type InterpolatableRobotVideoEncodeInstructionsWithHiddenFields =
|
|
120
|
+
Instructions['interpolatableHiddenOutput']
|
|
121
|
+
export type InterpolatableRobotVideoEncodeInstructionsWithHiddenFieldsInput =
|
|
122
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,18 +1,19 @@
|
|
|
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
|
+
import { videoGenerateDefaultModelIdentifier } from './_ai-models.ts'
|
|
5
6
|
import {
|
|
6
7
|
autoProviderDescription,
|
|
7
8
|
interpolateRobot,
|
|
9
|
+
robotArtificialIntelligenceMeta,
|
|
8
10
|
robotBase,
|
|
11
|
+
robotParameterDocs,
|
|
9
12
|
robotUse,
|
|
10
13
|
} from './_instructions-primitives.ts'
|
|
11
14
|
|
|
12
15
|
export const meta: RobotMetaInput = {
|
|
13
|
-
|
|
14
|
-
discount_factor: 1,
|
|
15
|
-
discount_pct: 0,
|
|
16
|
+
...robotArtificialIntelligenceMeta,
|
|
16
17
|
example_code: {
|
|
17
18
|
steps: {
|
|
18
19
|
generated_video: {
|
|
@@ -25,27 +26,16 @@ export const meta: RobotMetaInput = {
|
|
|
25
26
|
},
|
|
26
27
|
},
|
|
27
28
|
example_code_description: 'Generate a short video from a text prompt:',
|
|
28
|
-
minimum_charge: 0,
|
|
29
|
-
output_factor: 0.6,
|
|
30
29
|
purpose_sentence: 'generates videos from text prompts using AI',
|
|
31
30
|
purpose_verb: 'generate',
|
|
32
31
|
purpose_word: 'generate',
|
|
33
32
|
purpose_words: 'Generate videos from text prompts',
|
|
34
|
-
service_slug: 'artificial-intelligence',
|
|
35
|
-
slot_count: 10,
|
|
36
33
|
title: 'Generate videos from text prompts',
|
|
37
34
|
typical_file_size_mb: 50,
|
|
38
35
|
typical_file_type: 'video',
|
|
39
36
|
name: 'VideoGenerateRobot',
|
|
40
|
-
priceFactor: 1,
|
|
41
|
-
queueSlotCount: 10,
|
|
42
37
|
minimumChargeUsd: 0.06,
|
|
43
|
-
isAllowedForUrlTransform: true,
|
|
44
|
-
trackOutputFileSize: true,
|
|
45
38
|
applyCommunityPlanMediaTrim: true,
|
|
46
|
-
isInternal: false,
|
|
47
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
48
|
-
stage: 'ga',
|
|
49
39
|
}
|
|
50
40
|
|
|
51
41
|
export const robotVideoGenerateInstructionsSchema = robotBase
|
|
@@ -55,10 +45,12 @@ export const robotVideoGenerateInstructionsSchema = robotBase
|
|
|
55
45
|
model: z
|
|
56
46
|
.string()
|
|
57
47
|
.optional()
|
|
58
|
-
.describe(
|
|
48
|
+
.describe(
|
|
49
|
+
`The AI model to use for video generation. Defaults to ${videoGenerateDefaultModelIdentifier}.`,
|
|
50
|
+
),
|
|
59
51
|
prompt: z.string().describe('The prompt describing the desired video content.'),
|
|
60
52
|
format: z.enum(['mp4', 'gif']).optional().describe('Format of the generated video.'),
|
|
61
|
-
seed: z.number().optional().describe(
|
|
53
|
+
seed: z.number().optional().describe(robotParameterDocs.seed.description),
|
|
62
54
|
aspect_ratio: z.string().optional().describe('Aspect ratio of the generated video.'),
|
|
63
55
|
height: z.number().optional().describe('Height of the generated video.'),
|
|
64
56
|
width: z.number().optional().describe('Width of the generated video.'),
|
|
@@ -107,7 +99,7 @@ export type RobotVideoGenerateInstructionsWithHiddenFields = z.infer<
|
|
|
107
99
|
>
|
|
108
100
|
|
|
109
101
|
export const interpolatableRobotVideoGenerateInstructionsSchema = interpolateRobot(
|
|
110
|
-
|
|
102
|
+
robotVideoGenerateInstructionsSchema,
|
|
111
103
|
)
|
|
112
104
|
export type InterpolatableRobotVideoGenerateInstructions =
|
|
113
105
|
InterpolatableRobotVideoGenerateInstructionsInput
|
|
@@ -125,3 +117,13 @@ export type InterpolatableRobotVideoGenerateInstructionsWithHiddenFields = z.inf
|
|
|
125
117
|
export type InterpolatableRobotVideoGenerateInstructionsWithHiddenFieldsInput = z.input<
|
|
126
118
|
typeof interpolatableRobotVideoGenerateInstructionsWithHiddenFieldsSchema
|
|
127
119
|
>
|
|
120
|
+
|
|
121
|
+
export const robotDefinition: RobotSchemaPair<
|
|
122
|
+
typeof interpolatableRobotVideoGenerateInstructionsSchema,
|
|
123
|
+
typeof interpolatableRobotVideoGenerateInstructionsWithHiddenFieldsSchema
|
|
124
|
+
> = {
|
|
125
|
+
meta,
|
|
126
|
+
interpolatable: interpolatableRobotVideoGenerateInstructionsSchema,
|
|
127
|
+
interpolatableWithHiddenFields:
|
|
128
|
+
interpolatableRobotVideoGenerateInstructionsWithHiddenFieldsSchema,
|
|
129
|
+
}
|
|
@@ -1,22 +1,25 @@
|
|
|
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
9
|
import {
|
|
6
|
-
|
|
10
|
+
defineRobotWithHiddenFields,
|
|
7
11
|
httpUrlSchema,
|
|
8
12
|
inputSortBySchema,
|
|
9
|
-
interpolateRobot,
|
|
10
13
|
resize_strategy,
|
|
11
14
|
robotBase,
|
|
12
15
|
robotFFmpegVideo,
|
|
13
16
|
robotUse,
|
|
17
|
+
robotVideoEncodingMeta,
|
|
18
|
+
videoBackgroundSchema,
|
|
14
19
|
} from './_instructions-primitives.ts'
|
|
15
20
|
|
|
16
21
|
export const meta: RobotMetaInput = {
|
|
17
|
-
|
|
18
|
-
discount_factor: 1,
|
|
19
|
-
discount_pct: 0,
|
|
22
|
+
...robotVideoEncodingMeta,
|
|
20
23
|
example_code: {
|
|
21
24
|
steps: {
|
|
22
25
|
merged: {
|
|
@@ -34,29 +37,14 @@ export const meta: RobotMetaInput = {
|
|
|
34
37
|
},
|
|
35
38
|
},
|
|
36
39
|
example_code_description: 'Merge uploaded image and audio inputs into one video:',
|
|
37
|
-
minimum_charge: 0,
|
|
38
|
-
output_factor: 0.6,
|
|
39
|
-
override_lvl1: 'Video Encoding',
|
|
40
40
|
purpose_sentence:
|
|
41
41
|
'composes a new video by adding an audio track to existing still image(s) or video',
|
|
42
42
|
purpose_verb: 'merge',
|
|
43
43
|
purpose_word: 'merge',
|
|
44
44
|
purpose_words: 'Merge video, audio, images into one video',
|
|
45
|
-
service_slug: 'video-encoding',
|
|
46
|
-
slot_count: 60,
|
|
47
45
|
title: 'Merge video, audio, images into one video',
|
|
48
|
-
typical_file_size_mb: 80,
|
|
49
|
-
typical_file_type: 'video',
|
|
50
46
|
uses_tools: ['ffmpeg'],
|
|
51
47
|
name: 'VideoMergeRobot',
|
|
52
|
-
priceFactor: 1,
|
|
53
|
-
queueSlotCount: 60,
|
|
54
|
-
isAllowedForUrlTransform: false,
|
|
55
|
-
trackOutputFileSize: true,
|
|
56
|
-
applyCommunityPlanMediaTrim: true,
|
|
57
|
-
isInternal: false,
|
|
58
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
59
|
-
stage: 'ga',
|
|
60
48
|
}
|
|
61
49
|
|
|
62
50
|
export const robotVideoMergeInstructionsSchema = robotBase
|
|
@@ -67,11 +55,9 @@ export const robotVideoMergeInstructionsSchema = robotBase
|
|
|
67
55
|
resize_strategy: resize_strategy.describe(`
|
|
68
56
|
If the given width/height parameters are bigger than the input image's dimensions, then the \`resize_strategy\` determines how the image will be resized to match the provided width/height. See the [available resize strategies](/docs/topics/resize-strategies/).
|
|
69
57
|
`),
|
|
70
|
-
background:
|
|
71
|
-
The background color of the resulting video the \`"rrggbbaa"\` format (red, green, blue, alpha) when used with the \`"pad"\` resize strategy. The default color is black.
|
|
72
|
-
`),
|
|
58
|
+
background: videoBackgroundSchema,
|
|
73
59
|
framerate: z
|
|
74
|
-
.union([z.number().int().min(1), z.string().regex(
|
|
60
|
+
.union([z.number().int().min(1), z.string().regex(/^[0-9]+(?:\/[0-9]+)?$/u)])
|
|
75
61
|
.default('1/5')
|
|
76
62
|
.describe(`
|
|
77
63
|
When merging images to generate a video this is the input framerate. A value of "1/5" means each image is given 5 seconds before the next frame appears (the inverse of a framerate of "5"). Likewise for "1/10", "1/20", etc. A value of "5" means there are 5 frames per second.
|
|
@@ -84,7 +70,8 @@ When merging images to generate a video this allows you to define how long (in s
|
|
|
84
70
|
`),
|
|
85
71
|
duration: z
|
|
86
72
|
.number()
|
|
87
|
-
.
|
|
73
|
+
.nullable()
|
|
74
|
+
.default(null)
|
|
88
75
|
.describe(`
|
|
89
76
|
When merging images to generate a video or when merging audio and video this is the desired target duration in seconds. The float value can take one decimal digit. If you want all images to be displayed exactly once, then you can set the duration according to this formula: \`duration = numberOfImages / framerate\`. This also works for the inverse framerate values like \`1/5\`.
|
|
90
77
|
|
|
@@ -102,7 +89,8 @@ When merging a video and an audio file, and when merging images and an audio fil
|
|
|
102
89
|
.boolean()
|
|
103
90
|
.default(false)
|
|
104
91
|
.describe(`
|
|
105
|
-
|
|
92
|
+
Determines whether the shorter media file should be looped to match the duration of the longer one. For example, if you merge a 1-minute video with a 3-minute audio file and enable this option, the video will play three times in a row to match the audio length.
|
|
93
|
+
`),
|
|
106
94
|
replace_audio: z
|
|
107
95
|
.boolean()
|
|
108
96
|
.default(false)
|
|
@@ -138,35 +126,28 @@ The duration of the transition effect in seconds. Only applies when \`transition
|
|
|
138
126
|
})
|
|
139
127
|
.strict()
|
|
140
128
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
.union([z.literal('debug'), robotVideoMergeInstructionsSchema.shape.result])
|
|
145
|
-
.optional(),
|
|
146
|
-
turbo: z.boolean().optional(),
|
|
147
|
-
})
|
|
129
|
+
const hiddenFields = {
|
|
130
|
+
turbo: z.boolean().optional(),
|
|
131
|
+
}
|
|
148
132
|
|
|
149
|
-
export
|
|
150
|
-
|
|
151
|
-
typeof
|
|
152
|
-
>
|
|
133
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
134
|
+
typeof robotVideoMergeInstructionsSchema.shape,
|
|
135
|
+
typeof hiddenFields
|
|
136
|
+
> = defineRobotWithHiddenFields(meta, robotVideoMergeInstructionsSchema, hiddenFields)
|
|
153
137
|
|
|
154
|
-
export const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
138
|
+
export const {
|
|
139
|
+
withHiddenFields: robotVideoMergeInstructionsWithHiddenFieldsSchema,
|
|
140
|
+
interpolatable: interpolatableRobotVideoMergeInstructionsSchema,
|
|
141
|
+
interpolatableWithHiddenFields: interpolatableRobotVideoMergeInstructionsWithHiddenFieldsSchema,
|
|
142
|
+
} = robotDefinition
|
|
159
143
|
|
|
160
|
-
|
|
161
|
-
typeof interpolatableRobotVideoMergeInstructionsSchema
|
|
162
|
-
>
|
|
144
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
163
145
|
|
|
164
|
-
export
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
export type
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
export type InterpolatableRobotVideoMergeInstructionsWithHiddenFieldsInput =
|
|
171
|
-
|
|
172
|
-
>
|
|
146
|
+
export type RobotVideoMergeInstructions = Instructions['output']
|
|
147
|
+
export type RobotVideoMergeInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
148
|
+
export type InterpolatableRobotVideoMergeInstructions = Instructions['interpolatableInput']
|
|
149
|
+
export type InterpolatableRobotVideoMergeInstructionsInput = Instructions['interpolatableInput']
|
|
150
|
+
export type InterpolatableRobotVideoMergeInstructionsWithHiddenFields =
|
|
151
|
+
Instructions['interpolatableHiddenOutput']
|
|
152
|
+
export type InterpolatableRobotVideoMergeInstructionsWithHiddenFieldsInput =
|
|
153
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,18 +1,22 @@
|
|
|
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
|
|
|
9
|
+
import { stackVersions } from '../stackVersions.ts'
|
|
5
10
|
import {
|
|
6
|
-
|
|
11
|
+
defineRobotWithHiddenFields,
|
|
7
12
|
robotBase,
|
|
8
13
|
robotUse,
|
|
14
|
+
robotVideoEncodingMeta,
|
|
9
15
|
videoEncodeSpecificInstructionsSchema,
|
|
10
16
|
} from './_instructions-primitives.ts'
|
|
11
17
|
|
|
12
18
|
export const meta: RobotMetaInput = {
|
|
13
|
-
|
|
14
|
-
discount_pct: 0,
|
|
15
|
-
bytescount: 1,
|
|
19
|
+
...robotVideoEncodingMeta,
|
|
16
20
|
example_code: {
|
|
17
21
|
steps: {
|
|
18
22
|
import: {
|
|
@@ -27,15 +31,15 @@ export const meta: RobotMetaInput = {
|
|
|
27
31
|
variants: {
|
|
28
32
|
'480p': {
|
|
29
33
|
preset: 'hls/480p',
|
|
30
|
-
ffmpeg_stack:
|
|
34
|
+
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
31
35
|
},
|
|
32
36
|
'720p': {
|
|
33
37
|
preset: 'hls/720p',
|
|
34
|
-
ffmpeg_stack:
|
|
38
|
+
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
35
39
|
},
|
|
36
40
|
'1080p': {
|
|
37
41
|
preset: 'hls/1080p',
|
|
38
|
-
ffmpeg_stack:
|
|
42
|
+
ffmpeg_stack: stackVersions.ffmpeg.recommendedVersion,
|
|
39
43
|
},
|
|
40
44
|
},
|
|
41
45
|
},
|
|
@@ -47,29 +51,17 @@ export const meta: RobotMetaInput = {
|
|
|
47
51
|
},
|
|
48
52
|
example_code_description:
|
|
49
53
|
'Enable streaming of a video stored on S3 in three variants (480p, 720p, 1080p) with on-demand encoding:',
|
|
50
|
-
minimum_charge: 0,
|
|
51
|
-
output_factor: 0.6,
|
|
52
|
-
override_lvl1: 'Video Encoding',
|
|
53
54
|
purpose_sentence:
|
|
54
55
|
'generates HTTP Live Streaming (HLS) playlists and segments on-demand for adaptive and cost-efficient playback',
|
|
55
56
|
purpose_verb: 'stream',
|
|
56
57
|
purpose_word: 'stream',
|
|
57
58
|
purpose_words: 'Stream videos with on-demand encoding',
|
|
58
|
-
service_slug: 'video-encoding',
|
|
59
|
-
slot_count: 60,
|
|
60
59
|
title: 'Stream videos with on-demand encoding',
|
|
61
60
|
typical_file_size_mb: 300,
|
|
62
|
-
typical_file_type: 'video',
|
|
63
61
|
name: 'VideoOndemandRobot',
|
|
64
|
-
priceFactor: 1,
|
|
65
|
-
queueSlotCount: 60,
|
|
66
62
|
downloadInputFiles: false,
|
|
67
63
|
isAllowedForUrlTransform: true,
|
|
68
|
-
|
|
69
|
-
applyCommunityPlanMediaTrim: true,
|
|
70
|
-
isInternal: false,
|
|
71
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
72
|
-
stage: 'beta',
|
|
64
|
+
stage: 'ga',
|
|
73
65
|
}
|
|
74
66
|
|
|
75
67
|
export const robotVideoOndemandInstructionsSchema = robotBase
|
|
@@ -115,48 +107,42 @@ export const robotVideoOndemandInstructionsSchema = robotBase
|
|
|
115
107
|
})
|
|
116
108
|
.strict()
|
|
117
109
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
.describe(
|
|
135
|
-
'Internal parameter that indicates whether the URLs in playlists should use the Smart CDN or the URL Transform format.',
|
|
136
|
-
),
|
|
137
|
-
})
|
|
110
|
+
const hiddenFields = {
|
|
111
|
+
cdn_required_bypass: z
|
|
112
|
+
.boolean()
|
|
113
|
+
.optional()
|
|
114
|
+
.default(false)
|
|
115
|
+
.describe(
|
|
116
|
+
'Internal parameter that indicates whether `cdn=required` should be added to the URLs in playlists. Useful for testing with URL Transform directly and not through Smart CDN.',
|
|
117
|
+
),
|
|
118
|
+
url_transform_format: z
|
|
119
|
+
.boolean()
|
|
120
|
+
.optional()
|
|
121
|
+
.default(false)
|
|
122
|
+
.describe(
|
|
123
|
+
'Internal parameter that indicates whether the URLs in playlists should use the Smart CDN or the URL Transform format.',
|
|
124
|
+
),
|
|
125
|
+
}
|
|
138
126
|
|
|
139
|
-
export
|
|
140
|
-
|
|
141
|
-
typeof
|
|
142
|
-
>
|
|
127
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
128
|
+
typeof robotVideoOndemandInstructionsSchema.shape,
|
|
129
|
+
typeof hiddenFields
|
|
130
|
+
> = defineRobotWithHiddenFields(meta, robotVideoOndemandInstructionsSchema, hiddenFields)
|
|
143
131
|
|
|
144
|
-
export const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
132
|
+
export const {
|
|
133
|
+
withHiddenFields: robotVideoOndemandInstructionsWithHiddenFieldsSchema,
|
|
134
|
+
interpolatable: interpolatableRobotVideoOndemandInstructionsSchema,
|
|
135
|
+
interpolatableWithHiddenFields:
|
|
136
|
+
interpolatableRobotVideoOndemandInstructionsWithHiddenFieldsSchema,
|
|
137
|
+
} = robotDefinition
|
|
149
138
|
|
|
150
|
-
|
|
151
|
-
typeof interpolatableRobotVideoOndemandInstructionsSchema
|
|
152
|
-
>
|
|
139
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
153
140
|
|
|
154
|
-
export
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
export type
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export type InterpolatableRobotVideoOndemandInstructionsWithHiddenFieldsInput =
|
|
161
|
-
|
|
162
|
-
>
|
|
141
|
+
export type RobotVideoOndemandInstructions = Instructions['output']
|
|
142
|
+
export type RobotVideoOndemandInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
143
|
+
export type InterpolatableRobotVideoOndemandInstructions = Instructions['interpolatableInput']
|
|
144
|
+
export type InterpolatableRobotVideoOndemandInstructionsInput = Instructions['interpolatableInput']
|
|
145
|
+
export type InterpolatableRobotVideoOndemandInstructionsWithHiddenFields =
|
|
146
|
+
Instructions['interpolatableHiddenOutput']
|
|
147
|
+
export type InterpolatableRobotVideoOndemandInstructionsWithHiddenFieldsInput =
|
|
148
|
+
Instructions['interpolatableHiddenInput']
|