@executioncontrolprotocol/adobe-firefly-services 0.13.2 → 0.60.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 (281) hide show
  1. package/LICENSE +198 -13
  2. package/README.md +113 -83
  3. package/dist/auth/ims.d.ts +47 -14
  4. package/dist/auth/ims.d.ts.map +1 -1
  5. package/dist/auth/ims.js +127 -26
  6. package/dist/auth/ims.js.map +1 -1
  7. package/dist/config.d.ts +27 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +51 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/errors.d.ts +42 -0
  12. package/dist/errors.d.ts.map +1 -0
  13. package/dist/errors.js +53 -0
  14. package/dist/errors.js.map +1 -0
  15. package/dist/generated/audio-video/capabilities.d.ts +21 -36
  16. package/dist/generated/audio-video/capabilities.d.ts.map +1 -1
  17. package/dist/generated/audio-video/capabilities.js +295 -259
  18. package/dist/generated/audio-video/capabilities.js.map +1 -1
  19. package/dist/generated/audio-video/operations.d.ts +13 -0
  20. package/dist/generated/audio-video/operations.d.ts.map +1 -0
  21. package/dist/generated/audio-video/operations.js +182 -0
  22. package/dist/generated/audio-video/operations.js.map +1 -0
  23. package/dist/generated/audio-video/schemas.d.ts +245 -82
  24. package/dist/generated/audio-video/schemas.d.ts.map +1 -1
  25. package/dist/generated/audio-video/schemas.js +552 -466
  26. package/dist/generated/audio-video/schemas.js.map +1 -1
  27. package/dist/generated/creative-production/capabilities.d.ts +10 -10
  28. package/dist/generated/creative-production/capabilities.d.ts.map +1 -1
  29. package/dist/generated/creative-production/capabilities.js +64 -77
  30. package/dist/generated/creative-production/capabilities.js.map +1 -1
  31. package/dist/generated/creative-production/operations.d.ts +13 -0
  32. package/dist/generated/creative-production/operations.d.ts.map +1 -0
  33. package/dist/generated/creative-production/operations.js +48 -0
  34. package/dist/generated/creative-production/operations.js.map +1 -0
  35. package/dist/generated/creative-production/schemas.d.ts +65 -21
  36. package/dist/generated/creative-production/schemas.d.ts.map +1 -1
  37. package/dist/generated/creative-production/schemas.js +149 -128
  38. package/dist/generated/creative-production/schemas.js.map +1 -1
  39. package/dist/generated/express/capabilities.d.ts +11 -10
  40. package/dist/generated/express/capabilities.d.ts.map +1 -1
  41. package/dist/generated/express/capabilities.js +65 -64
  42. package/dist/generated/express/capabilities.js.map +1 -1
  43. package/dist/generated/express/operations.d.ts +13 -0
  44. package/dist/generated/express/operations.d.ts.map +1 -0
  45. package/dist/generated/express/operations.js +58 -0
  46. package/dist/generated/express/operations.js.map +1 -0
  47. package/dist/generated/express/schemas.d.ts +100 -34
  48. package/dist/generated/express/schemas.d.ts.map +1 -1
  49. package/dist/generated/express/schemas.js +165 -134
  50. package/dist/generated/express/schemas.js.map +1 -1
  51. package/dist/generated/firefly/capabilities.d.ts +18 -28
  52. package/dist/generated/firefly/capabilities.d.ts.map +1 -1
  53. package/dist/generated/firefly/capabilities.js +289 -172
  54. package/dist/generated/firefly/capabilities.js.map +1 -1
  55. package/dist/generated/firefly/operations.d.ts +13 -0
  56. package/dist/generated/firefly/operations.d.ts.map +1 -0
  57. package/dist/generated/firefly/operations.js +145 -0
  58. package/dist/generated/firefly/operations.js.map +1 -0
  59. package/dist/generated/firefly/schemas.d.ts +250 -105
  60. package/dist/generated/firefly/schemas.d.ts.map +1 -1
  61. package/dist/generated/firefly/schemas.js +462 -451
  62. package/dist/generated/firefly/schemas.js.map +1 -1
  63. package/dist/generated/illustrator/capabilities.d.ts +11 -16
  64. package/dist/generated/illustrator/capabilities.d.ts.map +1 -1
  65. package/dist/generated/illustrator/capabilities.js +99 -100
  66. package/dist/generated/illustrator/capabilities.js.map +1 -1
  67. package/dist/generated/illustrator/operations.d.ts +13 -0
  68. package/dist/generated/illustrator/operations.d.ts.map +1 -0
  69. package/dist/generated/illustrator/operations.js +65 -0
  70. package/dist/generated/illustrator/operations.js.map +1 -0
  71. package/dist/generated/illustrator/schemas.d.ts +85 -54
  72. package/dist/generated/illustrator/schemas.d.ts.map +1 -1
  73. package/dist/generated/illustrator/schemas.js +187 -233
  74. package/dist/generated/illustrator/schemas.js.map +1 -1
  75. package/dist/generated/indesign/capabilities.d.ts +19 -32
  76. package/dist/generated/indesign/capabilities.d.ts.map +1 -1
  77. package/dist/generated/indesign/capabilities.js +394 -197
  78. package/dist/generated/indesign/capabilities.js.map +1 -1
  79. package/dist/generated/indesign/operations.d.ts +13 -0
  80. package/dist/generated/indesign/operations.d.ts.map +1 -0
  81. package/dist/generated/indesign/operations.js +133 -0
  82. package/dist/generated/indesign/operations.js.map +1 -0
  83. package/dist/generated/indesign/schemas.d.ts +75 -24
  84. package/dist/generated/indesign/schemas.d.ts.map +1 -1
  85. package/dist/generated/indesign/schemas.js +351 -240
  86. package/dist/generated/indesign/schemas.js.map +1 -1
  87. package/dist/generated/index.d.ts +74 -3
  88. package/dist/generated/index.d.ts.map +1 -1
  89. package/dist/generated/index.js +28 -97
  90. package/dist/generated/index.js.map +1 -1
  91. package/dist/generated/photoshop/capabilities.d.ts +13 -14
  92. package/dist/generated/photoshop/capabilities.d.ts.map +1 -1
  93. package/dist/generated/photoshop/capabilities.js +133 -90
  94. package/dist/generated/photoshop/capabilities.js.map +1 -1
  95. package/dist/generated/photoshop/operations.d.ts +13 -0
  96. package/dist/generated/photoshop/operations.d.ts.map +1 -0
  97. package/dist/generated/photoshop/operations.js +88 -0
  98. package/dist/generated/photoshop/operations.js.map +1 -0
  99. package/dist/generated/photoshop/schemas.d.ts +430 -152
  100. package/dist/generated/photoshop/schemas.d.ts.map +1 -1
  101. package/dist/generated/photoshop/schemas.js +809 -716
  102. package/dist/generated/photoshop/schemas.js.map +1 -1
  103. package/dist/generated/substance3d/capabilities.d.ts +16 -22
  104. package/dist/generated/substance3d/capabilities.d.ts.map +1 -1
  105. package/dist/generated/substance3d/capabilities.js +181 -136
  106. package/dist/generated/substance3d/capabilities.js.map +1 -1
  107. package/dist/generated/substance3d/operations.d.ts +13 -0
  108. package/dist/generated/substance3d/operations.d.ts.map +1 -0
  109. package/dist/generated/substance3d/operations.js +114 -0
  110. package/dist/generated/substance3d/operations.js.map +1 -0
  111. package/dist/generated/substance3d/schemas.d.ts +305 -76
  112. package/dist/generated/substance3d/schemas.d.ts.map +1 -1
  113. package/dist/generated/substance3d/schemas.js +634 -515
  114. package/dist/generated/substance3d/schemas.js.map +1 -1
  115. package/dist/http/async-job.d.ts +24 -14
  116. package/dist/http/async-job.d.ts.map +1 -1
  117. package/dist/http/async-job.js +135 -69
  118. package/dist/http/async-job.js.map +1 -1
  119. package/dist/http/client.d.ts +54 -26
  120. package/dist/http/client.d.ts.map +1 -1
  121. package/dist/http/client.js +136 -53
  122. package/dist/http/client.js.map +1 -1
  123. package/dist/http/request-limit.d.ts +42 -0
  124. package/dist/http/request-limit.d.ts.map +1 -0
  125. package/dist/http/request-limit.js +46 -0
  126. package/dist/http/request-limit.js.map +1 -0
  127. package/dist/index.d.ts +84 -30
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +20 -34
  130. package/dist/index.js.map +1 -1
  131. package/dist/runtime/abort.d.ts +17 -0
  132. package/dist/runtime/abort.d.ts.map +1 -0
  133. package/dist/runtime/abort.js +51 -0
  134. package/dist/runtime/abort.js.map +1 -0
  135. package/dist/runtime/assemble.d.ts +99 -0
  136. package/dist/runtime/assemble.d.ts.map +1 -0
  137. package/dist/runtime/assemble.js +159 -0
  138. package/dist/runtime/assemble.js.map +1 -0
  139. package/dist/runtime/invoke-capability.d.ts +46 -0
  140. package/dist/runtime/invoke-capability.d.ts.map +1 -0
  141. package/dist/runtime/invoke-capability.js +68 -0
  142. package/dist/runtime/invoke-capability.js.map +1 -0
  143. package/dist/runtime/product-shape.d.ts +49 -0
  144. package/dist/runtime/product-shape.d.ts.map +1 -0
  145. package/dist/runtime/product-shape.js +309 -0
  146. package/dist/runtime/product-shape.js.map +1 -0
  147. package/dist/schemas.d.ts +13 -0
  148. package/dist/schemas.d.ts.map +1 -0
  149. package/dist/schemas.js +7 -0
  150. package/dist/schemas.js.map +1 -0
  151. package/ecp.manifest.json +840 -0
  152. package/ecp.schema.json +23498 -0
  153. package/package.json +28 -19
  154. package/dist/generated/audio-video/capabilities.browser.d.ts +0 -37
  155. package/dist/generated/audio-video/capabilities.browser.d.ts.map +0 -1
  156. package/dist/generated/audio-video/capabilities.browser.js +0 -44
  157. package/dist/generated/audio-video/capabilities.browser.js.map +0 -1
  158. package/dist/generated/audio-video/index.d.ts +0 -3
  159. package/dist/generated/audio-video/index.d.ts.map +0 -1
  160. package/dist/generated/audio-video/index.js +0 -3
  161. package/dist/generated/audio-video/index.js.map +0 -1
  162. package/dist/generated/audio-video/shells.d.ts +0 -39
  163. package/dist/generated/audio-video/shells.d.ts.map +0 -1
  164. package/dist/generated/audio-video/shells.js +0 -290
  165. package/dist/generated/audio-video/shells.js.map +0 -1
  166. package/dist/generated/creative-production/capabilities.browser.d.ts +0 -11
  167. package/dist/generated/creative-production/capabilities.browser.d.ts.map +0 -1
  168. package/dist/generated/creative-production/capabilities.browser.js +0 -18
  169. package/dist/generated/creative-production/capabilities.browser.js.map +0 -1
  170. package/dist/generated/creative-production/index.d.ts +0 -3
  171. package/dist/generated/creative-production/index.d.ts.map +0 -1
  172. package/dist/generated/creative-production/index.js +0 -3
  173. package/dist/generated/creative-production/index.js.map +0 -1
  174. package/dist/generated/creative-production/shells.d.ts +0 -13
  175. package/dist/generated/creative-production/shells.d.ts.map +0 -1
  176. package/dist/generated/creative-production/shells.js +0 -108
  177. package/dist/generated/creative-production/shells.js.map +0 -1
  178. package/dist/generated/express/capabilities.browser.d.ts +0 -11
  179. package/dist/generated/express/capabilities.browser.d.ts.map +0 -1
  180. package/dist/generated/express/capabilities.browser.js +0 -18
  181. package/dist/generated/express/capabilities.browser.js.map +0 -1
  182. package/dist/generated/express/index.d.ts +0 -3
  183. package/dist/generated/express/index.d.ts.map +0 -1
  184. package/dist/generated/express/index.js +0 -3
  185. package/dist/generated/express/index.js.map +0 -1
  186. package/dist/generated/express/shells.d.ts +0 -13
  187. package/dist/generated/express/shells.d.ts.map +0 -1
  188. package/dist/generated/express/shells.js +0 -72
  189. package/dist/generated/express/shells.js.map +0 -1
  190. package/dist/generated/firefly/capabilities.browser.d.ts +0 -29
  191. package/dist/generated/firefly/capabilities.browser.d.ts.map +0 -1
  192. package/dist/generated/firefly/capabilities.browser.js +0 -36
  193. package/dist/generated/firefly/capabilities.browser.js.map +0 -1
  194. package/dist/generated/firefly/index.d.ts +0 -3
  195. package/dist/generated/firefly/index.d.ts.map +0 -1
  196. package/dist/generated/firefly/index.js +0 -3
  197. package/dist/generated/firefly/index.js.map +0 -1
  198. package/dist/generated/firefly/shells.d.ts +0 -31
  199. package/dist/generated/firefly/shells.d.ts.map +0 -1
  200. package/dist/generated/firefly/shells.js +0 -199
  201. package/dist/generated/firefly/shells.js.map +0 -1
  202. package/dist/generated/illustrator/capabilities.browser.d.ts +0 -17
  203. package/dist/generated/illustrator/capabilities.browser.d.ts.map +0 -1
  204. package/dist/generated/illustrator/capabilities.browser.js +0 -24
  205. package/dist/generated/illustrator/capabilities.browser.js.map +0 -1
  206. package/dist/generated/illustrator/index.d.ts +0 -3
  207. package/dist/generated/illustrator/index.d.ts.map +0 -1
  208. package/dist/generated/illustrator/index.js +0 -3
  209. package/dist/generated/illustrator/index.js.map +0 -1
  210. package/dist/generated/illustrator/shells.d.ts +0 -19
  211. package/dist/generated/illustrator/shells.d.ts.map +0 -1
  212. package/dist/generated/illustrator/shells.js +0 -106
  213. package/dist/generated/illustrator/shells.js.map +0 -1
  214. package/dist/generated/indesign/capabilities.browser.d.ts +0 -33
  215. package/dist/generated/indesign/capabilities.browser.d.ts.map +0 -1
  216. package/dist/generated/indesign/capabilities.browser.js +0 -40
  217. package/dist/generated/indesign/capabilities.browser.js.map +0 -1
  218. package/dist/generated/indesign/index.d.ts +0 -3
  219. package/dist/generated/indesign/index.d.ts.map +0 -1
  220. package/dist/generated/indesign/index.js +0 -3
  221. package/dist/generated/indesign/index.js.map +0 -1
  222. package/dist/generated/indesign/shells.d.ts +0 -35
  223. package/dist/generated/indesign/shells.d.ts.map +0 -1
  224. package/dist/generated/indesign/shells.js +0 -208
  225. package/dist/generated/indesign/shells.js.map +0 -1
  226. package/dist/generated/index.browser.d.ts +0 -4
  227. package/dist/generated/index.browser.d.ts.map +0 -1
  228. package/dist/generated/index.browser.js +0 -98
  229. package/dist/generated/index.browser.js.map +0 -1
  230. package/dist/generated/photoshop/capabilities.browser.d.ts +0 -15
  231. package/dist/generated/photoshop/capabilities.browser.d.ts.map +0 -1
  232. package/dist/generated/photoshop/capabilities.browser.js +0 -22
  233. package/dist/generated/photoshop/capabilities.browser.js.map +0 -1
  234. package/dist/generated/photoshop/index.d.ts +0 -3
  235. package/dist/generated/photoshop/index.d.ts.map +0 -1
  236. package/dist/generated/photoshop/index.js +0 -3
  237. package/dist/generated/photoshop/index.js.map +0 -1
  238. package/dist/generated/photoshop/shells.d.ts +0 -17
  239. package/dist/generated/photoshop/shells.d.ts.map +0 -1
  240. package/dist/generated/photoshop/shells.js +0 -92
  241. package/dist/generated/photoshop/shells.js.map +0 -1
  242. package/dist/generated/substance3d/capabilities.browser.d.ts +0 -23
  243. package/dist/generated/substance3d/capabilities.browser.d.ts.map +0 -1
  244. package/dist/generated/substance3d/capabilities.browser.js +0 -30
  245. package/dist/generated/substance3d/capabilities.browser.js.map +0 -1
  246. package/dist/generated/substance3d/index.d.ts +0 -3
  247. package/dist/generated/substance3d/index.d.ts.map +0 -1
  248. package/dist/generated/substance3d/index.js +0 -3
  249. package/dist/generated/substance3d/index.js.map +0 -1
  250. package/dist/generated/substance3d/shells.d.ts +0 -25
  251. package/dist/generated/substance3d/shells.d.ts.map +0 -1
  252. package/dist/generated/substance3d/shells.js +0 -146
  253. package/dist/generated/substance3d/shells.js.map +0 -1
  254. package/dist/index.browser.d.ts +0 -19
  255. package/dist/index.browser.d.ts.map +0 -1
  256. package/dist/index.browser.js +0 -27
  257. package/dist/index.browser.js.map +0 -1
  258. package/dist/runtime/invoke.d.ts +0 -67
  259. package/dist/runtime/invoke.d.ts.map +0 -1
  260. package/dist/runtime/invoke.js +0 -69
  261. package/dist/runtime/invoke.js.map +0 -1
  262. package/dist/runtime/photoshop-manifest.d.ts +0 -40
  263. package/dist/runtime/photoshop-manifest.d.ts.map +0 -1
  264. package/dist/runtime/photoshop-manifest.js +0 -115
  265. package/dist/runtime/photoshop-manifest.js.map +0 -1
  266. package/dist/shared.d.ts +0 -11
  267. package/dist/shared.d.ts.map +0 -1
  268. package/dist/shared.js +0 -39
  269. package/dist/shared.js.map +0 -1
  270. package/openapi/audio-video/audio-video-api.json +0 -8333
  271. package/openapi/audio-video/translate-lipsync-openapi.json +0 -1967
  272. package/openapi/content-tagging/SOURCE.md +0 -10
  273. package/openapi/creative-production/workflow-builder-api.yaml +0 -1002
  274. package/openapi/express/ffs-express-api.json +0 -2262
  275. package/openapi/firefly/firefly-api.json +0 -4964
  276. package/openapi/illustrator/illustrator-api-beta.json +0 -1329
  277. package/openapi/illustrator/illustrator-api.json +0 -2447
  278. package/openapi/indesign/indesignapi.json +0 -2907
  279. package/openapi/overlays/schema-fixes.json +0 -95
  280. package/openapi/photoshop/photoshopv2-api.json +0 -5395
  281. package/openapi/substance3d/openapi.yaml +0 -3583
@@ -1,476 +1,562 @@
1
- /* eslint-disable */
2
- /** Generated from audio-video/audio-video-api.json, audio-video/translate-lipsync-openapi.json — do not edit. */
1
+ /* Generated by scripts/generate-capabilities.mjs. Do not edit; run `pnpm run generate`. */
2
+ /* Source: audio-video/audio-video-api.json, audio-video/translate-lipsync-openapi.json */
3
3
  import { z } from "zod";
4
- export const Schema_SuccessfulVoicesResponse = z.lazy(() => (z.object({
5
- "voices": z.array(Schema_VoiceEntity).optional()
6
- })));
7
- export const Schema_VoiceEntity = z.lazy(() => (z.object({
8
- "voiceId": z.string().optional(),
9
- "displayName": z.string().optional(),
10
- "gender": z.string().optional(),
11
- "style": z.enum(["Casual", "Excited"]).optional(),
12
- "voiceType": z.string().optional(),
13
- "status": z.enum(["Active", "Inactive"]).optional(),
14
- "extendedPropertyMap": z.object({}).optional(),
15
- "wordsPerMinute": z.string().optional(),
16
- "rolePlayList": z.array(z.string()).optional(),
17
- "sampleURL": z.string().optional()
18
- })));
19
- export const Schema_SuccessfulAvatarsResponse = z.lazy(() => (z.object({
20
- "avatars": z.array(Schema_AvatarEntity).optional()
21
- })));
22
- export const Schema_AvatarEntity = z.lazy(() => (z.object({
23
- "avatarId": z.string().optional(),
24
- "displayName": z.string().optional(),
25
- "gender": z.string().optional(),
26
- "clothingStyle": z.enum(["Casual", "Formal", "Professional"]).optional(),
27
- "ageGroup": z.enum(["Young Adult", "Middle Aged", "Senior"]).optional(),
28
- "ethnicity": z.string().optional(),
29
- "style": z.string().optional(),
30
- "status": z.enum(["Active", "Inactive"]).optional(),
31
- "extendedPropertyMap": z.object({
32
- "aspectRatio": z.object({
33
- "x": z.number().int().optional(),
34
- "y": z.number().int().optional()
35
- }).optional(),
36
- "resolution": z.object({
37
- "width": z.number().int().optional(),
38
- "height": z.number().int().optional()
39
- }).optional()
40
- }).optional(),
41
- "thumbnailUrls": z.object({
42
- "hd": z.string().optional(),
43
- "lowRes": z.string().optional()
44
- }).optional(),
45
- "voiceId": z.string().optional(),
46
- "sampleVideo": z.object({
47
- "webm": z.string().optional(),
48
- "mp4": z.string().optional()
4
+ /**
5
+ * OpenAPI component `AnalysisV2`, request (closed).
6
+ * @category Generated
7
+ */
8
+ export const In_AnalysisV2 = z.lazy(() => z.strictObject({
9
+ sceneEditDetection: z.boolean().optional().describe("Applies scene edit detection before reframing."),
10
+ focalPoints: z.array(z.string().max(1000)).max(10).optional().describe("Array of focal point keyword identifiers for reframing. Up to 10 keywords are allowed. Keywords must be alphanumeric characters, spaces, hyphens, or underscores only, with a maximum of 1000 characters per keyword.")
11
+ })).describe("Analysis configuration for the video processing.");
12
+ /**
13
+ * OpenAPI component `AspectRatioV2`, request (closed).
14
+ * @category Generated
15
+ */
16
+ export const In_AspectRatioV2 = z.lazy(() => z.strictObject({
17
+ x: z.number().int().describe("AspectRatio x ratio."),
18
+ y: z.number().int().describe("AspectRatio y ratio.")
19
+ })).describe("Aspect ratio specification for video output.");
20
+ /**
21
+ * OpenAPI component `AudioInput`, request (closed).
22
+ * @category Generated
23
+ */
24
+ export const In_AudioInput = z.lazy(() => z.strictObject({
25
+ source: In_Source.optional(),
26
+ mediaType: In_AudioInputMediaType
27
+ })).describe("The audio input details for a dub request.");
28
+ /**
29
+ * OpenAPI component `AudioInputMediaType`, request (closed).
30
+ * @category Generated
31
+ */
32
+ export const In_AudioInputMediaType = z.lazy(() => z.enum(["audio/mp3", "audio/mpeg", "audio/x-wav", "audio/wav", "audio/vnd.dlna.adts", "audio/aac"])).describe("The audio media type of the input file. Use a supported type.");
33
+ /**
34
+ * OpenAPI component `AvatarOutputObject`, request (closed).
35
+ * @category Generated
36
+ */
37
+ export const In_AvatarOutputObject = z.lazy(() => z.strictObject({
38
+ mediaType: In_SupportedOutputVideoFormat,
39
+ background: z.union([In_OutputColor, In_URLSource]).optional(),
40
+ resolution: z.strictObject({
41
+ width: z.string().optional(),
42
+ height: z.string().optional()
49
43
  }).optional()
50
- })));
51
- export const Schema_SupportedLanguageCode = z.lazy(() => (z.enum(["en-US", "es-ES", "de-DE", "fr-FR", "da-DK", "en-GB", "en-IN", "es-419", "es-AR", "fr-CA", "hi-IN", "it-IT", "ja-JP", "ko-KR", "nb-NO", "pt-BR", "pt-PT", "nl-NL", "zh-CN", "sv-SE"])));
52
- export const Schema_SupportedAudioOutputAudioFormat = z.lazy(() => (z.enum(["audio/wav"])));
53
- export const Schema_SupportedOutputVideoFormat = z.lazy(() => (z.enum(["video/mp4"])));
54
- export const Schema_SupportedBackgroundType = z.lazy(() => (z.enum(["color", "video", "image"])));
55
- export const Schema_TTSRequest = z.lazy(() => (Schema_GenerateSpeechUsingPlainText));
56
- export const Schema_GenerateSpeechUsingPlainText = z.lazy(() => (z.object({
57
- "script": z.union([Schema_TextSource, Schema_URLSource]),
58
- "voiceId": z.string(),
59
- "output": z.object({
60
- "mediaType": Schema_SupportedAudioOutputAudioFormat
44
+ })).describe("Output configuration for avatar video generation.");
45
+ /**
46
+ * OpenAPI component `AvatarRequest`, request (closed).
47
+ * @category Generated
48
+ */
49
+ export const In_AvatarRequest = z.lazy(() => In_OneOf_GenerateAvatarUsingAudioFile_or_GenerateAvatarUsingPlainText);
50
+ /**
51
+ * OpenAPI component `Captions`, request (closed).
52
+ * @category Generated
53
+ */
54
+ export const In_Captions = z.lazy(() => z.strictObject({
55
+ targetFormats: z.array(In_TargetCaptionFormats).optional().describe("Accepted values: ['SRT']")
56
+ }));
57
+ /**
58
+ * OpenAPI component `CompositionV2`, request (closed).
59
+ * @category Generated
60
+ */
61
+ export const In_CompositionV2 = z.lazy(() => z.strictObject({
62
+ overlays: z.array(In_OverlayV2).optional().describe("List of overlays to be composed on the video.")
63
+ })).describe("Configuration for composing elements on the video.");
64
+ /**
65
+ * OpenAPI component `Destination`, request (closed).
66
+ * @category Generated
67
+ */
68
+ export const In_Destination = z.lazy(() => z.strictObject({
69
+ url: z.string().optional().describe("The pre-signed URL pointing to the output source.")
70
+ }));
71
+ /**
72
+ * OpenAPI component `DubRequest`, request (closed).
73
+ * @category Generated
74
+ */
75
+ export const In_DubRequest = z.lazy(() => In_OneOf_DubAudioRequest_or_DubVideoRequest).describe("The dub request body.");
76
+ /**
77
+ * OpenAPI component `DubTargetLocaleCodes`, request (closed).
78
+ * @category Generated
79
+ */
80
+ export const In_DubTargetLocaleCodes = z.lazy(() => z.enum(["da-DK", "en-IN", "en-GB", "es-AR", "es-419", "fr-CA", "hi-IN", "ja-JP", "ko-KR", "nb-NO", "nl-NL", "pt-BR", "sv-SE", "zh-CN", "en-US", "es-ES", "de-DE", "fr-FR", "it-IT", "pt-PT"])).describe("Supported target locale codes for dubbing");
81
+ /**
82
+ * OpenAPI component `GenerateSpeechUsingPlainText`, request (closed).
83
+ * @category Generated
84
+ */
85
+ export const In_GenerateSpeechUsingPlainText = z.lazy(() => z.strictObject({
86
+ script: z.union([In_TextSource, In_URLSource]),
87
+ voiceId: z.string().describe("ID of the voice to use from the catalog of voices."),
88
+ output: z.strictObject({
89
+ mediaType: In_SupportedAudioOutputAudioFormat
61
90
  })
62
- })));
63
- export const Schema_TextSource = z.lazy(() => (z.string()));
64
- export const Schema_URLSource = z.lazy(() => (z.object({
65
- "source": z.object({
66
- "url": z.string().optional()
91
+ }));
92
+ /**
93
+ * Union of OpenAPI components `DubAudioRequest`, `DubVideoRequest`, request (closed).
94
+ * @category Generated
95
+ */
96
+ export const In_OneOf_DubAudioRequest_or_DubVideoRequest = z.lazy(() => z.strictObject({
97
+ targetLocaleCodes: z.array(In_DubTargetLocaleCodes).optional().describe("Accepted values: [ 'da-DK','en-IN','en-GB','es-AR', 'es-419','fr-CA','hi-IN','ja-JP','ko-KR','nb-NO','nl-NL','pt-BR','sv-SE','zh-CN','en-US','es-ES','de-DE','fr-FR','it-IT','pt-PT']"),
98
+ transcripts: z.array(In_TranscriptInput).optional(),
99
+ audio: In_AudioInput.optional(),
100
+ video: In_VideoInput.optional(),
101
+ lipSync: z.boolean().optional().describe("If `true`, a high-quality composited lip sync will be used in the video output.")
102
+ }));
103
+ /**
104
+ * Union of OpenAPI components `GenerateAvatarUsingAudioFile`, `GenerateAvatarUsingPlainText`, request (closed).
105
+ * @category Generated
106
+ */
107
+ export const In_OneOf_GenerateAvatarUsingAudioFile_or_GenerateAvatarUsingPlainText = z.lazy(() => z.strictObject({
108
+ script: z.union([In_TextSource, In_URLSource]).optional(),
109
+ voiceId: z.string().optional().describe("ID of the voice to use from the catalog of voices."),
110
+ avatarId: z.string().describe("ID of the avatar to use from the catalog of avatars."),
111
+ output: In_AvatarOutputObject,
112
+ audio: z.strictObject({
113
+ source: In_URLObject,
114
+ mediaType: z.enum(["audio/wav"]),
115
+ localeCode: In_SupportedLanguageCode
67
116
  }).optional()
68
- })));
69
- export const Schema_AvatarRequest = z.lazy(() => (z.union([Schema_GenerateAvatarUsingPlainText, Schema_GenerateAvatarUsingAudioFile])));
70
- export const Schema_GenerateAvatarUsingPlainText = z.lazy(() => (z.object({
71
- "script": z.union([Schema_TextSource, Schema_URLSource]),
72
- "voiceId": z.string(),
73
- "avatarId": z.string(),
74
- "output": Schema_AvatarOutputObject
75
- })));
76
- export const Schema_AvatarOutputObject = z.lazy(() => (z.object({
77
- "mediaType": Schema_SupportedOutputVideoFormat,
78
- "background": z.union([Schema_OutputColor, Schema_URLSource]).optional(),
79
- "resolution": z.object({
80
- "width": z.string().optional(),
81
- "height": z.string().optional()
117
+ }));
118
+ /**
119
+ * Union of OpenAPI components `TranscribeAudioInput`, `TranscribeVideoInput`, request (closed).
120
+ * @category Generated
121
+ */
122
+ export const In_OneOf_TranscribeAudioInput_or_TranscribeVideoInput = z.lazy(() => z.strictObject({
123
+ audio: In_AudioInput.optional(),
124
+ video: In_VideoInput.optional()
125
+ }));
126
+ /**
127
+ * OpenAPI component `OutputColor`, request (closed).
128
+ * @category Generated
129
+ */
130
+ export const In_OutputColor = z.lazy(() => z.string()).describe("Color specification for avatar background.");
131
+ /**
132
+ * OpenAPI component `OutputFormatV2`, request (closed).
133
+ * @category Generated
134
+ */
135
+ export const In_OutputFormatV2 = z.lazy(() => z.strictObject({
136
+ media: z.enum(["none", "mp4", "mov", "source"]).describe("Media format for the output video. If only the OTIO file is needed, set this as `none`."),
137
+ sidecar: z.enum(["json", "otio"]).describe("Sidecar format for additional metadata.")
138
+ })).describe("Output format configuration. A media property is mandatory when this format object is specified.");
139
+ /**
140
+ * OpenAPI component `Overlay`, request (closed).
141
+ * @category Generated
142
+ */
143
+ export const In_Overlay = z.lazy(() => z.strictObject({
144
+ mediaType: z.enum(["image/gif", "image/png", "image/jpeg"]).describe("The media type of the overlay."),
145
+ source: z.strictObject({
146
+ url: z.string().describe("The pre-signed URL pointing to the overlay source.")
147
+ }).describe("Details of the source including a pre-signed URL. See the [list of allowed domains for storage](https://developer.adobe.com/audio-video-firefly-services/getting-started/storage-solutions/)."),
148
+ startTime: z.string().describe("The start time of the overlay in the video."),
149
+ duration: z.string().describe("The duration of the overlay in the video."),
150
+ scale: z.strictObject({
151
+ width: z.number().int().describe("The width of the overlay."),
152
+ height: z.number().int().describe("The height of the overlay.")
153
+ }).describe("The scale of the overlay."),
154
+ position: z.strictObject({
155
+ anchorPoint: z.enum(["top_left", "top_right", "bottom_left", "bottom_right", "center"]).describe("The anchor point of the overlay."),
156
+ offsetX: z.number().int().describe("The X offset of the overlay from the anchor point."),
157
+ offsetY: z.number().int().describe("The Y offset of the overlay from the anchor point.")
158
+ }).describe("The position of the overlay."),
159
+ repeat: z.enum(["loop", "once"]).optional().describe("The repeat behavior of the overlay.")
160
+ })).describe("Configuration for an overlay in the reframed video.");
161
+ /**
162
+ * OpenAPI component `OverlayV2`, request (closed).
163
+ * @category Generated
164
+ */
165
+ export const In_OverlayV2 = z.lazy(() => z.strictObject({
166
+ source: In_Source.optional(),
167
+ startTime: z.string().optional().describe("Start time for the overlay in the format HH:MM:SS:FF."),
168
+ duration: z.string().optional().describe("Duration of the overlay in the format HH:MM:SS:FF."),
169
+ scale: In_ScaleV2.optional(),
170
+ position: In_PositionV2.optional(),
171
+ repeat: z.union([z.null(), In_RepeatV2]).optional().describe("Repeat behavior for GIF overlay (optional).")
172
+ }));
173
+ /**
174
+ * OpenAPI component `PositionV2`, request (closed).
175
+ * @category Generated
176
+ */
177
+ export const In_PositionV2 = z.lazy(() => z.strictObject({
178
+ anchorPoint: z.enum(["top_left", "top_right", "bottom_left", "bottom_right", "center"]).optional().describe("Anchor point for taking the position reference."),
179
+ offsetX: z.number().int().nullable().optional().describe("Horizontal offset for the anchor point."),
180
+ offsetY: z.number().int().nullable().optional().describe("Vertical offset for the anchor point.")
181
+ })).describe("Position configuration for overlay placement.");
182
+ /**
183
+ * OpenAPI component `RepeatV2`, request (closed).
184
+ * @category Generated
185
+ */
186
+ export const In_RepeatV2 = z.lazy(() => z.enum(["stop_on_last_frame", "loop", "time_stretch"])).describe("Defines the repeat behavior of the overlay.");
187
+ /**
188
+ * OpenAPI component `ScaleV2`, request (closed).
189
+ * @category Generated
190
+ */
191
+ export const In_ScaleV2 = z.lazy(() => z.strictObject({
192
+ width: z.number().int().optional().describe("The width of the scaled overlay."),
193
+ height: z.number().int().optional().describe("The height of the scaled overlay.")
194
+ })).describe("Scale configuration for overlay dimensions.");
195
+ /**
196
+ * OpenAPI component `Source`, request (closed).
197
+ * @category Generated
198
+ */
199
+ export const In_Source = z.lazy(() => z.strictObject({
200
+ url: z.string().optional().describe("The pre-signed URL pointing to the input source.")
201
+ }));
202
+ /**
203
+ * OpenAPI component `SupportedAudioOutputAudioFormat`, request (closed).
204
+ * @category Generated
205
+ */
206
+ export const In_SupportedAudioOutputAudioFormat = z.lazy(() => z.enum(["audio/wav"])).describe("The supported audio format for output.");
207
+ /**
208
+ * OpenAPI component `SupportedLanguageCode`, request (closed).
209
+ * @category Generated
210
+ */
211
+ export const In_SupportedLanguageCode = z.lazy(() => z.enum(["en-US", "es-ES", "de-DE", "fr-FR", "da-DK", "en-GB", "en-IN", "es-419", "es-AR", "fr-CA", "hi-IN", "it-IT", "ja-JP", "ko-KR", "nb-NO", "pt-BR", "pt-PT", "nl-NL", "zh-CN", "sv-SE"])).describe("The language code for the supported language desired in the result.");
212
+ /**
213
+ * OpenAPI component `SupportedOutputVideoFormat`, request (closed).
214
+ * @category Generated
215
+ */
216
+ export const In_SupportedOutputVideoFormat = z.lazy(() => z.enum(["video/mp4"])).describe("The supported video format for background video for Avatar.");
217
+ /**
218
+ * OpenAPI component `TTSRequest`, request (closed).
219
+ * @category Generated
220
+ */
221
+ export const In_TTSRequest = z.lazy(() => In_GenerateSpeechUsingPlainText);
222
+ /**
223
+ * OpenAPI component `TargetCaptionFormats`, request (closed).
224
+ * @category Generated
225
+ */
226
+ export const In_TargetCaptionFormats = z.lazy(() => z.enum(["SRT"])).describe("Supported target formats for caption generation");
227
+ /**
228
+ * OpenAPI component `TemplateDescribeRequest`, request (closed).
229
+ * @category Generated
230
+ */
231
+ export const In_TemplateDescribeRequest = z.lazy(() => z.strictObject({
232
+ type: z.enum(["mogrt", "aep"]).optional().describe("Input template type. Use `mogrt` for a Motion Graphics Template or `aep` for an After Effects project. Defaults to `mogrt` when omitted."),
233
+ source: z.strictObject({
234
+ url: z.string().describe("A pre-signed URL pointing to the input template file. For `mogrt`, this is a `.mogrt` file. For `aep`, this is a `.zip` archive containing exactly one `.aep` project file together with its collected footage and assets.")
235
+ }).describe("Contains metadata about the source of the input template."),
236
+ compName: z.string().optional().describe("Name of the After Effects composition to describe. Required when `type` is `aep`; not applicable to `mogrt`. This composition name within the AEP project must be unique so that `compName` resolves to a single composition.")
237
+ }));
238
+ /**
239
+ * OpenAPI component `TemplateRenderRequest`, request (closed).
240
+ * @category Generated
241
+ */
242
+ export const In_TemplateRenderRequest = z.lazy(() => z.strictObject({
243
+ type: z.enum(["mogrt", "aep"]).optional().describe("Input template type. Use `mogrt` for a Motion Graphics Template or `aep` for an After Effects project. Defaults to `mogrt` when omitted."),
244
+ source: z.strictObject({
245
+ url: z.string().describe("A pre-signed URL pointing to the input template file. For `mogrt`, this is a `.mogrt` file. For `aep`, this is a `.zip` archive containing exactly one `.aep` project file together with its collected footage and assets.")
246
+ }).describe("Contains metadata about the source of the input template."),
247
+ compName: z.string().optional().describe("Name of the After Effects composition to render. Required when `type` is `aep`; not applicable to `mogrt`. This composition name within the AEP project must be unique so that `compName` resolves to a single composition."),
248
+ fonts: z.array(z.strictObject({
249
+ name: z.string().describe("PostScript name of the font."),
250
+ source: z.strictObject({
251
+ url: z.string().describe("Pre-signed URL for the font file (.ttf/.otf).")
252
+ })
253
+ })).optional().describe("Array of fonts to be used in the template."),
254
+ config: z.strictObject({
255
+ handleMissingFonts: z.enum(["fail", "use_default"]).optional().describe("How to handle missing fonts. 'fail' will cause the render to fail; 'use_default' will use Premiere Pro fallback behavior."),
256
+ sidecar: z.enum(["aep"]).optional().describe("Optional. Applicable only when `type` is `aep`. Set to `aep` to also produce the collected After Effects project (a self-contained archive of the `.aep` file and its footage), returned as `sidecarDestination` on each output. Not supported for `mogrt` renders.")
257
+ }).optional().describe("Configuration options for the render request."),
258
+ assets: z.array(z.strictObject({
259
+ source: z.strictObject({
260
+ url: z.string().describe("Pre-signed URL for the image, video, or audio asset.")
261
+ })
262
+ })).optional().describe("Array of image, video, or audio assets referenced by variations via assetIndex."),
263
+ presets: z.array(z.strictObject({
264
+ source: z.strictObject({
265
+ presetId: z.string().optional().describe("ID of a built-in preset from the presets endpoint."),
266
+ url: z.string().optional().describe("Pre-signed URL for a custom Encoder preset file.")
267
+ })
268
+ })).optional().describe("Array of export presets. Each item is either a built-in preset (by presetId) or a custom preset (by URL). Outputs reference presets by presetIndex."),
269
+ variations: z.array(z.strictObject({
270
+ variables: z.array(z.strictObject({
271
+ variableId: z.string().describe("Unique identifier for the template variable, taken verbatim from the describe response. For AEP, this is the composite ID of a control (for example `c259:l261:media` for a media control or `c169:l193:layer:sourceText` for a text control)."),
272
+ selectedCheckboxValue: z.boolean().optional().describe("Override for checkbox controls."),
273
+ selectedDropdownValue: z.string().optional().describe("Override for dropdown controls."),
274
+ selectedSliderValue: z.number().optional().describe("Override for slider controls."),
275
+ text: z.string().optional().describe("Override for text controls."),
276
+ fontName: z.string().optional().describe("PostScript font name for text controls."),
277
+ assetIndex: z.number().int().optional().describe("Index into the assets array for media or audio controls."),
278
+ scale: z.enum(["no_scale", "fit_to_frame", "stretch_to_fill", "fill_frame"]).optional().describe("Scaling behavior for media controls."),
279
+ audioPreference: z.enum(["replace", "mix"]).optional().describe("Audio preference for audio controls.")
280
+ })).describe("Variable overrides for this variation. Each object targets one template variable by variableId and supplies the override value.")
281
+ })).min(1).describe("List of variations. Each variation contains variable overrides applied to the template."),
282
+ layerOperations: z.array(z.strictObject({
283
+ operation: z.enum(["trim_comp", "trim_inpoint", "trim_outpoint", "shift_inpoint", "shift_outpoint", "match_source_duration", "set_layer_duration", "stretch_layer", "enable_layer"]).describe("The layer operation to perform."),
284
+ layerId: z.string().optional().describe("Target layer ID (`c{comp}:l{layer}:layer`). Used by all operations except `trim_comp`."),
285
+ refLayerId: z.string().optional().describe("Reference layer for `shift_inpoint`, `shift_outpoint`, `trim_inpoint`, and `trim_outpoint` (its in/out time, selected by `refInOut`, anchors the move) and for `stretch_layer` (its duration becomes the target duration when no `duration*` field is provided)."),
286
+ refInOut: z.enum(["in", "out"]).optional().describe("Which end of `refLayerId` to read as the reference time."),
287
+ startLayerId: z.string().optional().describe("For `trim_comp`, the layer whose in point sets the start of the comp."),
288
+ endLayerId: z.string().optional().describe("For `trim_comp`, the layer whose out point sets the end of the comp."),
289
+ startSeconds: z.number().optional().describe("For `trim_comp`, the absolute start time of the comp, in seconds."),
290
+ startFrames: z.number().int().optional().describe("For `trim_comp`, the absolute start time of the comp, in frames."),
291
+ offsetSeconds: z.number().optional().describe("Offset added to the resolved reference time (`shift_*`, `trim_*`) or target duration (`stretch_layer`), in seconds. Takes precedence over `offsetFrames`."),
292
+ offsetFrames: z.number().int().optional().describe("Offset added to the resolved reference time (`shift_*`, `trim_*`) or target duration (`stretch_layer`), in frames. Used only when `offsetSeconds` is absent."),
293
+ durationSeconds: z.number().optional().describe("Duration in seconds for `set_layer_duration` and `stretch_layer`, or the comp duration for `trim_comp`. Takes precedence over `durationFrames`."),
294
+ durationFrames: z.number().int().optional().describe("Duration in frames for `set_layer_duration` and `stretch_layer`, or the comp duration for `trim_comp`. Used only when `durationSeconds` is absent."),
295
+ durationPercent: z.number().optional().describe("For `stretch_layer`, the target duration as a percentage of the layer's native duration. Highest priority of the `stretch_layer` duration inputs: `durationPercent` > `durationSeconds` > `durationFrames` > `refLayerId`."),
296
+ videoEnabled: z.boolean().optional().describe("For `enable_layer`, turns the target layer's video (visuals) on or off. Optional; each `enable_layer` operation must set at least one of `videoEnabled`, `audioEnabled`, or `solo`."),
297
+ audioEnabled: z.boolean().optional().describe("For `enable_layer`, turns the target layer's audio on or off. Optional; each `enable_layer` operation must set at least one of `videoEnabled`, `audioEnabled`, or `solo`."),
298
+ solo: z.boolean().optional().describe("For `enable_layer`, solos the target layer within its comp; only solo-enabled layers will render. A comp with solo-enabled layers will render against transparency or the comp's background color setting, depending on the render output format.")
299
+ })).optional().describe("Layer-level timing operations applied after variable overrides, in array order. Applicable only when `type` is `aep`; ignored for `mogrt`. Each operation targets a layer by its `layerId` (the `layers[].id` value from the describe response, of the form `c{comp}:l{layer}:layer`)."),
300
+ outputs: z.array(z.strictObject({
301
+ variationIndex: z.number().int().describe("Zero-based index of the variation to render."),
302
+ presetIndex: z.number().int().describe("Zero-based index of the preset in the presets array."),
303
+ fileName: z.string().optional().describe("Optional custom file name for the output."),
304
+ destination: z.string().optional().describe("A pre-signed URL destination for the video output.")
305
+ })).optional().describe("Defines which variation and preset combinations to render and optional output file names.")
306
+ }));
307
+ /**
308
+ * OpenAPI component `TextSource`, request (closed).
309
+ * @category Generated
310
+ */
311
+ export const In_TextSource = z.lazy(() => z.string()).describe("Details of the text resource.");
312
+ /**
313
+ * OpenAPI component `TranscribeRequest`, request (closed).
314
+ * @category Generated
315
+ */
316
+ export const In_TranscribeRequest = z.lazy(() => In_OneOf_TranscribeAudioInput_or_TranscribeVideoInput).describe("Transcribe request body.");
317
+ /**
318
+ * OpenAPI component `TranscriptInput`, request (closed).
319
+ * @category Generated
320
+ */
321
+ export const In_TranscriptInput = z.lazy(() => z.strictObject({
322
+ source: In_Source.describe("The pre-signed URL to download the translated/edited transcripts."),
323
+ localeCode: In_TranscriptInputLocale.optional()
324
+ })).describe("Transcript input details for transcribe request.");
325
+ /**
326
+ * OpenAPI component `TranscriptInputLocale`, request (closed).
327
+ * @category Generated
328
+ */
329
+ export const In_TranscriptInputLocale = z.lazy(() => z.enum(["da-DK", "en-IN", "en-GB", "es-AR", "es-419", "fr-CA", "hi-IN", "ja-JP", "ko-KR", "nb-NO", "nl-NL", "pt-BR", "sv-SE", "zh-CN", "en-US", "es-ES", "de-DE", "fr-FR", "it-IT", "pt-PT"])).describe("The languages that the transcript will be generated in. Use supported locale codes.");
330
+ /**
331
+ * OpenAPI component `URLObject`, request (closed).
332
+ * @category Generated
333
+ */
334
+ export const In_URLObject = z.lazy(() => z.strictObject({
335
+ url: z.string().optional().describe("The pre-signed URL pointing to the resource to be used for avatar/speech generation.")
336
+ })).describe("URL object containing a pre-signed URL. See the [list of allowed domains for storage](https://developer.adobe.com/audio-video-firefly-services/getting-started/storage-solutions/).");
337
+ /**
338
+ * OpenAPI component `URLSource`, request (closed).
339
+ * @category Generated
340
+ */
341
+ export const In_URLSource = z.lazy(() => z.strictObject({
342
+ source: z.strictObject({
343
+ url: z.string().optional().describe("The pre-signed URL pointing to the resource to be used for avatar/speech generation.")
344
+ }).optional().describe("Details of the source including a pre-signed URL. See the [list of allowed domains for storage](https://developer.adobe.com/audio-video-firefly-services/getting-started/storage-solutions/).")
345
+ }));
346
+ /**
347
+ * OpenAPI component `VideoInput`, request (closed).
348
+ * @category Generated
349
+ */
350
+ export const In_VideoInput = z.lazy(() => z.strictObject({
351
+ source: In_Source.optional(),
352
+ mediaType: In_VideoInputMediaType,
353
+ metadata: z.strictObject({
354
+ dialogTrackNumber: z.number().int().optional()
82
355
  }).optional()
83
- })));
84
- export const Schema_OutputColor = z.lazy(() => (z.string()));
85
- export const Schema_GenerateAvatarUsingAudioFile = z.lazy(() => (z.object({
86
- "audio": z.object({
87
- "source": Schema_URLObject,
88
- "mediaType": z.enum(["audio/wav"]),
89
- "localeCode": Schema_SupportedLanguageCode
90
- }),
91
- "avatarId": z.string(),
92
- "output": Schema_AvatarOutputObject
93
- })));
94
- export const Schema_URLObject = z.lazy(() => (z.object({
95
- "url": z.string().optional()
96
- })));
97
- export const Schema_SubmitAPIResponse = z.lazy(() => (z.object({
98
- "jobId": z.string().optional(),
99
- "statusUrl": z.string().optional()
100
- })));
101
- export const Schema_StatusAPIResponse = z.lazy(() => (z.union([Schema_StatusAPIInprogressResponse, Schema_StatusAPICompletedResponse, Schema_StatusAPIFailedResponse, Schema_JobStatus])));
102
- export const Schema_StatusAPIInprogressResponse = z.lazy(() => (z.object({
103
- "jobId": z.string().optional(),
104
- "status": Schema_StatusAPIResponseStatus.optional()
105
- })));
106
- export const Schema_StatusAPIResponseStatus = z.lazy(() => (z.enum(["pending", "running", "failed", "succeeded"])));
107
- export const Schema_StatusAPICompletedResponse = z.lazy(() => (z.object({
108
- "jobId": z.string().optional(),
109
- "status": Schema_StatusAPIResponseStatus.optional(),
110
- "output": z.object({
111
- "destination": Schema_Destination.optional()
356
+ })).describe("The video input details for a dub request.");
357
+ /**
358
+ * OpenAPI component `VideoInputMediaType`, request (closed).
359
+ * @category Generated
360
+ */
361
+ export const In_VideoInputMediaType = z.lazy(() => z.enum(["video/mp4", "video/quicktime", "video/mov"])).describe("The video media type of the input file. Use a supported type.");
362
+ /**
363
+ * OpenAPI component `VideoInputV2`, request (closed).
364
+ * @category Generated
365
+ */
366
+ export const In_VideoInputV2 = z.lazy(() => z.strictObject({
367
+ source: z.strictObject({
368
+ url: z.string().describe("The pre-signed URL pointing to the input source.")
369
+ }).describe("Details of the source including a pre-signed URL. See the [list of allowed domains for storage](https://developer.adobe.com/audio-video-firefly-services/getting-started/storage-solutions/).")
370
+ })).describe("Video input details for generate reframed video request.");
371
+ /**
372
+ * OpenAPI component `AvatarEntity`, response (open).
373
+ * @category Generated
374
+ */
375
+ export const Out_AvatarEntity = z.lazy(() => z.looseObject({
376
+ avatarId: z.string().optional().describe("The unique ID for the avatar."),
377
+ displayName: z.string().optional().describe("The displayed name for the avatar."),
378
+ gender: z.string().optional().describe("The gender of the avatar."),
379
+ clothingStyle: z.enum(["Casual", "Formal", "Professional"]).optional().describe("The clothing style worn by the avatar."),
380
+ ageGroup: z.enum(["Young Adult", "Middle Aged", "Senior"]).optional().describe("The intended age bracket of the avatar."),
381
+ ethnicity: z.string().optional().describe("The ethnicity of the avatar."),
382
+ style: z.string().optional().describe("This property is used when the avatar wears a professional or region-specific costume (like Nurse, Doctor, Emergency Worker, Retail Worker, etc.)."),
383
+ status: z.enum(["Active", "Inactive"]).optional().describe("This determines if the specific avatar ID is available for use. Deprecated avatars will have an Inactive status."),
384
+ extendedPropertyMap: z.looseObject({
385
+ aspectRatio: z.looseObject({
386
+ x: z.number().int().optional(),
387
+ y: z.number().int().optional()
388
+ }).optional(),
389
+ resolution: z.looseObject({
390
+ width: z.number().int().optional(),
391
+ height: z.number().int().optional()
392
+ }).optional()
393
+ }).optional().describe("This is a field for any additional properties for the avatar."),
394
+ thumbnailUrls: z.looseObject({
395
+ hd: z.string().optional().describe("A pre-signed URL for downloading the high-resolution avatar thumbnail."),
396
+ lowRes: z.string().optional().describe("A pre-signed URL for downloading the low-resolution avatar thumbnail.")
397
+ }).optional(),
398
+ voiceId: z.string().optional().describe("The unique ID for the voice."),
399
+ sampleVideo: z.looseObject({
400
+ webm: z.string().optional().describe("A pre-signed URL for downloading avatar sample video in WEBM format."),
401
+ mp4: z.string().optional().describe("A pre-signed URL for downloading avatar sample video in MP4 format.")
112
402
  }).optional()
113
- })));
114
- export const Schema_Destination = z.lazy(() => (z.object({
115
- "url": z.string().optional()
116
- })));
117
- export const Schema_StatusAPIFailedResponse = z.lazy(() => (z.object({
118
- "status": Schema_StatusAPIResponseStatus.optional(),
119
- "jobId": z.string().optional(),
120
- "error_code": z.string().optional(),
121
- "message": z.string().optional()
122
- })));
123
- export const Schema_JobStatus = z.lazy(() => (z.object({
124
- "jobId": z.string(),
125
- "status": z.enum(["not_started", "running", "canceling", "canceled", "succeeded", "failed", "partially_succeeded"]),
126
- "message": z.string().optional(),
127
- "percentCompleted": z.string().optional(),
128
- "outputs": z.array(z.object({
129
- "variationIndex": z.number().int(),
130
- "presetIndex": z.number().int(),
131
- "destination": z.object({
132
- "url": z.string()
403
+ })).describe("Details of the avatar entity.");
404
+ /**
405
+ * OpenAPI component `JobStatus`, response (open).
406
+ * @category Generated
407
+ */
408
+ export const Out_JobStatus = z.lazy(() => z.looseObject({
409
+ jobId: z.string().describe("ID of the render job."),
410
+ status: z.enum(["not_started", "running", "canceling", "canceled", "succeeded", "failed", "partially_succeeded"]).describe("Current status of the job. `canceling` is a transient state between a `PUT /v1/cancel/{jobId}` call and the worker fully stopping; `canceled` is the terminal state once stopped. **Note:** `canceling` and `canceled` apply only to render jobs submitted via `POST /v1/templates/render`."),
411
+ message: z.string().optional().describe("Error message when job status is failed."),
412
+ percentCompleted: z.string().optional().describe("Percentage of job completed, as a string."),
413
+ outputs: z.array(z.looseObject({
414
+ variationIndex: z.number().int().describe("Zero-based index of the variation that was rendered."),
415
+ presetIndex: z.number().int().describe("Zero-based index of the preset that was used for rendering."),
416
+ destination: z.looseObject({
417
+ url: z.string().describe("URL from which the rendered video can be downloaded.")
133
418
  }),
134
- "sidecarDestination": z.object({
135
- "url": z.string()
419
+ sidecarDestination: z.looseObject({
420
+ url: z.string().describe("URL from which the collected After Effects project archive can be downloaded. Present only when `config.sidecar` was set to `aep`.")
136
421
  }).optional(),
137
- "startedDate": z.string().optional(),
138
- "completedDate": z.string().optional()
139
- })).optional(),
140
- "errors": z.array(z.object({
141
- "variationIndex": z.number().int(),
142
- "presetIndex": z.number().int(),
143
- "error": z.object({
144
- "error_code": z.string(),
145
- "message": z.string()
422
+ startedDate: z.string().optional().describe("ISO 8601 date-time when this output item started rendering. Present only for render jobs (`POST /v1/templates/render`)."),
423
+ completedDate: z.string().optional().describe("ISO 8601 date-time when this output item finished rendering. Present only for render jobs (`POST /v1/templates/render`).")
424
+ })).optional().describe("Array of output files with destination URLs, keyed by variation and preset indices."),
425
+ errors: z.array(z.looseObject({
426
+ variationIndex: z.number().int().describe("Zero-based index of the variation that failed."),
427
+ presetIndex: z.number().int().describe("Zero-based index of the preset that was used for the failed variation."),
428
+ error: z.looseObject({
429
+ error_code: z.string().describe("Error code for the failure."),
430
+ message: z.string().describe("Error message describing the failure.")
146
431
  }),
147
- "startedDate": z.string().optional(),
148
- "completedDate": z.string().optional()
149
- })).optional(),
150
- "createdDate": z.string().optional(),
151
- "totalJobItems": z.number().int().optional(),
152
- "retryPayloadUrl": z.string().optional(),
153
- "output": z.object({
154
- "fonts": z.array(z.object({
155
- "name": z.string(),
156
- "uploadRequired": z.boolean().optional()
157
- })).optional(),
158
- "elements": z.array(z.object({
159
- "id": z.string().optional(),
160
- "type": z.enum(["mogrt", "aep"]),
161
- "controls": z.array(z.object({
162
- "variableId": z.string().optional(),
163
- "id": z.string().optional(),
164
- "label": z.string().optional(),
165
- "type": z.enum(["text", "media", "dropdown", "checkbox", "slider", "audio", "comment"]).optional(),
166
- "defaultData": z.object({}).optional(),
167
- "data": z.object({}).optional(),
168
- "options": z.union([z.record(z.string(), z.string()), z.array(z.string())]).optional(),
169
- "range": z.object({
170
- "minimum": z.number().optional(),
171
- "maximum": z.number().optional()
172
- }).optional(),
173
- "size": z.object({
174
- "width": z.number().int().optional(),
175
- "height": z.number().int().optional()
176
- }).optional(),
177
- "possibleScaleValues": z.array(z.string()).optional(),
178
- "durationInSeconds": z.number().optional(),
179
- "possibleAudioPreferences": z.array(z.string()).optional(),
180
- "text": z.string().optional()
181
- })),
182
- "layers": z.array(z.object({
183
- "id": z.string().optional(),
184
- "name": z.string().optional(),
185
- "compName": z.string().optional()
186
- })).optional()
187
- })).optional()
188
- }).optional()
189
- })));
190
- export const Schema_FailedResponse = z.lazy(() => (z.object({
191
- "error_code": z.string().optional(),
192
- "message": z.string().optional()
193
- })));
194
- export const Schema_ErrorResponse = z.lazy(() => (z.object({
195
- "error_code": z.string(),
196
- "message": z.string(),
197
- "messageId": z.string().optional()
198
- })));
199
- export const Schema_TemplateDescribeRequest = z.lazy(() => (z.object({
200
- "type": z.enum(["mogrt", "aep"]).optional(),
201
- "source": z.object({
202
- "url": z.string()
203
- }),
204
- "compName": z.string().optional()
205
- })));
206
- export const Schema_TemplateDescribeResponse = z.lazy(() => (z.object({
207
- "jobId": z.string(),
208
- "statusUrl": z.string()
209
- })));
210
- export const Schema_PresetItem = z.lazy(() => (z.object({
211
- "presetId": z.string(),
212
- "label": z.string(),
213
- "mediaType": z.string(),
214
- "codec": z.string(),
215
- "profile": z.string().optional(),
216
- "maxFps": z.object({
217
- "numerator": z.number().int(),
218
- "denominator": z.number().int()
219
- }),
220
- "bitrateMode": z.string(),
221
- "targetBitrateInKbps": z.number().int().optional(),
222
- "maxBitrateInKbps": z.number().int().optional(),
223
- "alpha": z.boolean(),
224
- "primaryUsage": z.string()
225
- })));
226
- export const Schema_PresetsResponse = z.lazy(() => (z.object({
227
- "items": z.array(Schema_PresetItem)
228
- })));
229
- export const Schema_TemplateRenderRequest = z.lazy(() => (z.object({
230
- "type": z.enum(["mogrt", "aep"]).optional(),
231
- "source": z.object({
232
- "url": z.string()
233
- }),
234
- "compName": z.string().optional(),
235
- "fonts": z.array(z.object({
236
- "name": z.string(),
237
- "source": z.object({
238
- "url": z.string()
239
- })
240
- })).optional(),
241
- "config": z.object({
242
- "handleMissingFonts": z.enum(["fail", "use_default"]).optional(),
243
- "sidecar": z.enum(["aep"]).optional()
244
- }).optional(),
245
- "assets": z.array(z.object({
246
- "source": z.object({
247
- "url": z.string()
248
- })
249
- })).optional(),
250
- "presets": z.array(z.object({
251
- "source": z.object({
252
- "presetId": z.string().optional(),
253
- "url": z.string().optional()
254
- })
255
- })).optional(),
256
- "variations": z.array(z.object({
257
- "variables": z.array(z.object({
258
- "variableId": z.string(),
259
- "selectedCheckboxValue": z.boolean().optional(),
260
- "selectedDropdownValue": z.string().optional(),
261
- "selectedSliderValue": z.number().optional(),
262
- "text": z.string().optional(),
263
- "fontName": z.string().optional(),
264
- "assetIndex": z.number().int().optional(),
265
- "scale": z.enum(["no_scale", "fit_to_frame", "stretch_to_fill", "fill_frame"]).optional(),
266
- "audioPreference": z.enum(["replace", "mix"]).optional()
267
- }))
268
- })),
269
- "layerOperations": z.array(z.object({
270
- "operation": z.enum(["trim_comp", "trim_inpoint", "trim_outpoint", "shift_inpoint", "shift_outpoint", "match_source_duration", "set_layer_duration", "stretch_layer", "enable_layer"]),
271
- "layerId": z.string().optional(),
272
- "refLayerId": z.string().optional(),
273
- "refInOut": z.enum(["in", "out"]).optional(),
274
- "startLayerId": z.string().optional(),
275
- "endLayerId": z.string().optional(),
276
- "startSeconds": z.number().optional(),
277
- "startFrames": z.number().int().optional(),
278
- "offsetSeconds": z.number().optional(),
279
- "offsetFrames": z.number().int().optional(),
280
- "durationSeconds": z.number().optional(),
281
- "durationFrames": z.number().int().optional(),
282
- "durationPercent": z.number().optional(),
283
- "videoEnabled": z.boolean().optional(),
284
- "audioEnabled": z.boolean().optional(),
285
- "solo": z.boolean().optional()
286
- })).optional(),
287
- "outputs": z.array(z.object({
288
- "variationIndex": z.number().int(),
289
- "presetIndex": z.number().int(),
290
- "fileName": z.string().optional(),
291
- "destination": z.string().optional()
292
- })).optional()
293
- })));
294
- export const Schema_TemplateRenderResponse = z.lazy(() => (z.object({
295
- "jobId": z.string(),
296
- "statusUrl": z.string(),
297
- "cancelUrl": z.string().optional()
298
- })));
299
- export const Schema_Overlay = z.lazy(() => (z.object({
300
- "mediaType": z.enum(["image/gif", "image/png", "image/jpeg"]),
301
- "source": z.object({
302
- "url": z.string()
303
- }),
304
- "startTime": z.string(),
305
- "duration": z.string(),
306
- "scale": z.object({
307
- "width": z.number().int(),
308
- "height": z.number().int()
309
- }),
310
- "position": z.object({
311
- "anchorPoint": z.enum(["top_left", "top_right", "bottom_left", "bottom_right", "center"]),
312
- "offsetX": z.number().int(),
313
- "offsetY": z.number().int()
314
- }),
315
- "repeat": z.enum(["loop", "once"]).optional()
316
- })));
317
- export const Schema_GenerateReframedVideoJobErrorBody = z.lazy(() => (z.object({
318
- "error_code": z.string(),
319
- "message": z.string()
320
- })));
321
- export const Schema_TranscribeRequest = z.lazy(() => (z.union([Schema_TranscribeAudioInput, Schema_TranscribeVideoInput])));
322
- export const Schema_TranscribeAudioInput = z.lazy(() => (z.object({
323
- "audio": Schema_AudioInput
324
- })));
325
- export const Schema_AudioInput = z.lazy(() => (z.object({
326
- "source": Schema_Source.optional(),
327
- "mediaType": Schema_AudioInputMediaType
328
- })));
329
- export const Schema_Source = z.lazy(() => (z.object({
330
- "url": z.string().optional()
331
- })));
332
- export const Schema_AudioInputMediaType = z.lazy(() => (z.enum(["audio/mp3", "audio/mpeg", "audio/x-wav", "audio/wav", "audio/vnd.dlna.adts", "audio/aac"])));
333
- export const Schema_TranscribeVideoInput = z.lazy(() => (z.object({
334
- "video": Schema_VideoInput
335
- })));
336
- export const Schema_VideoInput = z.lazy(() => (z.object({
337
- "source": Schema_Source.optional(),
338
- "mediaType": Schema_VideoInputMediaType,
339
- "metadata": z.object({
340
- "dialogTrackNumber": z.number().int().optional()
341
- }).optional()
342
- })));
343
- export const Schema_VideoInputMediaType = z.lazy(() => (z.enum(["video/mp4", "video/quicktime", "video/mov"])));
344
- export const Schema_Captions = z.lazy(() => (z.object({
345
- "targetFormats": z.array(Schema_TargetCaptionFormats).optional()
346
- })));
347
- export const Schema_TargetCaptionFormats = z.lazy(() => (z.enum(["SRT"])));
348
- export const Schema_DubRequest = z.lazy(() => (z.union([Schema_DubAudioRequest, Schema_DubVideoRequest])));
349
- export const Schema_DubAudioRequest = z.lazy(() => (z.object({
350
- "targetLocaleCodes": z.array(Schema_DubTargetLocaleCodes).optional(),
351
- "transcripts": z.array(Schema_TranscriptInput).optional(),
352
- "audio": Schema_AudioInput
353
- })));
354
- export const Schema_DubTargetLocaleCodes = z.lazy(() => (z.enum(["da-DK", "en-IN", "en-GB", "es-AR", "es-419", "fr-CA", "hi-IN", "ja-JP", "ko-KR", "nb-NO", "nl-NL", "pt-BR", "sv-SE", "zh-CN", "en-US", "es-ES", "de-DE", "fr-FR", "it-IT", "pt-PT"])));
355
- export const Schema_TranscriptInput = z.lazy(() => (z.object({
356
- "source": Schema_Source,
357
- "localeCode": Schema_TranscriptInputLocale.optional()
358
- })));
359
- export const Schema_TranscriptInputLocale = z.lazy(() => (z.enum(["da-DK", "en-IN", "en-GB", "es-AR", "es-419", "fr-CA", "hi-IN", "ja-JP", "ko-KR", "nb-NO", "nl-NL", "pt-BR", "sv-SE", "zh-CN", "en-US", "es-ES", "de-DE", "fr-FR", "it-IT", "pt-PT"])));
360
- export const Schema_DubVideoRequest = z.lazy(() => (z.object({
361
- "targetLocaleCodes": z.array(Schema_DubTargetLocaleCodes).optional(),
362
- "transcripts": z.array(Schema_TranscriptInput).optional(),
363
- "video": Schema_VideoInput,
364
- "lipSync": z.boolean().optional()
365
- })));
366
- export const Schema_JobStatusLinkResponse = z.lazy(() => (z.object({
367
- "statusUrl": z.string(),
368
- "jobId": z.string()
369
- })));
370
- export const Schema_FireflyJobApiResponseStatus = z.lazy(() => (z.enum(["pending", "running", "failed", "succeeded"])));
371
- export const Schema_FireflyJobResponse = z.lazy(() => (z.union([Schema_FireflyJobApiResponse, Schema_FireflyJobErrorResponse])));
372
- export const Schema_FireflyJobApiResponse = z.lazy(() => (z.object({
373
- "status": Schema_FireflyJobApiResponseStatus,
374
- "jobId": z.string(),
375
- "outputs": z.array(z.union([Schema_DubJobResponse, Schema_TranscribeOutput])).optional()
376
- })));
377
- export const Schema_DubJobResponse = z.lazy(() => (z.union([Schema_DubSuccess, Schema_DubPartialFailure])));
378
- export const Schema_DubSuccess = z.lazy(() => (z.object({
379
- "audioOutput": Schema_AudioOutput.optional(),
380
- "videoOutput": Schema_VideoOutput.optional(),
381
- "transcriptOutput": Schema_TranscribeOutput.optional()
382
- })));
383
- export const Schema_AudioOutput = z.lazy(() => (z.object({
384
- "mediaType": Schema_AudioOutputMediaType.optional(),
385
- "destination": Schema_Destination.optional()
386
- })));
387
- export const Schema_AudioOutputMediaType = z.lazy(() => (z.enum(["audio/wav"])));
388
- export const Schema_VideoOutput = z.lazy(() => (z.object({
389
- "mediaType": Schema_VideoOutputMediaType.optional(),
390
- "destination": Schema_Destination.optional()
391
- })));
392
- export const Schema_VideoOutputMediaType = z.lazy(() => (z.enum(["video/mp4", "video/mov"])));
393
- export const Schema_TranscribeOutput = z.lazy(() => (z.array(z.object({
394
- "destination": Schema_Destination.optional(),
395
- "captions": Schema_CaptionOutput.optional(),
396
- "localeCode": Schema_TranscriptInputLocale.optional()
397
- }))));
398
- export const Schema_CaptionOutput = z.lazy(() => (z.array(z.object({
399
- "destination": Schema_Destination.optional(),
400
- "format": Schema_TargetCaptionFormats.optional()
401
- }))));
402
- export const Schema_DubPartialFailure = z.lazy(() => (z.object({
403
- "error": Schema_ErrorBody.optional()
404
- })));
405
- export const Schema_ErrorBody = z.lazy(() => (z.object({
406
- "message": z.string(),
407
- "error_code": z.string()
408
- })));
409
- export const Schema_FireflyJobErrorResponse = z.lazy(() => (z.object({
410
- "status": Schema_FireflyJobApiResponseStatus,
411
- "jobId": z.string(),
412
- "message": z.string().optional(),
413
- "error_code": z.string().optional()
414
- })));
415
- export const Schema_TargetLocaleCodes = z.lazy(() => (z.enum(["da-DK", "en-IN", "en-GB", "es-AR", "es-419", "fr-CA", "hi-IN", "ja-JP", "ko-KR", "nb-NO", "nl-NL", "pt-BR", "sv-SE", "zh-CN", "en-US", "es-ES", "de-DE", "fr-FR", "it-IT", "pt-PT"])));
416
- export const Schema_VideoInputV2 = z.lazy(() => (z.object({
417
- "source": z.object({
418
- "url": z.string()
419
- })
420
- })));
421
- export const Schema_AnalysisV2 = z.lazy(() => (z.object({
422
- "sceneEditDetection": z.boolean().optional(),
423
- "focalPoints": z.array(z.string().max(1000)).optional()
424
- })));
425
- export const Schema_OverlayV2 = z.lazy(() => (z.object({
426
- "source": Schema_Source.optional(),
427
- "startTime": z.string().optional(),
428
- "duration": z.string().optional(),
429
- "scale": Schema_ScaleV2.optional(),
430
- "position": Schema_PositionV2.optional(),
431
- "repeat": z.union([z.null(), Schema_RepeatV2]).optional()
432
- })));
433
- export const Schema_ScaleV2 = z.lazy(() => (z.object({
434
- "width": z.number().int().optional(),
435
- "height": z.number().int().optional()
436
- })));
437
- export const Schema_PositionV2 = z.lazy(() => (z.object({
438
- "anchorPoint": z.enum(["top_left", "top_right", "bottom_left", "bottom_right", "center"]).optional(),
439
- "offsetX": z.number().int().nullable().optional(),
440
- "offsetY": z.number().int().nullable().optional()
441
- })));
442
- export const Schema_RepeatV2 = z.lazy(() => (z.enum(["stop_on_last_frame", "loop", "time_stretch"])));
443
- export const Schema_AspectRatioV2 = z.lazy(() => (z.object({
444
- "x": z.number().int(),
445
- "y": z.number().int()
446
- })));
447
- export const Schema_OutputFormatV2 = z.lazy(() => (z.object({
448
- "media": z.enum(["none", "mp4", "mov", "source"]),
449
- "sidecar": z.enum(["json", "otio"])
450
- })));
451
- export const Schema_CompositionV2 = z.lazy(() => (z.object({
452
- "overlays": z.array(Schema_OverlayV2).optional()
453
- })));
454
- export const Schema_CancelAcceptedResponse = z.lazy(() => (z.object({
455
- "jobId": z.string(),
456
- "status": z.enum(["canceling"])
457
- })));
458
- export const Schema_PagingInfo = z.lazy(() => (z.object({
459
- "nextUrl": z.string().optional(),
460
- "totalRecords": z.number().int()
461
- })));
462
- export const Schema_RenderJobListItem = z.lazy(() => (z.object({
463
- "jobId": z.string(),
464
- "status": z.enum(["not_started", "running", "succeeded", "partially_succeeded", "failed", "canceled"]),
465
- "totalJobItems": z.number().int(),
466
- "percentCompleted": z.number().min(0).max(100).optional(),
467
- "createdDate": z.string(),
468
- "completedDate": z.string().optional(),
469
- "statusUrl": z.string(),
470
- "cancelUrl": z.string().optional()
471
- })));
472
- export const Schema_RenderJobListResponse = z.lazy(() => (z.object({
473
- "paging": Schema_PagingInfo,
474
- "jobs": z.array(Schema_RenderJobListItem)
475
- })));
432
+ startedDate: z.string().optional().describe("ISO 8601 date-time when this item started processing. Present only for render jobs (`POST /v1/templates/render`)."),
433
+ completedDate: z.string().optional().describe("ISO 8601 date-time when this item reached a terminal failure state. Present only for render jobs (`POST /v1/templates/render`).")
434
+ })).optional().describe("Array of errors for failed variations (only present when status is partially_succeeded)."),
435
+ createdDate: z.string().optional().describe("ISO 8601 date-time when the job was submitted. Present only for render jobs (`POST /v1/templates/render`)."),
436
+ totalJobItems: z.number().int().optional().describe("Total number of output items (variation × preset combinations) in this render job. Present once the job has been dispatched to workers. Applies only to render jobs (`POST /v1/templates/render`)."),
437
+ retryPayloadUrl: z.string().optional().describe("Pre-built retry payload URL containing only the failed items. Present only when `status` is `partially_succeeded`. Applies only to render jobs (`POST /v1/templates/render`)."),
438
+ output: z.looseObject({
439
+ fonts: z.array(z.looseObject({
440
+ name: z.string().describe("PostScript name of the font."),
441
+ uploadRequired: z.boolean().optional().describe("Whether the font needs to be uploaded in the render request.")
442
+ })).optional().describe("Array of fonts from the template."),
443
+ elements: z.array(z.looseObject({
444
+ id: z.string().optional().describe("Unique identifier for the element."),
445
+ type: z.enum(["mogrt", "aep"]).describe("Type of the element."),
446
+ controls: z.array(z.looseObject({
447
+ variableId: z.string().optional().describe("Unique identifier for the template variable."),
448
+ id: z.string().optional().describe("Unique identifier for the control."),
449
+ label: z.string().optional().describe("Human-readable label for the control."),
450
+ type: z.enum(["text", "media", "dropdown", "checkbox", "slider", "audio", "comment"]).optional().describe("Type of the control."),
451
+ defaultData: z.looseObject({}).optional().describe("Default or current values for the control (e.g., text, fontName, selectedCheckboxValue, selectedDropdownValue, selectedSliderValue, scale)."),
452
+ data: z.looseObject({}).optional().describe("Data associated with the control."),
453
+ options: z.union([z.record(z.string(), z.string()), z.array(z.string())]).optional().describe("Available options (object for dropdown; array for checkbox)."),
454
+ range: z.looseObject({
455
+ minimum: z.number().optional(),
456
+ maximum: z.number().optional()
457
+ }).optional().describe("Minimum and maximum values for slider controls."),
458
+ size: z.looseObject({
459
+ width: z.number().int().optional(),
460
+ height: z.number().int().optional()
461
+ }).optional().describe("Dimensions for media controls."),
462
+ possibleScaleValues: z.array(z.string()).optional().describe("Possible scale values for media controls."),
463
+ durationInSeconds: z.number().optional().describe("Duration in seconds for audio controls."),
464
+ possibleAudioPreferences: z.array(z.string()).optional().describe("Possible audio preferences (e.g., replace, mix) for audio controls."),
465
+ text: z.string().optional().describe("Comment text for comment controls.")
466
+ })).describe("Array of controls from the template."),
467
+ layers: z.array(z.looseObject({
468
+ id: z.string().optional().describe("Composite ID of the form `c{comp}:l{layer}:layer`."),
469
+ name: z.string().optional().describe("Layer name as displayed in After Effects."),
470
+ compName: z.string().optional().describe("Name of the composition that contains the layer.")
471
+ })).optional().describe("Layers of the described AEP composition, in render order (top-to-bottom). Present only for `aep` elements. Use a layer's composite `id` as the `layerId` in render `layerOperations`.")
472
+ })).optional().describe("Array of elements from the template.")
473
+ }).optional().describe("Output for describe API jobs.")
474
+ }));
475
+ /**
476
+ * OpenAPI component `PagingInfo`, response (open).
477
+ * @category Generated
478
+ */
479
+ export const Out_PagingInfo = z.lazy(() => z.looseObject({
480
+ nextUrl: z.string().optional().describe("Absolute URL to the next page of results. Absent on the last page — treat its absence as the end of the result set."),
481
+ totalRecords: z.number().int().describe("Total number of render jobs matching the filter across all pages.")
482
+ })).describe("Cursor-based pagination metadata returned by the List Render Jobs endpoint.");
483
+ /**
484
+ * OpenAPI component `PresetItem`, response (open).
485
+ * @category Generated
486
+ */
487
+ export const Out_PresetItem = z.lazy(() => z.looseObject({
488
+ presetId: z.string().describe("Unique identifier for the preset."),
489
+ label: z.string().describe("Human-readable label for the preset."),
490
+ mediaType: z.string().describe("MIME type of the output media (e.g., video/mp4)."),
491
+ codec: z.string().describe("Video codec used (e.g., H.264)."),
492
+ profile: z.string().optional().describe("Codec profile (e.g., high)."),
493
+ maxFps: z.looseObject({
494
+ numerator: z.number().int().describe("Frames-per-second numerator."),
495
+ denominator: z.number().int().describe("Frames-per-second denominator.")
496
+ }).describe("Maximum frames per second as a fraction."),
497
+ bitrateMode: z.string().describe("Bitrate mode (e.g., vbr, cbr)."),
498
+ targetBitrateInKbps: z.number().int().optional().describe("Target bitrate in kilobits per second."),
499
+ maxBitrateInKbps: z.number().int().optional().describe("Maximum bitrate in kilobits per second."),
500
+ alpha: z.boolean().describe("Whether the preset supports alpha channel."),
501
+ primaryUsage: z.string().describe("Primary use case for this preset.")
502
+ }));
503
+ /**
504
+ * OpenAPI component `PresetsResponse`, response (open).
505
+ * @category Generated
506
+ */
507
+ export const Out_PresetsResponse = z.lazy(() => z.looseObject({
508
+ items: z.array(Out_PresetItem)
509
+ }));
510
+ /**
511
+ * OpenAPI component `RenderJobListItem`, response (open).
512
+ * @category Generated
513
+ */
514
+ export const Out_RenderJobListItem = z.lazy(() => z.looseObject({
515
+ jobId: z.string().describe("Unique identifier of the render job."),
516
+ status: z.enum(["not_started", "running", "succeeded", "partially_succeeded", "failed", "canceled"]).describe("Current overall status of the render job."),
517
+ totalJobItems: z.number().int().describe("Total number of output items (variation × preset combinations) in this batch render job."),
518
+ percentCompleted: z.number().min(0).max(100).optional().describe("Percentage of the job completed (0–100). Present only when `status` is `running`."),
519
+ createdDate: z.string().describe("ISO 8601 date-time when the render job was submitted."),
520
+ completedDate: z.string().optional().describe("ISO 8601 date-time when the job reached a terminal state. Present only when `status` is `succeeded`, `partially_succeeded`, `failed`, or `canceled`."),
521
+ statusUrl: z.string().describe("Absolute URL to poll for the latest job status (`GET /v1/status/{jobId}`)."),
522
+ cancelUrl: z.string().optional().describe("Absolute URL to submit a cancel request (`PUT /v1/cancel/{jobId}`). Present only when the job is still cancellable (`status` is `not_started` or `running`).")
523
+ })).describe("Summary of a single template render job as returned by `GET /v1/templates/render-jobs`. Applies only to render jobs submitted via `POST /v1/templates/render`.");
524
+ /**
525
+ * OpenAPI component `RenderJobListResponse`, response (open).
526
+ * @category Generated
527
+ */
528
+ export const Out_RenderJobListResponse = z.lazy(() => z.looseObject({
529
+ paging: Out_PagingInfo,
530
+ jobs: z.array(Out_RenderJobListItem).describe("Ordered list of render job summaries for the current page. Empty array when no jobs match the filter.")
531
+ })).describe("Response body for `GET /v1/templates/render-jobs`. Contains render jobs submitted via `POST /v1/templates/render` only.");
532
+ /**
533
+ * OpenAPI component `SuccessfulAvatarsResponse`, response (open).
534
+ * @category Generated
535
+ */
536
+ export const Out_SuccessfulAvatarsResponse = z.lazy(() => z.looseObject({
537
+ avatars: z.array(Out_AvatarEntity).optional()
538
+ })).describe("List of available avatars.");
539
+ /**
540
+ * OpenAPI component `SuccessfulVoicesResponse`, response (open).
541
+ * @category Generated
542
+ */
543
+ export const Out_SuccessfulVoicesResponse = z.lazy(() => z.looseObject({
544
+ voices: z.array(Out_VoiceEntity).optional()
545
+ })).describe("List of available voices.");
546
+ /**
547
+ * OpenAPI component `VoiceEntity`, response (open).
548
+ * @category Generated
549
+ */
550
+ export const Out_VoiceEntity = z.lazy(() => z.looseObject({
551
+ voiceId: z.string().optional().describe("The unique ID for the voice."),
552
+ displayName: z.string().optional().describe("The displayed name for the voice."),
553
+ gender: z.string().optional().describe("The gender of the voice."),
554
+ style: z.enum(["Casual", "Excited"]).optional().describe("The speaking style of the voice."),
555
+ voiceType: z.string().optional().describe("Not applicable at this time."),
556
+ status: z.enum(["Active", "Inactive"]).optional().describe("This determines if the specific voice ID is available for use. Deprecated voices will have an Inactive status."),
557
+ extendedPropertyMap: z.looseObject({}).optional().describe("This is a field for any additional properties for the voice."),
558
+ wordsPerMinute: z.string().optional().describe("The speed of speaking, in words per minute."),
559
+ rolePlayList: z.array(z.string()).optional().describe("Not applicable at this time."),
560
+ sampleURL: z.string().optional().describe("A pre-signed URL for downloading the sample audio.")
561
+ })).describe("Details of Voice Entity.");
476
562
  //# sourceMappingURL=schemas.js.map