@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,718 +1,811 @@
1
- /* eslint-disable */
2
- /** Generated from photoshop/photoshopv2-api.json — do not edit. */
1
+ /* Generated by scripts/generate-capabilities.mjs. Do not edit; run `pnpm run generate`. */
2
+ /* Source: photoshop/photoshopv2-api.json */
3
3
  import { z } from "zod";
4
- export const Schema_ActionResource = z.lazy(() => (z.object({
5
- "actionName": z.string().optional(),
6
- "source": z.union([Schema_CreativeCloudFileIdResourceInput, Schema_CreativeCloudResourceInput, Schema_InlineContentResourceInput, Schema_LightroomResourceInput, Schema_UrlResourceInput])
7
- })));
8
- export const Schema_CreativeCloudFileIdResourceInput = z.lazy(() => (z.intersection(Schema_ResourceInput, z.object({
9
- "creativeCloudFileId": z.string().optional()
10
- }))));
11
- export const Schema_ResourceInput = z.lazy(() => (z.object({})));
12
- export const Schema_CreativeCloudResourceInput = z.lazy(() => (z.intersection(Schema_ResourceInput, z.object({
13
- "creativeCloudPath": z.string().optional(),
14
- "creativeCloudProjectId": z.string().optional()
15
- }))));
16
- export const Schema_InlineContentResourceInput = z.lazy(() => (z.intersection(Schema_ResourceInput, z.object({
17
- "content": z.string().min(0).max(51200).optional(),
18
- "contentType": z.string().optional()
19
- }))));
20
- export const Schema_LightroomResourceInput = z.lazy(() => (z.intersection(Schema_ResourceInput, z.object({
21
- "lightroomPath": z.string().optional()
22
- }))));
23
- export const Schema_UrlResourceInput = z.lazy(() => (z.intersection(Schema_ResourceInput, z.object({
24
- "url": z.string().optional()
25
- }))));
26
- export const Schema_ActionsOptions = z.lazy(() => (z.object({
27
- "actions": z.array(Schema_ActionResource).optional(),
28
- "additionalContents": z.array(Schema_AdditionalContentResource).optional(),
29
- "brushes": z.array(Schema_BrushResource).optional(),
30
- "fontOptions": Schema_FontOptions.optional(),
31
- "patterns": z.array(Schema_PatternResource).optional(),
32
- "uxp": Schema_UxpResource.optional()
33
- })));
34
- export const Schema_AdditionalContentResource = z.lazy(() => (z.object({
35
- "source": Schema_PortableFileResourceInput
36
- })));
37
- export const Schema_PortableFileResourceInput = z.lazy(() => (z.union([Schema_UrlResourceInput, Schema_CreativeCloudResourceInput, Schema_CreativeCloudFileIdResourceInput])));
38
- export const Schema_BrushResource = z.lazy(() => (z.object({
39
- "source": Schema_PortableFileResourceInput
40
- })));
41
- export const Schema_FontOptions = z.lazy(() => (z.object({
42
- "additionalFonts": z.array(Schema_AdditionalFont).optional(),
43
- "defaultFontPostScriptName": z.string().optional(),
44
- "missingFontStrategy": z.enum(["fail", "use_default"]).optional()
45
- })));
46
- export const Schema_AdditionalFont = z.lazy(() => (z.object({
47
- "source": Schema_PortableFileResourceInput.optional()
48
- })));
49
- export const Schema_PatternResource = z.lazy(() => (z.object({
50
- "source": Schema_PortableFileResourceInput
51
- })));
52
- export const Schema_UxpResource = z.lazy(() => (z.object({
53
- "source": z.union([Schema_CreativeCloudFileIdResourceInput, Schema_CreativeCloudResourceInput, Schema_InlineContentResourceInput, Schema_LightroomResourceInput, Schema_UrlResourceInput])
54
- })));
55
- export const Schema_ActionsRequest = z.lazy(() => (z.object({
56
- "image": Schema_ImageSource,
57
- "options": Schema_ActionsOptions,
58
- "outputs": z.array(z.union([Schema_JpegOutput, Schema_JsonOutput, Schema_PngOutput, Schema_PsdOutput, Schema_PsdcOutput, Schema_TiffOutput]))
59
- })));
60
- export const Schema_ImageSource = z.lazy(() => (z.object({
61
- "source": Schema_FileResourceInput
62
- })));
63
- export const Schema_FileResourceInput = z.lazy(() => (z.union([Schema_UrlResourceInput, Schema_CreativeCloudResourceInput, Schema_CreativeCloudFileIdResourceInput, Schema_LightroomResourceInput])));
64
- export const Schema_JpegOutput = z.lazy(() => (z.intersection(Schema_PhotoshopOutput, z.object({
65
- "quality": z.enum(["very_poor", "poor", "low", "medium", "high", "maximum", "photoshop_max"]).optional()
66
- }))));
67
- export const Schema_PhotoshopOutput = z.lazy(() => (z.object({
68
- "cropMode": z.enum(["trim_to_transparency", "document_bounds", "layer_bounds"]).optional(),
69
- "destination": z.union([Schema_CreativeCloudDestination, Schema_EmbeddedDestination, Schema_HostedDestination, Schema_UrlDestination]),
70
- "height": z.number().int().min(0).optional(),
71
- "iccProfile": z.union([Schema_CustomIccProfile, Schema_StandardIccProfile]).optional(),
72
- "layers": z.array(Schema_ReferenceLayer).optional(),
73
- "maxWidth": z.number().int().min(0).optional(),
74
- "mediaType": z.enum(["image/jpeg", "image/png", "image/tiff", "image/vnd.adobe.photoshop", "document/vnd.adobe.cpsd+dcxucf", "document/vnd.adobe.cpsd+dcx", "application/json"]),
75
- "resample": z.enum(["nearest_neighbor", "bilinear", "bicubic", "bicubic_smoother", "bicubic_sharper"]).optional(),
76
- "scriptOutputPattern": z.string().min(0).max(255).optional(),
77
- "shouldOverwrite": z.boolean().optional(),
78
- "width": z.number().int().min(0).optional()
79
- })));
80
- export const Schema_CreativeCloudDestination = z.lazy(() => (z.intersection(Schema_Destination, z.object({
81
- "creativeCloudPath": z.string().optional(),
82
- "creativeCloudProjectId": z.string().optional()
83
- }))));
84
- export const Schema_Destination = z.lazy(() => (z.object({})));
85
- export const Schema_EmbeddedDestination = z.lazy(() => (z.intersection(Schema_Destination, z.object({
86
- "embedded": z.enum(["string", "base64", "json"]).optional()
87
- }))));
88
- export const Schema_HostedDestination = z.lazy(() => (z.intersection(Schema_Destination, z.object({
89
- "validityPeriod": z.number().int().min(60).max(86400).optional()
90
- }))));
91
- export const Schema_UrlDestination = z.lazy(() => (z.intersection(Schema_Destination, z.object({
92
- "storageType": z.enum(["azure", "dropbox"]).optional(),
93
- "url": z.string().optional()
94
- }))));
95
- export const Schema_CustomIccProfile = z.lazy(() => (z.intersection(Schema_IccProfile, z.object({
96
- "imageMode": z.enum(["rgb", "grayscale", "cmyk"]).optional(),
97
- "name": z.string().min(0).max(255).optional(),
98
- "source": Schema_FileResourceInput.optional()
99
- }))));
100
- export const Schema_IccProfile = z.lazy(() => (z.object({
101
- "type": z.enum(["standard", "custom"])
102
- })));
103
- export const Schema_StandardIccProfile = z.lazy(() => (z.intersection(Schema_IccProfile, z.object({
104
- "imageMode": z.enum(["rgb", "grayscale"]).optional(),
105
- "name": z.enum(["Adobe RGB (1998)", "Apple RGB", "ColorMatch RGB", "sRGB IEC61966-2.1", "Dot Gain 10%", "Dot Gain 15%", "Dot Gain 20%", "Dot Gain 25%", "Dot Gain 30%", "Gray Gamma 1.8", "Gray Gamma 2.2"]).optional()
106
- }))));
107
- export const Schema_ReferenceLayer = z.lazy(() => (z.object({
108
- "id": z.number().int().optional(),
109
- "name": z.string().optional()
110
- })));
111
- export const Schema_JsonOutput = z.lazy(() => (Schema_PhotoshopOutput));
112
- export const Schema_PngOutput = z.lazy(() => (z.intersection(Schema_PhotoshopOutput, z.object({
113
- "compression": z.enum(["none", "very_low", "low", "medium_low", "medium", "medium_high", "default", "high", "very_high", "maximum"]).optional()
114
- }))));
115
- export const Schema_PsdOutput = z.lazy(() => (Schema_PhotoshopOutput));
116
- export const Schema_PsdcOutput = z.lazy(() => (Schema_PhotoshopOutput));
117
- export const Schema_TiffOutput = z.lazy(() => (Schema_PhotoshopOutput));
118
- export const Schema_AddAdjustmentLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
119
- "adjustments": z.union([Schema_BrightnessContrastAdjustments, Schema_ColorBalanceAdjustments, Schema_ExposureAdjustments, Schema_HueSaturationAdjustments]).optional(),
120
- "blendOptions": Schema_BlendOptions.optional(),
121
- "isClipped": z.boolean().optional(),
122
- "isVisible": z.boolean().optional(),
123
- "pixelMask": Schema_PixelMask.optional(),
124
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
125
- "transform": Schema_Transform.optional(),
126
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
127
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
128
- }))));
129
- export const Schema_OperationBase = z.lazy(() => (z.object({
130
- "id": z.number().int().optional(),
131
- "name": z.string().optional(),
132
- "operation": z.union([Schema_AddOperation, Schema_DeleteOperation, Schema_EditOperation, Schema_MoveOperation])
133
- })));
134
- export const Schema_AddOperation = z.lazy(() => (z.intersection(Schema_Operation, z.object({
135
- "placement": Schema_Placement.optional()
136
- }))));
137
- export const Schema_Operation = z.lazy(() => (z.object({
138
- "type": z.enum(["add", "edit", "delete", "move"])
139
- })));
140
- export const Schema_Placement = z.lazy(() => (z.object({
141
- "referenceLayer": Schema_ReferenceLayer.optional(),
142
- "type": z.enum(["below", "into", "top", "bottom", "above"])
143
- })));
144
- export const Schema_DeleteOperation = z.lazy(() => (z.intersection(Schema_Operation, z.object({
145
- "shouldIncludeChildren": z.boolean().optional()
146
- }))));
147
- export const Schema_EditOperation = z.lazy(() => (Schema_Operation));
148
- export const Schema_MoveOperation = z.lazy(() => (z.intersection(Schema_Operation, z.object({
149
- "placement": Schema_Placement.optional(),
150
- "shouldIncludeChildren": z.boolean().optional()
151
- }))));
152
- export const Schema_BrightnessContrastAdjustments = z.lazy(() => (z.intersection(Schema_BaseAdjustment, z.object({
153
- "brightnessContrast": Schema_BrightnessContrast.optional()
154
- }))));
155
- export const Schema_BaseAdjustment = z.lazy(() => (z.object({
156
- "type": z.enum(["hue_saturation", "brightness_contrast", "exposure", "color_balance"])
157
- })));
158
- export const Schema_BrightnessContrast = z.lazy(() => (z.object({
159
- "brightness": z.number().int().min(-150).max(150).optional(),
160
- "contrast": z.number().int().min(-150).max(150).optional()
161
- })));
162
- export const Schema_ColorBalanceAdjustments = z.lazy(() => (z.intersection(Schema_BaseAdjustment, z.object({
163
- "colorBalance": Schema_ColorBalance.optional()
164
- }))));
165
- export const Schema_ColorBalance = z.lazy(() => (z.object({
166
- "highlightLevels": z.array(z.number().int().min(-100).max(100)).optional(),
167
- "midtoneLevels": z.array(z.number().int().min(-100).max(100)).optional(),
168
- "preserveLuminosity": z.boolean().optional(),
169
- "shadowLevels": z.array(z.number().int().min(-100).max(100)).optional()
170
- })));
171
- export const Schema_ExposureAdjustments = z.lazy(() => (z.intersection(Schema_BaseAdjustment, z.object({
172
- "exposure": Schema_Exposure.optional()
173
- }))));
174
- export const Schema_Exposure = z.lazy(() => (z.object({
175
- "exposureValue": z.number().min(-20).max(20).optional(),
176
- "gammaCorrection": z.number().min(0.01).max(9.99).optional(),
177
- "offset": z.number().min(-0.5).max(0.5).optional()
178
- })));
179
- export const Schema_HueSaturationAdjustments = z.lazy(() => (z.intersection(Schema_BaseAdjustment, z.object({
180
- "hueSaturation": Schema_HueSaturation.optional()
181
- }))));
182
- export const Schema_HueSaturation = z.lazy(() => (z.object({
183
- "colorize": z.boolean().optional(),
184
- "hueSaturationAdjustments": z.array(Schema_HueSaturationAdjustment).optional()
185
- })));
186
- export const Schema_HueSaturationAdjustment = z.lazy(() => (z.object({
187
- "hue": z.number().int().optional(),
188
- "lightness": z.number().int().optional(),
189
- "localRange": Schema_LocalRange.optional(),
190
- "saturation": z.number().int().optional()
191
- })));
192
- export const Schema_LocalRange = z.lazy(() => (z.object({
193
- "beginRamp": z.number().int().min(0).max(360).optional(),
194
- "beginSustain": z.number().int().min(0).max(360).optional(),
195
- "channelId": z.enum(["REDS", "YELLOWS", "GREENS", "CYANS", "BLUES", "MAGENTAS"]),
196
- "endRamp": z.number().int().min(0).max(360).optional(),
197
- "endSustain": z.number().int().min(0).max(360).optional()
198
- })));
199
- export const Schema_BlendOptions = z.lazy(() => (z.object({
200
- "blendMode": z.enum(["normal", "dissolve", "darken", "multiply", "color_burn", "linear_burn", "darker_color", "lighten", "screen", "color_dodge", "linear_dodge", "lighter_color", "overlay", "soft_light", "hard_light", "vivid_light", "pin_light", "hard_mix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity"]).optional(),
201
- "opacity": z.number().int().min(0).max(100).optional()
202
- })));
203
- export const Schema_PixelMask = z.lazy(() => (z.object({
204
- "isEnabled": z.boolean().optional(),
205
- "isLinked": z.boolean().optional(),
206
- "offset": Schema_Offset.optional(),
207
- "source": Schema_FileResourceInput.optional()
208
- })));
209
- export const Schema_Offset = z.lazy(() => (z.object({
210
- "horizontal": z.number().int().optional(),
211
- "vertical": z.number().int().optional()
212
- })));
213
- export const Schema_Transform = z.lazy(() => (z.object({
214
- "anchor": Schema_Anchor.optional(),
215
- "angle": z.number().optional(),
216
- "dimension": Schema_Dimension.optional(),
217
- "horizontalAlign": z.enum(["left", "center", "right"]).optional(),
218
- "offset": Schema_Offset.optional(),
219
- "skew": Schema_Skew.optional(),
220
- "verticalAlign": z.enum(["top", "center", "bottom"]).optional()
221
- })));
222
- export const Schema_Anchor = z.lazy(() => (z.object({
223
- "horizontal": z.number(),
224
- "vertical": z.number()
225
- })));
226
- export const Schema_Dimension = z.lazy(() => (z.object({
227
- "height": z.number().int().min(0).max(32000).optional(),
228
- "width": z.number().int().min(0).max(32000).optional()
229
- })));
230
- export const Schema_Skew = z.lazy(() => (z.object({
231
- "horizontal": z.number().int(),
232
- "vertical": z.number().int()
233
- })));
234
- export const Schema_AddBackgroundLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
235
- "blendOptions": Schema_BlendOptions.optional(),
236
- "image": Schema_ImageSource.optional(),
237
- "isVisible": z.boolean().optional(),
238
- "pixelMask": Schema_PixelMask.optional(),
239
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
240
- "transform": Schema_Transform.optional(),
241
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
242
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
243
- }))));
244
- export const Schema_AddGroupLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
245
- "blendOptions": Schema_BlendOptions.optional(),
246
- "children": z.array(z.union([Schema_AddAdjustmentLayer, Schema_AddBackgroundLayer, Schema_AddGroupLayer, Schema_AddLayer, Schema_AddSmartObjectLayer, Schema_AddSolidColorLayer, Schema_AddTextLayer, Schema_DeleteLayer, Schema_EditAdjustmentLayer, Schema_EditBackgroundLayer, Schema_EditGroupLayer, Schema_EditLayer, Schema_EditSmartObjectLayer, Schema_EditSolidColorLayer, Schema_EditTextLayer, Schema_MoveLayer])).optional(),
247
- "isVisible": z.boolean().optional(),
248
- "pixelMask": Schema_PixelMask.optional(),
249
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
250
- "transform": Schema_Transform.optional(),
251
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
252
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
253
- }))));
254
- export const Schema_AddLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
255
- "blendOptions": Schema_BlendOptions.optional(),
256
- "image": Schema_ImageSource.optional(),
257
- "isClipped": z.boolean().optional(),
258
- "isVisible": z.boolean().optional(),
259
- "pixelMask": Schema_PixelMask.optional(),
260
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
261
- "transform": Schema_Transform.optional(),
262
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
263
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
264
- }))));
265
- export const Schema_AddSmartObjectLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
266
- "blendOptions": Schema_BlendOptions.optional(),
267
- "isClipped": z.boolean().optional(),
268
- "isVisible": z.boolean().optional(),
269
- "pixelMask": Schema_PixelMask.optional(),
270
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
271
- "smartObject": Schema_SmartObject.optional(),
272
- "transform": Schema_Transform.optional(),
273
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
274
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
275
- }))));
276
- export const Schema_SmartObject = z.lazy(() => (z.object({
277
- "isLinked": z.boolean().optional(),
278
- "smartObjectFile": Schema_SmartObjectFile.optional()
279
- })));
280
- export const Schema_SmartObjectFile = z.lazy(() => (z.object({
281
- "source": Schema_FileResourceInput.optional()
282
- })));
283
- export const Schema_AddSolidColorLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
284
- "blendOptions": Schema_BlendOptions.optional(),
285
- "fill": Schema_Fill.optional(),
286
- "isClipped": z.boolean().optional(),
287
- "isVisible": z.boolean().optional(),
288
- "pixelMask": Schema_PixelMask.optional(),
289
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
290
- "transform": Schema_Transform.optional(),
291
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
292
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
293
- }))));
294
- export const Schema_Fill = z.lazy(() => (z.object({
295
- "solidColor": Schema_SolidColor.optional()
296
- })));
297
- export const Schema_SolidColor = z.lazy(() => (z.object({
298
- "rgb": Schema_Rgb
299
- })));
300
- export const Schema_Rgb = z.lazy(() => (z.object({
301
- "blue": z.number().int().min(0).max(255),
302
- "green": z.number().int().min(0).max(255),
303
- "red": z.number().int().min(0).max(255)
304
- })));
305
- export const Schema_AddTextLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
306
- "blendOptions": Schema_BlendOptions.optional(),
307
- "isClipped": z.boolean().optional(),
308
- "isVisible": z.boolean().optional(),
309
- "pixelMask": Schema_PixelMask.optional(),
310
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
311
- "text": Schema_Text.optional(),
312
- "transform": Schema_Transform.optional(),
313
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
314
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
315
- }))));
316
- export const Schema_Text = z.lazy(() => (z.object({
317
- "antiAliasing": z.enum(["none", "sharp", "crisp", "strong", "smooth"]).optional(),
318
- "characterStyles": z.array(Schema_CharacterStyleRange).optional(),
319
- "content": z.string().optional(),
320
- "frame": z.union([Schema_AreaFrame, Schema_PointFrame]).optional(),
321
- "paragraphStyles": z.array(Schema_ParagraphStyleRange).optional(),
322
- "textOrientation": z.enum(["horizontal", "vertical"]).optional()
323
- })));
324
- export const Schema_CharacterStyleRange = z.lazy(() => (z.object({
325
- "apply": Schema_Apply.optional(),
326
- "characterStyle": Schema_CharacterStyle.optional()
327
- })));
328
- export const Schema_Apply = z.lazy(() => (z.object({
329
- "from": z.number().int().min(0),
330
- "to": z.number().int().min(0)
331
- })));
332
- export const Schema_CharacterStyle = z.lazy(() => (z.object({
333
- "autoLeading": z.boolean().optional(),
334
- "capsOption": z.enum(["normal_caps", "small_caps", "all_caps", "all_small_caps"]).optional(),
335
- "font": Schema_Font.optional(),
336
- "fontAlpha": z.number().min(0).max(1).optional(),
337
- "fontColor": z.union([Schema_FontCmyk, Schema_FontGray, Schema_FontLab, Schema_FontRgb]).optional(),
338
- "fontSize": z.number().optional(),
339
- "letterSpacing": z.number().optional(),
340
- "lineHeight": z.number().optional(),
341
- "syntheticBold": z.boolean().optional(),
342
- "syntheticItalic": z.boolean().optional(),
343
- "underline": z.boolean().optional()
344
- })));
345
- export const Schema_Font = z.lazy(() => (z.object({
346
- "postScriptName": z.string().optional()
347
- })));
348
- export const Schema_FontCmyk = z.lazy(() => (z.intersection(Schema_FontColor, z.object({
349
- "black": z.number().int().min(0).max(32768).optional(),
350
- "cyan": z.number().int().min(0).max(32768).optional(),
351
- "magenta": z.number().int().min(0).max(32768).optional(),
352
- "yellow": z.number().int().min(0).max(32768).optional()
353
- }))));
354
- export const Schema_FontColor = z.lazy(() => (z.object({})));
355
- export const Schema_FontGray = z.lazy(() => (z.intersection(Schema_FontColor, z.object({
356
- "gray": z.number().int().min(0).max(32768).optional()
357
- }))));
358
- export const Schema_FontLab = z.lazy(() => (z.intersection(Schema_FontColor, z.object({
359
- "a": z.number().int().min(-16384).max(16384).optional(),
360
- "b": z.number().int().min(-16384).max(16384).optional(),
361
- "l": z.number().int().min(0).max(32768).optional()
362
- }))));
363
- export const Schema_FontRgb = z.lazy(() => (z.intersection(Schema_FontColor, z.object({
364
- "blue": z.number().int().min(0).max(32768).optional(),
365
- "green": z.number().int().min(0).max(32768).optional(),
366
- "red": z.number().int().min(0).max(32768).optional()
367
- }))));
368
- export const Schema_AreaFrame = z.lazy(() => (z.intersection(Schema_TextFrame, z.object({
369
- "bounds": Schema_Bounds.optional()
370
- }))));
371
- export const Schema_TextFrame = z.lazy(() => (z.object({
372
- "type": z.enum(["point", "area"])
373
- })));
374
- export const Schema_Bounds = z.lazy(() => (z.object({
375
- "bottom": z.number().int().optional(),
376
- "left": z.number().int().optional(),
377
- "right": z.number().int().optional(),
378
- "top": z.number().int().optional()
379
- })));
380
- export const Schema_PointFrame = z.lazy(() => (z.intersection(Schema_TextFrame, z.object({
381
- "origin": Schema_Origin.optional()
382
- }))));
383
- export const Schema_Origin = z.lazy(() => (z.object({
384
- "x": z.number().int().optional(),
385
- "y": z.number().int().optional()
386
- })));
387
- export const Schema_ParagraphStyleRange = z.lazy(() => (z.object({
388
- "apply": Schema_Apply.optional(),
389
- "paragraphStyle": Schema_ParagraphStyle.optional()
390
- })));
391
- export const Schema_ParagraphStyle = z.lazy(() => (z.object({
392
- "alignment": z.enum(["left", "center", "right", "justify", "justify_left", "justify_right", "justify_center"]).optional(),
393
- "endIndent": z.number().optional(),
394
- "firstLineIndent": z.number().optional(),
395
- "spaceAfter": z.number().optional(),
396
- "spaceBefore": z.number().optional(),
397
- "startIndent": z.number().optional(),
398
- "writingDirection": z.enum(["left_to_right", "right_to_left"]).optional()
399
- })));
400
- export const Schema_DeleteLayer = z.lazy(() => (Schema_OperationBase));
401
- export const Schema_EditAdjustmentLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
402
- "adjustments": z.union([Schema_BrightnessContrastAdjustments, Schema_ColorBalanceAdjustments, Schema_ExposureAdjustments, Schema_HueSaturationAdjustments]).optional(),
403
- "blendOptions": Schema_BlendOptions.optional(),
404
- "isClipped": z.boolean().optional(),
405
- "isVisible": z.boolean().optional(),
406
- "pixelMask": Schema_EditPixelMask.optional(),
407
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
408
- "transform": Schema_Transform.optional(),
409
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
410
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
411
- }))));
412
- export const Schema_EditPixelMask = z.lazy(() => (z.object({
413
- "delete": z.boolean(),
414
- "isEnabled": z.boolean().optional(),
415
- "isLinked": z.boolean().optional(),
416
- "offset": Schema_Offset.optional(),
417
- "source": Schema_FileResourceInput.optional()
418
- })));
419
- export const Schema_EditBackgroundLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
420
- "blendOptions": Schema_BlendOptions.optional(),
421
- "convertToLayer": z.boolean().optional(),
422
- "convertedLayerName": z.string().optional(),
423
- "image": Schema_ImageSource.optional(),
424
- "isVisible": z.boolean().optional(),
425
- "pixelMask": Schema_EditPixelMask.optional(),
426
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
427
- "transform": Schema_Transform.optional(),
428
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
429
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
430
- }))));
431
- export const Schema_EditGroupLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
432
- "blendOptions": Schema_BlendOptions.optional(),
433
- "isVisible": z.boolean().optional(),
434
- "pixelMask": Schema_EditPixelMask.optional(),
435
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
436
- "transform": Schema_Transform.optional(),
437
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
438
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
439
- }))));
440
- export const Schema_EditLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
441
- "blendOptions": Schema_BlendOptions.optional(),
442
- "image": Schema_ImageSource.optional(),
443
- "isClipped": z.boolean().optional(),
444
- "isVisible": z.boolean().optional(),
445
- "pixelMask": Schema_EditPixelMask.optional(),
446
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
447
- "transform": Schema_Transform.optional(),
448
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
449
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
450
- }))));
451
- export const Schema_EditSmartObjectLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
452
- "blendOptions": Schema_BlendOptions.optional(),
453
- "isClipped": z.boolean().optional(),
454
- "isVisible": z.boolean().optional(),
455
- "pixelMask": Schema_EditPixelMask.optional(),
456
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
457
- "smartObject": Schema_EditSmartObject.optional(),
458
- "transform": Schema_Transform.optional(),
459
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
460
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
461
- }))));
462
- export const Schema_EditSmartObject = z.lazy(() => (z.object({
463
- "autoResize": z.boolean().optional(),
464
- "isLinked": z.boolean().optional(),
465
- "smartObjectFile": Schema_SmartObjectFile.optional()
466
- })));
467
- export const Schema_EditSolidColorLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
468
- "blendOptions": Schema_BlendOptions.optional(),
469
- "fill": Schema_Fill.optional(),
470
- "isClipped": z.boolean().optional(),
471
- "isVisible": z.boolean().optional(),
472
- "pixelMask": Schema_EditPixelMask.optional(),
473
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
474
- "transform": Schema_Transform.optional(),
475
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
476
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
477
- }))));
478
- export const Schema_EditTextLayer = z.lazy(() => (z.intersection(Schema_OperationBase, z.object({
479
- "blendOptions": Schema_BlendOptions.optional(),
480
- "isClipped": z.boolean().optional(),
481
- "isVisible": z.boolean().optional(),
482
- "pixelMask": Schema_EditPixelMask.optional(),
483
- "protection": z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional(),
484
- "text": Schema_Text.optional(),
485
- "transform": Schema_Transform.optional(),
486
- "transformMode": z.enum(["fit", "fill", "custom", "none"]).optional(),
487
- "type": z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional()
488
- }))));
489
- export const Schema_MoveLayer = z.lazy(() => (Schema_OperationBase));
490
- export const Schema_ArtboardImageInput = z.lazy(() => (z.object({
491
- "source": Schema_FileResourceInput
492
- })));
493
- export const Schema_AutoStraighten = z.lazy(() => (z.object({
494
- "constrainCrop": z.boolean().optional(),
495
- "enabled": z.boolean(),
496
- "uprightMode": z.enum(["auto", "full", "level", "vertical"]).optional()
497
- })));
498
- export const Schema_AutoCropAspectRatio = z.lazy(() => (z.enum(["1:1", "16:9", "9:16", "4:3", "3:4", "4:5", "5:4", "3:2", "2:3", "21:9"])));
499
- export const Schema_AutoCropBoundingBox = z.lazy(() => (z.object({
500
- "height": z.number(),
501
- "url": z.string().optional(),
502
- "width": z.number(),
503
- "x": z.number(),
504
- "y": z.number()
505
- })));
506
- export const Schema_AutoCropCrop = z.lazy(() => (z.object({
507
- "boundingBoxes": z.array(Schema_AutoCropBoundingBox)
508
- })));
509
- export const Schema_AutoCropImageMediaType = z.lazy(() => (z.enum(["image/jpeg", "image/png", "image/webp"])));
510
- export const Schema_AutoCropInputImage = z.lazy(() => (z.object({
511
- "mediaType": Schema_AutoCropImageMediaType.optional(),
512
- "source": Schema_AutoCropUrlResource
513
- })));
514
- export const Schema_AutoCropUrlResource = z.lazy(() => (z.object({
515
- "url": z.string()
516
- })));
517
- export const Schema_AutoCropMode = z.lazy(() => (z.enum(["smartCrop", "subjectCrop", "fullSceneDetection", "objectDetection"])));
518
- export const Schema_AutoCropObjectDetection = z.lazy(() => (z.object({
519
- "boundingBoxes": z.array(Schema_AutoCropBoundingBox),
520
- "confidence": z.number(),
521
- "objectName": z.string()
522
- })));
523
- export const Schema_AutoCropOutput = z.lazy(() => (z.object({
524
- "crops": z.array(Schema_AutoCropCrop),
525
- "objects": z.array(Schema_AutoCropObjectDetection),
526
- "subject": z.array(Schema_AutoCropCrop)
527
- })));
528
- export const Schema_AutoCropOutputType = z.lazy(() => (z.enum(["images", "boundingBoxes"])));
529
- export const Schema_AutoCropRequest = z.lazy(() => (z.object({
530
- "aspectRatio": z.union([Schema_AutoCropAspectRatio, z.array(Schema_AutoCropAspectRatio)]).optional(),
531
- "focus": z.array(z.string()).optional(),
532
- "image": Schema_AutoCropInputImage,
533
- "mode": Schema_AutoCropMode,
534
- "outputType": Schema_AutoCropOutputType.optional(),
535
- "zoom": z.union([z.number(), z.array(z.number())]).optional()
536
- })));
537
- export const Schema_ColorAdjustments = z.lazy(() => (z.object({
538
- "saturation": z.number().int().min(-100).max(100).optional(),
539
- "vibrance": z.number().int().min(-100).max(100).optional(),
540
- "whiteBalance": z.enum(["As Shot", "Auto", "Cloudy", "Custom", "Daylight", "Flash", "Fluorescent", "Shade", "Tungsten"]).optional()
541
- })));
542
- export const Schema_CreateArtboardRequest = z.lazy(() => (z.object({
543
- "artboardSpacing": z.number().int().optional(),
544
- "images": z.array(Schema_ArtboardImageInput),
545
- "outputs": z.array(z.union([Schema_JpegOutput, Schema_JsonOutput, Schema_PngOutput, Schema_PsdOutput, Schema_PsdcOutput, Schema_TiffOutput]))
546
- })));
547
- export const Schema_CreateCompositeRequest = z.lazy(() => (z.object({
548
- "edits": Schema_Edits.optional(),
549
- "fontOptions": Schema_FontOptions.optional(),
550
- "image": z.union([Schema_ImageParameters, Schema_ImageSource]),
551
- "outputs": z.array(z.union([Schema_JpegOutput, Schema_JsonOutput, Schema_PngOutput, Schema_PsdOutput, Schema_PsdcOutput, Schema_TiffOutput]))
552
- })));
553
- export const Schema_Edits = z.lazy(() => (z.object({
554
- "document": Schema_Document.optional(),
555
- "layers": z.array(z.union([Schema_AddAdjustmentLayer, Schema_AddBackgroundLayer, Schema_AddGroupLayer, Schema_AddLayer, Schema_AddSmartObjectLayer, Schema_AddSolidColorLayer, Schema_AddTextLayer, Schema_DeleteLayer, Schema_EditAdjustmentLayer, Schema_EditBackgroundLayer, Schema_EditGroupLayer, Schema_EditLayer, Schema_EditSmartObjectLayer, Schema_EditSolidColorLayer, Schema_EditTextLayer, Schema_MoveLayer])).optional()
556
- })));
557
- export const Schema_Document = z.lazy(() => (z.object({
558
- "crop": Schema_Crop.optional(),
559
- "resize": Schema_Resize.optional(),
560
- "trim": Schema_Trim.optional()
561
- })));
562
- export const Schema_Crop = z.lazy(() => (z.object({
563
- "bounds": Schema_Bounds,
564
- "hide": z.boolean().optional()
565
- })));
566
- export const Schema_Resize = z.lazy(() => (z.object({
567
- "constrainProportions": z.boolean().optional(),
568
- "height": Schema_DimensionMeasurement.optional(),
569
- "rasterize": z.boolean().optional(),
570
- "resample": z.enum(["nearest_neighbor", "bilinear", "bicubic", "bicubic_smoother", "bicubic_sharper"]).optional(),
571
- "resolution": Schema_ResolutionMeasurement.optional(),
572
- "scaleStyles": z.boolean().optional(),
573
- "width": Schema_DimensionMeasurement.optional()
574
- })));
575
- export const Schema_DimensionMeasurement = z.lazy(() => (z.object({
576
- "unit": z.enum(["pixels_unit", "percent_unit", "distance_unit"]),
577
- "value": z.number().int().min(0).optional()
578
- })));
579
- export const Schema_ResolutionMeasurement = z.lazy(() => (z.object({
580
- "unit": z.enum(["density_unit"]),
581
- "value": z.number().int().min(1).optional()
582
- })));
583
- export const Schema_Trim = z.lazy(() => (z.object({
584
- "trimUpon": z.enum(["transparent_pixels"]).optional()
585
- })));
586
- export const Schema_ImageParameters = z.lazy(() => (z.intersection(Schema_ImageInput, z.object({
587
- "depth": z.enum(["1", "8", "16", "32"]).optional(),
588
- "fill": z.enum(["white", "background_color", "transparent"]).optional(),
589
- "height": z.number().int().min(1).max(32000).optional(),
590
- "iccProfile": Schema_IccProfile.optional(),
591
- "mode": z.enum(["rgb", "bitmap", "grayscale", "indexed", "hsb", "cmyk", "lab", "duotone", "multichannel"]).optional(),
592
- "name": z.string().min(0).max(255).optional(),
593
- "pixelScaleFactor": z.number().min(0.1).optional(),
594
- "resolution": Schema_ResolutionMeasurement.optional(),
595
- "width": z.number().int().min(1).max(32000).optional()
596
- }))));
597
- export const Schema_ImageInput = z.lazy(() => (z.object({})));
598
- export const Schema_EditImageInput = z.lazy(() => (z.object({
599
- "source": Schema_FileResourceInput
600
- })));
601
- export const Schema_EditRequest = z.lazy(() => (z.object({
602
- "edits": Schema_LightroomEdits.optional(),
603
- "image": Schema_EditImageInput,
604
- "outputs": z.array(z.union([Schema_LrDngOutput, Schema_LrJpegOutput, Schema_LrPngOutput, Schema_XmpOutput]))
605
- })));
606
- export const Schema_LightroomEdits = z.lazy(() => (z.object({
607
- "autoStraighten": Schema_AutoStraighten.optional(),
608
- "autoTone": z.boolean().optional(),
609
- "color": Schema_ColorAdjustments.optional(),
610
- "effects": Schema_EffectsAdjustments.optional(),
611
- "light": Schema_LightAdjustments.optional(),
612
- "noiseReduction": Schema_NoiseReduction.optional(),
613
- "presets": z.array(Schema_FileResourceInput).optional(),
614
- "sharpen": Schema_SharpenAdjustments.optional(),
615
- "sharpness": z.number().int().min(0).max(150).optional(),
616
- "xmp": Schema_XmpInput.optional()
617
- })));
618
- export const Schema_EffectsAdjustments = z.lazy(() => (z.object({
619
- "clarity": z.number().int().min(-100).max(100).optional(),
620
- "dehaze": z.number().int().min(-100).max(100).optional(),
621
- "texture": z.number().int().min(-100).max(100).optional(),
622
- "vignette": z.number().int().min(-100).max(100).optional()
623
- })));
624
- export const Schema_LightAdjustments = z.lazy(() => (z.object({
625
- "blacks": z.number().int().min(-100).max(100).optional(),
626
- "contrast": z.number().int().min(-100).max(100).optional(),
627
- "exposure": z.number().min(-5).max(5).optional(),
628
- "highlights": z.number().int().min(-100).max(100).optional(),
629
- "shadows": z.number().int().min(-100).max(100).optional(),
630
- "whites": z.number().int().min(-100).max(100).optional()
631
- })));
632
- export const Schema_NoiseReduction = z.lazy(() => (z.object({
633
- "color": z.number().int().min(0).max(100).optional(),
634
- "luminance": z.number().int().min(0).max(100).optional()
635
- })));
636
- export const Schema_SharpenAdjustments = z.lazy(() => (z.object({
637
- "detail": z.number().int().min(0).max(100).optional(),
638
- "edgeMasking": z.number().int().min(0).max(100).optional(),
639
- "radius": z.number().min(0.5).max(3).optional()
640
- })));
641
- export const Schema_XmpInput = z.lazy(() => (z.object({
642
- "masks": z.array(Schema_Mask).optional(),
643
- "orientation": z.enum(["top_left", "top_right", "bottom_right", "bottom_left", "left_top", "right_top", "right_bottom", "left_bottom"]).optional(),
644
- "source": Schema_FileResourceInput
645
- })));
646
- export const Schema_Mask = z.lazy(() => (z.object({
647
- "digest": z.string(),
648
- "source": Schema_FileResourceInput
649
- })));
650
- export const Schema_LrDngOutput = z.lazy(() => (Schema_LightroomOutput));
651
- export const Schema_LightroomOutput = z.lazy(() => (z.object({
652
- "destination": z.union([Schema_CreativeCloudDestination, Schema_EmbeddedDestination, Schema_HostedDestination, Schema_UrlDestination]),
653
- "mediaType": z.enum(["image/jpeg", "image/png", "image/x-adobe-dng", "application/rdf+xml"])
654
- })));
655
- export const Schema_LrJpegOutput = z.lazy(() => (z.intersection(Schema_LightroomOutput, z.object({
656
- "quality": z.enum(["very_poor", "poor", "low", "medium", "high", "maximum", "photoshop_max"]).optional()
657
- }))));
658
- export const Schema_LrPngOutput = z.lazy(() => (z.intersection(Schema_LightroomOutput, z.object({
659
- "compression": z.enum(["none", "very_low", "low", "medium_low", "medium", "medium_high", "default", "high", "very_high", "maximum"]).optional()
660
- }))));
661
- export const Schema_XmpOutput = z.lazy(() => (Schema_LightroomOutput));
662
- export const Schema_ErrorDetails = z.lazy(() => (z.object({
663
- "errorCode": z.string().optional(),
664
- "message": z.string().optional()
665
- })));
666
- export const Schema_ErrorResponse = z.lazy(() => (z.object({
667
- "error_code": z.string().optional(),
668
- "errors": z.array(Schema_ValidationError).optional(),
669
- "message": z.string().optional()
670
- })));
671
- export const Schema_ValidationError = z.lazy(() => (z.object({
672
- "error_code": z.string().optional(),
673
- "message": z.string().optional()
674
- })));
675
- export const Schema_ExportOptions = z.lazy(() => (z.object({
676
- "mediaType": z.enum(["image/jpeg", "image/png", "image/tiff", "image/vnd.adobe.photoshop", "document/vnd.adobe.cpsd+dcxucf", "document/vnd.adobe.cpsd+dcx", "application/json"])
677
- })));
678
- export const Schema_GenerateManifestRequest = z.lazy(() => (z.object({
679
- "exportOptions": z.union([Schema_JpegExportOptions, Schema_PngExportOptions]).optional(),
680
- "extractSmartObjectData": z.boolean().optional(),
681
- "image": Schema_Image,
682
- "includeLayerThumbnails": z.boolean().optional(),
683
- "includeXmp": z.boolean().optional(),
684
- "maximumThumbnailDepth": z.number().int().min(0).optional(),
685
- "outputs": z.array(Schema_ManifestJsonOutput),
686
- "trimToTransparency": z.boolean().optional()
687
- })));
688
- export const Schema_JpegExportOptions = z.lazy(() => (z.intersection(Schema_ExportOptions, z.object({
689
- "quality": z.enum(["very_poor", "poor", "low", "medium", "high", "maximum", "photoshop_max"]).optional()
690
- }))));
691
- export const Schema_PngExportOptions = z.lazy(() => (z.intersection(Schema_ExportOptions, z.object({
692
- "compression": z.enum(["none", "very_low", "low", "medium_low", "medium", "medium_high", "default", "high", "very_high", "maximum"]).optional()
693
- }))));
694
- export const Schema_Image = z.lazy(() => (z.object({
695
- "source": Schema_FileResourceInput
696
- })));
697
- export const Schema_ManifestJsonOutput = z.lazy(() => (Schema_ManifestOutput));
698
- export const Schema_ManifestOutput = z.lazy(() => (z.object({
699
- "destination": z.union([Schema_CreativeCloudDestination, Schema_EmbeddedDestination, Schema_HostedDestination, Schema_UrlDestination]),
700
- "mediaType": z.enum(["application/json"])
701
- })));
702
- export const Schema_JobAcceptedResponse = z.lazy(() => (z.object({
703
- "jobId": z.string().optional(),
704
- "statusUrl": z.string().optional()
705
- })));
706
- export const Schema_JobStatusResponse = z.lazy(() => (z.object({
707
- "createdTime": z.string().optional(),
708
- "errorDetails": z.array(Schema_ErrorDetails).optional(),
709
- "jobId": z.string().optional(),
710
- "modifiedTime": z.string().optional(),
711
- "result": Schema_Result.optional(),
712
- "status": z.string().optional()
713
- })));
714
- export const Schema_Result = z.lazy(() => (z.object({
715
- "additionalFields": z.record(z.string(), z.object({})).optional(),
716
- "outputs": z.object({}).optional()
717
- })));
4
+ import { fileRefSchema } from "../../schemas.js";
5
+ /**
6
+ * OpenAPI component `ActionResource`, request (closed).
7
+ * @category Generated
8
+ */
9
+ export const In_ActionResource = z.lazy(() => z.strictObject({
10
+ actionName: z.string().optional().describe("The name of a specific action to execute within the action set. If omitted, all actions in the file are executed."),
11
+ source: In_OneOf_CreativeCloudFileIdResourceInput_and_4_more_51eef6
12
+ })).describe("Single Photoshop action resource (.atn or inline actionJSON). When present, the 'source' field is required.");
13
+ /**
14
+ * OpenAPI component `ActionsOptions`, request (closed).
15
+ * @category Generated
16
+ */
17
+ export const In_ActionsOptions = z.lazy(() => z.strictObject({
18
+ actions: z.array(In_ActionResource).min(0).max(10).optional().describe("List of Photoshop actions. Can be .atn files or inline actionJSON. Optional."),
19
+ additionalContents: z.array(In_AdditionalContentResource).min(0).max(25).optional().describe("List of additional resources. Optional. These images, js, brushes can be referenced in inline actionJSON or in UXPusing placeholders `__ADDITIONAL_CONTENTS_PATH_0__`, `__ADDITIONAL_CONTENTS_PATH_1__`, etc. based on their array index."),
20
+ brushes: z.array(In_BrushResource).min(0).max(10).optional().describe("List of brush resources. External references only. Optional."),
21
+ fontOptions: In_FontOptions.optional(),
22
+ patterns: z.array(In_PatternResource).min(0).max(10).optional().describe("List of pattern resources. External references only. Optional."),
23
+ uxp: In_UxpResource.optional()
24
+ })).describe("Options configuration for the actions execution. At least one of actions or uxp is required.");
25
+ /**
26
+ * OpenAPI component `ActionsRequest`, request (closed).
27
+ * @category Generated
28
+ */
29
+ export const In_ActionsRequest = z.lazy(() => z.strictObject({
30
+ image: In_ImageSource,
31
+ options: In_ActionsOptions,
32
+ outputs: z.array(In_OneOf_JpegOutput_and_5_more_21ce4a).min(1).max(25).describe("List of output asset details. Required. Maximum of 25 outputs allowed.")
33
+ }));
34
+ /**
35
+ * OpenAPI component `AdditionalContentResource`, request (closed).
36
+ * @category Generated
37
+ */
38
+ export const In_AdditionalContentResource = z.lazy(() => z.strictObject({
39
+ source: In_PortableFileResourceInput
40
+ })).describe("Single additional resource (images, js, brushes, etc.). When present, the 'source' field is required.");
41
+ /**
42
+ * OpenAPI component `AdditionalFont`, request (closed).
43
+ * @category Generated
44
+ */
45
+ export const In_AdditionalFont = z.lazy(() => z.strictObject({
46
+ source: In_PortableFileResourceInput.optional()
47
+ })).describe("Array of custom fonts needed in this document. Optional.");
48
+ /**
49
+ * OpenAPI component `Anchor`, request (closed).
50
+ * @category Generated
51
+ */
52
+ export const In_Anchor = z.lazy(() => z.strictObject({
53
+ horizontal: z.number().describe("Horizontal anchor position. Required."),
54
+ vertical: z.number().describe("Vertical anchor position. Required.")
55
+ })).describe("Anchor point coordinates for transformations and positioning.");
56
+ /**
57
+ * OpenAPI component `Apply`, request (closed).
58
+ * @category Generated
59
+ */
60
+ export const In_Apply = z.lazy(() => z.strictObject({
61
+ from: z.number().int().min(0).describe("From value. Required."),
62
+ to: z.number().int().min(0).describe("To value. Required.")
63
+ })).describe("Inclusive range (from/to) for character or paragraph styling. When present, both 'from' and 'to' are required.");
64
+ /**
65
+ * OpenAPI component `ArtboardImageInput`, request (closed).
66
+ * @category Generated
67
+ */
68
+ export const In_ArtboardImageInput = z.lazy(() => z.strictObject({
69
+ source: In_FileResourceInput
70
+ })).describe("List of input images for the artboard. Each image must have a source with an external file reference (URL, Creative Cloud file ID, or Creative Cloud path). Required.");
71
+ /**
72
+ * OpenAPI component `AutoCropAspectRatio`, request (closed).
73
+ * @category Generated
74
+ */
75
+ export const In_AutoCropAspectRatio = z.lazy(() => z.enum(["1:1", "16:9", "9:16", "4:3", "3:4", "4:5", "5:4", "3:2", "2:3", "21:9"])).describe("Desired aspect ratio for generated crops.");
76
+ /**
77
+ * OpenAPI component `AutoCropImageMediaType`, request (closed).
78
+ * @category Generated
79
+ */
80
+ export const In_AutoCropImageMediaType = z.lazy(() => z.enum(["image/jpeg", "image/png", "image/webp"])).describe("The media type of the input image. Supported values are image/jpeg, image/png, and image/webp.");
81
+ /**
82
+ * OpenAPI component `AutoCropInputImage`, request (closed).
83
+ * @category Generated
84
+ */
85
+ export const In_AutoCropInputImage = z.lazy(() => z.strictObject({
86
+ mediaType: In_AutoCropImageMediaType.optional(),
87
+ source: In_AutoCropUrlResource
88
+ })).describe("The input image for the auto-crop operation.");
89
+ /**
90
+ * OpenAPI component `AutoCropMode`, request (closed).
91
+ * @category Generated
92
+ */
93
+ export const In_AutoCropMode = z.lazy(() => z.enum(["smartCrop", "subjectCrop", "fullSceneDetection", "objectDetection"])).describe("Mode for the auto crop operation. 'smartCrop' and 'subjectCrop' generate crops using aspectRatio with optional zoom. 'fullSceneDetection' and 'objectDetection' detect subjects or objects in the scene.");
94
+ /**
95
+ * OpenAPI component `AutoCropOutputType`, request (closed).
96
+ * @category Generated
97
+ */
98
+ export const In_AutoCropOutputType = z.lazy(() => z.enum(["images", "boundingBoxes"])).describe("Output type for the auto crop operation. 'images' returns cropped images with presigned URLs (default). 'boundingBoxes' returns only bounding box coordinates.");
99
+ /**
100
+ * OpenAPI component `AutoCropRequest`, request (closed).
101
+ * @category Generated
102
+ */
103
+ export const In_AutoCropRequest = z.lazy(() => z.strictObject({
104
+ aspectRatio: z.union([In_AutoCropAspectRatio, z.array(In_AutoCropAspectRatio)]).optional().describe("Desired aspect ratio(s) for generated crops. Accepts either a single enum string or an array of up to 20 strings. Allowed only for 'smartCrop' and 'subjectCrop'. When omitted, the service defaults to 1:1. An empty array is treated as absent."),
105
+ focus: z.array(z.string()).optional().describe("Focus labels, ordered by preference, used to prioritize objects during cropping or as detection targets. Required for 'subjectCrop' and 'objectDetection'; must be empty for 'smartCrop' and 'fullSceneDetection'."),
106
+ image: In_AutoCropInputImage,
107
+ mode: In_AutoCropMode,
108
+ outputType: In_AutoCropOutputType.optional(),
109
+ zoom: z.union([z.number(), z.array(z.number())]).optional().describe("Optional zoom level(s) paired with aspectRatio. Accepts either a number or an array of up to 20 numbers in (0, 1]. Must not be sent without aspectRatio. When aspectRatio is an array, zoom may be omitted or must be a matching non-empty array.")
110
+ }));
111
+ /**
112
+ * OpenAPI component `AutoCropUrlResource`, request (closed).
113
+ * @category Generated
114
+ */
115
+ export const In_AutoCropUrlResource = z.lazy(() => z.strictObject({
116
+ url: z.string().describe("The URL of the resource. Only allow-listed domains are accepted as input URLs (e.g. amazonaws.com, windows.net, dropboxusercontent.com, assets.frame.io, storage.googleapis.com, adobe.io, azureedge.net, smartcreatives.stg.walmart.com).")
117
+ })).describe("The source of the input image.");
118
+ /**
119
+ * OpenAPI component `AutoStraighten`, request (closed).
120
+ * @category Generated
121
+ */
122
+ export const In_AutoStraighten = z.lazy(() => z.strictObject({
123
+ constrainCrop: z.boolean().optional().describe("Whether to constrain crop the straightened image to remove blank edges"),
124
+ enabled: z.boolean().describe("Whether auto straighten is enabled. Defaults to false when omitted. Explicit null is invalid."),
125
+ uprightMode: z.enum(["auto", "full", "level", "vertical"]).optional().describe("Upright mode options for auto straighten")
126
+ })).describe("Auto straighten configuration with options");
127
+ /**
128
+ * OpenAPI component `BlendOptions`, request (closed).
129
+ * @category Generated
130
+ */
131
+ export const In_BlendOptions = z.lazy(() => z.strictObject({
132
+ blendMode: z.enum(["normal", "dissolve", "darken", "multiply", "color_burn", "linear_burn", "darker_color", "lighten", "screen", "color_dodge", "linear_dodge", "lighter_color", "overlay", "soft_light", "hard_light", "vivid_light", "pin_light", "hard_mix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity"]).optional().describe("Blend mode of a layer"),
133
+ opacity: z.number().int().min(0).max(100).optional().describe("Opacity percentage for the blend effect. Range: 0-100. Defaults to 100 when adding new layers. Optional for edits.")
134
+ })).describe("Blend options for layer effects, including opacity settings.");
135
+ /**
136
+ * OpenAPI component `Bounds`, request (closed).
137
+ * @category Generated
138
+ */
139
+ export const In_Bounds = z.lazy(() => z.strictObject({
140
+ bottom: z.number().int().optional().describe("Bottom coordinate in pixels. Optional."),
141
+ left: z.number().int().optional().describe("Left coordinate in pixels. Optional."),
142
+ right: z.number().int().optional().describe("Right coordinate in pixels. Optional."),
143
+ top: z.number().int().optional().describe("Top coordinate in pixels. Optional.")
144
+ })).describe("Area boundaries");
145
+ /**
146
+ * OpenAPI component `BrightnessContrast`, request (closed).
147
+ * @category Generated
148
+ */
149
+ export const In_BrightnessContrast = z.lazy(() => z.strictObject({
150
+ brightness: z.number().int().min(-150).max(150).optional().describe("The adjustment layer's brightness. Range: -150 to 150. Defaults to 0 when adding new layers. Optional for edits"),
151
+ contrast: z.number().int().min(-150).max(150).optional().describe("The adjustment layer's contrast. Range: -150 to 150. Defaults to 0 when adding new layers. Optional for edits")
152
+ })).describe("Brightness and contrast adjustment settings");
153
+ /**
154
+ * OpenAPI component `BrushResource`, request (closed).
155
+ * @category Generated
156
+ */
157
+ export const In_BrushResource = z.lazy(() => z.strictObject({
158
+ source: In_PortableFileResourceInput
159
+ })).describe("Single brush resource (.abr, etc.). When present, the 'source' field is required.");
160
+ /**
161
+ * OpenAPI component `CharacterStyle`, request (closed).
162
+ * @category Generated
163
+ */
164
+ export const In_CharacterStyle = z.lazy(() => z.strictObject({
165
+ autoLeading: z.boolean().optional().describe("When true, line height is calculated automatically based on the font size. When false, custom lineHeight is applied. Optional."),
166
+ capsOption: z.enum(["normal_caps", "small_caps", "all_caps", "all_small_caps"]).optional().describe("Text capitalization option"),
167
+ font: In_Font.optional(),
168
+ fontAlpha: z.number().min(0).max(1).optional().describe("Font alpha/transparency value. Optional. Default is 1.0."),
169
+ fontColor: In_OneOf_FontCmyk_or_FontGray_or_FontLab_or_FontRgb.optional(),
170
+ fontSize: z.number().optional().describe("Font size in pixels. Optional. Default is 30."),
171
+ letterSpacing: z.number().optional().describe("Letter spacing in pixels. Optional. Default is 0."),
172
+ lineHeight: z.number().optional().describe("Line height (leading) in pixels. Optional. This value represents the unscaled leading stored on the character style. If the text layer carries a non-identity transform, for example because the bounding box was resized in Photoshop, the rendered leading becomes lineHeight x the layer's vertical sc..."),
173
+ syntheticBold: z.boolean().optional().describe("Whether to apply synthetic bold. Optional. Default is false."),
174
+ syntheticItalic: z.boolean().optional().describe("Whether to apply synthetic italic. Optional. Default is false."),
175
+ underline: z.boolean().optional().describe("Whether to apply underline. Optional. Default is false.")
176
+ })).describe("Character-level styling properties for text.");
177
+ /**
178
+ * OpenAPI component `CharacterStyleRange`, request (closed).
179
+ * @category Generated
180
+ */
181
+ export const In_CharacterStyleRange = z.lazy(() => z.strictObject({
182
+ apply: In_Apply.optional(),
183
+ characterStyle: In_CharacterStyle.optional()
184
+ })).describe("Character style range defining styling for specific text ranges.");
185
+ /**
186
+ * OpenAPI component `ColorAdjustments`, request (closed).
187
+ * @category Generated
188
+ */
189
+ export const In_ColorAdjustments = z.lazy(() => z.strictObject({
190
+ saturation: z.number().int().min(-100).max(100).optional().describe("Saturation adjustment. Range: -100 to +100"),
191
+ vibrance: z.number().int().min(-100).max(100).optional().describe("Vibrance adjustment. Range: -100 to +100"),
192
+ whiteBalance: z.enum(["As Shot", "Auto", "Cloudy", "Custom", "Daylight", "Flash", "Fluorescent", "Shade", "Tungsten"]).optional().describe("White balance")
193
+ })).describe("Color adjustments for image editing.");
194
+ /**
195
+ * OpenAPI component `ColorBalance`, request (closed).
196
+ * @category Generated
197
+ */
198
+ export const In_ColorBalance = z.lazy(() => z.strictObject({
199
+ highlightLevels: z.array(z.number().int().min(-100).max(100)).min(3).max(3).optional().describe("Array of 3 integers for highlight levels. Each value must be between -100 and 100. Defaults to [0, 0, 0] when adding new layers. Optional for edits"),
200
+ midtoneLevels: z.array(z.number().int().min(-100).max(100)).min(3).max(3).optional().describe("Array of 3 integers for midtone levels. Each value must be between -100 and 100. Defaults to [0, 0, 0] when adding new layers. Optional for edits"),
201
+ preserveLuminosity: z.boolean().optional().describe("Whether to preserve luminosity. Defaults to true when adding new layers. Optional for edits"),
202
+ shadowLevels: z.array(z.number().int().min(-100).max(100)).min(3).max(3).optional().describe("Array of 3 integers for shadow levels. Each value must be between -100 and 100. Defaults to [0, 0, 0] when adding new layers. Optional for edits")
203
+ })).describe("Color balance adjustment settings");
204
+ /**
205
+ * OpenAPI component `CreateArtboardRequest`, request (closed).
206
+ * @category Generated
207
+ */
208
+ export const In_CreateArtboardRequest = z.lazy(() => z.strictObject({
209
+ artboardSpacing: z.number().int().optional().describe("Horizontal spacing in pixels between each artboard. Defaults to 50. Optional."),
210
+ images: z.array(In_ArtboardImageInput).min(1).max(25).describe("List of input images for the artboard. Each image must have a source with an external file reference (URL, Creative Cloud file ID, or Creative Cloud path). Required."),
211
+ outputs: z.array(In_OneOf_JpegOutput_and_5_more_21ce4a).min(1).max(25).describe("List of output asset details. Each output specifies destination and output options. Maximum of 25 outputs allowed.")
212
+ }));
213
+ /**
214
+ * OpenAPI component `CreateCompositeRequest`, request (closed).
215
+ * @category Generated
216
+ */
217
+ export const In_CreateCompositeRequest = z.lazy(() => z.strictObject({
218
+ edits: In_Edits.optional(),
219
+ fontOptions: In_FontOptions.optional(),
220
+ image: In_OneOf_ImageParameters_or_ImageSource,
221
+ outputs: z.array(In_OneOf_JpegOutput_and_5_more_21ce4a).min(1).max(25).describe("List of output asset details. Required. Maximum of 25 outputs allowed.")
222
+ }));
223
+ /**
224
+ * OpenAPI component `Crop`, request (closed).
225
+ * @category Generated
226
+ */
227
+ export const In_Crop = z.lazy(() => z.strictObject({
228
+ bounds: In_Bounds,
229
+ hide: z.boolean().optional().describe("When true, hides pixels outside the crop bounds (non-destructive). When false, permanently deletes pixels outside the crop bounds (destructive). Defaults to false.")
230
+ })).describe("Options for cropping a document, specifying the bounds to crop to.");
231
+ /**
232
+ * OpenAPI component `Dimension`, request (closed).
233
+ * @category Generated
234
+ */
235
+ export const In_Dimension = z.lazy(() => z.strictObject({
236
+ height: z.number().int().min(0).max(32000).optional().describe("Height after transformation. Optional."),
237
+ width: z.number().int().min(0).max(32000).optional().describe("Width after transformation. Optional.")
238
+ })).describe("Offset coordinates for positioning elements.");
239
+ /**
240
+ * OpenAPI component `DimensionMeasurement`, request (closed).
241
+ * @category Generated
242
+ */
243
+ export const In_DimensionMeasurement = z.lazy(() => z.strictObject({
244
+ unit: z.enum(["pixels_unit", "percent_unit", "distance_unit"]).describe("The unit of measurement for the dimension. 'pixels_unit' for absolute pixel measurements, 'percent_unit' for percentage-based scaling, 'distance_unit' for physical measurements using formula: Physical Size (points) = Pixels × (72 ÷ DPI). Defaults to pixels_unit when omitted."),
245
+ value: z.number().int().min(0).optional().describe("The value of the dimension. Must be greater than or equal to 0.")
246
+ })).describe("Represents a dimension measurement for width or height with appropriate units.");
247
+ /**
248
+ * OpenAPI component `Document`, request (closed).
249
+ * @category Generated
250
+ */
251
+ export const In_Document = z.lazy(() => z.strictObject({
252
+ crop: In_Crop.optional(),
253
+ resize: In_Resize.optional(),
254
+ trim: In_Trim.optional()
255
+ })).describe("Represents the editable document structure, including resize, crop and trim options. Each field corresponds to a specific type of document edit operation.");
256
+ /**
257
+ * OpenAPI component `EditImageInput`, request (closed).
258
+ * @category Generated
259
+ */
260
+ export const In_EditImageInput = z.lazy(() => z.strictObject({
261
+ source: In_FileResourceInput
262
+ })).describe("The image input for the edit operation. Supported input source mime types: image/jpeg, image/png, image/x-adobe-dng, image/webp, image/tiff, image/vnd.adobe.photoshop, image/x-sony-arw, and other supported raw/camera formats. Required.");
263
+ /**
264
+ * OpenAPI component `EditRequest`, request (closed).
265
+ * @category Generated
266
+ */
267
+ export const In_EditRequest = z.lazy(() => z.strictObject({
268
+ edits: In_LightroomEdits.optional(),
269
+ image: In_EditImageInput,
270
+ outputs: z.array(In_OneOf_LrDngOutput_or_LrJpegOutput_or_LrPngOutput_or_XmpOutput).min(1).max(25).describe("List of output asset details. Required. Maximum of 25 outputs allowed.")
271
+ }));
272
+ /**
273
+ * OpenAPI component `Edits`, request (closed).
274
+ * @category Generated
275
+ */
276
+ export const In_Edits = z.lazy(() => z.strictObject({
277
+ document: In_Document.optional(),
278
+ layers: z.array(In_OneOf_AddAdjustmentLayer_and_15_more_6ae795).optional().describe("Array of layer edits to be applied. Optional.")
279
+ })).describe("Edits to be applied to the input asset. Optional.");
280
+ /**
281
+ * OpenAPI component `EffectsAdjustments`, request (closed).
282
+ * @category Generated
283
+ */
284
+ export const In_EffectsAdjustments = z.lazy(() => z.strictObject({
285
+ clarity: z.number().int().min(-100).max(100).optional().describe("Clarity adjustment. Range: -100 to +100"),
286
+ dehaze: z.number().int().min(-100).max(100).optional().describe("Dehaze adjustment. Range: -100 to +100"),
287
+ texture: z.number().int().min(-100).max(100).optional().describe("Texture adjustment. Range: -100 to +100"),
288
+ vignette: z.number().int().min(-100).max(100).optional().describe("Vignette amount. Range: -100 to +100")
289
+ })).describe("Effects adjustments for image editing.");
290
+ /**
291
+ * OpenAPI component `Exposure`, request (closed).
292
+ * @category Generated
293
+ */
294
+ export const In_Exposure = z.lazy(() => z.strictObject({
295
+ exposureValue: z.number().min(-20).max(20).optional().describe("The layer's exposure value. Range: -20 to 20. Defaults to 0.0 when adding new layers. Optional for edits"),
296
+ gammaCorrection: z.number().min(0.01).max(9.99).optional().describe("The layer's gamma correction value. Range: 0.01 to 9.99. Defaults to 1.0 when adding new layers. Optional for edits"),
297
+ offset: z.number().min(-0.5).max(0.5).optional().describe("The layer's offset value. Range: -0.5 to 0.5. Defaults to 0.0 when adding new layers. Optional for edits")
298
+ })).describe("Exposure adjustment settings");
299
+ /**
300
+ * OpenAPI component `FileResourceInput`, request (closed).
301
+ * @category Generated
302
+ */
303
+ export const In_FileResourceInput = z.lazy(() => In_OneOf_CreativeCloudFileIdResourceInput_and_3_more_c290e2).describe("The resource input for the image. Required. Must be a valid FileResourceInput subtype: UrlResourceInput, CreativeCloudResourceInput, CreativeCloudFileIdResourceInput, or LightroomResourceInput.");
304
+ /**
305
+ * OpenAPI component `Fill`, request (closed).
306
+ * @category Generated
307
+ */
308
+ export const In_Fill = z.lazy(() => z.strictObject({
309
+ solidColor: In_SolidColor.optional()
310
+ })).describe("Fill settings for layers.");
311
+ /**
312
+ * OpenAPI component `Font`, request (closed).
313
+ * @category Generated
314
+ */
315
+ export const In_Font = z.lazy(() => z.strictObject({
316
+ postScriptName: z.string().optional().describe("PostScript name of the font for precise identification. Optional.")
317
+ })).describe("Font definition with PostScript name.");
318
+ /**
319
+ * OpenAPI component `FontOptions`, request (closed).
320
+ * @category Generated
321
+ */
322
+ export const In_FontOptions = z.lazy(() => z.strictObject({
323
+ additionalFonts: z.array(In_AdditionalFont).optional().describe("Array of custom fonts needed in this document. Optional."),
324
+ defaultFontPostScriptName: z.string().optional().describe("The full postscript name of the font to be used as the global default for the document. Optional."),
325
+ missingFontStrategy: z.enum(["fail", "use_default"]).optional().describe("Action to take if there are missing fonts. Optional.")
326
+ })).describe("Font options configuration. Optional.");
327
+ /**
328
+ * OpenAPI component `GenerateManifestRequest`, request (closed).
329
+ * @category Generated
330
+ */
331
+ export const In_GenerateManifestRequest = z.lazy(() => z.strictObject({
332
+ exportOptions: In_OneOf_JpegExportOptions_or_PngExportOptions.optional(),
333
+ extractSmartObjectData: z.boolean().optional().describe("Optional. Extract embedded smart objects and include presigned URLs in the manifest. Only applies to embedded (non-linked) smart objects. Default is false."),
334
+ image: In_Image,
335
+ includeLayerThumbnails: z.boolean().optional().describe("Optional. Indicates whether to generate renditions. Default is false."),
336
+ includeXmp: z.boolean().optional().describe("Optional. Include the XMP metadata in the response."),
337
+ maximumThumbnailDepth: z.number().int().min(0).optional().describe("Optional. Depth for layer renditions. If provided, must be greater than or equal to 0. 0 signifies no limit."),
338
+ outputs: z.array(z.strictObject({
339
+ destination: In_OneOf_CreativeCloudDestination_and_3_more_fbff41,
340
+ mediaType: z.enum(["application/json"]).describe("Supported media types for manifest output")
341
+ })).min(1).max(25).describe("List of output destinations for the manifest. Required. Maximum of 25 outputs allowed."),
342
+ trimToTransparency: z.boolean().optional().describe("Optional. Trim the layer to remove the transparent pixels.")
343
+ }));
344
+ /**
345
+ * OpenAPI component `HueSaturation`, request (closed).
346
+ * @category Generated
347
+ */
348
+ export const In_HueSaturation = z.lazy(() => z.strictObject({
349
+ colorize: z.boolean().optional().describe("Whether to colorize the layer. When true, LocalRange cannot be used in any adjustment. Defaults to false when adding new layers. Optional for edits"),
350
+ hueSaturationAdjustments: z.array(In_HueSaturationAdjustment).min(1).max(2147483647).optional()
351
+ })).describe("Hue/Saturation adjustment settings. When colorize is true, LocalRange cannot be used. When colorize is false, LocalRange can only be used for non-master channels (reds, yellows, greens, cyans, blues, magentas).");
352
+ /**
353
+ * OpenAPI component `HueSaturationAdjustment`, request (closed).
354
+ * @category Generated
355
+ */
356
+ export const In_HueSaturationAdjustment = z.lazy(() => z.strictObject({
357
+ hue: z.number().int().optional().describe("The hue adjustment value. When colorize=false: -180 to 180. When colorize=true: 0 to 360. Defaults to 0 when adding new layers. Optional for edits"),
358
+ lightness: z.number().int().optional().describe("The lightness adjustment value. When colorize=false: -100 to 100. When colorize=true: 0 to 100. Defaults to 0 when adding new layers. Optional for edits"),
359
+ localRange: In_LocalRange.optional(),
360
+ saturation: z.number().int().optional().describe("The saturation adjustment value. When colorize=false: -100 to 100. When colorize=true: 0 to 100. Defaults to 0 when adding new layers. Optional for edits")
361
+ })).describe("Array of hue/saturation adjustments. For master channel, LocalRange is not applicable.");
362
+ /**
363
+ * OpenAPI component `IccProfile`, request (closed).
364
+ * @category Generated
365
+ */
366
+ export const In_IccProfile = z.lazy(() => z.strictObject({
367
+ type: z.enum(["standard", "custom"]).describe("Type of ICC profile. 'standard' for predefined profiles, 'custom' for user-provided profiles. Defaults to standard when omitted; explicit null is invalid.")
368
+ })).describe("ICC profile configuration for color management");
369
+ /**
370
+ * OpenAPI component `Image`, request (closed).
371
+ * @category Generated
372
+ */
373
+ export const In_Image = z.lazy(() => z.strictObject({
374
+ source: In_FileResourceInput
375
+ })).describe("The image input, which contains a source field of type ResourceInput. Required.");
376
+ /**
377
+ * OpenAPI component `ImageSource`, request (closed).
378
+ * @category Generated
379
+ */
380
+ export const In_ImageSource = z.lazy(() => z.strictObject({
381
+ source: In_FileResourceInput
382
+ })).describe("The image input for the actions operation. Required.");
383
+ /**
384
+ * OpenAPI component `LightAdjustments`, request (closed).
385
+ * @category Generated
386
+ */
387
+ export const In_LightAdjustments = z.lazy(() => z.strictObject({
388
+ blacks: z.number().int().min(-100).max(100).optional().describe("Blacks adjustment. Range: -100 to +100"),
389
+ contrast: z.number().int().min(-100).max(100).optional().describe("Contrast adjustment. Range: -100 to +100"),
390
+ exposure: z.number().min(-5).max(5).optional().describe("Exposure adjustment. Range: -5.0 to +5.0"),
391
+ highlights: z.number().int().min(-100).max(100).optional().describe("Highlights adjustment. Range: -100 to +100"),
392
+ shadows: z.number().int().min(-100).max(100).optional().describe("Shadows adjustment. Range: -100 to +100"),
393
+ whites: z.number().int().min(-100).max(100).optional().describe("Whites adjustment. Range: -100 to +100")
394
+ })).describe("Light adjustments for image editing.");
395
+ /**
396
+ * OpenAPI component `LightroomEdits`, request (closed).
397
+ * @category Generated
398
+ */
399
+ export const In_LightroomEdits = z.lazy(() => z.strictObject({
400
+ autoStraighten: In_AutoStraighten.optional(),
401
+ autoTone: z.boolean().optional().describe("Auto tone adjustment. Optional."),
402
+ color: In_ColorAdjustments.optional(),
403
+ effects: In_EffectsAdjustments.optional(),
404
+ light: In_LightAdjustments.optional(),
405
+ noiseReduction: In_NoiseReduction.optional(),
406
+ presets: z.array(In_FileResourceInput).min(0).max(10).optional().describe("List of preset inputs to apply. Optional."),
407
+ sharpen: In_SharpenAdjustments.optional(),
408
+ sharpness: z.number().int().min(0).max(150).optional().describe("Sharpness value. Optional. Range: 0 to 150"),
409
+ xmp: In_XmpInput.optional()
410
+ })).describe("Lightroom edit adjustments including XMP, presets, and all adjustment parameters. Optional.");
411
+ /**
412
+ * OpenAPI component `LocalRange`, request (closed).
413
+ * @category Generated
414
+ */
415
+ export const In_LocalRange = z.lazy(() => z.strictObject({
416
+ beginRamp: z.number().int().min(0).max(360).optional().describe("The beginning of the ramp (feather start). Range: 0-360 degrees."),
417
+ beginSustain: z.number().int().min(0).max(360).optional().describe("The beginning of the sustain (full effect start). Range: 0-360 degrees."),
418
+ channelId: z.enum(["REDS", "YELLOWS", "GREENS", "CYANS", "BLUES", "MAGENTAS"]).describe("Channel for local range color adjustments. Allowed values: REDS, YELLOWS, GREENS, CYANS, BLUES, MAGENTAS"),
419
+ endRamp: z.number().int().min(0).max(360).optional().describe("The end of the ramp (feather end). Range: 0-360 degrees."),
420
+ endSustain: z.number().int().min(0).max(360).optional().describe("The end of the sustain (full effect end). Range: 0-360 degrees.")
421
+ })).describe("Local range settings for targeted color adjustments. Defines the hue range boundaries for the adjustment.");
422
+ /**
423
+ * OpenAPI component `Mask`, request (closed).
424
+ * @category Generated
425
+ */
426
+ export const In_Mask = z.lazy(() => z.strictObject({
427
+ digest: z.string().describe("Fingerprint/digest of the mask for dictionary lookup. Required."),
428
+ source: In_FileResourceInput
429
+ })).describe("Mask input for XMP operations. Contains source file reference and digest for dictionary lookup.");
430
+ /**
431
+ * OpenAPI component `NoiseReduction`, request (closed).
432
+ * @category Generated
433
+ */
434
+ export const In_NoiseReduction = z.lazy(() => z.strictObject({
435
+ color: z.number().int().min(0).max(100).optional().describe("Color noise reduction. Range: 0 to 100"),
436
+ luminance: z.number().int().min(0).max(100).optional().describe("Luminance noise reduction. Range: 0 to 100")
437
+ })).describe("Noise reduction settings for image editing.");
438
+ /**
439
+ * OpenAPI component `Offset`, request (closed).
440
+ * @category Generated
441
+ */
442
+ export const In_Offset = z.lazy(() => z.strictObject({
443
+ horizontal: z.number().int().optional().describe("Horizontal offset in pixels. Defaults to 0 when adding new layers. Optional for edits."),
444
+ vertical: z.number().int().optional().describe("Vertical offset in pixels. Defaults to 0 when adding new layers. Optional for edits.")
445
+ })).describe("Offset coordinates for positioning elements.");
446
+ /**
447
+ * Union of OpenAPI components `AddAdjustmentLayer`, `AddBackgroundLayer`, `AddGroupLayer`, `AddLayer`, `AddSmartObjectLayer`, `AddSolidColorLayer`, `AddTextLayer`, `DeleteLayer`, `EditAdjustmentLayer`, `EditBackgroundLayer`, `EditGroupLayer`, `EditLayer`, `EditSmartObjectLayer`, `EditSolidColorLayer`, `EditTextLayer`, `MoveLayer`, request (closed).
448
+ * @category Generated
449
+ */
450
+ export const In_OneOf_AddAdjustmentLayer_and_15_more_6ae795 = z.lazy(() => z.strictObject({
451
+ id: z.number().int().optional().describe("Layer ID"),
452
+ name: z.string().optional().describe("Layer name"),
453
+ operation: In_OneOf_AddOperation_or_DeleteOperation_or_EditOperation_or_MoveOperation,
454
+ adjustments: In_OneOf_BrightnessContrastAdjustments_and_3_more_8d6668.optional(),
455
+ blendOptions: In_BlendOptions.optional(),
456
+ isClipped: z.boolean().optional(),
457
+ isVisible: z.boolean().optional().describe("Whether the layer is visible. Defaults to true when adding layers. Optional for edits."),
458
+ pixelMask: In_OneOf_EditPixelMask_or_PixelMask.optional(),
459
+ protection: z.array(z.enum(["none", "all", "transparency", "composite", "position", "artboard_autonest"])).optional().describe("Protection flags for the layer (e.g. none, all, transparency, composite, position, artboard_autonest). Defaults to 'none' when adding layers. Optional for edits; omit, null, or empty array [] mean 'don't change'. When 'none' or 'all' is used, the array must contain only that element."),
460
+ transform: In_Transform.optional(),
461
+ transformMode: z.enum(["fit", "fill", "custom", "none"]).optional().describe("Transform mode applied to the layer. Defaults to 'none' when adding layers. Optional for edits. Modes: 'none' — applies no scaling. 'fit' — scales the layer uniformly to fit within the canvas bounds while preserving aspect ratio."),
462
+ type: z.enum(["layer", "solid_color_layer", "text_layer", "smart_object_layer", "adjustment_layer", "group_layer", "background_layer"]).optional().describe("Layer type enum"),
463
+ image: fileRefSchema({ access: "url" }).optional(),
464
+ children: z.array(z.looseObject({}).describe("Nested AddAdjustmentLayer, AddBackgroundLayer, AddGroupLayer, AddLayer, AddSmartObjectLayer, AddSolidColorLayer, AddTextLayer, DeleteLayer, EditAdjustmentLayer, EditBackgroundLayer, EditGroupLayer, EditLayer, EditSmartObjectLayer, EditSolidColorLayer, EditTextLayer, MoveLayer (recursive; checked by the API, not here).")).optional().describe("Child layers in this group. Optional."),
465
+ smartObject: In_OneOf_EditSmartObject_or_SmartObject.optional(),
466
+ fill: In_Fill.optional(),
467
+ text: In_Text.optional(),
468
+ convertToLayer: z.boolean().optional().describe("When true, promotes the background layer to a regular layer. Mutually exclusive with image."),
469
+ convertedLayerName: z.string().optional().describe("Name to set on the layer after conversion. Only applicable when convertToLayer is true. Optional.")
470
+ }));
471
+ /**
472
+ * Union of OpenAPI components `AddOperation`, `DeleteOperation`, `EditOperation`, `MoveOperation`, request (closed).
473
+ * @category Generated
474
+ */
475
+ export const In_OneOf_AddOperation_or_DeleteOperation_or_EditOperation_or_MoveOperation = z.lazy(() => z.strictObject({
476
+ type: z.enum(["add", "edit", "delete", "move"]).describe("Operation type enum"),
477
+ placement: In_Placement.optional(),
478
+ shouldIncludeChildren: z.boolean().optional()
479
+ }));
480
+ /**
481
+ * Union of OpenAPI components `AreaFrame`, `PointFrame`, request (closed).
482
+ * @category Generated
483
+ */
484
+ export const In_OneOf_AreaFrame_or_PointFrame = z.lazy(() => z.strictObject({
485
+ type: z.enum(["point", "area"]).describe("Text frame type"),
486
+ bounds: In_Bounds.optional(),
487
+ origin: In_Origin.optional()
488
+ }));
489
+ /**
490
+ * Union of OpenAPI components `BrightnessContrastAdjustments`, `ColorBalanceAdjustments`, `ExposureAdjustments`, `HueSaturationAdjustments`, request (closed).
491
+ * @category Generated
492
+ */
493
+ export const In_OneOf_BrightnessContrastAdjustments_and_3_more_8d6668 = z.lazy(() => z.strictObject({
494
+ type: z.enum(["hue_saturation", "brightness_contrast", "exposure", "color_balance"]).describe("Adjustment type. Allowed values: hue_saturation, brightness_contrast, exposure, color_balance"),
495
+ brightnessContrast: In_BrightnessContrast.optional(),
496
+ colorBalance: In_ColorBalance.optional(),
497
+ exposure: In_Exposure.optional(),
498
+ hueSaturation: In_HueSaturation.optional()
499
+ }));
500
+ /**
501
+ * Union of OpenAPI components `CreativeCloudDestination`, `EmbeddedDestination`, `HostedDestination`, `UrlDestination`, request (closed).
502
+ * @category Generated
503
+ */
504
+ export const In_OneOf_CreativeCloudDestination_and_3_more_fbff41 = z.lazy(() => z.strictObject({
505
+ creativeCloudPath: z.string().optional().describe("Path to Creative Cloud storage. Required."),
506
+ creativeCloudProjectId: z.string().optional().describe("The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-..."),
507
+ embedded: z.enum(["string", "base64", "json"]).optional().describe("Embedded format (string, base64, or json). Defaults to string when omitted."),
508
+ validityPeriod: z.number().int().min(60).max(86400).optional().describe("Validity period in seconds. Minimum: 60 seconds (1 minute). Maximum: 86400 seconds (1 day). Defaults to 3600 seconds (1 hour) when omitted."),
509
+ storageType: z.enum(["azure", "dropbox"]).optional().describe("Storage type for the destination. Optional."),
510
+ url: z.string().optional().describe("Pre-signed URL for external storage. Must be HTTPS. Required.")
511
+ }));
512
+ /**
513
+ * Union of OpenAPI components `CreativeCloudFileIdResourceInput`, `CreativeCloudResourceInput`, `UrlResourceInput`, request (closed).
514
+ * @category Generated
515
+ */
516
+ export const In_OneOf_CreativeCloudFileIdResourceInput_and_2_more_d026de = z.lazy(() => z.strictObject({
517
+ url: z.string().optional().describe("The pre-signed URL of the resource. Required."),
518
+ creativeCloudPath: z.string().optional().describe("The path to the asset in Creative Cloud. Required."),
519
+ creativeCloudProjectId: z.string().optional().describe("The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-..."),
520
+ creativeCloudFileId: z.string().optional().describe("The file ID of the asset in Creative Cloud. Required. Must start with 'urn:aaid' (case-insensitive).")
521
+ }));
522
+ /**
523
+ * Union of OpenAPI components `CreativeCloudFileIdResourceInput`, `CreativeCloudResourceInput`, `LightroomResourceInput`, `UrlResourceInput`, request (closed).
524
+ * @category Generated
525
+ */
526
+ export const In_OneOf_CreativeCloudFileIdResourceInput_and_3_more_c290e2 = z.lazy(() => z.strictObject({
527
+ url: z.string().optional().describe("The pre-signed URL of the resource. Required."),
528
+ creativeCloudPath: z.string().optional().describe("The path to the asset in Creative Cloud. Required."),
529
+ creativeCloudProjectId: z.string().optional().describe("The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-..."),
530
+ creativeCloudFileId: z.string().optional().describe("The file ID of the asset in Creative Cloud. Required. Must start with 'urn:aaid' (case-insensitive)."),
531
+ lightroomPath: z.string().optional().describe("The path to the asset in Lightroom. Required.")
532
+ }));
533
+ /**
534
+ * Union of OpenAPI components `CreativeCloudFileIdResourceInput`, `CreativeCloudResourceInput`, `InlineContentResourceInput`, `LightroomResourceInput`, `UrlResourceInput`, request (closed).
535
+ * @category Generated
536
+ */
537
+ export const In_OneOf_CreativeCloudFileIdResourceInput_and_4_more_51eef6 = z.lazy(() => z.strictObject({
538
+ creativeCloudFileId: z.string().optional().describe("The file ID of the asset in Creative Cloud. Required. Must start with 'urn:aaid' (case-insensitive)."),
539
+ creativeCloudPath: z.string().optional().describe("The path to the asset in Creative Cloud. Required."),
540
+ creativeCloudProjectId: z.string().optional().describe("The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-..."),
541
+ content: z.string().max(51200).optional().describe("Inline content as string (for scripts, JSON, or other text-based content). Required. Maximum size: 50KB (51,200 characters)."),
542
+ contentType: z.string().optional().describe("MIME type of the content. Optional but recommended for proper processing."),
543
+ lightroomPath: z.string().optional().describe("The path to the asset in Lightroom. Required."),
544
+ url: z.string().optional().describe("The pre-signed URL of the resource. Required.")
545
+ }));
546
+ /**
547
+ * Union of OpenAPI components `CustomIccProfile`, `StandardIccProfile`, request (closed).
548
+ * @category Generated
549
+ */
550
+ export const In_OneOf_CustomIccProfile_or_StandardIccProfile = z.lazy(() => z.strictObject({
551
+ type: z.enum(["standard", "custom"]).describe("Type of ICC profile. 'standard' for predefined profiles, 'custom' for user-provided profiles. Defaults to standard when omitted; explicit null is invalid."),
552
+ imageMode: z.enum(["rgb", "grayscale", "cmyk"]).optional().describe("Image mode for custom ICC profiles. Allowed values: rgb, grayscale, cmyk. Optional"),
553
+ name: z.union([z.string().max(255), z.enum(["Adobe RGB (1998)", "Apple RGB", "ColorMatch RGB", "sRGB IEC61966-2.1", "Dot Gain 10%", "Dot Gain 15%", "Dot Gain 20%", "Dot Gain 25%", "Dot Gain 30%", "Gray Gamma 1.8", "Gray Gamma 2.2"])]),
554
+ source: In_FileResourceInput.optional()
555
+ }));
556
+ /**
557
+ * Union of OpenAPI components `EditPixelMask`, `PixelMask`, request (closed).
558
+ * @category Generated
559
+ */
560
+ export const In_OneOf_EditPixelMask_or_PixelMask = z.lazy(() => z.strictObject({
561
+ isEnabled: z.boolean().optional().describe("Whether the pixel mask is enabled. Optional. Defaults to true when adding new layers. Optional for edits"),
562
+ isLinked: z.boolean().optional().describe("Whether the pixel mask is linked to the layer. Optional. Defaults to true when adding new layers. Optional for edits"),
563
+ offset: In_Offset.optional(),
564
+ source: In_FileResourceInput.optional(),
565
+ delete: z.boolean().optional().describe("When true, removes the pixel mask from the layer. Takes precedence over all other options. Defaults to false.")
566
+ }));
567
+ /**
568
+ * Union of OpenAPI components `EditSmartObject`, `SmartObject`, request (closed).
569
+ * @category Generated
570
+ */
571
+ export const In_OneOf_EditSmartObject_or_SmartObject = z.lazy(() => z.strictObject({
572
+ isLinked: z.boolean().optional().describe("Whether the smart object is linked to the layer."),
573
+ smartObjectFile: In_SmartObjectFile.optional(),
574
+ autoResize: z.boolean().optional().describe("Controls how the embedded smart object content is sized when a replacement file is provided. Only applies to embedded smart objects (isLinked=false) with raster (PNG, JPEG, TIFF, PSD) or PDF/AI replacement files.")
575
+ }));
576
+ /**
577
+ * Union of OpenAPI components `FontCmyk`, `FontGray`, `FontLab`, `FontRgb`, request (closed).
578
+ * @category Generated
579
+ */
580
+ export const In_OneOf_FontCmyk_or_FontGray_or_FontLab_or_FontRgb = z.lazy(() => z.strictObject({
581
+ black: z.number().int().min(0).max(32768).optional().describe("Black component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted."),
582
+ cyan: z.number().int().min(0).max(32768).optional().describe("Cyan component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted."),
583
+ magenta: z.number().int().min(0).max(32768).optional().describe("Magenta component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted."),
584
+ yellow: z.number().int().min(0).max(32768).optional().describe("Yellow component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted."),
585
+ gray: z.number().int().min(0).max(32768).optional().describe("Gray component value (0-32768). 16-bit unsigned. 0 is black, 32768 is white. Defaults to 0 when omitted."),
586
+ a: z.number().int().min(-16384).max(16384).optional().describe("A component value (-16384 to 16384). 16-bit signed. Defaults to 0 when omitted."),
587
+ b: z.number().int().min(-16384).max(16384).optional().describe("B component value (-16384 to 16384). 16-bit signed. Defaults to 0 when omitted."),
588
+ l: z.number().int().min(0).max(32768).optional().describe("Lightness component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted."),
589
+ blue: z.number().int().min(0).max(32768).optional().describe("Blue component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted."),
590
+ green: z.number().int().min(0).max(32768).optional().describe("Green component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted."),
591
+ red: z.number().int().min(0).max(32768).optional().describe("Red component value (0-32768). 16-bit unsigned. Defaults to 0 when omitted.")
592
+ }));
593
+ /**
594
+ * Union of OpenAPI components `ImageParameters`, `ImageSource`, request (closed).
595
+ * @category Generated
596
+ */
597
+ export const In_OneOf_ImageParameters_or_ImageSource = z.lazy(() => z.strictObject({
598
+ depth: z.enum(["1", "8", "16", "32"]).optional().describe("Bit depth options for image processing"),
599
+ fill: z.enum(["white", "background_color", "transparent"]).optional().describe("Type of fill for the background layer"),
600
+ height: z.number().int().min(1).max(32000).optional().describe("Height in pixels. Defaults to 100 when omitted."),
601
+ iccProfile: In_IccProfile.optional(),
602
+ mode: z.enum(["rgb", "bitmap", "grayscale", "indexed", "hsb", "cmyk", "lab", "duotone", "multichannel"]).optional().describe("Color mode for document creation. Supported depths vary by mode: bitmap(1), grayscale(8,16,32), indexed(8), rgb(8,16,32), cmyk(8,16), lab(8,16), hsb(8,16,32), multichannel(8,16), duotone(8)."),
603
+ name: z.string().max(255).optional().describe("Name/title of the document. Optional. Maximum 255 characters."),
604
+ pixelScaleFactor: z.number().min(0.1).optional().describe("Pixel scale factor. Optional. Must be positive (minimum 0.1)."),
605
+ resolution: In_ResolutionMeasurement.optional(),
606
+ width: z.number().int().min(1).max(32000).optional().describe("Width in pixels. Defaults to 100 when omitted."),
607
+ source: In_FileResourceInput.optional()
608
+ }));
609
+ /**
610
+ * Union of OpenAPI components `JpegExportOptions`, `PngExportOptions`, request (closed).
611
+ * @category Generated
612
+ */
613
+ export const In_OneOf_JpegExportOptions_or_PngExportOptions = z.lazy(() => z.strictObject({
614
+ mediaType: z.enum(["image/jpeg", "image/png", "image/tiff", "image/vnd.adobe.photoshop", "document/vnd.adobe.cpsd+dcxucf", "document/vnd.adobe.cpsd+dcx", "application/json"]).describe("Supported media types for output"),
615
+ quality: z.enum(["very_poor", "poor", "low", "medium", "high", "maximum", "photoshop_max"]).optional().describe("JPEG quality levels"),
616
+ compression: z.enum(["none", "very_low", "low", "medium_low", "medium", "medium_high", "default", "high", "very_high", "maximum"]).optional().describe("PNG compression levels, from no compression to maximum compression. Values follow zlib/libpng standards.")
617
+ }));
618
+ /**
619
+ * Union of OpenAPI components `JpegOutput`, `JsonOutput`, `PngOutput`, `PsdOutput`, `PsdcOutput`, `TiffOutput`, request (closed).
620
+ * @category Generated
621
+ */
622
+ export const In_OneOf_JpegOutput_and_5_more_21ce4a = z.lazy(() => z.strictObject({
623
+ cropMode: z.enum(["trim_to_transparency", "document_bounds", "layer_bounds"]).optional().describe("Crop mode for export output"),
624
+ destination: In_OneOf_CreativeCloudDestination_and_3_more_fbff41,
625
+ height: z.number().int().min(0).optional().describe("Height in pixels. Must be >= 0. Optional."),
626
+ iccProfile: In_OneOf_CustomIccProfile_or_StandardIccProfile.optional(),
627
+ layers: z.array(In_ReferenceLayer).min(0).max(100).optional().describe("Layers to export. Specify layers by id, name, or both. Optional."),
628
+ maxWidth: z.number().int().min(0).optional().describe("Maximum width constraint in pixels. Must be >= 0. If specified and (width > maxWidth OR documentWidth > maxWidth), the output will be constrained to maxWidth. Optional."),
629
+ mediaType: z.enum(["image/jpeg", "image/png", "image/tiff", "image/vnd.adobe.photoshop", "document/vnd.adobe.cpsd+dcxucf", "document/vnd.adobe.cpsd+dcx", "application/json"]).describe("Supported media types for output"),
630
+ resample: z.enum(["nearest_neighbor", "bilinear", "bicubic", "bicubic_smoother", "bicubic_sharper"]).optional().describe("Resampling algorithm used when resizing output to a target width. Valid values: nearest_neighbor, bilinear, bicubic, bicubic_smoother, bicubic_sharper. Defaults to bicubic_sharper when width or maxWidth is specified and this field is omitted. Optional."),
631
+ scriptOutputPattern: z.string().max(255).optional().describe("Pattern for matching script output files in the UXP output directory. Supports both exact filenames and glob patterns. Examples: 'output.json' (matches single specific file), '*.json' (matches all JSON files), 'result-*.png' (matches result-1.png, result-2.png, etc.)."),
632
+ shouldOverwrite: z.boolean().optional().describe("Whether to overwrite existing files. Optional."),
633
+ width: z.number().int().min(0).optional().describe("Width in pixels. Must be >= 0. Optional."),
634
+ quality: z.enum(["very_poor", "poor", "low", "medium", "high", "maximum", "photoshop_max"]).optional().describe("JPEG quality levels"),
635
+ compression: z.enum(["none", "very_low", "low", "medium_low", "medium", "medium_high", "default", "high", "very_high", "maximum"]).optional().describe("PNG compression levels, from no compression to maximum compression. Values follow zlib/libpng standards.")
636
+ }));
637
+ /**
638
+ * Union of OpenAPI components `LrDngOutput`, `LrJpegOutput`, `LrPngOutput`, `XmpOutput`, request (closed).
639
+ * @category Generated
640
+ */
641
+ export const In_OneOf_LrDngOutput_or_LrJpegOutput_or_LrPngOutput_or_XmpOutput = z.lazy(() => z.strictObject({
642
+ destination: In_OneOf_CreativeCloudDestination_and_3_more_fbff41,
643
+ mediaType: z.enum(["image/jpeg", "image/png", "image/x-adobe-dng", "application/rdf+xml"]).describe("Supported media types for edit output"),
644
+ quality: z.enum(["very_poor", "poor", "low", "medium", "high", "maximum", "photoshop_max"]).optional().describe("JPEG quality levels"),
645
+ compression: z.enum(["none", "very_low", "low", "medium_low", "medium", "medium_high", "default", "high", "very_high", "maximum"]).optional().describe("PNG compression levels, from no compression to maximum compression. Values follow zlib/libpng standards.")
646
+ }));
647
+ /**
648
+ * OpenAPI component `Origin`, request (closed).
649
+ * @category Generated
650
+ */
651
+ export const In_Origin = z.lazy(() => z.strictObject({
652
+ x: z.number().int().optional().describe("X coordinate"),
653
+ y: z.number().int().optional().describe("Y coordinate")
654
+ })).describe("2D point coordinates");
655
+ /**
656
+ * OpenAPI component `ParagraphStyle`, request (closed).
657
+ * @category Generated
658
+ */
659
+ export const In_ParagraphStyle = z.lazy(() => z.strictObject({
660
+ alignment: z.enum(["left", "center", "right", "justify", "justify_left", "justify_right", "justify_center"]).optional().describe("Text alignment options"),
661
+ endIndent: z.number().optional().describe("End indent in pixels. Optional. Default is 0."),
662
+ firstLineIndent: z.number().optional().describe("First line indent in pixels. Optional. Default is 0."),
663
+ spaceAfter: z.number().optional().describe("Space after paragraph in pixels. Optional. Default is 0."),
664
+ spaceBefore: z.number().optional().describe("Space before paragraph in pixels. Optional. Default is 0."),
665
+ startIndent: z.number().optional().describe("Start indent in pixels. Optional. Default is 0."),
666
+ writingDirection: z.enum(["left_to_right", "right_to_left"]).optional().describe("Text writing direction")
667
+ })).describe("Paragraph style properties.");
668
+ /**
669
+ * OpenAPI component `ParagraphStyleRange`, request (closed).
670
+ * @category Generated
671
+ */
672
+ export const In_ParagraphStyleRange = z.lazy(() => z.strictObject({
673
+ apply: In_Apply.optional(),
674
+ paragraphStyle: In_ParagraphStyle.optional()
675
+ })).describe("Paragraph style range defining paragraph formatting for specific text ranges.");
676
+ /**
677
+ * OpenAPI component `PatternResource`, request (closed).
678
+ * @category Generated
679
+ */
680
+ export const In_PatternResource = z.lazy(() => z.strictObject({
681
+ source: In_PortableFileResourceInput
682
+ })).describe("External pattern file reference. Requires source (URL, Creative Cloud path, or Creative Cloud file ID). Inline content is not supported.");
683
+ /**
684
+ * OpenAPI component `Placement`, request (closed).
685
+ * @category Generated
686
+ */
687
+ export const In_Placement = z.lazy(() => z.strictObject({
688
+ referenceLayer: In_ReferenceLayer.optional(),
689
+ type: z.enum(["below", "into", "top", "bottom", "above"]).describe("Type of placement operation (below, into, top, bottom, above). Defaults to top when omitted.")
690
+ })).describe("Placement settings for positioning elements with alignment and insertion point.");
691
+ /**
692
+ * OpenAPI component `PortableFileResourceInput`, request (closed).
693
+ * @category Generated
694
+ */
695
+ export const In_PortableFileResourceInput = z.lazy(() => In_OneOf_CreativeCloudFileIdResourceInput_and_2_more_d026de).describe("External file reference. Must be a URL, Creative Cloud path, or Creative Cloud file ID. Lightroom resources are not supported.");
696
+ /**
697
+ * OpenAPI component `ReferenceLayer`, request (closed).
698
+ * @category Generated
699
+ */
700
+ export const In_ReferenceLayer = z.lazy(() => z.strictObject({
701
+ id: z.number().int().optional(),
702
+ name: z.string().optional()
703
+ })).describe("Layers to export. Specify layers by id, name, or both. Optional.");
704
+ /**
705
+ * OpenAPI component `Resize`, request (closed).
706
+ * @category Generated
707
+ */
708
+ export const In_Resize = z.lazy(() => z.strictObject({
709
+ constrainProportions: z.boolean().optional().describe("Whether to constrain proportions during resizing."),
710
+ height: In_DimensionMeasurement.optional(),
711
+ rasterize: z.boolean().optional().describe("Whether to rasterize the image during resizing. Optional."),
712
+ resample: z.enum(["nearest_neighbor", "bilinear", "bicubic", "bicubic_smoother", "bicubic_sharper"]).optional().describe("The resampling method to use when resizing."),
713
+ resolution: In_ResolutionMeasurement.optional(),
714
+ scaleStyles: z.boolean().optional().describe("Whether to scale styles during resizing."),
715
+ width: In_DimensionMeasurement.optional()
716
+ })).describe("Options for resizing a document, including width, height, resolution, resample type, and additional flags.");
717
+ /**
718
+ * OpenAPI component `ResolutionMeasurement`, request (closed).
719
+ * @category Generated
720
+ */
721
+ export const In_ResolutionMeasurement = z.lazy(() => z.strictObject({
722
+ unit: z.enum(["density_unit"]).describe("The unit of measurement for resolution. 'density_unit' represents pixel density measurements like DPI (dots per inch) or PPI (pixels per inch). Defaults to density_unit when omitted."),
723
+ value: z.number().int().min(1).optional().describe("The value of the resolution. Must be greater than or equal to 1.")
724
+ })).describe("Represents a resolution measurement with density unit.");
725
+ /**
726
+ * OpenAPI component `Rgb`, request (closed).
727
+ * @category Generated
728
+ */
729
+ export const In_Rgb = z.lazy(() => z.strictObject({
730
+ blue: z.number().int().min(0).max(255).describe("Blue component value (0-255). Defaults to 0 when omitted."),
731
+ green: z.number().int().min(0).max(255).describe("Green component value (0-255). Defaults to 0 when omitted."),
732
+ red: z.number().int().min(0).max(255).describe("Red component value (0-255). Defaults to 0 when omitted.")
733
+ })).describe("RGB color values with red, green, and blue components.");
734
+ /**
735
+ * OpenAPI component `SharpenAdjustments`, request (closed).
736
+ * @category Generated
737
+ */
738
+ export const In_SharpenAdjustments = z.lazy(() => z.strictObject({
739
+ detail: z.number().int().min(0).max(100).optional().describe("Sharpen detail. Range: 0 to 100"),
740
+ edgeMasking: z.number().int().min(0).max(100).optional().describe("Sharpen edge masking. Range: 0 to 100"),
741
+ radius: z.number().min(0.5).max(3).optional().describe("Sharpen radius. Range: 0.5 to 3.0")
742
+ })).describe("Sharpen adjustments for image editing.");
743
+ /**
744
+ * OpenAPI component `Skew`, request (closed).
745
+ * @category Generated
746
+ */
747
+ export const In_Skew = z.lazy(() => z.strictObject({
748
+ horizontal: z.number().int().describe("Horizontal skew. Required."),
749
+ vertical: z.number().int().describe("Vertical skew. Required.")
750
+ })).describe("Skew transformation settings for horizontal and vertical distortion.");
751
+ /**
752
+ * OpenAPI component `SmartObjectFile`, request (closed).
753
+ * @category Generated
754
+ */
755
+ export const In_SmartObjectFile = fileRefSchema({ access: "url" }).describe("File reference for the smart object. Supported file formats: PSD, PNG, JPEG, TIFF, SVG. Optional.");
756
+ /**
757
+ * OpenAPI component `SolidColor`, request (closed).
758
+ * @category Generated
759
+ */
760
+ export const In_SolidColor = z.lazy(() => z.strictObject({
761
+ rgb: In_Rgb
762
+ })).describe("Solid color definition using RGB values.");
763
+ /**
764
+ * OpenAPI component `Text`, request (closed).
765
+ * @category Generated
766
+ */
767
+ export const In_Text = z.lazy(() => z.strictObject({
768
+ antiAliasing: z.enum(["none", "sharp", "crisp", "strong", "smooth"]).optional().describe("Anti-aliasing mode for text rendering"),
769
+ characterStyles: z.array(In_CharacterStyleRange).optional().describe("Character styles applied to text ranges. Optional."),
770
+ content: z.string().optional().describe("The text content. Optional."),
771
+ frame: In_OneOf_AreaFrame_or_PointFrame.optional(),
772
+ paragraphStyles: z.array(In_ParagraphStyleRange).optional().describe("Paragraph styles applied to text ranges. Optional."),
773
+ textOrientation: z.enum(["horizontal", "vertical"]).optional().describe("Text orientation")
774
+ })).describe("Text content and formatting settings for text layers.");
775
+ /**
776
+ * OpenAPI component `Transform`, request (closed).
777
+ * @category Generated
778
+ */
779
+ export const In_Transform = z.lazy(() => z.strictObject({
780
+ anchor: In_Anchor.optional(),
781
+ angle: z.number().optional().describe("Rotation angle in degrees"),
782
+ dimension: In_Dimension.optional(),
783
+ horizontalAlign: z.enum(["left", "center", "right"]).optional().describe("Horizontal alignment options"),
784
+ offset: In_Offset.optional(),
785
+ skew: In_Skew.optional(),
786
+ verticalAlign: z.enum(["top", "center", "bottom"]).optional().describe("Vertical alignment options")
787
+ })).describe("Transformation applied to the smart object or layer, optional");
788
+ /**
789
+ * OpenAPI component `Trim`, request (closed).
790
+ * @category Generated
791
+ */
792
+ export const In_Trim = z.lazy(() => z.strictObject({
793
+ trimUpon: z.enum(["transparent_pixels"]).optional().describe("The basis for the trim operation (background or transparent). Optional.")
794
+ })).describe("Options for trimming a document, specifying the basis for the trim operation.");
795
+ /**
796
+ * OpenAPI component `UxpResource`, request (closed).
797
+ * @category Generated
798
+ */
799
+ export const In_UxpResource = z.lazy(() => z.strictObject({
800
+ source: In_OneOf_CreativeCloudFileIdResourceInput_and_4_more_51eef6
801
+ })).describe("UXP plugin script resource. Requires source (external file reference or inline script content).");
802
+ /**
803
+ * OpenAPI component `XmpInput`, request (closed).
804
+ * @category Generated
805
+ */
806
+ export const In_XmpInput = z.lazy(() => z.strictObject({
807
+ masks: z.array(In_Mask).optional().describe("List of mask inputs. Optional. Each mask contains a source file reference and digest for dictionary lookup."),
808
+ orientation: z.enum(["top_left", "top_right", "bottom_right", "bottom_left", "left_top", "right_top", "right_bottom", "left_bottom"]).optional().describe("XMP orientation values following EXIF/TIFF specification"),
809
+ source: In_FileResourceInput
810
+ })).describe("XMP metadata input. Requires source (external file reference). Inline content is not supported.");
718
811
  //# sourceMappingURL=schemas.js.map