transloadit 4.14.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -4
- package/dist/ApiError.d.ts +6 -2
- package/dist/ApiError.d.ts.map +1 -1
- package/dist/ApiError.js +6 -2
- package/dist/ApiError.js.map +1 -1
- package/dist/Transloadit.d.ts.map +1 -1
- package/dist/Transloadit.js +3 -2
- package/dist/Transloadit.js.map +1 -1
- package/dist/alphalib/aiMessages.d.ts +33254 -0
- package/dist/alphalib/aiMessages.d.ts.map +1 -0
- package/dist/alphalib/aiMessages.js +479 -0
- package/dist/alphalib/aiMessages.js.map +1 -0
- package/dist/alphalib/assembly-linter.d.ts.map +1 -1
- package/dist/alphalib/assembly-linter.js +20 -15
- package/dist/alphalib/assembly-linter.js.map +1 -1
- package/dist/alphalib/englishList.d.ts +3 -0
- package/dist/alphalib/englishList.d.ts.map +1 -0
- package/dist/alphalib/englishList.js +12 -0
- package/dist/alphalib/englishList.js.map +1 -0
- package/dist/alphalib/errors.d.ts +16 -0
- package/dist/alphalib/errors.d.ts.map +1 -1
- package/dist/alphalib/errors.js +124 -13
- package/dist/alphalib/errors.js.map +1 -1
- package/dist/alphalib/imagemagickDensity.d.ts.map +1 -1
- package/dist/alphalib/imagemagickDensity.js +2 -2
- package/dist/alphalib/imagemagickDensity.js.map +1 -1
- package/dist/alphalib/lib/zodInputSemantics.d.ts +18 -0
- package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -0
- package/dist/alphalib/lib/zodInputSemantics.js +86 -0
- package/dist/alphalib/lib/zodInputSemantics.js.map +1 -0
- package/dist/alphalib/object.d.ts +42 -2
- package/dist/alphalib/object.d.ts.map +1 -1
- package/dist/alphalib/object.js +133 -0
- package/dist/alphalib/object.js.map +1 -1
- package/dist/alphalib/stepParsing.d.ts +1 -0
- package/dist/alphalib/stepParsing.d.ts.map +1 -1
- package/dist/alphalib/stepParsing.js +9 -1
- package/dist/alphalib/stepParsing.js.map +1 -1
- package/dist/alphalib/types/apiParameterDescription.d.ts +14 -0
- package/dist/alphalib/types/apiParameterDescription.d.ts.map +1 -0
- package/dist/alphalib/types/apiParameterDescription.js +20 -0
- package/dist/alphalib/types/apiParameterDescription.js.map +1 -0
- package/dist/alphalib/types/assembliesGet.d.ts +1 -1
- package/dist/alphalib/types/assemblyReplay.d.ts +4 -4
- package/dist/alphalib/types/assemblyStatus.d.ts +6718 -64966
- package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
- package/dist/alphalib/types/assemblyStatus.js +68 -55
- package/dist/alphalib/types/assemblyStatus.js.map +1 -1
- package/dist/alphalib/types/errorReason.d.ts +7 -0
- package/dist/alphalib/types/errorReason.d.ts.map +1 -0
- package/dist/alphalib/types/errorReason.js +14 -0
- package/dist/alphalib/types/errorReason.js.map +1 -0
- package/dist/alphalib/types/file.d.ts +7 -0
- package/dist/alphalib/types/file.d.ts.map +1 -1
- package/dist/alphalib/types/file.js +15 -0
- package/dist/alphalib/types/file.js.map +1 -1
- package/dist/alphalib/types/fileHash.d.ts +16 -0
- package/dist/alphalib/types/fileHash.d.ts.map +1 -0
- package/dist/alphalib/types/fileHash.js +10 -0
- package/dist/alphalib/types/fileHash.js.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts +28 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.js +80 -0
- package/dist/alphalib/types/robots/_ai-models.js.map +1 -0
- package/dist/alphalib/types/robots/_index.d.ts +713 -1329
- package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_index.js +4 -0
- package/dist/alphalib/types/robots/_index.js.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts +504 -129
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.js +627 -280
- package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.d.ts +952 -2189
- package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.js +235 -368
- package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.d.ts +28 -16
- package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.js +2 -11
- package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.js +9 -38
- package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.js +11 -25
- package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.js +13 -43
- package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.js +12 -40
- package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.js +11 -25
- package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
- package/dist/alphalib/types/robots/audio-split.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-split.js +15 -45
- package/dist/alphalib/types/robots/audio-split.js.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.d.ts +120 -107
- package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.js +15 -39
- package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
- package/dist/alphalib/types/robots/azure-import.d.ts +48 -35
- package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-import.js +5 -35
- package/dist/alphalib/types/robots/azure-import.js.map +1 -1
- package/dist/alphalib/types/robots/azure-store.d.ts +87 -71
- package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-store.js +11 -50
- package/dist/alphalib/types/robots/azure-store.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.d.ts +48 -35
- package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.js +6 -39
- package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.d.ts +80 -67
- package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.js +8 -44
- package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
- package/dist/alphalib/types/robots/box-import.d.ts +44 -27
- package/dist/alphalib/types/robots/box-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-import.js +7 -33
- package/dist/alphalib/types/robots/box-import.js.map +1 -1
- package/dist/alphalib/types/robots/box-store.d.ts +85 -68
- package/dist/alphalib/types/robots/box-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-store.js +8 -40
- package/dist/alphalib/types/robots/box-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.js +8 -45
- package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.js +5 -36
- package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.js +10 -57
- package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.js +11 -54
- package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.d.ts +56 -43
- package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.js +8 -49
- package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.d.ts +88 -75
- package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.js +8 -56
- package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.d.ts +80 -67
- package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.js +5 -32
- package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
- package/dist/alphalib/types/robots/document-convert.d.ts +84 -71
- package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-convert.js +7 -33
- package/dist/alphalib/types/robots/document-convert.js.map +1 -1
- package/dist/alphalib/types/robots/document-extract.d.ts +80 -67
- package/dist/alphalib/types/robots/document-extract.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-extract.js +10 -36
- package/dist/alphalib/types/robots/document-extract.js.map +1 -1
- package/dist/alphalib/types/robots/document-merge.d.ts +80 -67
- package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-merge.js +4 -25
- package/dist/alphalib/types/robots/document-merge.js.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.js +10 -47
- package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.d.ts +80 -67
- package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.js +7 -31
- package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/document-split.d.ts +80 -67
- package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-split.js +7 -34
- package/dist/alphalib/types/robots/document-split.js.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.d.ts +120 -101
- package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.js +24 -31
- package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.d.ts +40 -27
- package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.js +5 -35
- package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.d.ts +84 -68
- package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.js +8 -42
- package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.js +4 -24
- package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/file-compress.d.ts +80 -67
- package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-compress.js +4 -20
- package/dist/alphalib/types/robots/file-compress.js.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.d.ts +96 -83
- package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.js +10 -41
- package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
- package/dist/alphalib/types/robots/file-filter.d.ts +99 -87
- package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-filter.js +11 -40
- package/dist/alphalib/types/robots/file-filter.js.map +1 -1
- package/dist/alphalib/types/robots/file-hash.d.ts +84 -71
- package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-hash.js +12 -43
- package/dist/alphalib/types/robots/file-hash.js.map +1 -1
- package/dist/alphalib/types/robots/file-preview.d.ts +113 -100
- package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-preview.js +14 -39
- package/dist/alphalib/types/robots/file-preview.js.map +1 -1
- package/dist/alphalib/types/robots/file-read.d.ts +80 -67
- package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-read.js +5 -26
- package/dist/alphalib/types/robots/file-read.js.map +1 -1
- package/dist/alphalib/types/robots/file-serve.d.ts +81 -68
- package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-serve.js +4 -21
- package/dist/alphalib/types/robots/file-serve.js.map +1 -1
- package/dist/alphalib/types/robots/file-verify.d.ts +88 -75
- package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-verify.js +11 -41
- package/dist/alphalib/types/robots/file-verify.js.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.d.ts +83 -67
- package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.js +16 -42
- package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.d.ts +81 -67
- package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.js +10 -29
- package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.d.ts +40 -27
- package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.js +5 -33
- package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.d.ts +85 -67
- package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.js +7 -34
- package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/google-import.d.ts +48 -35
- package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-import.js +10 -43
- package/dist/alphalib/types/robots/google-import.js.map +1 -1
- package/dist/alphalib/types/robots/google-store.d.ts +80 -67
- package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-store.js +10 -41
- package/dist/alphalib/types/robots/google-store.js.map +1 -1
- package/dist/alphalib/types/robots/html-convert.d.ts +107 -89
- package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/html-convert.js +6 -22
- package/dist/alphalib/types/robots/html-convert.js.map +1 -1
- package/dist/alphalib/types/robots/http-import.d.ts +76 -63
- package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/http-import.js +14 -19
- package/dist/alphalib/types/robots/http-import.js.map +1 -1
- package/dist/alphalib/types/robots/http-request.d.ts +538 -0
- package/dist/alphalib/types/robots/http-request.d.ts.map +1 -0
- package/dist/alphalib/types/robots/http-request.js +162 -0
- package/dist/alphalib/types/robots/http-request.js.map +1 -0
- package/dist/alphalib/types/robots/image-bgremove.d.ts +80 -67
- package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-bgremove.js +6 -33
- package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +92 -79
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.js +9 -33
- package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-describe.d.ts +80 -67
- package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-describe.js +8 -37
- package/dist/alphalib/types/robots/image-describe.js.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.d.ts +80 -67
- package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.js +7 -31
- package/dist/alphalib/types/robots/image-enhance.js.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.d.ts +88 -75
- package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.js +16 -44
- package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-generate.js +17 -22
- package/dist/alphalib/types/robots/image-generate.js.map +1 -1
- package/dist/alphalib/types/robots/image-merge.d.ts +96 -83
- package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-merge.js +9 -40
- package/dist/alphalib/types/robots/image-merge.js.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.js +11 -47
- package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.d.ts +88 -75
- package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.js +6 -32
- package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/image-resize.d.ts +217 -112
- package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-resize.js +15 -42
- package/dist/alphalib/types/robots/image-resize.js.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.d.ts +97 -81
- package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.js +23 -42
- package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
- package/dist/alphalib/types/robots/mega-import.d.ts +48 -35
- package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-import.js +12 -59
- package/dist/alphalib/types/robots/mega-import.js.map +1 -1
- package/dist/alphalib/types/robots/mega-store.d.ts +80 -67
- package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-store.js +14 -60
- package/dist/alphalib/types/robots/mega-store.js.map +1 -1
- package/dist/alphalib/types/robots/meta-read.d.ts +30 -16
- package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-read.js +4 -20
- package/dist/alphalib/types/robots/meta-read.js.map +1 -1
- package/dist/alphalib/types/robots/meta-write.d.ts +80 -67
- package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-write.js +9 -32
- package/dist/alphalib/types/robots/meta-write.js.map +1 -1
- package/dist/alphalib/types/robots/minio-import.d.ts +48 -35
- package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-import.js +9 -60
- package/dist/alphalib/types/robots/minio-import.js.map +1 -1
- package/dist/alphalib/types/robots/minio-store.d.ts +80 -67
- package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-store.js +9 -50
- package/dist/alphalib/types/robots/minio-store.js.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.d.ts +34 -28
- package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.js +8 -28
- package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
- package/dist/alphalib/types/robots/s3-import.d.ts +48 -35
- package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-import.js +7 -38
- package/dist/alphalib/types/robots/s3-import.js.map +1 -1
- package/dist/alphalib/types/robots/s3-store.d.ts +84 -68
- package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-store.js +14 -44
- package/dist/alphalib/types/robots/s3-store.js.map +1 -1
- package/dist/alphalib/types/robots/script-run.d.ts +83 -67
- package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
- package/dist/alphalib/types/robots/script-run.js +9 -27
- package/dist/alphalib/types/robots/script-run.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.d.ts +51 -35
- package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.js +7 -36
- package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.d.ts +83 -67
- package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.js +9 -41
- package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.d.ts +102 -85
- package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.js +23 -44
- package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.d.ts +48 -35
- package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.js +12 -59
- package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.d.ts +80 -79
- package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.js +12 -56
- package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
- package/dist/alphalib/types/robots/swift-import.d.ts +48 -47
- package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-import.js +14 -55
- package/dist/alphalib/types/robots/swift-import.js.map +1 -1
- package/dist/alphalib/types/robots/swift-store.d.ts +80 -79
- package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-store.js +14 -62
- package/dist/alphalib/types/robots/swift-store.js.map +1 -1
- package/dist/alphalib/types/robots/text-speak.d.ts +80 -67
- package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-speak.js +11 -37
- package/dist/alphalib/types/robots/text-speak.js.map +1 -1
- package/dist/alphalib/types/robots/text-translate.d.ts +92 -79
- package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-translate.js +9 -36
- package/dist/alphalib/types/robots/text-translate.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.d.ts +48 -35
- package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.js +9 -60
- package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.d.ts +80 -67
- package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.js +7 -48
- package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.js +4 -25
- package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.d.ts +58 -45
- package/dist/alphalib/types/robots/transloadit-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.js +17 -21
- package/dist/alphalib/types/robots/transloadit-import.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.d.ts +70 -57
- package/dist/alphalib/types/robots/transloadit-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.js +14 -6
- package/dist/alphalib/types/robots/transloadit-store.js.map +1 -1
- package/dist/alphalib/types/robots/tus-store.d.ts +84 -71
- package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tus-store.js +8 -37
- package/dist/alphalib/types/robots/tus-store.js.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.d.ts +32 -19
- package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.js +4 -19
- package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.d.ts +112 -99
- package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.js +4 -26
- package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.js +7 -32
- package/dist/alphalib/types/robots/video-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/video-concat.d.ts +104 -91
- package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-concat.js +6 -27
- package/dist/alphalib/types/robots/video-concat.js.map +1 -1
- package/dist/alphalib/types/robots/video-encode.d.ts +121 -103
- package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-encode.js +13 -38
- package/dist/alphalib/types/robots/video-encode.js.map +1 -1
- package/dist/alphalib/types/robots/video-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-generate.js +11 -18
- package/dist/alphalib/types/robots/video-generate.js.map +1 -1
- package/dist/alphalib/types/robots/video-merge.d.ts +135 -119
- package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-merge.js +12 -32
- package/dist/alphalib/types/robots/video-merge.js.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.d.ts +156 -139
- package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.js +11 -27
- package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
- package/dist/alphalib/types/robots/video-split.d.ts +104 -91
- package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-split.js +11 -39
- package/dist/alphalib/types/robots/video-split.js.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.d.ts +104 -91
- package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.js +7 -30
- package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.d.ts +112 -95
- package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.js +46 -53
- package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.d.ts +30 -17
- package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.js +7 -17
- package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.d.ts +83 -67
- package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.js +11 -37
- package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.d.ts +48 -35
- package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.js +9 -56
- package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.d.ts +80 -67
- package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.js +10 -52
- package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.d.ts +98 -85
- package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.js +42 -63
- package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
- package/dist/alphalib/types/stackVersions.d.ts +40 -1
- package/dist/alphalib/types/stackVersions.d.ts.map +1 -1
- package/dist/alphalib/types/stackVersions.js +25 -3
- package/dist/alphalib/types/stackVersions.js.map +1 -1
- package/dist/alphalib/types/storageAsset.d.ts +28 -22
- package/dist/alphalib/types/storageAsset.d.ts.map +1 -1
- package/dist/alphalib/types/storageAsset.js +30 -12
- package/dist/alphalib/types/storageAsset.js.map +1 -1
- package/dist/alphalib/types/storageResults.d.ts +29 -0
- package/dist/alphalib/types/storageResults.d.ts.map +1 -0
- package/dist/alphalib/types/storageResults.js +53 -0
- package/dist/alphalib/types/storageResults.js.map +1 -0
- package/dist/alphalib/types/template.d.ts +16 -16
- package/dist/alphalib/types/templateCredential.d.ts +2 -2
- package/dist/alphalib/types/utility.d.ts +22 -0
- package/dist/alphalib/types/utility.d.ts.map +1 -0
- package/dist/alphalib/types/utility.js +2 -0
- package/dist/alphalib/types/utility.js.map +1 -0
- package/dist/storageResults.d.ts +2 -13
- package/dist/storageResults.d.ts.map +1 -1
- package/dist/storageResults.js +9 -34
- package/dist/storageResults.js.map +1 -1
- package/package.json +1 -2
- package/src/ApiError.ts +11 -4
- package/src/Transloadit.ts +6 -3
- package/src/alphalib/aiMessages.ts +554 -0
- package/src/alphalib/assembly-linter.ts +9 -2
- package/src/alphalib/englishList.ts +11 -0
- package/src/alphalib/errors.ts +159 -13
- package/src/alphalib/imagemagickDensity.ts +2 -1
- package/src/alphalib/lib/zodInputSemantics.ts +114 -0
- package/src/alphalib/object.ts +178 -3
- package/src/alphalib/stepParsing.ts +10 -2
- package/src/alphalib/types/apiParameterDescription.ts +41 -0
- package/src/alphalib/types/assemblyStatus.ts +115 -83
- package/src/alphalib/types/errorReason.ts +14 -0
- package/src/alphalib/types/file.ts +18 -0
- package/src/alphalib/types/fileHash.ts +10 -0
- package/src/alphalib/types/responseErrors/HttpImportRobot.ts +22 -0
- package/src/alphalib/types/robots/_ai-models.ts +91 -0
- package/src/alphalib/types/robots/_index.ts +14 -0
- package/src/alphalib/types/robots/_instructions-primitives.ts +839 -308
- package/src/alphalib/types/robots/ai-chat.ts +358 -460
- package/src/alphalib/types/robots/assembly-savejson.ts +2 -11
- package/src/alphalib/types/robots/audio-artwork.ts +35 -61
- package/src/alphalib/types/robots/audio-concat.ts +17 -25
- package/src/alphalib/types/robots/audio-encode.ts +35 -65
- package/src/alphalib/types/robots/audio-loop.ts +34 -61
- package/src/alphalib/types/robots/audio-merge.ts +17 -25
- package/src/alphalib/types/robots/audio-split.ts +37 -67
- package/src/alphalib/types/robots/audio-waveform.ts +42 -65
- package/src/alphalib/types/robots/azure-import.ts +26 -57
- package/src/alphalib/types/robots/azure-store.ts +48 -72
- package/src/alphalib/types/robots/backblaze-import.ts +30 -63
- package/src/alphalib/types/robots/backblaze-store.ts +37 -66
- package/src/alphalib/types/robots/box-import.ts +32 -55
- package/src/alphalib/types/robots/box-store.ts +40 -63
- package/src/alphalib/types/robots/cloudfiles-import.ts +34 -70
- package/src/alphalib/types/robots/cloudfiles-store.ts +28 -59
- package/src/alphalib/types/robots/cloudflare-import.ts +37 -83
- package/src/alphalib/types/robots/cloudflare-store.ts +37 -77
- package/src/alphalib/types/robots/digitalocean-import.ts +35 -75
- package/src/alphalib/types/robots/digitalocean-store.ts +35 -79
- package/src/alphalib/types/robots/document-autorotate.ts +36 -58
- package/src/alphalib/types/robots/document-convert.ts +37 -59
- package/src/alphalib/types/robots/document-extract.ts +45 -62
- package/src/alphalib/types/robots/document-merge.ts +25 -47
- package/src/alphalib/types/robots/document-ocr.ts +32 -70
- package/src/alphalib/types/robots/document-optimize.ts +38 -57
- package/src/alphalib/types/robots/document-split.ts +33 -56
- package/src/alphalib/types/robots/document-thumbs.ts +66 -67
- package/src/alphalib/types/robots/dropbox-import.ts +27 -57
- package/src/alphalib/types/robots/dropbox-store.ts +39 -65
- package/src/alphalib/types/robots/edgly-deliver.ts +26 -49
- package/src/alphalib/types/robots/file-compress.ts +31 -45
- package/src/alphalib/types/robots/file-decompress.ts +41 -68
- package/src/alphalib/types/robots/file-filter.ts +36 -65
- package/src/alphalib/types/robots/file-hash.ts +37 -64
- package/src/alphalib/types/robots/file-preview.ts +39 -65
- package/src/alphalib/types/robots/file-read.ts +33 -50
- package/src/alphalib/types/robots/file-serve.ts +32 -46
- package/src/alphalib/types/robots/file-verify.ts +37 -63
- package/src/alphalib/types/robots/file-virusscan.ts +49 -67
- package/src/alphalib/types/robots/file-watermark.ts +35 -54
- package/src/alphalib/types/robots/ftp-import.ts +26 -54
- package/src/alphalib/types/robots/ftp-store.ts +44 -63
- package/src/alphalib/types/robots/google-import.ts +32 -66
- package/src/alphalib/types/robots/google-store.ts +37 -63
- package/src/alphalib/types/robots/html-convert.ts +38 -49
- package/src/alphalib/types/robots/http-import.ts +21 -19
- package/src/alphalib/types/robots/http-request.ts +196 -0
- package/src/alphalib/types/robots/image-bgremove.ts +28 -55
- package/src/alphalib/types/robots/image-copyrightdetect.ts +38 -56
- package/src/alphalib/types/robots/image-describe.ts +31 -60
- package/src/alphalib/types/robots/image-enhance.ts +30 -56
- package/src/alphalib/types/robots/image-facedetect.ts +43 -71
- package/src/alphalib/types/robots/image-generate.ts +29 -22
- package/src/alphalib/types/robots/image-merge.ts +34 -65
- package/src/alphalib/types/robots/image-ocr.ts +33 -69
- package/src/alphalib/types/robots/image-optimize.ts +28 -54
- package/src/alphalib/types/robots/image-resize.ts +72 -96
- package/src/alphalib/types/robots/image-upscale.ts +52 -64
- package/src/alphalib/types/robots/mega-import.ts +36 -84
- package/src/alphalib/types/robots/mega-store.ts +44 -81
- package/src/alphalib/types/robots/meta-read.ts +21 -36
- package/src/alphalib/types/robots/meta-write.ts +35 -53
- package/src/alphalib/types/robots/minio-import.ts +34 -86
- package/src/alphalib/types/robots/minio-store.ts +37 -72
- package/src/alphalib/types/robots/progress-simulate.ts +14 -28
- package/src/alphalib/types/robots/s3-import.ts +32 -63
- package/src/alphalib/types/robots/s3-store.ts +53 -74
- package/src/alphalib/types/robots/script-run.ts +44 -55
- package/src/alphalib/types/robots/sftp-import.ts +34 -61
- package/src/alphalib/types/robots/sftp-store.ts +42 -65
- package/src/alphalib/types/robots/speech-transcribe.ts +53 -71
- package/src/alphalib/types/robots/supabase-import.ts +37 -84
- package/src/alphalib/types/robots/supabase-store.ts +41 -78
- package/src/alphalib/types/robots/swift-import.ts +38 -80
- package/src/alphalib/types/robots/swift-store.ts +44 -84
- package/src/alphalib/types/robots/text-speak.ts +36 -62
- package/src/alphalib/types/robots/text-translate.ts +35 -62
- package/src/alphalib/types/robots/tigris-import.ts +34 -86
- package/src/alphalib/types/robots/tigris-store.ts +35 -70
- package/src/alphalib/types/robots/tlcdn-deliver.ts +23 -47
- package/src/alphalib/types/robots/transloadit-import.ts +24 -29
- package/src/alphalib/types/robots/transloadit-store.ts +20 -7
- package/src/alphalib/types/robots/tus-store.ts +34 -58
- package/src/alphalib/types/robots/upload-handle.ts +23 -41
- package/src/alphalib/types/robots/video-adaptive.ts +28 -51
- package/src/alphalib/types/robots/video-artwork.ts +28 -54
- package/src/alphalib/types/robots/video-concat.ts +29 -52
- package/src/alphalib/types/robots/video-encode.ts +39 -62
- package/src/alphalib/types/robots/video-generate.ts +20 -18
- package/src/alphalib/types/robots/video-merge.ts +36 -55
- package/src/alphalib/types/robots/video-ondemand.ts +48 -62
- package/src/alphalib/types/robots/video-split.ts +32 -61
- package/src/alphalib/types/robots/video-subtitle.ts +30 -52
- package/src/alphalib/types/robots/video-thumbs.ts +74 -78
- package/src/alphalib/types/robots/vimeo-import.ts +12 -17
- package/src/alphalib/types/robots/vimeo-store.ts +46 -65
- package/src/alphalib/types/robots/wasabi-import.ts +33 -81
- package/src/alphalib/types/robots/wasabi-store.ts +38 -74
- package/src/alphalib/types/robots/youtube-store.ts +81 -91
- package/src/alphalib/types/stackVersions.ts +26 -3
- package/src/alphalib/types/storageAsset.ts +84 -36
- package/src/alphalib/types/storageResults.ts +75 -0
- package/src/alphalib/types/utility.ts +52 -0
- package/src/storageResults.ts +19 -56
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
9
|
import {
|
|
10
|
+
createProcessingExample,
|
|
11
|
+
defineRobot,
|
|
6
12
|
filterCondition,
|
|
7
|
-
interpolateRobot,
|
|
8
13
|
robotBase,
|
|
14
|
+
robotFileFilteringMeta,
|
|
15
|
+
robotParameterDocs,
|
|
9
16
|
robotUse,
|
|
10
17
|
} from './_instructions-primitives.ts'
|
|
11
18
|
|
|
@@ -21,43 +28,23 @@ export {
|
|
|
21
28
|
} from './_instructions-primitives.ts'
|
|
22
29
|
|
|
23
30
|
export const meta: RobotMetaInput = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
robot: '/file/filter',
|
|
31
|
-
use: ':original',
|
|
32
|
-
declines: [['${file.size}', '>', '20mb']],
|
|
33
|
-
error_on_decline: true,
|
|
34
|
-
error_msg: 'File size must not exceed 20 MB',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
31
|
+
...robotFileFilteringMeta,
|
|
32
|
+
example_code: createProcessingExample('filtered', '/file/filter', {
|
|
33
|
+
declines: [['${file.size}', '>', '20mb']],
|
|
34
|
+
error_on_decline: true,
|
|
35
|
+
error_msg: 'File size must not exceed 20 MB',
|
|
36
|
+
}),
|
|
38
37
|
example_code_description: 'Reject files that are larger than 20 MB:',
|
|
39
|
-
minimum_charge: 0,
|
|
40
|
-
output_factor: 1,
|
|
41
|
-
override_lvl1: 'File Filtering',
|
|
42
38
|
purpose_sentence: 'directs files to different encoding Steps based on your conditions',
|
|
43
39
|
purpose_verb: 'filter',
|
|
44
40
|
purpose_word: 'filter',
|
|
45
41
|
purpose_words: 'Filter files',
|
|
46
|
-
service_slug: 'file-filtering',
|
|
47
|
-
slot_count: 0,
|
|
48
42
|
title: 'Filter files',
|
|
49
|
-
typical_file_size_mb: 1.2,
|
|
50
|
-
typical_file_type: 'file',
|
|
51
43
|
name: 'FileFilterRobot',
|
|
52
44
|
priceFactor: 100,
|
|
53
45
|
queueSlotCount: 0,
|
|
54
46
|
downloadInputFiles: false,
|
|
55
47
|
preserveInputFileUrls: true,
|
|
56
|
-
isAllowedForUrlTransform: true,
|
|
57
|
-
trackOutputFileSize: true,
|
|
58
|
-
isInternal: false,
|
|
59
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
60
|
-
stage: 'ga',
|
|
61
48
|
}
|
|
62
49
|
|
|
63
50
|
export const robotFileFilterInstructionsSchema = robotBase
|
|
@@ -163,46 +150,30 @@ Specifies the condition type according to which the members of the \`accepts\` o
|
|
|
163
150
|
error_on_decline: z
|
|
164
151
|
.boolean()
|
|
165
152
|
.default(false)
|
|
166
|
-
.describe(
|
|
167
|
-
If this is set to \`true\` and one or more files are declined, the Assembly will be stopped and marked with an error.
|
|
168
|
-
`),
|
|
153
|
+
.describe(robotParameterDocs.error_on_decline.description),
|
|
169
154
|
error_msg: z
|
|
170
155
|
.string()
|
|
171
156
|
.default('One of your files was declined')
|
|
172
|
-
.describe(
|
|
173
|
-
The error message shown to your users (such as by Uppy) when a file is declined and \`error_on_decline\` is set to \`true\`.
|
|
174
|
-
`),
|
|
157
|
+
.describe(robotParameterDocs.error_msg.description),
|
|
175
158
|
})
|
|
176
159
|
.strict()
|
|
177
160
|
|
|
178
|
-
export const
|
|
179
|
-
robotFileFilterInstructionsSchema
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
export type
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
typeof interpolatableRobotFileFilterInstructionsSchema
|
|
198
|
-
>
|
|
199
|
-
|
|
200
|
-
export const interpolatableRobotFileFilterInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
201
|
-
robotFileFilterInstructionsWithHiddenFieldsSchema,
|
|
202
|
-
)
|
|
203
|
-
export type InterpolatableRobotFileFilterInstructionsWithHiddenFields = z.infer<
|
|
204
|
-
typeof interpolatableRobotFileFilterInstructionsWithHiddenFieldsSchema
|
|
205
|
-
>
|
|
206
|
-
export type InterpolatableRobotFileFilterInstructionsWithHiddenFieldsInput = z.input<
|
|
207
|
-
typeof interpolatableRobotFileFilterInstructionsWithHiddenFieldsSchema
|
|
208
|
-
>
|
|
161
|
+
export const robotDefinition: RobotDefinition<typeof robotFileFilterInstructionsSchema.shape> =
|
|
162
|
+
defineRobot(meta, robotFileFilterInstructionsSchema)
|
|
163
|
+
|
|
164
|
+
export const {
|
|
165
|
+
withHiddenFields: robotFileFilterInstructionsWithHiddenFieldsSchema,
|
|
166
|
+
interpolatable: interpolatableRobotFileFilterInstructionsSchema,
|
|
167
|
+
interpolatableWithHiddenFields: interpolatableRobotFileFilterInstructionsWithHiddenFieldsSchema,
|
|
168
|
+
} = robotDefinition
|
|
169
|
+
|
|
170
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
171
|
+
|
|
172
|
+
export type RobotFileFilterInstructions = Instructions['output']
|
|
173
|
+
export type RobotFileFilterInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
174
|
+
export type InterpolatableRobotFileFilterInstructions = Instructions['interpolatableInput']
|
|
175
|
+
export type InterpolatableRobotFileFilterInstructionsInput = Instructions['interpolatableInput']
|
|
176
|
+
export type InterpolatableRobotFileFilterInstructionsWithHiddenFields =
|
|
177
|
+
Instructions['interpolatableHiddenOutput']
|
|
178
|
+
export type InterpolatableRobotFileFilterInstructionsWithHiddenFieldsInput =
|
|
179
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,42 +1,35 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import { fileHashOptionsSchema } from '../fileHash.ts'
|
|
10
|
+
import {
|
|
11
|
+
createProcessingExample,
|
|
12
|
+
defineRobot,
|
|
13
|
+
robotBase,
|
|
14
|
+
robotMediaCatalogingMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
} from './_instructions-primitives.ts'
|
|
6
17
|
|
|
7
18
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
steps: {
|
|
13
|
-
hashed: {
|
|
14
|
-
robot: '/file/hash',
|
|
15
|
-
use: ':original',
|
|
16
|
-
algorithm: 'sha1',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
19
|
+
...robotMediaCatalogingMeta,
|
|
20
|
+
example_code: createProcessingExample('hashed', '/file/hash', {
|
|
21
|
+
algorithm: 'sha1',
|
|
22
|
+
}),
|
|
20
23
|
example_code_description: 'Hash each uploaded file using the SHA-1 algorithm:',
|
|
21
|
-
minimum_charge: 0,
|
|
22
|
-
output_factor: 1,
|
|
23
|
-
override_lvl1: 'Media Cataloging',
|
|
24
24
|
purpose_sentence: 'hashes files in Assemblies',
|
|
25
25
|
purpose_verb: 'hash',
|
|
26
26
|
purpose_word: 'file',
|
|
27
27
|
purpose_words: 'Hash files',
|
|
28
|
-
service_slug: 'media-cataloging',
|
|
29
|
-
slot_count: 60,
|
|
30
28
|
title: 'Hash Files',
|
|
31
|
-
typical_file_size_mb: 1.2,
|
|
32
|
-
typical_file_type: 'file',
|
|
33
29
|
name: 'FileHashRobot',
|
|
34
30
|
priceFactor: 5,
|
|
35
31
|
queueSlotCount: 60,
|
|
36
32
|
isAllowedForUrlTransform: false,
|
|
37
|
-
isInternal: false,
|
|
38
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
39
|
-
stage: 'ga',
|
|
40
33
|
}
|
|
41
34
|
|
|
42
35
|
export const robotFileHashInstructionsSchema = robotBase
|
|
@@ -45,18 +38,12 @@ export const robotFileHashInstructionsSchema = robotBase
|
|
|
45
38
|
robot: z.literal('/file/hash').describe(`
|
|
46
39
|
This <dfn>Robot</dfn> allows you to hash any file as part of the <dfn>Assembly</dfn> execution process. This can be useful for verifying the integrity of a file for example.
|
|
47
40
|
`),
|
|
48
|
-
algorithm:
|
|
49
|
-
.enum(['b2', 'md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512'])
|
|
50
|
-
.default('sha256')
|
|
51
|
-
.describe(`
|
|
41
|
+
algorithm: fileHashOptionsSchema.shape.algorithm.describe(`
|
|
52
42
|
The hashing algorithm to use.
|
|
53
43
|
|
|
54
44
|
The file hash is exported as \`file.meta.hash\`.
|
|
55
45
|
`),
|
|
56
|
-
partial:
|
|
57
|
-
.enum(['full', 'first', 'last', 'both'])
|
|
58
|
-
.default('full')
|
|
59
|
-
.describe(`
|
|
46
|
+
partial: fileHashOptionsSchema.shape.partial.describe(`
|
|
60
47
|
Specifies which portion of the file to hash. This is useful for fast fingerprinting of large files.
|
|
61
48
|
|
|
62
49
|
- \`"full"\` (default): Hash the entire file.
|
|
@@ -66,44 +53,30 @@ Specifies which portion of the file to hash. This is useful for fast fingerprint
|
|
|
66
53
|
|
|
67
54
|
When using partial hashing, \`file.meta.hash_partial\` indicates the mode used, and \`file.meta.hash_partial_size\` indicates the number of bytes hashed from each portion.
|
|
68
55
|
`),
|
|
69
|
-
partial_size:
|
|
70
|
-
|
|
71
|
-
.int()
|
|
72
|
-
.positive()
|
|
73
|
-
.default(1048576)
|
|
74
|
-
.describe(`
|
|
75
|
-
The number of bytes to hash when using partial hashing. Defaults to \`1048576\` (1 MB).
|
|
56
|
+
partial_size: fileHashOptionsSchema.shape.partialSize.describe(`
|
|
57
|
+
The number of bytes to hash when using partial hashing. Defaults to \`${fileHashOptionsSchema.shape.partialSize.parse(undefined)}\` (1 MB).
|
|
76
58
|
|
|
77
59
|
This parameter is only used when \`partial\` is set to \`"first"\`, \`"last"\`, or \`"both"\`.
|
|
78
60
|
`),
|
|
79
61
|
})
|
|
80
62
|
.strict()
|
|
81
63
|
|
|
82
|
-
export const
|
|
83
|
-
robotFileHashInstructionsSchema
|
|
84
|
-
result: z.union([z.literal('debug'), robotFileHashInstructionsSchema.shape.result]).optional(),
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
export type RobotFileHashInstructions = z.infer<typeof robotFileHashInstructionsSchema>
|
|
88
|
-
export type RobotFileHashInstructionsWithHiddenFields = z.infer<
|
|
89
|
-
typeof robotFileHashInstructionsWithHiddenFieldsSchema
|
|
90
|
-
>
|
|
64
|
+
export const robotDefinition: RobotDefinition<typeof robotFileHashInstructionsSchema.shape> =
|
|
65
|
+
defineRobot(meta, robotFileHashInstructionsSchema)
|
|
91
66
|
|
|
92
|
-
export const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
67
|
+
export const {
|
|
68
|
+
withHiddenFields: robotFileHashInstructionsWithHiddenFieldsSchema,
|
|
69
|
+
interpolatable: interpolatableRobotFileHashInstructionsSchema,
|
|
70
|
+
interpolatableWithHiddenFields: interpolatableRobotFileHashInstructionsWithHiddenFieldsSchema,
|
|
71
|
+
} = robotDefinition
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
typeof interpolatableRobotFileHashInstructionsSchema
|
|
99
|
-
>
|
|
73
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
100
74
|
|
|
101
|
-
export
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
export type
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
export type InterpolatableRobotFileHashInstructionsWithHiddenFieldsInput =
|
|
108
|
-
|
|
109
|
-
>
|
|
75
|
+
export type RobotFileHashInstructions = Instructions['output']
|
|
76
|
+
export type RobotFileHashInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
77
|
+
export type InterpolatableRobotFileHashInstructions = Instructions['interpolatableInput']
|
|
78
|
+
export type InterpolatableRobotFileHashInstructionsInput = Instructions['interpolatableInput']
|
|
79
|
+
export type InterpolatableRobotFileHashInstructionsWithHiddenFields =
|
|
80
|
+
Instructions['interpolatableHiddenOutput']
|
|
81
|
+
export type InterpolatableRobotFileHashInstructionsWithHiddenFieldsInput =
|
|
82
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,4 +1,8 @@
|
|
|
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
|
|
|
@@ -6,51 +10,33 @@ import {
|
|
|
6
10
|
color_with_alpha,
|
|
7
11
|
complexHeightSchema,
|
|
8
12
|
complexWidthSchema,
|
|
9
|
-
|
|
13
|
+
createProcessingExample,
|
|
14
|
+
defineRobot,
|
|
10
15
|
optimize_priority,
|
|
11
16
|
resize_strategy,
|
|
12
17
|
robotBase,
|
|
18
|
+
robotMediaCatalogingMeta,
|
|
13
19
|
robotUse,
|
|
14
20
|
} from './_instructions-primitives.ts'
|
|
15
21
|
|
|
16
22
|
export const meta: RobotMetaInput = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
robot: '/file/preview',
|
|
24
|
-
use: ':original',
|
|
25
|
-
height: 400,
|
|
26
|
-
width: 300,
|
|
27
|
-
format: 'png',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
23
|
+
...robotMediaCatalogingMeta,
|
|
24
|
+
example_code: createProcessingExample('previewed', '/file/preview', {
|
|
25
|
+
height: 400,
|
|
26
|
+
width: 300,
|
|
27
|
+
format: 'png',
|
|
28
|
+
}),
|
|
31
29
|
example_code_description: 'Generate a preview thumbnail for any uploaded file:',
|
|
32
|
-
minimum_charge: 1048576,
|
|
33
|
-
output_factor: 1,
|
|
34
|
-
override_lvl1: 'Media Cataloging',
|
|
35
30
|
purpose_sentence:
|
|
36
31
|
'generates a thumbnail for any uploaded file to preview its content, similar to the thumbnails in desktop file managers',
|
|
37
32
|
purpose_verb: 'generate',
|
|
38
33
|
purpose_word: 'generate',
|
|
39
34
|
purpose_words: 'Generate a preview thumbnail',
|
|
40
|
-
service_slug: 'media-cataloging',
|
|
41
|
-
slot_count: 15,
|
|
42
35
|
title: 'Generate a preview thumbnail',
|
|
43
|
-
typical_file_size_mb: 1.2,
|
|
44
|
-
typical_file_type: 'file',
|
|
45
36
|
name: 'FilePreviewRobot',
|
|
46
|
-
priceFactor: 1,
|
|
47
|
-
queueSlotCount: 15,
|
|
48
37
|
minimumCharge: 1048576,
|
|
49
|
-
isAllowedForUrlTransform: true,
|
|
50
38
|
trackOutputFileSize: true,
|
|
51
39
|
importRanges: ['0-19999999', '-1000000'],
|
|
52
|
-
isInternal: false,
|
|
53
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
54
40
|
stage: 'beta',
|
|
55
41
|
}
|
|
56
42
|
|
|
@@ -158,9 +144,9 @@ Width of the waveform, in pixels. Only used if the \`waveform\` strategy for aud
|
|
|
158
144
|
.describe(`
|
|
159
145
|
The style of the icon generated if the \`icon\` strategy is applied. The default style, \`with-text\`, includes an icon showing the file type and a text box below it, whose content can be controlled by the \`icon_text_content\` parameter and defaults to the file extension (e.g. MP4, JPEG). The \`square\` style only includes a square variant of the icon showing the file type. Below are exemplary previews generated for a text file utilizing the different styles:
|
|
160
146
|
|
|
161
|
-
<br
|
|
147
|
+
<br /><br /> <strong>\`with-text\` style:</strong> <br />
|
|
162
148
|

|
|
163
|
-
<br
|
|
149
|
+
<br /><br /> <strong>\`square\` style:</strong> <br />
|
|
164
150
|

|
|
165
151
|
`),
|
|
166
152
|
icon_text_color: color_with_alpha.default('#a2a2a2').describe(`
|
|
@@ -185,14 +171,14 @@ The content of the text box in generated icons. Only used if the \`icon_style\`
|
|
|
185
171
|
.describe(`
|
|
186
172
|
Specifies whether the generated preview image should be optimized to reduce the image's file size while keeping their quaility. If enabled, the images will be optimized using [🤖/image/optimize](/docs/robots/image-optimize/).
|
|
187
173
|
`),
|
|
188
|
-
optimize_priority: optimize_priority.describe(`
|
|
189
|
-
Specifies whether conversion speed or compression ratio is prioritized when optimizing images. Only used if \`optimize\` is enabled. Please see the [🤖/image/optimize documentation](/docs/robots/image-optimize/#
|
|
174
|
+
optimize_priority: optimize_priority.default('conversion-speed').describe(`
|
|
175
|
+
Specifies whether conversion speed or compression ratio is prioritized when optimizing images. Only used if \`optimize\` is enabled. Please see the [🤖/image/optimize documentation](/docs/robots/image-optimize/#priority) for more details.
|
|
190
176
|
`),
|
|
191
177
|
optimize_progressive: z
|
|
192
178
|
.boolean()
|
|
193
179
|
.default(false)
|
|
194
180
|
.describe(`
|
|
195
|
-
Specifies whether images should be interlaced, which makes the result image load progressively in browsers. Only used if \`optimize\` is enabled. Please see the [🤖/image/optimize documentation](/docs/robots/image-optimize/#
|
|
181
|
+
Specifies whether images should be interlaced, which makes the result image load progressively in browsers. Only used if \`optimize\` is enabled. Please see the [🤖/image/optimize documentation](/docs/robots/image-optimize/#progressive) for more details.
|
|
196
182
|
`),
|
|
197
183
|
clip_format: z
|
|
198
184
|
.enum(['apng', 'avif', 'gif', 'webp'])
|
|
@@ -234,35 +220,23 @@ Specifies whether the generated animated image should loop forever (\`true\`) or
|
|
|
234
220
|
})
|
|
235
221
|
.strict()
|
|
236
222
|
|
|
237
|
-
export const
|
|
238
|
-
robotFilePreviewInstructionsSchema
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
export
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
export type
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
typeof interpolatableRobotFilePreviewInstructionsSchema
|
|
258
|
-
>
|
|
259
|
-
|
|
260
|
-
export const interpolatableRobotFilePreviewInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
261
|
-
robotFilePreviewInstructionsWithHiddenFieldsSchema,
|
|
262
|
-
)
|
|
263
|
-
export type InterpolatableRobotFilePreviewInstructionsWithHiddenFields = z.infer<
|
|
264
|
-
typeof interpolatableRobotFilePreviewInstructionsWithHiddenFieldsSchema
|
|
265
|
-
>
|
|
266
|
-
export type InterpolatableRobotFilePreviewInstructionsWithHiddenFieldsInput = z.input<
|
|
267
|
-
typeof interpolatableRobotFilePreviewInstructionsWithHiddenFieldsSchema
|
|
268
|
-
>
|
|
223
|
+
export const robotDefinition: RobotDefinition<typeof robotFilePreviewInstructionsSchema.shape> =
|
|
224
|
+
defineRobot(meta, robotFilePreviewInstructionsSchema)
|
|
225
|
+
|
|
226
|
+
export const {
|
|
227
|
+
withHiddenFields: robotFilePreviewInstructionsWithHiddenFieldsSchema,
|
|
228
|
+
interpolatable: interpolatableRobotFilePreviewInstructionsSchema,
|
|
229
|
+
interpolatableWithHiddenFields: interpolatableRobotFilePreviewInstructionsWithHiddenFieldsSchema,
|
|
230
|
+
} = robotDefinition
|
|
231
|
+
|
|
232
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
233
|
+
|
|
234
|
+
export type RobotFilePreviewInstructions = Instructions['output']
|
|
235
|
+
export type RobotFilePreviewInstructionsInput = Instructions['input']
|
|
236
|
+
export type RobotFilePreviewInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
237
|
+
export type InterpolatableRobotFilePreviewInstructions = Instructions['interpolatableInput']
|
|
238
|
+
export type InterpolatableRobotFilePreviewInstructionsInput = Instructions['interpolatableInput']
|
|
239
|
+
export type InterpolatableRobotFilePreviewInstructionsWithHiddenFields =
|
|
240
|
+
Instructions['interpolatableHiddenOutput']
|
|
241
|
+
export type InterpolatableRobotFilePreviewInstructionsWithHiddenFieldsInput =
|
|
242
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
createProcessingExample,
|
|
11
|
+
defineRobot,
|
|
12
|
+
robotBase,
|
|
13
|
+
robotDocumentProcessingMeta,
|
|
14
|
+
robotUse,
|
|
15
|
+
} from './_instructions-primitives.ts'
|
|
6
16
|
|
|
7
17
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
discount_pct: 80,
|
|
11
|
-
example_code: {
|
|
12
|
-
steps: {
|
|
13
|
-
read: {
|
|
14
|
-
robot: '/file/read',
|
|
15
|
-
use: ':original',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
18
|
+
...robotDocumentProcessingMeta,
|
|
19
|
+
example_code: createProcessingExample('read', '/file/read'),
|
|
19
20
|
example_code_description: 'Read UTF-8 text content from an uploaded file:',
|
|
20
|
-
minimum_charge: 512000,
|
|
21
|
-
output_factor: 1,
|
|
22
|
-
override_lvl1: 'Document Processing',
|
|
23
21
|
purpose_sentence: 'reads file contents from supported file-types',
|
|
24
22
|
purpose_verb: 'read',
|
|
25
23
|
purpose_word: 'read files',
|
|
26
24
|
purpose_words: 'Read file contents',
|
|
27
|
-
service_slug: 'document-processing',
|
|
28
|
-
slot_count: 5,
|
|
29
25
|
title: 'Read file contents',
|
|
30
26
|
typical_file_size_mb: 1.2,
|
|
31
27
|
typical_file_type: 'file',
|
|
@@ -33,10 +29,6 @@ export const meta: RobotMetaInput = {
|
|
|
33
29
|
priceFactor: 5,
|
|
34
30
|
queueSlotCount: 5,
|
|
35
31
|
minimumCharge: 512000,
|
|
36
|
-
isAllowedForUrlTransform: true,
|
|
37
|
-
isInternal: false,
|
|
38
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
39
|
-
stage: 'ga',
|
|
40
32
|
}
|
|
41
33
|
|
|
42
34
|
export const robotFileReadInstructionsSchema = robotBase
|
|
@@ -50,31 +42,22 @@ The <dfn>Robot</dfn> currently only accepts files under 500KB.
|
|
|
50
42
|
})
|
|
51
43
|
.strict()
|
|
52
44
|
|
|
53
|
-
export const
|
|
54
|
-
robotFileReadInstructionsSchema
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export type InterpolatableRobotFileReadInstructions =
|
|
67
|
-
|
|
68
|
-
export type
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export const interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
73
|
-
robotFileReadInstructionsWithHiddenFieldsSchema,
|
|
74
|
-
)
|
|
75
|
-
export type InterpolatableRobotFileReadInstructionsWithHiddenFields = z.infer<
|
|
76
|
-
typeof interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema
|
|
77
|
-
>
|
|
78
|
-
export type InterpolatableRobotFileReadInstructionsWithHiddenFieldsInput = z.input<
|
|
79
|
-
typeof interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema
|
|
80
|
-
>
|
|
45
|
+
export const robotDefinition: RobotDefinition<typeof robotFileReadInstructionsSchema.shape> =
|
|
46
|
+
defineRobot(meta, robotFileReadInstructionsSchema)
|
|
47
|
+
|
|
48
|
+
export const {
|
|
49
|
+
withHiddenFields: robotFileReadInstructionsWithHiddenFieldsSchema,
|
|
50
|
+
interpolatable: interpolatableRobotFileReadInstructionsSchema,
|
|
51
|
+
interpolatableWithHiddenFields: interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema,
|
|
52
|
+
} = robotDefinition
|
|
53
|
+
|
|
54
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
55
|
+
|
|
56
|
+
export type RobotFileReadInstructions = Instructions['output']
|
|
57
|
+
export type RobotFileReadInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
58
|
+
export type InterpolatableRobotFileReadInstructions = Instructions['interpolatableInput']
|
|
59
|
+
export type InterpolatableRobotFileReadInstructionsInput = Instructions['interpolatableInput']
|
|
60
|
+
export type InterpolatableRobotFileReadInstructionsWithHiddenFields =
|
|
61
|
+
Instructions['interpolatableHiddenOutput']
|
|
62
|
+
export type InterpolatableRobotFileReadInstructionsWithHiddenFieldsInput =
|
|
63
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
defineRobot,
|
|
11
|
+
robotBase,
|
|
12
|
+
robotContentDeliveryMeta,
|
|
13
|
+
robotUse,
|
|
14
|
+
} from './_instructions-primitives.ts'
|
|
6
15
|
|
|
7
16
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
discount_factor: 0.25,
|
|
10
|
-
discount_pct: 75,
|
|
17
|
+
...robotContentDeliveryMeta,
|
|
11
18
|
example_code: {
|
|
12
19
|
steps: {
|
|
13
20
|
resized: {
|
|
@@ -25,28 +32,16 @@ export const meta: RobotMetaInput = {
|
|
|
25
32
|
},
|
|
26
33
|
},
|
|
27
34
|
example_code_description: 'Serve transformed files with explicit browser and CDN cache duration:',
|
|
28
|
-
minimum_charge: 0,
|
|
29
|
-
output_factor: 1,
|
|
30
35
|
purpose_sentence: 'serves files to web browsers',
|
|
31
36
|
purpose_verb: 'serve',
|
|
32
37
|
purpose_word: 'Serve files',
|
|
33
38
|
purpose_words: 'Serve files to web browsers',
|
|
34
|
-
service_slug: 'content-delivery',
|
|
35
|
-
slot_count: 0,
|
|
36
39
|
title: 'Serve files to web browsers',
|
|
37
|
-
typical_file_size_mb: 1.2,
|
|
38
|
-
typical_file_type: 'file',
|
|
39
40
|
name: 'FileServeRobot',
|
|
40
41
|
priceFactor: 4,
|
|
41
42
|
minimumChargeUsd: 0.0000152587890625,
|
|
42
|
-
queueSlotCount: 0,
|
|
43
|
-
downloadInputFiles: false,
|
|
44
|
-
preserveInputFileUrls: true,
|
|
45
43
|
isAllowedForUrlTransform: true,
|
|
46
|
-
trackOutputFileSize: false,
|
|
47
44
|
isInternal: false,
|
|
48
|
-
stage: 'ga',
|
|
49
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
50
45
|
}
|
|
51
46
|
|
|
52
47
|
export const robotFileServeInstructionsSchema = robotBase
|
|
@@ -139,32 +134,23 @@ The \`Accept-Ranges: bytes\` header advertises that HTTP range requests are supp
|
|
|
139
134
|
})
|
|
140
135
|
.strict()
|
|
141
136
|
|
|
142
|
-
export const
|
|
143
|
-
robotFileServeInstructionsSchema
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
>
|
|
152
|
-
|
|
153
|
-
export
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
export type InterpolatableRobotFileServeInstructions =
|
|
157
|
-
|
|
158
|
-
export type
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
export const interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
163
|
-
robotFileServeInstructionsWithHiddenFieldsSchema,
|
|
164
|
-
)
|
|
165
|
-
export type InterpolatableRobotFileServeInstructionsWithHiddenFields = z.infer<
|
|
166
|
-
typeof interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema
|
|
167
|
-
>
|
|
168
|
-
export type InterpolatableRobotFileServeInstructionsWithHiddenFieldsInput = z.input<
|
|
169
|
-
typeof interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema
|
|
170
|
-
>
|
|
137
|
+
export const robotDefinition: RobotDefinition<typeof robotFileServeInstructionsSchema.shape> =
|
|
138
|
+
defineRobot(meta, robotFileServeInstructionsSchema)
|
|
139
|
+
|
|
140
|
+
export const {
|
|
141
|
+
withHiddenFields: robotFileServeInstructionsWithHiddenFieldsSchema,
|
|
142
|
+
interpolatable: interpolatableRobotFileServeInstructionsSchema,
|
|
143
|
+
interpolatableWithHiddenFields: interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema,
|
|
144
|
+
} = robotDefinition
|
|
145
|
+
|
|
146
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
147
|
+
|
|
148
|
+
export type RobotFileServeInstructions = Instructions['output']
|
|
149
|
+
export type RobotFileServeInstructionsInput = Instructions['input']
|
|
150
|
+
export type RobotFileServeInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
151
|
+
export type InterpolatableRobotFileServeInstructions = Instructions['interpolatableInput']
|
|
152
|
+
export type InterpolatableRobotFileServeInstructionsInput = Instructions['interpolatableInput']
|
|
153
|
+
export type InterpolatableRobotFileServeInstructionsWithHiddenFields =
|
|
154
|
+
Instructions['interpolatableHiddenOutput']
|
|
155
|
+
export type InterpolatableRobotFileServeInstructionsWithHiddenFieldsInput =
|
|
156
|
+
Instructions['interpolatableHiddenInput']
|