transloadit 6.0.1 → 6.0.3

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.
Files changed (150) hide show
  1. package/README.md +2 -2
  2. package/dist/Transloadit.d.ts.map +1 -1
  3. package/dist/Transloadit.js +5 -7
  4. package/dist/Transloadit.js.map +1 -1
  5. package/dist/alphalib/englishInteger.d.ts +3 -0
  6. package/dist/alphalib/englishInteger.d.ts.map +1 -0
  7. package/dist/alphalib/englishInteger.js +13 -0
  8. package/dist/alphalib/englishInteger.js.map +1 -0
  9. package/dist/alphalib/lib/zodInputSemantics.d.ts +3 -1
  10. package/dist/alphalib/lib/zodInputSemantics.d.ts.map +1 -1
  11. package/dist/alphalib/lib/zodInputSemantics.js +17 -0
  12. package/dist/alphalib/lib/zodInputSemantics.js.map +1 -1
  13. package/dist/alphalib/types/robots/_image-describe-output.d.ts +55 -0
  14. package/dist/alphalib/types/robots/_image-describe-output.d.ts.map +1 -0
  15. package/dist/alphalib/types/robots/_image-describe-output.js +16 -0
  16. package/dist/alphalib/types/robots/_image-describe-output.js.map +1 -0
  17. package/dist/alphalib/types/robots/_image-facedetect-output.d.ts +30 -0
  18. package/dist/alphalib/types/robots/_image-facedetect-output.d.ts.map +1 -0
  19. package/dist/alphalib/types/robots/_image-facedetect-output.js +15 -0
  20. package/dist/alphalib/types/robots/_image-facedetect-output.js.map +1 -0
  21. package/dist/alphalib/types/robots/_index.d.ts +582 -48
  22. package/dist/alphalib/types/robots/_index.d.ts.map +1 -1
  23. package/dist/alphalib/types/robots/_index.js +84 -80
  24. package/dist/alphalib/types/robots/_index.js.map +1 -1
  25. package/dist/alphalib/types/robots/_instructions-primitives.d.ts +82 -0
  26. package/dist/alphalib/types/robots/_instructions-primitives.d.ts.map +1 -1
  27. package/dist/alphalib/types/robots/_instructions-primitives.js +46 -2
  28. package/dist/alphalib/types/robots/_instructions-primitives.js.map +1 -1
  29. package/dist/alphalib/types/robots/_ocr-output.d.ts +75 -0
  30. package/dist/alphalib/types/robots/_ocr-output.d.ts.map +1 -0
  31. package/dist/alphalib/types/robots/_ocr-output.js +15 -0
  32. package/dist/alphalib/types/robots/_ocr-output.js.map +1 -0
  33. package/dist/alphalib/types/robots/ai-chat.d.ts +12 -12
  34. package/dist/alphalib/types/robots/audio-encode.d.ts.map +1 -1
  35. package/dist/alphalib/types/robots/audio-encode.js +8 -1
  36. package/dist/alphalib/types/robots/audio-encode.js.map +1 -1
  37. package/dist/alphalib/types/robots/audio-split.d.ts.map +1 -1
  38. package/dist/alphalib/types/robots/audio-split.js +2 -0
  39. package/dist/alphalib/types/robots/audio-split.js.map +1 -1
  40. package/dist/alphalib/types/robots/digitalocean-store.d.ts +4 -4
  41. package/dist/alphalib/types/robots/digitalocean-store.js +1 -1
  42. package/dist/alphalib/types/robots/digitalocean-store.js.map +1 -1
  43. package/dist/alphalib/types/robots/document-convert.d.ts +8 -6
  44. package/dist/alphalib/types/robots/document-convert.d.ts.map +1 -1
  45. package/dist/alphalib/types/robots/document-convert.js +5 -5
  46. package/dist/alphalib/types/robots/document-convert.js.map +1 -1
  47. package/dist/alphalib/types/robots/document-extract.d.ts +4 -4
  48. package/dist/alphalib/types/robots/document-ocr.d.ts +8 -8
  49. package/dist/alphalib/types/robots/google-store.d.ts +32 -8
  50. package/dist/alphalib/types/robots/google-store.d.ts.map +1 -1
  51. package/dist/alphalib/types/robots/google-store.js +10 -2
  52. package/dist/alphalib/types/robots/google-store.js.map +1 -1
  53. package/dist/alphalib/types/robots/image-bgremove.d.ts +16 -16
  54. package/dist/alphalib/types/robots/image-describe.d.ts +17 -17
  55. package/dist/alphalib/types/robots/image-describe.d.ts.map +1 -1
  56. package/dist/alphalib/types/robots/image-describe.js +2 -1
  57. package/dist/alphalib/types/robots/image-describe.js.map +1 -1
  58. package/dist/alphalib/types/robots/image-facedetect.d.ts +9 -35
  59. package/dist/alphalib/types/robots/image-facedetect.d.ts.map +1 -1
  60. package/dist/alphalib/types/robots/image-facedetect.js +1 -11
  61. package/dist/alphalib/types/robots/image-facedetect.js.map +1 -1
  62. package/dist/alphalib/types/robots/image-generate.d.ts +20 -20
  63. package/dist/alphalib/types/robots/image-generate.js +1 -1
  64. package/dist/alphalib/types/robots/image-generate.js.map +1 -1
  65. package/dist/alphalib/types/robots/image-ocr.d.ts +8 -8
  66. package/dist/alphalib/types/robots/image-upscale.d.ts +17 -12
  67. package/dist/alphalib/types/robots/image-upscale.d.ts.map +1 -1
  68. package/dist/alphalib/types/robots/image-upscale.js +14 -2
  69. package/dist/alphalib/types/robots/image-upscale.js.map +1 -1
  70. package/dist/alphalib/types/robots/mega-store.d.ts +4 -4
  71. package/dist/alphalib/types/robots/mega-store.js +1 -1
  72. package/dist/alphalib/types/robots/mega-store.js.map +1 -1
  73. package/dist/alphalib/types/robots/s3-store.d.ts +8 -8
  74. package/dist/alphalib/types/robots/s3-store.d.ts.map +1 -1
  75. package/dist/alphalib/types/robots/s3-store.js +14 -2
  76. package/dist/alphalib/types/robots/s3-store.js.map +1 -1
  77. package/dist/alphalib/types/robots/speech-transcribe.d.ts +12 -12
  78. package/dist/alphalib/types/robots/text-speak.d.ts +8 -8
  79. package/dist/alphalib/types/robots/text-translate.d.ts +8 -8
  80. package/dist/alphalib/types/robots/video-adaptive.d.ts +16 -19
  81. package/dist/alphalib/types/robots/video-adaptive.d.ts.map +1 -1
  82. package/dist/alphalib/types/robots/video-adaptive.js +37 -3
  83. package/dist/alphalib/types/robots/video-adaptive.js.map +1 -1
  84. package/dist/alphalib/types/robots/video-concat.d.ts.map +1 -1
  85. package/dist/alphalib/types/robots/video-concat.js +7 -3
  86. package/dist/alphalib/types/robots/video-concat.js.map +1 -1
  87. package/dist/alphalib/types/robots/video-encode.d.ts.map +1 -1
  88. package/dist/alphalib/types/robots/video-encode.js +6 -0
  89. package/dist/alphalib/types/robots/video-encode.js.map +1 -1
  90. package/dist/alphalib/types/robots/video-generate.d.ts +20 -20
  91. package/dist/alphalib/types/robots/video-generate.js +1 -1
  92. package/dist/alphalib/types/robots/video-generate.js.map +1 -1
  93. package/dist/alphalib/types/robots/video-merge.d.ts.map +1 -1
  94. package/dist/alphalib/types/robots/video-merge.js +15 -1
  95. package/dist/alphalib/types/robots/video-merge.js.map +1 -1
  96. package/dist/alphalib/types/robots/video-split.d.ts.map +1 -1
  97. package/dist/alphalib/types/robots/video-split.js +2 -0
  98. package/dist/alphalib/types/robots/video-split.js.map +1 -1
  99. package/dist/alphalib/types/robots/video-subtitle.d.ts +47 -4
  100. package/dist/alphalib/types/robots/video-subtitle.d.ts.map +1 -1
  101. package/dist/alphalib/types/robots/video-subtitle.js +59 -46
  102. package/dist/alphalib/types/robots/video-subtitle.js.map +1 -1
  103. package/dist/alphalib/types/robots/vimeo-import.d.ts.map +1 -1
  104. package/dist/alphalib/types/robots/vimeo-import.js +1 -1
  105. package/dist/alphalib/types/robots/vimeo-import.js.map +1 -1
  106. package/dist/alphalib/types/robots/youtube-store.d.ts +37 -20
  107. package/dist/alphalib/types/robots/youtube-store.d.ts.map +1 -1
  108. package/dist/alphalib/types/robots/youtube-store.js +17 -29
  109. package/dist/alphalib/types/robots/youtube-store.js.map +1 -1
  110. package/dist/alphalib/youtubeCategories.d.ts +20 -0
  111. package/dist/alphalib/youtubeCategories.d.ts.map +1 -0
  112. package/dist/alphalib/youtubeCategories.js +21 -0
  113. package/dist/alphalib/youtubeCategories.js.map +1 -0
  114. package/dist/apiTypes.d.ts +12 -1
  115. package/dist/apiTypes.d.ts.map +1 -1
  116. package/dist/robots.d.ts.map +1 -1
  117. package/dist/robots.js +6 -0
  118. package/dist/robots.js.map +1 -1
  119. package/package.json +1 -1
  120. package/src/Transloadit.ts +4 -6
  121. package/src/alphalib/englishInteger.ts +14 -0
  122. package/src/alphalib/lib/zodInputSemantics.ts +22 -1
  123. package/src/alphalib/types/robots/_image-describe-output.ts +20 -0
  124. package/src/alphalib/types/robots/_image-facedetect-output.ts +19 -0
  125. package/src/alphalib/types/robots/_index.ts +100 -82
  126. package/src/alphalib/types/robots/_instructions-primitives.ts +51 -2
  127. package/src/alphalib/types/robots/_ocr-output.ts +19 -0
  128. package/src/alphalib/types/robots/audio-encode.ts +8 -1
  129. package/src/alphalib/types/robots/audio-split.ts +2 -0
  130. package/src/alphalib/types/robots/digitalocean-store.ts +1 -1
  131. package/src/alphalib/types/robots/document-convert.ts +8 -5
  132. package/src/alphalib/types/robots/google-store.ts +15 -4
  133. package/src/alphalib/types/robots/image-describe.ts +8 -1
  134. package/src/alphalib/types/robots/image-facedetect.ts +4 -13
  135. package/src/alphalib/types/robots/image-generate.ts +1 -1
  136. package/src/alphalib/types/robots/image-upscale.ts +17 -2
  137. package/src/alphalib/types/robots/mega-store.ts +1 -1
  138. package/src/alphalib/types/robots/s3-store.ts +14 -2
  139. package/src/alphalib/types/robots/video-adaptive.ts +37 -3
  140. package/src/alphalib/types/robots/video-concat.ts +7 -3
  141. package/src/alphalib/types/robots/video-encode.ts +6 -0
  142. package/src/alphalib/types/robots/video-generate.ts +1 -1
  143. package/src/alphalib/types/robots/video-merge.ts +15 -1
  144. package/src/alphalib/types/robots/video-split.ts +2 -0
  145. package/src/alphalib/types/robots/video-subtitle.ts +61 -46
  146. package/src/alphalib/types/robots/vimeo-import.ts +3 -1
  147. package/src/alphalib/types/robots/youtube-store.ts +26 -41
  148. package/src/alphalib/youtubeCategories.ts +24 -0
  149. package/src/apiTypes.ts +12 -1
  150. package/src/robots.ts +7 -0
@@ -3,293 +3,298 @@ import { z } from 'zod'
3
3
  type RobotSchemaOption = z.ZodObject<{ robot: z.ZodTypeAny } & z.ZodRawShape>
4
4
  type RobotSchemaOptions = [RobotSchemaOption, ...RobotSchemaOption[]]
5
5
  import {
6
- meta as aiChatMeta,
7
6
  interpolatableRobotAiChatInstructionsSchema,
8
7
  interpolatableRobotAiChatInstructionsWithHiddenFieldsSchema,
8
+ meta as aiChatMeta,
9
9
  } from './ai-chat.ts'
10
10
  import {
11
- meta as audioArtworkMeta,
12
11
  interpolatableRobotAudioArtworkInstructionsSchema,
13
12
  interpolatableRobotAudioArtworkInstructionsWithHiddenFieldsSchema,
13
+ meta as audioArtworkMeta,
14
14
  } from './audio-artwork.ts'
15
15
  import {
16
- meta as audioConcatMeta,
17
16
  interpolatableRobotAudioConcatInstructionsSchema,
18
17
  interpolatableRobotAudioConcatInstructionsWithHiddenFieldsSchema,
18
+ meta as audioConcatMeta,
19
19
  } from './audio-concat.ts'
20
20
  import {
21
- meta as audioEncodeMeta,
22
21
  interpolatableRobotAudioEncodeInstructionsSchema,
23
22
  interpolatableRobotAudioEncodeInstructionsWithHiddenFieldsSchema,
23
+ meta as audioEncodeMeta,
24
24
  } from './audio-encode.ts'
25
25
  import {
26
- meta as audioLoopMeta,
27
26
  interpolatableRobotAudioLoopInstructionsSchema,
28
27
  interpolatableRobotAudioLoopInstructionsWithHiddenFieldsSchema,
28
+ meta as audioLoopMeta,
29
29
  } from './audio-loop.ts'
30
30
  import {
31
- meta as audioMergeMeta,
32
31
  interpolatableRobotAudioMergeInstructionsSchema,
33
32
  interpolatableRobotAudioMergeInstructionsWithHiddenFieldsSchema,
33
+ meta as audioMergeMeta,
34
34
  } from './audio-merge.ts'
35
35
  import {
36
- meta as audioSplitMeta,
37
36
  interpolatableRobotAudioSplitInstructionsSchema,
38
37
  interpolatableRobotAudioSplitInstructionsWithHiddenFieldsSchema,
38
+ meta as audioSplitMeta,
39
39
  } from './audio-split.ts'
40
40
  import {
41
- meta as audioWaveformMeta,
42
41
  interpolatableRobotAudioWaveformInstructionsSchema,
43
42
  interpolatableRobotAudioWaveformInstructionsWithHiddenFieldsSchema,
43
+ meta as audioWaveformMeta,
44
44
  } from './audio-waveform.ts'
45
45
  import {
46
- meta as azureImportMeta,
47
46
  interpolatableRobotAzureImportInstructionsSchema,
48
47
  interpolatableRobotAzureImportInstructionsWithHiddenFieldsSchema,
48
+ meta as azureImportMeta,
49
49
  } from './azure-import.ts'
50
50
  import {
51
- meta as azureStoreMeta,
52
51
  interpolatableRobotAzureStoreInstructionsSchema,
53
52
  interpolatableRobotAzureStoreInstructionsWithHiddenFieldsSchema,
53
+ meta as azureStoreMeta,
54
54
  } from './azure-store.ts'
55
55
  import {
56
- meta as backblazeImportMeta,
57
56
  interpolatableRobotBackblazeImportInstructionsSchema,
58
57
  interpolatableRobotBackblazeImportInstructionsWithHiddenFieldsSchema,
58
+ meta as backblazeImportMeta,
59
59
  } from './backblaze-import.ts'
60
60
  import {
61
- meta as backblazeStoreMeta,
62
61
  interpolatableRobotBackblazeStoreInstructionsSchema,
63
62
  interpolatableRobotBackblazeStoreInstructionsWithHiddenFieldsSchema,
63
+ meta as backblazeStoreMeta,
64
64
  } from './backblaze-store.ts'
65
65
  import {
66
- meta as boxImportMeta,
67
66
  interpolatableRobotBoxImportInstructionsSchema,
68
67
  interpolatableRobotBoxImportInstructionsWithHiddenFieldsSchema,
68
+ meta as boxImportMeta,
69
69
  } from './box-import.ts'
70
70
  import {
71
- meta as boxStoreMeta,
72
71
  interpolatableRobotBoxStoreInstructionsSchema,
73
72
  interpolatableRobotBoxStoreInstructionsWithHiddenFieldsSchema,
73
+ meta as boxStoreMeta,
74
74
  } from './box-store.ts'
75
75
  import {
76
- meta as cloudfilesImportMeta,
77
76
  interpolatableRobotCloudfilesImportInstructionsSchema,
78
77
  interpolatableRobotCloudfilesImportInstructionsWithHiddenFieldsSchema,
78
+ meta as cloudfilesImportMeta,
79
79
  } from './cloudfiles-import.ts'
80
80
  import {
81
- meta as cloudfilesStoreMeta,
82
81
  interpolatableRobotCloudfilesStoreInstructionsSchema,
83
82
  interpolatableRobotCloudfilesStoreInstructionsWithHiddenFieldsSchema,
83
+ meta as cloudfilesStoreMeta,
84
84
  } from './cloudfiles-store.ts'
85
85
  import {
86
- meta as cloudflareImportMeta,
87
86
  interpolatableRobotCloudflareImportInstructionsSchema,
88
87
  interpolatableRobotCloudflareImportInstructionsWithHiddenFieldsSchema,
88
+ meta as cloudflareImportMeta,
89
89
  } from './cloudflare-import.ts'
90
90
  import {
91
- meta as cloudflareStoreMeta,
92
91
  interpolatableRobotCloudflareStoreInstructionsSchema,
93
92
  interpolatableRobotCloudflareStoreInstructionsWithHiddenFieldsSchema,
93
+ meta as cloudflareStoreMeta,
94
94
  } from './cloudflare-store.ts'
95
95
  import {
96
- meta as digitaloceanImportMeta,
97
96
  interpolatableRobotDigitaloceanImportInstructionsSchema,
98
97
  interpolatableRobotDigitaloceanImportInstructionsWithHiddenFieldsSchema,
98
+ meta as digitaloceanImportMeta,
99
99
  } from './digitalocean-import.ts'
100
100
  import {
101
- meta as digitaloceanStoreMeta,
102
101
  interpolatableRobotDigitaloceanStoreInstructionsSchema,
103
102
  interpolatableRobotDigitaloceanStoreInstructionsWithHiddenFieldsSchema,
103
+ meta as digitaloceanStoreMeta,
104
104
  } from './digitalocean-store.ts'
105
105
  import {
106
- meta as documentAutorotateMeta,
107
106
  interpolatableRobotDocumentAutorotateInstructionsSchema,
108
107
  interpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsSchema,
108
+ meta as documentAutorotateMeta,
109
109
  } from './document-autorotate.ts'
110
110
  import {
111
- meta as documentConvertMeta,
112
111
  interpolatableRobotDocumentConvertInstructionsSchema,
113
112
  interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema,
113
+ meta as documentConvertMeta,
114
114
  } from './document-convert.ts'
115
115
  import {
116
- meta as documentMergeMeta,
116
+ interpolatableRobotDocumentExtractInstructionsSchema,
117
+ interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema,
118
+ meta as documentExtractMeta,
119
+ } from './document-extract.ts'
120
+ import {
117
121
  interpolatableRobotDocumentMergeInstructionsSchema,
118
122
  interpolatableRobotDocumentMergeInstructionsWithHiddenFieldsSchema,
123
+ meta as documentMergeMeta,
119
124
  } from './document-merge.ts'
120
125
  import {
121
- meta as documentOcrMeta,
122
126
  interpolatableRobotDocumentOcrInstructionsSchema,
123
127
  interpolatableRobotDocumentOcrInstructionsWithHiddenFieldsSchema,
128
+ meta as documentOcrMeta,
124
129
  } from './document-ocr.ts'
125
130
  import {
126
- meta as documentOptimizeMeta,
127
131
  interpolatableRobotDocumentOptimizeInstructionsSchema,
128
132
  interpolatableRobotDocumentOptimizeInstructionsWithHiddenFieldsSchema,
133
+ meta as documentOptimizeMeta,
129
134
  } from './document-optimize.ts'
130
135
  import {
131
- meta as documentSplitMeta,
132
136
  interpolatableRobotDocumentSplitInstructionsSchema,
133
137
  interpolatableRobotDocumentSplitInstructionsWithHiddenFieldsSchema,
138
+ meta as documentSplitMeta,
134
139
  } from './document-split.ts'
135
140
  import {
136
- meta as documentThumbsMeta,
137
141
  interpolatableRobotDocumentThumbsInstructionsSchema,
138
142
  interpolatableRobotDocumentThumbsInstructionsWithHiddenFieldsSchema,
143
+ meta as documentThumbsMeta,
139
144
  } from './document-thumbs.ts'
140
145
  import {
141
- meta as dropboxImportMeta,
142
146
  interpolatableRobotDropboxImportInstructionsSchema,
143
147
  interpolatableRobotDropboxImportInstructionsWithHiddenFieldsSchema,
148
+ meta as dropboxImportMeta,
144
149
  } from './dropbox-import.ts'
145
150
  import {
146
- meta as dropboxStoreMeta,
147
151
  interpolatableRobotDropboxStoreInstructionsSchema,
148
152
  interpolatableRobotDropboxStoreInstructionsWithHiddenFieldsSchema,
153
+ meta as dropboxStoreMeta,
149
154
  } from './dropbox-store.ts'
150
155
  import {
151
- meta as edglyDeliverMeta,
152
156
  interpolatableRobotEdglyDeliverInstructionsSchema,
153
157
  interpolatableRobotEdglyDeliverInstructionsWithHiddenFieldsSchema,
158
+ meta as edglyDeliverMeta,
154
159
  } from './edgly-deliver.ts'
155
160
  import {
156
- meta as fileCompressMeta,
157
161
  interpolatableRobotFileCompressInstructionsSchema,
158
162
  interpolatableRobotFileCompressInstructionsWithHiddenFieldsSchema,
163
+ meta as fileCompressMeta,
159
164
  } from './file-compress.ts'
160
165
  import {
161
- meta as fileDecompressMeta,
162
166
  interpolatableRobotFileDecompressInstructionsSchema,
163
167
  interpolatableRobotFileDecompressInstructionsWithHiddenFieldsSchema,
168
+ meta as fileDecompressMeta,
164
169
  } from './file-decompress.ts'
165
170
  import {
166
- meta as fileFilterMeta,
167
171
  interpolatableRobotFileFilterInstructionsSchema,
168
172
  interpolatableRobotFileFilterInstructionsWithHiddenFieldsSchema,
173
+ meta as fileFilterMeta,
169
174
  } from './file-filter.ts'
170
175
  import {
171
- meta as fileHashMeta,
172
176
  interpolatableRobotFileHashInstructionsSchema,
173
177
  interpolatableRobotFileHashInstructionsWithHiddenFieldsSchema,
178
+ meta as fileHashMeta,
174
179
  } from './file-hash.ts'
175
180
  import {
176
- meta as filePreviewMeta,
177
181
  interpolatableRobotFilePreviewInstructionsSchema,
178
182
  interpolatableRobotFilePreviewInstructionsWithHiddenFieldsSchema,
183
+ meta as filePreviewMeta,
179
184
  } from './file-preview.ts'
180
185
  import {
181
- meta as fileReadMeta,
182
186
  interpolatableRobotFileReadInstructionsSchema,
183
187
  interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema,
188
+ meta as fileReadMeta,
184
189
  } from './file-read.ts'
185
190
  import {
186
- meta as fileServeMeta,
187
191
  interpolatableRobotFileServeInstructionsSchema,
188
192
  interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema,
193
+ meta as fileServeMeta,
189
194
  } from './file-serve.ts'
190
195
  import {
191
- meta as fileVerifyMeta,
192
196
  interpolatableRobotFileVerifyInstructionsSchema,
193
197
  interpolatableRobotFileVerifyInstructionsWithHiddenFieldsSchema,
198
+ meta as fileVerifyMeta,
194
199
  } from './file-verify.ts'
195
200
  import {
196
- meta as fileVirusscanMeta,
197
201
  interpolatableRobotFileVirusscanInstructionsSchema,
198
202
  interpolatableRobotFileVirusscanInstructionsWithHiddenFieldsSchema,
203
+ meta as fileVirusscanMeta,
199
204
  } from './file-virusscan.ts'
200
205
  import {
201
206
  interpolatableRobotFileWatermarkInstructionsSchema,
202
207
  interpolatableRobotFileWatermarkInstructionsWithHiddenFieldsSchema,
203
208
  } from './file-watermark.ts'
204
209
  import {
205
- meta as ftpImportMeta,
206
210
  interpolatableRobotFtpImportInstructionsSchema,
207
211
  interpolatableRobotFtpImportInstructionsWithHiddenFieldsSchema,
212
+ meta as ftpImportMeta,
208
213
  } from './ftp-import.ts'
209
214
  import {
210
- meta as ftpStoreMeta,
211
215
  interpolatableRobotFtpStoreInstructionsSchema,
212
216
  interpolatableRobotFtpStoreInstructionsWithHiddenFieldsSchema,
217
+ meta as ftpStoreMeta,
213
218
  } from './ftp-store.ts'
214
219
  import {
215
- meta as googleImportMeta,
216
220
  interpolatableRobotGoogleImportInstructionsSchema,
217
221
  interpolatableRobotGoogleImportInstructionsWithHiddenFieldsSchema,
222
+ meta as googleImportMeta,
218
223
  } from './google-import.ts'
219
224
  import {
220
- meta as googleStoreMeta,
221
225
  interpolatableRobotGoogleStoreInstructionsSchema,
222
226
  interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema,
227
+ meta as googleStoreMeta,
223
228
  } from './google-store.ts'
224
229
  import {
225
- meta as htmlConvertMeta,
226
230
  interpolatableRobotHtmlConvertInstructionsSchema,
227
231
  interpolatableRobotHtmlConvertInstructionsWithHiddenFieldsSchema,
232
+ meta as htmlConvertMeta,
228
233
  } from './html-convert.ts'
229
234
  import {
230
- meta as httpImportMeta,
231
235
  interpolatableRobotHttpImportInstructionsSchema,
232
236
  interpolatableRobotHttpImportInstructionsWithHiddenFieldsSchema,
237
+ meta as httpImportMeta,
233
238
  } from './http-import.ts'
234
239
  import {
235
- meta as httpRequestMeta,
236
240
  interpolatableRobotHttpRequestInstructionsSchema,
237
241
  interpolatableRobotHttpRequestInstructionsWithHiddenFieldsSchema,
242
+ meta as httpRequestMeta,
238
243
  } from './http-request.ts'
239
244
  import {
240
- meta as imageBgremoveMeta,
241
245
  interpolatableRobotImageBgremoveInstructionsSchema,
242
246
  interpolatableRobotImageBgremoveInstructionsWithHiddenFieldsSchema,
247
+ meta as imageBgremoveMeta,
243
248
  } from './image-bgremove.ts'
244
249
  import {
245
- meta as imageCopyrightdetectMeta,
246
250
  interpolatableRobotImageCopyrightdetectInstructionsSchema,
247
251
  interpolatableRobotImageCopyrightdetectInstructionsWithHiddenFieldsSchema,
252
+ meta as imageCopyrightdetectMeta,
248
253
  } from './image-copyrightdetect.ts'
249
254
  import {
250
- meta as imageDescribeMeta,
251
255
  interpolatableRobotImageDescribeInstructionsSchema,
252
256
  interpolatableRobotImageDescribeInstructionsWithHiddenFieldsSchema,
257
+ meta as imageDescribeMeta,
253
258
  } from './image-describe.ts'
254
259
  import {
255
- meta as imageEnhanceMeta,
256
260
  interpolatableRobotImageEnhanceInstructionsSchema,
257
261
  interpolatableRobotImageEnhanceInstructionsWithHiddenFieldsSchema,
262
+ meta as imageEnhanceMeta,
258
263
  } from './image-enhance.ts'
259
264
  import {
260
- meta as imageFacedetectMeta,
261
265
  interpolatableRobotImageFacedetectInstructionsSchema,
262
266
  interpolatableRobotImageFacedetectInstructionsWithHiddenFieldsSchema,
267
+ meta as imageFacedetectMeta,
263
268
  } from './image-facedetect.ts'
264
269
  import {
265
- meta as imageGenerateMeta,
266
270
  interpolatableRobotImageGenerateInstructionsSchema,
267
271
  interpolatableRobotImageGenerateInstructionsWithHiddenFieldsSchema,
272
+ meta as imageGenerateMeta,
268
273
  } from './image-generate.ts'
269
274
  import {
270
- meta as imageMergeMeta,
271
275
  interpolatableRobotImageMergeInstructionsSchema,
272
276
  interpolatableRobotImageMergeInstructionsWithHiddenFieldsSchema,
277
+ meta as imageMergeMeta,
273
278
  } from './image-merge.ts'
274
279
  import {
275
- meta as imageOcrMeta,
276
280
  interpolatableRobotImageOcrInstructionsSchema,
277
281
  interpolatableRobotImageOcrInstructionsWithHiddenFieldsSchema,
282
+ meta as imageOcrMeta,
278
283
  } from './image-ocr.ts'
279
284
  import {
280
- meta as imageOptimizeMeta,
281
285
  interpolatableRobotImageOptimizeInstructionsSchema,
282
286
  interpolatableRobotImageOptimizeInstructionsWithHiddenFieldsSchema,
287
+ meta as imageOptimizeMeta,
283
288
  } from './image-optimize.ts'
284
289
  import {
285
- meta as imageResizeMeta,
286
290
  interpolatableRobotImageResizeInstructionsSchema,
287
291
  interpolatableRobotImageResizeInstructionsWithHiddenFieldsSchema,
292
+ meta as imageResizeMeta,
288
293
  } from './image-resize.ts'
289
294
  import {
290
- meta as imageUpscaleMeta,
291
295
  interpolatableRobotImageUpscaleInstructionsSchema,
292
296
  interpolatableRobotImageUpscaleInstructionsWithHiddenFieldsSchema,
297
+ meta as imageUpscaleMeta,
293
298
  } from './image-upscale.ts'
294
299
  import {
295
300
  interpolatableRobotMegaImportInstructionsSchema,
@@ -320,7 +325,9 @@ import {
320
325
  interpolatableRobotMinioStoreInstructionsWithHiddenFieldsSchema,
321
326
  meta as minioStoreMeta,
322
327
  } from './minio-store.ts'
323
- import { interpolatableRobotProgressSimulateInstructionsSchema } from './progress-simulate.ts'
328
+ import {
329
+ interpolatableRobotProgressSimulateInstructionsSchema,
330
+ } from './progress-simulate.ts'
324
331
  import {
325
332
  interpolatableRobotS3ImportInstructionsSchema,
326
333
  interpolatableRobotS3ImportInstructionsWithHiddenFieldsSchema,
@@ -384,12 +391,12 @@ import {
384
391
  import {
385
392
  interpolatableRobotTigrisImportInstructionsSchema,
386
393
  interpolatableRobotTigrisImportInstructionsWithHiddenFieldsSchema,
387
- meta as tigrisImport,
394
+ meta as tigrisImportMeta,
388
395
  } from './tigris-import.ts'
389
396
  import {
390
397
  interpolatableRobotTigrisStoreInstructionsSchema,
391
398
  interpolatableRobotTigrisStoreInstructionsWithHiddenFieldsSchema,
392
- meta as tigrisStore,
399
+ meta as tigrisStoreMeta,
393
400
  } from './tigris-store.ts'
394
401
  import {
395
402
  interpolatableRobotTlcdnDeliverInstructionsSchema,
@@ -493,12 +500,13 @@ import {
493
500
  } from './youtube-store.ts'
494
501
 
495
502
  const robotStepsInstructions: RobotSchemaOptions = [
503
+ interpolatableRobotAiChatInstructionsSchema,
496
504
  interpolatableRobotAudioArtworkInstructionsSchema,
497
505
  interpolatableRobotAudioConcatInstructionsSchema,
498
- interpolatableRobotAudioSplitInstructionsSchema,
499
506
  interpolatableRobotAudioEncodeInstructionsSchema,
500
507
  interpolatableRobotAudioLoopInstructionsSchema,
501
508
  interpolatableRobotAudioMergeInstructionsSchema,
509
+ interpolatableRobotAudioSplitInstructionsSchema,
502
510
  interpolatableRobotAudioWaveformInstructionsSchema,
503
511
  interpolatableRobotAzureImportInstructionsSchema,
504
512
  interpolatableRobotAzureStoreInstructionsSchema,
@@ -506,8 +514,6 @@ const robotStepsInstructions: RobotSchemaOptions = [
506
514
  interpolatableRobotBackblazeStoreInstructionsSchema,
507
515
  interpolatableRobotBoxImportInstructionsSchema,
508
516
  interpolatableRobotBoxStoreInstructionsSchema,
509
- interpolatableRobotMegaImportInstructionsSchema,
510
- interpolatableRobotMegaStoreInstructionsSchema,
511
517
  interpolatableRobotCloudfilesImportInstructionsSchema,
512
518
  interpolatableRobotCloudfilesStoreInstructionsSchema,
513
519
  interpolatableRobotCloudflareImportInstructionsSchema,
@@ -516,10 +522,10 @@ const robotStepsInstructions: RobotSchemaOptions = [
516
522
  interpolatableRobotDigitaloceanStoreInstructionsSchema,
517
523
  interpolatableRobotDocumentAutorotateInstructionsSchema,
518
524
  interpolatableRobotDocumentConvertInstructionsSchema,
525
+ interpolatableRobotDocumentExtractInstructionsSchema,
519
526
  interpolatableRobotDocumentMergeInstructionsSchema,
520
527
  interpolatableRobotDocumentOcrInstructionsSchema,
521
528
  interpolatableRobotDocumentOptimizeInstructionsSchema,
522
- interpolatableRobotFileReadInstructionsSchema,
523
529
  interpolatableRobotDocumentSplitInstructionsSchema,
524
530
  interpolatableRobotDocumentThumbsInstructionsSchema,
525
531
  interpolatableRobotDropboxImportInstructionsSchema,
@@ -530,6 +536,7 @@ const robotStepsInstructions: RobotSchemaOptions = [
530
536
  interpolatableRobotFileFilterInstructionsSchema,
531
537
  interpolatableRobotFileHashInstructionsSchema,
532
538
  interpolatableRobotFilePreviewInstructionsSchema,
539
+ interpolatableRobotFileReadInstructionsSchema,
533
540
  interpolatableRobotFileServeInstructionsSchema,
534
541
  interpolatableRobotFileVerifyInstructionsSchema,
535
542
  interpolatableRobotFileVirusscanInstructionsSchema,
@@ -546,11 +553,13 @@ const robotStepsInstructions: RobotSchemaOptions = [
546
553
  interpolatableRobotImageEnhanceInstructionsSchema,
547
554
  interpolatableRobotImageFacedetectInstructionsSchema,
548
555
  interpolatableRobotImageGenerateInstructionsSchema,
549
- interpolatableRobotImageUpscaleInstructionsSchema,
550
556
  interpolatableRobotImageMergeInstructionsSchema,
551
557
  interpolatableRobotImageOcrInstructionsSchema,
552
558
  interpolatableRobotImageOptimizeInstructionsSchema,
553
559
  interpolatableRobotImageResizeInstructionsSchema,
560
+ interpolatableRobotImageUpscaleInstructionsSchema,
561
+ interpolatableRobotMegaImportInstructionsSchema,
562
+ interpolatableRobotMegaStoreInstructionsSchema,
554
563
  interpolatableRobotMetaWriteInstructionsSchema,
555
564
  interpolatableRobotMinioImportInstructionsSchema,
556
565
  interpolatableRobotMinioStoreInstructionsSchema,
@@ -566,7 +575,6 @@ const robotStepsInstructions: RobotSchemaOptions = [
566
575
  interpolatableRobotSwiftStoreInstructionsSchema,
567
576
  interpolatableRobotTextSpeakInstructionsSchema,
568
577
  interpolatableRobotTextTranslateInstructionsSchema,
569
- interpolatableRobotAiChatInstructionsSchema,
570
578
  interpolatableRobotTigrisImportInstructionsSchema,
571
579
  interpolatableRobotTigrisStoreInstructionsSchema,
572
580
  interpolatableRobotTlcdnDeliverInstructionsSchema,
@@ -589,15 +597,16 @@ const robotStepsInstructions: RobotSchemaOptions = [
589
597
  interpolatableRobotWasabiImportInstructionsSchema,
590
598
  interpolatableRobotWasabiStoreInstructionsSchema,
591
599
  interpolatableRobotYoutubeStoreInstructionsSchema,
592
- ] as const
600
+ ]
593
601
 
594
602
  const robotStepsInstructionsWithHiddenFields: RobotSchemaOptions = [
603
+ interpolatableRobotAiChatInstructionsWithHiddenFieldsSchema,
595
604
  interpolatableRobotAudioArtworkInstructionsWithHiddenFieldsSchema,
596
605
  interpolatableRobotAudioConcatInstructionsWithHiddenFieldsSchema,
597
- interpolatableRobotAudioSplitInstructionsWithHiddenFieldsSchema,
598
606
  interpolatableRobotAudioEncodeInstructionsWithHiddenFieldsSchema,
599
607
  interpolatableRobotAudioLoopInstructionsWithHiddenFieldsSchema,
600
608
  interpolatableRobotAudioMergeInstructionsWithHiddenFieldsSchema,
609
+ interpolatableRobotAudioSplitInstructionsWithHiddenFieldsSchema,
601
610
  interpolatableRobotAudioWaveformInstructionsWithHiddenFieldsSchema,
602
611
  interpolatableRobotAzureImportInstructionsWithHiddenFieldsSchema,
603
612
  interpolatableRobotAzureStoreInstructionsWithHiddenFieldsSchema,
@@ -605,8 +614,6 @@ const robotStepsInstructionsWithHiddenFields: RobotSchemaOptions = [
605
614
  interpolatableRobotBackblazeStoreInstructionsWithHiddenFieldsSchema,
606
615
  interpolatableRobotBoxImportInstructionsWithHiddenFieldsSchema,
607
616
  interpolatableRobotBoxStoreInstructionsWithHiddenFieldsSchema,
608
- interpolatableRobotMegaImportInstructionsWithHiddenFieldsSchema,
609
- interpolatableRobotMegaStoreInstructionsWithHiddenFieldsSchema,
610
617
  interpolatableRobotCloudfilesImportInstructionsWithHiddenFieldsSchema,
611
618
  interpolatableRobotCloudfilesStoreInstructionsWithHiddenFieldsSchema,
612
619
  interpolatableRobotCloudflareImportInstructionsWithHiddenFieldsSchema,
@@ -615,10 +622,10 @@ const robotStepsInstructionsWithHiddenFields: RobotSchemaOptions = [
615
622
  interpolatableRobotDigitaloceanStoreInstructionsWithHiddenFieldsSchema,
616
623
  interpolatableRobotDocumentAutorotateInstructionsWithHiddenFieldsSchema,
617
624
  interpolatableRobotDocumentConvertInstructionsWithHiddenFieldsSchema,
625
+ interpolatableRobotDocumentExtractInstructionsWithHiddenFieldsSchema,
618
626
  interpolatableRobotDocumentMergeInstructionsWithHiddenFieldsSchema,
619
627
  interpolatableRobotDocumentOcrInstructionsWithHiddenFieldsSchema,
620
628
  interpolatableRobotDocumentOptimizeInstructionsWithHiddenFieldsSchema,
621
- interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema,
622
629
  interpolatableRobotDocumentSplitInstructionsWithHiddenFieldsSchema,
623
630
  interpolatableRobotDocumentThumbsInstructionsWithHiddenFieldsSchema,
624
631
  interpolatableRobotDropboxImportInstructionsWithHiddenFieldsSchema,
@@ -629,10 +636,10 @@ const robotStepsInstructionsWithHiddenFields: RobotSchemaOptions = [
629
636
  interpolatableRobotFileFilterInstructionsWithHiddenFieldsSchema,
630
637
  interpolatableRobotFileHashInstructionsWithHiddenFieldsSchema,
631
638
  interpolatableRobotFilePreviewInstructionsWithHiddenFieldsSchema,
639
+ interpolatableRobotFileReadInstructionsWithHiddenFieldsSchema,
632
640
  interpolatableRobotFileServeInstructionsWithHiddenFieldsSchema,
633
641
  interpolatableRobotFileVerifyInstructionsWithHiddenFieldsSchema,
634
642
  interpolatableRobotFileVirusscanInstructionsWithHiddenFieldsSchema,
635
- interpolatableRobotFileWatermarkInstructionsWithHiddenFieldsSchema,
636
643
  interpolatableRobotFtpImportInstructionsWithHiddenFieldsSchema,
637
644
  interpolatableRobotFtpStoreInstructionsWithHiddenFieldsSchema,
638
645
  interpolatableRobotGoogleImportInstructionsWithHiddenFieldsSchema,
@@ -646,11 +653,13 @@ const robotStepsInstructionsWithHiddenFields: RobotSchemaOptions = [
646
653
  interpolatableRobotImageEnhanceInstructionsWithHiddenFieldsSchema,
647
654
  interpolatableRobotImageFacedetectInstructionsWithHiddenFieldsSchema,
648
655
  interpolatableRobotImageGenerateInstructionsWithHiddenFieldsSchema,
649
- interpolatableRobotImageUpscaleInstructionsWithHiddenFieldsSchema,
650
656
  interpolatableRobotImageMergeInstructionsWithHiddenFieldsSchema,
651
657
  interpolatableRobotImageOcrInstructionsWithHiddenFieldsSchema,
652
658
  interpolatableRobotImageOptimizeInstructionsWithHiddenFieldsSchema,
653
659
  interpolatableRobotImageResizeInstructionsWithHiddenFieldsSchema,
660
+ interpolatableRobotImageUpscaleInstructionsWithHiddenFieldsSchema,
661
+ interpolatableRobotMegaImportInstructionsWithHiddenFieldsSchema,
662
+ interpolatableRobotMegaStoreInstructionsWithHiddenFieldsSchema,
654
663
  interpolatableRobotMetaWriteInstructionsWithHiddenFieldsSchema,
655
664
  interpolatableRobotMinioImportInstructionsWithHiddenFieldsSchema,
656
665
  interpolatableRobotMinioStoreInstructionsWithHiddenFieldsSchema,
@@ -666,7 +675,6 @@ const robotStepsInstructionsWithHiddenFields: RobotSchemaOptions = [
666
675
  interpolatableRobotSwiftStoreInstructionsWithHiddenFieldsSchema,
667
676
  interpolatableRobotTextSpeakInstructionsWithHiddenFieldsSchema,
668
677
  interpolatableRobotTextTranslateInstructionsWithHiddenFieldsSchema,
669
- interpolatableRobotAiChatInstructionsWithHiddenFieldsSchema,
670
678
  interpolatableRobotTigrisImportInstructionsWithHiddenFieldsSchema,
671
679
  interpolatableRobotTigrisStoreInstructionsWithHiddenFieldsSchema,
672
680
  interpolatableRobotTlcdnDeliverInstructionsWithHiddenFieldsSchema,
@@ -689,7 +697,8 @@ const robotStepsInstructionsWithHiddenFields: RobotSchemaOptions = [
689
697
  interpolatableRobotWasabiImportInstructionsWithHiddenFieldsSchema,
690
698
  interpolatableRobotWasabiStoreInstructionsWithHiddenFieldsSchema,
691
699
  interpolatableRobotYoutubeStoreInstructionsWithHiddenFieldsSchema,
692
- ] as const
700
+ interpolatableRobotFileWatermarkInstructionsWithHiddenFieldsSchema,
701
+ ]
693
702
 
694
703
  const robotsWithHiddenBotOptions: RobotSchemaOptions = [
695
704
  ...robotStepsInstructions,
@@ -756,10 +765,10 @@ export const robotsMeta = {
756
765
  aiChatMeta,
757
766
  audioArtworkMeta,
758
767
  audioConcatMeta,
759
- audioSplitMeta,
760
768
  audioEncodeMeta,
761
769
  audioLoopMeta,
762
770
  audioMergeMeta,
771
+ audioSplitMeta,
763
772
  audioWaveformMeta,
764
773
  azureImportMeta,
765
774
  azureStoreMeta,
@@ -767,8 +776,6 @@ export const robotsMeta = {
767
776
  backblazeStoreMeta,
768
777
  boxImportMeta,
769
778
  boxStoreMeta,
770
- megaImportMeta,
771
- megaStoreMeta,
772
779
  cloudfilesImportMeta,
773
780
  cloudfilesStoreMeta,
774
781
  cloudflareImportMeta,
@@ -777,6 +784,7 @@ export const robotsMeta = {
777
784
  digitaloceanStoreMeta,
778
785
  documentAutorotateMeta,
779
786
  documentConvertMeta,
787
+ documentExtractMeta,
780
788
  documentMergeMeta,
781
789
  documentOcrMeta,
782
790
  documentOptimizeMeta,
@@ -801,17 +809,19 @@ export const robotsMeta = {
801
809
  htmlConvertMeta,
802
810
  httpImportMeta,
803
811
  httpRequestMeta,
812
+ imageBgremoveMeta,
804
813
  imageCopyrightdetectMeta,
805
814
  imageDescribeMeta,
806
815
  imageEnhanceMeta,
807
816
  imageFacedetectMeta,
808
- imageBgremoveMeta,
809
- imageUpscaleMeta,
810
817
  imageGenerateMeta,
811
818
  imageMergeMeta,
812
819
  imageOcrMeta,
813
820
  imageOptimizeMeta,
814
821
  imageResizeMeta,
822
+ imageUpscaleMeta,
823
+ megaImportMeta,
824
+ megaStoreMeta,
815
825
  metaWriteMeta,
816
826
  minioImportMeta,
817
827
  minioStoreMeta,
@@ -827,8 +837,8 @@ export const robotsMeta = {
827
837
  swiftStoreMeta,
828
838
  textSpeakMeta,
829
839
  textTranslateMeta,
830
- tigrisImport,
831
- tigrisStore,
840
+ tigrisImportMeta,
841
+ tigrisStoreMeta,
832
842
  tlcdnDeliverMeta,
833
843
  transloaditImportMeta,
834
844
  transloaditStoreMeta,
@@ -860,6 +870,8 @@ export type {
860
870
  export type {
861
871
  InterpolatableRobotAssemblySavejsonInstructions,
862
872
  InterpolatableRobotAssemblySavejsonInstructionsInput,
873
+ InterpolatableRobotAssemblySavejsonInstructionsWithHiddenFields,
874
+ InterpolatableRobotAssemblySavejsonInstructionsWithHiddenFieldsInput,
863
875
  } from './assembly-savejson.ts'
864
876
  export type {
865
877
  InterpolatableRobotAudioArtworkInstructions,
@@ -987,6 +999,12 @@ export type {
987
999
  InterpolatableRobotDocumentConvertInstructionsWithHiddenFields,
988
1000
  InterpolatableRobotDocumentConvertInstructionsWithHiddenFieldsInput,
989
1001
  } from './document-convert.ts'
1002
+ export type {
1003
+ InterpolatableRobotDocumentExtractInstructions,
1004
+ InterpolatableRobotDocumentExtractInstructionsInput,
1005
+ InterpolatableRobotDocumentExtractInstructionsWithHiddenFields,
1006
+ InterpolatableRobotDocumentExtractInstructionsWithHiddenFieldsInput,
1007
+ } from './document-extract.ts'
990
1008
  export type {
991
1009
  InterpolatableRobotDocumentMergeInstructions,
992
1010
  InterpolatableRobotDocumentMergeInstructionsInput,
@@ -132,6 +132,13 @@ export const robotMetaSchema = z.object({
132
132
  preserveInputFileUrls: z.boolean().optional(),
133
133
  minimumCharge: z.number().optional(),
134
134
  minimumChargeUsd: z.number().optional(),
135
+ providerCostPricing: z
136
+ .object({
137
+ provider: z.literal('replicate'),
138
+ model: z.string().min(1),
139
+ models: z.array(z.string().min(1)).min(1),
140
+ })
141
+ .optional(),
135
142
  minimumChargeUsdPerSpeechTranscribeMinute: awsGcpMinimumChargeUsdSchema
136
143
  .extend({
137
144
  replicate: z.literal('variable').optional(),
@@ -436,10 +443,34 @@ export const interpolationSchemaFull = zodWithJsonInputSchema(
436
443
  ),
437
444
  z.string().regex(/^\$\{[^\n\r\u2028\u2029]+\}$/u),
438
445
  )
439
- const interpolationRegexPartial = /\${.+}/
446
+ function hasPartialInterpolation(input: string): boolean {
447
+ // Retain the first opening marker on each line: the legacy .+ also accepts nested braces.
448
+ // A single scan avoids retrying the regex at every unterminated opening marker.
449
+ let interpolationStart = -1
450
+ for (let index = 0; index < input.length; index += 1) {
451
+ const character = input[index]
452
+ if (
453
+ character === '\n' ||
454
+ character === '\r' ||
455
+ character === '\u2028' ||
456
+ character === '\u2029'
457
+ ) {
458
+ interpolationStart = -1
459
+ continue
460
+ }
461
+ if (character === '}' && interpolationStart !== -1 && index > interpolationStart + 2) {
462
+ return true
463
+ }
464
+ if (interpolationStart === -1 && character === '$' && input[index + 1] === '{') {
465
+ interpolationStart = index
466
+ }
467
+ }
468
+ return false
469
+ }
470
+
440
471
  export const interpolationSchemaPartial = zodWithJsonInputSchema(
441
472
  z.custom<string>(
442
- (input) => typeof input === 'string' && interpolationRegexPartial.test(input),
473
+ (input) => typeof input === 'string' && hasPartialInterpolation(input),
443
474
  'Must be a partially interpolatable string',
444
475
  ),
445
476
  z.string().regex(/\$\{[^\n\r\u2028\u2029]+\}/u),
@@ -1168,6 +1199,24 @@ Array of field names to filter input files by when using steps.
1168
1199
  })
1169
1200
  .strict()
1170
1201
 
1202
+ const useParamDependencySchema = useParamObjectSchema.pick({ name: true }).passthrough()
1203
+ const useParamDependencyStepsSchema = z.union([
1204
+ useParamStringSchema,
1205
+ z.array(z.union([useParamStringSchema, useParamDependencySchema])),
1206
+ ])
1207
+
1208
+ /**
1209
+ * Reads authored dependency names without normalizing legacy Instructions. Mixed arrays and
1210
+ * additional options are accepted by runtime; only dependency fields belong to this view.
1211
+ */
1212
+ export const useParamDependenciesSchema = z.union([
1213
+ useParamDependencyStepsSchema,
1214
+ useParamObjectOfStepsSchema
1215
+ .pick({ steps: true })
1216
+ .extend({ steps: useParamDependencyStepsSchema })
1217
+ .passthrough(),
1218
+ ])
1219
+
1171
1220
  // Hidden fields variants for use parameters
1172
1221
  export const useParamObjectWithHiddenFieldsSchema = useParamObjectSchema.extend({
1173
1222
  result: z.union([z.literal('debug'), z.boolean()]).optional(),