transloadit 4.13.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -6
- package/dist/ApiError.d.ts +6 -2
- package/dist/ApiError.d.ts.map +1 -1
- package/dist/ApiError.js +6 -2
- package/dist/ApiError.js.map +1 -1
- package/dist/Transloadit.d.ts +2 -0
- package/dist/Transloadit.d.ts.map +1 -1
- package/dist/Transloadit.js +15 -4
- package/dist/Transloadit.js.map +1 -1
- package/dist/alphalib/aiMessages.d.ts +33254 -0
- package/dist/alphalib/aiMessages.d.ts.map +1 -0
- package/dist/alphalib/aiMessages.js +479 -0
- package/dist/alphalib/aiMessages.js.map +1 -0
- package/dist/alphalib/assembly-linter.d.ts.map +1 -1
- package/dist/alphalib/assembly-linter.js +20 -15
- package/dist/alphalib/assembly-linter.js.map +1 -1
- package/dist/alphalib/englishList.d.ts +3 -0
- package/dist/alphalib/englishList.d.ts.map +1 -0
- package/dist/alphalib/englishList.js +12 -0
- package/dist/alphalib/englishList.js.map +1 -0
- package/dist/alphalib/errors.d.ts +16 -0
- package/dist/alphalib/errors.d.ts.map +1 -1
- package/dist/alphalib/errors.js +124 -13
- package/dist/alphalib/errors.js.map +1 -1
- package/dist/alphalib/imagemagickDensity.d.ts.map +1 -1
- package/dist/alphalib/imagemagickDensity.js +2 -2
- package/dist/alphalib/imagemagickDensity.js.map +1 -1
- package/dist/alphalib/lib/zodInputSemantics.d.ts +18 -0
- package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -0
- package/dist/alphalib/lib/zodInputSemantics.js +86 -0
- package/dist/alphalib/lib/zodInputSemantics.js.map +1 -0
- package/dist/alphalib/object.d.ts +42 -2
- package/dist/alphalib/object.d.ts.map +1 -1
- package/dist/alphalib/object.js +133 -0
- package/dist/alphalib/object.js.map +1 -1
- package/dist/alphalib/stepParsing.d.ts +1 -0
- package/dist/alphalib/stepParsing.d.ts.map +1 -1
- package/dist/alphalib/stepParsing.js +9 -1
- package/dist/alphalib/stepParsing.js.map +1 -1
- package/dist/alphalib/types/apiParameterDescription.d.ts +14 -0
- package/dist/alphalib/types/apiParameterDescription.d.ts.map +1 -0
- package/dist/alphalib/types/apiParameterDescription.js +20 -0
- package/dist/alphalib/types/apiParameterDescription.js.map +1 -0
- package/dist/alphalib/types/assembliesGet.d.ts +1 -1
- package/dist/alphalib/types/assemblyReplay.d.ts +4 -4
- package/dist/alphalib/types/assemblyStatus.d.ts +7196 -64686
- package/dist/alphalib/types/assemblyStatus.d.ts.map +1 -1
- package/dist/alphalib/types/assemblyStatus.js +74 -55
- package/dist/alphalib/types/assemblyStatus.js.map +1 -1
- package/dist/alphalib/types/errorReason.d.ts +7 -0
- package/dist/alphalib/types/errorReason.d.ts.map +1 -0
- package/dist/alphalib/types/errorReason.js +14 -0
- package/dist/alphalib/types/errorReason.js.map +1 -0
- package/dist/alphalib/types/file.d.ts +7 -0
- package/dist/alphalib/types/file.d.ts.map +1 -1
- package/dist/alphalib/types/file.js +15 -0
- package/dist/alphalib/types/file.js.map +1 -1
- package/dist/alphalib/types/fileHash.d.ts +16 -0
- package/dist/alphalib/types/fileHash.d.ts.map +1 -0
- package/dist/alphalib/types/fileHash.js +10 -0
- package/dist/alphalib/types/fileHash.js.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.d.ts.map +1 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js +23 -0
- package/dist/alphalib/types/responseErrors/HttpImportRobot.js.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts +28 -0
- package/dist/alphalib/types/robots/_ai-models.d.ts.map +1 -0
- package/dist/alphalib/types/robots/_ai-models.js +80 -0
- package/dist/alphalib/types/robots/_ai-models.js.map +1 -0
- package/dist/alphalib/types/robots/_index.d.ts +713 -1329
- package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_index.js +4 -0
- package/dist/alphalib/types/robots/_index.js.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts +504 -129
- package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
- package/dist/alphalib/types/robots/_instructions-primitives.js +629 -280
- package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.d.ts +952 -2189
- package/dist/alphalib/types/robots/ai-chat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ai-chat.js +235 -367
- package/dist/alphalib/types/robots/ai-chat.js.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.d.ts +28 -16
- package/dist/alphalib/types/robots/assembly-savejson.d.ts.map +1 -1
- package/dist/alphalib/types/robots/assembly-savejson.js +2 -11
- package/dist/alphalib/types/robots/assembly-savejson.js.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-artwork.js +9 -38
- package/dist/alphalib/types/robots/audio-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-concat.js +11 -25
- package/dist/alphalib/types/robots/audio-concat.js.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-encode.js +13 -43
- package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-loop.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-loop.js +12 -40
- package/dist/alphalib/types/robots/audio-loop.js.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.d.ts +94 -81
- package/dist/alphalib/types/robots/audio-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-merge.js +11 -25
- package/dist/alphalib/types/robots/audio-merge.js.map +1 -1
- package/dist/alphalib/types/robots/audio-split.d.ts +80 -67
- package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-split.js +15 -45
- package/dist/alphalib/types/robots/audio-split.js.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.d.ts +120 -107
- package/dist/alphalib/types/robots/audio-waveform.d.ts.map +1 -1
- package/dist/alphalib/types/robots/audio-waveform.js +15 -39
- package/dist/alphalib/types/robots/audio-waveform.js.map +1 -1
- package/dist/alphalib/types/robots/azure-import.d.ts +48 -35
- package/dist/alphalib/types/robots/azure-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-import.js +5 -35
- package/dist/alphalib/types/robots/azure-import.js.map +1 -1
- package/dist/alphalib/types/robots/azure-store.d.ts +87 -71
- package/dist/alphalib/types/robots/azure-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/azure-store.js +11 -50
- package/dist/alphalib/types/robots/azure-store.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.d.ts +48 -35
- package/dist/alphalib/types/robots/backblaze-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-import.js +6 -39
- package/dist/alphalib/types/robots/backblaze-import.js.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.d.ts +80 -67
- package/dist/alphalib/types/robots/backblaze-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/backblaze-store.js +8 -44
- package/dist/alphalib/types/robots/backblaze-store.js.map +1 -1
- package/dist/alphalib/types/robots/box-import.d.ts +44 -27
- package/dist/alphalib/types/robots/box-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-import.js +7 -33
- package/dist/alphalib/types/robots/box-import.js.map +1 -1
- package/dist/alphalib/types/robots/box-store.d.ts +85 -68
- package/dist/alphalib/types/robots/box-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/box-store.js +8 -40
- package/dist/alphalib/types/robots/box-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudfiles-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-import.js +8 -45
- package/dist/alphalib/types/robots/cloudfiles-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudfiles-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudfiles-store.js +5 -36
- package/dist/alphalib/types/robots/cloudfiles-store.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.d.ts +48 -35
- package/dist/alphalib/types/robots/cloudflare-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-import.js +10 -57
- package/dist/alphalib/types/robots/cloudflare-import.js.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.d.ts +80 -67
- package/dist/alphalib/types/robots/cloudflare-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/cloudflare-store.js +11 -54
- package/dist/alphalib/types/robots/cloudflare-store.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.d.ts +56 -43
- package/dist/alphalib/types/robots/digitalocean-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-import.js +8 -49
- package/dist/alphalib/types/robots/digitalocean-import.js.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.d.ts +88 -75
- package/dist/alphalib/types/robots/digitalocean-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/digitalocean-store.js +8 -56
- package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.d.ts +80 -67
- package/dist/alphalib/types/robots/document-autorotate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-autorotate.js +5 -32
- package/dist/alphalib/types/robots/document-autorotate.js.map +1 -1
- package/dist/alphalib/types/robots/document-convert.d.ts +84 -71
- package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-convert.js +7 -33
- package/dist/alphalib/types/robots/document-convert.js.map +1 -1
- package/dist/alphalib/types/robots/document-extract.d.ts +80 -67
- package/dist/alphalib/types/robots/document-extract.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-extract.js +10 -36
- package/dist/alphalib/types/robots/document-extract.js.map +1 -1
- package/dist/alphalib/types/robots/document-merge.d.ts +80 -67
- package/dist/alphalib/types/robots/document-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-merge.js +4 -25
- package/dist/alphalib/types/robots/document-merge.js.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/document-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-ocr.js +10 -47
- package/dist/alphalib/types/robots/document-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.d.ts +80 -67
- package/dist/alphalib/types/robots/document-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-optimize.js +7 -31
- package/dist/alphalib/types/robots/document-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/document-split.d.ts +80 -67
- package/dist/alphalib/types/robots/document-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-split.js +7 -34
- package/dist/alphalib/types/robots/document-split.js.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.d.ts +120 -101
- package/dist/alphalib/types/robots/document-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/document-thumbs.js +24 -31
- package/dist/alphalib/types/robots/document-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.d.ts +40 -27
- package/dist/alphalib/types/robots/dropbox-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-import.js +5 -35
- package/dist/alphalib/types/robots/dropbox-import.js.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.d.ts +84 -68
- package/dist/alphalib/types/robots/dropbox-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/dropbox-store.js +8 -42
- package/dist/alphalib/types/robots/dropbox-store.js.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/edgly-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/edgly-deliver.js +4 -24
- package/dist/alphalib/types/robots/edgly-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/file-compress.d.ts +80 -67
- package/dist/alphalib/types/robots/file-compress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-compress.js +4 -20
- package/dist/alphalib/types/robots/file-compress.js.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.d.ts +96 -83
- package/dist/alphalib/types/robots/file-decompress.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-decompress.js +10 -41
- package/dist/alphalib/types/robots/file-decompress.js.map +1 -1
- package/dist/alphalib/types/robots/file-filter.d.ts +99 -87
- package/dist/alphalib/types/robots/file-filter.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-filter.js +11 -40
- package/dist/alphalib/types/robots/file-filter.js.map +1 -1
- package/dist/alphalib/types/robots/file-hash.d.ts +84 -71
- package/dist/alphalib/types/robots/file-hash.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-hash.js +12 -43
- package/dist/alphalib/types/robots/file-hash.js.map +1 -1
- package/dist/alphalib/types/robots/file-preview.d.ts +113 -100
- package/dist/alphalib/types/robots/file-preview.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-preview.js +14 -39
- package/dist/alphalib/types/robots/file-preview.js.map +1 -1
- package/dist/alphalib/types/robots/file-read.d.ts +80 -67
- package/dist/alphalib/types/robots/file-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-read.js +5 -26
- package/dist/alphalib/types/robots/file-read.js.map +1 -1
- package/dist/alphalib/types/robots/file-serve.d.ts +81 -68
- package/dist/alphalib/types/robots/file-serve.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-serve.js +4 -21
- package/dist/alphalib/types/robots/file-serve.js.map +1 -1
- package/dist/alphalib/types/robots/file-verify.d.ts +88 -75
- package/dist/alphalib/types/robots/file-verify.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-verify.js +11 -41
- package/dist/alphalib/types/robots/file-verify.js.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.d.ts +83 -67
- package/dist/alphalib/types/robots/file-virusscan.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-virusscan.js +16 -42
- package/dist/alphalib/types/robots/file-virusscan.js.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.d.ts +81 -67
- package/dist/alphalib/types/robots/file-watermark.d.ts.map +1 -1
- package/dist/alphalib/types/robots/file-watermark.js +10 -29
- package/dist/alphalib/types/robots/file-watermark.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.d.ts +40 -27
- package/dist/alphalib/types/robots/ftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-import.js +5 -33
- package/dist/alphalib/types/robots/ftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.d.ts +85 -67
- package/dist/alphalib/types/robots/ftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/ftp-store.js +7 -34
- package/dist/alphalib/types/robots/ftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/google-import.d.ts +48 -35
- package/dist/alphalib/types/robots/google-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-import.js +10 -43
- package/dist/alphalib/types/robots/google-import.js.map +1 -1
- package/dist/alphalib/types/robots/google-store.d.ts +80 -67
- package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/google-store.js +10 -41
- package/dist/alphalib/types/robots/google-store.js.map +1 -1
- package/dist/alphalib/types/robots/html-convert.d.ts +107 -89
- package/dist/alphalib/types/robots/html-convert.d.ts.map +1 -1
- package/dist/alphalib/types/robots/html-convert.js +6 -22
- package/dist/alphalib/types/robots/html-convert.js.map +1 -1
- package/dist/alphalib/types/robots/http-import.d.ts +76 -63
- package/dist/alphalib/types/robots/http-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/http-import.js +14 -19
- package/dist/alphalib/types/robots/http-import.js.map +1 -1
- package/dist/alphalib/types/robots/http-request.d.ts +538 -0
- package/dist/alphalib/types/robots/http-request.d.ts.map +1 -0
- package/dist/alphalib/types/robots/http-request.js +162 -0
- package/dist/alphalib/types/robots/http-request.js.map +1 -0
- package/dist/alphalib/types/robots/image-bgremove.d.ts +80 -67
- package/dist/alphalib/types/robots/image-bgremove.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-bgremove.js +6 -33
- package/dist/alphalib/types/robots/image-bgremove.js.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts +92 -79
- package/dist/alphalib/types/robots/image-copyrightdetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-copyrightdetect.js +9 -33
- package/dist/alphalib/types/robots/image-copyrightdetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-describe.d.ts +80 -67
- package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-describe.js +8 -37
- package/dist/alphalib/types/robots/image-describe.js.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.d.ts +80 -67
- package/dist/alphalib/types/robots/image-enhance.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-enhance.js +7 -31
- package/dist/alphalib/types/robots/image-enhance.js.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.d.ts +88 -75
- package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-facedetect.js +16 -44
- package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
- package/dist/alphalib/types/robots/image-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/image-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-generate.js +20 -25
- package/dist/alphalib/types/robots/image-generate.js.map +1 -1
- package/dist/alphalib/types/robots/image-merge.d.ts +96 -83
- package/dist/alphalib/types/robots/image-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-merge.js +9 -40
- package/dist/alphalib/types/robots/image-merge.js.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.d.ts +80 -67
- package/dist/alphalib/types/robots/image-ocr.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-ocr.js +11 -47
- package/dist/alphalib/types/robots/image-ocr.js.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.d.ts +88 -75
- package/dist/alphalib/types/robots/image-optimize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-optimize.js +6 -32
- package/dist/alphalib/types/robots/image-optimize.js.map +1 -1
- package/dist/alphalib/types/robots/image-resize.d.ts +217 -112
- package/dist/alphalib/types/robots/image-resize.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-resize.js +15 -42
- package/dist/alphalib/types/robots/image-resize.js.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.d.ts +97 -81
- package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
- package/dist/alphalib/types/robots/image-upscale.js +23 -42
- package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
- package/dist/alphalib/types/robots/mega-import.d.ts +48 -35
- package/dist/alphalib/types/robots/mega-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-import.js +12 -59
- package/dist/alphalib/types/robots/mega-import.js.map +1 -1
- package/dist/alphalib/types/robots/mega-store.d.ts +80 -67
- package/dist/alphalib/types/robots/mega-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/mega-store.js +14 -60
- package/dist/alphalib/types/robots/mega-store.js.map +1 -1
- package/dist/alphalib/types/robots/meta-read.d.ts +30 -16
- package/dist/alphalib/types/robots/meta-read.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-read.js +4 -20
- package/dist/alphalib/types/robots/meta-read.js.map +1 -1
- package/dist/alphalib/types/robots/meta-write.d.ts +80 -67
- package/dist/alphalib/types/robots/meta-write.d.ts.map +1 -1
- package/dist/alphalib/types/robots/meta-write.js +9 -32
- package/dist/alphalib/types/robots/meta-write.js.map +1 -1
- package/dist/alphalib/types/robots/minio-import.d.ts +48 -35
- package/dist/alphalib/types/robots/minio-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-import.js +9 -60
- package/dist/alphalib/types/robots/minio-import.js.map +1 -1
- package/dist/alphalib/types/robots/minio-store.d.ts +80 -67
- package/dist/alphalib/types/robots/minio-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/minio-store.js +9 -50
- package/dist/alphalib/types/robots/minio-store.js.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.d.ts +34 -28
- package/dist/alphalib/types/robots/progress-simulate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/progress-simulate.js +8 -28
- package/dist/alphalib/types/robots/progress-simulate.js.map +1 -1
- package/dist/alphalib/types/robots/s3-import.d.ts +48 -35
- package/dist/alphalib/types/robots/s3-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-import.js +7 -38
- package/dist/alphalib/types/robots/s3-import.js.map +1 -1
- package/dist/alphalib/types/robots/s3-store.d.ts +84 -68
- package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/s3-store.js +14 -44
- package/dist/alphalib/types/robots/s3-store.js.map +1 -1
- package/dist/alphalib/types/robots/script-run.d.ts +83 -67
- package/dist/alphalib/types/robots/script-run.d.ts.map +1 -1
- package/dist/alphalib/types/robots/script-run.js +9 -27
- package/dist/alphalib/types/robots/script-run.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.d.ts +51 -35
- package/dist/alphalib/types/robots/sftp-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-import.js +7 -36
- package/dist/alphalib/types/robots/sftp-import.js.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.d.ts +83 -67
- package/dist/alphalib/types/robots/sftp-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/sftp-store.js +9 -41
- package/dist/alphalib/types/robots/sftp-store.js.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.d.ts +102 -85
- package/dist/alphalib/types/robots/speech-transcribe.d.ts.map +1 -1
- package/dist/alphalib/types/robots/speech-transcribe.js +23 -44
- package/dist/alphalib/types/robots/speech-transcribe.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.d.ts +48 -35
- package/dist/alphalib/types/robots/supabase-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-import.js +12 -59
- package/dist/alphalib/types/robots/supabase-import.js.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.d.ts +80 -79
- package/dist/alphalib/types/robots/supabase-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/supabase-store.js +12 -56
- package/dist/alphalib/types/robots/supabase-store.js.map +1 -1
- package/dist/alphalib/types/robots/swift-import.d.ts +48 -47
- package/dist/alphalib/types/robots/swift-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-import.js +14 -55
- package/dist/alphalib/types/robots/swift-import.js.map +1 -1
- package/dist/alphalib/types/robots/swift-store.d.ts +80 -79
- package/dist/alphalib/types/robots/swift-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/swift-store.js +14 -62
- package/dist/alphalib/types/robots/swift-store.js.map +1 -1
- package/dist/alphalib/types/robots/text-speak.d.ts +80 -67
- package/dist/alphalib/types/robots/text-speak.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-speak.js +11 -37
- package/dist/alphalib/types/robots/text-speak.js.map +1 -1
- package/dist/alphalib/types/robots/text-translate.d.ts +92 -79
- package/dist/alphalib/types/robots/text-translate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/text-translate.js +9 -36
- package/dist/alphalib/types/robots/text-translate.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.d.ts +48 -35
- package/dist/alphalib/types/robots/tigris-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-import.js +9 -60
- package/dist/alphalib/types/robots/tigris-import.js.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.d.ts +80 -67
- package/dist/alphalib/types/robots/tigris-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tigris-store.js +7 -48
- package/dist/alphalib/types/robots/tigris-store.js.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts +32 -19
- package/dist/alphalib/types/robots/tlcdn-deliver.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tlcdn-deliver.js +4 -25
- package/dist/alphalib/types/robots/tlcdn-deliver.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.d.ts +58 -45
- package/dist/alphalib/types/robots/transloadit-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-import.js +17 -21
- package/dist/alphalib/types/robots/transloadit-import.js.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.d.ts +70 -57
- package/dist/alphalib/types/robots/transloadit-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/transloadit-store.js +14 -6
- package/dist/alphalib/types/robots/transloadit-store.js.map +1 -1
- package/dist/alphalib/types/robots/tus-store.d.ts +84 -71
- package/dist/alphalib/types/robots/tus-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/tus-store.js +8 -37
- package/dist/alphalib/types/robots/tus-store.js.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.d.ts +32 -19
- package/dist/alphalib/types/robots/upload-handle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/upload-handle.js +4 -19
- package/dist/alphalib/types/robots/upload-handle.js.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.d.ts +112 -99
- package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-adaptive.js +4 -26
- package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.d.ts +80 -67
- package/dist/alphalib/types/robots/video-artwork.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-artwork.js +7 -32
- package/dist/alphalib/types/robots/video-artwork.js.map +1 -1
- package/dist/alphalib/types/robots/video-concat.d.ts +104 -91
- package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-concat.js +6 -27
- package/dist/alphalib/types/robots/video-concat.js.map +1 -1
- package/dist/alphalib/types/robots/video-encode.d.ts +121 -103
- package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-encode.js +13 -38
- package/dist/alphalib/types/robots/video-encode.js.map +1 -1
- package/dist/alphalib/types/robots/video-generate.d.ts +96 -86
- package/dist/alphalib/types/robots/video-generate.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-generate.js +11 -18
- package/dist/alphalib/types/robots/video-generate.js.map +1 -1
- package/dist/alphalib/types/robots/video-merge.d.ts +135 -119
- package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-merge.js +12 -32
- package/dist/alphalib/types/robots/video-merge.js.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.d.ts +156 -139
- package/dist/alphalib/types/robots/video-ondemand.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-ondemand.js +11 -27
- package/dist/alphalib/types/robots/video-ondemand.js.map +1 -1
- package/dist/alphalib/types/robots/video-split.d.ts +104 -91
- package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-split.js +11 -39
- package/dist/alphalib/types/robots/video-split.js.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.d.ts +104 -91
- package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-subtitle.js +7 -30
- package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.d.ts +112 -95
- package/dist/alphalib/types/robots/video-thumbs.d.ts.map +1 -1
- package/dist/alphalib/types/robots/video-thumbs.js +46 -53
- package/dist/alphalib/types/robots/video-thumbs.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.d.ts +30 -17
- package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-import.js +7 -17
- package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.d.ts +83 -67
- package/dist/alphalib/types/robots/vimeo-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/vimeo-store.js +11 -37
- package/dist/alphalib/types/robots/vimeo-store.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.d.ts +48 -35
- package/dist/alphalib/types/robots/wasabi-import.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-import.js +9 -56
- package/dist/alphalib/types/robots/wasabi-import.js.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.d.ts +80 -67
- package/dist/alphalib/types/robots/wasabi-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/wasabi-store.js +10 -52
- package/dist/alphalib/types/robots/wasabi-store.js.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.d.ts +98 -85
- package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
- package/dist/alphalib/types/robots/youtube-store.js +42 -63
- package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
- package/dist/alphalib/types/stackVersions.d.ts +40 -1
- package/dist/alphalib/types/stackVersions.d.ts.map +1 -1
- package/dist/alphalib/types/stackVersions.js +25 -3
- package/dist/alphalib/types/stackVersions.js.map +1 -1
- package/dist/alphalib/types/storageAsset.d.ts +55 -23
- package/dist/alphalib/types/storageAsset.d.ts.map +1 -1
- package/dist/alphalib/types/storageAsset.js +33 -9
- package/dist/alphalib/types/storageAsset.js.map +1 -1
- package/dist/alphalib/types/template.d.ts +16 -16
- package/dist/alphalib/types/templateCredential.d.ts +2 -2
- package/dist/alphalib/types/utility.d.ts +22 -0
- package/dist/alphalib/types/utility.d.ts.map +1 -0
- package/dist/alphalib/types/utility.js +2 -0
- package/dist/alphalib/types/utility.js.map +1 -0
- package/dist/cli/commands/storage.d.ts +1 -0
- package/dist/cli/commands/storage.d.ts.map +1 -1
- package/dist/cli/commands/storage.js +27 -2
- package/dist/cli/commands/storage.js.map +1 -1
- package/dist/cli/semanticIntents/imageGenerate.d.ts +2 -2
- package/dist/cli/semanticIntents/imageGenerate.js +4 -4
- package/dist/cli/semanticIntents/imageGenerate.js.map +1 -1
- package/dist/cli/storageReceipts.d.ts.map +1 -1
- package/dist/cli/storageReceipts.js +4 -1
- package/dist/cli/storageReceipts.js.map +1 -1
- package/dist/storageImage.d.ts +6 -3
- package/dist/storageImage.d.ts.map +1 -1
- package/dist/storageImage.js +13 -0
- package/dist/storageImage.js.map +1 -1
- package/package.json +1 -2
- package/src/ApiError.ts +11 -4
- package/src/Transloadit.ts +24 -5
- package/src/alphalib/aiMessages.ts +554 -0
- package/src/alphalib/assembly-linter.ts +9 -2
- package/src/alphalib/englishList.ts +11 -0
- package/src/alphalib/errors.ts +159 -13
- package/src/alphalib/imagemagickDensity.ts +2 -1
- package/src/alphalib/lib/zodInputSemantics.ts +114 -0
- package/src/alphalib/object.ts +178 -3
- package/src/alphalib/stepParsing.ts +10 -2
- package/src/alphalib/types/apiParameterDescription.ts +41 -0
- package/src/alphalib/types/assemblyStatus.ts +121 -83
- package/src/alphalib/types/errorReason.ts +14 -0
- package/src/alphalib/types/file.ts +18 -0
- package/src/alphalib/types/fileHash.ts +10 -0
- package/src/alphalib/types/responseErrors/HttpImportRobot.ts +22 -0
- package/src/alphalib/types/robots/_ai-models.ts +91 -0
- package/src/alphalib/types/robots/_index.ts +14 -0
- package/src/alphalib/types/robots/_instructions-primitives.ts +841 -308
- package/src/alphalib/types/robots/ai-chat.ts +358 -459
- package/src/alphalib/types/robots/assembly-savejson.ts +2 -11
- package/src/alphalib/types/robots/audio-artwork.ts +35 -61
- package/src/alphalib/types/robots/audio-concat.ts +17 -25
- package/src/alphalib/types/robots/audio-encode.ts +35 -65
- package/src/alphalib/types/robots/audio-loop.ts +34 -61
- package/src/alphalib/types/robots/audio-merge.ts +17 -25
- package/src/alphalib/types/robots/audio-split.ts +37 -67
- package/src/alphalib/types/robots/audio-waveform.ts +42 -65
- package/src/alphalib/types/robots/azure-import.ts +26 -57
- package/src/alphalib/types/robots/azure-store.ts +48 -72
- package/src/alphalib/types/robots/backblaze-import.ts +30 -63
- package/src/alphalib/types/robots/backblaze-store.ts +37 -66
- package/src/alphalib/types/robots/box-import.ts +32 -55
- package/src/alphalib/types/robots/box-store.ts +40 -63
- package/src/alphalib/types/robots/cloudfiles-import.ts +34 -70
- package/src/alphalib/types/robots/cloudfiles-store.ts +28 -59
- package/src/alphalib/types/robots/cloudflare-import.ts +37 -83
- package/src/alphalib/types/robots/cloudflare-store.ts +37 -77
- package/src/alphalib/types/robots/digitalocean-import.ts +35 -75
- package/src/alphalib/types/robots/digitalocean-store.ts +35 -79
- package/src/alphalib/types/robots/document-autorotate.ts +36 -58
- package/src/alphalib/types/robots/document-convert.ts +37 -59
- package/src/alphalib/types/robots/document-extract.ts +45 -62
- package/src/alphalib/types/robots/document-merge.ts +25 -47
- package/src/alphalib/types/robots/document-ocr.ts +32 -70
- package/src/alphalib/types/robots/document-optimize.ts +38 -57
- package/src/alphalib/types/robots/document-split.ts +33 -56
- package/src/alphalib/types/robots/document-thumbs.ts +66 -67
- package/src/alphalib/types/robots/dropbox-import.ts +27 -57
- package/src/alphalib/types/robots/dropbox-store.ts +39 -65
- package/src/alphalib/types/robots/edgly-deliver.ts +26 -49
- package/src/alphalib/types/robots/file-compress.ts +31 -45
- package/src/alphalib/types/robots/file-decompress.ts +41 -68
- package/src/alphalib/types/robots/file-filter.ts +36 -65
- package/src/alphalib/types/robots/file-hash.ts +37 -64
- package/src/alphalib/types/robots/file-preview.ts +39 -65
- package/src/alphalib/types/robots/file-read.ts +33 -50
- package/src/alphalib/types/robots/file-serve.ts +32 -46
- package/src/alphalib/types/robots/file-verify.ts +37 -63
- package/src/alphalib/types/robots/file-virusscan.ts +49 -67
- package/src/alphalib/types/robots/file-watermark.ts +35 -54
- package/src/alphalib/types/robots/ftp-import.ts +26 -54
- package/src/alphalib/types/robots/ftp-store.ts +44 -63
- package/src/alphalib/types/robots/google-import.ts +32 -66
- package/src/alphalib/types/robots/google-store.ts +37 -63
- package/src/alphalib/types/robots/html-convert.ts +38 -49
- package/src/alphalib/types/robots/http-import.ts +21 -19
- package/src/alphalib/types/robots/http-request.ts +196 -0
- package/src/alphalib/types/robots/image-bgremove.ts +28 -55
- package/src/alphalib/types/robots/image-copyrightdetect.ts +38 -56
- package/src/alphalib/types/robots/image-describe.ts +31 -60
- package/src/alphalib/types/robots/image-enhance.ts +30 -56
- package/src/alphalib/types/robots/image-facedetect.ts +43 -71
- package/src/alphalib/types/robots/image-generate.ts +32 -25
- package/src/alphalib/types/robots/image-merge.ts +34 -65
- package/src/alphalib/types/robots/image-ocr.ts +33 -69
- package/src/alphalib/types/robots/image-optimize.ts +28 -54
- package/src/alphalib/types/robots/image-resize.ts +72 -96
- package/src/alphalib/types/robots/image-upscale.ts +52 -64
- package/src/alphalib/types/robots/mega-import.ts +36 -84
- package/src/alphalib/types/robots/mega-store.ts +44 -81
- package/src/alphalib/types/robots/meta-read.ts +21 -36
- package/src/alphalib/types/robots/meta-write.ts +35 -53
- package/src/alphalib/types/robots/minio-import.ts +34 -86
- package/src/alphalib/types/robots/minio-store.ts +37 -72
- package/src/alphalib/types/robots/progress-simulate.ts +14 -28
- package/src/alphalib/types/robots/s3-import.ts +32 -63
- package/src/alphalib/types/robots/s3-store.ts +53 -74
- package/src/alphalib/types/robots/script-run.ts +44 -55
- package/src/alphalib/types/robots/sftp-import.ts +34 -61
- package/src/alphalib/types/robots/sftp-store.ts +42 -65
- package/src/alphalib/types/robots/speech-transcribe.ts +53 -71
- package/src/alphalib/types/robots/supabase-import.ts +37 -84
- package/src/alphalib/types/robots/supabase-store.ts +41 -78
- package/src/alphalib/types/robots/swift-import.ts +38 -80
- package/src/alphalib/types/robots/swift-store.ts +44 -84
- package/src/alphalib/types/robots/text-speak.ts +36 -62
- package/src/alphalib/types/robots/text-translate.ts +35 -62
- package/src/alphalib/types/robots/tigris-import.ts +34 -86
- package/src/alphalib/types/robots/tigris-store.ts +35 -70
- package/src/alphalib/types/robots/tlcdn-deliver.ts +23 -47
- package/src/alphalib/types/robots/transloadit-import.ts +24 -29
- package/src/alphalib/types/robots/transloadit-store.ts +20 -7
- package/src/alphalib/types/robots/tus-store.ts +34 -58
- package/src/alphalib/types/robots/upload-handle.ts +23 -41
- package/src/alphalib/types/robots/video-adaptive.ts +28 -51
- package/src/alphalib/types/robots/video-artwork.ts +28 -54
- package/src/alphalib/types/robots/video-concat.ts +29 -52
- package/src/alphalib/types/robots/video-encode.ts +39 -62
- package/src/alphalib/types/robots/video-generate.ts +20 -18
- package/src/alphalib/types/robots/video-merge.ts +36 -55
- package/src/alphalib/types/robots/video-ondemand.ts +48 -62
- package/src/alphalib/types/robots/video-split.ts +32 -61
- package/src/alphalib/types/robots/video-subtitle.ts +30 -52
- package/src/alphalib/types/robots/video-thumbs.ts +74 -78
- package/src/alphalib/types/robots/vimeo-import.ts +12 -17
- package/src/alphalib/types/robots/vimeo-store.ts +46 -65
- package/src/alphalib/types/robots/wasabi-import.ts +33 -81
- package/src/alphalib/types/robots/wasabi-store.ts +38 -74
- package/src/alphalib/types/robots/youtube-store.ts +81 -91
- package/src/alphalib/types/stackVersions.ts +26 -3
- package/src/alphalib/types/storageAsset.ts +85 -29
- package/src/alphalib/types/utility.ts +52 -0
- package/src/cli/commands/storage.ts +28 -2
- package/src/cli/semanticIntents/imageGenerate.ts +4 -4
- package/src/cli/storageReceipts.ts +4 -1
- package/src/storageImage.ts +18 -3
|
@@ -1,55 +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
9
|
import {
|
|
6
|
-
|
|
10
|
+
createStorageImportExample,
|
|
11
|
+
defineRobot,
|
|
7
12
|
googleBase,
|
|
8
|
-
interpolateRobot,
|
|
9
13
|
next_page_token,
|
|
10
14
|
path,
|
|
11
15
|
recursive,
|
|
16
|
+
recursiveImportPageSize,
|
|
12
17
|
robotBase,
|
|
13
18
|
robotImport,
|
|
19
|
+
robotImportMeta,
|
|
14
20
|
} from './_instructions-primitives.ts'
|
|
15
21
|
|
|
16
22
|
export const meta: RobotMetaInput = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
discount_pct: 90,
|
|
20
|
-
example_code: {
|
|
21
|
-
steps: {
|
|
22
|
-
imported: {
|
|
23
|
-
robot: '/google/import',
|
|
24
|
-
credentials: 'YOUR_GOOGLE_CREDENTIALS',
|
|
25
|
-
path: 'path/to/files/',
|
|
26
|
-
recursive: true,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
23
|
+
...robotImportMeta,
|
|
24
|
+
example_code: createStorageImportExample('/google/import', 'YOUR_GOOGLE_CREDENTIALS'),
|
|
30
25
|
example_code_description:
|
|
31
26
|
'Import files from the `path/to/files` directory and its subdirectories:',
|
|
32
27
|
has_small_icon: true,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
purpose_verb: 'import',
|
|
38
|
-
purpose_word: 'Google Storage',
|
|
39
|
-
purpose_words: 'Import files from Google Storage',
|
|
40
|
-
service_slug: 'file-importing',
|
|
41
|
-
slot_count: 20,
|
|
42
|
-
title: 'Import files from Google Storage',
|
|
43
|
-
typical_file_size_mb: 1.2,
|
|
44
|
-
typical_file_type: 'file',
|
|
28
|
+
purpose_sentence: 'imports whole directories of files from Google Cloud Storage',
|
|
29
|
+
purpose_word: 'Google Cloud Storage',
|
|
30
|
+
purpose_words: 'Import files from Google Cloud Storage',
|
|
31
|
+
title: 'Import files from Google Cloud Storage',
|
|
45
32
|
name: 'GoogleImportRobot',
|
|
46
|
-
priceFactor: 6.6666,
|
|
47
|
-
queueSlotCount: 20,
|
|
48
|
-
isAllowedForUrlTransform: true,
|
|
49
|
-
trackOutputFileSize: false,
|
|
50
|
-
isInternal: false,
|
|
51
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
52
|
-
stage: 'ga',
|
|
53
33
|
}
|
|
54
34
|
|
|
55
35
|
export const robotGoogleImportInstructionsSchema = robotBase
|
|
@@ -76,40 +56,26 @@ Please use the pagination parameters \`start_file_name\` and \`files_per_page\`
|
|
|
76
56
|
next_page_token: next_page_token.describe(`
|
|
77
57
|
A string token used for pagination. The returned files of one paginated call have the next page token inside of their meta data, which needs to be used for the subsequent paging call.
|
|
78
58
|
`),
|
|
79
|
-
files_per_page:
|
|
80
|
-
The pagination page size. This only works when recursive is \`true\` for now, in order to not break backwards compatibility in non-recursive imports.
|
|
81
|
-
`),
|
|
59
|
+
files_per_page: recursiveImportPageSize,
|
|
82
60
|
})
|
|
83
61
|
.strict()
|
|
84
62
|
|
|
85
|
-
export const
|
|
86
|
-
robotGoogleImportInstructionsSchema
|
|
87
|
-
result: z
|
|
88
|
-
.union([z.literal('debug'), robotGoogleImportInstructionsSchema.shape.result])
|
|
89
|
-
.optional(),
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
export type RobotGoogleImportInstructions = z.infer<typeof robotGoogleImportInstructionsSchema>
|
|
93
|
-
export type RobotGoogleImportInstructionsWithHiddenFields = z.infer<
|
|
94
|
-
typeof robotGoogleImportInstructionsWithHiddenFieldsSchema
|
|
95
|
-
>
|
|
63
|
+
export const robotDefinition: RobotDefinition<typeof robotGoogleImportInstructionsSchema.shape> =
|
|
64
|
+
defineRobot(meta, robotGoogleImportInstructionsSchema)
|
|
96
65
|
|
|
97
|
-
export const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
66
|
+
export const {
|
|
67
|
+
withHiddenFields: robotGoogleImportInstructionsWithHiddenFieldsSchema,
|
|
68
|
+
interpolatable: interpolatableRobotGoogleImportInstructionsSchema,
|
|
69
|
+
interpolatableWithHiddenFields: interpolatableRobotGoogleImportInstructionsWithHiddenFieldsSchema,
|
|
70
|
+
} = robotDefinition
|
|
102
71
|
|
|
103
|
-
|
|
104
|
-
typeof interpolatableRobotGoogleImportInstructionsSchema
|
|
105
|
-
>
|
|
72
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
106
73
|
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
export type
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
export type InterpolatableRobotGoogleImportInstructionsWithHiddenFieldsInput =
|
|
114
|
-
|
|
115
|
-
>
|
|
74
|
+
export type RobotGoogleImportInstructions = Instructions['output']
|
|
75
|
+
export type RobotGoogleImportInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
76
|
+
export type InterpolatableRobotGoogleImportInstructions = Instructions['interpolatableInput']
|
|
77
|
+
export type InterpolatableRobotGoogleImportInstructionsInput = Instructions['interpolatableInput']
|
|
78
|
+
export type InterpolatableRobotGoogleImportInstructionsWithHiddenFields =
|
|
79
|
+
Instructions['interpolatableHiddenOutput']
|
|
80
|
+
export type InterpolatableRobotGoogleImportInstructionsWithHiddenFieldsInput =
|
|
81
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,45 +1,31 @@
|
|
|
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
|
+
createStorageStoreExample,
|
|
11
|
+
defineRobot,
|
|
12
|
+
googleBase,
|
|
13
|
+
robotBase,
|
|
14
|
+
robotStoreMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
} from './_instructions-primitives.ts'
|
|
6
17
|
|
|
7
18
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
steps: {
|
|
13
|
-
exported: {
|
|
14
|
-
robot: '/google/store',
|
|
15
|
-
use: ':original',
|
|
16
|
-
credentials: 'YOUR_GOOGLE_CREDENTIALS',
|
|
17
|
-
path: 'my_target_folder/${unique_prefix}/${file.url_name}',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
example_code_description: 'Export uploaded files to `my_target_folder` on Google Storage:',
|
|
19
|
+
...robotStoreMeta,
|
|
20
|
+
example_code: createStorageStoreExample('/google/store', 'YOUR_GOOGLE_CREDENTIALS'),
|
|
21
|
+
example_code_description:
|
|
22
|
+
'Export uploaded files to `my_target_folder` in a Google Cloud Storage bucket:',
|
|
22
23
|
has_small_icon: true,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
purpose_verb: 'export',
|
|
28
|
-
purpose_word: 'Google Storage',
|
|
29
|
-
purpose_words: 'Export files to Google Storage',
|
|
30
|
-
service_slug: 'file-exporting',
|
|
31
|
-
slot_count: 10,
|
|
32
|
-
title: 'Export files to Google Storage',
|
|
33
|
-
typical_file_size_mb: 1.2,
|
|
34
|
-
typical_file_type: 'file',
|
|
24
|
+
purpose_sentence: 'exports encoding results to Google Cloud Storage',
|
|
25
|
+
purpose_word: 'Google Cloud Storage',
|
|
26
|
+
purpose_words: 'Export files to Google Cloud Storage',
|
|
27
|
+
title: 'Export files to Google Cloud Storage',
|
|
35
28
|
name: 'GoogleStoreRobot',
|
|
36
|
-
priceFactor: 6.6666,
|
|
37
|
-
queueSlotCount: 10,
|
|
38
|
-
isAllowedForUrlTransform: true,
|
|
39
|
-
trackOutputFileSize: false,
|
|
40
|
-
isInternal: false,
|
|
41
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
42
|
-
stage: 'ga',
|
|
43
29
|
}
|
|
44
30
|
|
|
45
31
|
export const robotGoogleStoreInstructionsSchema = robotBase
|
|
@@ -106,34 +92,22 @@ The SSL URL of the file in the result JSON. The following [Assembly variables](/
|
|
|
106
92
|
})
|
|
107
93
|
.strict()
|
|
108
94
|
|
|
109
|
-
export const
|
|
110
|
-
robotGoogleStoreInstructionsSchema
|
|
111
|
-
result: z
|
|
112
|
-
.union([z.literal('debug'), robotGoogleStoreInstructionsSchema.shape.result])
|
|
113
|
-
.optional(),
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
export type RobotGoogleStoreInstructions = z.infer<typeof robotGoogleStoreInstructionsSchema>
|
|
117
|
-
export type RobotGoogleStoreInstructionsWithHiddenFields = z.infer<
|
|
118
|
-
typeof robotGoogleStoreInstructionsWithHiddenFieldsSchema
|
|
119
|
-
>
|
|
95
|
+
export const robotDefinition: RobotDefinition<typeof robotGoogleStoreInstructionsSchema.shape> =
|
|
96
|
+
defineRobot(meta, robotGoogleStoreInstructionsSchema)
|
|
120
97
|
|
|
121
|
-
export const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
98
|
+
export const {
|
|
99
|
+
withHiddenFields: robotGoogleStoreInstructionsWithHiddenFieldsSchema,
|
|
100
|
+
interpolatable: interpolatableRobotGoogleStoreInstructionsSchema,
|
|
101
|
+
interpolatableWithHiddenFields: interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema,
|
|
102
|
+
} = robotDefinition
|
|
126
103
|
|
|
127
|
-
|
|
128
|
-
typeof interpolatableRobotGoogleStoreInstructionsSchema
|
|
129
|
-
>
|
|
104
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
130
105
|
|
|
131
|
-
export
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
export type
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
export type InterpolatableRobotGoogleStoreInstructionsWithHiddenFieldsInput =
|
|
138
|
-
|
|
139
|
-
>
|
|
106
|
+
export type RobotGoogleStoreInstructions = Instructions['output']
|
|
107
|
+
export type RobotGoogleStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
108
|
+
export type InterpolatableRobotGoogleStoreInstructions = Instructions['interpolatableInput']
|
|
109
|
+
export type InterpolatableRobotGoogleStoreInstructionsInput = Instructions['interpolatableInput']
|
|
110
|
+
export type InterpolatableRobotGoogleStoreInstructionsWithHiddenFields =
|
|
111
|
+
Instructions['interpolatableHiddenOutput']
|
|
112
|
+
export type InterpolatableRobotGoogleStoreInstructionsWithHiddenFieldsInput =
|
|
113
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinitionWithHiddenFields,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
defineRobotWithHiddenFields,
|
|
11
|
+
robotBase,
|
|
12
|
+
robotDocumentProcessingMeta,
|
|
13
|
+
robotUse,
|
|
14
|
+
} from './_instructions-primitives.ts'
|
|
6
15
|
|
|
7
16
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
discount_factor: 1,
|
|
10
|
-
discount_pct: 0,
|
|
17
|
+
...robotDocumentProcessingMeta,
|
|
11
18
|
example_code: {
|
|
12
19
|
steps: {
|
|
13
20
|
captured: {
|
|
@@ -24,27 +31,16 @@ export const meta: RobotMetaInput = {
|
|
|
24
31
|
> [!Note]
|
|
25
32
|
> Any files imported within the HTML page will be included in the cost.
|
|
26
33
|
`,
|
|
27
|
-
minimum_charge: 1048576,
|
|
28
|
-
output_factor: 0.5,
|
|
29
|
-
override_lvl1: 'Document Processing',
|
|
30
34
|
purpose_sentence: 'takes screenshots of web pages or uploaded HTML pages',
|
|
31
35
|
purpose_verb: 'take',
|
|
32
36
|
purpose_word: 'take screenshots of a webpage',
|
|
33
37
|
purpose_words: 'Take screenshots of webpages or HTML files',
|
|
34
|
-
service_slug: 'document-processing',
|
|
35
|
-
slot_count: 10,
|
|
36
38
|
title: 'Take screenshots of webpages or uploaded HTML files',
|
|
37
39
|
typical_file_size_mb: 0.6,
|
|
38
40
|
typical_file_type: 'webpage',
|
|
39
41
|
name: 'HtmlConvertRobot',
|
|
40
|
-
priceFactor: 1,
|
|
41
42
|
queueSlotCount: 30,
|
|
42
|
-
minimumCharge: 1048576,
|
|
43
|
-
isAllowedForUrlTransform: true,
|
|
44
43
|
trackOutputFileSize: true,
|
|
45
|
-
isInternal: false,
|
|
46
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
47
|
-
stage: 'ga',
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
export const robotHtmlConvertInstructionsSchema = robotBase
|
|
@@ -129,37 +125,30 @@ See [Playwright's documentation](https://playwright.dev/docs/api/class-page#page
|
|
|
129
125
|
})
|
|
130
126
|
.strict()
|
|
131
127
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
result: z
|
|
138
|
-
.union([z.literal('debug'), robotHtmlConvertInstructionsSchema.shape.result])
|
|
139
|
-
.optional(),
|
|
140
|
-
})
|
|
128
|
+
const hiddenFields = {
|
|
129
|
+
debuginfo: z.boolean().optional(),
|
|
130
|
+
timeouts: z.record(z.unknown()).optional(),
|
|
131
|
+
actions: z.array(z.record(z.unknown())).optional(),
|
|
132
|
+
}
|
|
141
133
|
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
typeof
|
|
145
|
-
>
|
|
146
|
-
|
|
147
|
-
export const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
export
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
export type InterpolatableRobotHtmlConvertInstructionsWithHiddenFieldsInput = z.input<
|
|
164
|
-
typeof interpolatableRobotHtmlConvertInstructionsWithHiddenFieldsSchema
|
|
165
|
-
>
|
|
134
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
135
|
+
typeof robotHtmlConvertInstructionsSchema.shape,
|
|
136
|
+
typeof hiddenFields
|
|
137
|
+
> = defineRobotWithHiddenFields(meta, robotHtmlConvertInstructionsSchema, hiddenFields)
|
|
138
|
+
|
|
139
|
+
export const {
|
|
140
|
+
withHiddenFields: robotHtmlConvertInstructionsWithHiddenFieldsSchema,
|
|
141
|
+
interpolatable: interpolatableRobotHtmlConvertInstructionsSchema,
|
|
142
|
+
interpolatableWithHiddenFields: interpolatableRobotHtmlConvertInstructionsWithHiddenFieldsSchema,
|
|
143
|
+
} = robotDefinition
|
|
144
|
+
|
|
145
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
146
|
+
|
|
147
|
+
export type RobotHtmlConvertInstructions = Instructions['output']
|
|
148
|
+
export type RobotHtmlConvertInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
149
|
+
export type InterpolatableRobotHtmlConvertInstructions = Instructions['interpolatableInput']
|
|
150
|
+
export type InterpolatableRobotHtmlConvertInstructionsInput = Instructions['interpolatableInput']
|
|
151
|
+
export type InterpolatableRobotHtmlConvertInstructionsWithHiddenFields =
|
|
152
|
+
Instructions['interpolatableHiddenOutput']
|
|
153
|
+
export type InterpolatableRobotHtmlConvertInstructionsWithHiddenFieldsInput =
|
|
154
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,19 +1,21 @@
|
|
|
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 { httpImportRobotErrors } from '../responseErrors/HttpImportRobot.ts'
|
|
5
6
|
import {
|
|
7
|
+
httpHeaderSafetyDescription,
|
|
8
|
+
httpUrlSchema,
|
|
6
9
|
interpolateRobot,
|
|
7
10
|
return_file_stubs,
|
|
8
11
|
robotBase,
|
|
9
12
|
robotImport,
|
|
13
|
+
robotImportMeta,
|
|
10
14
|
robotUseWithHiddenFields,
|
|
11
15
|
} from './_instructions-primitives.ts'
|
|
12
16
|
|
|
13
17
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
discount_factor: 0.1,
|
|
16
|
-
discount_pct: 90,
|
|
18
|
+
...robotImportMeta,
|
|
17
19
|
example_code: {
|
|
18
20
|
steps: {
|
|
19
21
|
imported: {
|
|
@@ -23,33 +25,20 @@ export const meta: RobotMetaInput = {
|
|
|
23
25
|
},
|
|
24
26
|
},
|
|
25
27
|
example_code_description: 'Import an image from a specific URL:',
|
|
26
|
-
minimum_charge: 0,
|
|
27
|
-
output_factor: 1,
|
|
28
|
-
override_lvl1: 'File Importing',
|
|
29
28
|
purpose_sentence: 'imports any file that is publicly available via a web URL into Transloadit',
|
|
30
|
-
purpose_verb: 'import',
|
|
31
29
|
purpose_word: 'Webservers',
|
|
32
30
|
purpose_words: 'Import files from web servers',
|
|
33
|
-
service_slug: 'file-importing',
|
|
34
|
-
slot_count: 10,
|
|
35
31
|
title: 'Import files from web servers',
|
|
36
|
-
typical_file_size_mb: 1.2,
|
|
37
|
-
typical_file_type: 'file',
|
|
38
32
|
name: 'HttpImportRobot',
|
|
39
33
|
priceFactor: 10,
|
|
40
34
|
queueSlotCount: 10,
|
|
41
|
-
isAllowedForUrlTransform: true,
|
|
42
|
-
trackOutputFileSize: false,
|
|
43
|
-
isInternal: false,
|
|
44
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
45
|
-
stage: 'ga',
|
|
46
35
|
}
|
|
47
36
|
|
|
48
37
|
export const robotHttpImportInstructionsSchema = robotBase
|
|
49
38
|
.merge(robotImport)
|
|
50
39
|
.extend({
|
|
51
40
|
robot: z.literal('/http/import').describe(`
|
|
52
|
-
The result of this <dfn>Robot</dfn> will carry a field \`import_url\` in
|
|
41
|
+
The result of this <dfn>Robot</dfn> will carry a field \`import_url\` in its metadata, which references the URL from which it was imported. Further conversion results that use this file will also carry this \`import_url\` field. This allows you to match conversion results with the original import URL that you used.
|
|
53
42
|
|
|
54
43
|
This <dfn>Robot</dfn> knows to interpret links to files on these services:
|
|
55
44
|
|
|
@@ -60,9 +49,11 @@ This <dfn>Robot</dfn> knows to interpret links to files on these services:
|
|
|
60
49
|
|
|
61
50
|
Instead of downloading the HTML page previewing the file, the actual file itself will be imported.
|
|
62
51
|
`),
|
|
63
|
-
url: z.union([
|
|
52
|
+
url: z.union([httpUrlSchema, z.array(httpUrlSchema)]).describe(`
|
|
64
53
|
The URL from which the file to be imported can be retrieved.
|
|
65
54
|
|
|
55
|
+
HTTPS URLs must present a valid certificate trusted by Transloadit and matching the requested hostname. Self-signed, expired, or hostname-mismatched certificates cause \`${httpImportRobotErrors.HTTP_IMPORT_FAILURE.error}\`.
|
|
56
|
+
|
|
66
57
|
You can also specify an array of URLs or a string of \`|\` delimited URLs to import several files at once. Please also check the \`url_delimiter\` parameter for that.
|
|
67
58
|
`),
|
|
68
59
|
url_delimiter: z
|
|
@@ -88,6 +79,8 @@ Headers can be specified as:
|
|
|
88
79
|
- An array of objects with header names as keys and values as values
|
|
89
80
|
- A JSON string that will be parsed into an object
|
|
90
81
|
|
|
82
|
+
${httpHeaderSafetyDescription}
|
|
83
|
+
|
|
91
84
|
The same \`headers\` value is sent with every URL in this \`/http/import\` Step. If \`url\` is an
|
|
92
85
|
array, \`headers\` is not matched to the URLs by array index. Use separate \`/http/import\` Steps
|
|
93
86
|
when different URLs need different headers.
|
|
@@ -174,3 +167,12 @@ export type InterpolatableRobotHttpImportInstructionsWithHiddenFields = z.infer<
|
|
|
174
167
|
export type InterpolatableRobotHttpImportInstructionsWithHiddenFieldsInput = z.input<
|
|
175
168
|
typeof interpolatableRobotHttpImportInstructionsWithHiddenFieldsSchema
|
|
176
169
|
>
|
|
170
|
+
|
|
171
|
+
export const robotDefinition: RobotSchemaPair<
|
|
172
|
+
typeof interpolatableRobotHttpImportInstructionsSchema,
|
|
173
|
+
typeof interpolatableRobotHttpImportInstructionsWithHiddenFieldsSchema
|
|
174
|
+
> = {
|
|
175
|
+
meta,
|
|
176
|
+
interpolatable: interpolatableRobotHttpImportInstructionsSchema,
|
|
177
|
+
interpolatableWithHiddenFields: interpolatableRobotHttpImportInstructionsWithHiddenFieldsSchema,
|
|
178
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
6
|
+
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
defineRobot,
|
|
11
|
+
httpHeaderSafetyDescription,
|
|
12
|
+
httpUrlSchema,
|
|
13
|
+
robotBase,
|
|
14
|
+
robotCodeEvaluationMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
} from './_instructions-primitives.ts'
|
|
17
|
+
|
|
18
|
+
export const meta: RobotMetaInput = {
|
|
19
|
+
...robotCodeEvaluationMeta,
|
|
20
|
+
example_code: {
|
|
21
|
+
steps: {
|
|
22
|
+
request: {
|
|
23
|
+
robot: '/http/request',
|
|
24
|
+
method: 'POST',
|
|
25
|
+
payload: 'metadata',
|
|
26
|
+
url: 'https://example.com/transloadit/files',
|
|
27
|
+
use: [],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
example_code_description: 'Ask your application which input files should continue:',
|
|
32
|
+
extended_description: `
|
|
33
|
+
Use this <dfn>Robot</dfn> when your application should inspect the current Assembly state or input
|
|
34
|
+
files during an Assembly and return which input files should continue to later, statically declared
|
|
35
|
+
Steps, or return new result-file URLs that Transloadit should download and emit from this Step.
|
|
36
|
+
|
|
37
|
+
Request format:
|
|
38
|
+
|
|
39
|
+
- \`payload: "none"\` sends no request body.
|
|
40
|
+
- \`payload: "metadata"\` sends \`application/json\` with \`assembly\`, \`fields\`,
|
|
41
|
+
\`previous_step\`, \`file\`, and \`files\`.
|
|
42
|
+
- \`payload: "file"\` sends \`multipart/form-data\` with a \`payload\` JSON field and the first input
|
|
43
|
+
file as form part \`file\`.
|
|
44
|
+
- \`payload: "files"\` sends \`multipart/form-data\` with a \`payload\` JSON field and all input files
|
|
45
|
+
as repeated form parts named \`files[]\`.
|
|
46
|
+
|
|
47
|
+
Your endpoint must respond with a 2xx status. It can return an empty body, \`[]\`, a single file
|
|
48
|
+
object, an array of file objects, or an object with \`files\` as an array or object map. Returned
|
|
49
|
+
files must include either:
|
|
50
|
+
|
|
51
|
+
- \`path\`: Selects an input file path that was sent in the request payload.
|
|
52
|
+
- \`url\`: Downloads a new HTTP(S) result file and emits it from this Step.
|
|
53
|
+
|
|
54
|
+
The response never changes the Assembly flow. To process returned files, declare the following Steps
|
|
55
|
+
in the Assembly Template and use this Step as their input.
|
|
56
|
+
`,
|
|
57
|
+
override_lvl1: 'Workflow Automation',
|
|
58
|
+
purpose_sentence:
|
|
59
|
+
'calls your application during an Assembly and emits returned input file references',
|
|
60
|
+
purpose_verb: 'run',
|
|
61
|
+
purpose_word: 'HTTP endpoint',
|
|
62
|
+
purpose_words: 'Call HTTP endpoints',
|
|
63
|
+
title: 'Call HTTP endpoints during Assemblies',
|
|
64
|
+
name: 'HttpRequestRobot',
|
|
65
|
+
queueSlotCount: 1,
|
|
66
|
+
stage: 'alpha',
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const headerValue = z.union([z.boolean(), z.number(), z.string(), z.null()])
|
|
70
|
+
export const robotHttpRequestInstructionsSchema = robotBase
|
|
71
|
+
.merge(robotUse)
|
|
72
|
+
.extend({
|
|
73
|
+
robot: z.literal('/http/request').describe(`
|
|
74
|
+
Calls an HTTP endpoint during the Assembly and expects optional JSON describing zero or more input
|
|
75
|
+
files or result-file URLs to emit from this Step.
|
|
76
|
+
|
|
77
|
+
Your endpoint must return a 2xx response. An empty body, \`[]\`, or \`{ "files": [] }\` means this
|
|
78
|
+
Step emits no files. You can also return one file object, an array of file objects, or
|
|
79
|
+
\`{ "files": [...] }\` / \`{ "files": { "name": {...} } }\`. Returned file objects must include
|
|
80
|
+
either a \`path\` that matches one of the input file paths sent to your endpoint, or an HTTP(S)
|
|
81
|
+
\`url\` that Transloadit downloads and emits as a new result file.
|
|
82
|
+
`),
|
|
83
|
+
url: httpUrlSchema.describe(`
|
|
84
|
+
The HTTP or HTTPS endpoint to call.
|
|
85
|
+
`),
|
|
86
|
+
method: z
|
|
87
|
+
.enum(['DELETE', 'GET', 'PATCH', 'POST', 'PUT'])
|
|
88
|
+
.default('POST')
|
|
89
|
+
.describe(`
|
|
90
|
+
HTTP method to use for the request.
|
|
91
|
+
`),
|
|
92
|
+
payload: z
|
|
93
|
+
.enum(['none', 'metadata', 'file', 'files'])
|
|
94
|
+
.default('none')
|
|
95
|
+
.describe(`
|
|
96
|
+
Controls what is sent to your endpoint.
|
|
97
|
+
|
|
98
|
+
- \`none\`: Send no request body.
|
|
99
|
+
- \`metadata\`: Send a JSON body with Assembly metadata, fields, the previous Step, and file metadata.
|
|
100
|
+
- \`file\`: Send multipart form data with a \`payload\` JSON field and the first input file as a
|
|
101
|
+
\`file\` part.
|
|
102
|
+
- \`files\`: Send multipart form data with a \`payload\` JSON field and all input files as repeated
|
|
103
|
+
\`files[]\` parts. Useful with \`bundle_steps\`.
|
|
104
|
+
|
|
105
|
+
The \`payload\` JSON object contains \`assembly\`, \`fields\`, \`previous_step\`, \`file\`, and
|
|
106
|
+
\`files\`. \`file\` is the first input file’s metadata or \`null\`; \`files\` is an array of input
|
|
107
|
+
file metadata.
|
|
108
|
+
`),
|
|
109
|
+
headers: z
|
|
110
|
+
.union([
|
|
111
|
+
z.array(z.string()),
|
|
112
|
+
z.array(z.record(headerValue)),
|
|
113
|
+
z.record(headerValue),
|
|
114
|
+
z.string(),
|
|
115
|
+
])
|
|
116
|
+
.default([])
|
|
117
|
+
.describe(`
|
|
118
|
+
Custom request headers.
|
|
119
|
+
|
|
120
|
+
Headers can be specified as an array of strings in the format \`"Header-Name: value"\`, an array
|
|
121
|
+
of objects, an object map, or a JSON string that will be parsed into an object/array.
|
|
122
|
+
|
|
123
|
+
${httpHeaderSafetyDescription}
|
|
124
|
+
`),
|
|
125
|
+
timeout: z
|
|
126
|
+
.number()
|
|
127
|
+
.int()
|
|
128
|
+
.positive()
|
|
129
|
+
.max(300)
|
|
130
|
+
.default(60)
|
|
131
|
+
.describe(`
|
|
132
|
+
Maximum number of seconds to wait for the HTTP request.
|
|
133
|
+
|
|
134
|
+
The effective timeout is the lower of this value and Transloadit’s server-side cap. The cap is 30
|
|
135
|
+
seconds plus 1 second per MiB sent to your endpoint.
|
|
136
|
+
`),
|
|
137
|
+
max_response_size: z
|
|
138
|
+
.number()
|
|
139
|
+
.int()
|
|
140
|
+
.positive()
|
|
141
|
+
.max(10 * 1024 * 1024)
|
|
142
|
+
.default(1024 * 1024)
|
|
143
|
+
.describe(`
|
|
144
|
+
Maximum accepted response size in bytes. The response should normally be a small JSON document.
|
|
145
|
+
`),
|
|
146
|
+
max_result_files: z
|
|
147
|
+
.number()
|
|
148
|
+
.int()
|
|
149
|
+
.positive()
|
|
150
|
+
.max(100)
|
|
151
|
+
.default(10)
|
|
152
|
+
.describe(`
|
|
153
|
+
Maximum number of files that the endpoint may return.
|
|
154
|
+
`),
|
|
155
|
+
max_result_file_size: z
|
|
156
|
+
.number()
|
|
157
|
+
.int()
|
|
158
|
+
.positive()
|
|
159
|
+
.max(5 * 1024 * 1024 * 1024)
|
|
160
|
+
.default(100 * 1024 * 1024)
|
|
161
|
+
.describe(`
|
|
162
|
+
Maximum allowed size in bytes for each result file returned by URL. If the remote server reports a
|
|
163
|
+
larger file size, the result download is rejected before it starts. If the remote server does not
|
|
164
|
+
report a size upfront, the download is aborted once this limit is exceeded.
|
|
165
|
+
`),
|
|
166
|
+
result_download_timeout: z
|
|
167
|
+
.number()
|
|
168
|
+
.int()
|
|
169
|
+
.positive()
|
|
170
|
+
.max(600)
|
|
171
|
+
.default(120)
|
|
172
|
+
.describe(`
|
|
173
|
+
Maximum number of seconds to spend downloading each result file returned by URL.
|
|
174
|
+
`),
|
|
175
|
+
})
|
|
176
|
+
.strict()
|
|
177
|
+
|
|
178
|
+
export const robotDefinition: RobotDefinition<typeof robotHttpRequestInstructionsSchema.shape> =
|
|
179
|
+
defineRobot(meta, robotHttpRequestInstructionsSchema)
|
|
180
|
+
|
|
181
|
+
export const {
|
|
182
|
+
withHiddenFields: robotHttpRequestInstructionsWithHiddenFieldsSchema,
|
|
183
|
+
interpolatable: interpolatableRobotHttpRequestInstructionsSchema,
|
|
184
|
+
interpolatableWithHiddenFields: interpolatableRobotHttpRequestInstructionsWithHiddenFieldsSchema,
|
|
185
|
+
} = robotDefinition
|
|
186
|
+
|
|
187
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
188
|
+
|
|
189
|
+
export type RobotHttpRequestInstructions = Instructions['output']
|
|
190
|
+
export type RobotHttpRequestInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
191
|
+
export type InterpolatableRobotHttpRequestInstructions = Instructions['interpolatableInput']
|
|
192
|
+
export type InterpolatableRobotHttpRequestInstructionsInput = Instructions['interpolatableInput']
|
|
193
|
+
export type InterpolatableRobotHttpRequestInstructionsWithHiddenFields =
|
|
194
|
+
Instructions['interpolatableHiddenOutput']
|
|
195
|
+
export type InterpolatableRobotHttpRequestInstructionsWithHiddenFieldsInput =
|
|
196
|
+
Instructions['interpolatableHiddenInput']
|