@transloadit/zod 6.0.0 → 7.1.0

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 (196) hide show
  1. package/dist/v3/builtinTemplates.d.ts +40 -0
  2. package/dist/v3/builtinTemplates.d.ts.map +1 -1
  3. package/dist/v3/builtinTemplates.js +29 -0
  4. package/dist/v3/englishInteger.d.ts +3 -0
  5. package/dist/v3/englishInteger.d.ts.map +1 -0
  6. package/dist/v3/englishInteger.js +12 -0
  7. package/dist/v3/lib/zodInputSemantics.d.ts +3 -1
  8. package/dist/v3/lib/zodInputSemantics.d.ts.map +1 -1
  9. package/dist/v3/lib/zodInputSemantics.js +17 -0
  10. package/dist/v3/responseErrors/DocumentConvertRobot.d.ts +17 -0
  11. package/dist/v3/responseErrors/DocumentConvertRobot.d.ts.map +1 -0
  12. package/dist/v3/responseErrors/DocumentConvertRobot.js +16 -0
  13. package/dist/v3/robots/_image-describe-output.d.ts +55 -0
  14. package/dist/v3/robots/_image-describe-output.d.ts.map +1 -0
  15. package/dist/v3/robots/_image-describe-output.js +15 -0
  16. package/dist/v3/robots/_image-facedetect-output.d.ts +30 -0
  17. package/dist/v3/robots/_image-facedetect-output.d.ts.map +1 -0
  18. package/dist/v3/robots/_image-facedetect-output.js +14 -0
  19. package/dist/v3/robots/_index.d.ts +582 -48
  20. package/dist/v3/robots/_index.d.ts.map +1 -1
  21. package/dist/v3/robots/_index.js +84 -80
  22. package/dist/v3/robots/_instructions-primitives.d.ts +82 -0
  23. package/dist/v3/robots/_instructions-primitives.d.ts.map +1 -1
  24. package/dist/v3/robots/_instructions-primitives.js +46 -2
  25. package/dist/v3/robots/_ocr-output.d.ts +75 -0
  26. package/dist/v3/robots/_ocr-output.d.ts.map +1 -0
  27. package/dist/v3/robots/_ocr-output.js +14 -0
  28. package/dist/v3/robots/ai-chat.d.ts +12 -12
  29. package/dist/v3/robots/audio-encode.d.ts.map +1 -1
  30. package/dist/v3/robots/audio-encode.js +8 -1
  31. package/dist/v3/robots/audio-split.d.ts.map +1 -1
  32. package/dist/v3/robots/audio-split.js +2 -0
  33. package/dist/v3/robots/digitalocean-store.d.ts +4 -4
  34. package/dist/v3/robots/digitalocean-store.js +1 -1
  35. package/dist/v3/robots/document-convert.d.ts +8 -6
  36. package/dist/v3/robots/document-convert.d.ts.map +1 -1
  37. package/dist/v3/robots/document-convert.js +24 -5
  38. package/dist/v3/robots/document-extract.d.ts +28 -16
  39. package/dist/v3/robots/document-extract.d.ts.map +1 -1
  40. package/dist/v3/robots/document-extract.js +51 -1
  41. package/dist/v3/robots/document-ocr.d.ts +8 -8
  42. package/dist/v3/robots/google-store.d.ts +32 -8
  43. package/dist/v3/robots/google-store.d.ts.map +1 -1
  44. package/dist/v3/robots/google-store.js +10 -2
  45. package/dist/v3/robots/html-convert.d.ts.map +1 -1
  46. package/dist/v3/robots/html-convert.js +1 -0
  47. package/dist/v3/robots/image-bgremove.d.ts +16 -16
  48. package/dist/v3/robots/image-describe.d.ts +17 -17
  49. package/dist/v3/robots/image-describe.d.ts.map +1 -1
  50. package/dist/v3/robots/image-describe.js +2 -1
  51. package/dist/v3/robots/image-facedetect.d.ts +9 -35
  52. package/dist/v3/robots/image-facedetect.d.ts.map +1 -1
  53. package/dist/v3/robots/image-facedetect.js +1 -11
  54. package/dist/v3/robots/image-generate.d.ts +20 -20
  55. package/dist/v3/robots/image-generate.js +1 -1
  56. package/dist/v3/robots/image-ocr.d.ts +8 -8
  57. package/dist/v3/robots/image-upscale.d.ts +17 -12
  58. package/dist/v3/robots/image-upscale.d.ts.map +1 -1
  59. package/dist/v3/robots/image-upscale.js +14 -2
  60. package/dist/v3/robots/mega-store.d.ts +4 -4
  61. package/dist/v3/robots/mega-store.js +1 -1
  62. package/dist/v3/robots/s3-store.d.ts +8 -8
  63. package/dist/v3/robots/s3-store.d.ts.map +1 -1
  64. package/dist/v3/robots/s3-store.js +14 -2
  65. package/dist/v3/robots/speech-transcribe.d.ts +26 -12
  66. package/dist/v3/robots/speech-transcribe.d.ts.map +1 -1
  67. package/dist/v3/robots/speech-transcribe.js +42 -2
  68. package/dist/v3/robots/text-speak.d.ts +8 -8
  69. package/dist/v3/robots/text-translate.d.ts +8 -8
  70. package/dist/v3/robots/video-adaptive.d.ts +16 -19
  71. package/dist/v3/robots/video-adaptive.d.ts.map +1 -1
  72. package/dist/v3/robots/video-adaptive.js +37 -3
  73. package/dist/v3/robots/video-concat.d.ts.map +1 -1
  74. package/dist/v3/robots/video-concat.js +7 -3
  75. package/dist/v3/robots/video-encode.d.ts.map +1 -1
  76. package/dist/v3/robots/video-encode.js +6 -0
  77. package/dist/v3/robots/video-generate.d.ts +20 -20
  78. package/dist/v3/robots/video-generate.js +1 -1
  79. package/dist/v3/robots/video-merge.d.ts.map +1 -1
  80. package/dist/v3/robots/video-merge.js +15 -1
  81. package/dist/v3/robots/video-split.d.ts +11 -0
  82. package/dist/v3/robots/video-split.d.ts.map +1 -1
  83. package/dist/v3/robots/video-split.js +4 -1
  84. package/dist/v3/robots/video-subtitle.d.ts +71 -28
  85. package/dist/v3/robots/video-subtitle.d.ts.map +1 -1
  86. package/dist/v3/robots/video-subtitle.js +63 -49
  87. package/dist/v3/robots/video-thumbs.d.ts +36 -36
  88. package/dist/v3/robots/video-thumbs.d.ts.map +1 -1
  89. package/dist/v3/robots/video-thumbs.js +8 -3
  90. package/dist/v3/robots/vimeo-import.d.ts.map +1 -1
  91. package/dist/v3/robots/vimeo-import.js +1 -1
  92. package/dist/v3/robots/youtube-store.d.ts +37 -20
  93. package/dist/v3/robots/youtube-store.d.ts.map +1 -1
  94. package/dist/v3/robots/youtube-store.js +17 -29
  95. package/dist/v3/template.d.ts.map +1 -1
  96. package/dist/v3/template.js +5 -2
  97. package/dist/v3/youtubeCategories.d.ts +20 -0
  98. package/dist/v3/youtubeCategories.d.ts.map +1 -0
  99. package/dist/v3/youtubeCategories.js +20 -0
  100. package/dist/v4/assemblyStatus.d.ts +2 -2
  101. package/dist/v4/builtinTemplates.d.ts +22 -0
  102. package/dist/v4/builtinTemplates.d.ts.map +1 -1
  103. package/dist/v4/builtinTemplates.js +29 -0
  104. package/dist/v4/englishInteger.d.ts +3 -0
  105. package/dist/v4/englishInteger.d.ts.map +1 -0
  106. package/dist/v4/englishInteger.js +12 -0
  107. package/dist/v4/lib/zodInputSemantics.d.ts +3 -1
  108. package/dist/v4/lib/zodInputSemantics.d.ts.map +1 -1
  109. package/dist/v4/lib/zodInputSemantics.js +6 -0
  110. package/dist/v4/responseErrors/DocumentConvertRobot.d.ts +17 -0
  111. package/dist/v4/responseErrors/DocumentConvertRobot.d.ts.map +1 -0
  112. package/dist/v4/responseErrors/DocumentConvertRobot.js +16 -0
  113. package/dist/v4/robots/_image-describe-output.d.ts +23 -0
  114. package/dist/v4/robots/_image-describe-output.d.ts.map +1 -0
  115. package/dist/v4/robots/_image-describe-output.js +15 -0
  116. package/dist/v4/robots/_image-facedetect-output.d.ts +14 -0
  117. package/dist/v4/robots/_image-facedetect-output.d.ts.map +1 -0
  118. package/dist/v4/robots/_image-facedetect-output.js +15 -0
  119. package/dist/v4/robots/_index.d.ts +582 -48
  120. package/dist/v4/robots/_index.d.ts.map +1 -1
  121. package/dist/v4/robots/_index.js +84 -80
  122. package/dist/v4/robots/_instructions-primitives.d.ts +16 -0
  123. package/dist/v4/robots/_instructions-primitives.d.ts.map +1 -1
  124. package/dist/v4/robots/_instructions-primitives.js +50 -2
  125. package/dist/v4/robots/_ocr-output.d.ts +29 -0
  126. package/dist/v4/robots/_ocr-output.d.ts.map +1 -0
  127. package/dist/v4/robots/_ocr-output.js +14 -0
  128. package/dist/v4/robots/audio-encode.d.ts.map +1 -1
  129. package/dist/v4/robots/audio-encode.js +8 -1
  130. package/dist/v4/robots/audio-split.d.ts.map +1 -1
  131. package/dist/v4/robots/audio-split.js +2 -0
  132. package/dist/v4/robots/digitalocean-store.d.ts +8 -8
  133. package/dist/v4/robots/digitalocean-store.js +1 -1
  134. package/dist/v4/robots/document-convert.d.ts +22 -8
  135. package/dist/v4/robots/document-convert.d.ts.map +1 -1
  136. package/dist/v4/robots/document-convert.js +24 -5
  137. package/dist/v4/robots/document-extract.d.ts +12 -0
  138. package/dist/v4/robots/document-extract.d.ts.map +1 -1
  139. package/dist/v4/robots/document-extract.js +51 -1
  140. package/dist/v4/robots/google-store.d.ts +16 -4
  141. package/dist/v4/robots/google-store.d.ts.map +1 -1
  142. package/dist/v4/robots/google-store.js +10 -2
  143. package/dist/v4/robots/html-convert.d.ts.map +1 -1
  144. package/dist/v4/robots/html-convert.js +1 -0
  145. package/dist/v4/robots/image-describe.d.ts +1 -5
  146. package/dist/v4/robots/image-describe.d.ts.map +1 -1
  147. package/dist/v4/robots/image-describe.js +2 -1
  148. package/dist/v4/robots/image-facedetect.d.ts +1 -11
  149. package/dist/v4/robots/image-facedetect.d.ts.map +1 -1
  150. package/dist/v4/robots/image-facedetect.js +1 -12
  151. package/dist/v4/robots/image-generate.d.ts +0 -4
  152. package/dist/v4/robots/image-generate.d.ts.map +1 -1
  153. package/dist/v4/robots/image-generate.js +1 -1
  154. package/dist/v4/robots/image-upscale.d.ts +5 -0
  155. package/dist/v4/robots/image-upscale.d.ts.map +1 -1
  156. package/dist/v4/robots/image-upscale.js +14 -2
  157. package/dist/v4/robots/mega-store.d.ts +8 -8
  158. package/dist/v4/robots/mega-store.js +1 -1
  159. package/dist/v4/robots/s3-store.d.ts +20 -0
  160. package/dist/v4/robots/s3-store.d.ts.map +1 -1
  161. package/dist/v4/robots/s3-store.js +14 -2
  162. package/dist/v4/robots/speech-transcribe.d.ts +6 -0
  163. package/dist/v4/robots/speech-transcribe.d.ts.map +1 -1
  164. package/dist/v4/robots/speech-transcribe.js +42 -2
  165. package/dist/v4/robots/video-adaptive.d.ts +16 -16
  166. package/dist/v4/robots/video-adaptive.d.ts.map +1 -1
  167. package/dist/v4/robots/video-adaptive.js +38 -5
  168. package/dist/v4/robots/video-concat.d.ts.map +1 -1
  169. package/dist/v4/robots/video-concat.js +7 -3
  170. package/dist/v4/robots/video-encode.d.ts.map +1 -1
  171. package/dist/v4/robots/video-encode.js +6 -0
  172. package/dist/v4/robots/video-generate.d.ts +0 -4
  173. package/dist/v4/robots/video-generate.d.ts.map +1 -1
  174. package/dist/v4/robots/video-generate.js +1 -1
  175. package/dist/v4/robots/video-merge.d.ts.map +1 -1
  176. package/dist/v4/robots/video-merge.js +15 -1
  177. package/dist/v4/robots/video-split.d.ts +5 -0
  178. package/dist/v4/robots/video-split.d.ts.map +1 -1
  179. package/dist/v4/robots/video-split.js +4 -1
  180. package/dist/v4/robots/video-subtitle.d.ts +43 -16
  181. package/dist/v4/robots/video-subtitle.d.ts.map +1 -1
  182. package/dist/v4/robots/video-subtitle.js +65 -55
  183. package/dist/v4/robots/video-thumbs.d.ts +12 -12
  184. package/dist/v4/robots/video-thumbs.d.ts.map +1 -1
  185. package/dist/v4/robots/video-thumbs.js +10 -5
  186. package/dist/v4/robots/vimeo-import.d.ts.map +1 -1
  187. package/dist/v4/robots/vimeo-import.js +1 -1
  188. package/dist/v4/robots/youtube-store.d.ts +25 -76
  189. package/dist/v4/robots/youtube-store.d.ts.map +1 -1
  190. package/dist/v4/robots/youtube-store.js +18 -29
  191. package/dist/v4/template.d.ts.map +1 -1
  192. package/dist/v4/template.js +5 -2
  193. package/dist/v4/youtubeCategories.d.ts +20 -0
  194. package/dist/v4/youtubeCategories.d.ts.map +1 -0
  195. package/dist/v4/youtubeCategories.js +20 -0
  196. package/package.json +2 -2
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod/v4';
2
+ /** An OCR polygon vertex in pixel coordinates. Provider omissions belong at the property site. */
3
+ export declare const ocrBoundingVertexSchema: z.ZodObject<{
4
+ x: z.ZodNumber;
5
+ y: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ /** Complete OCR text and pixel coordinates shared by image/document result projections. */
8
+ export declare const ocrTextWithPolygonSchema: z.ZodObject<{
9
+ text: z.ZodString;
10
+ boundingPolygon: z.ZodArray<z.ZodObject<{
11
+ x: z.ZodNumber;
12
+ y: z.ZodNumber;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ /** Full-granularity OCR JSON projection requiring complete polygons. */
16
+ export declare const ocrFullOutputSchema: z.ZodArray<z.ZodObject<{
17
+ text: z.ZodString;
18
+ boundingPolygon: z.ZodArray<z.ZodObject<{
19
+ x: z.ZodNumber;
20
+ y: z.ZodNumber;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>>;
23
+ /** The list-granularity OCR result used by both AWS and GCP. */
24
+ export declare const ocrTextListSchema: z.ZodArray<z.ZodString>;
25
+ /** A list-granularity metadata projection with recognized text required. */
26
+ export declare const ocrTextListMetaSchema: z.ZodObject<{
27
+ recognized_text: z.ZodArray<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ //# sourceMappingURL=_ocr-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_ocr-output.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/_ocr-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,kGAAkG;AAClG,eAAO,MAAM,uBAAuB;;;iBAA6C,CAAA;AAEjF,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB;;;;;;iBAGnC,CAAA;AAEF,wEAAwE;AACxE,eAAO,MAAM,mBAAmB;;;;;;kBAAoC,CAAA;AAEpE,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,yBAAsB,CAAA;AAEpD,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB;;iBAAmD,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod/v4';
2
+ /** An OCR polygon vertex in pixel coordinates. Provider omissions belong at the property site. */
3
+ export const ocrBoundingVertexSchema = z.object({ x: z.number(), y: z.number() });
4
+ /** Complete OCR text and pixel coordinates shared by image/document result projections. */
5
+ export const ocrTextWithPolygonSchema = z.object({
6
+ text: z.string(),
7
+ boundingPolygon: z.array(ocrBoundingVertexSchema),
8
+ });
9
+ /** Full-granularity OCR JSON projection requiring complete polygons. */
10
+ export const ocrFullOutputSchema = z.array(ocrTextWithPolygonSchema);
11
+ /** The list-granularity OCR result used by both AWS and GCP. */
12
+ export const ocrTextListSchema = z.array(z.string());
13
+ /** A list-granularity metadata projection with recognized text required. */
14
+ export const ocrTextListMetaSchema = z.object({ recognized_text: ocrTextListSchema });
@@ -1 +1 @@
1
- {"version":3,"file":"audio-encode.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/audio-encode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAe1B,eAAO,MAAM,IAAI,EAAE,cAgBlB,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYpC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,kCAAkC,CAAC,KAAK,CACtC,CAAA;AAEvD,eAAO,MACa,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACpD,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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0DAA0D,GACpE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,+DAA+D,GACzE,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
@@ -25,7 +25,14 @@ export const robotAudioEncodeInstructionsSchema = robotBase
25
25
  result: optionalWithV3Semantics(z
26
26
  .boolean())
27
27
  .describe('Whether the results of this Step should be present in the Assembly Status JSON'),
28
- robot: z.literal('/audio/encode'),
28
+ // The page renders the purpose sentence separately; add only the spatial-audio section here.
29
+ robot: z.literal('/audio/encode').describe(`
30
+ ## iPhone spatial audio
31
+
32
+ Videos recorded with iPhone spatial audio can contain a stereo AAC track alongside an Apple Positional Audio Codec (APAC) track. When unsupported audio is present, this <dfn>Robot</dfn> keeps one supported audio track by default. Spatial audio is not preserved or converted.
33
+
34
+ Files containing only unsupported audio still fail. Individual audio track selections and stream-copy requests keep the tracks you select; the output format must support copied tracks.
35
+ `),
29
36
  bitrate: optionalWithV3Semantics(bitrateSchema).describe(robotParameterDocs.audio_bitrate.description),
30
37
  sample_rate: optionalWithV3Semantics(sampleRateSchema)
31
38
  .describe(robotParameterDocs.audio_sample_rate.description),
@@ -1 +1 @@
1
- {"version":3,"file":"audio-split.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/audio-split.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAe1B,eAAO,MAAM,IAAI,EAAE,cAmBlB,CAAA;AAiBD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAC9E,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,2BAA2B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AAChE,MAAM,MAAM,2CAA2C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACtF,MAAM,MAAM,yCAAyC,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC3F,MAAM,MAAM,8CAA8C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAChG,MAAM,MAAM,yDAAyD,GACnE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,8DAA8D,GACxE,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
@@ -39,6 +39,8 @@ export const robotAudioSplitInstructionsSchema = robotBase
39
39
  .describe('Whether the results of this Step should be present in the Assembly Status JSON'),
40
40
  robot: z.literal('/audio/split').describe(`
41
41
  Splits an audio file into multiple segments based on an array of from/to durations. Each segment produces a separate output file. This is useful for cutting an audio file into parts, for example to insert ads later via [🤖/audio/concat](/docs/robots/audio-concat/).
42
+
43
+ For iPhone videos with spatial audio, see [iPhone spatial audio in 🤖/audio/encode](/docs/robots/audio-encode/#iphone-spatial-audio).
42
44
  `),
43
45
  segments: z
44
46
  .array(segmentSchema)
@@ -42,10 +42,10 @@ export declare const robotDigitaloceanStoreInstructionsSchema: z.ZodObject<{
42
42
  robot: z.ZodLiteral<"/digitalocean/store">;
43
43
  path: z.ZodDefault<z.ZodString>;
44
44
  url_prefix: z.ZodDefault<z.ZodString>;
45
- acl: z.ZodDefault<z.ZodEnum<{
45
+ acl: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
46
46
  private: "private";
47
47
  "public-read": "public-read";
48
- }>>;
48
+ }>>>;
49
49
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
50
50
  sign_urls_for: z.ZodOptional<z.ZodNumber>;
51
51
  }, z.core.$strict>;
@@ -90,10 +90,10 @@ export declare const robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z
90
90
  robot: z.ZodLiteral<"/digitalocean/store">;
91
91
  path: z.ZodDefault<z.ZodString>;
92
92
  url_prefix: z.ZodDefault<z.ZodString>;
93
- acl: z.ZodDefault<z.ZodEnum<{
93
+ acl: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
94
94
  private: "private";
95
95
  "public-read": "public-read";
96
- }>>;
96
+ }>>>;
97
97
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
98
98
  sign_urls_for: z.ZodOptional<z.ZodNumber>;
99
99
  result: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"debug">, z.ZodDefault<z.ZodBoolean>]>>;
@@ -138,10 +138,10 @@ export declare const robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z
138
138
  robot: z.ZodLiteral<"/digitalocean/store">;
139
139
  path: z.ZodPrefault<z.ZodString>;
140
140
  url_prefix: z.ZodPrefault<z.ZodString>;
141
- acl: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
141
+ acl: z.ZodPrefault<z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
142
142
  private: "private";
143
143
  "public-read": "public-read";
144
- }>]>>;
144
+ }>]>>>;
145
145
  headers: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
146
146
  sign_urls_for: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
147
147
  }, z.core.$strict>, interpolatableRobotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z.ZodObject<{
@@ -184,10 +184,10 @@ export declare const robotDigitaloceanStoreInstructionsWithHiddenFieldsSchema: z
184
184
  robot: z.ZodLiteral<"/digitalocean/store">;
185
185
  path: z.ZodPrefault<z.ZodString>;
186
186
  url_prefix: z.ZodPrefault<z.ZodString>;
187
- acl: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
187
+ acl: z.ZodPrefault<z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
188
188
  private: "private";
189
189
  "public-read": "public-read";
190
- }>]>>;
190
+ }>]>>>;
191
191
  headers: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
192
192
  sign_urls_for: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
193
193
  result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
@@ -23,7 +23,7 @@ export const robotDigitaloceanStoreInstructionsSchema = robotBase
23
23
  .describe(`
24
24
  The URL prefix used for the returned URL, such as \`"https://my.cdn.com/some/path"\`.
25
25
  `),
26
- acl: storageAcl,
26
+ acl: storageAcl.default('private'),
27
27
  headers: z.record(z.string(), z.string())
28
28
  .default({ 'Content-Type': '${file.mime}' })
29
29
  .describe(`
@@ -1,5 +1,19 @@
1
1
  import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
2
2
  import { z } from 'zod/v4';
3
+ /** Accepts Playwright's paper-format case variants while publishing canonical spellings. */
4
+ export declare const documentConvertPdfFormatSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
5
+ A0: "A0";
6
+ A1: "A1";
7
+ A2: "A2";
8
+ A3: "A3";
9
+ A4: "A4";
10
+ A5: "A5";
11
+ A6: "A6";
12
+ Ledger: "Ledger";
13
+ Legal: "Legal";
14
+ Letter: "Letter";
15
+ Tabloid: "Tabloid";
16
+ }>>;
3
17
  export declare const meta: RobotMetaInput;
4
18
  export declare const robotDocumentConvertInstructionsSchema: z.ZodObject<{
5
19
  interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
@@ -82,7 +96,7 @@ export declare const robotDocumentConvertInstructionsSchema: z.ZodObject<{
82
96
  }>>;
83
97
  pdf_margin: z.ZodDefault<z.ZodString>;
84
98
  pdf_print_background: z.ZodDefault<z.ZodBoolean>;
85
- pdf_format: z.ZodDefault<z.ZodEnum<{
99
+ pdf_format: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
86
100
  A0: "A0";
87
101
  A1: "A1";
88
102
  A2: "A2";
@@ -94,7 +108,7 @@ export declare const robotDocumentConvertInstructionsSchema: z.ZodObject<{
94
108
  Legal: "Legal";
95
109
  Letter: "Letter";
96
110
  Tabloid: "Tabloid";
97
- }>>;
111
+ }>>>;
98
112
  pdf_display_header_footer: z.ZodDefault<z.ZodBoolean>;
99
113
  pdf_header_template: z.ZodOptional<z.ZodString>;
100
114
  pdf_footer_template: z.ZodOptional<z.ZodString>;
@@ -180,7 +194,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
180
194
  }>>;
181
195
  pdf_margin: z.ZodDefault<z.ZodString>;
182
196
  pdf_print_background: z.ZodDefault<z.ZodBoolean>;
183
- pdf_format: z.ZodDefault<z.ZodEnum<{
197
+ pdf_format: z.ZodDefault<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
184
198
  A0: "A0";
185
199
  A1: "A1";
186
200
  A2: "A2";
@@ -192,7 +206,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
192
206
  Legal: "Legal";
193
207
  Letter: "Letter";
194
208
  Tabloid: "Tabloid";
195
- }>>;
209
+ }>>>;
196
210
  pdf_display_header_footer: z.ZodDefault<z.ZodBoolean>;
197
211
  pdf_header_template: z.ZodOptional<z.ZodString>;
198
212
  pdf_footer_template: z.ZodOptional<z.ZodString>;
@@ -278,7 +292,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
278
292
  }>]>>;
279
293
  pdf_margin: z.ZodPrefault<z.ZodString>;
280
294
  pdf_print_background: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
281
- pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
295
+ pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
282
296
  A0: "A0";
283
297
  A1: "A1";
284
298
  A2: "A2";
@@ -290,7 +304,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
290
304
  Legal: "Legal";
291
305
  Letter: "Letter";
292
306
  Tabloid: "Tabloid";
293
- }>]>>;
307
+ }>>]>>;
294
308
  pdf_display_header_footer: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
295
309
  pdf_header_template: z.ZodOptional<z.ZodString>;
296
310
  pdf_footer_template: z.ZodOptional<z.ZodString>;
@@ -374,7 +388,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
374
388
  }>]>>;
375
389
  pdf_margin: z.ZodPrefault<z.ZodString>;
376
390
  pdf_print_background: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
377
- pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
391
+ pdf_format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
378
392
  A0: "A0";
379
393
  A1: "A1";
380
394
  A2: "A2";
@@ -386,7 +400,7 @@ export declare const robotDocumentConvertInstructionsWithHiddenFieldsSchema: z.Z
386
400
  Legal: "Legal";
387
401
  Letter: "Letter";
388
402
  Tabloid: "Tabloid";
389
- }>]>>;
403
+ }>>]>>;
390
404
  pdf_display_header_footer: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
391
405
  pdf_header_template: z.ZodOptional<z.ZodString>;
392
406
  pdf_footer_template: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"document-convert.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/document-convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,eAAO,MAAM,IAAI,EAAE,cAwElB,CAAA;AAED,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6KxC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,sCAAsC,CAAC,KAAK,CACtC,CAAA;AAE3D,eAAO,MACa,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACxD,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAElE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACrD,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACrE,MAAM,MAAM,gDAAgD,GAAG,YAAY,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;;;;;;;;;;;;;;;;;;;;;;;kBACrD,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACrE,MAAM,MAAM,gDAAgD,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AAC3F,MAAM,MAAM,8CAA8C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAChG,MAAM,MAAM,mDAAmD,GAC7D,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACrC,MAAM,MAAM,8DAA8D,GACxE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,mEAAmE,GAC7E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
@@ -1,6 +1,20 @@
1
1
  import { optionalWithV3Semantics } from "../lib/sdkZodOptional.js";
2
2
  import { z } from 'zod/v4';
3
+ import { zodCaseInsensitiveEnum } from "../lib/zodInputSemantics.js";
4
+ import { documentConvertLoadInternalErrorReason, documentConvertLoadUserErrorReason, } from "../responseErrors/DocumentConvertRobot.js";
3
5
  import { createProcessingExample, defineRobot, robotBase, robotDocumentProcessingMeta, robotUse, } from "./_instructions-primitives.js";
6
+ const transcriptSrtDocumentation = 'Timestamped JSON from `/speech/transcribe` with `"format": "json"` can be converted to SRT. ' +
7
+ 'Set `"format": "srt"` here. JSON words are grouped into cues of up to three words, breaking ' +
8
+ 'at sentence endings and pauses longer than 0.4 seconds. Casing and punctuation are preserved. ' +
9
+ 'JSON input is limited to 32 MiB and is only supported for SRT output. ' +
10
+ 'SRT-to-SRT copies the original cues unchanged.';
11
+ /** Accepts Playwright's paper-format case variants while publishing canonical spellings. */
12
+ export const documentConvertPdfFormatSchema = zodCaseInsensitiveEnum(z.enum(['A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'Ledger', 'Legal', 'Letter', 'Tabloid']));
13
+ const documentLoadErrorDocumentation = `
14
+ A generic LibreOffice load refusal returns \`USER_COMMAND_ERROR\` with the reason “${documentConvertLoadUserErrorReason}” This preserves the user error code for integrations without assuming the document is corrupt.
15
+
16
+ When diagnostics identify a problem in the conversion service, the load failure returns \`INTERNAL_COMMAND_ERROR\` with the reason “${documentConvertLoadInternalErrorReason}” Private diagnostics are not included in either response.
17
+ `;
4
18
  export const meta = {
5
19
  ...robotDocumentProcessingMeta,
6
20
  example_code: createProcessingExample('converted', '/document/convert', {
@@ -18,6 +32,10 @@ Using this <dfn>Robot</dfn>, you can bypass the issues that certain file types m
18
32
  > ![Warning]
19
33
  > A general rule of this <dfn>Robot</dfn> is that converting files into an alien format category will result in an error. For example, SRT files can be converted into the VTT format, but not to an image.
20
34
 
35
+ ${documentLoadErrorDocumentation}
36
+
37
+ ${transcriptSrtDocumentation}
38
+
21
39
  The following file formats can be converted from:
22
40
 
23
41
  - \`ai\`
@@ -87,6 +105,10 @@ Using this Robot, you can bypass the issues that certain file types may bring, b
87
105
  > [!Warning]
88
106
  > A general rule of this Robot is that converting files into an alien format category will result in an error. For example, SRT files can be converted into the VTT format (and vice versa), but not to an image.
89
107
 
108
+ ${documentLoadErrorDocumentation}
109
+
110
+ ${transcriptSrtDocumentation}
111
+
90
112
  The following file formats can be converted from:
91
113
 
92
114
  - \`ai\`
@@ -194,11 +216,8 @@ Print PDF background graphics.
194
216
 
195
217
  Currently this parameter is only supported when converting from \`html\`.
196
218
  `),
197
- pdf_format: z
198
- .enum(['A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'Ledger', 'Legal', 'Letter', 'Tabloid'])
199
- .default('Letter')
200
- .describe(`
201
- PDF paper format.
219
+ pdf_format: documentConvertPdfFormatSchema.default('Letter').describe(`
220
+ PDF paper format. Values are case-insensitive.
202
221
 
203
222
  Currently this parameter is only supported when converting from \`html\`.
204
223
  `),
@@ -1,5 +1,17 @@
1
1
  import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
2
2
  import { z } from 'zod/v4';
3
+ /** Validate OCR dependencies after interpolation-aware parsing at the Assembly Step boundary. */
4
+ export declare function refineDocumentExtractOcr(step: {
5
+ robot: string;
6
+ extract?: unknown;
7
+ text_method?: unknown;
8
+ ocr_provider?: unknown;
9
+ password?: unknown;
10
+ page_range?: unknown;
11
+ text_granularity?: unknown;
12
+ }, context: z.RefinementCtx, options?: {
13
+ allowInterpolation?: boolean;
14
+ }): void;
3
15
  export declare const meta: RobotMetaInput;
4
16
  export declare const robotDocumentExtractInstructionsSchema: z.ZodObject<{
5
17
  interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"document-extract.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/document-extract.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAkB1B,eAAO,MAAM,IAAI,EAAE,cAclB,CAAA;AAED,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqGxC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,sCAAsC,CAAC,KAAK,CACtC,CAAA;AAE3D,eAAO,MACa,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACxD,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAElE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACrD,CAA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;;;;;;;;;;;;;;;;;;;kBAqGxC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,sCAAsC,CAAC,KAAK,CACtC,CAAA;AAE3D,eAAO,MACa,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACxD,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAElE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACrD,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACrE,MAAM,MAAM,gDAAgD,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AAC3F,MAAM,MAAM,8CAA8C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAChG,MAAM,MAAM,mDAAmD,GAC7D,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACrC,MAAM,MAAM,8DAA8D,GACxE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,mEAAmE,GAC7E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
@@ -1,13 +1,63 @@
1
1
  import { optionalWithV3Semantics } from "../lib/sdkZodOptional.js";
2
2
  import { z } from 'zod/v4';
3
3
  import { ecmaWhitespaceCharacterClass } from "../lib/zodInputSemantics.js";
4
- import { createProcessingExample, defineRobot, robotBase, robotDocumentProcessingMeta, robotUse, } from "./_instructions-primitives.js";
4
+ import { createProcessingExample, defineRobot, interpolationSchemaFull, robotBase, robotDocumentProcessingMeta, robotUse, } from "./_instructions-primitives.js";
5
5
  const extractTargets = z.enum(['text', 'images']);
6
6
  const imageFormats = z.enum(['auto', 'original', 'png', 'jpg']);
7
7
  const ocrProviders = z.enum(['aws', 'gcp']);
8
8
  const textFormats = z.enum(['txt', 'json']);
9
9
  const textGranularities = z.enum(['document', 'page']);
10
10
  const textMethods = z.enum(['native', 'ocr', 'auto']);
11
+ /** Validate OCR dependencies after interpolation-aware parsing at the Assembly Step boundary. */
12
+ export function refineDocumentExtractOcr(step, context, options = {}) {
13
+ if (step.robot !== '/document/extract')
14
+ return;
15
+ if (step.text_method !== 'ocr' && step.text_method !== 'auto')
16
+ return;
17
+ // Image-only extraction never invokes OCR; unresolved targets are checked at runtime.
18
+ const extractsText = step.extract === undefined ||
19
+ step.extract === 'text' ||
20
+ (Array.isArray(step.extract) && step.extract.includes('text'));
21
+ if (!extractsText)
22
+ return;
23
+ if (step.ocr_provider === undefined) {
24
+ context.addIssue({
25
+ code: z.ZodIssueCode.custom,
26
+ path: ['ocr_provider'],
27
+ message: 'The ocr_provider parameter is required when text_method is ocr or auto.',
28
+ });
29
+ }
30
+ // Assembly Steps preserve opaque interpolation until the Robot checks the resolved values.
31
+ // Builtin fields can opt out because those values are already resolved at their boundary.
32
+ // Keep these constraints aligned with the matching stepJsonInputSchema branch in template.ts.
33
+ if (step.password !== undefined &&
34
+ step.password !== '' &&
35
+ !(options.allowInterpolation !== false &&
36
+ interpolationSchemaFull.safeParse(step.password).success)) {
37
+ context.addIssue({
38
+ code: z.ZodIssueCode.custom,
39
+ path: ['password'],
40
+ message: 'The password parameter is only supported for native text extraction and embedded image extraction.',
41
+ });
42
+ }
43
+ // Defer full page-range interpolation to runtime, consistently with the other unresolved fields.
44
+ if (step.page_range !== undefined &&
45
+ !(options.allowInterpolation !== false &&
46
+ interpolationSchemaFull.safeParse(step.page_range).success)) {
47
+ context.addIssue({
48
+ code: z.ZodIssueCode.custom,
49
+ path: ['page_range'],
50
+ message: 'The page_range parameter is only supported for native text extraction.',
51
+ });
52
+ }
53
+ if (step.text_granularity === 'page') {
54
+ context.addIssue({
55
+ code: z.ZodIssueCode.custom,
56
+ path: ['text_granularity'],
57
+ message: 'The page text_granularity is only supported for native text extraction.',
58
+ });
59
+ }
60
+ }
11
61
  export const meta = {
12
62
  ...robotDocumentProcessingMeta,
13
63
  example_code: createProcessingExample('extracted', '/document/extract', {
@@ -1,4 +1,4 @@
1
- import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
1
+ import type { RobotDefinitionWithHiddenFields, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
2
2
  import { z } from 'zod/v4';
3
3
  export declare const meta: RobotMetaInput;
4
4
  export declare const robotGoogleStoreInstructionsSchema: z.ZodObject<{
@@ -48,7 +48,13 @@ export declare const robotGoogleStoreInstructionsSchema: z.ZodObject<{
48
48
  url_template: z.ZodDefault<z.ZodString>;
49
49
  ssl_url_template: z.ZodDefault<z.ZodString>;
50
50
  }, z.core.$strict>;
51
- export declare const robotDefinition: RobotDefinition<typeof robotGoogleStoreInstructionsSchema.shape>;
51
+ declare const hiddenFields: {
52
+ bucket: z.ZodOptional<z.ZodString>;
53
+ credentials: z.ZodOptional<z.ZodString>;
54
+ key_file_contents: z.ZodOptional<z.ZodString>;
55
+ project_id: z.ZodOptional<z.ZodString>;
56
+ };
57
+ export declare const robotDefinition: RobotDefinitionWithHiddenFields<typeof robotGoogleStoreInstructionsSchema.shape, typeof hiddenFields>;
52
58
  export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodObject<{
53
59
  interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
54
60
  true: "true";
@@ -82,7 +88,6 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
82
88
  fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
89
  }, z.core.$strict>]>>;
84
90
  robot: z.ZodLiteral<"/google/store">;
85
- credentials: z.ZodString;
86
91
  path: z.ZodDefault<z.ZodString>;
87
92
  acl: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
88
93
  private: "private";
@@ -95,6 +100,10 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
95
100
  url_template: z.ZodDefault<z.ZodString>;
96
101
  ssl_url_template: z.ZodDefault<z.ZodString>;
97
102
  result: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"debug">, z.ZodOptional<z.ZodBoolean>]>>;
103
+ bucket: z.ZodOptional<z.ZodString>;
104
+ credentials: z.ZodOptional<z.ZodString>;
105
+ key_file_contents: z.ZodOptional<z.ZodString>;
106
+ project_id: z.ZodOptional<z.ZodString>;
98
107
  }, z.core.$strict>, interpolatableRobotGoogleStoreInstructionsSchema: z.ZodObject<{
99
108
  interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
100
109
  true: "true";
@@ -174,7 +183,6 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
174
183
  fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
175
184
  }, z.core.$strict>]>>;
176
185
  robot: z.ZodLiteral<"/google/store">;
177
- credentials: z.ZodString;
178
186
  path: z.ZodPrefault<z.ZodString>;
179
187
  acl: z.ZodPrefault<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodEnum<{
180
188
  private: "private";
@@ -187,6 +195,10 @@ export declare const robotGoogleStoreInstructionsWithHiddenFieldsSchema: z.ZodOb
187
195
  url_template: z.ZodPrefault<z.ZodString>;
188
196
  ssl_url_template: z.ZodPrefault<z.ZodString>;
189
197
  result: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">]>, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
198
+ bucket: z.ZodOptional<z.ZodString>;
199
+ credentials: z.ZodOptional<z.ZodString>;
200
+ key_file_contents: z.ZodOptional<z.ZodString>;
201
+ project_id: z.ZodOptional<z.ZodString>;
190
202
  }, z.core.$strict>;
191
203
  type Instructions = RobotSchemaVariantTypes<typeof robotDefinition>;
192
204
  export type RobotGoogleStoreInstructions = Instructions['output'];
@@ -1 +1 @@
1
- {"version":3,"file":"google-store.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/google-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAY1B,eAAO,MAAM,IAAI,EAAE,cAWlB,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsDpC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,kCAAkC,CAAC,KAAK,CACtC,CAAA;AAEvD,eAAO,MACa,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACpD,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAChC,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAC/E,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACjE,MAAM,MAAM,4CAA4C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACvF,MAAM,MAAM,0CAA0C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC5F,MAAM,MAAM,+CAA+C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACjG,MAAM,MAAM,0DAA0D,GACpE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,+DA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,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { optionalWithV3Semantics } from "../lib/sdkZodOptional.js";
2
2
  import { z } from 'zod/v4';
3
- import { createStorageStoreExample, defineRobot, getGoogleCredentialsDescription, googleBase, robotBase, robotStoreMeta, robotUse, } from "./_instructions-primitives.js";
3
+ import { createStorageStoreExample, defineRobotWithHiddenFields, getGoogleCredentialsDescription, googleBase, robotBase, robotStoreMeta, robotUse, } from "./_instructions-primitives.js";
4
4
  export const meta = {
5
5
  ...robotStoreMeta,
6
6
  example_code: createStorageStoreExample('/google/store', 'YOUR_GOOGLE_CREDENTIALS'),
@@ -65,5 +65,13 @@ The SSL URL of the file in the result JSON. The following [Assembly variables](/
65
65
  `),
66
66
  })
67
67
  .strict();
68
- export const robotDefinition = defineRobot(meta, robotGoogleStoreInstructionsSchema);
68
+ // Credential alternatives stay optional while Templates and Assembly overrides are merged.
69
+ // GoogleStoreRobot validates the resolved values after credential injection.
70
+ const hiddenFields = {
71
+ bucket: optionalWithV3Semantics(z.string()),
72
+ credentials: optionalWithV3Semantics(robotGoogleStoreInstructionsSchema.shape.credentials),
73
+ key_file_contents: optionalWithV3Semantics(z.string()),
74
+ project_id: optionalWithV3Semantics(z.string()),
75
+ };
76
+ export const robotDefinition = defineRobotWithHiddenFields(meta, robotGoogleStoreInstructionsSchema, hiddenFields);
69
77
  export const { withHiddenFields: robotGoogleStoreInstructionsWithHiddenFieldsSchema, interpolatable: interpolatableRobotGoogleStoreInstructionsSchema, interpolatableWithHiddenFields: interpolatableRobotGoogleStoreInstructionsWithHiddenFieldsSchema, } = robotDefinition;
@@ -1 +1 @@
1
- {"version":3,"file":"html-convert.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/html-convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,+BAA+B,EAC/B,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAS1B,eAAO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,MAAM,IAAI,EAAE,cA4BlB,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8EpC,CAAA;AAEX,QAAA,MAAM,YAAY;;;;CAIjB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,+BAA+B,CAC3D,OAAO,kCAAkC,CAAC,KAAK,EAC/C,OAAO,YAAY,CACkE,CAAA;AAEvF,eAAO,MACa,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACpD,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAChC,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAC/E,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACjE,MAAM,MAAM,4CAA4C,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AACvF,MAAM,MAAM,0CAA0C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC5F,MAAM,MAAM,+CAA+C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACjG,MAAM,MAAM,0DAA0D,GACpE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,+DAA+D,GACzE,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
@@ -44,6 +44,7 @@ Use [🤖/image/resize](/docs/robots/image-resize/) to resize or crop the screen
44
44
  .default(null)
45
45
  .describe(`
46
46
  The URL of the web page to be converted. Optional, as you can also upload/import HTML files and pass it to this <dfn>Robot</dfn>.
47
+ Omit it, or use \`null\` or an empty string, to convert uploaded HTML instead.
47
48
  `),
48
49
  format: z
49
50
  .enum(['jpeg', 'jpg', 'pdf', 'png'])
@@ -1,5 +1,6 @@
1
1
  import type { RobotDefinition, RobotMetaInput, RobotSchemaVariantTypes } from './_instructions-primitives.ts';
2
2
  import { z } from 'zod/v4';
3
+ export { imageDescribeFullMetaSchema, imageDescribeFullOutputSchema, imageDescribeLabelSchema, imageDescribeListMetaSchema, } from './_image-describe-output.ts';
3
4
  export declare const meta: RobotMetaInput;
4
5
  export declare const robotImageDescribeInstructionsSchema: z.ZodObject<{
5
6
  interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
@@ -46,7 +47,6 @@ export declare const robotImageDescribeInstructionsSchema: z.ZodObject<{
46
47
  }>>;
47
48
  format: z.ZodDefault<z.ZodEnum<{
48
49
  json: "json";
49
- text: "text";
50
50
  meta: "meta";
51
51
  }>>;
52
52
  explicit_descriptions: z.ZodDefault<z.ZodBoolean>;
@@ -96,7 +96,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
96
96
  }>>;
97
97
  format: z.ZodDefault<z.ZodEnum<{
98
98
  json: "json";
99
- text: "text";
100
99
  meta: "meta";
101
100
  }>>;
102
101
  explicit_descriptions: z.ZodDefault<z.ZodBoolean>;
@@ -146,7 +145,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
146
145
  }>]>>;
147
146
  format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
148
147
  json: "json";
149
- text: "text";
150
148
  meta: "meta";
151
149
  }>]>>;
152
150
  explicit_descriptions: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
@@ -194,7 +192,6 @@ export declare const robotImageDescribeInstructionsWithHiddenFieldsSchema: z.Zod
194
192
  }>]>>;
195
193
  format: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodEnum<{
196
194
  json: "json";
197
- text: "text";
198
195
  meta: "meta";
199
196
  }>]>>;
200
197
  explicit_descriptions: z.ZodPrefault<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
@@ -207,5 +204,4 @@ export type InterpolatableRobotImageDescribeInstructions = Instructions['interpo
207
204
  export type InterpolatableRobotImageDescribeInstructionsInput = Instructions['interpolatableInput'];
208
205
  export type InterpolatableRobotImageDescribeInstructionsWithHiddenFields = Instructions['interpolatableHiddenOutput'];
209
206
  export type InterpolatableRobotImageDescribeInstructionsWithHiddenFieldsInput = Instructions['interpolatableHiddenInput'];
210
- export {};
211
207
  //# sourceMappingURL=image-describe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-describe.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-describe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAa1B,eAAO,MAAM,IAAI,EAAE,cAoBlB,CAAA;AAED,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8BtC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,oCAAoC,CAAC,KAAK,CACtC,CAAA;AAEzD,eAAO,MACa,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBACtD,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEhE,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACnD,CAAA;AAEnB,KAAK,YAAY,GAAG,uBAAuB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEnE,MAAM,MAAM,8BAA8B,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;AACnE,MAAM,MAAM,8CAA8C,GAAG,YAAY,CAAC,cAAc,CAAC,C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,CAAA;AACzF,MAAM,MAAM,4CAA4C,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AAC9F,MAAM,MAAM,iDAAiD,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAA;AACnG,MAAM,MAAM,4DAA4D,GACtE,YAAY,CAAC,4BAA4B,CAAC,CAAA;AAC5C,MAAM,MAAM,iEAAiE,GAC3E,YAAY,CAAC,2BAA2B,CAAC,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod/v4';
2
2
  import { awsGcpAiProviderSchema, createProcessingExample, defineRobot, granularitySchema, robotArtificialIntelligenceMeta, robotBase, robotParameterDocs, robotUse, } from "./_instructions-primitives.js";
3
+ export { imageDescribeFullMetaSchema, imageDescribeFullOutputSchema, imageDescribeLabelSchema, imageDescribeListMetaSchema, } from "./_image-describe-output.js";
3
4
  export const meta = {
4
5
  ...robotArtificialIntelligenceMeta,
5
6
  example_code: createProcessingExample('described', '/image/describe', {
@@ -31,7 +32,7 @@ You can use the labels that we return in your application to automatically class
31
32
  Whether to return a full response (\`"full"\`) including confidence percentages for each found label, or just a flat list of labels (\`"list"\`).
32
33
  `),
33
34
  format: z
34
- .enum(['json', 'meta', 'text'])
35
+ .enum(['json', 'meta'])
35
36
  .default('json')
36
37
  .describe(`
37
38
  In what format to return the descriptions.
@@ -7,16 +7,7 @@ export declare const imageFacedetectFaceSelectionModeSchema: z.ZodEnum<{
7
7
  "max-confidence": "max-confidence";
8
8
  "max-size": "max-size";
9
9
  }>;
10
- export declare const imageFacedetectFaceCoordinatesSchema: z.ZodObject<{
11
- confidence: z.ZodOptional<z.ZodNumber>;
12
- height: z.ZodNumber;
13
- width: z.ZodNumber;
14
- x1: z.ZodNumber;
15
- x2: z.ZodOptional<z.ZodNumber>;
16
- y1: z.ZodNumber;
17
- y2: z.ZodOptional<z.ZodNumber>;
18
- }, z.core.$catchall<z.ZodUnknown>>;
19
- export type ImageFacedetectFaceCoordinates = z.infer<typeof imageFacedetectFaceCoordinatesSchema>;
10
+ export { type ImageFacedetectFaceCoordinates, imageFacedetectFaceCoordinatesSchema, } from './_image-facedetect-output.ts';
20
11
  export declare const meta: RobotMetaInput;
21
12
  export declare const robotImageFacedetectInstructionsSchema: z.ZodObject<{
22
13
  interpolate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
@@ -244,5 +235,4 @@ export type InterpolatableRobotImageFacedetectInstructions = Instructions['inter
244
235
  export type InterpolatableRobotImageFacedetectInstructionsInput = Instructions['interpolatableInput'];
245
236
  export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFields = Instructions['interpolatableHiddenOutput'];
246
237
  export type InterpolatableRobotImageFacedetectInstructionsWithHiddenFieldsInput = Instructions['interpolatableHiddenInput'];
247
- export {};
248
238
  //# sourceMappingURL=image-facedetect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-facedetect.d.ts","sourceRoot":"","sources":["../../../src/v4/robots/image-facedetect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAY1B,eAAO,MAAM,iCAAiC,0DAKpC,CAAA;AAEV,eAAO,MAAM,sCAAsC;;;;;EAA4C,CAAA;AAE/F,eAAO,MAAM,oCAAoC;;;;;;;;kCAUzB,CAAA;AAExB,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEjG,eAAO,MAAM,IAAI,EAAE,cAoBlB,CAAA;AAED,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiGxC,CAAA;AAEX,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,OAAO,sCAAsC,CAAC,KAAK,CACtC,CAAA;AAE3D,eA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