@executioncontrolprotocol/adobe-firefly-services 0.14.0 → 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 (280) hide show
  1. package/README.md +113 -84
  2. package/dist/auth/ims.d.ts +47 -14
  3. package/dist/auth/ims.d.ts.map +1 -1
  4. package/dist/auth/ims.js +127 -26
  5. package/dist/auth/ims.js.map +1 -1
  6. package/dist/config.d.ts +27 -0
  7. package/dist/config.d.ts.map +1 -0
  8. package/dist/config.js +51 -0
  9. package/dist/config.js.map +1 -0
  10. package/dist/errors.d.ts +42 -0
  11. package/dist/errors.d.ts.map +1 -0
  12. package/dist/errors.js +53 -0
  13. package/dist/errors.js.map +1 -0
  14. package/dist/generated/audio-video/capabilities.d.ts +21 -36
  15. package/dist/generated/audio-video/capabilities.d.ts.map +1 -1
  16. package/dist/generated/audio-video/capabilities.js +295 -259
  17. package/dist/generated/audio-video/capabilities.js.map +1 -1
  18. package/dist/generated/audio-video/operations.d.ts +13 -0
  19. package/dist/generated/audio-video/operations.d.ts.map +1 -0
  20. package/dist/generated/audio-video/operations.js +182 -0
  21. package/dist/generated/audio-video/operations.js.map +1 -0
  22. package/dist/generated/audio-video/schemas.d.ts +245 -82
  23. package/dist/generated/audio-video/schemas.d.ts.map +1 -1
  24. package/dist/generated/audio-video/schemas.js +552 -466
  25. package/dist/generated/audio-video/schemas.js.map +1 -1
  26. package/dist/generated/creative-production/capabilities.d.ts +10 -10
  27. package/dist/generated/creative-production/capabilities.d.ts.map +1 -1
  28. package/dist/generated/creative-production/capabilities.js +64 -77
  29. package/dist/generated/creative-production/capabilities.js.map +1 -1
  30. package/dist/generated/creative-production/operations.d.ts +13 -0
  31. package/dist/generated/creative-production/operations.d.ts.map +1 -0
  32. package/dist/generated/creative-production/operations.js +48 -0
  33. package/dist/generated/creative-production/operations.js.map +1 -0
  34. package/dist/generated/creative-production/schemas.d.ts +65 -21
  35. package/dist/generated/creative-production/schemas.d.ts.map +1 -1
  36. package/dist/generated/creative-production/schemas.js +149 -128
  37. package/dist/generated/creative-production/schemas.js.map +1 -1
  38. package/dist/generated/express/capabilities.d.ts +11 -10
  39. package/dist/generated/express/capabilities.d.ts.map +1 -1
  40. package/dist/generated/express/capabilities.js +65 -64
  41. package/dist/generated/express/capabilities.js.map +1 -1
  42. package/dist/generated/express/operations.d.ts +13 -0
  43. package/dist/generated/express/operations.d.ts.map +1 -0
  44. package/dist/generated/express/operations.js +58 -0
  45. package/dist/generated/express/operations.js.map +1 -0
  46. package/dist/generated/express/schemas.d.ts +100 -34
  47. package/dist/generated/express/schemas.d.ts.map +1 -1
  48. package/dist/generated/express/schemas.js +165 -134
  49. package/dist/generated/express/schemas.js.map +1 -1
  50. package/dist/generated/firefly/capabilities.d.ts +18 -28
  51. package/dist/generated/firefly/capabilities.d.ts.map +1 -1
  52. package/dist/generated/firefly/capabilities.js +289 -172
  53. package/dist/generated/firefly/capabilities.js.map +1 -1
  54. package/dist/generated/firefly/operations.d.ts +13 -0
  55. package/dist/generated/firefly/operations.d.ts.map +1 -0
  56. package/dist/generated/firefly/operations.js +145 -0
  57. package/dist/generated/firefly/operations.js.map +1 -0
  58. package/dist/generated/firefly/schemas.d.ts +250 -105
  59. package/dist/generated/firefly/schemas.d.ts.map +1 -1
  60. package/dist/generated/firefly/schemas.js +462 -451
  61. package/dist/generated/firefly/schemas.js.map +1 -1
  62. package/dist/generated/illustrator/capabilities.d.ts +11 -16
  63. package/dist/generated/illustrator/capabilities.d.ts.map +1 -1
  64. package/dist/generated/illustrator/capabilities.js +99 -100
  65. package/dist/generated/illustrator/capabilities.js.map +1 -1
  66. package/dist/generated/illustrator/operations.d.ts +13 -0
  67. package/dist/generated/illustrator/operations.d.ts.map +1 -0
  68. package/dist/generated/illustrator/operations.js +65 -0
  69. package/dist/generated/illustrator/operations.js.map +1 -0
  70. package/dist/generated/illustrator/schemas.d.ts +85 -54
  71. package/dist/generated/illustrator/schemas.d.ts.map +1 -1
  72. package/dist/generated/illustrator/schemas.js +187 -233
  73. package/dist/generated/illustrator/schemas.js.map +1 -1
  74. package/dist/generated/indesign/capabilities.d.ts +19 -32
  75. package/dist/generated/indesign/capabilities.d.ts.map +1 -1
  76. package/dist/generated/indesign/capabilities.js +394 -197
  77. package/dist/generated/indesign/capabilities.js.map +1 -1
  78. package/dist/generated/indesign/operations.d.ts +13 -0
  79. package/dist/generated/indesign/operations.d.ts.map +1 -0
  80. package/dist/generated/indesign/operations.js +133 -0
  81. package/dist/generated/indesign/operations.js.map +1 -0
  82. package/dist/generated/indesign/schemas.d.ts +75 -24
  83. package/dist/generated/indesign/schemas.d.ts.map +1 -1
  84. package/dist/generated/indesign/schemas.js +351 -240
  85. package/dist/generated/indesign/schemas.js.map +1 -1
  86. package/dist/generated/index.d.ts +74 -3
  87. package/dist/generated/index.d.ts.map +1 -1
  88. package/dist/generated/index.js +28 -97
  89. package/dist/generated/index.js.map +1 -1
  90. package/dist/generated/photoshop/capabilities.d.ts +13 -14
  91. package/dist/generated/photoshop/capabilities.d.ts.map +1 -1
  92. package/dist/generated/photoshop/capabilities.js +133 -90
  93. package/dist/generated/photoshop/capabilities.js.map +1 -1
  94. package/dist/generated/photoshop/operations.d.ts +13 -0
  95. package/dist/generated/photoshop/operations.d.ts.map +1 -0
  96. package/dist/generated/photoshop/operations.js +88 -0
  97. package/dist/generated/photoshop/operations.js.map +1 -0
  98. package/dist/generated/photoshop/schemas.d.ts +430 -152
  99. package/dist/generated/photoshop/schemas.d.ts.map +1 -1
  100. package/dist/generated/photoshop/schemas.js +809 -716
  101. package/dist/generated/photoshop/schemas.js.map +1 -1
  102. package/dist/generated/substance3d/capabilities.d.ts +16 -22
  103. package/dist/generated/substance3d/capabilities.d.ts.map +1 -1
  104. package/dist/generated/substance3d/capabilities.js +181 -136
  105. package/dist/generated/substance3d/capabilities.js.map +1 -1
  106. package/dist/generated/substance3d/operations.d.ts +13 -0
  107. package/dist/generated/substance3d/operations.d.ts.map +1 -0
  108. package/dist/generated/substance3d/operations.js +114 -0
  109. package/dist/generated/substance3d/operations.js.map +1 -0
  110. package/dist/generated/substance3d/schemas.d.ts +305 -76
  111. package/dist/generated/substance3d/schemas.d.ts.map +1 -1
  112. package/dist/generated/substance3d/schemas.js +634 -515
  113. package/dist/generated/substance3d/schemas.js.map +1 -1
  114. package/dist/http/async-job.d.ts +24 -14
  115. package/dist/http/async-job.d.ts.map +1 -1
  116. package/dist/http/async-job.js +135 -69
  117. package/dist/http/async-job.js.map +1 -1
  118. package/dist/http/client.d.ts +54 -26
  119. package/dist/http/client.d.ts.map +1 -1
  120. package/dist/http/client.js +136 -53
  121. package/dist/http/client.js.map +1 -1
  122. package/dist/http/request-limit.d.ts +42 -0
  123. package/dist/http/request-limit.d.ts.map +1 -0
  124. package/dist/http/request-limit.js +46 -0
  125. package/dist/http/request-limit.js.map +1 -0
  126. package/dist/index.d.ts +84 -30
  127. package/dist/index.d.ts.map +1 -1
  128. package/dist/index.js +20 -34
  129. package/dist/index.js.map +1 -1
  130. package/dist/runtime/abort.d.ts +17 -0
  131. package/dist/runtime/abort.d.ts.map +1 -0
  132. package/dist/runtime/abort.js +51 -0
  133. package/dist/runtime/abort.js.map +1 -0
  134. package/dist/runtime/assemble.d.ts +99 -0
  135. package/dist/runtime/assemble.d.ts.map +1 -0
  136. package/dist/runtime/assemble.js +159 -0
  137. package/dist/runtime/assemble.js.map +1 -0
  138. package/dist/runtime/invoke-capability.d.ts +46 -0
  139. package/dist/runtime/invoke-capability.d.ts.map +1 -0
  140. package/dist/runtime/invoke-capability.js +68 -0
  141. package/dist/runtime/invoke-capability.js.map +1 -0
  142. package/dist/runtime/product-shape.d.ts +49 -0
  143. package/dist/runtime/product-shape.d.ts.map +1 -0
  144. package/dist/runtime/product-shape.js +309 -0
  145. package/dist/runtime/product-shape.js.map +1 -0
  146. package/dist/schemas.d.ts +13 -0
  147. package/dist/schemas.d.ts.map +1 -0
  148. package/dist/schemas.js +7 -0
  149. package/dist/schemas.js.map +1 -0
  150. package/ecp.manifest.json +840 -0
  151. package/ecp.schema.json +23498 -0
  152. package/package.json +28 -21
  153. package/dist/generated/audio-video/capabilities.browser.d.ts +0 -37
  154. package/dist/generated/audio-video/capabilities.browser.d.ts.map +0 -1
  155. package/dist/generated/audio-video/capabilities.browser.js +0 -44
  156. package/dist/generated/audio-video/capabilities.browser.js.map +0 -1
  157. package/dist/generated/audio-video/index.d.ts +0 -3
  158. package/dist/generated/audio-video/index.d.ts.map +0 -1
  159. package/dist/generated/audio-video/index.js +0 -3
  160. package/dist/generated/audio-video/index.js.map +0 -1
  161. package/dist/generated/audio-video/shells.d.ts +0 -39
  162. package/dist/generated/audio-video/shells.d.ts.map +0 -1
  163. package/dist/generated/audio-video/shells.js +0 -290
  164. package/dist/generated/audio-video/shells.js.map +0 -1
  165. package/dist/generated/creative-production/capabilities.browser.d.ts +0 -11
  166. package/dist/generated/creative-production/capabilities.browser.d.ts.map +0 -1
  167. package/dist/generated/creative-production/capabilities.browser.js +0 -18
  168. package/dist/generated/creative-production/capabilities.browser.js.map +0 -1
  169. package/dist/generated/creative-production/index.d.ts +0 -3
  170. package/dist/generated/creative-production/index.d.ts.map +0 -1
  171. package/dist/generated/creative-production/index.js +0 -3
  172. package/dist/generated/creative-production/index.js.map +0 -1
  173. package/dist/generated/creative-production/shells.d.ts +0 -13
  174. package/dist/generated/creative-production/shells.d.ts.map +0 -1
  175. package/dist/generated/creative-production/shells.js +0 -108
  176. package/dist/generated/creative-production/shells.js.map +0 -1
  177. package/dist/generated/express/capabilities.browser.d.ts +0 -11
  178. package/dist/generated/express/capabilities.browser.d.ts.map +0 -1
  179. package/dist/generated/express/capabilities.browser.js +0 -18
  180. package/dist/generated/express/capabilities.browser.js.map +0 -1
  181. package/dist/generated/express/index.d.ts +0 -3
  182. package/dist/generated/express/index.d.ts.map +0 -1
  183. package/dist/generated/express/index.js +0 -3
  184. package/dist/generated/express/index.js.map +0 -1
  185. package/dist/generated/express/shells.d.ts +0 -13
  186. package/dist/generated/express/shells.d.ts.map +0 -1
  187. package/dist/generated/express/shells.js +0 -72
  188. package/dist/generated/express/shells.js.map +0 -1
  189. package/dist/generated/firefly/capabilities.browser.d.ts +0 -29
  190. package/dist/generated/firefly/capabilities.browser.d.ts.map +0 -1
  191. package/dist/generated/firefly/capabilities.browser.js +0 -36
  192. package/dist/generated/firefly/capabilities.browser.js.map +0 -1
  193. package/dist/generated/firefly/index.d.ts +0 -3
  194. package/dist/generated/firefly/index.d.ts.map +0 -1
  195. package/dist/generated/firefly/index.js +0 -3
  196. package/dist/generated/firefly/index.js.map +0 -1
  197. package/dist/generated/firefly/shells.d.ts +0 -31
  198. package/dist/generated/firefly/shells.d.ts.map +0 -1
  199. package/dist/generated/firefly/shells.js +0 -199
  200. package/dist/generated/firefly/shells.js.map +0 -1
  201. package/dist/generated/illustrator/capabilities.browser.d.ts +0 -17
  202. package/dist/generated/illustrator/capabilities.browser.d.ts.map +0 -1
  203. package/dist/generated/illustrator/capabilities.browser.js +0 -24
  204. package/dist/generated/illustrator/capabilities.browser.js.map +0 -1
  205. package/dist/generated/illustrator/index.d.ts +0 -3
  206. package/dist/generated/illustrator/index.d.ts.map +0 -1
  207. package/dist/generated/illustrator/index.js +0 -3
  208. package/dist/generated/illustrator/index.js.map +0 -1
  209. package/dist/generated/illustrator/shells.d.ts +0 -19
  210. package/dist/generated/illustrator/shells.d.ts.map +0 -1
  211. package/dist/generated/illustrator/shells.js +0 -106
  212. package/dist/generated/illustrator/shells.js.map +0 -1
  213. package/dist/generated/indesign/capabilities.browser.d.ts +0 -33
  214. package/dist/generated/indesign/capabilities.browser.d.ts.map +0 -1
  215. package/dist/generated/indesign/capabilities.browser.js +0 -40
  216. package/dist/generated/indesign/capabilities.browser.js.map +0 -1
  217. package/dist/generated/indesign/index.d.ts +0 -3
  218. package/dist/generated/indesign/index.d.ts.map +0 -1
  219. package/dist/generated/indesign/index.js +0 -3
  220. package/dist/generated/indesign/index.js.map +0 -1
  221. package/dist/generated/indesign/shells.d.ts +0 -35
  222. package/dist/generated/indesign/shells.d.ts.map +0 -1
  223. package/dist/generated/indesign/shells.js +0 -208
  224. package/dist/generated/indesign/shells.js.map +0 -1
  225. package/dist/generated/index.browser.d.ts +0 -4
  226. package/dist/generated/index.browser.d.ts.map +0 -1
  227. package/dist/generated/index.browser.js +0 -98
  228. package/dist/generated/index.browser.js.map +0 -1
  229. package/dist/generated/photoshop/capabilities.browser.d.ts +0 -15
  230. package/dist/generated/photoshop/capabilities.browser.d.ts.map +0 -1
  231. package/dist/generated/photoshop/capabilities.browser.js +0 -22
  232. package/dist/generated/photoshop/capabilities.browser.js.map +0 -1
  233. package/dist/generated/photoshop/index.d.ts +0 -3
  234. package/dist/generated/photoshop/index.d.ts.map +0 -1
  235. package/dist/generated/photoshop/index.js +0 -3
  236. package/dist/generated/photoshop/index.js.map +0 -1
  237. package/dist/generated/photoshop/shells.d.ts +0 -17
  238. package/dist/generated/photoshop/shells.d.ts.map +0 -1
  239. package/dist/generated/photoshop/shells.js +0 -92
  240. package/dist/generated/photoshop/shells.js.map +0 -1
  241. package/dist/generated/substance3d/capabilities.browser.d.ts +0 -23
  242. package/dist/generated/substance3d/capabilities.browser.d.ts.map +0 -1
  243. package/dist/generated/substance3d/capabilities.browser.js +0 -30
  244. package/dist/generated/substance3d/capabilities.browser.js.map +0 -1
  245. package/dist/generated/substance3d/index.d.ts +0 -3
  246. package/dist/generated/substance3d/index.d.ts.map +0 -1
  247. package/dist/generated/substance3d/index.js +0 -3
  248. package/dist/generated/substance3d/index.js.map +0 -1
  249. package/dist/generated/substance3d/shells.d.ts +0 -25
  250. package/dist/generated/substance3d/shells.d.ts.map +0 -1
  251. package/dist/generated/substance3d/shells.js +0 -146
  252. package/dist/generated/substance3d/shells.js.map +0 -1
  253. package/dist/index.browser.d.ts +0 -19
  254. package/dist/index.browser.d.ts.map +0 -1
  255. package/dist/index.browser.js +0 -27
  256. package/dist/index.browser.js.map +0 -1
  257. package/dist/runtime/invoke.d.ts +0 -67
  258. package/dist/runtime/invoke.d.ts.map +0 -1
  259. package/dist/runtime/invoke.js +0 -69
  260. package/dist/runtime/invoke.js.map +0 -1
  261. package/dist/runtime/photoshop-manifest.d.ts +0 -40
  262. package/dist/runtime/photoshop-manifest.d.ts.map +0 -1
  263. package/dist/runtime/photoshop-manifest.js +0 -115
  264. package/dist/runtime/photoshop-manifest.js.map +0 -1
  265. package/dist/shared.d.ts +0 -11
  266. package/dist/shared.d.ts.map +0 -1
  267. package/dist/shared.js +0 -39
  268. package/dist/shared.js.map +0 -1
  269. package/openapi/audio-video/audio-video-api.json +0 -8333
  270. package/openapi/audio-video/translate-lipsync-openapi.json +0 -1967
  271. package/openapi/content-tagging/SOURCE.md +0 -10
  272. package/openapi/creative-production/workflow-builder-api.yaml +0 -1002
  273. package/openapi/express/ffs-express-api.json +0 -2262
  274. package/openapi/firefly/firefly-api.json +0 -4964
  275. package/openapi/illustrator/illustrator-api-beta.json +0 -1329
  276. package/openapi/illustrator/illustrator-api.json +0 -2447
  277. package/openapi/indesign/indesignapi.json +0 -2907
  278. package/openapi/overlays/schema-fixes.json +0 -95
  279. package/openapi/photoshop/photoshopv2-api.json +0 -5395
  280. package/openapi/substance3d/openapi.yaml +0 -3583
@@ -1,453 +1,464 @@
1
- /* eslint-disable */
2
- /** Generated from firefly/firefly-api.json — do not edit. */
1
+ /* Generated by scripts/generate-capabilities.mjs. Do not edit; run `pnpm run generate`. */
2
+ /* Source: firefly/firefly-api.json */
3
3
  import { z } from "zod";
4
- export const Schema_AlignmentHorizontal = z.lazy(() => (z.enum(["center", "left", "right"])));
5
- export const Schema_AlignmentVertical = z.lazy(() => (z.enum(["center", "top", "bottom"])));
6
- export const Schema_ApiError = z.lazy(() => (z.object({
7
- "error_code": Schema_ColligoErrorCodeAsyncV3,
8
- "message": z.string().optional(),
9
- "stack_trace": z.array(z.string()).optional(),
10
- "validation_errors": z.array(Schema_ValidationErrorMessage).optional()
11
- })));
12
- export const Schema_ColligoErrorCodeAsyncV3 = z.lazy(() => (z.enum(["validation_error", "runtime_error", "timeout_error", "rate_limited", "access_error", "invalid_content_type", "empty_input_body", "bad_request"])));
13
- export const Schema_ValidationErrorMessage = z.lazy(() => (z.object({
14
- "ctx": z.object({}).optional(),
15
- "loc": z.array(z.union([z.number().int(), z.string()])),
16
- "msg": z.string(),
17
- "type": z.string()
18
- })));
19
- export const Schema_AspectRatio = z.lazy(() => (z.enum(["1:1", "4:3", "3:4", "16:9", "9:16", "auto"])));
20
- export const Schema_ApiErrorGeneric = z.lazy(() => (z.object({
21
- "error_code": z.string().optional(),
22
- "message": z.string().optional()
23
- })));
24
- export const Schema_AdaptiveCompositeRequest = z.lazy(() => (z.object({
25
- "background": Schema_BackgroundInput,
26
- "object": Schema_AdaptiveObjectInput,
27
- "numVariations": z.number().int().min(1).max(3).optional(),
28
- "seeds": z.array(z.number().int()).optional(),
29
- "harmonization": z.number().min(0).max(1).optional(),
30
- "shadowIntensity": z.number().min(0).max(1).optional(),
31
- "preserveBackground": z.boolean().optional(),
32
- "output": Schema_OutputSpec.optional()
33
- })));
34
- export const Schema_BackgroundInput = z.lazy(() => (z.object({
35
- "image": Schema_ImageRef,
36
- "fillAreaMask": Schema_ImageRef
37
- })));
38
- export const Schema_ImageRef = z.lazy(() => (z.object({
39
- "source": Schema_ImageSource
40
- })));
41
- export const Schema_ImageSource = z.lazy(() => (z.object({
42
- "uploadId": z.string().optional(),
43
- "url": z.string().optional()
44
- })));
45
- export const Schema_AdaptiveObjectInput = z.lazy(() => (z.object({
46
- "image": Schema_ImageRef,
47
- "mask": Schema_ImageRef.optional()
48
- })));
49
- export const Schema_OutputSpec = z.lazy(() => (z.object({
50
- "mediaType": z.enum(["image/png", "image/jpeg", "image/webp", "image/jxl"]).optional()
51
- })));
52
- export const Schema_AsyncJobResponse = z.lazy(() => (z.object({
53
- "status": z.string().optional(),
54
- "jobId": z.string().optional(),
55
- "statusUrl": z.string().optional(),
56
- "cancelUrl": z.string().optional()
57
- })));
58
- export const Schema_ObjectInput = z.lazy(() => (z.object({
59
- "image": Schema_ImageRef
60
- })));
61
- export const Schema_PreciseCompositeRequest = z.lazy(() => (z.object({
62
- "background": Schema_BackgroundInput,
63
- "object": Schema_ObjectInput,
64
- "numVariations": z.number().int().min(1).max(3).optional(),
65
- "seeds": z.array(z.number().int()).optional(),
66
- "blend": z.number().min(0).max(1).optional(),
67
- "output": Schema_OutputSpec.optional()
68
- })));
69
- export const Schema_ValidationErrorDetail = z.lazy(() => (z.object({
70
- "loc": z.array(z.union([z.string(), z.number().int()])).optional(),
71
- "msg": z.string().optional(),
72
- "type": z.string().optional(),
73
- "ctx": z.record(z.string(), z.string()).optional()
74
- })));
75
- export const Schema_ValidationErrorCode422 = z.lazy(() => (z.enum(["validation_error", "cai_assertion_violation_error"])));
76
- export const Schema_ValidationErrorResponse = z.lazy(() => (z.object({
77
- "error_code": Schema_ValidationErrorCode422,
78
- "message": z.string().optional(),
79
- "validation_errors": z.array(Schema_ValidationErrorDetail).optional()
80
- })));
81
- export const Schema_ContentPolicyErrorCode451 = z.lazy(() => (z.enum(["legal_error", "prompt_unsafe", "prompt_entity_denied", "image_unsafe", "video_unsafe", "reference_image_unsafe_error", "input_media_unsafe"])));
82
- export const Schema_ContentPolicyErrorResponse = z.lazy(() => (z.object({
83
- "error_code": Schema_ContentPolicyErrorCode451,
84
- "message": z.string().optional()
85
- })));
86
- export const Schema_JobOutput = z.lazy(() => (z.object({
87
- "seed": z.number().int(),
88
- "image": Schema_PublicBinary_Output
89
- })));
90
- export const Schema_PublicBinary_Output = z.lazy(() => (z.object({
91
- "url": z.string()
92
- })));
93
- export const Schema_JobPollPayload = z.lazy(() => (z.object({
94
- "status": z.enum(["pending", "running", "failed", "cancelled", "cancel_pending", "timeout"]),
95
- "jobId": z.string(),
96
- "error_code": z.string().optional(),
97
- "message": z.string().optional()
98
- })));
99
- export const Schema_JobResult = z.lazy(() => (z.object({
100
- "outputs": z.array(Schema_JobOutput)
101
- })));
102
- export const Schema_JobResponse = z.lazy(() => (z.union([Schema_JobSucceededPayload, Schema_JobPollPayload])));
103
- export const Schema_JobSucceededPayload = z.lazy(() => (z.object({
104
- "status": z.enum(["succeeded"]),
105
- "jobId": z.string(),
106
- "result": z.union([Schema_JobResult, Schema_PreciseUpsamplerResponse])
107
- })));
108
- export const Schema_PreciseUpsamplerResponse = z.lazy(() => (z.object({
109
- "outputs": z.array(Schema_UpscaleBinaryOutput),
110
- "version": z.string()
111
- })));
112
- export const Schema_UpscaleBinaryOutput = z.lazy(() => (z.object({
113
- "id": z.string().optional(),
114
- "presignedUrl": z.string().min(1).max(4096).optional(),
115
- "creativeCloudFileId": z.string().optional(),
116
- "creativeCloudComponentId": z.string().optional(),
117
- "name": z.string().optional()
118
- })));
119
- export const Schema_AsyncAcceptResponseV3 = z.lazy(() => (z.object({
120
- "cancelUrl": z.string(),
121
- "jobId": z.string(),
122
- "statusUrl": z.string()
123
- })));
124
- export const Schema_AsyncApiErrorV3 = z.lazy(() => (z.object({
125
- "error_code": z.union([z.string(), Schema_ColligoErrorCodeAsyncV3, Schema_ColliogAsyncStatusErrorCodeV3, Schema_ColligoAsyncCancelErrorCodeV3]).optional(),
126
- "jobId": z.string().optional(),
127
- "message": z.string().optional(),
128
- "status": z.string().optional(),
129
- "validation_errors": z.array(Schema_ValidationErrorMessage).optional()
130
- })));
131
- export const Schema_ColliogAsyncStatusErrorCodeV3 = z.lazy(() => (z.enum(["unknown_job_id"])));
132
- export const Schema_ColligoAsyncCancelErrorCodeV3 = z.lazy(() => (z.enum(["job_timeout", "job_completed", "unknown_job_id", "job_already_canceled", "job_cancel_failed"])));
133
- export const Schema_AsyncTaskLink = z.lazy(() => (z.object({
134
- "href": z.string()
135
- })));
136
- export const Schema_AsyncTaskLinkType = z.lazy(() => (z.enum(["cancel", "result"])));
137
- export const Schema_AsyncTaskResponse = z.lazy(() => (z.object({
138
- "links": z.record(z.string(), Schema_AsyncTaskLink),
139
- "progress": z.number().optional()
140
- })));
141
- export const Schema_AsyncTaskResponseV3 = z.lazy(() => (z.object({
142
- "jobId": z.string(),
143
- "progress": z.number().optional(),
144
- "result": z.union([Schema_GenerateImagesResponseV3, Schema_GenerateSimilarImagesResponseV3, Schema_ExpandImageResponseV3, Schema_FillImageResponseV3, Schema_GenerateObjectCompositeResponseV3]).optional(),
145
- "status": z.enum(["pending", "running", "succeeded", "failed", "canceled"])
146
- })));
147
- export const Schema_GenerateImagesResponseV3 = z.lazy(() => (z.object({
148
- "altText": z.string().optional(),
149
- "contentClass": Schema_ContentClassV3.optional(),
150
- "outputs": z.array(Schema_OutputImageV3),
151
- "promptHasBlockedArtists": z.boolean().optional(),
152
- "promptHasDeniedWords": z.boolean().optional(),
153
- "size": Schema_Size
154
- })));
155
- export const Schema_ContentClassV3 = z.lazy(() => (z.enum(["photo", "art"])));
156
- export const Schema_OutputImageV3 = z.lazy(() => (z.object({
157
- "image": Schema_PublicBinaryOutputV3,
158
- "seed": z.number().int()
159
- })));
160
- export const Schema_PublicBinaryOutputV3 = z.lazy(() => (z.object({
161
- "url": z.string().min(1).max(2083).optional()
162
- })));
163
- export const Schema_Size = z.lazy(() => (z.object({
164
- "height": z.number().int().min(1).max(4096),
165
- "width": z.number().int().min(1).max(4096)
166
- })));
167
- export const Schema_GenerateSimilarImagesResponseV3 = z.lazy(() => (z.object({
168
- "outputs": z.array(Schema_OutputImageV3),
169
- "size": Schema_Size
170
- })));
171
- export const Schema_ExpandImageResponseV3 = z.lazy(() => (z.object({
172
- "outputs": z.array(Schema_OutputImageV3),
173
- "size": Schema_Size
174
- })));
175
- export const Schema_FillImageResponseV3 = z.lazy(() => (z.object({
176
- "outputs": z.array(Schema_OutputImageV3),
177
- "size": Schema_Size
178
- })));
179
- export const Schema_GenerateObjectCompositeResponseV3 = z.lazy(() => (z.object({
180
- "contentClass": Schema_ContentClassV3.optional(),
181
- "outputs": z.array(Schema_OutputImageV3),
182
- "size": Schema_Size
183
- })));
184
- export const Schema_BaseInputImageV3 = z.lazy(() => (z.object({
185
- "source": Schema_PublicBinaryInputV3
186
- })));
187
- export const Schema_PublicBinaryInputV3 = z.lazy(() => (z.object({
188
- "uploadId": z.string().optional(),
189
- "url": z.string().min(1).max(2083).optional()
190
- })));
191
- export const Schema_PreciseUpscaleAcceptResponseV3 = z.lazy(() => (z.object({
192
- "links": z.record(z.string(), Schema_PreciseUpscaleTaskLink),
193
- "progress": z.number().optional()
194
- })));
195
- export const Schema_PreciseUpscaleTaskLink = z.lazy(() => (z.object({
196
- "href": z.string()
197
- })));
198
- export const Schema_PreciseUpsamplerRequestV3 = z.lazy(() => (z.object({
199
- "image": Schema_BaseInputImageV3,
200
- "seeds": z.array(z.number().int()),
201
- "upscaleFactor": Schema_UpsampleFactor.optional()
202
- })));
203
- export const Schema_UpsampleFactor = z.lazy(() => (z.union([z.literal(2), z.literal(3), z.literal(4), z.literal(6)])));
204
- export const Schema_BaseInputMaskV3 = z.lazy(() => (z.object({
205
- "source": Schema_PublicBinaryInputV3.optional()
206
- })));
207
- export const Schema_Body_expandImagesV3Async = z.lazy(() => (z.object({
208
- "files": z.array(z.string()),
209
- "request": Schema_ExpandImageRequestV3
210
- })));
211
- export const Schema_ExpandImageRequestV3 = z.lazy(() => (z.object({
212
- "image": Schema_InputImageV3,
213
- "mask": Schema_InputMaskV3.optional(),
214
- "numVariations": z.number().int().min(1).max(4).optional(),
215
- "placement": Schema_Placement.optional(),
216
- "prompt": z.string().min(1).max(1024).optional(),
217
- "seeds": z.array(z.number().int()).optional(),
218
- "size": Schema_Size.optional()
219
- })));
220
- export const Schema_InputImageV3 = z.lazy(() => (z.object({
221
- "mask": Schema_PublicBinaryInputV3.optional(),
222
- "source": Schema_PublicBinaryInputV3
223
- })));
224
- export const Schema_InputMaskV3 = z.lazy(() => (z.object({
225
- "invert": z.boolean().optional(),
226
- "source": Schema_PublicBinaryInputV3
227
- })));
228
- export const Schema_Placement = z.lazy(() => (z.object({
229
- "alignment": Schema_PlacementAlignment.optional(),
230
- "inset": Schema_PlacementInset.optional()
231
- })));
232
- export const Schema_PlacementAlignment = z.lazy(() => (z.object({
233
- "horizontal": Schema_AlignmentHorizontal.optional(),
234
- "vertical": Schema_AlignmentVertical.optional()
235
- })));
236
- export const Schema_PlacementInset = z.lazy(() => (z.object({
237
- "bottom": z.number().int().optional(),
238
- "left": z.number().int().optional(),
239
- "right": z.number().int().optional(),
240
- "top": z.number().int().optional()
241
- })));
242
- export const Schema_Body_fillImagesV3Async = z.lazy(() => (z.object({
243
- "files": z.array(z.string()),
244
- "request": Schema_FillImageRequestV3
245
- })));
246
- export const Schema_FillImageRequestV3 = z.lazy(() => (z.object({
247
- "image": Schema_InputImageV3,
248
- "mask": Schema_InputMaskV3,
249
- "negativePrompt": z.string().max(1024).optional(),
250
- "numVariations": z.number().int().min(1).max(4).optional(),
251
- "prompt": z.string().min(1).max(1024).optional(),
252
- "promptBiasingLocaleCode": z.string().optional(),
253
- "seeds": z.array(z.number().int()).optional(),
254
- "size": Schema_Size.optional()
255
- })));
256
- export const Schema_Body_generateImagesV3Async = z.lazy(() => (z.object({
257
- "files": z.array(z.string()),
258
- "request": Schema_GenerateImagesRequestV3
259
- })));
260
- export const Schema_GenerateImagesRequestV3 = z.lazy(() => (z.object({
261
- "contentClass": Schema_ContentClassV3.optional(),
262
- "customModelId": z.string().optional(),
263
- "negativePrompt": z.string().max(1024).optional(),
264
- "numVariations": z.number().int().min(1).max(4).optional(),
265
- "prompt": z.string().min(1).max(1024),
266
- "promptBiasingLocaleCode": z.string().optional(),
267
- "seeds": z.array(z.number().int()).optional(),
268
- "size": Schema_Size.optional(),
269
- "structure": Schema_StructureReferenceV3.optional(),
270
- "style": Schema_StylesV3.optional(),
271
- "upsamplerType": z.enum(["default", "low_creativity"]).optional(),
272
- "visualIntensity": z.number().int().min(2).max(10).optional()
273
- })));
274
- export const Schema_StructureReferenceV3 = z.lazy(() => (z.object({
275
- "imageReference": Schema_StructureImageReferenceV3.optional(),
276
- "strength": z.number().int().min(0).max(100).optional()
277
- })));
278
- export const Schema_StructureImageReferenceV3 = z.lazy(() => (z.object({
279
- "source": Schema_PublicBinaryInputV3.optional()
280
- })));
281
- export const Schema_StylesV3 = z.lazy(() => (z.object({
282
- "imageReference": Schema_StylesImageReferenceV3.optional(),
283
- "presets": z.array(z.string()).optional(),
284
- "strength": z.number().int().max(100).optional()
285
- })));
286
- export const Schema_StylesImageReferenceV3 = z.lazy(() => (z.object({
287
- "source": Schema_PublicBinaryInputV3.optional()
288
- })));
289
- export const Schema_Body_generateObjectCompositeV3Async = z.lazy(() => (z.object({
290
- "files": z.array(z.string()),
291
- "request": Schema_GenerateObjectCompositeRequestV3
292
- })));
293
- export const Schema_GenerateObjectCompositeRequestV3 = z.lazy(() => (z.object({
294
- "contentClass": Schema_ContentClassV3.optional(),
295
- "image": Schema_InputImageV3,
296
- "mask": Schema_BaseInputMaskV3.optional(),
297
- "numVariations": z.number().int().min(1).max(4).optional(),
298
- "placement": Schema_Placement.optional(),
299
- "prompt": z.string().min(1).max(1024),
300
- "seeds": z.array(z.number().int()).optional(),
301
- "size": Schema_Size.optional(),
302
- "style": Schema_StylesV3.optional()
303
- })));
304
- export const Schema_Body_generateSimilarImagesV3Async = z.lazy(() => (z.object({
305
- "files": z.array(z.string()),
306
- "request": Schema_GenerateSimilarImagesRequestV3
307
- })));
308
- export const Schema_GenerateSimilarImagesRequestV3 = z.lazy(() => (z.object({
309
- "image": Schema_BaseInputImageV3,
310
- "numVariations": z.number().int().min(1).max(4).optional(),
311
- "seeds": z.array(z.number().int()).optional(),
312
- "size": Schema_Size.optional()
313
- })));
314
- export const Schema_FireflyModelId = z.lazy(() => (z.enum(["firefly_image"])));
315
- export const Schema_ImageGenerateRequestV3 = z.lazy(() => (z.object({
316
- "prompt": z.string().min(1).max(1500),
317
- "aspectRatio": Schema_AspectRatio.optional(),
318
- "resolutionLevel": z.enum(["1MP", "2.4MP", "4MP"]).optional(),
319
- "modelId": Schema_FireflyModelId.optional(),
320
- "modelSpecificPayload": Schema_ModelSpecificPayloadV3.optional(),
321
- "numVariations": z.number().int().max(1).optional(),
322
- "referenceBlobs": z.array(Schema_ReferenceBlobV3).optional(),
323
- "seeds": z.array(z.number().int()).optional()
324
- })));
325
- export const Schema_ModelSpecificPayloadV3 = z.lazy(() => (z.object({
326
- "localeCode": z.string().optional(),
327
- "prompt_reasoner": z.enum(["quality", "speed"]).optional()
328
- })));
329
- export const Schema_ReferenceBlobV3 = z.lazy(() => (z.object({
330
- "source": Schema_ReferenceBlobSourceV3,
331
- "usage": Schema_ReferenceBlobUsageV3.optional()
332
- })));
333
- export const Schema_ReferenceBlobSourceV3 = z.lazy(() => (z.object({
334
- "uploadId": z.string().optional(),
335
- "url": z.string().optional()
336
- })));
337
- export const Schema_ReferenceBlobUsageV3 = z.lazy(() => (z.enum(["general"])));
338
- export const Schema_HTTPValidationError = z.lazy(() => (z.object({
339
- "detail": z.array(Schema_ValidationError).optional()
340
- })));
341
- export const Schema_ValidationError = z.lazy(() => (z.object({
342
- "loc": z.array(z.union([z.string(), z.number().int()])),
343
- "msg": z.string(),
344
- "type": z.string()
345
- })));
346
- export const Schema_GenerateVideoRequestV3 = z.lazy(() => (z.object({
347
- "bitRateFactor": z.number().int().min(0).max(63).optional(),
348
- "image": Schema_InputImageVideoV3.optional(),
349
- "prompt": z.string().optional(),
350
- "seeds": z.array(z.number().int()).optional(),
351
- "sizes": z.array(Schema_ClinetoSize).optional(),
352
- "videoSettings": Schema_VideoSettingsV3.optional()
353
- })));
354
- export const Schema_InputImageVideoV3 = z.lazy(() => (z.object({
355
- "conditions": z.array(Schema_ImageConditionV3).optional()
356
- })));
357
- export const Schema_ImageConditionV3 = z.lazy(() => (z.object({
358
- "placement": Schema_PlacementStart,
359
- "source": Schema_PublicBinaryInputV3
360
- })));
361
- export const Schema_PlacementStart = z.lazy(() => (z.object({
362
- "position": z.number().min(0).max(1)
363
- })));
364
- export const Schema_ClinetoSize = z.lazy(() => (z.object({
365
- "height": z.number().int().min(1).max(8192),
366
- "width": z.number().int().min(1).max(8192)
367
- })));
368
- export const Schema_VideoSettingsV3 = z.lazy(() => (z.object({
369
- "cameraMotion": Schema_CameraMotion.optional(),
370
- "promptStyle": Schema_VideoPromptStyle.optional(),
371
- "shotAngle": Schema_ShotAngle.optional(),
372
- "shotSize": Schema_ShotSize.optional()
373
- })));
374
- export const Schema_CameraMotion = z.lazy(() => (z.enum(["camera pan left", "camera pan right", "camera zoom in", "camera zoom out", "camera tilt up", "camera tilt down", "camera locked down", "camera handheld"])));
375
- export const Schema_VideoPromptStyle = z.lazy(() => (z.enum(["anime", "3d", "fantasy", "cinematic", "claymation", "line art", "stop motion", "2d", "vector art", "black and white"])));
376
- export const Schema_ShotAngle = z.lazy(() => (z.enum(["aerial shot", "eye_level shot", "high angle shot", "low angle shot", "top-down shot"])));
377
- export const Schema_ShotSize = z.lazy(() => (z.enum(["close-up shot", "extreme close-up", "medium shot", "long shot", "extreme long shot"])));
378
- export const Schema_VideoResult = z.lazy(() => (z.object({
379
- "url": z.string()
380
- })));
381
- export const Schema_VideoOutput = z.lazy(() => (z.object({
382
- "seed": z.number().int(),
383
- "video": Schema_VideoResult
384
- })));
385
- export const Schema_AsyncResult = z.lazy(() => (z.object({
386
- "size": Schema_ClinetoSize,
387
- "outputs": z.array(Schema_VideoOutput)
388
- })));
389
- export const Schema_AsyncResponseV3 = z.lazy(() => (z.object({
390
- "cancelUrl": z.string().optional(),
391
- "jobId": z.string(),
392
- "progress": z.number().int().optional(),
393
- "result": Schema_AsyncResult.optional(),
394
- "status": z.string().optional(),
395
- "statusUrl": z.string().optional()
396
- })));
397
- export const Schema_ErrorResponse = z.lazy(() => (z.object({
398
- "reason": z.string().optional(),
399
- "message": z.string().optional()
400
- })));
401
- export const Schema_CustomModelsFF3pInfo = z.lazy(() => (z.object({
402
- "custom_models": z.array(Schema_CustomModelFF3pInfo).optional(),
403
- "_links": Schema_Links.optional(),
404
- "total_count": z.number().int().optional()
405
- })));
406
- export const Schema_CustomModelFF3pInfo = z.lazy(() => (z.object({
407
- "version": z.string().optional(),
408
- "assetName": z.string().optional(),
409
- "size": z.number().int().optional(),
410
- "etag": z.string().optional(),
411
- "trainingMode": z.enum(["subject", "style"]).optional(),
412
- "assetId": z.string().optional(),
413
- "mediaType": z.string().optional(),
414
- "createdDate": z.string().optional(),
415
- "modifiedDate": z.string().optional(),
416
- "publishedState": z.enum(["never", "published", "unpublished"]).optional(),
417
- "baseModel": Schema_BaseModel.optional(),
418
- "samplePrompt": z.string().optional(),
419
- "displayName": z.string().optional(),
420
- "conceptId": z.string().optional()
421
- })));
422
- export const Schema_BaseModel = z.lazy(() => (z.object({
423
- "name": z.string().optional(),
424
- "version": z.string().optional()
425
- })));
426
- export const Schema_Links = z.lazy(() => (z.object({
427
- "page": Schema_Link.optional(),
428
- "next": Schema_Link.optional()
429
- })));
430
- export const Schema_Link = z.lazy(() => (z.object({
431
- "href": z.string().optional(),
432
- "rel": z.string().optional(),
433
- "templated": z.boolean().optional()
434
- })));
435
- export const Schema_PageSpec = z.lazy(() => (z.object({
436
- "orderBy": z.string().optional(),
437
- "start": z.string().optional(),
438
- "next": z.string().optional(),
439
- "count": z.number().int().optional(),
440
- "type": z.string().optional(),
441
- "property": z.string().optional()
442
- })));
443
- export const Schema_StorageImageResponse = z.lazy(() => (z.object({
444
- "images": z.array(Schema_StorageImage).optional()
445
- })));
446
- export const Schema_StorageImage = z.lazy(() => (z.object({
447
- "id": z.string()
448
- })));
449
- export const Schema_ErrorBody = z.lazy(() => (z.object({
450
- "message": z.string().optional(),
451
- "error_code": z.string().optional()
452
- })));
4
+ import { fileRefSchema } from "../../schemas.js";
5
+ /**
6
+ * OpenAPI component `AdaptiveCompositeRequest`, request (closed).
7
+ * @category Generated
8
+ */
9
+ export const In_AdaptiveCompositeRequest = z.lazy(() => z.strictObject({
10
+ background: In_BackgroundInput.describe("Background image and fill area mask."),
11
+ object: In_AdaptiveObjectInput.describe("Object image and optional mask."),
12
+ numVariations: z.number().int().min(1).max(3).optional().describe("Number of output variations to generate."),
13
+ seeds: z.array(z.number().int()).min(1).max(3).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside numVariations, the number of seeds must equal numVariations. Defaults: 1 variation → [333], 2 → [333, 222], 3 → [333, 222, 111]."),
14
+ harmonization: z.number().min(0).max(1).optional().describe("Controls how much the object's colors and lighting are adjusted to match the background scene."),
15
+ shadowIntensity: z.number().min(0).max(1).optional().describe("Controls shadow intensity in the composited result. Lower values reduce shadow."),
16
+ preserveBackground: z.boolean().optional().describe("When true, preserves original background details within the masked area during compositing."),
17
+ output: In_OutputSpec.optional().describe("Output format specification.")
18
+ }));
19
+ /**
20
+ * OpenAPI component `AdaptiveObjectInput`, request (closed).
21
+ * @category Generated
22
+ */
23
+ export const In_AdaptiveObjectInput = z.lazy(() => z.strictObject({
24
+ image: In_ImageRef.describe("Object image to be composited onto the background."),
25
+ mask: In_ImageRef.optional().describe("Optional object mask.")
26
+ }));
27
+ /**
28
+ * OpenAPI component `AlignmentHorizontal`, request (closed).
29
+ * @category Generated
30
+ */
31
+ export const In_AlignmentHorizontal = z.lazy(() => z.enum(["center", "left", "right"])).describe("An enumeration.");
32
+ /**
33
+ * OpenAPI component `AlignmentVertical`, request (closed).
34
+ * @category Generated
35
+ */
36
+ export const In_AlignmentVertical = z.lazy(() => z.enum(["center", "top", "bottom"])).describe("An enumeration.");
37
+ /**
38
+ * OpenAPI component `AspectRatio`, request (closed).
39
+ * @category Generated
40
+ */
41
+ export const In_AspectRatio = z.lazy(() => z.enum(["1:1", "4:3", "3:4", "16:9", "9:16", "auto"]));
42
+ /**
43
+ * OpenAPI component `BackgroundInput`, request (closed).
44
+ * @category Generated
45
+ */
46
+ export const In_BackgroundInput = z.lazy(() => z.strictObject({
47
+ image: In_ImageRef.describe("Background image on which the object will be placed."),
48
+ fillAreaMask: In_ImageRef.describe("Mask defining where the object should be placed on the background.")
49
+ }));
50
+ /**
51
+ * OpenAPI component `BaseInputImageV3`, request (closed).
52
+ * @category Generated
53
+ */
54
+ export const In_BaseInputImageV3 = z.lazy(() => z.strictObject({
55
+ source: In_PublicBinaryInputV3.describe("Source image that Firefly expands, fills, uses to generate similar images, or upscales.")
56
+ }));
57
+ /**
58
+ * OpenAPI component `BaseInputMaskV3`, request (closed).
59
+ * @category Generated
60
+ */
61
+ export const In_BaseInputMaskV3 = z.lazy(() => z.strictObject({
62
+ source: In_PublicBinaryInputV3.optional().describe("Original mask image.")
63
+ }));
64
+ /**
65
+ * OpenAPI component `CameraMotion`, request (closed).
66
+ * @category Generated
67
+ */
68
+ export const In_CameraMotion = z.lazy(() => z.enum(["camera pan left", "camera pan right", "camera zoom in", "camera zoom out", "camera tilt up", "camera tilt down", "camera locked down", "camera handheld"]));
69
+ /**
70
+ * OpenAPI component `ClinetoSize`, request (closed).
71
+ * @category Generated
72
+ */
73
+ export const In_ClinetoSize = z.lazy(() => z.strictObject({
74
+ height: z.number().int().min(1).max(8192).describe("The height of the output video."),
75
+ width: z.number().int().min(1).max(8192).describe("The width of the output video.")
76
+ }));
77
+ /**
78
+ * OpenAPI component `ContentClassV3`, request (closed).
79
+ * @category Generated
80
+ */
81
+ export const In_ContentClassV3 = z.lazy(() => z.enum(["photo", "art"])).describe("The content class of the image.");
82
+ /**
83
+ * OpenAPI component `ExpandImageRequestV3`, request (closed).
84
+ * @category Generated
85
+ */
86
+ export const In_ExpandImageRequestV3 = z.lazy(() => z.strictObject({
87
+ image: In_InputImageV3.describe("The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
88
+ mask: In_InputMaskV3.optional().describe("Mask image which will be used to expand the given image."),
89
+ numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify seeds."),
90
+ placement: In_Placement.optional().describe("The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image."),
91
+ prompt: z.string().min(1).max(1024).optional().describe("An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs."),
92
+ seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified along with numVariations , the number of seeds must equal numVariations ."),
93
+ size: z.strictObject({
94
+ height: z.number().int().min(1).max(4096),
95
+ width: z.number().int().min(1).max(4096)
96
+ }).optional().describe("The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px."),
97
+ caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs).")
98
+ }));
99
+ /**
100
+ * OpenAPI component `FillImageRequestV3`, request (closed).
101
+ * @category Generated
102
+ */
103
+ export const In_FillImageRequestV3 = z.lazy(() => z.strictObject({
104
+ image: In_InputImageV3.describe("The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
105
+ mask: In_InputMaskV3.describe("Required. Selected areas of a background image that Firefly uses to fill the source image."),
106
+ negativePrompt: z.string().max(1024).optional().describe("An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image. Not supported for Firefly Custom Models on Image Model 3 or Firefly Custom Models on Image Model 4."),
107
+ numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify seeds."),
108
+ prompt: z.string().min(1).max(1024).optional().describe("An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs."),
109
+ promptBiasingLocaleCode: z.string().optional().describe("A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region."),
110
+ seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified along with numVariations , the number of seeds must equal numVariations ."),
111
+ size: z.strictObject({
112
+ height: z.number().int().min(1).max(4096),
113
+ width: z.number().int().min(1).max(4096)
114
+ }).optional().describe("The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Wide..."),
115
+ caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs).")
116
+ }));
117
+ /**
118
+ * OpenAPI component `FireflyModelId`, request (closed).
119
+ * @category Generated
120
+ */
121
+ export const In_FireflyModelId = z.lazy(() => z.enum(["firefly_image"]));
122
+ /**
123
+ * OpenAPI component `GenerateImagesRequestV3`, request (closed).
124
+ * @category Generated
125
+ */
126
+ export const In_GenerateImagesRequestV3 = z.lazy(() => z.strictObject({
127
+ contentClass: In_ContentClassV3.optional().describe("Directs the style of a generated image to be photographic or like fine art."),
128
+ customModelId: z.string().optional().describe("Include the specific custom model ID when a custom model type is designated in the `x-model-version` header parameter."),
129
+ negativePrompt: z.string().max(1024).optional().describe("A negative prompt of things Firefly will try to avoid generating in the image. Not supported for Firefly Custom Models on Image Model 3 or Firefly Custom Models on Image Model 4."),
130
+ numVariations: z.number().int().min(1).max(4).optional().describe("The number of variations to generate. numVariations defaults to the number of seed images, or to 1 if you do not specify `seeds`."),
131
+ prompt: z.string().min(1).max(1024).describe("A text prompt to support the generation of an image. The longer the prompt the better Firefly performs."),
132
+ promptBiasingLocaleCode: z.string().optional().describe("A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region (like en-US). When a locale is set, the prompt will be biased to generate more relevant content for that region."),
133
+ seeds: z.array(z.number().int()).min(1).max(4).optional().describe("An array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, use the same seed to generate a similar image in different styles. If specified along with numVariations , the number of seeds provided must equal numVariations ."),
134
+ size: z.strictObject({
135
+ height: z.number().int().min(1).max(4096),
136
+ width: z.number().int().min(1).max(4096)
137
+ }).optional().describe("The desired width and height for the final image, in pixels. Supported sizes for the output images with `image3` are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Wi..."),
138
+ structure: In_StructureReferenceV3.optional().describe("An object with the reference image details for structure."),
139
+ style: In_StylesV3.optional().describe("An object with the reference image details for style."),
140
+ upsamplerType: z.enum(["default", "low_creativity"]).optional().describe("Only supported with the model version `image4_custom`. The `default` setting upscales generated images to 2k. The `low_creativity` setting refines the image generation by removing distortions, smoothing textures, and sometimes adding details (like freckles to faces in close-up)."),
141
+ visualIntensity: z.number().int().min(2).max(10).optional().describe("Adjust the overall intensity of your photo's characteristics, such as contrast, shadow, and hue. This is not supported with the model version `image4_custom`."),
142
+ caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the request includes style or structure reference images that carry a Claim 2.x assertion.")
143
+ }));
144
+ /**
145
+ * OpenAPI component `GenerateObjectCompositeRequestV3`, request (closed).
146
+ * @category Generated
147
+ */
148
+ export const In_GenerateObjectCompositeRequestV3 = z.lazy(() => z.strictObject({
149
+ contentClass: In_ContentClassV3.optional(),
150
+ image: In_InputImageV3.describe("The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
151
+ mask: In_BaseInputMaskV3.optional().describe("Selected areas of a background image that Firefly uses to fill the source image."),
152
+ numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds."),
153
+ placement: In_Placement.optional().describe("The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image."),
154
+ prompt: z.string().min(1).max(1024).describe("A text prompt up to 1024 characters. The longer the prompt the better Firefly performs."),
155
+ seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified along with numVariations , the number of seeds must equal numVariations ."),
156
+ size: z.strictObject({
157
+ height: z.number().int().min(1).max(4096),
158
+ width: z.number().int().min(1).max(4096)
159
+ }).optional().describe("The desired width and height for the final image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Widescreen (1..."),
160
+ style: In_StylesV3.optional(),
161
+ caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs).")
162
+ }));
163
+ /**
164
+ * OpenAPI component `GenerateSimilarImagesRequestV3`, request (closed).
165
+ * @category Generated
166
+ */
167
+ export const In_GenerateSimilarImagesRequestV3 = z.lazy(() => z.strictObject({
168
+ image: In_BaseInputImageV3.describe("Firefly will create similar variations. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com ."),
169
+ numVariations: z.number().int().min(1).max(4).optional().describe("Generate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify `seeds`."),
170
+ seeds: z.array(z.number().int()).min(1).max(4).optional().describe("Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified along with numVariations , the number of seeds must equal numVariations ."),
171
+ size: z.strictObject({
172
+ height: z.number().int().min(1).max(4096),
173
+ width: z.number().int().min(1).max(4096)
174
+ }).optional().describe("The desired width and height for the final image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Widescreen (1..."),
175
+ caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs).")
176
+ }));
177
+ /**
178
+ * OpenAPI component `GenerateVideoRequestV3`, request (closed).
179
+ * @category Generated
180
+ */
181
+ export const In_GenerateVideoRequestV3 = z.lazy(() => z.strictObject({
182
+ bitRateFactor: z.number().int().min(0).max(63).optional().describe("The constant rate factor for encoding video. 0 indicates a lossless generation, with the highest quality and largest file size. 63 indicates the worst quality generation with the smallest file size. The suggested value range is 17-23."),
183
+ image: In_InputImageVideoV3.optional().describe("The details of the image used as a keyframe for the generated video. Provided images are used as a first frame or final frame to guide the video generation."),
184
+ prompt: z.string().optional().describe("The prompt used to generate the video. The longer the prompt, the better."),
185
+ seeds: z.array(z.number().int()).min(1).max(1).optional().describe("The seed reference value. Currently only 1 seed is supported."),
186
+ sizes: z.array(In_ClinetoSize).optional().describe("The dimensions of the generated video. Consult the [supported aspect ratios in the usage notes](https://developer.adobe.com/firefly-services/docs/firefly-api/getting-started/usage-notes/#supported-aspect-ratios) for allowed values."),
187
+ videoSettings: In_VideoSettingsV3.optional().describe("The camera and shot control settings.")
188
+ }));
189
+ /**
190
+ * OpenAPI component `ImageConditionV3`, request (closed).
191
+ * @category Generated
192
+ */
193
+ export const In_ImageConditionV3 = z.lazy(() => z.strictObject({
194
+ placement: In_PlacementStart.describe("Details about the timeline placement of the image."),
195
+ source: In_PublicBinaryInputV3.describe("The source details of the image.")
196
+ }));
197
+ /**
198
+ * OpenAPI component `ImageGenerateRequestV3`, request (closed).
199
+ * @category Generated
200
+ */
201
+ export const In_ImageGenerateRequestV3 = z.lazy(() => z.strictObject({
202
+ prompt: z.string().min(1).max(1500).describe("The prompt used to generate the image. The longer the prompt, the better."),
203
+ aspectRatio: In_AspectRatio.optional().describe("The aspect ratio of the requested generations. This controls the size of the generated image. When referenceBlobs is included in the request, this property should be omitted or set to auto ."),
204
+ resolutionLevel: z.enum(["1MP", "2.4MP", "4MP"]).optional().describe("The resolution level."),
205
+ modelId: In_FireflyModelId.optional().describe("The specific model to use for image generation. Available options: 'firefly_image' for Firefly Image model."),
206
+ modelSpecificPayload: In_ModelSpecificPayloadV3.optional().describe("Additional model-specific parameters for controlling the generation process."),
207
+ numVariations: z.number().int().max(1).optional().describe("The number of image variations to generate. Greater than 1 is not supported. Only one image per variation is allowed. For multiple variations, send separate requests."),
208
+ referenceBlobs: z.array(In_ReferenceBlobV3).max(1).optional().describe("List of reference blobs that will be used as additional input for the generation process. Only one reference image is supported. When this array is not empty, aspectRatio must be omitted or set to auto ."),
209
+ seeds: z.array(z.number().int()).max(1).optional().describe("The seed value to vary the image generation. Only one seed per variation is allowed. If specified alongside with numVariations, the number of seeds must be equal to numVariations."),
210
+ caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when referenceBlobs carry a Claim 2.x assertion.")
211
+ }));
212
+ /**
213
+ * OpenAPI component `ImageRef`, request (closed).
214
+ * @category Generated
215
+ */
216
+ export const In_ImageRef = z.lazy(() => z.strictObject({
217
+ source: In_ImageSource
218
+ }));
219
+ /**
220
+ * OpenAPI component `ImageSource`, request (closed).
221
+ * @category Generated
222
+ */
223
+ export const In_ImageSource = z.lazy(() => z.strictObject({
224
+ uploadId: z.string().optional().describe("If this object represents a file in our S3 temp storage system, the ID for that file."),
225
+ url: z.string().optional().describe("Pre-signed URL of the image from a supported domain. [See Allowed storage domains](https://github.com/your-repo/your-project/blob/main/src/pages/getting-started/usage-notes/index.md#allowed-storage-domains) for the current list.")
226
+ })).describe("The image source. Exactly one of `url` or `uploadId` must be provided in the request.");
227
+ /**
228
+ * OpenAPI component `InputImageV3`, request (closed).
229
+ * @category Generated
230
+ */
231
+ export const In_InputImageV3 = z.lazy(() => z.strictObject({
232
+ mask: z.strictObject({
233
+ uploadId: z.string().optional().describe("The `uploadId` from the storage API response."),
234
+ url: z.string().min(1).max(2083).optional().describe("The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com .")
235
+ }).optional().describe("This is a deprecated property. Use mask instead."),
236
+ source: In_PublicBinaryInputV3.describe("Source image that Firefly expands, fills, or uses to generate similar images.")
237
+ }));
238
+ /**
239
+ * OpenAPI component `InputImageVideoV3`, request (closed).
240
+ * @category Generated
241
+ */
242
+ export const In_InputImageVideoV3 = z.lazy(() => z.strictObject({
243
+ conditions: z.array(In_ImageConditionV3).optional().describe("The details about the keyframe images used for the video generation.")
244
+ }));
245
+ /**
246
+ * OpenAPI component `InputMaskV3`, request (closed).
247
+ * @category Generated
248
+ */
249
+ export const In_InputMaskV3 = z.lazy(() => z.strictObject({
250
+ invert: z.boolean().optional().describe("Invert mask is an optional boolen property, use true if you want take an image mask, invert it and apply it."),
251
+ source: In_PublicBinaryInputV3
252
+ }));
253
+ /**
254
+ * OpenAPI component `ModelSpecificPayloadV3`, request (closed).
255
+ * @category Generated
256
+ */
257
+ export const In_ModelSpecificPayloadV3 = z.lazy(() => z.strictObject({
258
+ localeCode: z.string().optional().describe("The locale code (following RFC 5646 format, e.g., 'en-US') will be used to generate content that is more relevant for user's country and language."),
259
+ prompt_reasoner: z.enum(["quality", "speed"]).optional().describe("Controls the prompt reasoning strategy used during image generation. When set to quality , the response includes a populated altText field with a generated description of the image. When set to speed , prompt reasoning is optimized for speed and the altText field is returned empty.")
260
+ })).describe("Model-specific payload parameters for V3 generation workflows.");
261
+ /**
262
+ * OpenAPI component `ObjectInput`, request (closed).
263
+ * @category Generated
264
+ */
265
+ export const In_ObjectInput = z.lazy(() => z.strictObject({
266
+ image: In_ImageRef.describe("Object image to be composited onto the background.")
267
+ }));
268
+ /**
269
+ * OpenAPI component `OutputSpec`, request (closed).
270
+ * @category Generated
271
+ */
272
+ export const In_OutputSpec = z.lazy(() => z.strictObject({
273
+ mediaType: z.enum(["image/png", "image/jpeg", "image/webp", "image/jxl"]).optional().describe("MIME type for the output image.")
274
+ }));
275
+ /**
276
+ * OpenAPI component `Placement`, request (closed).
277
+ * @category Generated
278
+ */
279
+ export const In_Placement = z.lazy(() => z.strictObject({
280
+ alignment: z.strictObject({
281
+ horizontal: In_AlignmentHorizontal.optional(),
282
+ vertical: In_AlignmentVertical.optional()
283
+ }).optional().describe("Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom)."),
284
+ inset: z.strictObject({
285
+ bottom: z.number().int().optional().describe("The space between bottom edge of the result image and bottom edge of the placed object image."),
286
+ left: z.number().int().optional().describe("The space between left edge of the result image and left edge of the placed object image."),
287
+ right: z.number().int().optional().describe("The space between right edge of the result image and right edge of the placed object image."),
288
+ top: z.number().int().optional().describe("The space between top edge of the result image and top edge of the placed object image.")
289
+ }).optional().describe("Margin values in target size.")
290
+ }));
291
+ /**
292
+ * OpenAPI component `PlacementStart`, request (closed).
293
+ * @category Generated
294
+ */
295
+ export const In_PlacementStart = z.lazy(() => z.strictObject({
296
+ position: z.number().min(0).max(1).describe("The position of the image on the timeline for the generated video, 0 being the first frame and 1 being the last frame.")
297
+ }));
298
+ /**
299
+ * OpenAPI component `PreciseCompositeRequest`, request (closed).
300
+ * @category Generated
301
+ */
302
+ export const In_PreciseCompositeRequest = z.lazy(() => z.strictObject({
303
+ background: In_BackgroundInput.describe("Background image and fill area mask specifying object placement."),
304
+ object: In_ObjectInput.describe("Object image to be placed on the background."),
305
+ numVariations: z.number().int().min(1).max(3).optional().describe("Number of output variations to generate."),
306
+ seeds: z.array(z.number().int()).min(1).max(3).optional().describe("Random seeds for each variation. Count must match numVariations if both are provided. Defaults: 1 variation → [333], 2 → [333, 222], 3 → [333, 222, 111]."),
307
+ blend: z.number().min(0).max(1).optional().describe("Controls blend between harmonized and original object appearance (0.0 = fully harmonized, 1.0 = original preserved)."),
308
+ output: In_OutputSpec.optional().describe("Output format specification.")
309
+ }));
310
+ /**
311
+ * OpenAPI component `PreciseUpsamplerRequestV3`, request (closed).
312
+ * @category Generated
313
+ */
314
+ export const In_PreciseUpsamplerRequestV3 = z.lazy(() => z.strictObject({
315
+ image: In_BaseInputImageV3.describe("The input image for the upsampler (source uploadId or url)."),
316
+ seeds: z.array(z.number().int()).min(1).max(4).describe("The seed for each variation. Provide one seed per output (1–4 seeds)."),
317
+ upscaleFactor: In_UpsampleFactor.optional().describe("The upscale factor (2, 3, 4, or 6). Output dimensions are input dimensions multiplied by this factor."),
318
+ caiClaimVersion: z.union([z.literal(1), z.literal(2)]).optional().describe("Content Authenticity Initiative claim version for image inputs. Use 2 when the source image carries a Claim 2.x assertion (for example Firefly-generated outputs).")
319
+ })).describe("Request body for upscaling an image. Provide the input image via uploadId from storage or a presigned URL. Seeds are required for reproducible results.");
320
+ /**
321
+ * OpenAPI component `PublicBinaryInputV3`, request (closed).
322
+ * @category Generated
323
+ */
324
+ export const In_PublicBinaryInputV3 = z.lazy(() => z.strictObject({
325
+ uploadId: z.string().optional().describe("The `uploadId` from the storage API response."),
326
+ url: z.string().min(1).max(2083).optional().describe("The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com .")
327
+ }));
328
+ /**
329
+ * OpenAPI component `ReferenceBlobSourceV3`, request (closed).
330
+ * @category Generated
331
+ */
332
+ export const In_ReferenceBlobSourceV3 = z.lazy(() => z.strictObject({
333
+ uploadId: z.string().optional().describe("The ID of an asset previously uploaded to the Firefly Upload Image API."),
334
+ url: z.string().optional().describe("URL of the reference image.")
335
+ })).describe("Source specification for a reference blob input asset. Input images must meet these requirements: file size must be 10 MB or less; image area must be between 512×512 and 2048×2048 pixels (inclusive); aspect ratio must be between 1:5 and 5:1 (inclusive).");
336
+ /**
337
+ * OpenAPI component `ReferenceBlobUsageV3`, request (closed).
338
+ * @category Generated
339
+ */
340
+ export const In_ReferenceBlobUsageV3 = z.lazy(() => z.enum(["general"]));
341
+ /**
342
+ * OpenAPI component `ReferenceBlobV3`, request (closed).
343
+ * @category Generated
344
+ */
345
+ export const In_ReferenceBlobV3 = z.lazy(() => z.strictObject({
346
+ source: fileRefSchema({ access: "url" }).describe("The source location of the reference image."),
347
+ usage: In_ReferenceBlobUsageV3.optional().describe("The usage of the reference blob. Available options: 'general' for general reference.")
348
+ })).describe("Reference blob for V3 API. Style Guide compliant: The source property specifies the input location, and other properties like usage are peers of source .");
349
+ /**
350
+ * OpenAPI component `ShotAngle`, request (closed).
351
+ * @category Generated
352
+ */
353
+ export const In_ShotAngle = z.lazy(() => z.enum(["aerial shot", "eye_level shot", "high angle shot", "low angle shot", "top-down shot"]));
354
+ /**
355
+ * OpenAPI component `ShotSize`, request (closed).
356
+ * @category Generated
357
+ */
358
+ export const In_ShotSize = z.lazy(() => z.enum(["close-up shot", "extreme close-up", "medium shot", "long shot", "extreme long shot"]));
359
+ /**
360
+ * OpenAPI component `StructureImageReferenceV3`, request (closed).
361
+ * @category Generated
362
+ */
363
+ export const In_StructureImageReferenceV3 = z.lazy(() => z.strictObject({
364
+ source: In_PublicBinaryInputV3.optional()
365
+ }));
366
+ /**
367
+ * OpenAPI component `StructureReferenceV3`, request (closed).
368
+ * @category Generated
369
+ */
370
+ export const In_StructureReferenceV3 = z.lazy(() => z.strictObject({
371
+ imageReference: fileRefSchema({ access: "url" }).optional(),
372
+ strength: z.number().int().min(0).max(100).optional().describe("Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.")
373
+ }));
374
+ /**
375
+ * OpenAPI component `StylesImageReferenceV3`, request (closed).
376
+ * @category Generated
377
+ */
378
+ export const In_StylesImageReferenceV3 = z.lazy(() => z.strictObject({
379
+ source: In_PublicBinaryInputV3.optional()
380
+ }));
381
+ /**
382
+ * OpenAPI component `StylesV3`, request (closed).
383
+ * @category Generated
384
+ */
385
+ export const In_StylesV3 = z.lazy(() => z.strictObject({
386
+ imageReference: fileRefSchema({ access: "url" }).optional(),
387
+ presets: z.array(z.string()).optional().describe("The style presets. Specify an ID for a style of image to generate."),
388
+ strength: z.number().int().max(100).optional().describe("How strictly Firefly should adhere to the style you provide. 0 means no adherence. 100 means full adherence.")
389
+ }));
390
+ /**
391
+ * OpenAPI component `UpsampleFactor`, request (closed).
392
+ * @category Generated
393
+ */
394
+ export const In_UpsampleFactor = z.lazy(() => z.union([z.literal(2), z.literal(3), z.literal(4), z.literal(6)])).describe("Supported upscale factors. Output size equals input size multiplied by this factor.");
395
+ /**
396
+ * OpenAPI component `VideoPromptStyle`, request (closed).
397
+ * @category Generated
398
+ */
399
+ export const In_VideoPromptStyle = z.lazy(() => z.enum(["anime", "3d", "fantasy", "cinematic", "claymation", "line art", "stop motion", "2d", "vector art", "black and white"]));
400
+ /**
401
+ * OpenAPI component `VideoSettingsV3`, request (closed).
402
+ * @category Generated
403
+ */
404
+ export const In_VideoSettingsV3 = z.lazy(() => z.strictObject({
405
+ cameraMotion: In_CameraMotion.optional().describe("The camera motion control."),
406
+ promptStyle: In_VideoPromptStyle.optional().describe("The style of the generated video."),
407
+ shotAngle: In_ShotAngle.optional().describe("The shot angle control."),
408
+ shotSize: In_ShotSize.optional().describe("The shot size control.")
409
+ }));
410
+ /**
411
+ * OpenAPI component `BaseModel`, response (open).
412
+ * @category Generated
413
+ */
414
+ export const Out_BaseModel = z.lazy(() => z.looseObject({
415
+ name: z.string().optional().describe("The name of the base model."),
416
+ version: z.string().optional().describe("The version of the base model.")
417
+ }));
418
+ /**
419
+ * OpenAPI component `CustomModelFF3pInfo`, response (open).
420
+ * @category Generated
421
+ */
422
+ export const Out_CustomModelFF3pInfo = z.lazy(() => z.looseObject({
423
+ version: z.string().optional().describe("Custom Model version."),
424
+ assetName: z.string().optional().describe("Custom Model name."),
425
+ size: z.number().int().optional().describe("The storage amount used."),
426
+ etag: z.string().optional().describe("An identifier for the specific version of the asset."),
427
+ trainingMode: z.enum(["subject", "style"]).optional().describe("The training mode of the model. When this is 'subject', the 'conceptId' must be mentioned in the prompt."),
428
+ assetId: z.string().optional().describe("A unique identifier for the asset."),
429
+ mediaType: z.string().optional().describe("The media type specific to the asset."),
430
+ createdDate: z.string().optional(),
431
+ modifiedDate: z.string().optional(),
432
+ publishedState: z.enum(["never", "published", "unpublished"]).optional().describe("Status for the asset. The 'unpublished' value applies when an asset is published and then subsequently revoked."),
433
+ baseModel: Out_BaseModel.optional().describe("The underlying GenAI model used to train the Custom Model."),
434
+ samplePrompt: z.string().optional().describe("Example string provided by the custom model's trainer."),
435
+ displayName: z.string().optional().describe("The asset name provided by the user, mapped from the name of the training set library."),
436
+ conceptId: z.string().optional().describe("When 'trainingMode' is 'subject', this string specifies the subject for the prompt.")
437
+ })).describe("Custom Model info.");
438
+ /**
439
+ * OpenAPI component `CustomModelsFF3pInfo`, response (open).
440
+ * @category Generated
441
+ */
442
+ export const Out_CustomModelsFF3pInfo = z.lazy(() => z.looseObject({
443
+ custom_models: z.array(Out_CustomModelFF3pInfo).optional().describe("List of custom models."),
444
+ _links: Out_Links.optional(),
445
+ total_count: z.number().int().optional().describe("Total number of results for the query.")
446
+ }));
447
+ /**
448
+ * OpenAPI component `Link`, response (open).
449
+ * @category Generated
450
+ */
451
+ export const Out_Link = z.lazy(() => z.looseObject({
452
+ href: z.string().optional().describe("Fully qualified URI or relative path for the link."),
453
+ rel: z.string().optional().describe("Describes the relationship or function of the link (e.g. `next`, `page`, `self`)."),
454
+ templated: z.boolean().optional().describe("Indicates whether or not the `href` supports URI template parameters.")
455
+ })).describe("Standard representation of a hypermedia link.");
456
+ /**
457
+ * OpenAPI component `Links`, response (open).
458
+ * @category Generated
459
+ */
460
+ export const Out_Links = z.lazy(() => z.looseObject({
461
+ page: Out_Link.optional(),
462
+ next: Out_Link.optional()
463
+ })).describe("Collection of hypermedia links for pagination, navigation, etc.");
453
464
  //# sourceMappingURL=schemas.js.map