@executioncontrolprotocol/adobe-firefly-services 0.13.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 (134) hide show
  1. package/README.md +81 -0
  2. package/dist/auth/ims.d.ts +42 -0
  3. package/dist/auth/ims.d.ts.map +1 -0
  4. package/dist/auth/ims.js +54 -0
  5. package/dist/auth/ims.js.map +1 -0
  6. package/dist/generated/audio-video/capabilities.d.ts +37 -0
  7. package/dist/generated/audio-video/capabilities.d.ts.map +1 -0
  8. package/dist/generated/audio-video/capabilities.js +488 -0
  9. package/dist/generated/audio-video/capabilities.js.map +1 -0
  10. package/dist/generated/audio-video/index.d.ts +3 -0
  11. package/dist/generated/audio-video/index.d.ts.map +1 -0
  12. package/dist/generated/audio-video/index.js +3 -0
  13. package/dist/generated/audio-video/index.js.map +1 -0
  14. package/dist/generated/audio-video/schemas.d.ts +84 -0
  15. package/dist/generated/audio-video/schemas.d.ts.map +1 -0
  16. package/dist/generated/audio-video/schemas.js +476 -0
  17. package/dist/generated/audio-video/schemas.js.map +1 -0
  18. package/dist/generated/creative-production/capabilities.d.ts +11 -0
  19. package/dist/generated/creative-production/capabilities.d.ts.map +1 -0
  20. package/dist/generated/creative-production/capabilities.js +168 -0
  21. package/dist/generated/creative-production/capabilities.js.map +1 -0
  22. package/dist/generated/creative-production/index.d.ts +3 -0
  23. package/dist/generated/creative-production/index.d.ts.map +1 -0
  24. package/dist/generated/creative-production/index.js +3 -0
  25. package/dist/generated/creative-production/index.js.map +1 -0
  26. package/dist/generated/creative-production/schemas.d.ts +23 -0
  27. package/dist/generated/creative-production/schemas.d.ts.map +1 -0
  28. package/dist/generated/creative-production/schemas.js +130 -0
  29. package/dist/generated/creative-production/schemas.js.map +1 -0
  30. package/dist/generated/express/capabilities.d.ts +11 -0
  31. package/dist/generated/express/capabilities.d.ts.map +1 -0
  32. package/dist/generated/express/capabilities.js +114 -0
  33. package/dist/generated/express/capabilities.js.map +1 -0
  34. package/dist/generated/express/index.d.ts +3 -0
  35. package/dist/generated/express/index.d.ts.map +1 -0
  36. package/dist/generated/express/index.js +3 -0
  37. package/dist/generated/express/index.js.map +1 -0
  38. package/dist/generated/express/schemas.d.ts +36 -0
  39. package/dist/generated/express/schemas.d.ts.map +1 -0
  40. package/dist/generated/express/schemas.js +136 -0
  41. package/dist/generated/express/schemas.js.map +1 -0
  42. package/dist/generated/firefly/capabilities.d.ts +29 -0
  43. package/dist/generated/firefly/capabilities.d.ts.map +1 -0
  44. package/dist/generated/firefly/capabilities.js +307 -0
  45. package/dist/generated/firefly/capabilities.js.map +1 -0
  46. package/dist/generated/firefly/index.d.ts +3 -0
  47. package/dist/generated/firefly/index.d.ts.map +1 -0
  48. package/dist/generated/firefly/index.js +3 -0
  49. package/dist/generated/firefly/index.js.map +1 -0
  50. package/dist/generated/firefly/schemas.d.ts +107 -0
  51. package/dist/generated/firefly/schemas.d.ts.map +1 -0
  52. package/dist/generated/firefly/schemas.js +453 -0
  53. package/dist/generated/firefly/schemas.js.map +1 -0
  54. package/dist/generated/illustrator/capabilities.d.ts +17 -0
  55. package/dist/generated/illustrator/capabilities.d.ts.map +1 -0
  56. package/dist/generated/illustrator/capabilities.js +169 -0
  57. package/dist/generated/illustrator/capabilities.js.map +1 -0
  58. package/dist/generated/illustrator/index.d.ts +3 -0
  59. package/dist/generated/illustrator/index.d.ts.map +1 -0
  60. package/dist/generated/illustrator/index.js +3 -0
  61. package/dist/generated/illustrator/index.js.map +1 -0
  62. package/dist/generated/illustrator/schemas.d.ts +56 -0
  63. package/dist/generated/illustrator/schemas.d.ts.map +1 -0
  64. package/dist/generated/illustrator/schemas.js +237 -0
  65. package/dist/generated/illustrator/schemas.js.map +1 -0
  66. package/dist/generated/indesign/capabilities.d.ts +33 -0
  67. package/dist/generated/indesign/capabilities.d.ts.map +1 -0
  68. package/dist/generated/indesign/capabilities.js +390 -0
  69. package/dist/generated/indesign/capabilities.js.map +1 -0
  70. package/dist/generated/indesign/index.d.ts +3 -0
  71. package/dist/generated/indesign/index.d.ts.map +1 -0
  72. package/dist/generated/indesign/index.js +3 -0
  73. package/dist/generated/indesign/index.js.map +1 -0
  74. package/dist/generated/indesign/schemas.d.ts +26 -0
  75. package/dist/generated/indesign/schemas.d.ts.map +1 -0
  76. package/dist/generated/indesign/schemas.js +250 -0
  77. package/dist/generated/indesign/schemas.js.map +1 -0
  78. package/dist/generated/index.d.ts +4 -0
  79. package/dist/generated/index.d.ts.map +1 -0
  80. package/dist/generated/index.js +98 -0
  81. package/dist/generated/index.js.map +1 -0
  82. package/dist/generated/photoshop/capabilities.d.ts +15 -0
  83. package/dist/generated/photoshop/capabilities.d.ts.map +1 -0
  84. package/dist/generated/photoshop/capabilities.js +143 -0
  85. package/dist/generated/photoshop/capabilities.js.map +1 -0
  86. package/dist/generated/photoshop/index.d.ts +3 -0
  87. package/dist/generated/photoshop/index.d.ts.map +1 -0
  88. package/dist/generated/photoshop/index.js +3 -0
  89. package/dist/generated/photoshop/index.js.map +1 -0
  90. package/dist/generated/photoshop/schemas.d.ts +154 -0
  91. package/dist/generated/photoshop/schemas.d.ts.map +1 -0
  92. package/dist/generated/photoshop/schemas.js +718 -0
  93. package/dist/generated/photoshop/schemas.js.map +1 -0
  94. package/dist/generated/substance3d/capabilities.d.ts +23 -0
  95. package/dist/generated/substance3d/capabilities.d.ts.map +1 -0
  96. package/dist/generated/substance3d/capabilities.js +236 -0
  97. package/dist/generated/substance3d/capabilities.js.map +1 -0
  98. package/dist/generated/substance3d/index.d.ts +3 -0
  99. package/dist/generated/substance3d/index.d.ts.map +1 -0
  100. package/dist/generated/substance3d/index.js +3 -0
  101. package/dist/generated/substance3d/index.js.map +1 -0
  102. package/dist/generated/substance3d/schemas.d.ts +78 -0
  103. package/dist/generated/substance3d/schemas.d.ts.map +1 -0
  104. package/dist/generated/substance3d/schemas.js +517 -0
  105. package/dist/generated/substance3d/schemas.js.map +1 -0
  106. package/dist/http/async-job.d.ts +27 -0
  107. package/dist/http/async-job.d.ts.map +1 -0
  108. package/dist/http/async-job.js +28 -0
  109. package/dist/http/async-job.js.map +1 -0
  110. package/dist/http/client.d.ts +53 -0
  111. package/dist/http/client.d.ts.map +1 -0
  112. package/dist/http/client.js +75 -0
  113. package/dist/http/client.js.map +1 -0
  114. package/dist/index.d.ts +32 -0
  115. package/dist/index.d.ts.map +1 -0
  116. package/dist/index.js +49 -0
  117. package/dist/index.js.map +1 -0
  118. package/dist/runtime/invoke.d.ts +54 -0
  119. package/dist/runtime/invoke.d.ts.map +1 -0
  120. package/dist/runtime/invoke.js +64 -0
  121. package/dist/runtime/invoke.js.map +1 -0
  122. package/openapi/audio-video/audio-video-api.json +8333 -0
  123. package/openapi/audio-video/translate-lipsync-openapi.json +1967 -0
  124. package/openapi/content-tagging/SOURCE.md +10 -0
  125. package/openapi/creative-production/workflow-builder-api.yaml +1002 -0
  126. package/openapi/express/ffs-express-api.json +2262 -0
  127. package/openapi/firefly/firefly-api.json +4964 -0
  128. package/openapi/illustrator/illustrator-api-beta.json +1329 -0
  129. package/openapi/illustrator/illustrator-api.json +2447 -0
  130. package/openapi/indesign/indesignapi.json +2907 -0
  131. package/openapi/overlays/schema-fixes.json +95 -0
  132. package/openapi/photoshop/photoshopv2-api.json +5395 -0
  133. package/openapi/substance3d/openapi.yaml +3583 -0
  134. package/package.json +36 -0
@@ -0,0 +1,718 @@
1
+ /* eslint-disable */
2
+ /** Generated from photoshop/photoshopv2-api.json — do not edit. */
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
+ })));
718
+ //# sourceMappingURL=schemas.js.map