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,12 +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 {
|
|
6
|
-
autoProviderDescription,
|
|
7
10
|
awsGcpAiProviderSchema,
|
|
8
|
-
|
|
11
|
+
createProcessingExample,
|
|
12
|
+
defineRobot,
|
|
13
|
+
robotArtificialIntelligenceMeta,
|
|
9
14
|
robotBase,
|
|
15
|
+
robotParameterDocs,
|
|
10
16
|
robotUse,
|
|
11
17
|
} from './_instructions-primitives.ts'
|
|
12
18
|
|
|
@@ -34,44 +40,25 @@ export const imageFacedetectFaceCoordinatesSchema = z
|
|
|
34
40
|
export type ImageFacedetectFaceCoordinates = z.infer<typeof imageFacedetectFaceCoordinatesSchema>
|
|
35
41
|
|
|
36
42
|
export const meta: RobotMetaInput = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
robot: '/image/facedetect',
|
|
44
|
-
use: ':original',
|
|
45
|
-
crop: true,
|
|
46
|
-
faces: 'each',
|
|
47
|
-
crop_padding: '10px',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
43
|
+
...robotArtificialIntelligenceMeta,
|
|
44
|
+
example_code: createProcessingExample('faces_detected', '/image/facedetect', {
|
|
45
|
+
crop: true,
|
|
46
|
+
faces: 'each',
|
|
47
|
+
crop_padding: '10px',
|
|
48
|
+
}),
|
|
51
49
|
example_code_description:
|
|
52
50
|
'Detect all faces in uploaded images, crop them, and save as separate images:',
|
|
53
|
-
minimum_charge: 5242880,
|
|
54
|
-
output_factor: 0.2,
|
|
55
51
|
override_lvl1: 'Artificial Intelligence',
|
|
56
52
|
purpose_sentence:
|
|
57
53
|
'detects faces in images and can return either their coordinates or the faces themselves as new images',
|
|
58
54
|
purpose_verb: 'detect',
|
|
59
55
|
purpose_word: 'detect faces',
|
|
60
56
|
purpose_words: 'Detect faces in images',
|
|
61
|
-
service_slug: 'artificial-intelligence',
|
|
62
|
-
slot_count: 20,
|
|
63
57
|
title: 'Detect faces in images',
|
|
64
58
|
typical_file_size_mb: 0.8,
|
|
65
|
-
typical_file_type: 'image',
|
|
66
59
|
name: 'ImageFacedetectRobot',
|
|
67
|
-
priceFactor: 1,
|
|
68
60
|
queueSlotCount: 20,
|
|
69
61
|
minimumChargeUsd: 0.0013,
|
|
70
|
-
isAllowedForUrlTransform: true,
|
|
71
|
-
trackOutputFileSize: true,
|
|
72
|
-
isInternal: false,
|
|
73
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
74
|
-
stage: 'ga',
|
|
75
62
|
}
|
|
76
63
|
|
|
77
64
|
export const robotImageFacedetectInstructionsSchema = robotBase
|
|
@@ -92,11 +79,7 @@ This <dfn>Robot</dfn> works well together with [🤖/image/resize](/docs/robots/
|
|
|
92
79
|
|
|
93
80
|
</div>
|
|
94
81
|
`),
|
|
95
|
-
provider: awsGcpAiProviderSchema.describe(
|
|
96
|
-
${autoProviderDescription}
|
|
97
|
-
|
|
98
|
-
Set this to \`"aws"\` or \`"gcp"\` to force a specific provider.
|
|
99
|
-
`),
|
|
82
|
+
provider: awsGcpAiProviderSchema.describe(robotParameterDocs.ai_provider.description),
|
|
100
83
|
crop: z
|
|
101
84
|
.boolean()
|
|
102
85
|
.default(false)
|
|
@@ -105,7 +88,7 @@ Determine if the detected faces should be extracted. If this option is set to \`
|
|
|
105
88
|
`),
|
|
106
89
|
crop_padding: z
|
|
107
90
|
.string()
|
|
108
|
-
.regex(
|
|
91
|
+
.regex(/^[0-9]+(px|%)$/u)
|
|
109
92
|
.default('5px')
|
|
110
93
|
.describe(`
|
|
111
94
|
Specifies how much padding is added to the extracted face images if \`crop\` is set to \`true\`. Values can be in \`px\` (pixels) or \`%\` (percentage of the width and height of the particular face image).
|
|
@@ -143,32 +126,32 @@ For the following examples, the input image is:
|
|
|
143
126
|
|
|
144
127
|

|
|
145
128
|
|
|
146
|
-
<br
|
|
129
|
+
<br />
|
|
147
130
|
|
|
148
131
|
\`faces: "each"\` applied:
|
|
149
132
|
|
|
150
133
|

|
|
151
134
|

|
|
152
135
|
|
|
153
|
-
<br
|
|
136
|
+
<br />
|
|
154
137
|
|
|
155
138
|
\`faces: "max-confidence"\` applied:
|
|
156
139
|
|
|
157
140
|

|
|
158
141
|
|
|
159
|
-
<br
|
|
142
|
+
<br />
|
|
160
143
|
|
|
161
144
|
\`faces: "max-size"\` applied:
|
|
162
145
|
|
|
163
146
|

|
|
164
147
|
|
|
165
|
-
<br
|
|
148
|
+
<br />
|
|
166
149
|
|
|
167
150
|
\`faces: "group"\` applied:
|
|
168
151
|
|
|
169
152
|

|
|
170
153
|
|
|
171
|
-
<br
|
|
154
|
+
<br />
|
|
172
155
|
|
|
173
156
|
\`faces: 0\` applied:
|
|
174
157
|
|
|
@@ -177,35 +160,24 @@ For the following examples, the input image is:
|
|
|
177
160
|
})
|
|
178
161
|
.strict()
|
|
179
162
|
|
|
180
|
-
export const
|
|
181
|
-
robotImageFacedetectInstructionsSchema
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
export
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
export type
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
typeof interpolatableRobotImageFacedetectInstructionsSchema
|
|
202
|
-
>
|
|
203
|
-
|
|
204
|
-
export const interpolatableRobotImageFacedetectInstructionsWithHiddenFieldsSchema =
|
|
205
|
-
interpolateRobot(robotImageFacedetectInstructionsWithHiddenFieldsSchema)
|
|
206
|
-
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFields = z.infer<
|
|
207
|
-
typeof interpolatableRobotImageFacedetectInstructionsWithHiddenFieldsSchema
|
|
208
|
-
>
|
|
209
|
-
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFieldsInput = z.input<
|
|
210
|
-
typeof interpolatableRobotImageFacedetectInstructionsWithHiddenFieldsSchema
|
|
211
|
-
>
|
|
163
|
+
export const robotDefinition: RobotDefinition<typeof robotImageFacedetectInstructionsSchema.shape> =
|
|
164
|
+
defineRobot(meta, robotImageFacedetectInstructionsSchema)
|
|
165
|
+
|
|
166
|
+
export const {
|
|
167
|
+
withHiddenFields: robotImageFacedetectInstructionsWithHiddenFieldsSchema,
|
|
168
|
+
interpolatable: interpolatableRobotImageFacedetectInstructionsSchema,
|
|
169
|
+
interpolatableWithHiddenFields:
|
|
170
|
+
interpolatableRobotImageFacedetectInstructionsWithHiddenFieldsSchema,
|
|
171
|
+
} = robotDefinition
|
|
172
|
+
|
|
173
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
174
|
+
|
|
175
|
+
export type RobotImageFacedetectInstructions = Instructions['output']
|
|
176
|
+
export type RobotImageFacedetectInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
177
|
+
export type InterpolatableRobotImageFacedetectInstructions = Instructions['interpolatableInput']
|
|
178
|
+
export type InterpolatableRobotImageFacedetectInstructionsInput =
|
|
179
|
+
Instructions['interpolatableInput']
|
|
180
|
+
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFields =
|
|
181
|
+
Instructions['interpolatableHiddenOutput']
|
|
182
|
+
export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFieldsInput =
|
|
183
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,18 +1,28 @@
|
|
|
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 {
|
|
6
|
+
imageGenerateDefaultModelIdentifier,
|
|
7
|
+
imageGenerateLegacyModelAlias,
|
|
8
|
+
imageGenerateModelIdentifiers,
|
|
9
|
+
} from './_ai-models.ts'
|
|
5
10
|
import {
|
|
6
11
|
autoProviderDescription,
|
|
7
12
|
interpolateRobot,
|
|
13
|
+
robotArtificialIntelligenceMeta,
|
|
8
14
|
robotBase,
|
|
15
|
+
robotParameterDocs,
|
|
9
16
|
robotUse,
|
|
10
17
|
} from './_instructions-primitives.ts'
|
|
11
18
|
|
|
19
|
+
function formatEnglishModelList(values: readonly [string, string, ...string[]]): string {
|
|
20
|
+
const formattedValues = values.map((model) => `\`${model}\``)
|
|
21
|
+
return `${formattedValues.slice(0, -1).join(', ')}, and ${formattedValues.at(-1)}`
|
|
22
|
+
}
|
|
23
|
+
|
|
12
24
|
export const meta: RobotMetaInput = {
|
|
13
|
-
|
|
14
|
-
discount_factor: 1,
|
|
15
|
-
discount_pct: 0,
|
|
25
|
+
...robotArtificialIntelligenceMeta,
|
|
16
26
|
example_code: {
|
|
17
27
|
steps: {
|
|
18
28
|
':original': {
|
|
@@ -32,27 +42,14 @@ export const meta: RobotMetaInput = {
|
|
|
32
42
|
},
|
|
33
43
|
},
|
|
34
44
|
example_code_description:
|
|
35
|
-
'Inpaint an image by uploading an original image and a mask image, then use both files in /image/generate
|
|
36
|
-
minimum_charge: 0,
|
|
37
|
-
output_factor: 0.6,
|
|
45
|
+
'Inpaint an image by uploading an original image and a mask image, then use both files in /image/generate:',
|
|
38
46
|
purpose_sentence: 'generates images from text prompts using AI',
|
|
39
47
|
purpose_verb: 'generate',
|
|
40
48
|
purpose_word: 'generate',
|
|
41
49
|
purpose_words: 'Generate images from text prompts',
|
|
42
|
-
service_slug: 'artificial-intelligence',
|
|
43
|
-
slot_count: 10,
|
|
44
50
|
title: 'Generate images from text prompts',
|
|
45
|
-
typical_file_size_mb: 1.2,
|
|
46
|
-
typical_file_type: 'image',
|
|
47
51
|
name: 'ImageGenerateRobot',
|
|
48
|
-
priceFactor: 1,
|
|
49
|
-
queueSlotCount: 10,
|
|
50
52
|
minimumChargeUsd: 0.06,
|
|
51
|
-
isAllowedForUrlTransform: true,
|
|
52
|
-
trackOutputFileSize: true,
|
|
53
|
-
isInternal: false,
|
|
54
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
55
|
-
stage: 'ga',
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
// Internal documentation (for public docs, see transloadit.com/docs)
|
|
@@ -84,14 +81,14 @@ For inpainting, provide both the source image and mask through \`use\`, typicall
|
|
|
84
81
|
Best practice:
|
|
85
82
|
- Tag source and mask inputs explicitly using \`as\` (or semantic upload field names)
|
|
86
83
|
- Keep the prompt focused on what should change in the masked/transparent region
|
|
87
|
-
- Leave the model
|
|
84
|
+
- Leave the model choice to the robot defaults unless you have a specific need
|
|
88
85
|
`,
|
|
89
86
|
),
|
|
90
87
|
model: z
|
|
91
88
|
.string()
|
|
92
89
|
.optional()
|
|
93
90
|
.describe(
|
|
94
|
-
|
|
91
|
+
`The AI model to use. Defaults to \`${imageGenerateDefaultModelIdentifier}\`. Supported models include ${formatEnglishModelList(imageGenerateModelIdentifiers)}. The legacy alias \`${imageGenerateLegacyModelAlias}\` is also accepted for backwards compatibility.`,
|
|
95
92
|
),
|
|
96
93
|
prompt: z
|
|
97
94
|
.string()
|
|
@@ -104,7 +101,7 @@ Best practice:
|
|
|
104
101
|
.describe(
|
|
105
102
|
'Output format. Defaults depend on model: png for Google and OpenAI models, svg for recraft-v3, jpeg for others. Google models currently return PNG only.',
|
|
106
103
|
),
|
|
107
|
-
seed: z.number().optional().describe(
|
|
104
|
+
seed: z.number().optional().describe(robotParameterDocs.seed.description),
|
|
108
105
|
aspect_ratio: z
|
|
109
106
|
.string()
|
|
110
107
|
.optional()
|
|
@@ -148,7 +145,7 @@ export type RobotImageGenerateInstructionsWithHiddenFields = z.infer<
|
|
|
148
145
|
>
|
|
149
146
|
|
|
150
147
|
export const interpolatableRobotImageGenerateInstructionsSchema = interpolateRobot(
|
|
151
|
-
|
|
148
|
+
robotImageGenerateInstructionsSchema,
|
|
152
149
|
)
|
|
153
150
|
export type InterpolatableRobotImageGenerateInstructions =
|
|
154
151
|
InterpolatableRobotImageGenerateInstructionsInput
|
|
@@ -166,3 +163,13 @@ export type InterpolatableRobotImageGenerateInstructionsWithHiddenFields = z.inf
|
|
|
166
163
|
export type InterpolatableRobotImageGenerateInstructionsWithHiddenFieldsInput = z.input<
|
|
167
164
|
typeof interpolatableRobotImageGenerateInstructionsWithHiddenFieldsSchema
|
|
168
165
|
>
|
|
166
|
+
|
|
167
|
+
export const robotDefinition: RobotSchemaPair<
|
|
168
|
+
typeof interpolatableRobotImageGenerateInstructionsSchema,
|
|
169
|
+
typeof interpolatableRobotImageGenerateInstructionsWithHiddenFieldsSchema
|
|
170
|
+
> = {
|
|
171
|
+
meta,
|
|
172
|
+
interpolatable: interpolatableRobotImageGenerateInstructionsSchema,
|
|
173
|
+
interpolatableWithHiddenFields:
|
|
174
|
+
interpolatableRobotImageGenerateInstructionsWithHiddenFieldsSchema,
|
|
175
|
+
}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
9
|
import {
|
|
6
10
|
color_without_alpha_with_named,
|
|
11
|
+
defineRobot,
|
|
12
|
+
imageAdaptiveFilteringSchema,
|
|
13
|
+
imageQualityValueSchema,
|
|
7
14
|
inputSortBySchema,
|
|
8
|
-
interpolateRobot,
|
|
9
15
|
robotBase,
|
|
16
|
+
robotImageProcessingMeta,
|
|
10
17
|
robotUse,
|
|
11
18
|
} from './_instructions-primitives.ts'
|
|
12
19
|
|
|
13
20
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
discount_factor: 1,
|
|
16
|
-
discount_pct: 0,
|
|
21
|
+
...robotImageProcessingMeta,
|
|
17
22
|
example_code: {
|
|
18
23
|
steps: {
|
|
19
24
|
merged: {
|
|
@@ -28,25 +33,12 @@ export const meta: RobotMetaInput = {
|
|
|
28
33
|
},
|
|
29
34
|
example_code_description:
|
|
30
35
|
'Merge uploaded images into one, with a 5px gap between them on the spritesheet:',
|
|
31
|
-
minimum_charge: 0,
|
|
32
|
-
output_factor: 0.6,
|
|
33
|
-
override_lvl1: 'Image Manipulation',
|
|
34
36
|
purpose_sentence: 'merges several images into a single spritesheet',
|
|
35
37
|
purpose_verb: 'merge',
|
|
36
38
|
purpose_word: 'merge',
|
|
37
39
|
purpose_words: 'Merge several images into one image',
|
|
38
|
-
service_slug: 'image-manipulation',
|
|
39
|
-
slot_count: 10,
|
|
40
40
|
title: 'Merge several images into a single image',
|
|
41
|
-
typical_file_size_mb: 0.8,
|
|
42
|
-
typical_file_type: 'image',
|
|
43
41
|
name: 'ImageMergeRobot',
|
|
44
|
-
priceFactor: 1,
|
|
45
|
-
queueSlotCount: 10,
|
|
46
|
-
isAllowedForUrlTransform: true,
|
|
47
|
-
isInternal: false,
|
|
48
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
49
|
-
stage: 'ga',
|
|
50
42
|
}
|
|
51
43
|
|
|
52
44
|
export const robotImageMergeInstructionsSchema = robotBase
|
|
@@ -133,14 +125,14 @@ A value of \`10\` would cause the images to have the largest gap between them, w
|
|
|
133
125
|
|
|
134
126
|
When \`effect\` is \`polaroid-stack\`, this value is instead used as canvas padding so the outermost photos keep that many pixels of distance from the edge.
|
|
135
127
|
|
|
136
|
-
When \`effect\` is \`mosaic\`, this value is used both as the outer canvas padding and as the gutter width between
|
|
128
|
+
When \`effect\` is \`mosaic\`, this value is used both as the outer canvas padding and as the gutter width between neighboring tiles.
|
|
137
129
|
`),
|
|
138
130
|
background: color_without_alpha_with_named.default('#fff').describe(`
|
|
139
131
|
Either the hexadecimal code or [name](https://www.imagemagick.org/script/color.php#color_names) of the color used to fill the background (only shown with a border > 1).
|
|
140
132
|
|
|
141
|
-
By default, the background of transparent images is changed to white. Set to \`none\` or \`transparent\` for a transparent canvas —
|
|
133
|
+
By default, the background of transparent images is changed to white. Set to \`none\` or \`transparent\` for a transparent canvas — set \`format\` to \`png\` or \`webp\` to preserve alpha.
|
|
142
134
|
|
|
143
|
-
For details about how to preserve transparency across all image types, see [this demo](/demos/image-
|
|
135
|
+
For details about how to preserve transparency across all image types, see [this demo](/demos/image-processing/properly-preserve-transparency-across-all-image-types/).
|
|
144
136
|
`),
|
|
145
137
|
width: z
|
|
146
138
|
.number()
|
|
@@ -188,52 +180,29 @@ The default of \`1.5\` leaves a subtle beige border along some edges. Use \`2.0\
|
|
|
188
180
|
|
|
189
181
|
Has no effect on the \`mosaic\` style or on plain spritesheets.
|
|
190
182
|
`),
|
|
191
|
-
adaptive_filtering:
|
|
192
|
-
|
|
193
|
-
.default(false)
|
|
194
|
-
.describe(`
|
|
195
|
-
Controls the image compression for PNG images. Setting to \`true\` results in smaller file size, while increasing processing time. It is encouraged to keep this option disabled.
|
|
196
|
-
`),
|
|
197
|
-
quality: z
|
|
198
|
-
.number()
|
|
199
|
-
.int()
|
|
200
|
-
.min(1)
|
|
201
|
-
.max(100)
|
|
202
|
-
.default(100)
|
|
203
|
-
.describe(`
|
|
183
|
+
adaptive_filtering: imageAdaptiveFilteringSchema,
|
|
184
|
+
quality: imageQualityValueSchema.default(100).describe(`
|
|
204
185
|
Controls the image compression for JPG, PNG, and WebP images. Please also take a look at [🤖/image/optimize](/docs/robots/image-optimize/).
|
|
205
186
|
`),
|
|
206
187
|
})
|
|
207
188
|
.strict()
|
|
208
189
|
|
|
209
|
-
export const
|
|
210
|
-
robotImageMergeInstructionsSchema
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
export
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
export type
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
typeof interpolatableRobotImageMergeInstructionsSchema
|
|
229
|
-
>
|
|
230
|
-
|
|
231
|
-
export const interpolatableRobotImageMergeInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
232
|
-
robotImageMergeInstructionsWithHiddenFieldsSchema,
|
|
233
|
-
)
|
|
234
|
-
export type InterpolatableRobotImageMergeInstructionsWithHiddenFields = z.infer<
|
|
235
|
-
typeof interpolatableRobotImageMergeInstructionsWithHiddenFieldsSchema
|
|
236
|
-
>
|
|
237
|
-
export type InterpolatableRobotImageMergeInstructionsWithHiddenFieldsInput = z.input<
|
|
238
|
-
typeof interpolatableRobotImageMergeInstructionsWithHiddenFieldsSchema
|
|
239
|
-
>
|
|
190
|
+
export const robotDefinition: RobotDefinition<typeof robotImageMergeInstructionsSchema.shape> =
|
|
191
|
+
defineRobot(meta, robotImageMergeInstructionsSchema)
|
|
192
|
+
|
|
193
|
+
export const {
|
|
194
|
+
withHiddenFields: robotImageMergeInstructionsWithHiddenFieldsSchema,
|
|
195
|
+
interpolatable: interpolatableRobotImageMergeInstructionsSchema,
|
|
196
|
+
interpolatableWithHiddenFields: interpolatableRobotImageMergeInstructionsWithHiddenFieldsSchema,
|
|
197
|
+
} = robotDefinition
|
|
198
|
+
|
|
199
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
200
|
+
|
|
201
|
+
export type RobotImageMergeInstructions = Instructions['output']
|
|
202
|
+
export type RobotImageMergeInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
203
|
+
export type InterpolatableRobotImageMergeInstructions = Instructions['interpolatableInput']
|
|
204
|
+
export type InterpolatableRobotImageMergeInstructionsInput = Instructions['interpolatableInput']
|
|
205
|
+
export type InterpolatableRobotImageMergeInstructionsWithHiddenFields =
|
|
206
|
+
Instructions['interpolatableHiddenOutput']
|
|
207
|
+
export type InterpolatableRobotImageMergeInstructionsWithHiddenFieldsInput =
|
|
208
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,56 +1,42 @@
|
|
|
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 {
|
|
6
|
-
autoProviderDescription,
|
|
7
10
|
awsGcpAiProviderSchema,
|
|
11
|
+
createProcessingExample,
|
|
12
|
+
defineRobot,
|
|
8
13
|
granularitySchema,
|
|
9
|
-
|
|
14
|
+
robotArtificialIntelligenceMeta,
|
|
10
15
|
robotBase,
|
|
16
|
+
robotParameterDocs,
|
|
11
17
|
robotUse,
|
|
12
18
|
} from './_instructions-primitives.ts'
|
|
13
19
|
|
|
14
20
|
export const meta: RobotMetaInput = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
recognized: {
|
|
21
|
-
robot: '/image/ocr',
|
|
22
|
-
use: ':original',
|
|
23
|
-
provider: 'gcp',
|
|
24
|
-
format: 'text',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
21
|
+
...robotArtificialIntelligenceMeta,
|
|
22
|
+
example_code: createProcessingExample('recognized', '/image/ocr', {
|
|
23
|
+
provider: 'gcp',
|
|
24
|
+
format: 'text',
|
|
25
|
+
}),
|
|
28
26
|
example_code_description: 'Recognize text in an uploaded image and save it to a text file:',
|
|
29
27
|
extended_description: `
|
|
30
28
|
> [!Warning]
|
|
31
29
|
> Transloadit aims to be deterministic, but this <dfn>Robot</dfn> uses third-party AI services. The providers (AWS, GCP) will evolve their models over time, giving different responses for the same input images. Avoid relying on exact responses in your tests and application.
|
|
32
30
|
`,
|
|
33
|
-
minimum_charge: 1048576,
|
|
34
|
-
output_factor: 0.6,
|
|
35
31
|
override_lvl1: 'Artificial Intelligence',
|
|
36
32
|
purpose_sentence: 'recognizes text in images and returns it in a machine-readable format',
|
|
37
33
|
purpose_verb: 'recognize',
|
|
38
34
|
purpose_word: 'recognize text',
|
|
39
35
|
purpose_words: 'Recognize text in images (OCR)',
|
|
40
|
-
service_slug: 'artificial-intelligence',
|
|
41
|
-
slot_count: 10,
|
|
42
36
|
title: 'Recognize text in images',
|
|
43
37
|
typical_file_size_mb: 0.8,
|
|
44
|
-
typical_file_type: 'image',
|
|
45
38
|
name: 'ImageOcrRobot',
|
|
46
|
-
priceFactor: 1,
|
|
47
|
-
queueSlotCount: 10,
|
|
48
39
|
minimumChargeUsd: 0.0013,
|
|
49
|
-
isAllowedForUrlTransform: true,
|
|
50
|
-
trackOutputFileSize: true,
|
|
51
|
-
isInternal: false,
|
|
52
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
53
|
-
stage: 'ga',
|
|
54
40
|
}
|
|
55
41
|
|
|
56
42
|
export const robotImageOcrInstructionsSchema = robotBase
|
|
@@ -61,53 +47,31 @@ With this <dfn>Robot</dfn> you can detect and extract text from images using opt
|
|
|
61
47
|
|
|
62
48
|
For example, you can use the results to obtain the content of traffic signs, name tags, package labels and many more. You can also pass the text down to other <dfn>Robots</dfn> to filter images that contain (or do not contain) certain phrases. For images of dense documents, results may vary and be less accurate than for small pieces of text in photos.
|
|
63
49
|
`),
|
|
64
|
-
provider: awsGcpAiProviderSchema.describe(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Set this to \`"aws"\` or \`"gcp"\` to force a specific provider.
|
|
68
|
-
|
|
69
|
-
AWS supports detection for the following languages: English, Arabic, Russian, German, French, Italian, Portuguese and Spanish. GCP allows for a wider range of languages, with varying levels of support which can be found on the [official documentation](https://cloud.google.com/vision/docs/languages/).
|
|
70
|
-
`),
|
|
71
|
-
granularity: granularitySchema.describe(`
|
|
72
|
-
Whether to return a full response including coordinates for the text (\`"full"\`), or a flat list of the extracted phrases (\`"list"\`). This parameter has no effect if the \`format\` parameter is set to \`"text"\`.
|
|
73
|
-
`),
|
|
50
|
+
provider: awsGcpAiProviderSchema.describe(robotParameterDocs.ocr_provider.description),
|
|
51
|
+
granularity: granularitySchema.describe(robotParameterDocs.ocr_granularity.description),
|
|
74
52
|
format: z
|
|
75
53
|
.enum(['json', 'meta', 'text'])
|
|
76
54
|
.default('json')
|
|
77
|
-
.describe(
|
|
78
|
-
In what format to return the extracted text.
|
|
79
|
-
- \`"json"\` returns a JSON file.
|
|
80
|
-
- \`"meta"\` does not return a file, but stores the data inside Transloadit's file object (under \`\${file.meta.recognized_text}\`, which is an array of strings) that's passed around between encoding <dfn>Steps</dfn>, so that you can use the values to burn the data into videos, filter on them, etc.
|
|
81
|
-
- \`"text"\` returns the recognized text as a plain UTF-8 encoded text file.
|
|
82
|
-
`),
|
|
55
|
+
.describe(robotParameterDocs.ocr_format.description),
|
|
83
56
|
})
|
|
84
57
|
.strict()
|
|
85
58
|
|
|
86
|
-
export const
|
|
87
|
-
robotImageOcrInstructionsSchema
|
|
88
|
-
result: z.union([z.literal('debug'), robotImageOcrInstructionsSchema.shape.result]).optional(),
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
export type RobotImageOcrInstructions = z.infer<typeof robotImageOcrInstructionsSchema>
|
|
92
|
-
export type RobotImageOcrInstructionsWithHiddenFields = z.infer<
|
|
93
|
-
typeof robotImageOcrInstructionsWithHiddenFieldsSchema
|
|
94
|
-
>
|
|
59
|
+
export const robotDefinition: RobotDefinition<typeof robotImageOcrInstructionsSchema.shape> =
|
|
60
|
+
defineRobot(meta, robotImageOcrInstructionsSchema)
|
|
95
61
|
|
|
96
|
-
export const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
62
|
+
export const {
|
|
63
|
+
withHiddenFields: robotImageOcrInstructionsWithHiddenFieldsSchema,
|
|
64
|
+
interpolatable: interpolatableRobotImageOcrInstructionsSchema,
|
|
65
|
+
interpolatableWithHiddenFields: interpolatableRobotImageOcrInstructionsWithHiddenFieldsSchema,
|
|
66
|
+
} = robotDefinition
|
|
100
67
|
|
|
101
|
-
|
|
102
|
-
typeof interpolatableRobotImageOcrInstructionsSchema
|
|
103
|
-
>
|
|
68
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
104
69
|
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
export type
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
export type InterpolatableRobotImageOcrInstructionsWithHiddenFieldsInput =
|
|
112
|
-
|
|
113
|
-
>
|
|
70
|
+
export type RobotImageOcrInstructions = Instructions['output']
|
|
71
|
+
export type RobotImageOcrInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
72
|
+
export type InterpolatableRobotImageOcrInstructions = Instructions['interpolatableInput']
|
|
73
|
+
export type InterpolatableRobotImageOcrInstructionsInput = Instructions['interpolatableInput']
|
|
74
|
+
export type InterpolatableRobotImageOcrInstructionsWithHiddenFields =
|
|
75
|
+
Instructions['interpolatableHiddenOutput']
|
|
76
|
+
export type InterpolatableRobotImageOcrInstructionsWithHiddenFieldsInput =
|
|
77
|
+
Instructions['interpolatableHiddenInput']
|