|
| 1 | +import { z } from 'zod' |
| 2 | + |
| 3 | +import { robotAudioArtworkInstructionsSchema } from './audio-artwork.ts' |
| 4 | +import { robotAudioConcatInstructionsSchema } from './audio-concat.ts' |
| 5 | +import { robotAudioEncodeInstructionsSchema } from './audio-encode.ts' |
| 6 | +import { robotAudioLoopInstructionsSchema } from './audio-loop.ts' |
| 7 | +import { robotAudioMergeInstructionsSchema } from './audio-merge.ts' |
| 8 | +import { robotAudioWaveformInstructionsSchema } from './audio-waveform.ts' |
| 9 | +import { robotAzureImportInstructionsSchema } from './azure-import.ts' |
| 10 | +import { robotAzureStoreInstructionsSchema } from './azure-store.ts' |
| 11 | +import { robotBackblazeImportInstructionsSchema } from './backblaze-import.ts' |
| 12 | +import { robotBackblazeStoreInstructionsSchema } from './backblaze-store.ts' |
| 13 | +import { robotCloudfilesImportInstructionsSchema } from './cloudfiles-import.ts' |
| 14 | +import { robotCloudfilesStoreInstructionsSchema } from './cloudfiles-store.ts' |
| 15 | +import { robotCloudflareImportInstructionsSchema } from './cloudflare-import.ts' |
| 16 | +import { robotCloudflareStoreInstructionsSchema } from './cloudflare-store.ts' |
| 17 | +import { robotDigitaloceanImportInstructionsSchema } from './digitalocean-import.ts' |
| 18 | +import { robotDigitaloceanStoreInstructionsSchema } from './digitalocean-store.ts' |
| 19 | +import { robotDocumentAutorotateInstructionsSchema } from './document-autorotate.ts' |
| 20 | +import { robotDocumentConvertInstructionsSchema } from './document-convert.ts' |
| 21 | +import { robotDocumentMergeInstructionsSchema } from './document-merge.ts' |
| 22 | +import { robotDocumentOcrInstructionsSchema } from './document-ocr.ts' |
| 23 | +import { robotDocumentThumbsInstructionsSchema } from './document-thumbs.ts' |
| 24 | +import { robotDropboxImportInstructionsSchema } from './dropbox-import.ts' |
| 25 | +import { robotDropboxStoreInstructionsSchema } from './dropbox-store.ts' |
| 26 | +import { robotEdglyDeliverInstructionsSchema } from './edgly-deliver.ts' |
| 27 | +import { robotFileCompressInstructionsSchema } from './file-compress.ts' |
| 28 | +import { robotFileDecompressInstructionsSchema } from './file-decompress.ts' |
| 29 | +import { robotFileFilterInstructionsSchema } from './file-filter.ts' |
| 30 | +import { robotFileHashInstructionsSchema } from './file-hash.ts' |
| 31 | +import { robotFilePreviewInstructionsSchema } from './file-preview.ts' |
| 32 | +import { robotFileReadInstructionsSchema } from './file-read.ts' |
| 33 | +import { robotFileServeInstructionsSchema } from './file-serve.ts' |
| 34 | +import { robotFileVerifyInstructionsSchema } from './file-verify.ts' |
| 35 | +import { robotFileVirusscanInstructionsSchema } from './file-virusscan.ts' |
| 36 | +import { robotFileWatermarkInstructionsSchema } from './file-watermark.ts' |
| 37 | +import { robotFtpImportInstructionsSchema } from './ftp-import.ts' |
| 38 | +import { robotFtpStoreInstructionsSchema } from './ftp-store.ts' |
| 39 | +import { robotGoogleImportInstructionsSchema } from './google-import.ts' |
| 40 | +import { robotGoogleStoreInstructionsSchema } from './google-store.ts' |
| 41 | +import { robotHtmlConvertInstructionsSchema } from './html-convert.ts' |
| 42 | +import { robotHttpImportInstructionsSchema } from './http-import.ts' |
| 43 | +import { robotImageDescribeInstructionsSchema } from './image-describe.ts' |
| 44 | +import { robotImageFacedetectInstructionsSchema } from './image-facedetect.ts' |
| 45 | +import { robotImageGenerateInstructionsSchema } from './image-generate.ts' |
| 46 | +import { robotImageMergeInstructionsSchema } from './image-merge.ts' |
| 47 | +import { robotImageOcrInstructionsSchema } from './image-ocr.ts' |
| 48 | +import { robotImageOptimizeInstructionsSchema } from './image-optimize.ts' |
| 49 | +import { robotImageRemoveBackgroundInstructionsSchema } from './image-remove-background.ts' |
| 50 | +import { robotImageResizeInstructionsSchema } from './image-resize.ts' |
| 51 | +import { robotMediaPlaylistInstructionsSchema } from './media-playlist.ts' |
| 52 | +import { robotMetaWriteInstructionsSchema } from './meta-write.ts' |
| 53 | +import { robotMinioImportInstructionsSchema } from './minio-import.ts' |
| 54 | +import { robotMinioStoreInstructionsSchema } from './minio-store.ts' |
| 55 | +import { robotProgressSimulateInstructionsSchema } from './progress-simulate.ts' |
| 56 | +import { robotS3ImportInstructionsSchema } from './s3-import.ts' |
| 57 | +import { robotS3StoreInstructionsSchema } from './s3-store.ts' |
| 58 | +import { robotScriptRunInstructionsSchema } from './script-run.ts' |
| 59 | +import { robotSftpImportInstructionsSchema } from './sftp-import.ts' |
| 60 | +import { robotSftpStoreInstructionsSchema } from './sftp-store.ts' |
| 61 | +import { robotSpeechTranscribeInstructionsSchema } from './speech-transcribe.ts' |
| 62 | +import { robotSupabaseImportInstructionsSchema } from './supabase-import.ts' |
| 63 | +import { robotSupabaseStoreInstructionsSchema } from './supabase-store.ts' |
| 64 | +import { robotSwiftImportInstructionsSchema } from './swift-import.ts' |
| 65 | +import { robotSwiftStoreInstructionsSchema } from './swift-store.ts' |
| 66 | +import { robotTextSpeakInstructionsSchema } from './text-speak.ts' |
| 67 | +import { robotTextTranslateInstructionsSchema } from './text-translate.ts' |
| 68 | +import { robotTlcdnDeliverInstructionsSchema } from './tlcdn-deliver.ts' |
| 69 | +import { robotTusStoreInstructionsSchema } from './tus-store.ts' |
| 70 | +import { robotUploadHandleInstructionsSchema } from './upload-handle.ts' |
| 71 | +import { robotVideoAdaptiveInstructionsSchema } from './video-adaptive.ts' |
| 72 | +import { robotVideoConcatInstructionsSchema } from './video-concat.ts' |
| 73 | +import { robotVideoEncodeInstructionsSchema } from './video-encode.ts' |
| 74 | +import { robotVideoMergeInstructionsSchema } from './video-merge.ts' |
| 75 | +import { robotVideoSubtitleInstructionsSchema } from './video-subtitle.ts' |
| 76 | +import { robotVideoThumbsInstructionsSchema } from './video-thumbs.ts' |
| 77 | +import { robotVimeoStoreInstructionsSchema } from './vimeo-store.ts' |
| 78 | +import { robotWasabiImportInstructionsSchema } from './wasabi-import.ts' |
| 79 | +import { robotWasabiStoreInstructionsSchema } from './wasabi-store.ts' |
| 80 | +import { robotYoutubeStoreInstructionsSchema } from './youtube-store.ts' |
| 81 | + |
| 82 | +const robotStepsInstructions = [ |
| 83 | + robotAudioArtworkInstructionsSchema, |
| 84 | + robotAudioConcatInstructionsSchema, |
| 85 | + robotAudioEncodeInstructionsSchema, |
| 86 | + robotAudioLoopInstructionsSchema, |
| 87 | + robotAudioMergeInstructionsSchema, |
| 88 | + robotAudioWaveformInstructionsSchema, |
| 89 | + robotAzureImportInstructionsSchema, |
| 90 | + robotAzureStoreInstructionsSchema, |
| 91 | + robotBackblazeImportInstructionsSchema, |
| 92 | + robotBackblazeStoreInstructionsSchema, |
| 93 | + robotCloudfilesImportInstructionsSchema, |
| 94 | + robotCloudfilesStoreInstructionsSchema, |
| 95 | + robotCloudflareImportInstructionsSchema, |
| 96 | + robotCloudflareStoreInstructionsSchema, |
| 97 | + robotDigitaloceanImportInstructionsSchema, |
| 98 | + robotDigitaloceanStoreInstructionsSchema, |
| 99 | + robotDocumentAutorotateInstructionsSchema, |
| 100 | + robotDocumentConvertInstructionsSchema, |
| 101 | + robotDocumentMergeInstructionsSchema, |
| 102 | + robotDocumentOcrInstructionsSchema, |
| 103 | + robotFileReadInstructionsSchema, |
| 104 | + robotDocumentThumbsInstructionsSchema, |
| 105 | + robotDropboxImportInstructionsSchema, |
| 106 | + robotDropboxStoreInstructionsSchema, |
| 107 | + robotEdglyDeliverInstructionsSchema, |
| 108 | + robotFileCompressInstructionsSchema, |
| 109 | + robotFileDecompressInstructionsSchema, |
| 110 | + robotFileFilterInstructionsSchema, |
| 111 | + robotFileHashInstructionsSchema, |
| 112 | + robotFilePreviewInstructionsSchema, |
| 113 | + robotFileServeInstructionsSchema, |
| 114 | + robotFileVerifyInstructionsSchema, |
| 115 | + robotFileVirusscanInstructionsSchema, |
| 116 | + robotFtpImportInstructionsSchema, |
| 117 | + robotFtpStoreInstructionsSchema, |
| 118 | + robotGoogleImportInstructionsSchema, |
| 119 | + robotGoogleStoreInstructionsSchema, |
| 120 | + robotHtmlConvertInstructionsSchema, |
| 121 | + robotHttpImportInstructionsSchema, |
| 122 | + robotImageDescribeInstructionsSchema, |
| 123 | + robotImageFacedetectInstructionsSchema, |
| 124 | + robotImageMergeInstructionsSchema, |
| 125 | + robotImageOcrInstructionsSchema, |
| 126 | + robotImageOptimizeInstructionsSchema, |
| 127 | + robotImageResizeInstructionsSchema, |
| 128 | + robotMediaPlaylistInstructionsSchema, |
| 129 | + robotMetaWriteInstructionsSchema, |
| 130 | + robotMinioImportInstructionsSchema, |
| 131 | + robotMinioStoreInstructionsSchema, |
| 132 | + robotS3ImportInstructionsSchema, |
| 133 | + robotS3StoreInstructionsSchema, |
| 134 | + robotScriptRunInstructionsSchema, |
| 135 | + robotSftpImportInstructionsSchema, |
| 136 | + robotSftpStoreInstructionsSchema, |
| 137 | + robotSpeechTranscribeInstructionsSchema, |
| 138 | + robotSupabaseImportInstructionsSchema, |
| 139 | + robotSupabaseStoreInstructionsSchema, |
| 140 | + robotSwiftImportInstructionsSchema, |
| 141 | + robotSwiftStoreInstructionsSchema, |
| 142 | + robotTextSpeakInstructionsSchema, |
| 143 | + robotTextTranslateInstructionsSchema, |
| 144 | + robotTlcdnDeliverInstructionsSchema, |
| 145 | + robotTusStoreInstructionsSchema, |
| 146 | + robotUploadHandleInstructionsSchema, |
| 147 | + robotVideoAdaptiveInstructionsSchema, |
| 148 | + robotVideoConcatInstructionsSchema, |
| 149 | + robotVideoEncodeInstructionsSchema, |
| 150 | + robotVideoMergeInstructionsSchema, |
| 151 | + robotVideoSubtitleInstructionsSchema, |
| 152 | + robotVideoThumbsInstructionsSchema, |
| 153 | + robotVimeoStoreInstructionsSchema, |
| 154 | + robotWasabiImportInstructionsSchema, |
| 155 | + robotWasabiStoreInstructionsSchema, |
| 156 | + robotYoutubeStoreInstructionsSchema, |
| 157 | +] as const |
| 158 | + |
| 159 | +/** |
| 160 | + * Public robot instructions |
| 161 | + */ |
| 162 | +export const robotStepsInstructionsSchema = z.union(robotStepsInstructions) |
| 163 | + |
| 164 | +/** |
| 165 | + * All robot instructions, including private ones. |
| 166 | + */ |
| 167 | +export const robotAnyInstructionsSchema = z.union([ |
| 168 | + ...robotStepsInstructions, |
| 169 | + robotFileWatermarkInstructionsSchema, |
| 170 | + robotImageGenerateInstructionsSchema, |
| 171 | + robotImageRemoveBackgroundInstructionsSchema, |
| 172 | + robotProgressSimulateInstructionsSchema, |
| 173 | +]) |
| 174 | +export type RobotAnyInstructions = z.infer<typeof robotAnyInstructionsSchema> |
0 commit comments