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,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
|
+
minioBase,
|
|
13
|
+
robotBase,
|
|
14
|
+
robotStoreMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
storageAcl,
|
|
17
|
+
storeFilePath,
|
|
18
|
+
} from './_instructions-primitives.ts'
|
|
6
19
|
|
|
7
20
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
example_code: {
|
|
12
|
-
steps: {
|
|
13
|
-
exported: {
|
|
14
|
-
robot: '/minio/store',
|
|
15
|
-
use: ':original',
|
|
16
|
-
credentials: 'YOUR_MINIO_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 MinIO:',
|
|
21
|
+
...robotStoreMeta,
|
|
22
|
+
example_code: createStorageStoreExample('/minio/store', 'YOUR_MINIO_CREDENTIALS'),
|
|
23
|
+
example_code_description: 'Export uploaded files to `my_target_folder` in a MinIO bucket:',
|
|
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 MinIO buckets',
|
|
27
|
-
purpose_verb: 'export',
|
|
28
26
|
purpose_word: 'MinIO',
|
|
29
27
|
purpose_words: 'Export files to MinIO',
|
|
30
|
-
service_slug: 'file-exporting',
|
|
31
|
-
slot_count: 10,
|
|
32
28
|
title: 'Export files to MinIO',
|
|
33
|
-
typical_file_size_mb: 1.2,
|
|
34
|
-
typical_file_type: 'file',
|
|
35
29
|
name: 'MinioStoreRobot',
|
|
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 robotMinioStoreInstructionsSchema = robotBase
|
|
@@ -49,23 +36,13 @@ export const robotMinioStoreInstructionsSchema = robotBase
|
|
|
49
36
|
robot: z.literal('/minio/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}' })
|
|
67
44
|
.describe(`
|
|
68
|
-
An object containing a list of headers to be set for this file
|
|
45
|
+
An object containing a list of headers to be set for this file in your MinIO bucket, such as \`{ FileURL: "\${file.url_name}" }\`. This can also include any available [Assembly Variables](/docs/topics/assembly-instructions/#assembly-variables).
|
|
69
46
|
|
|
70
47
|
Object Metadata can be specified using \`x-amz-meta-*\` headers. Note that these headers [do not support non-ASCII metadata values](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#UserMetadata).
|
|
71
48
|
`),
|
|
@@ -82,34 +59,22 @@ If this parameter is not used, no URL signing is done.
|
|
|
82
59
|
})
|
|
83
60
|
.strict()
|
|
84
61
|
|
|
85
|
-
export const
|
|
86
|
-
robotMinioStoreInstructionsSchema
|
|
87
|
-
result: z
|
|
88
|
-
.union([z.literal('debug'), robotMinioStoreInstructionsSchema.shape.result])
|
|
89
|
-
.optional(),
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
export type RobotMinioStoreInstructions = z.infer<typeof robotMinioStoreInstructionsSchema>
|
|
93
|
-
export type RobotMinioStoreInstructionsWithHiddenFields = z.infer<
|
|
94
|
-
typeof robotMinioStoreInstructionsWithHiddenFieldsSchema
|
|
95
|
-
>
|
|
62
|
+
export const robotDefinition: RobotDefinition<typeof robotMinioStoreInstructionsSchema.shape> =
|
|
63
|
+
defineRobot(meta, robotMinioStoreInstructionsSchema)
|
|
96
64
|
|
|
97
|
-
export const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
65
|
+
export const {
|
|
66
|
+
withHiddenFields: robotMinioStoreInstructionsWithHiddenFieldsSchema,
|
|
67
|
+
interpolatable: interpolatableRobotMinioStoreInstructionsSchema,
|
|
68
|
+
interpolatableWithHiddenFields: interpolatableRobotMinioStoreInstructionsWithHiddenFieldsSchema,
|
|
69
|
+
} = robotDefinition
|
|
102
70
|
|
|
103
|
-
|
|
104
|
-
typeof interpolatableRobotMinioStoreInstructionsSchema
|
|
105
|
-
>
|
|
71
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
106
72
|
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
export type
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
export type InterpolatableRobotMinioStoreInstructionsWithHiddenFieldsInput =
|
|
114
|
-
|
|
115
|
-
>
|
|
73
|
+
export type RobotMinioStoreInstructions = Instructions['output']
|
|
74
|
+
export type RobotMinioStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
75
|
+
export type InterpolatableRobotMinioStoreInstructions = Instructions['interpolatableInput']
|
|
76
|
+
export type InterpolatableRobotMinioStoreInstructionsInput = Instructions['interpolatableInput']
|
|
77
|
+
export type InterpolatableRobotMinioStoreInstructionsWithHiddenFields =
|
|
78
|
+
Instructions['interpolatableHiddenOutput']
|
|
79
|
+
export type InterpolatableRobotMinioStoreInstructionsWithHiddenFieldsInput =
|
|
80
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -2,45 +2,31 @@ import type { RobotMetaInput } from './_instructions-primitives.ts'
|
|
|
2
2
|
|
|
3
3
|
import { z } from 'zod'
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
createProcessingExample,
|
|
7
|
+
interpolateRobot,
|
|
8
|
+
robotBase,
|
|
9
|
+
robotCodeEvaluationMeta,
|
|
10
|
+
robotUse,
|
|
11
|
+
} from './_instructions-primitives.ts'
|
|
6
12
|
|
|
7
13
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
use: ':original',
|
|
16
|
-
duration: 10,
|
|
17
|
-
output_files: 3,
|
|
18
|
-
emit_progress: true,
|
|
19
|
-
predict_output: true,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
14
|
+
...robotCodeEvaluationMeta,
|
|
15
|
+
example_code: createProcessingExample('simulate', '/progress/simulate', {
|
|
16
|
+
duration: 10,
|
|
17
|
+
output_files: 3,
|
|
18
|
+
emit_progress: true,
|
|
19
|
+
predict_output: true,
|
|
20
|
+
}),
|
|
23
21
|
example_code_description: 'Simulate Step progress and output generation for testing:',
|
|
24
|
-
minimum_charge: 0,
|
|
25
|
-
output_factor: 1,
|
|
26
|
-
override_lvl1: 'Code Evaluation',
|
|
27
22
|
purpose_sentence: 'simulates Step progress and output generation for tests',
|
|
28
23
|
purpose_verb: 'run',
|
|
29
24
|
purpose_word: 'progress simulation',
|
|
30
25
|
purpose_words: 'Simulate Step progress',
|
|
31
|
-
service_slug: 'code-evaluation',
|
|
32
|
-
slot_count: 20,
|
|
33
26
|
title: 'Simulate Step progress',
|
|
34
|
-
typical_file_size_mb: 1.2,
|
|
35
|
-
typical_file_type: 'file',
|
|
36
27
|
name: 'ProgressSimulateRobot',
|
|
37
|
-
priceFactor: 1,
|
|
38
28
|
queueSlotCount: 20,
|
|
39
|
-
isAllowedForUrlTransform: false,
|
|
40
|
-
trackOutputFileSize: true,
|
|
41
29
|
isInternal: true,
|
|
42
|
-
stage: 'ga',
|
|
43
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
44
30
|
}
|
|
45
31
|
|
|
46
32
|
export const robotProgressSimulateInstructionsSchema = robotBase
|
|
@@ -1,57 +1,39 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
9
|
import {
|
|
10
|
+
createStorageImportExample,
|
|
11
|
+
defineRobot,
|
|
6
12
|
files_per_page,
|
|
7
|
-
interpolateRobot,
|
|
8
13
|
page_number,
|
|
9
14
|
path,
|
|
10
|
-
|
|
15
|
+
recursiveImport,
|
|
11
16
|
return_file_stubs,
|
|
12
17
|
robotBase,
|
|
13
18
|
robotImport,
|
|
19
|
+
robotImportMeta,
|
|
14
20
|
s3Base,
|
|
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: '/s3/import',
|
|
25
|
-
credentials: 'YOUR_AWS_CREDENTIALS',
|
|
26
|
-
path: 'path/to/files/',
|
|
27
|
-
recursive: true,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
24
|
+
...robotImportMeta,
|
|
25
|
+
example_code: createStorageImportExample('/s3/import', 'YOUR_AWS_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 S3 bucket',
|
|
38
|
-
purpose_verb: 'import',
|
|
39
30
|
purpose_word: 'Amazon S3',
|
|
40
31
|
purpose_words: 'Import files from Amazon S3',
|
|
41
32
|
requires_credentials: true,
|
|
42
|
-
service_slug: 'file-importing',
|
|
43
|
-
slot_count: 10,
|
|
44
33
|
title: 'Import files from Amazon S3',
|
|
45
|
-
typical_file_size_mb: 1.2,
|
|
46
|
-
typical_file_type: 'file',
|
|
47
34
|
name: 'S3ImportRobot',
|
|
48
35
|
priceFactor: 10,
|
|
49
36
|
queueSlotCount: 10,
|
|
50
|
-
isAllowedForUrlTransform: true,
|
|
51
|
-
trackOutputFileSize: false,
|
|
52
|
-
isInternal: false,
|
|
53
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: true,
|
|
54
|
-
stage: 'ga',
|
|
55
37
|
}
|
|
56
38
|
|
|
57
39
|
export const robotS3ImportInstructionsSchema = robotBase
|
|
@@ -70,7 +52,7 @@ The URL to the result file in your S3 bucket will be returned in the <dfn>Assemb
|
|
|
70
52
|
|
|
71
53
|
## Limit access
|
|
72
54
|
|
|
73
|
-
You will also need to add permissions to your bucket so that Transloadit can access it properly. Here is an example IAM policy that you can use. Following the [principle of least privilege](https://en.wikipedia.org/wiki/Principle_of_least_privilege), it contains the **minimum required permissions** to
|
|
55
|
+
You will also need to add permissions to your bucket so that Transloadit can access it properly. Here is an example IAM policy that you can use. Following the [principle of least privilege](https://en.wikipedia.org/wiki/Principle_of_least_privilege), it contains the **minimum required permissions** to import a file from your S3 bucket using Transloadit. You may require more permissions (especially viewing permissions) depending on your application.
|
|
74
56
|
|
|
75
57
|
Please change \`{BUCKET_NAME}\` in the values for \`Sid\` and \`Resource\` accordingly. Also, this policy will grant the minimum required permissions to all your users. We advise you to create a separate Amazon IAM user, and use its User ARN (can be found in the "Summary" tab of a user [here](https://console.aws.amazon.com/iam/home#users)) for the \`Principal\` value. More information about this can be found [here](https://docs.aws.amazon.com/AmazonS3/latest/dev/AccessPolicyLanguage_UseCases_s3_a.html).
|
|
76
58
|
|
|
@@ -107,11 +89,7 @@ If you want to import all files from the root directory, please use \`/\` as the
|
|
|
107
89
|
|
|
108
90
|
You can also use an array of path strings here to import multiple paths in the same <dfn>Robot</dfn>'s <dfn>Step</dfn>.
|
|
109
91
|
`),
|
|
110
|
-
recursive:
|
|
111
|
-
Setting this to \`true\` will enable importing files from subdirectories and sub-subdirectories (etc.) of the given path.
|
|
112
|
-
|
|
113
|
-
Please use the pagination parameters \`page_number\` and \`files_per_page\` wisely here.
|
|
114
|
-
`),
|
|
92
|
+
recursive: recursiveImport,
|
|
115
93
|
page_number: page_number.optional().describe(`
|
|
116
94
|
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\`.
|
|
117
95
|
|
|
@@ -145,31 +123,22 @@ Allows you to specify one or more byte ranges to import from the file. S3 must s
|
|
|
145
123
|
})
|
|
146
124
|
.strict()
|
|
147
125
|
|
|
148
|
-
export const
|
|
149
|
-
robotS3ImportInstructionsSchema
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
export type InterpolatableRobotS3ImportInstructions =
|
|
162
|
-
|
|
163
|
-
export type
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
export const interpolatableRobotS3ImportInstructionsWithHiddenFieldsSchema = interpolateRobot(
|
|
168
|
-
robotS3ImportInstructionsWithHiddenFieldsSchema,
|
|
169
|
-
)
|
|
170
|
-
export type InterpolatableRobotS3ImportInstructionsWithHiddenFields = z.infer<
|
|
171
|
-
typeof interpolatableRobotS3ImportInstructionsWithHiddenFieldsSchema
|
|
172
|
-
>
|
|
173
|
-
export type InterpolatableRobotS3ImportInstructionsWithHiddenFieldsInput = z.input<
|
|
174
|
-
typeof interpolatableRobotS3ImportInstructionsWithHiddenFieldsSchema
|
|
175
|
-
>
|
|
126
|
+
export const robotDefinition: RobotDefinition<typeof robotS3ImportInstructionsSchema.shape> =
|
|
127
|
+
defineRobot(meta, robotS3ImportInstructionsSchema)
|
|
128
|
+
|
|
129
|
+
export const {
|
|
130
|
+
withHiddenFields: robotS3ImportInstructionsWithHiddenFieldsSchema,
|
|
131
|
+
interpolatable: interpolatableRobotS3ImportInstructionsSchema,
|
|
132
|
+
interpolatableWithHiddenFields: interpolatableRobotS3ImportInstructionsWithHiddenFieldsSchema,
|
|
133
|
+
} = robotDefinition
|
|
134
|
+
|
|
135
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
136
|
+
|
|
137
|
+
export type RobotS3ImportInstructions = Instructions['output']
|
|
138
|
+
export type RobotS3ImportInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
139
|
+
export type InterpolatableRobotS3ImportInstructions = Instructions['interpolatableInput']
|
|
140
|
+
export type InterpolatableRobotS3ImportInstructionsInput = Instructions['interpolatableInput']
|
|
141
|
+
export type InterpolatableRobotS3ImportInstructionsWithHiddenFields =
|
|
142
|
+
Instructions['interpolatableHiddenOutput']
|
|
143
|
+
export type InterpolatableRobotS3ImportInstructionsWithHiddenFieldsInput =
|
|
144
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,45 +1,37 @@
|
|
|
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
|
+
createStorageStoreExample,
|
|
11
|
+
defineRobotWithHiddenFields,
|
|
12
|
+
robotBase,
|
|
13
|
+
robotStoreMeta,
|
|
14
|
+
robotUse,
|
|
15
|
+
s3Base,
|
|
16
|
+
storeFilePath,
|
|
17
|
+
} from './_instructions-primitives.ts'
|
|
18
|
+
|
|
19
|
+
const s3StoreAclSchema = z
|
|
20
|
+
.enum(['bucket-default', 'private', 'public', 'public-read'])
|
|
21
|
+
.default('public-read')
|
|
6
22
|
|
|
7
23
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
discount_pct: 90,
|
|
11
|
-
example_code: {
|
|
12
|
-
steps: {
|
|
13
|
-
exported: {
|
|
14
|
-
robot: '/s3/store',
|
|
15
|
-
use: ':original',
|
|
16
|
-
credentials: 'YOUR_AWS_CREDENTIALS',
|
|
17
|
-
path: 'my_target_folder/${unique_prefix}/${file.url_name}',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
24
|
+
...robotStoreMeta,
|
|
25
|
+
example_code: createStorageStoreExample('/s3/store', 'YOUR_AWS_CREDENTIALS'),
|
|
21
26
|
example_code_description: 'Export uploaded files to `my_target_folder` in an S3 bucket:',
|
|
22
27
|
has_small_icon: true,
|
|
23
|
-
minimum_charge: 0,
|
|
24
|
-
output_factor: 1,
|
|
25
|
-
override_lvl1: 'File Exporting',
|
|
26
28
|
purpose_sentence: 'exports encoding results to Amazon S3',
|
|
27
|
-
purpose_verb: 'export',
|
|
28
29
|
purpose_word: 'Amazon S3',
|
|
29
30
|
purpose_words: 'Export files to Amazon S3',
|
|
30
|
-
service_slug: 'file-exporting',
|
|
31
|
-
slot_count: 2,
|
|
32
31
|
title: 'Export files to Amazon S3',
|
|
33
|
-
typical_file_size_mb: 1.2,
|
|
34
|
-
typical_file_type: 'file',
|
|
35
32
|
name: 'S3StoreRobot',
|
|
36
33
|
priceFactor: 10,
|
|
37
34
|
queueSlotCount: 2,
|
|
38
|
-
isAllowedForUrlTransform: true,
|
|
39
|
-
trackOutputFileSize: false,
|
|
40
|
-
isInternal: false,
|
|
41
|
-
stage: 'ga',
|
|
42
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
43
35
|
}
|
|
44
36
|
|
|
45
37
|
export const robotS3StoreInstructionsSchema = robotBase
|
|
@@ -52,7 +44,7 @@ If you are new to Amazon S3, see our tutorial on [using your own S3 bucket](/doc
|
|
|
52
44
|
The URL to the result file in your S3 bucket will be returned in the <dfn>Assembly Status JSON</dfn>. If your S3 bucket has versioning enabled, the version ID of the file will be returned within \`meta.version_id\`
|
|
53
45
|
|
|
54
46
|
> [!Warning]
|
|
55
|
-
> **Avoid permission errors.** By default, \`acl\` is set to \`"
|
|
47
|
+
> **Avoid permission errors.** By default, \`acl\` is set to \`"${s3StoreAclSchema.parse(undefined)}"\`. AWS S3 has a bucket setting called \`Block new public ACLs and uploading public objects\`. Set this to <strong>False</strong> in your bucket if you intend to leave \`acl\` as \`"${s3StoreAclSchema.parse(undefined)}"\`. Otherwise, you’ll receive permission errors in your Assemblies despite your S3 credentials being configured correctly.
|
|
56
48
|
|
|
57
49
|
> [!Warning]
|
|
58
50
|
> **Use DNS-compliant bucket names.** Your bucket name [must be DNS-compliant](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) and must not contain uppercase letters. Any non-alphanumeric characters in the file names will be replaced with an underscore, and spaces will be replaced with dashes. If your existing S3 bucket contains uppercase letters or is otherwise not DNS-compliant, rewrite the result URLs using the <dfn>Robot</dfn>’s \`url_prefix\` parameter.
|
|
@@ -89,25 +81,17 @@ In order to build proper result URLs we need to know the region in which your S3
|
|
|
89
81
|
|
|
90
82
|
Please keep in mind that if you use bucket encryption you may also need to add \`"sts:*"\` and \`"kms:*"\` to the bucket policy. Please read [here](https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html) and [here](https://aws.amazon.com/blogs/security/how-to-restrict-amazon-s3-bucket-access-to-a-specific-iam-role/) in case you run into trouble with our example bucket policy.
|
|
91
83
|
`),
|
|
92
|
-
path:
|
|
93
|
-
.string()
|
|
94
|
-
.default('${unique_prefix}/${file.url_name}')
|
|
95
|
-
.describe(`
|
|
96
|
-
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.
|
|
97
|
-
`),
|
|
84
|
+
path: storeFilePath,
|
|
98
85
|
url_prefix: z
|
|
99
86
|
.string()
|
|
100
87
|
.default('http://{bucket}.s3.amazonaws.com/')
|
|
101
88
|
.describe(`
|
|
102
89
|
The URL prefix used for the returned URL, such as \`"http://my.cdn.com/some/path/"\`.
|
|
103
90
|
`),
|
|
104
|
-
acl:
|
|
105
|
-
.enum(['bucket-default', 'private', 'public', 'public-read'])
|
|
106
|
-
.default('public-read')
|
|
107
|
-
.describe(`
|
|
91
|
+
acl: s3StoreAclSchema.describe(`
|
|
108
92
|
The permissions used for this file.
|
|
109
93
|
|
|
110
|
-
Please keep in mind that the default value \`"
|
|
94
|
+
Please keep in mind that the default value \`"${s3StoreAclSchema.parse(undefined)}"\` can lead to permission errors due to the \`"Block all public access"\` checkbox that is checked by default when creating a new Amazon S3 Bucket in the AWS console.
|
|
111
95
|
`),
|
|
112
96
|
check_integrity: z
|
|
113
97
|
.boolean()
|
|
@@ -160,39 +144,34 @@ The session token to use for the S3 store. This is only used if the credentials
|
|
|
160
144
|
})
|
|
161
145
|
.strict()
|
|
162
146
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
.optional()
|
|
169
|
-
.describe(`
|
|
147
|
+
const hiddenFields = {
|
|
148
|
+
skip_region_lookup: z
|
|
149
|
+
.boolean()
|
|
150
|
+
.optional()
|
|
151
|
+
.describe(`
|
|
170
152
|
Internal parameter to skip region lookup for testing purposes.
|
|
171
153
|
`),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export type InterpolatableRobotS3StoreInstructionsWithHiddenFieldsInput = z.input<
|
|
197
|
-
typeof interpolatableRobotS3StoreInstructionsWithHiddenFieldsSchema
|
|
198
|
-
>
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
157
|
+
typeof robotS3StoreInstructionsSchema.shape,
|
|
158
|
+
typeof hiddenFields
|
|
159
|
+
> = defineRobotWithHiddenFields(meta, robotS3StoreInstructionsSchema, hiddenFields)
|
|
160
|
+
|
|
161
|
+
export const {
|
|
162
|
+
withHiddenFields: robotS3StoreInstructionsWithHiddenFieldsSchema,
|
|
163
|
+
interpolatable: interpolatableRobotS3StoreInstructionsSchema,
|
|
164
|
+
interpolatableWithHiddenFields: interpolatableRobotS3StoreInstructionsWithHiddenFieldsSchema,
|
|
165
|
+
} = robotDefinition
|
|
166
|
+
|
|
167
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
168
|
+
|
|
169
|
+
export type RobotS3StoreInstructions = Instructions['output']
|
|
170
|
+
export type RobotS3StoreInstructionsInput = Instructions['input']
|
|
171
|
+
export type RobotS3StoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
172
|
+
export type InterpolatableRobotS3StoreInstructions = Instructions['interpolatableInput']
|
|
173
|
+
export type InterpolatableRobotS3StoreInstructionsInput = Instructions['interpolatableInput']
|
|
174
|
+
export type InterpolatableRobotS3StoreInstructionsWithHiddenFields =
|
|
175
|
+
Instructions['interpolatableHiddenOutput']
|
|
176
|
+
export type InterpolatableRobotS3StoreInstructionsWithHiddenFieldsInput =
|
|
177
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,44 +1,37 @@
|
|
|
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
|
+
createProcessingExample,
|
|
11
|
+
defineRobotWithHiddenFields,
|
|
12
|
+
robotBase,
|
|
13
|
+
robotCodeEvaluationMeta,
|
|
14
|
+
robotUse,
|
|
15
|
+
} from './_instructions-primitives.ts'
|
|
6
16
|
|
|
7
17
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
evaluate: {
|
|
14
|
-
robot: '/script/run',
|
|
15
|
-
use: ':original',
|
|
16
|
-
script:
|
|
17
|
-
'({ width: file.meta.width, height: file.meta.height, area: file.meta.width * file.meta.height })',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
18
|
+
...robotCodeEvaluationMeta,
|
|
19
|
+
example_code: createProcessingExample('evaluate', '/script/run', {
|
|
20
|
+
script:
|
|
21
|
+
'({ width: file.meta.width, height: file.meta.height, area: file.meta.width * file.meta.height })',
|
|
22
|
+
}),
|
|
21
23
|
example_code_description: 'Run JavaScript against uploaded file metadata:',
|
|
22
|
-
minimum_charge: 0,
|
|
23
|
-
output_factor: 1,
|
|
24
|
-
override_lvl1: 'Code Evaluation',
|
|
25
24
|
purpose_sentence: 'runs scripts in Assemblies',
|
|
26
25
|
purpose_verb: 'run',
|
|
27
26
|
purpose_word: 'script',
|
|
28
27
|
purpose_words: 'Run scripts in Assemblies',
|
|
29
|
-
service_slug: 'code-evaluation',
|
|
30
|
-
slot_count: 5,
|
|
31
28
|
title: 'Run Scripts',
|
|
32
29
|
typical_file_size_mb: 0.0001,
|
|
33
|
-
typical_file_type: 'file',
|
|
34
30
|
name: 'ScriptRunRobot',
|
|
35
31
|
priceFactor: 10,
|
|
36
32
|
queueSlotCount: 5,
|
|
37
33
|
isAllowedForUrlTransform: true,
|
|
38
34
|
trackOutputFileSize: false,
|
|
39
|
-
isInternal: false,
|
|
40
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
41
|
-
stage: 'ga',
|
|
42
35
|
}
|
|
43
36
|
|
|
44
37
|
export const robotScriptRunInstructionsSchema = robotBase
|
|
@@ -97,37 +90,33 @@ You can check whether evaluating this script was free by inspecting \`file.meta.
|
|
|
97
90
|
})
|
|
98
91
|
.strict()
|
|
99
92
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
.optional()
|
|
106
|
-
.describe(`
|
|
93
|
+
const hiddenFields = {
|
|
94
|
+
contextJSON: z
|
|
95
|
+
.string()
|
|
96
|
+
.optional()
|
|
97
|
+
.describe(`
|
|
107
98
|
A JSON string that provides additional context data to the script. This will be parsed and made available to the script as a \`context\` variable. For example, if you pass \`'{"foo":{"bar":"baz"}}'\`, the script can access \`context.foo.bar\` to get the value \`"baz"\`.
|
|
108
99
|
`),
|
|
109
|
-
|
|
100
|
+
}
|
|
110
101
|
|
|
111
|
-
export
|
|
112
|
-
|
|
113
|
-
typeof
|
|
114
|
-
>
|
|
115
|
-
|
|
116
|
-
export const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
export type InterpolatableRobotScriptRunInstructionsWithHiddenFields =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
typeof interpolatableRobotScriptRunInstructionsWithHiddenFieldsSchema
|
|
133
|
-
>
|
|
102
|
+
export const robotDefinition: RobotDefinitionWithHiddenFields<
|
|
103
|
+
typeof robotScriptRunInstructionsSchema.shape,
|
|
104
|
+
typeof hiddenFields
|
|
105
|
+
> = defineRobotWithHiddenFields(meta, robotScriptRunInstructionsSchema, hiddenFields)
|
|
106
|
+
|
|
107
|
+
export const {
|
|
108
|
+
withHiddenFields: robotScriptRunInstructionsWithHiddenFieldsSchema,
|
|
109
|
+
interpolatable: interpolatableRobotScriptRunInstructionsSchema,
|
|
110
|
+
interpolatableWithHiddenFields: interpolatableRobotScriptRunInstructionsWithHiddenFieldsSchema,
|
|
111
|
+
} = robotDefinition
|
|
112
|
+
|
|
113
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
114
|
+
|
|
115
|
+
export type RobotScriptRunInstructions = Instructions['output']
|
|
116
|
+
export type RobotScriptRunInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
117
|
+
export type InterpolatableRobotScriptRunInstructions = Instructions['interpolatableInput']
|
|
118
|
+
export type InterpolatableRobotScriptRunInstructionsInput = Instructions['interpolatableInput']
|
|
119
|
+
export type InterpolatableRobotScriptRunInstructionsWithHiddenFields =
|
|
120
|
+
Instructions['interpolatableHiddenOutput']
|
|
121
|
+
export type InterpolatableRobotScriptRunInstructionsWithHiddenFieldsInput =
|
|
122
|
+
Instructions['interpolatableHiddenInput']
|