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,50 +1,33 @@
|
|
|
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
|
+
createStorageStoreExample,
|
|
11
|
+
defineRobot,
|
|
6
12
|
digitalOceanBase,
|
|
7
|
-
interpolateRobot,
|
|
8
13
|
robotBase,
|
|
14
|
+
robotStoreMeta,
|
|
9
15
|
robotUse,
|
|
16
|
+
signedSslUrlLifetime,
|
|
17
|
+
storageAcl,
|
|
18
|
+
storeFilePath,
|
|
10
19
|
} from './_instructions-primitives.ts'
|
|
11
20
|
|
|
12
21
|
export const meta: RobotMetaInput = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
discount_pct: 84.99984999849998,
|
|
16
|
-
example_code: {
|
|
17
|
-
steps: {
|
|
18
|
-
exported: {
|
|
19
|
-
robot: '/digitalocean/store',
|
|
20
|
-
use: ':original',
|
|
21
|
-
credentials: 'YOUR_DIGITALOCEAN_CREDENTIALS',
|
|
22
|
-
path: 'my_target_folder/${unique_prefix}/${file.url_name}',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
22
|
+
...robotStoreMeta,
|
|
23
|
+
example_code: createStorageStoreExample('/digitalocean/store', 'YOUR_DIGITALOCEAN_CREDENTIALS'),
|
|
26
24
|
example_code_description: 'Export uploaded files to `my_target_folder` on DigitalOcean Spaces:',
|
|
27
25
|
has_small_icon: true,
|
|
28
|
-
minimum_charge: 0,
|
|
29
|
-
output_factor: 1,
|
|
30
|
-
override_lvl1: 'File Exporting',
|
|
31
26
|
purpose_sentence: 'exports encoding results to DigitalOcean Spaces',
|
|
32
|
-
purpose_verb: 'export',
|
|
33
27
|
purpose_word: 'DigitalOcean Spaces',
|
|
34
28
|
purpose_words: 'Export files to DigitalOcean Spaces',
|
|
35
|
-
service_slug: 'file-exporting',
|
|
36
|
-
slot_count: 10,
|
|
37
29
|
title: 'Export files to DigitalOcean Spaces',
|
|
38
|
-
typical_file_size_mb: 1.2,
|
|
39
|
-
typical_file_type: 'file',
|
|
40
30
|
name: 'DigitalOceanStoreRobot',
|
|
41
|
-
priceFactor: 6.6666,
|
|
42
|
-
queueSlotCount: 10,
|
|
43
|
-
isAllowedForUrlTransform: true,
|
|
44
|
-
trackOutputFileSize: false,
|
|
45
|
-
isInternal: false,
|
|
46
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
47
|
-
stage: 'ga',
|
|
48
31
|
}
|
|
49
32
|
|
|
50
33
|
export const robotDigitaloceanStoreInstructionsSchema = robotBase
|
|
@@ -52,24 +35,14 @@ export const robotDigitaloceanStoreInstructionsSchema = robotBase
|
|
|
52
35
|
.merge(digitalOceanBase)
|
|
53
36
|
.extend({
|
|
54
37
|
robot: z.literal('/digitalocean/store'),
|
|
55
|
-
path:
|
|
56
|
-
.string()
|
|
57
|
-
.default('${unique_prefix}/${file.url_name}')
|
|
58
|
-
.describe(`
|
|
59
|
-
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.
|
|
60
|
-
`),
|
|
38
|
+
path: storeFilePath,
|
|
61
39
|
url_prefix: z
|
|
62
40
|
.string()
|
|
63
41
|
.default('https://{space}.{region}.digitaloceanspaces.com/')
|
|
64
42
|
.describe(`
|
|
65
43
|
The URL prefix used for the returned URL, such as \`"https://my.cdn.com/some/path"\`.
|
|
66
44
|
`),
|
|
67
|
-
acl:
|
|
68
|
-
.enum(['private', 'public-read'])
|
|
69
|
-
.default('public-read')
|
|
70
|
-
.describe(`
|
|
71
|
-
The permissions used for this file.
|
|
72
|
-
`),
|
|
45
|
+
acl: storageAcl,
|
|
73
46
|
headers: z
|
|
74
47
|
.record(z.string())
|
|
75
48
|
.default({ 'Content-Type': '${file.mime}' })
|
|
@@ -80,46 +53,29 @@ An object containing a list of headers to be set for this file on DigitalOcean S
|
|
|
80
53
|
|
|
81
54
|
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).
|
|
82
55
|
`),
|
|
83
|
-
sign_urls_for:
|
|
84
|
-
.number()
|
|
85
|
-
.int()
|
|
86
|
-
.min(0)
|
|
87
|
-
.optional()
|
|
88
|
-
.describe(`
|
|
89
|
-
This parameter provides signed URLs in the result JSON (in the \`signed_ssl_url\` property). The number that you set this parameter to is the URL expiry time in seconds. If this parameter is not used, no URL signing is done.
|
|
90
|
-
`),
|
|
56
|
+
sign_urls_for: signedSslUrlLifetime,
|
|
91
57
|
})
|
|
92
58
|
.strict()
|
|
93
59
|
|
|
94
|
-
export const
|
|
95
|
-
robotDigitaloceanStoreInstructionsSchema.
|
|
96
|
-
|
|
97
|
-
.union([z.literal('debug'), robotDigitaloceanStoreInstructionsSchema.shape.result])
|
|
98
|
-
.optional(),
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
export type RobotDigitaloceanStoreInstructions = z.infer<
|
|
102
|
-
typeof robotDigitaloceanStoreInstructionsSchema
|
|
103
|
-
>
|
|
104
|
-
export type RobotDigitaloceanStoreInstructionsWithHiddenFields = z.infer<
|
|
105
|
-
typeof robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema
|
|
106
|
-
>
|
|
60
|
+
export const robotDefinition: RobotDefinition<
|
|
61
|
+
typeof robotDigitaloceanStoreInstructionsSchema.shape
|
|
62
|
+
> = defineRobot(meta, robotDigitaloceanStoreInstructionsSchema)
|
|
107
63
|
|
|
108
|
-
export const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
64
|
+
export const {
|
|
65
|
+
withHiddenFields: robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema,
|
|
66
|
+
interpolatable: interpolatableRobotDigitaloceanStoreInstructionsSchema,
|
|
67
|
+
interpolatableWithHiddenFields:
|
|
68
|
+
interpolatableRobotDigitaloceanStoreInstructionsWithHiddenFieldsSchema,
|
|
69
|
+
} = robotDefinition
|
|
113
70
|
|
|
114
|
-
|
|
115
|
-
typeof interpolatableRobotDigitaloceanStoreInstructionsSchema
|
|
116
|
-
>
|
|
71
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
117
72
|
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
export type
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
export type
|
|
124
|
-
|
|
125
|
-
|
|
73
|
+
export type RobotDigitaloceanStoreInstructions = Instructions['output']
|
|
74
|
+
export type RobotDigitaloceanStoreInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
75
|
+
export type InterpolatableRobotDigitaloceanStoreInstructions = Instructions['interpolatableInput']
|
|
76
|
+
export type InterpolatableRobotDigitaloceanStoreInstructionsInput =
|
|
77
|
+
Instructions['interpolatableInput']
|
|
78
|
+
export type InterpolatableRobotDigitaloceanStoreInstructionsWithHiddenFields =
|
|
79
|
+
Instructions['interpolatableHiddenOutput']
|
|
80
|
+
export type InterpolatableRobotDigitaloceanStoreInstructionsWithHiddenFieldsInput =
|
|
81
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,44 +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
|
+
createProcessingExample,
|
|
11
|
+
defineRobot,
|
|
12
|
+
robotBase,
|
|
13
|
+
robotDocumentProcessingMeta,
|
|
14
|
+
robotUse,
|
|
15
|
+
} from './_instructions-primitives.ts'
|
|
6
16
|
|
|
7
17
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
discount_pct: 0,
|
|
11
|
-
example_code: {
|
|
12
|
-
steps: {
|
|
13
|
-
rotated: {
|
|
14
|
-
robot: '/document/autorotate',
|
|
15
|
-
use: ':original',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
18
|
+
...robotDocumentProcessingMeta,
|
|
19
|
+
example_code: createProcessingExample('rotated', '/document/autorotate'),
|
|
19
20
|
example_code_description:
|
|
20
21
|
'Auto-rotate individual pages of a documents to the correction orientation:',
|
|
21
|
-
minimum_charge: 2097152,
|
|
22
|
-
output_factor: 1,
|
|
23
|
-
override_lvl1: 'Document Processing',
|
|
24
22
|
purpose_sentence: 'corrects the orientation of documents',
|
|
25
23
|
purpose_verb: 'auto-rotate',
|
|
26
24
|
purpose_word: 'auto-rotate documents',
|
|
27
25
|
purpose_words: 'Auto-rotate documents',
|
|
28
|
-
service_slug: 'document-processing',
|
|
29
|
-
slot_count: 10,
|
|
30
26
|
title: 'Auto-rotate documents to the correct orientation',
|
|
31
|
-
typical_file_size_mb: 0.8,
|
|
32
|
-
typical_file_type: 'document',
|
|
33
27
|
name: 'DocumentAutorotateRobot',
|
|
34
|
-
priceFactor: 1,
|
|
35
|
-
queueSlotCount: 10,
|
|
36
28
|
minimumCharge: 2097152,
|
|
37
|
-
isAllowedForUrlTransform: true,
|
|
38
29
|
trackOutputFileSize: true,
|
|
39
|
-
isInternal: false,
|
|
40
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
41
|
-
stage: 'ga',
|
|
42
30
|
}
|
|
43
31
|
|
|
44
32
|
export const robotDocumentAutorotateInstructionsSchema = robotBase
|
|
@@ -48,35 +36,25 @@ export const robotDocumentAutorotateInstructionsSchema = robotBase
|
|
|
48
36
|
})
|
|
49
37
|
.strict()
|
|
50
38
|
|
|
51
|
-
export const
|
|
52
|
-
robotDocumentAutorotateInstructionsSchema.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export type
|
|
72
|
-
|
|
73
|
-
>
|
|
74
|
-
|
|
75
|
-
export const interpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsSchema =
|
|
76
|
-
interpolateRobot(robotDocumentAutorotateInstructionsWithHiddenFieldsSchema)
|
|
77
|
-
export type InterpolatableRobotDocumentAutorotateInstructionsWithHiddenFields = z.infer<
|
|
78
|
-
typeof interpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsSchema
|
|
79
|
-
>
|
|
80
|
-
export type InterpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsInput = z.input<
|
|
81
|
-
typeof interpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsSchema
|
|
82
|
-
>
|
|
39
|
+
export const robotDefinition: RobotDefinition<
|
|
40
|
+
typeof robotDocumentAutorotateInstructionsSchema.shape
|
|
41
|
+
> = defineRobot(meta, robotDocumentAutorotateInstructionsSchema)
|
|
42
|
+
|
|
43
|
+
export const {
|
|
44
|
+
withHiddenFields: robotDocumentAutorotateInstructionsWithHiddenFieldsSchema,
|
|
45
|
+
interpolatable: interpolatableRobotDocumentAutorotateInstructionsSchema,
|
|
46
|
+
interpolatableWithHiddenFields:
|
|
47
|
+
interpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsSchema,
|
|
48
|
+
} = robotDefinition
|
|
49
|
+
|
|
50
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
51
|
+
|
|
52
|
+
export type RobotDocumentAutorotateInstructions = Instructions['output']
|
|
53
|
+
export type RobotDocumentAutorotateInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
54
|
+
export type InterpolatableRobotDocumentAutorotateInstructions = Instructions['interpolatableInput']
|
|
55
|
+
export type InterpolatableRobotDocumentAutorotateInstructionsInput =
|
|
56
|
+
Instructions['interpolatableInput']
|
|
57
|
+
export type InterpolatableRobotDocumentAutorotateInstructionsWithHiddenFields =
|
|
58
|
+
Instructions['interpolatableHiddenOutput']
|
|
59
|
+
export type InterpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsInput =
|
|
60
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
RobotDefinition,
|
|
3
|
+
RobotMetaInput,
|
|
4
|
+
RobotSchemaVariantTypes,
|
|
5
|
+
} from './_instructions-primitives.ts'
|
|
2
6
|
|
|
3
7
|
import { z } from 'zod'
|
|
4
8
|
|
|
5
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
createProcessingExample,
|
|
11
|
+
defineRobot,
|
|
12
|
+
robotBase,
|
|
13
|
+
robotDocumentProcessingMeta,
|
|
14
|
+
robotUse,
|
|
15
|
+
} from './_instructions-primitives.ts'
|
|
6
16
|
|
|
7
17
|
export const meta: RobotMetaInput = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
steps: {
|
|
13
|
-
converted: {
|
|
14
|
-
robot: '/document/convert',
|
|
15
|
-
use: ':original',
|
|
16
|
-
format: 'pdf',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
18
|
+
...robotDocumentProcessingMeta,
|
|
19
|
+
example_code: createProcessingExample('converted', '/document/convert', {
|
|
20
|
+
format: 'pdf',
|
|
21
|
+
}),
|
|
20
22
|
example_code_description: 'Convert uploaded files to PDF documents:',
|
|
21
23
|
extended_description: `
|
|
22
24
|
> [!Note]
|
|
@@ -65,38 +67,25 @@ The following file formats can be converted from:
|
|
|
65
67
|
- \`xlsx\`
|
|
66
68
|
- \`xml\`
|
|
67
69
|
`,
|
|
68
|
-
minimum_charge: 1048576,
|
|
69
|
-
output_factor: 1,
|
|
70
|
-
override_lvl1: 'Document Processing',
|
|
71
70
|
purpose_sentence: 'converts documents into different formats',
|
|
72
71
|
purpose_verb: 'convert',
|
|
73
72
|
purpose_word: 'convert',
|
|
74
73
|
purpose_words: 'Convert documents into different formats',
|
|
75
|
-
service_slug: 'document-processing',
|
|
76
|
-
slot_count: 12,
|
|
77
74
|
title: 'Convert documents into different formats',
|
|
78
|
-
typical_file_size_mb: 0.8,
|
|
79
|
-
typical_file_type: 'document',
|
|
80
75
|
name: 'DocumentConvertRobot',
|
|
81
|
-
priceFactor: 1,
|
|
82
76
|
// This slot count needs to be unique, because unoconv can only process one document at a time,
|
|
83
77
|
// and is also only included in WorkerSlotCalculator::slotsThatFit() when
|
|
84
78
|
// we have enough idle unoconv daemons.
|
|
85
79
|
// We do not want a queue of this Robot to block any other Robot's jobs.
|
|
86
80
|
queueSlotCount: 32,
|
|
87
|
-
minimumCharge: 1048576,
|
|
88
81
|
lazyLoad: true,
|
|
89
82
|
installVersionFile:
|
|
90
83
|
typeof process !== 'undefined' && process.env.API2_UNOCONV_INSTALL_VERSION_FILE
|
|
91
84
|
? process.env.API2_UNOCONV_INSTALL_VERSION_FILE
|
|
92
85
|
: '',
|
|
93
|
-
isAllowedForUrlTransform: true,
|
|
94
86
|
trackOutputFileSize: true,
|
|
95
87
|
// we cannot use coreConfig.numUnoconvDaemons, because it does not live in alphalib
|
|
96
88
|
numDaemons: 8,
|
|
97
|
-
isInternal: false,
|
|
98
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
99
|
-
stage: 'ga',
|
|
100
89
|
}
|
|
101
90
|
|
|
102
91
|
export const robotDocumentConvertInstructionsSchema = robotBase
|
|
@@ -276,35 +265,24 @@ To change the formatting of the HTML element, the \`font-size\` must be specifie
|
|
|
276
265
|
})
|
|
277
266
|
.strict()
|
|
278
267
|
|
|
279
|
-
export const
|
|
280
|
-
robotDocumentConvertInstructionsSchema
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
export
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
export type
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
typeof interpolatableRobotDocumentConvertInstructionsSchema
|
|
301
|
-
>
|
|
302
|
-
|
|
303
|
-
export const interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema =
|
|
304
|
-
interpolateRobot(robotDocumentConvertInstructionsWithHiddenFieldsSchema)
|
|
305
|
-
export type InterpolatableRobotDocumentConvertInstructionsWithHiddenFields = z.infer<
|
|
306
|
-
typeof interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema
|
|
307
|
-
>
|
|
308
|
-
export type InterpolatableRobotDocumentConvertInstructionsWithHiddenFieldsInput = z.input<
|
|
309
|
-
typeof interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema
|
|
310
|
-
>
|
|
268
|
+
export const robotDefinition: RobotDefinition<typeof robotDocumentConvertInstructionsSchema.shape> =
|
|
269
|
+
defineRobot(meta, robotDocumentConvertInstructionsSchema)
|
|
270
|
+
|
|
271
|
+
export const {
|
|
272
|
+
withHiddenFields: robotDocumentConvertInstructionsWithHiddenFieldsSchema,
|
|
273
|
+
interpolatable: interpolatableRobotDocumentConvertInstructionsSchema,
|
|
274
|
+
interpolatableWithHiddenFields:
|
|
275
|
+
interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema,
|
|
276
|
+
} = robotDefinition
|
|
277
|
+
|
|
278
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
279
|
+
|
|
280
|
+
export type RobotDocumentConvertInstructions = Instructions['output']
|
|
281
|
+
export type RobotDocumentConvertInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
282
|
+
export type InterpolatableRobotDocumentConvertInstructions = Instructions['interpolatableInput']
|
|
283
|
+
export type InterpolatableRobotDocumentConvertInstructionsInput =
|
|
284
|
+
Instructions['interpolatableInput']
|
|
285
|
+
export type InterpolatableRobotDocumentConvertInstructionsWithHiddenFields =
|
|
286
|
+
Instructions['interpolatableHiddenOutput']
|
|
287
|
+
export type InterpolatableRobotDocumentConvertInstructionsWithHiddenFieldsInput =
|
|
288
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,8 +1,19 @@
|
|
|
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 { ecmaWhitespaceCharacterClass } from '../../lib/zodInputSemantics.ts'
|
|
10
|
+
import {
|
|
11
|
+
createProcessingExample,
|
|
12
|
+
defineRobot,
|
|
13
|
+
robotBase,
|
|
14
|
+
robotDocumentProcessingMeta,
|
|
15
|
+
robotUse,
|
|
16
|
+
} from './_instructions-primitives.ts'
|
|
6
17
|
|
|
7
18
|
const extractTargets = z.enum(['text', 'images'])
|
|
8
19
|
const imageFormats = z.enum(['auto', 'original', 'png', 'jpg'])
|
|
@@ -12,41 +23,19 @@ const textGranularities = z.enum(['document', 'page'])
|
|
|
12
23
|
const textMethods = z.enum(['native', 'ocr', 'auto'])
|
|
13
24
|
|
|
14
25
|
export const meta: RobotMetaInput = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
extracted: {
|
|
21
|
-
robot: '/document/extract',
|
|
22
|
-
use: ':original',
|
|
23
|
-
extract: ['text', 'images'],
|
|
24
|
-
text_method: 'native',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
26
|
+
...robotDocumentProcessingMeta,
|
|
27
|
+
example_code: createProcessingExample('extracted', '/document/extract', {
|
|
28
|
+
extract: ['text', 'images'],
|
|
29
|
+
text_method: 'native',
|
|
30
|
+
}),
|
|
28
31
|
example_code_description: 'Extract native text and embedded raster images from a PDF document:',
|
|
29
|
-
minimum_charge: 1048576,
|
|
30
|
-
output_factor: 1,
|
|
31
|
-
override_lvl1: 'Document Processing',
|
|
32
32
|
purpose_sentence: 'extracts text and embedded images from PDF documents',
|
|
33
33
|
purpose_verb: 'extract',
|
|
34
34
|
purpose_word: 'extracts text and images',
|
|
35
35
|
purpose_words: 'Extracts text and embedded images',
|
|
36
|
-
service_slug: 'document-processing',
|
|
37
|
-
slot_count: 10,
|
|
38
36
|
title: 'Extract text and images from documents',
|
|
39
|
-
typical_file_size_mb: 0.8,
|
|
40
|
-
typical_file_type: 'document',
|
|
41
37
|
name: 'DocumentExtractRobot',
|
|
42
|
-
priceFactor: 1,
|
|
43
|
-
queueSlotCount: 10,
|
|
44
|
-
minimumCharge: 1048576,
|
|
45
|
-
isAllowedForUrlTransform: true,
|
|
46
38
|
trackOutputFileSize: true,
|
|
47
|
-
isInternal: false,
|
|
48
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
49
|
-
stage: 'beta',
|
|
50
39
|
}
|
|
51
40
|
|
|
52
41
|
export const robotDocumentExtractInstructionsSchema = robotBase
|
|
@@ -65,7 +54,12 @@ Selects which assets to extract. Use \`["text"]\`, \`["images"]\`, or \`["text",
|
|
|
65
54
|
`),
|
|
66
55
|
page_range: z
|
|
67
56
|
.string()
|
|
68
|
-
.regex(
|
|
57
|
+
.regex(
|
|
58
|
+
new RegExp(
|
|
59
|
+
`^${ecmaWhitespaceCharacterClass}*[0-9]+(?:${ecmaWhitespaceCharacterClass}*-${ecmaWhitespaceCharacterClass}*[0-9]+)?(?:${ecmaWhitespaceCharacterClass}*,${ecmaWhitespaceCharacterClass}*[0-9]+(?:${ecmaWhitespaceCharacterClass}*-${ecmaWhitespaceCharacterClass}*[0-9]+)?)*${ecmaWhitespaceCharacterClass}*$`,
|
|
60
|
+
'u',
|
|
61
|
+
),
|
|
62
|
+
)
|
|
69
63
|
.optional()
|
|
70
64
|
.describe(`
|
|
71
65
|
Optional comma-separated page selection, such as \`"1"\`, \`"1-3"\`, or \`"1,3-5"\`. Page numbers start at 1. Ranges are clamped to the detected page count.
|
|
@@ -149,35 +143,24 @@ When enabled, the robot also keeps image mask files when Poppler exposes them as
|
|
|
149
143
|
})
|
|
150
144
|
.strict()
|
|
151
145
|
|
|
152
|
-
export const
|
|
153
|
-
robotDocumentExtractInstructionsSchema
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
export
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export type
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
typeof interpolatableRobotDocumentExtractInstructionsSchema
|
|
174
|
-
>
|
|
175
|
-
|
|
176
|
-
export const interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema =
|
|
177
|
-
interpolateRobot(robotDocumentExtractInstructionsWithHiddenFieldsSchema)
|
|
178
|
-
export type InterpolatableRobotDocumentExtractInstructionsWithHiddenFields = z.infer<
|
|
179
|
-
typeof interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema
|
|
180
|
-
>
|
|
181
|
-
export type InterpolatableRobotDocumentExtractInstructionsWithHiddenFieldsInput = z.input<
|
|
182
|
-
typeof interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema
|
|
183
|
-
>
|
|
146
|
+
export const robotDefinition: RobotDefinition<typeof robotDocumentExtractInstructionsSchema.shape> =
|
|
147
|
+
defineRobot(meta, robotDocumentExtractInstructionsSchema)
|
|
148
|
+
|
|
149
|
+
export const {
|
|
150
|
+
withHiddenFields: robotDocumentExtractInstructionsWithHiddenFieldsSchema,
|
|
151
|
+
interpolatable: interpolatableRobotDocumentExtractInstructionsSchema,
|
|
152
|
+
interpolatableWithHiddenFields:
|
|
153
|
+
interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema,
|
|
154
|
+
} = robotDefinition
|
|
155
|
+
|
|
156
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
157
|
+
|
|
158
|
+
export type RobotDocumentExtractInstructions = Instructions['output']
|
|
159
|
+
export type RobotDocumentExtractInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
160
|
+
export type InterpolatableRobotDocumentExtractInstructions = Instructions['interpolatableInput']
|
|
161
|
+
export type InterpolatableRobotDocumentExtractInstructionsInput =
|
|
162
|
+
Instructions['interpolatableInput']
|
|
163
|
+
export type InterpolatableRobotDocumentExtractInstructionsWithHiddenFields =
|
|
164
|
+
Instructions['interpolatableHiddenOutput']
|
|
165
|
+
export type InterpolatableRobotDocumentExtractInstructionsWithHiddenFieldsInput =
|
|
166
|
+
Instructions['interpolatableHiddenInput']
|
|
@@ -1,18 +1,21 @@
|
|
|
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
|
+
defineRobot,
|
|
6
11
|
inputSortBySchema,
|
|
7
|
-
interpolateRobot,
|
|
8
12
|
robotBase,
|
|
13
|
+
robotDocumentProcessingMeta,
|
|
9
14
|
robotUse,
|
|
10
15
|
} from './_instructions-primitives.ts'
|
|
11
16
|
|
|
12
17
|
export const meta: RobotMetaInput = {
|
|
13
|
-
|
|
14
|
-
discount_factor: 1,
|
|
15
|
-
discount_pct: 0,
|
|
18
|
+
...robotDocumentProcessingMeta,
|
|
16
19
|
example_code: {
|
|
17
20
|
steps: {
|
|
18
21
|
merged: {
|
|
@@ -40,27 +43,13 @@ Input files are sorted alphanumerically unless you provide the as-syntax in the
|
|
|
40
43
|
}
|
|
41
44
|
\`\`\`
|
|
42
45
|
`,
|
|
43
|
-
minimum_charge: 1048576,
|
|
44
|
-
output_factor: 1,
|
|
45
|
-
override_lvl1: 'Document Processing',
|
|
46
46
|
purpose_sentence: 'concatenates several PDF documents into a single file',
|
|
47
47
|
purpose_verb: 'convert',
|
|
48
48
|
purpose_word: 'convert',
|
|
49
49
|
purpose_words: 'Merge documents into one',
|
|
50
|
-
service_slug: 'document-processing',
|
|
51
|
-
slot_count: 10,
|
|
52
50
|
title: 'Merge documents into one',
|
|
53
|
-
typical_file_size_mb: 0.8,
|
|
54
|
-
typical_file_type: 'document',
|
|
55
51
|
name: 'DocumentMergeRobot',
|
|
56
|
-
priceFactor: 1,
|
|
57
|
-
queueSlotCount: 10,
|
|
58
|
-
minimumCharge: 1048576,
|
|
59
|
-
isAllowedForUrlTransform: true,
|
|
60
52
|
trackOutputFileSize: true,
|
|
61
|
-
isInternal: false,
|
|
62
|
-
removeJobResultFilesFromDiskRightAfterStoringOnS3: false,
|
|
63
|
-
stage: 'ga',
|
|
64
53
|
}
|
|
65
54
|
|
|
66
55
|
export const robotDocumentMergeInstructionsSchema = robotBase
|
|
@@ -87,34 +76,23 @@ If not empty, encrypts the output file and makes it accessible only by typing in
|
|
|
87
76
|
})
|
|
88
77
|
.strict()
|
|
89
78
|
|
|
90
|
-
export const
|
|
91
|
-
robotDocumentMergeInstructionsSchema
|
|
92
|
-
result: z
|
|
93
|
-
.union([z.literal('debug'), robotDocumentMergeInstructionsSchema.shape.result])
|
|
94
|
-
.optional(),
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
export type RobotDocumentMergeInstructions = z.infer<typeof robotDocumentMergeInstructionsSchema>
|
|
98
|
-
export type RobotDocumentMergeInstructionsWithHiddenFields = z.infer<
|
|
99
|
-
typeof robotDocumentMergeInstructionsWithHiddenFieldsSchema
|
|
100
|
-
>
|
|
79
|
+
export const robotDefinition: RobotDefinition<typeof robotDocumentMergeInstructionsSchema.shape> =
|
|
80
|
+
defineRobot(meta, robotDocumentMergeInstructionsSchema)
|
|
101
81
|
|
|
102
|
-
export const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
82
|
+
export const {
|
|
83
|
+
withHiddenFields: robotDocumentMergeInstructionsWithHiddenFieldsSchema,
|
|
84
|
+
interpolatable: interpolatableRobotDocumentMergeInstructionsSchema,
|
|
85
|
+
interpolatableWithHiddenFields:
|
|
86
|
+
interpolatableRobotDocumentMergeInstructionsWithHiddenFieldsSchema,
|
|
87
|
+
} = robotDefinition
|
|
107
88
|
|
|
108
|
-
|
|
109
|
-
typeof interpolatableRobotDocumentMergeInstructionsSchema
|
|
110
|
-
>
|
|
89
|
+
type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>
|
|
111
90
|
|
|
112
|
-
export
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export type
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export type InterpolatableRobotDocumentMergeInstructionsWithHiddenFieldsInput =
|
|
119
|
-
|
|
120
|
-
>
|
|
91
|
+
export type RobotDocumentMergeInstructions = Instructions['output']
|
|
92
|
+
export type RobotDocumentMergeInstructionsWithHiddenFields = Instructions['hiddenOutput']
|
|
93
|
+
export type InterpolatableRobotDocumentMergeInstructions = Instructions['interpolatableInput']
|
|
94
|
+
export type InterpolatableRobotDocumentMergeInstructionsInput = Instructions['interpolatableInput']
|
|
95
|
+
export type InterpolatableRobotDocumentMergeInstructionsWithHiddenFields =
|
|
96
|
+
Instructions['interpolatableHiddenOutput']
|
|
97
|
+
export type InterpolatableRobotDocumentMergeInstructionsWithHiddenFieldsInput =
|
|
98
|
+
Instructions['interpolatableHiddenInput']
|