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,29 +1,27 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
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
|
|
|
13
19
|
export const meta: RobotMetaInput = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
translated: {
|
|
20
|
-
robot: '/text/translate',
|
|
21
|
-
use: ':original',
|
|
22
|
-
target_language: 'de',
|
|
23
|
-
provider: 'aws',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
20
|
+
...robotArtificialIntelligenceMeta,
|
|
21
|
+
example_code: createProcessingExample('translated', '/text/translate', {
|
|
22
|
+
target_language: 'de',
|
|
23
|
+
provider: 'aws',
|
|
24
|
+
}),
|
|
27
25
|
example_code_description: 'Translate uploaded text file contents to German:',
|
|
28
26
|
extended_description: `
|
|
29
27
|
> [!Warning]
|
|
@@ -42,26 +40,16 @@ export const meta: RobotMetaInput = {
|
|
|
42
40
|
|
|
43
41
|
{%- endfor %}
|
|
44
42
|
`,
|
|
45
|
-
minimum_charge: 1048576,
|
|
46
|
-
output_factor: 1,
|
|
47
43
|
override_lvl1: 'Artificial Intelligence',
|
|
48
44
|
purpose_sentence: 'translates text in documents',
|
|
49
45
|
purpose_verb: 'translate',
|
|
50
46
|
purpose_word: 'text',
|
|
51
47
|
purpose_words: 'Translate text in documents',
|
|
52
|
-
service_slug: 'artificial-intelligence',
|
|
53
|
-
slot_count: 10,
|
|
54
48
|
title: 'Translate text',
|
|
55
49
|
typical_file_size_mb: 1,
|
|
56
50
|
typical_file_type: 'document',
|
|
57
51
|
name: 'TextTranslateRobot',
|
|
58
52
|
priceFactor: 0.00008,
|
|
59
|
-
queueSlotCount: 10,
|
|
60
|
-
isAllowedForUrlTransform: true,
|
|
61
|
-
trackOutputFileSize: true,
|
|
62
|
-
isInternal: false,
|
|
63
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
64
|
-
stage: 'ga',
|
|
65
53
|
}
|
|
66
54
|
|
|
67
55
|
const translatableLanguages = z
|
|
@@ -193,11 +181,7 @@ You can use the text that we return in your application, or you can pass the tex
|
|
|
193
181
|
> [!Note]
|
|
194
182
|
> **This <dfn>Robot</dfn> accepts only files with a \`text/*\` MIME-type,** including plain text and Markdown. For documents in other formats, use [🤖/document/convert](/docs/robots/document-convert/) to first convert them into a compatible text format before proceeding.
|
|
195
183
|
`),
|
|
196
|
-
provider: awsGcpAiProviderSchema.describe(
|
|
197
|
-
${autoProviderDescription}
|
|
198
|
-
|
|
199
|
-
Set this to \`"aws"\` or \`"gcp"\` to force a specific provider.
|
|
200
|
-
`),
|
|
184
|
+
provider: awsGcpAiProviderSchema.describe(robotParameterDocs.ai_provider.description),
|
|
201
185
|
target_language: translatableLanguages.describe(`
|
|
202
186
|
The desired language to translate to.
|
|
203
187
|
|
|
@@ -213,34 +197,23 @@ If the exact language can't be found, a generic variant can be fallen back to. F
|
|
|
213
197
|
})
|
|
214
198
|
.strict()
|
|
215
199
|
|
|
216
|
-
export const
|
|
217
|
-
robotTextTranslateInstructionsSchema
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
>
|
|
227
|
-
|
|
228
|
-
export
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
export type
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
export type
|
|
235
|
-
|
|
236
|
-
>
|
|
237
|
-
|
|
238
|
-
export const interpolatableRobotTextTranslateInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
239
|
-
robotTextTranslateInstructionsWithHiddenFieldsSchema,
|
|
240
|
-
)
|
|
241
|
-
export type InterpolatableRobotTextTranslateInstructionsWithHiddenFields = z.infer<
|
|
242
|
-
typeof interpolatableRobotTextTranslateInstructionsWithHiddenFieldsSchema
|
|
243
|
-
>
|
|
244
|
-
export type InterpolatableRobotTextTranslateInstructionsWithHiddenFieldsInput = z.input<
|
|
245
|
-
typeof interpolatableRobotTextTranslateInstructionsWithHiddenFieldsSchema
|
|
246
|
-
>
|
|
200
|
+
export const robotDefinition: RobotDefinition<typeof robotTextTranslateInstructionsSchema.shape> =
|
|
201
|
+
defineRobot(meta, robotTextTranslateInstructionsSchema)
|
|
202
|
+
|
|
203
|
+
export const {
|
|
204
|
+
withHiddenFields: robotTextTranslateInstructionsWithHiddenFieldsSchema,
|
|
205
|
+
interpolatable: interpolatableRobotTextTranslateInstructionsSchema,
|
|
206
|
+
interpolatableWithHiddenFields:
|
|
207
|
+
interpolatableRobotTextTranslateInstructionsWithHiddenFieldsSchema,
|
|
208
|
+
} = robotDefinition
|
|
209
|
+
|
|
210
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
211
|
+
|
|
212
|
+
export type RobotTextTranslateInstructions = Instructions['output']
|
|
213
|
+
export type RobotTextTranslateInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
214
|
+
export type InterpolatableRobotTextTranslateInstructions = Instructions['interpolatableInput']
|
|
215
|
+
export type InterpolatableRobotTextTranslateInstructionsInput = Instructions['interpolatableInput']
|
|
216
|
+
export type InterpolatableRobotTextTranslateInstructionsWithHiddenFields =
|
|
217
|
+
Instructions['interpolatableHiddenOutput']
|
|
218
|
+
export type InterpolatableRobotTextTranslateInstructionsWithHiddenFieldsInput =
|
|
219
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,57 +1,37 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
bucketImportPath,
|
|
11
|
+
createStorageImportExample,
|
|
12
|
+
defineRobot,
|
|
13
|
+
recursiveImport,
|
|
14
|
+
recursiveImportPageNumber,
|
|
15
|
+
recursiveImportPageSize,
|
|
11
16
|
return_file_stubs,
|
|
12
17
|
robotBase,
|
|
13
18
|
robotImport,
|
|
19
|
+
robotImportMeta,
|
|
14
20
|
tigrisBase,
|
|
15
21
|
} from './_instructions-primitives.ts'
|
|
16
22
|
|
|
17
23
|
export const meta: RobotMetaInput = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
discount_pct: 90,
|
|
21
|
-
example_code: {
|
|
22
|
-
steps: {
|
|
23
|
-
imported: {
|
|
24
|
-
robot: '/tigris/import',
|
|
25
|
-
credentials: 'YOUR_TIGRIS_CREDENTIALS',
|
|
26
|
-
path: 'path/to/files/',
|
|
27
|
-
recursive: true,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
24
|
+
...robotImportMeta,
|
|
25
|
+
example_code: createStorageImportExample('/tigris/import', 'YOUR_TIGRIS_CREDENTIALS'),
|
|
31
26
|
example_code_description:
|
|
32
27
|
'Import files from the `path/to/files` directory and its subdirectories:',
|
|
33
28
|
has_small_icon: true,
|
|
34
|
-
minimum_charge: 0,
|
|
35
|
-
output_factor: 1,
|
|
36
|
-
override_lvl1: 'File Importing',
|
|
37
29
|
purpose_sentence: 'imports whole directories of files from your Tigris bucket',
|
|
38
|
-
purpose_verb: 'import',
|
|
39
30
|
purpose_word: 'Tigris',
|
|
40
31
|
purpose_words: 'Import files from Tigris',
|
|
41
32
|
requires_credentials: true,
|
|
42
|
-
service_slug: 'file-importing',
|
|
43
|
-
slot_count: 20,
|
|
44
33
|
title: 'Import files from Tigris',
|
|
45
|
-
typical_file_size_mb: 1.2,
|
|
46
|
-
typical_file_type: 'file',
|
|
47
34
|
name: 'TigrisImportRobot',
|
|
48
|
-
priceFactor: 6.6666,
|
|
49
|
-
queueSlotCount: 20,
|
|
50
|
-
isAllowedForUrlTransform: true,
|
|
51
|
-
trackOutputFileSize: false,
|
|
52
|
-
isInternal: false,
|
|
53
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
54
|
-
stage: 'ga',
|
|
55
35
|
}
|
|
56
36
|
|
|
57
37
|
export const robotTigrisImportInstructionsSchema = robotBase
|
|
@@ -59,30 +39,10 @@ export const robotTigrisImportInstructionsSchema = robotBase
|
|
|
59
39
|
.merge(tigrisBase)
|
|
60
40
|
.extend({
|
|
61
41
|
robot: z.literal('/tigris/import'),
|
|
62
|
-
path:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Directories are **not** imported recursively. If you want to import files from subdirectories and sub-subdirectories, enable the \`recursive\` parameter.
|
|
68
|
-
|
|
69
|
-
If you want to import all files from the root directory, please use \`/\` as the value here. In this case, make sure all your objects belong to a path. If you have objects in the root of your bucket that aren't prefixed with \`/\`, you'll receive an error: \`A client error (NoSuchKey) occurred when calling the GetObject operation: The specified key does not exist.\`
|
|
70
|
-
|
|
71
|
-
You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
|
|
72
|
-
`),
|
|
73
|
-
recursive: recursive.describe(`
|
|
74
|
-
Setting this to \`true\` will enable importing files from subdirectories and sub-subdirectories (etc.) of the given path.
|
|
75
|
-
|
|
76
|
-
Please use the pagination parameters \`page_number\` and \`files_per_page\` wisely here.
|
|
77
|
-
`),
|
|
78
|
-
page_number: page_number.describe(`
|
|
79
|
-
The pagination page number. For now, in order to not break backwards compatibility in non-recursive imports, this only works when recursive is set to \`true\`.
|
|
80
|
-
|
|
81
|
-
When doing big imports, make sure no files are added or removed from other scripts within your path, otherwise you might get weird results with the pagination.
|
|
82
|
-
`),
|
|
83
|
-
files_per_page: files_per_page.describe(`
|
|
84
|
-
The pagination page size. This only works when recursive is \`true\` for now, in order to not break backwards compatibility in non-recursive imports.
|
|
85
|
-
`),
|
|
42
|
+
path: bucketImportPath,
|
|
43
|
+
recursive: recursiveImport,
|
|
44
|
+
page_number: recursiveImportPageNumber,
|
|
45
|
+
files_per_page: recursiveImportPageSize,
|
|
86
46
|
return_file_stubs,
|
|
87
47
|
bucket_region: z
|
|
88
48
|
.string()
|
|
@@ -91,34 +51,22 @@ The pagination page size. This only works when recursive is \`true\` for now, in
|
|
|
91
51
|
})
|
|
92
52
|
.strict()
|
|
93
53
|
|
|
94
|
-
export const
|
|
95
|
-
robotTigrisImportInstructionsSchema
|
|
96
|
-
result: z
|
|
97
|
-
.union([z.literal('debug'), robotTigrisImportInstructionsSchema.shape.result])
|
|
98
|
-
.optional(),
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
export type RobotTigrisImportInstructions = z.infer<typeof robotTigrisImportInstructionsSchema>
|
|
102
|
-
export type RobotTigrisImportInstructionsWithHiddenFields = z.infer<
|
|
103
|
-
typeof robotTigrisImportInstructionsWithHiddenFieldsSchema
|
|
104
|
-
>
|
|
54
|
+
export const robotDefinition: RobotDefinition<typeof robotTigrisImportInstructionsSchema.shape> =
|
|
55
|
+
defineRobot(meta, robotTigrisImportInstructionsSchema)
|
|
105
56
|
|
|
106
|
-
export const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
57
|
+
export const {
|
|
58
|
+
withHiddenFields: robotTigrisImportInstructionsWithHiddenFieldsSchema,
|
|
59
|
+
interpolatable: interpolatableRobotTigrisImportInstructionsSchema,
|
|
60
|
+
interpolatableWithHiddenFields: interpolatableRobotTigrisImportInstructionsWithHiddenFieldsSchema,
|
|
61
|
+
} = robotDefinition
|
|
111
62
|
|
|
112
|
-
|
|
113
|
-
typeof interpolatableRobotTigrisImportInstructionsSchema
|
|
114
|
-
>
|
|
63
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
115
64
|
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
export type
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
export type InterpolatableRobotTigrisImportInstructionsWithHiddenFieldsInput =
|
|
123
|
-
|
|
124
|
-
>
|
|
65
|
+
export type RobotTigrisImportInstructions = Instructions['output']
|
|
66
|
+
export type RobotTigrisImportInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
67
|
+
export type InterpolatableRobotTigrisImportInstructions = Instructions['interpolatableInput']
|
|
68
|
+
export type InterpolatableRobotTigrisImportInstructionsInput = Instructions['interpolatableInput']
|
|
69
|
+
export type InterpolatableRobotTigrisImportInstructionsWithHiddenFields =
|
|
70
|
+
Instructions['interpolatableHiddenOutput']
|
|
71
|
+
export type InterpolatableRobotTigrisImportInstructionsWithHiddenFieldsInput =
|
|
72
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,45 +1,32 @@
|
|
|
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
|
+
robotBase,
|
|
13
|
+
robotStoreMeta,
|
|
14
|
+
robotUse,
|
|
15
|
+
storageAcl,
|
|
16
|
+
storeFilePath,
|
|
17
|
+
tigrisBase,
|
|
18
|
+
} from './_instructions-primitives.ts'
|
|
6
19
|
|
|
7
20
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
discount_pct: 84.99984999849998,
|
|
11
|
-
example_code: {
|
|
12
|
-
steps: {
|
|
13
|
-
exported: {
|
|
14
|
-
robot: '/tigris/store',
|
|
15
|
-
use: ':original',
|
|
16
|
-
credentials: 'YOUR_TIGRIS_CREDENTIALS',
|
|
17
|
-
path: 'my_target_folder/${unique_prefix}/${file.url_name}',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
+
...robotStoreMeta,
|
|
22
|
+
example_code: createStorageStoreExample('/tigris/store', 'YOUR_TIGRIS_CREDENTIALS'),
|
|
21
23
|
example_code_description: 'Export uploaded files to `my_target_folder` on Tigris:',
|
|
22
24
|
has_small_icon: true,
|
|
23
|
-
minimum_charge: 0,
|
|
24
|
-
output_factor: 1,
|
|
25
|
-
override_lvl1: 'File Exporting',
|
|
26
25
|
purpose_sentence: 'exports encoding results to Tigris buckets',
|
|
27
|
-
purpose_verb: 'export',
|
|
28
26
|
purpose_word: 'Tigris',
|
|
29
27
|
purpose_words: 'Export files to Tigris',
|
|
30
|
-
service_slug: 'file-exporting',
|
|
31
|
-
slot_count: 10,
|
|
32
28
|
title: 'Export files to Tigris',
|
|
33
|
-
typical_file_size_mb: 1.2,
|
|
34
|
-
typical_file_type: 'file',
|
|
35
29
|
name: 'TigrisStoreRobot',
|
|
36
|
-
priceFactor: 6.6666,
|
|
37
|
-
queueSlotCount: 10,
|
|
38
|
-
isAllowedForUrlTransform: true,
|
|
39
|
-
trackOutputFileSize: false,
|
|
40
|
-
isInternal: false,
|
|
41
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
42
|
-
stage: 'ga',
|
|
43
30
|
}
|
|
44
31
|
|
|
45
32
|
export const robotTigrisStoreInstructionsSchema = robotBase
|
|
@@ -49,18 +36,8 @@ export const robotTigrisStoreInstructionsSchema = robotBase
|
|
|
49
36
|
robot: z.literal('/tigris/store').describe(`
|
|
50
37
|
The URL to the result file will be returned in the <dfn>Assembly Status JSON</dfn>.
|
|
51
38
|
`),
|
|
52
|
-
path:
|
|
53
|
-
|
|
54
|
-
.default('${unique_prefix}/${file.url_name}')
|
|
55
|
-
.describe(`
|
|
56
|
-
The path at which the file is to be stored. This may include any available [Assembly variables](/docs/topics/assembly-instructions/#assembly-variables). The path must not be a directory.
|
|
57
|
-
`),
|
|
58
|
-
acl: z
|
|
59
|
-
.enum(['private', 'public-read'])
|
|
60
|
-
.default('public-read')
|
|
61
|
-
.describe(`
|
|
62
|
-
The permissions used for this file.
|
|
63
|
-
`),
|
|
39
|
+
path: storeFilePath,
|
|
40
|
+
acl: storageAcl,
|
|
64
41
|
headers: z
|
|
65
42
|
.record(z.string())
|
|
66
43
|
.default({ 'Content-Type': '${file.mime}' })
|
|
@@ -86,34 +63,22 @@ If this parameter is not used, no URL signing is done.
|
|
|
86
63
|
})
|
|
87
64
|
.strict()
|
|
88
65
|
|
|
89
|
-
export const
|
|
90
|
-
robotTigrisStoreInstructionsSchema
|
|
91
|
-
result: z
|
|
92
|
-
.union([z.literal('debug'), robotTigrisStoreInstructionsSchema.shape.result])
|
|
93
|
-
.optional(),
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
export type RobotTigrisStoreInstructions = z.infer<typeof robotTigrisStoreInstructionsSchema>
|
|
97
|
-
export type RobotTigrisStoreInstructionsWithHiddenFields = z.infer<
|
|
98
|
-
typeof robotTigrisStoreInstructionsWithHiddenFieldsSchema
|
|
99
|
-
>
|
|
66
|
+
export const robotDefinition: RobotDefinition<typeof robotTigrisStoreInstructionsSchema.shape> =
|
|
67
|
+
defineRobot(meta, robotTigrisStoreInstructionsSchema)
|
|
100
68
|
|
|
101
|
-
export const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
69
|
+
export const {
|
|
70
|
+
withHiddenFields: robotTigrisStoreInstructionsWithHiddenFieldsSchema,
|
|
71
|
+
interpolatable: interpolatableRobotTigrisStoreInstructionsSchema,
|
|
72
|
+
interpolatableWithHiddenFields: interpolatableRobotTigrisStoreInstructionsWithHiddenFieldsSchema,
|
|
73
|
+
} = robotDefinition
|
|
106
74
|
|
|
107
|
-
|
|
108
|
-
typeof interpolatableRobotTigrisStoreInstructionsSchema
|
|
109
|
-
>
|
|
75
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
110
76
|
|
|
111
|
-
export
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
export type
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export type InterpolatableRobotTigrisStoreInstructionsWithHiddenFieldsInput =
|
|
118
|
-
|
|
119
|
-
>
|
|
77
|
+
export type RobotTigrisStoreInstructions = Instructions['output']
|
|
78
|
+
export type RobotTigrisStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
79
|
+
export type InterpolatableRobotTigrisStoreInstructions = Instructions['interpolatableInput']
|
|
80
|
+
export type InterpolatableRobotTigrisStoreInstructionsInput = Instructions['interpolatableInput']
|
|
81
|
+
export type InterpolatableRobotTigrisStoreInstructionsWithHiddenFields =
|
|
82
|
+
Instructions['interpolatableHiddenOutput']
|
|
83
|
+
export type InterpolatableRobotTigrisStoreInstructionsWithHiddenFieldsInput =
|
|
84
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,13 +1,15 @@
|
|
|
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 { defineRobot, robotBase, robotContentDeliveryMeta } from './_instructions-primitives.ts'
|
|
6
10
|
|
|
7
11
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
discount_factor: 0.04,
|
|
10
|
-
discount_pct: 96,
|
|
12
|
+
...robotContentDeliveryMeta,
|
|
11
13
|
example_code: {
|
|
12
14
|
steps: {
|
|
13
15
|
deliver: {
|
|
@@ -16,31 +18,17 @@ export const meta: RobotMetaInput = {
|
|
|
16
18
|
},
|
|
17
19
|
},
|
|
18
20
|
example_code_description: 'Cache and deliver files over Smart CDN using the tlcdn.com domain:',
|
|
19
|
-
minimum_charge: 102400,
|
|
20
|
-
output_factor: 1,
|
|
21
21
|
override_lvl1: 'Content Delivery',
|
|
22
22
|
purpose_sentence: 'caches and delivers files globally',
|
|
23
23
|
purpose_verb: 'cache & deliver',
|
|
24
24
|
purpose_word: 'Cache and deliver files',
|
|
25
25
|
purpose_words: 'Cache and deliver files globally',
|
|
26
|
-
service_slug: 'content-delivery',
|
|
27
|
-
slot_count: 0,
|
|
28
26
|
title: 'Cache and deliver files globally',
|
|
29
|
-
typical_file_size_mb: 1.2,
|
|
30
|
-
typical_file_type: 'file',
|
|
31
27
|
name: 'TlcdnDeliverRobot',
|
|
32
28
|
// Baseline factor for non-HIPAA delivery; HIPAA delivery uses a 20% lower factor.
|
|
33
29
|
priceFactor: 25,
|
|
34
|
-
queueSlotCount: 0,
|
|
35
30
|
minimumCharge: 102400,
|
|
36
31
|
minimumChargeUsd: 0.0000152587890625,
|
|
37
|
-
downloadInputFiles: false,
|
|
38
|
-
preserveInputFileUrls: true,
|
|
39
|
-
isAllowedForUrlTransform: false,
|
|
40
|
-
trackOutputFileSize: false,
|
|
41
|
-
isInternal: true,
|
|
42
|
-
stage: 'ga',
|
|
43
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
44
32
|
}
|
|
45
33
|
|
|
46
34
|
export const robotTlcdnDeliverInstructionsSchema = robotBase
|
|
@@ -58,34 +46,22 @@ When you want Transloadit to transform files on the fly, this <dfn>Robot</dfn> c
|
|
|
58
46
|
})
|
|
59
47
|
.strict()
|
|
60
48
|
|
|
61
|
-
export const
|
|
62
|
-
robotTlcdnDeliverInstructionsSchema
|
|
63
|
-
result: z
|
|
64
|
-
.union([z.literal('debug'), robotTlcdnDeliverInstructionsSchema.shape.result])
|
|
65
|
-
.optional(),
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
export type RobotTlcdnDeliverInstructions = z.infer<typeof robotTlcdnDeliverInstructionsSchema>
|
|
69
|
-
export type RobotTlcdnDeliverInstructionsWithHiddenFields = z.infer<
|
|
70
|
-
typeof robotTlcdnDeliverInstructionsWithHiddenFieldsSchema
|
|
71
|
-
>
|
|
49
|
+
export const robotDefinition: RobotDefinition<typeof robotTlcdnDeliverInstructionsSchema.shape> =
|
|
50
|
+
defineRobot(meta, robotTlcdnDeliverInstructionsSchema)
|
|
72
51
|
|
|
73
|
-
export const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
52
|
+
export const {
|
|
53
|
+
withHiddenFields: robotTlcdnDeliverInstructionsWithHiddenFieldsSchema,
|
|
54
|
+
interpolatable: interpolatableRobotTlcdnDeliverInstructionsSchema,
|
|
55
|
+
interpolatableWithHiddenFields: interpolatableRobotTlcdnDeliverInstructionsWithHiddenFieldsSchema,
|
|
56
|
+
} = robotDefinition
|
|
78
57
|
|
|
79
|
-
|
|
80
|
-
typeof interpolatableRobotTlcdnDeliverInstructionsSchema
|
|
81
|
-
>
|
|
58
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
82
59
|
|
|
83
|
-
export
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
export type
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
export type InterpolatableRobotTlcdnDeliverInstructionsWithHiddenFieldsInput =
|
|
90
|
-
|
|
91
|
-
>
|
|
60
|
+
export type RobotTlcdnDeliverInstructions = Instructions['output']
|
|
61
|
+
export type RobotTlcdnDeliverInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
62
|
+
export type InterpolatableRobotTlcdnDeliverInstructions = Instructions['interpolatableInput']
|
|
63
|
+
export type InterpolatableRobotTlcdnDeliverInstructionsInput = Instructions['interpolatableInput']
|
|
64
|
+
export type InterpolatableRobotTlcdnDeliverInstructionsWithHiddenFields =
|
|
65
|
+
Instructions['interpolatableHiddenOutput']
|
|
66
|
+
export type InterpolatableRobotTlcdnDeliverInstructionsWithHiddenFieldsInput =
|
|
67
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,16 +1,9 @@
|
|
|
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
5
|
import { damIdSchema } from '../storageAsset.ts'
|
|
6
|
-
import {
|
|
7
|
-
booleanStringSchema,
|
|
8
|
-
interpolateRobot,
|
|
9
|
-
interpolationSchemaFull,
|
|
10
|
-
recursive,
|
|
11
|
-
robotBase,
|
|
12
|
-
robotImport,
|
|
13
|
-
} from './_instructions-primitives.ts'
|
|
6
|
+
import { interpolateRobot, recursive, robotBase, robotImport } from './_instructions-primitives.ts'
|
|
14
7
|
|
|
15
8
|
/** Cross-field validation runs after interpolation-aware parsing at the Assembly Step boundary. */
|
|
16
9
|
export function refineTransloaditImportSelector(
|
|
@@ -47,10 +40,15 @@ Whether to import files from subfolders and sub-subfolders when \`path\` is a fo
|
|
|
47
40
|
only the folder's own files are imported.
|
|
48
41
|
`
|
|
49
42
|
|
|
43
|
+
/** Storage imports require proof of possession independently of Workspace signature settings. */
|
|
44
|
+
export const transloaditImportAuthenticationGuidanceLines = [
|
|
45
|
+
'Assemblies that use `/transloadit/import`, directly or through a Template, require',
|
|
46
|
+
'either a bearer token or signed `params` with a future `params.auth.expires` timestamp.',
|
|
47
|
+
'This applies even when Workspace Signature Authentication is disabled. An Auth Key alone',
|
|
48
|
+
'is not sufficient; bearer-authenticated requests do not need a separate signature or expiry.',
|
|
49
|
+
] as const
|
|
50
|
+
|
|
50
51
|
export const meta: RobotMetaInput = {
|
|
51
|
-
bytescount: 10,
|
|
52
|
-
discount_factor: 0.1,
|
|
53
|
-
discount_pct: 90,
|
|
54
52
|
example_code: {
|
|
55
53
|
steps: {
|
|
56
54
|
imported: {
|
|
@@ -63,9 +61,7 @@ export const meta: RobotMetaInput = {
|
|
|
63
61
|
has_small_icon: true,
|
|
64
62
|
isAllowedForUrlTransform: true,
|
|
65
63
|
isInternal: false,
|
|
66
|
-
minimum_charge: 0,
|
|
67
64
|
name: 'TransloaditImportRobot',
|
|
68
|
-
output_factor: 1,
|
|
69
65
|
override_lvl1: 'File Importing',
|
|
70
66
|
priceFactor: 10,
|
|
71
67
|
purpose_sentence: 'imports files from Transloadit Storage',
|
|
@@ -75,7 +71,6 @@ export const meta: RobotMetaInput = {
|
|
|
75
71
|
queueSlotCount: 10,
|
|
76
72
|
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
77
73
|
service_slug: 'file-importing',
|
|
78
|
-
slot_count: 10,
|
|
79
74
|
stage: 'beta',
|
|
80
75
|
title: 'Import files from Transloadit Storage',
|
|
81
76
|
typical_file_size_mb: 1.2,
|
|
@@ -89,6 +84,8 @@ export const robotTransloaditImportInstructionsSchema = robotBase
|
|
|
89
84
|
Imports files from your Workspace's Transloadit Storage. Select a mutable location with
|
|
90
85
|
\`path\`, or a logical asset with \`asset_id\`. Add \`version_id\` to pin the exact stored bytes.
|
|
91
86
|
IDs remain subject to Workspace access and version retention.
|
|
87
|
+
|
|
88
|
+
${transloaditImportAuthenticationGuidanceLines.join('\n')}
|
|
92
89
|
`),
|
|
93
90
|
path: z
|
|
94
91
|
.string()
|
|
@@ -125,17 +122,7 @@ export type RobotTransloaditImportInstructionsWithHiddenFields = z.infer<
|
|
|
125
122
|
|
|
126
123
|
export const interpolatableRobotTransloaditImportInstructionsSchema = interpolateRobot(
|
|
127
124
|
robotTransloaditImportInstructionsSchema,
|
|
128
|
-
)
|
|
129
|
-
// The generic boolean interpolator changes literal false to true. Keep Storage's documented
|
|
130
|
-
// false default intact; unresolved variables are validated after uploader interpolation.
|
|
131
|
-
recursive: z
|
|
132
|
-
.union([
|
|
133
|
-
recursive,
|
|
134
|
-
booleanStringSchema.transform((value) => value === 'true'),
|
|
135
|
-
interpolationSchemaFull,
|
|
136
|
-
])
|
|
137
|
-
.describe(recursiveDescription),
|
|
138
|
-
})
|
|
125
|
+
)
|
|
139
126
|
export type InterpolatableRobotTransloaditImportInstructions =
|
|
140
127
|
InterpolatableRobotTransloaditImportInstructionsInput
|
|
141
128
|
|
|
@@ -144,11 +131,19 @@ export type InterpolatableRobotTransloaditImportInstructionsInput = z.input<
|
|
|
144
131
|
>
|
|
145
132
|
|
|
146
133
|
export const interpolatableRobotTransloaditImportInstructionsWithHiddenFieldsSchema =
|
|
147
|
-
interpolateRobot(robotTransloaditImportInstructionsWithHiddenFieldsSchema)
|
|
148
|
-
recursive: interpolatableRobotTransloaditImportInstructionsSchema.shape.recursive,
|
|
149
|
-
})
|
|
134
|
+
interpolateRobot(robotTransloaditImportInstructionsWithHiddenFieldsSchema)
|
|
150
135
|
export type InterpolatableRobotTransloaditImportInstructionsWithHiddenFields =
|
|
151
136
|
InterpolatableRobotTransloaditImportInstructionsWithHiddenFieldsInput
|
|
152
137
|
export type InterpolatableRobotTransloaditImportInstructionsWithHiddenFieldsInput = z.input<
|
|
153
138
|
typeof interpolatableRobotTransloaditImportInstructionsWithHiddenFieldsSchema
|
|
154
139
|
>
|
|
140
|
+
|
|
141
|
+
export const robotDefinition: RobotSchemaPair<
|
|
142
|
+
typeof interpolatableRobotTransloaditImportInstructionsSchema,
|
|
143
|
+
typeof interpolatableRobotTransloaditImportInstructionsWithHiddenFieldsSchema
|
|
144
|
+
> = {
|
|
145
|
+
meta,
|
|
146
|
+
interpolatable: interpolatableRobotTransloaditImportInstructionsSchema,
|
|
147
|
+
interpolatableWithHiddenFields:
|
|
148
|
+
interpolatableRobotTransloaditImportInstructionsWithHiddenFieldsSchema,
|
|
149
|
+
}
|