@musallam/ffs-photoshop-client 2.1.0 → 2.1.2

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.
package/dist/flat.d.cts CHANGED
@@ -1,3643 +1,7 @@
1
- import ky, { Options as Options$1 } from "ky";
1
+ import { $ as CreateArtboardAsyncData, $i as TextDetails, $n as ManifestJobStatusOutputDetails, $r as PsJobStatusResponse, $t as FillMaskedAreasJobApiResponse, A as BaselineType, Ai as RenditionLinks, An as JobError, Ar as ModifyDocumentRequest, At as DocumentManifestOptions, B as ChildrenLayerDetails, Bi as SenseiJobApiResponse, Bn as JobStatusResponse, Br as PlayPhotoshopActionsAsyncErrors, Bt as EditTextLayerRequest, C as ApplyDepthBlurAsyncErrors, Ci as RemoveBackgroundV2Request, Cn as IccProfileDetails, Cr as MaskObjectsResponse, Ct as CropOptions, D as ArtboardDetails, Di as RemoveBgOutputImageMediaType, Dn as ImageSize, Dr as ModifyDocumentAsyncErrors, Dt as DocumentCreateLayer, E as ApplyDepthBlurRequest, Ei as RemoveBgMode, En as ImageModeType, Er as ModifyDocumentAsyncError, Et as DepthType, F as CanvasSize, Fi as ReplaceSmartObjectAsyncResponses, Fn as JobStatusFailed, Fr as OutputImageDetails, Ft as EditTextLayerAsyncData, G as ColorSpaceType, Gi as SmartObject, Gn as LayerMaskDetails, Gr as PlayPhotoshopActionsJsonAsyncErrors, Gt as FacadeJobStatusErrors, H as ColorBalance, Hi as SenseiJobStatusResponse, Hn as JobStatusSucceeded, Hr as PlayPhotoshopActionsAsyncResponses, Ht as ExposureDetails, I as ChannelDetails, Ii as ReplaceSmartObjectRequest, In as JobStatusLink, Ir as ParagraphStyleAlignmentType, It as EditTextLayerAsyncError, J as ConvertToActionsJsonAsyncError, Ji as SmartObjectOptions, Jn as LayerType, Jr as PlayPhotoshopActionsJsonRequest, Jt as FillDetails, K as CompressionType, Ki as SmartObjectDetails, Kn as LayerPosition, Kr as PlayPhotoshopActionsJsonAsyncResponse, Kt as FacadeJobStatusResponse, L as ChannelModeType, Li as RgbColor, Ln as JobStatusLinkResponse, Lr as ParagraphStyleDetails, Lt as EditTextLayerAsyncErrors, M as BlendModeType, Mi as ReplaceSmartObjectAsyncError, Mn as JobOutputDetails, Mr as Offset, Mt as DocumentOperationLayer, N as Bounds, Ni as ReplaceSmartObjectAsyncErrors, Nn as JobOutputStatus, Nr as OperationDocument, Nt as DocumentOperationOptions, O as AutoKernType, Oi as RemoveBgOutputImageOptions, On as InputValidationError, Or as ModifyDocumentAsyncResponse, Ot as DocumentCreateOptions, P as BrightnessContrast, Pi as ReplaceSmartObjectAsyncResponse, Pn as JobStatus, Pr as OrientationType, Pt as EastAsianFeatures, Q as ConvertToActionsJsonRequest, Qi as StorageType, Qn as ManifestJobDocumentDetails, Qr as PsJobStatusData, Qt as FillMaskedAreasInputImage, R as ChannelType, Ri as SelfLink, Rn as JobStatusNotStarted, Rr as PlayPhotoshopActionsAsyncData, Rt as EditTextLayerAsyncResponse, S as ApplyDepthBlurAsyncError, Si as RemoveBackgroundResponses, Sn as HueSaturation, Sr as MaskObjectsRequest, St as CreateRenditionRequest, T as ApplyDepthBlurAsyncResponses, Ti as RemoveBgInputImage, Tn as ImageFormatType, Tr as ModifyDocumentAsyncData, Tt as DepthBlurDetails, U as ColorDetails, Ui as SenseiJobStatusResponses, Un as JobStatusSucceededResponse, Ur as PlayPhotoshopActionsJsonAsyncData, Ut as FacadeJobStatusData, V as ClientOptions, Vi as SenseiJobStatusData, Vn as JobStatusRunning, Vr as PlayPhotoshopActionsAsyncResponse, Vt as ErrorDetails, W as ColorProfileType, Wi as SenseiOutputDetails, Wn as LayerDetails, Wr as PlayPhotoshopActionsJsonAsyncError, Wt as FacadeJobStatusError, X as ConvertToActionsJsonAsyncResponse, Xi as SolidColor, Xn as ManifestJobAdjustmentDetails, Xr as PsJobApiResponse, Xt as FillMaskedAreasError, Y as ConvertToActionsJsonAsyncErrors, Yi as SmartObjectOutputDetails, Yn as ManageMissingFonts, Yr as PlayPhotoshopActionsRequest, Yt as FillMaskedAreasData, Z as ConvertToActionsJsonAsyncResponses, Zi as StorageDetails, Zn as ManifestJobApiResponse, Zr as PsJobResponse, Zt as FillMaskedAreasErrors, _ as ApplyAutoCropAsyncErrors, _a as Options$1, _i as RemoveBackgroundData, _n as GetJobStatusError, _r as MaskObjectsErrors, _t as CreateRenditionAsyncData, a as pollPhotoshopSenseiJob, aa as TextStyleType, ai as RefineMaskImageMediaType, an as FontCaps, ar as MaskBodyPartsInputMask, at as CreateDocumentAsyncData, b as ApplyAutoCropRequest, ba as createConfig, bi as RemoveBackgroundRequest, bn as GetJobStatusResponses, br as MaskObjectsJobApiResponse, bt as CreateRenditionAsyncResponse, c as ActionJsonCreateOptions, ca as Thumbnails, ci as RefineMaskOutputImage, cn as FontColorGray, cr as MaskBodyPartsOutputImage, ct as CreateDocumentAsyncResponse, d as ActionOutputDetails, da as TrimToCanvasType, di as RefineMaskResponses, dn as GetDocumentManifestAsyncData, dr as MaskBodyPartsResponses, dt as CreateMaskAsyncData, ea as TextLayerCharacterStyleDetails, ei as PsJobStatusResponses, en as FillMaskedAreasRequest, er as MaskBodyPartsData, et as CreateArtboardAsyncError, f as AdjustmentDetails, fa as UnitType, fi as RemoveBackgroundAsyncData, fn as GetDocumentManifestAsyncError, fr as MaskDetails, ft as CreateMaskAsyncError, g as ApplyAutoCropAsyncError, ga as Client, gi as RemoveBackgroundAsyncResponses, gn as GetJobStatusData, gr as MaskObjectsError, gt as CreateMaskRequest, h as ApplyAutoCropAsyncData, ha as createClient, hi as RemoveBackgroundAsyncResponse, hn as GetDocumentManifestAsyncResponses, hr as MaskObjectsData, ht as CreateMaskAsyncResponses, i as pollPhotoshopPsdServiceJob, ia as TextOptionsLayer, ii as RefineMaskErrors, in as FocalSelector, ir as MaskBodyPartsInputImage, it as CreateArtboardRequest, j as BlendDetails, ji as ReplaceSmartObjectAsyncData, jn as JobLinkResponse, jr as MoveDetails, jt as DocumentManifestRequest, k as BasedOnType, ki as RenditionLinkDetails, kn as InputValidationErrorDetail, kr as ModifyDocumentAsyncResponses, kt as DocumentDetails, l as ActionJsonOptions, la as TrialLimitExceededError, li as RefineMaskRequest, ln as FontColorLab, lr as MaskBodyPartsRequest, lt as CreateDocumentAsyncResponses, m as AntiAliasType, ma as VerticalAlignType, mi as RemoveBackgroundAsyncErrors, mn as GetDocumentManifestAsyncResponse, mr as MaskFormatType, mt as CreateMaskAsyncResponse, n as pollPhotoshopFacadeJob, na as TextLayerParagraphStyleDetails, ni as RefineMaskData, nn as FillMaskedAreasResponses, nr as MaskBodyPartsErrors, nt as CreateArtboardAsyncResponse, o as Action, oa as TextType, oi as RefineMaskInputImage, on as FontColorCmyk, or as MaskBodyPartsJobApiResponse, ot as CreateDocumentAsyncError, p as AlignmentType, pa as UrlResource, pi as RemoveBackgroundAsyncError, pn as GetDocumentManifestAsyncErrors, pr as MaskFormat, pt as CreateMaskAsyncErrors, q as ConvertToActionsJsonAsyncData, qi as SmartObjectLayer, qn as LayerReference, qr as PlayPhotoshopActionsJsonAsyncResponses, qt as FacadeJobStatusResponses, r as pollPhotoshopMaskingV1Job, ra as TextOptions, ri as RefineMaskError, rn as FillType, rr as MaskBodyPartsImageMediaType, rt as CreateArtboardAsyncResponses, s as ActionDetails, sa as ThumbnailType, si as RefineMaskJobApiResponse, sn as FontColorDetails, sr as MaskBodyPartsMaskMediaType, st as CreateDocumentAsyncErrors, t as PhotoshopPollJobOptions, ta as TextLayerDetails, ti as PsOutputDetails, tn as FillMaskedAreasResponse, tr as MaskBodyPartsError, tt as CreateArtboardAsyncErrors, u as ActionOptions, ua as Trim, ui as RefineMaskResponse, un as FontColorRgb, ur as MaskBodyPartsResponse, ut as CreateDocumentRequest, v as ApplyAutoCropAsyncResponse, va as RequestResult, vi as RemoveBackgroundError, vn as GetJobStatusErrors, vr as MaskObjectsInputImage, vt as CreateRenditionAsyncError, w as ApplyDepthBlurAsyncResponse, wi as RemoveBgColor, wn as ImageBoundingBox, wr as MaskObjectsResponses, wt as DeleteDetails, x as ApplyDepthBlurAsyncData, xa as mergeHeaders, xi as RemoveBackgroundResponse, xn as HorizontalAlignType, xr as MaskObjectsOutputImage, xt as CreateRenditionAsyncResponses, y as ApplyAutoCropAsyncResponses, ya as TDataShape, yi as RemoveBackgroundErrors, yn as GetJobStatusResponse, yr as MaskObjectsInputImageMediaType, yt as CreateRenditionAsyncErrors, z as CharacterStyleDetails, zi as SenseiColor, zn as JobStatusPollPayload, zr as PlayPhotoshopActionsAsyncError, zt as EditTextLayerAsyncResponses } from "./index-CDtGOih8.cjs";
2
2
 
3
- //#region packages/photoshop/src/flat/core/auth.gen.d.ts
4
- type AuthToken = string | undefined;
5
- interface Auth {
6
- /**
7
- * Which part of the request do we use to send the auth?
8
- *
9
- * @default 'header'
10
- */
11
- in?: 'header' | 'query' | 'cookie';
12
- /**
13
- * Header or query parameter name.
14
- *
15
- * @default 'Authorization'
16
- */
17
- name?: string;
18
- scheme?: 'basic' | 'bearer';
19
- type: 'apiKey' | 'http';
20
- }
21
- //#endregion
22
- //#region packages/photoshop/src/flat/core/pathSerializer.gen.d.ts
23
- interface SerializerOptions<T> {
24
- /**
25
- * @default true
26
- */
27
- explode: boolean;
28
- style: T;
29
- }
30
- type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
31
- type ObjectStyle = 'form' | 'deepObject';
32
- //#endregion
33
- //#region packages/photoshop/src/flat/core/bodySerializer.gen.d.ts
34
- type QuerySerializer = (query: Record<string, unknown>) => string;
35
- type BodySerializer = (body: unknown) => unknown;
36
- type QuerySerializerOptionsObject = {
37
- allowReserved?: boolean;
38
- array?: Partial<SerializerOptions<ArrayStyle>>;
39
- object?: Partial<SerializerOptions<ObjectStyle>>;
40
- };
41
- type QuerySerializerOptions = QuerySerializerOptionsObject & {
42
- /**
43
- * Per-parameter serialization overrides. When provided, these settings
44
- * override the global array/object settings for specific parameter names.
45
- */
46
- parameters?: Record<string, QuerySerializerOptionsObject>;
47
- };
48
- //#endregion
49
- //#region packages/photoshop/src/flat/core/types.gen.d.ts
50
- type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
51
- type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
52
- /**
53
- * Returns the final request URL.
54
- */
55
- buildUrl: BuildUrlFn;
56
- getConfig: () => Config;
57
- request: RequestFn;
58
- setConfig: (config: Config) => Config;
59
- } & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
60
- sse?: never;
61
- } : {
62
- sse: { [K in HttpMethod]: SseFn };
63
- });
64
- interface Config$1 {
65
- /**
66
- * Auth token or a function returning auth token. The resolved value will be
67
- * added to the request payload as defined by its `security` array.
68
- */
69
- auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
70
- /**
71
- * A function for serializing request body parameter. By default,
72
- * {@link JSON.stringify()} will be used.
73
- */
74
- bodySerializer?: BodySerializer | null;
75
- /**
76
- * An object containing any HTTP headers that you want to pre-populate your
77
- * `Headers` object with.
78
- *
79
- * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
80
- */
81
- headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
82
- /**
83
- * The request method.
84
- *
85
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
86
- */
87
- method?: Uppercase<HttpMethod>;
88
- /**
89
- * A function for serializing request query parameters. By default, arrays
90
- * will be exploded in form style, objects will be exploded in deepObject
91
- * style, and reserved characters are percent-encoded.
92
- *
93
- * This method will have no effect if the native `paramsSerializer()` Axios
94
- * API function is used.
95
- *
96
- * {@link https://swagger.io/docs/specification/serialization/#query View examples}
97
- */
98
- querySerializer?: QuerySerializer | QuerySerializerOptions;
99
- /**
100
- * A function validating request data. This is useful if you want to ensure
101
- * the request conforms to the desired shape, so it can be safely sent to
102
- * the server.
103
- */
104
- requestValidator?: (data: unknown) => Promise<unknown>;
105
- /**
106
- * A function transforming response data before it's returned. This is useful
107
- * for post-processing data, e.g. converting ISO strings into Date objects.
108
- */
109
- responseTransformer?: (data: unknown) => Promise<unknown>;
110
- /**
111
- * A function validating response data. This is useful if you want to ensure
112
- * the response conforms to the desired shape, so it can be safely passed to
113
- * the transformers and returned to the user.
114
- */
115
- responseValidator?: (data: unknown) => Promise<unknown>;
116
- }
117
- //#endregion
118
- //#region packages/photoshop/src/flat/core/serverSentEvents.gen.d.ts
119
- type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
120
- /**
121
- * Fetch API implementation. You can use this option to provide a custom
122
- * fetch instance.
123
- *
124
- * @default globalThis.fetch
125
- */
126
- fetch?: typeof fetch;
127
- /**
128
- * Implementing clients can call request interceptors inside this hook.
129
- */
130
- onRequest?: (url: string, init: RequestInit) => Promise<Request>;
131
- /**
132
- * Callback invoked when a network or parsing error occurs during streaming.
133
- *
134
- * This option applies only if the endpoint returns a stream of events.
135
- *
136
- * @param error The error that occurred.
137
- */
138
- onSseError?: (error: unknown) => void;
139
- /**
140
- * Callback invoked when an event is streamed from the server.
141
- *
142
- * This option applies only if the endpoint returns a stream of events.
143
- *
144
- * @param event Event streamed from the server.
145
- * @returns Nothing (void).
146
- */
147
- onSseEvent?: (event: StreamEvent<TData>) => void;
148
- serializedBody?: RequestInit['body'];
149
- /**
150
- * Default retry delay in milliseconds.
151
- *
152
- * This option applies only if the endpoint returns a stream of events.
153
- *
154
- * @default 3000
155
- */
156
- sseDefaultRetryDelay?: number;
157
- /**
158
- * Maximum number of retry attempts before giving up.
159
- */
160
- sseMaxRetryAttempts?: number;
161
- /**
162
- * Maximum retry delay in milliseconds.
163
- *
164
- * Applies only when exponential backoff is used.
165
- *
166
- * This option applies only if the endpoint returns a stream of events.
167
- *
168
- * @default 30000
169
- */
170
- sseMaxRetryDelay?: number;
171
- /**
172
- * Optional sleep function for retry backoff.
173
- *
174
- * Defaults to using `setTimeout`.
175
- */
176
- sseSleepFn?: (ms: number) => Promise<void>;
177
- url: string;
178
- };
179
- interface StreamEvent<TData = unknown> {
180
- data: TData;
181
- event?: string;
182
- id?: string;
183
- retry?: number;
184
- }
185
- type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
186
- stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
187
- };
188
- //#endregion
189
- //#region packages/photoshop/src/flat/client/utils.gen.d.ts
190
- declare const mergeHeaders: (...headers: Array<Required<Config>["headers"] | undefined>) => Headers;
191
- type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
192
- type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
193
- type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
194
- declare class Interceptors<Interceptor> {
195
- fns: Array<Interceptor | null>;
196
- clear(): void;
197
- eject(id: number | Interceptor): void;
198
- exists(id: number | Interceptor): boolean;
199
- getInterceptorIndex(id: number | Interceptor): number;
200
- update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
201
- use(fn: Interceptor): number;
202
- }
203
- interface Middleware<Req, Res, Err, Options> {
204
- error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
205
- request: Interceptors<ReqInterceptor<Req, Options>>;
206
- response: Interceptors<ResInterceptor<Res, Req, Options>>;
207
- }
208
- declare const createConfig: <T extends ClientOptions$1 = ClientOptions$1>(override?: Config<Omit<ClientOptions$1, keyof T> & T>) => Config<Omit<ClientOptions$1, keyof T> & T>;
209
- //#endregion
210
- //#region packages/photoshop/src/flat/client/types.gen.d.ts
211
- type ResponseStyle = 'data' | 'fields';
212
- interface RetryOptions {
213
- /**
214
- * Maximum number of retry attempts
215
- *
216
- * @default 2
217
- */
218
- limit?: number;
219
- /**
220
- * HTTP methods to retry
221
- *
222
- * @default ['get', 'put', 'head', 'delete', 'options', 'trace']
223
- */
224
- methods?: Array<'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace'>;
225
- /**
226
- * HTTP status codes to retry
227
- *
228
- * @default [408, 413, 429, 500, 502, 503, 504]
229
- */
230
- statusCodes?: number[];
231
- }
232
- interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Options$1, 'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'>, Config$1 {
233
- /**
234
- * Base URL for all requests made by this client.
235
- */
236
- baseUrl?: T['baseUrl'];
237
- /**
238
- * Ky instance to use. You can use this option to provide a custom
239
- * ky instance.
240
- */
241
- ky?: typeof ky;
242
- /**
243
- * Additional ky-specific options that will be passed directly to ky.
244
- * This allows you to use any ky option not explicitly exposed in the config.
245
- */
246
- kyOptions?: Omit<Options$1, 'method' | 'prefixUrl'>;
247
- /**
248
- * Return the response data parsed in a specified format. By default, `auto`
249
- * will infer the appropriate method from the `Content-Type` response header.
250
- * You can override this behavior with any of the {@link Body} methods.
251
- * Select `stream` if you don't want to parse response data at all.
252
- *
253
- * @default 'auto'
254
- */
255
- parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
256
- /**
257
- * Should we return only data or multiple fields (data, error, response, etc.)?
258
- *
259
- * @default 'fields'
260
- */
261
- responseStyle?: ResponseStyle;
262
- /**
263
- * Retry configuration
264
- */
265
- retry?: RetryOptions;
266
- /**
267
- * Throw an error instead of returning it in the response?
268
- *
269
- * @default false
270
- */
271
- throwOnError?: T['throwOnError'];
272
- /**
273
- * Request timeout in milliseconds
274
- *
275
- * @default 10000
276
- */
277
- timeout?: number;
278
- }
279
- interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
280
- responseStyle: TResponseStyle;
281
- throwOnError: ThrowOnError;
282
- }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
283
- /**
284
- * Any body that you want to add to your request.
285
- *
286
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
287
- */
288
- body?: unknown;
289
- path?: Record<string, unknown>;
290
- query?: Record<string, unknown>;
291
- /**
292
- * Security mechanism(s) to use for the request.
293
- */
294
- security?: ReadonlyArray<Auth>;
295
- url: Url;
296
- }
297
- interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
298
- serializedBody?: string;
299
- }
300
- type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
301
- data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
302
- request: Request;
303
- response: Response;
304
- }> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
305
- data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
306
- error: undefined;
307
- } | {
308
- data: undefined;
309
- error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
310
- }) & {
311
- request: Request;
312
- response: Response;
313
- }>;
314
- interface ClientOptions$1 {
315
- baseUrl?: string;
316
- responseStyle?: ResponseStyle;
317
- throwOnError?: boolean;
318
- }
319
- type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
320
- type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
321
- type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
322
- type BuildUrlFn = <TData extends {
323
- body?: unknown;
324
- path?: Record<string, unknown>;
325
- query?: Record<string, unknown>;
326
- url: string;
327
- }>(options: TData & Options$2<TData>) => string;
328
- type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
329
- interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
330
- };
331
- interface TDataShape {
332
- body?: unknown;
333
- headers?: unknown;
334
- path?: unknown;
335
- query?: unknown;
336
- url: string;
337
- }
338
- type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
339
- type Options$2<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
340
- //#endregion
341
- //#region packages/photoshop/src/flat/client/client.gen.d.ts
342
- declare const createClient: (config?: Config) => Client;
343
- //#endregion
344
- //#region packages/photoshop/src/flat/types.gen.d.ts
345
- type ClientOptions = {
346
- baseUrl: 'https://image.adobe.io' | (string & {});
347
- };
348
- /**
349
- * JobError
350
- *
351
- * Any errors reported in the requested output.
352
- */
353
- type JobError = {
354
- /**
355
- * The error type.
356
- */
357
- type?: string;
358
- /**
359
- * The error code.
360
- */
361
- code?: string;
362
- /**
363
- * The error description.
364
- */
365
- title?: string;
366
- /**
367
- * The internal error code.
368
- */
369
- error_code?: string;
370
- /**
371
- * The details of the error returned.
372
- */
373
- details?: Array<ErrorDetails>;
374
- };
375
- /**
376
- * InputValidationError
377
- *
378
- * Any errors reported in the requested output.
379
- */
380
- type InputValidationError = {
381
- /**
382
- * The error type.
383
- */
384
- type?: string;
385
- /**
386
- * The error code.
387
- */
388
- code?: string;
389
- /**
390
- * The error description.
391
- */
392
- title?: string;
393
- /**
394
- * The details of the error returned.
395
- */
396
- details?: Array<InputValidationErrorDetail>;
397
- };
398
- /**
399
- * TrialLimitExceededError
400
- *
401
- * Any errors reported in the requested output.
402
- */
403
- type TrialLimitExceededError = {
404
- /**
405
- * The error type.
406
- */
407
- type?: string;
408
- /**
409
- * The error code.
410
- */
411
- code?: string;
412
- /**
413
- * The error description.
414
- */
415
- title?: string;
416
- /**
417
- * The details of the error returned.
418
- */
419
- details?: string;
420
- };
421
- /**
422
- * InputValidationErrorDetail
423
- *
424
- * Details of the input validation error returned.
425
- */
426
- type InputValidationErrorDetail = {
427
- /**
428
- * The name of the input parameter.
429
- */
430
- allowedValues?: string;
431
- /**
432
- * The reason for the error.
433
- */
434
- reason?: string;
435
- };
436
- /**
437
- * StorageDetails
438
- *
439
- * A file located on Adobe's cloud or a supported external service.
440
- */
441
- type StorageDetails = {
442
- /**
443
- * A pre-signed GET URL.
444
- */
445
- href: string;
446
- storage: StorageType;
447
- };
448
- /**
449
- * SenseiColor
450
- *
451
- * Color space for output image
452
- */
453
- type SenseiColor = {
454
- space?: ColorSpaceType;
455
- };
456
- /**
457
- * ColorSpaceType
458
- *
459
- * Color space for output image
460
- */
461
- type ColorSpaceType = 'rgb' | 'rgba';
462
- /**
463
- * SenseiOutputDetails
464
- *
465
- * A PNG file.
466
- */
467
- type SenseiOutputDetails = {
468
- /**
469
- * A pre-signed POST URL to the output file.
470
- */
471
- href: string;
472
- storage: StorageType;
473
- mask?: MaskFormat;
474
- color?: SenseiColor;
475
- /**
476
- * If the file already exists, indicates if the output file should be overwritten. Will eventually support eTags. Only applies to CC Storage.
477
- */
478
- overwrite?: boolean;
479
- };
480
- /**
481
- * SenseiJobApiResponse
482
- */
483
- type SenseiJobApiResponse = {
484
- /**
485
- * The job ID requested.
486
- */
487
- jobId?: string;
488
- /**
489
- * Created timestamp of the job (YYYY-DD-MMThh:mm:ss.mmmmmZ).
490
- */
491
- created?: string;
492
- /**
493
- * Modified timestamp of the job (YYYY-DD-MMThh:mm:ss.mmmmmZ).
494
- */
495
- modified?: string;
496
- status?: JobStatus;
497
- output?: SenseiOutputDetails;
498
- errors?: JobError;
499
- _links?: JobStatusLink;
500
- };
501
- /**
502
- * JobStatusLink
503
- */
504
- type JobStatusLink = {
505
- self?: SelfLink;
506
- };
507
- /**
508
- * RemoveBackgroundRequest
509
- */
510
- type RemoveBackgroundRequest = {
511
- input: StorageDetails;
512
- output: SenseiOutputDetails;
513
- };
514
- /**
515
- * CreateMaskRequest
516
- */
517
- type CreateMaskRequest = {
518
- input: StorageDetails;
519
- output: SenseiOutputDetails;
520
- };
521
- /**
522
- * JobStatusLinkResponse
523
- */
524
- type JobStatusLinkResponse = {
525
- _links?: JobStatusLink;
526
- };
527
- /**
528
- * IccProfileDetails
529
- */
530
- type IccProfileDetails = {
531
- imageMode?: ImageModeType;
532
- input?: StorageDetails;
533
- profileName?: ColorProfileType;
534
- };
535
- /**
536
- * SmartObjectOutputDetails
537
- *
538
- * An output object.
539
- */
540
- type SmartObjectOutputDetails = {
541
- /**
542
- * A pre-signed POST URL to the output file.
543
- */
544
- href: string;
545
- storage: StorageType;
546
- type: ImageFormatType;
547
- /**
548
- * If the file already exists, indicates if the output file should be overwritten. Will eventually support eTags. Only applies to CC Storage.
549
- */
550
- overwrite?: boolean;
551
- /**
552
- * The width, in pixels, of the renditions. A width of 0 generates a full size rendition. Height is generated automatically using the aspect ratio. Only supported for image rendition.
553
- */
554
- width?: number;
555
- /**
556
- * The quality of the renditions for JPEG. The range is 1 to 7, 7 being the highest quality.
557
- */
558
- quality?: number;
559
- compression?: CompressionType;
560
- };
561
- /**
562
- * ActionOutputDetails
563
- *
564
- * An output object.
565
- */
566
- type ActionOutputDetails = {
567
- /**
568
- * A pre-signed POST URL to the output file.
569
- */
570
- href: string;
571
- storage: StorageType;
572
- type: ImageFormatType;
573
- /**
574
- * If the file already exists, indicates if the output file should be overwritten. Will eventually support eTags. Only applies to CC Storage.
575
- */
576
- overwrite?: boolean;
577
- /**
578
- * The quality of the renditions for JPEG. The range is 1 to 7, 7 being the highest quality.
579
- */
580
- quality?: number;
581
- compression?: CompressionType;
582
- };
583
- /**
584
- * PsOutputDetails
585
- *
586
- * An output object.
587
- */
588
- type PsOutputDetails = {
589
- /**
590
- * A pre-signed POST URL to the output file.
591
- */
592
- href: string;
593
- storage: StorageType;
594
- type: ImageFormatType;
595
- /**
596
- * If the file already exists, indicates if the output file should be overwritten. Will eventually support eTags. Only applies to CC Storage.
597
- */
598
- overwrite?: boolean;
599
- /**
600
- * The width, in pixels, of the renditions. A width of 0 generates a full size rendition. Height is generated automatically using the aspect ratio. Only supported for image rendition.
601
- */
602
- width?: number;
603
- /**
604
- * The size, in pixels, of the renditions. When width is 0, maxWidth can be provided to get the rendition size. maxWidth when less than document width gets precedence over width. Height is not necessary as the rendition generate will automatically maintain the aspect ratio.
605
- */
606
- maxWidth?: number;
607
- /**
608
- * The quality of the renditions for JPEG. The range is 1 to 7, 7 being the highest quality.
609
- */
610
- quality?: number;
611
- compression?: CompressionType;
612
- trimToCanvas?: TrimToCanvasType;
613
- /**
614
- * An array of layer objects.
615
- * By including this array you are signaling that you'd like a rendition created from these layer id's or layer names. Excluding it will generate a document-level rendition.
616
- */
617
- layers?: Array<LayerReference>;
618
- iccProfile?: IccProfileDetails;
619
- };
620
- /**
621
- * RenditionLinkDetails
622
- *
623
- * A rendition object.
624
- */
625
- type RenditionLinkDetails = {
626
- /**
627
- * The rendition location.
628
- */
629
- href?: string;
630
- storage?: StorageType;
631
- /**
632
- * The requested rendition width in pixels.
633
- */
634
- width?: number;
635
- type?: ImageFormatType;
636
- };
637
- /**
638
- * ManifestJobApiResponse
639
- */
640
- type ManifestJobApiResponse = {
641
- /**
642
- * The job ID requested.
643
- */
644
- jobId?: string;
645
- /**
646
- * The outputs requested.
647
- */
648
- outputs?: Array<ManifestJobStatusOutputDetails>;
649
- _links?: JobStatusLink;
650
- };
651
- /**
652
- * PsJobApiResponse
653
- */
654
- type PsJobApiResponse = {
655
- /**
656
- * The job ID requested.
657
- */
658
- jobId?: string;
659
- /**
660
- * API output details.
661
- */
662
- outputs?: Array<JobOutputDetails>;
663
- _links?: JobStatusLink;
664
- };
665
- /**
666
- * Photoshop Job response.
667
- */
668
- type PsJobResponse = ManifestJobApiResponse | PsJobApiResponse;
669
- /**
670
- * DocumentManifestRequest
671
- */
672
- type DocumentManifestRequest = {
673
- /**
674
- * An array of input objects. Each input object represents a file to be processed.
675
- */
676
- inputs: Array<StorageDetails>;
677
- options?: DocumentManifestOptions & unknown;
678
- };
679
- /**
680
- * LayerPosition
681
- */
682
- type LayerPosition = {
683
- insertAbove?: LayerReference;
684
- insertBelow?: LayerReference;
685
- insertInto?: LayerReference;
686
- insertTop?: boolean;
687
- insertBottom?: boolean;
688
- };
689
- /**
690
- * DeleteDetails
691
- *
692
- * Indicates you want to delete the layer, identified by the `id` or `name`. Note the object is currently empty but leaves room for further enhancements.
693
- */
694
- type DeleteDetails = {
695
- /**
696
- * Indicates that child layers are included when deleting a group layer.
697
- */
698
- includeChildren?: boolean;
699
- /**
700
- * The layer ID.
701
- */
702
- id?: number;
703
- /**
704
- * The layer name. You can identify a layer by id or name. That makes either id or name a required field.
705
- */
706
- name?: string;
707
- };
708
- /**
709
- * LayerReference
710
- *
711
- * A layer reference object.
712
- */
713
- type LayerReference = {
714
- /**
715
- * The id of the layer. Use either `id` OR `name`.
716
- */
717
- id?: number;
718
- /**
719
- * The name of the layer. Use either `id` OR `name`.
720
- */
721
- name?: string;
722
- };
723
- /**
724
- * CreateDocumentRequest
725
- */
726
- type CreateDocumentRequest = {
727
- /**
728
- * An array of output objects. Each output object represents a file to be created.
729
- */
730
- outputs: Array<PsOutputDetails>;
731
- options: DocumentCreateOptions;
732
- };
733
- /**
734
- * ModifyDocumentRequest
735
- */
736
- type ModifyDocumentRequest = {
737
- /**
738
- * An array of input objects. Each input object represents a file to be processed.
739
- */
740
- inputs: Array<StorageDetails>;
741
- /**
742
- * An array of output objects. Each output object represents a file to be created.
743
- */
744
- outputs: Array<PsOutputDetails>;
745
- options: DocumentOperationOptions;
746
- };
747
- /**
748
- * CreateRenditionRequest
749
- */
750
- type CreateRenditionRequest = {
751
- /**
752
- * An array of input objects. Only one input object is currently supported.
753
- */
754
- inputs: Array<StorageDetails>;
755
- /**
756
- * An array of output objects.
757
- */
758
- outputs: Array<PsOutputDetails>;
759
- };
760
- /**
761
- * ReplaceSmartObjectRequest
762
- */
763
- type ReplaceSmartObjectRequest = {
764
- /**
765
- * An array of input objects. Only one input object is currently supported.
766
- */
767
- inputs: Array<StorageDetails>;
768
- /**
769
- * An array of output objects.
770
- */
771
- outputs: Array<SmartObjectOutputDetails>;
772
- options: SmartObjectOptions;
773
- };
774
- /**
775
- * PlayPhotoshopActionsRequest
776
- */
777
- type PlayPhotoshopActionsRequest = {
778
- /**
779
- * An array of input objects. Only one input object is currently supported.
780
- */
781
- inputs: Array<StorageDetails>;
782
- /**
783
- * An array of output objects.
784
- */
785
- outputs: Array<ActionOutputDetails>;
786
- options: ActionOptions;
787
- };
788
- /**
789
- * PlayPhotoshopActionsJsonRequest
790
- */
791
- type PlayPhotoshopActionsJsonRequest = {
792
- /**
793
- * An array of input objects. Only one input object is currently supported.
794
- */
795
- inputs: Array<StorageDetails>;
796
- /**
797
- * An array of output objects.
798
- */
799
- outputs: Array<ActionOutputDetails>;
800
- options: ActionJsonOptions;
801
- };
802
- /**
803
- * ConvertToActionsJsonRequest
804
- */
805
- type ConvertToActionsJsonRequest = {
806
- /**
807
- * An array of input action sets in ATN format. Only one input object is currently supported.
808
- */
809
- inputs: Array<StorageDetails>;
810
- options?: ActionJsonCreateOptions;
811
- };
812
- /**
813
- * ApplyAutoCropRequest
814
- */
815
- type ApplyAutoCropRequest = {
816
- /**
817
- * An array of input objects. Only one input object is currently supported.
818
- */
819
- inputs: Array<StorageDetails>;
820
- /**
821
- * An array of output objects
822
- */
823
- outputs: Array<ActionOutputDetails>;
824
- options: CropOptions;
825
- };
826
- /**
827
- * ApplyDepthBlurRequest
828
- */
829
- type ApplyDepthBlurRequest = {
830
- /**
831
- * An array of input objects. We currently only support one input object
832
- */
833
- inputs: Array<StorageDetails>;
834
- /**
835
- * An array of output objects
836
- */
837
- outputs: Array<ActionOutputDetails>;
838
- options?: DepthBlurDetails;
839
- };
840
- /**
841
- * EditTextLayerRequest
842
- */
843
- type EditTextLayerRequest = {
844
- /**
845
- * An array of input objects. We currently only support one input object
846
- */
847
- inputs: Array<StorageDetails>;
848
- /**
849
- * An array of output objects
850
- */
851
- outputs: Array<ActionOutputDetails>;
852
- options: TextOptions;
853
- };
854
- /**
855
- * CreateArtboardRequest
856
- */
857
- type CreateArtboardRequest = {
858
- options: ArtboardDetails;
859
- /**
860
- * An array of output objects
861
- */
862
- outputs: Array<PsOutputDetails>;
863
- };
864
- /**
865
- * DocumentDetails
866
- */
867
- type DocumentDetails = {
868
- /**
869
- * In pixels
870
- */
871
- height: number;
872
- /**
873
- * In pixels
874
- */
875
- width: number;
876
- /**
877
- * In pixels per inch
878
- */
879
- resolution: number;
880
- fill: FillType;
881
- mode: ChannelModeType;
882
- depth?: DepthType;
883
- };
884
- /**
885
- * ManifestJobDocumentDetails
886
- */
887
- type ManifestJobDocumentDetails = {
888
- /**
889
- * The name of the document
890
- */
891
- name?: string;
892
- /**
893
- * In pixels
894
- */
895
- height?: number;
896
- /**
897
- * In pixels
898
- */
899
- width?: number;
900
- /**
901
- * The version of Photoshop used to create the document
902
- */
903
- photoshopBuild?: string;
904
- imageMode?: ImageModeType;
905
- bitDepth?: ChannelModeType;
906
- /**
907
- * The name of the ICC profile used for the document
908
- */
909
- iccProfileName?: string;
910
- };
911
- /**
912
- * ChildrenLayerDetails
913
- */
914
- type ChildrenLayerDetails = {
915
- /**
916
- * The layer ID. An ID of -1 is valid and indicates a PSD that only contains a background image and no layers.
917
- */
918
- id?: number;
919
- /**
920
- * The layer index.
921
- */
922
- index?: number;
923
- /**
924
- * If thumbnails were requested, a pre-signed GET URL to the thumbnail
925
- */
926
- thumbnail?: string;
927
- type?: LayerType;
928
- /**
929
- * The layer name.
930
- */
931
- name?: string;
932
- /**
933
- * Whether the layer is locked
934
- */
935
- locked?: boolean;
936
- /**
937
- * Whether the layer is visible
938
- */
939
- visible?: boolean;
940
- adjustments?: AdjustmentDetails;
941
- bounds?: Bounds;
942
- blendOptions?: BlendDetails;
943
- mask?: LayerMaskDetails;
944
- smartObject?: SmartObjectDetails;
945
- fill?: FillDetails;
946
- text?: TextLayerDetails;
947
- };
948
- /**
949
- * LayerDetails
950
- */
951
- type LayerDetails = {
952
- /**
953
- * The layer ID. An ID of -1 is valid and indicates a PSD that only contains a background image and no layers.
954
- */
955
- id?: number;
956
- /**
957
- * The layer index.
958
- */
959
- index?: number;
960
- /**
961
- * If thumbnails were requested, this is a pre-signed GET URL to the thumbnail.
962
- */
963
- thumbnail?: string;
964
- /**
965
- * An array of nested layer objects. Only layerSections (group layers) can include children.
966
- */
967
- children?: Array<ChildrenLayerDetails>;
968
- type?: LayerType;
969
- /**
970
- * The layer name.
971
- */
972
- name?: string;
973
- /**
974
- * Whether the layer is locked.
975
- */
976
- locked?: boolean;
977
- /**
978
- * Whether the layer is visible.
979
- */
980
- visible?: boolean;
981
- adjustments?: ManifestJobAdjustmentDetails;
982
- bounds?: Bounds;
983
- blendOptions?: BlendDetails;
984
- mask?: LayerMaskDetails;
985
- smartObject?: SmartObjectDetails;
986
- fill?: FillDetails;
987
- text?: TextLayerDetails;
988
- };
989
- /**
990
- * Action
991
- *
992
- * An object describing the input Photoshop Actions to play.
993
- */
994
- type Action = {
995
- storage?: StorageType & unknown;
996
- /**
997
- * Presigned GET URL
998
- */
999
- href?: string;
1000
- /**
1001
- * If you only want to execute a particular action, you may specify which action to play from the ActionSet
1002
- */
1003
- actionName?: string;
1004
- };
1005
- /**
1006
- * ActionDetails
1007
- *
1008
- * Details of Actions from the ActionSet.
1009
- */
1010
- type ActionDetails = {
1011
- /**
1012
- * If you only want to execute a particular action, you may specify whcih action to convert from the ActionSet
1013
- */
1014
- actionName?: string;
1015
- };
1016
- /**
1017
- * AdjustmentDetails
1018
- *
1019
- * Adjustment layer information.
1020
- */
1021
- type AdjustmentDetails = {
1022
- brightnessContrast?: BrightnessContrast;
1023
- exposure?: ExposureDetails;
1024
- hueSaturation?: HueSaturation;
1025
- colorBalance?: ColorBalance;
1026
- };
1027
- /**
1028
- * ManifestJobAdjustmentDetails
1029
- *
1030
- * Adjustment layer information.
1031
- */
1032
- type ManifestJobAdjustmentDetails = {
1033
- brightness_contrast?: BrightnessContrast;
1034
- exposure?: ExposureDetails;
1035
- hue_saturation?: HueSaturation;
1036
- color_balance?: ColorBalance;
1037
- };
1038
- /**
1039
- * BrightnessContrast
1040
- *
1041
- * Brightness and contrast settings.
1042
- */
1043
- type BrightnessContrast = {
1044
- /**
1045
- * The adjustment layer's brightness.
1046
- */
1047
- brightness?: number;
1048
- /**
1049
- * The adjustment layer's contrast.
1050
- */
1051
- contrast?: number;
1052
- };
1053
- /**
1054
- * ExposureDetails
1055
- *
1056
- * Exposure settings.
1057
- */
1058
- type ExposureDetails = {
1059
- /**
1060
- * The layer's exposure.
1061
- */
1062
- exposure?: number;
1063
- /**
1064
- * The layer's offset.
1065
- */
1066
- offset?: number;
1067
- /**
1068
- * The layer's gamma correction.
1069
- */
1070
- gammaCorrection?: number;
1071
- };
1072
- /**
1073
- * HueSaturation
1074
- */
1075
- type HueSaturation = {
1076
- /**
1077
- * Whether to colorize.
1078
- */
1079
- colorize?: boolean;
1080
- /**
1081
- * An array of hashes representing the 'master' channel (the remaining five channels of 'magentas', 'yellows', 'greens', etc. are not yet supported).
1082
- */
1083
- channels?: Array<ChannelDetails>;
1084
- };
1085
- /**
1086
- * ColorBalance
1087
- *
1088
- * Color balance settings.
1089
- */
1090
- type ColorBalance = {
1091
- /**
1092
- * Whether to preserve luminosity.
1093
- */
1094
- preserveLuminosity?: boolean;
1095
- /**
1096
- * Shadow levels.
1097
- */
1098
- shadowLevels?: Array<number>;
1099
- /**
1100
- * Midtone levels.
1101
- */
1102
- midtoneLevels?: Array<number>;
1103
- /**
1104
- * Highlight levels.
1105
- */
1106
- highlightLevels?: Array<number>;
1107
- };
1108
- /**
1109
- * Bounds
1110
- *
1111
- * The bounds of the layer.
1112
- */
1113
- type Bounds = {
1114
- /**
1115
- * The top position in pixels.
1116
- */
1117
- top?: number;
1118
- /**
1119
- * The left position in pixels.
1120
- */
1121
- left?: number;
1122
- /**
1123
- * The width in pixels.
1124
- */
1125
- width?: number;
1126
- /**
1127
- * The height in pixels.
1128
- */
1129
- height?: number;
1130
- };
1131
- /**
1132
- * CharacterStyleDetails
1133
- *
1134
- * Character style settings.
1135
- */
1136
- type CharacterStyleDetails = {
1137
- /**
1138
- * The font size, in pixels.
1139
- */
1140
- size?: number;
1141
- /**
1142
- * The font's PostScript name to be used to set the font for this layer.
1143
- */
1144
- fontPostScriptName?: string;
1145
- color?: ColorDetails;
1146
- /**
1147
- * The font's leading value, where leading is the distance between each line of text.
1148
- */
1149
- leading?: number;
1150
- /**
1151
- * The font's tracking value, where tracking is the horizontal spacing between a range of characters.
1152
- */
1153
- tracking?: number;
1154
- baseline?: BaselineType;
1155
- fontCaps?: FontCaps;
1156
- autoKern?: AutoKernType;
1157
- /**
1158
- * Toggle strikethrough for selected text.
1159
- */
1160
- strikethrough?: boolean;
1161
- /**
1162
- * Toggle bold for selected text.
1163
- */
1164
- syntheticBold?: boolean;
1165
- /**
1166
- * Toggle italic for selected text.
1167
- */
1168
- syntheticItalic?: boolean;
1169
- /**
1170
- * Toggle underlining of text.
1171
- */
1172
- underline?: boolean;
1173
- /**
1174
- * Toggle text ligature, which are special characters in a font that combine two (or more).
1175
- */
1176
- ligature?: boolean;
1177
- /**
1178
- * Toggle automatic formatting of fractions: numbers separated by a slash (such as 1/2).
1179
- */
1180
- fractions?: boolean;
1181
- /**
1182
- * Toggle stylistic alternates, which formats stylized characters that create a purely aesthetic effect.
1183
- */
1184
- stylisticAlternates?: boolean;
1185
- /**
1186
- * The amount of vertical scaling to apply to the font.
1187
- */
1188
- verticalScale?: number;
1189
- /**
1190
- * The amount of horizontal scaling to apply to the font.
1191
- */
1192
- horizontalScale?: number;
1193
- };
1194
- /**
1195
- * ParagraphStyleDetails
1196
- *
1197
- * Paragraph style settings.
1198
- */
1199
- type ParagraphStyleDetails = {
1200
- alignment?: ParagraphStyleAlignmentType;
1201
- /**
1202
- * The amount of indent to add to the left margin.
1203
- */
1204
- startIndent?: number;
1205
- /**
1206
- * The amount of indent to add to the right margin.
1207
- */
1208
- endIndent?: number;
1209
- /**
1210
- * Toggle hyphenate for paragraph text.
1211
- */
1212
- hyphenate?: boolean;
1213
- /**
1214
- * The amount of indent to add to the first line of the paragraph.
1215
- */
1216
- firstLineIndent?: number;
1217
- /**
1218
- * The amount of space to add before the paragraph.
1219
- */
1220
- spaceBefore?: number;
1221
- /**
1222
- * The amount of space to add after the paragraph.
1223
- */
1224
- spaceAfter?: number;
1225
- };
1226
- /**
1227
- * LayerMaskDetails
1228
- *
1229
- * An object describing the input mask replaced or added to the layer.
1230
- */
1231
- type LayerMaskDetails = {
1232
- /**
1233
- * Indicates if this is a clipped layer.
1234
- */
1235
- clip?: boolean;
1236
- /**
1237
- * Indicates whether a mask is enabled on that layer.
1238
- */
1239
- enabled?: boolean;
1240
- /**
1241
- * Indicates whether a mask is linked to the layer.
1242
- */
1243
- linked?: boolean;
1244
- offset?: Offset;
1245
- };
1246
- /**
1247
- * Offset
1248
- *
1249
- * Offset details.
1250
- */
1251
- type Offset = {
1252
- /**
1253
- * Offset to indicate horizontal move of the mask.
1254
- */
1255
- x?: number;
1256
- /**
1257
- * Offset to indicate vertical move of the mask.
1258
- */
1259
- y?: number;
1260
- };
1261
- /**
1262
- * SmartObjectDetails
1263
- *
1264
- * Smart object details.
1265
- */
1266
- type SmartObjectDetails = {
1267
- /**
1268
- * Desired image format for the smart object.
1269
- */
1270
- type?: string;
1271
- /**
1272
- * Indicates if the smart object is linked. Currently we support embedded smart object only, which means "linked = false".
1273
- */
1274
- linked?: boolean;
1275
- /**
1276
- * Name of the embedded or linked smart object. Currently we support embedded smart object only.
1277
- */
1278
- name?: string;
1279
- /**
1280
- * Only for a linked smart object. Indicates the relative path for the linked smart object.
1281
- */
1282
- path?: string;
1283
- /**
1284
- * Only for an embedded smart object. Indicates the instance ID of the embedded smart object. This ID is unique and the value is derived from the RAW data of the document. `instanceId` may show a value as unknown, if the embedded smart object is generated using a non-Adobe application.
1285
- */
1286
- instanceId?: string;
1287
- };
1288
- /**
1289
- * FillDetails
1290
- */
1291
- type FillDetails = {
1292
- solidColor?: SolidColor;
1293
- };
1294
- /**
1295
- * SolidColor
1296
- */
1297
- type SolidColor = {
1298
- rgb: RgbColor;
1299
- };
1300
- /**
1301
- * RgbColor
1302
- *
1303
- * An object describing the RGB color format in 8 bits.
1304
- */
1305
- type RgbColor = {
1306
- red?: number;
1307
- green?: number;
1308
- blue?: number;
1309
- };
1310
- /**
1311
- * FontColorRgb
1312
- *
1313
- * An object describing the RGB color format in 16 bits.
1314
- */
1315
- type FontColorRgb = {
1316
- red?: number;
1317
- green?: number;
1318
- blue?: number;
1319
- };
1320
- /**
1321
- * FontColorCmyk
1322
- *
1323
- * The font color settings for CMYK mode in 16-bit representation.
1324
- */
1325
- type FontColorCmyk = {
1326
- cyan?: number;
1327
- magenta?: number;
1328
- yellowColor?: number;
1329
- black?: number;
1330
- };
1331
- /**
1332
- * FontColorGray
1333
- *
1334
- * The font color settings for gray mode in 16-bit representation.
1335
- */
1336
- type FontColorGray = {
1337
- gray?: number;
1338
- };
1339
- /**
1340
- * FontColorLab
1341
- *
1342
- * The font color settings for Lab mode in 16-bit representation.
1343
- */
1344
- type FontColorLab = {
1345
- luminance?: number;
1346
- a?: number;
1347
- b?: number;
1348
- };
1349
- /**
1350
- * TextLayerDetails
1351
- *
1352
- * Text settings.
1353
- */
1354
- type TextLayerDetails = {
1355
- /**
1356
- * The text string.
1357
- */
1358
- content?: string;
1359
- /**
1360
- * Character style settings. If the same supported attributes apply to all characters in the layer, then this will be an array of one item. Otherwise, each `characterStyle` object will have a 'from' and 'to' value indicating the range of characters that style applies to.
1361
- */
1362
- characterStyles?: Array<TextLayerCharacterStyleDetails>;
1363
- /**
1364
- * Paragraph style settings. If the same supported attributes apply to all characters in the layer then this will be an array of one item, otherwise each paragraph style object will have a 'from' and 'to' value indicating the range of characters that the style applies to.
1365
- */
1366
- paragraphStyles?: Array<TextLayerParagraphStyleDetails>;
1367
- };
1368
- /**
1369
- * TextLayerCharacterStyleDetails
1370
- */
1371
- type TextLayerCharacterStyleDetails = {
1372
- /**
1373
- * The beginning of the range of characters that this character style applies to. Based on initial index of 0. For example a style applied to only the first two characters would be from=0 and to=1.
1374
- */
1375
- from?: number;
1376
- /**
1377
- * The ending of the range of characters that this character style applies to. Based on initial index of 0. For example a style applied to only the first two characters would be from=0 and to=1.
1378
- */
1379
- to?: number;
1380
- /**
1381
- * The font size in points.
1382
- */
1383
- fontSize?: number;
1384
- /**
1385
- * The font's PostScript name from the [list of supported fonts](../../getting_started/technical_usage_notes/index.md#photoshop-api-supported-fonts).
1386
- */
1387
- fontName?: string;
1388
- orientation?: OrientationType;
1389
- fontColor?: FontColorDetails;
1390
- };
1391
- /**
1392
- * TextLayerParagraphStyleDetails
1393
- *
1394
- * If the same supported attributes apply to all characters in the layer then this will be an array of one item, otherwise each paragraph style object will have a 'from' and 'to' value indicating the range of characters that the style applies to.
1395
- */
1396
- type TextLayerParagraphStyleDetails = {
1397
- /**
1398
- * The beginning of the range of characters that this paragraph style applies to. Based on initial index of 0. For example a style applied to only the first two characters would be from=0 and to=1.
1399
- */
1400
- from?: number;
1401
- /**
1402
- * The ending of the range of characters that this paragraph style applies to. Based on initial index of 0. For example a style applied to only the first two characters would be from=0 and to=1.
1403
- */
1404
- to?: number;
1405
- alignment?: AlignmentType;
1406
- };
1407
- /**
1408
- * BlendDetails
1409
- *
1410
- * Blend options of a layer, including opacity and blend mode.
1411
- */
1412
- type BlendDetails = {
1413
- /**
1414
- * Indicates the opacity value of a layer.
1415
- */
1416
- opacity?: number;
1417
- blendMode?: BlendModeType;
1418
- };
1419
- /**
1420
- * AlignmentType
1421
- *
1422
- * The paragraph alignment.
1423
- */
1424
- type AlignmentType = 'left' | 'center' | 'right' | 'justify' | 'justifyLeft' | 'justifyCenter' | 'justifyRight';
1425
- /**
1426
- * ParagraphStyleAlignmentType
1427
- *
1428
- * The paragraph alignment.
1429
- */
1430
- type ParagraphStyleAlignmentType = 'left' | 'center' | 'right' | 'justify' | 'justifyLeft' | 'justifyCenter' | 'justifyRight' | 'justifyAll';
1431
- /**
1432
- * AntiAliasType
1433
- *
1434
- * The text's aliasing type which determines the smoothness of the jagged edges of the text.
1435
- */
1436
- type AntiAliasType = 'antiAliasNone' | 'antiAliasSharp' | 'antiAliasCrisp' | 'antiAliasStrong' | 'antiAliasSmooth' | 'antiAliasPlatformLCD' | 'antiAliasPlatformGray';
1437
- /**
1438
- * AutoKernType
1439
- *
1440
- * The text's kerning setting. Optical: set based on the shape of the font. Metrics: uses kern pairs included in fonts.
1441
- */
1442
- type AutoKernType = 'opticalKern' | 'metricsKern';
1443
- /**
1444
- * BasedOnType
1445
- *
1446
- * Based on type.
1447
- */
1448
- type BasedOnType = 'transparentPixels';
1449
- /**
1450
- * BaselineType
1451
- *
1452
- * Indicates if the text is raised or lowered in relation to a font's baseline.
1453
- */
1454
- type BaselineType = 'subScript' | 'superScript';
1455
- /**
1456
- * BlendModeType
1457
- *
1458
- * Blend mode of layer.
1459
- */
1460
- type BlendModeType = 'normal' | 'dissolve' | 'darken' | 'multiply' | 'colorBurn' | 'linearBurn' | 'darkerColor' | 'lighten' | 'screen' | 'colorDodge' | 'linearDodge' | 'lighterColor' | 'overlay' | 'softLight' | 'hardLight' | 'vividLight' | 'linearLight' | 'pinLight' | 'hardMix' | 'difference' | 'exclusion' | 'subtract' | 'divide' | 'hue' | 'saturation' | 'color' | 'luminosity';
1461
- /**
1462
- * CanvasSize
1463
- */
1464
- type CanvasSize = {
1465
- bounds: Bounds;
1466
- };
1467
- /**
1468
- * ChannelDetails
1469
- */
1470
- type ChannelDetails = {
1471
- channel?: ChannelType;
1472
- hue?: number;
1473
- saturation?: number;
1474
- lightness?: number;
1475
- };
1476
- /**
1477
- * ChannelType
1478
- *
1479
- * The channel type.
1480
- */
1481
- type ChannelType = 'master';
1482
- /**
1483
- * ColorDetails
1484
- *
1485
- * Font color in RGB format.
1486
- */
1487
- type ColorDetails = {
1488
- /**
1489
- * The color red value.
1490
- */
1491
- red: number;
1492
- /**
1493
- * The color green value.
1494
- */
1495
- green: number;
1496
- /**
1497
- * The color blue value.
1498
- */
1499
- blue: number;
1500
- };
1501
- /**
1502
- * CompressionType
1503
- *
1504
- * Desired PNG compression level.
1505
- */
1506
- type CompressionType = 'small' | 'medium' | 'large';
1507
- /**
1508
- * DepthType
1509
- *
1510
- * Bit depth. This is either 8, 16 or 32 bit.
1511
- */
1512
- type DepthType = 8 | 16 | 32;
1513
- /**
1514
- * OperationDocument
1515
- */
1516
- type OperationDocument = {
1517
- canvasSize?: CanvasSize;
1518
- imageSize?: ImageSize;
1519
- trim?: Trim;
1520
- };
1521
- /**
1522
- * EastAsianFeatures
1523
- *
1524
- * Text features specifically for East Asian languages.
1525
- */
1526
- type EastAsianFeatures = {
1527
- textStyle?: TextStyleType & unknown;
1528
- };
1529
- /**
1530
- * ErrorDetails
1531
- *
1532
- * Error details.
1533
- */
1534
- type ErrorDetails = {
1535
- /**
1536
- * The parameter name.
1537
- */
1538
- name?: string;
1539
- /**
1540
- * The error.
1541
- */
1542
- reason?: string;
1543
- };
1544
- /**
1545
- * FillType
1546
- *
1547
- * Type of fill for the background layer.
1548
- */
1549
- type FillType = 'white' | 'backgroundColor' | 'transparent';
1550
- /**
1551
- * FocalSelector
1552
- *
1553
- * Focal selector.
1554
- */
1555
- type FocalSelector = {
1556
- /**
1557
- * X coordinate.
1558
- */
1559
- x?: number;
1560
- /**
1561
- * Y coordinate.
1562
- */
1563
- y?: number;
1564
- };
1565
- /**
1566
- * FontCaps
1567
- *
1568
- * The text's capitalization values.
1569
- */
1570
- type FontCaps = 'allCaps' | 'smallCaps';
1571
- /**
1572
- * FontColorDetails
1573
- */
1574
- type FontColorDetails = {
1575
- rgb?: FontColorRgb & unknown;
1576
- cmyk?: FontColorCmyk & unknown;
1577
- gray?: FontColorGray & unknown;
1578
- lab?: FontColorLab & unknown;
1579
- };
1580
- /**
1581
- * MaskFormatType
1582
- *
1583
- * Soft mask or binary mask.
1584
- */
1585
- type MaskFormatType = 'binary' | 'soft';
1586
- /**
1587
- * ImageModeType
1588
- *
1589
- * The image mode.
1590
- */
1591
- type ImageModeType = 'grayscale' | 'rgb' | 'cmyk';
1592
- /**
1593
- * ImageSize
1594
- *
1595
- * The size of the image
1596
- */
1597
- type ImageSize = {
1598
- width: number;
1599
- height: number;
1600
- };
1601
- /**
1602
- * DocumentCreateLayer
1603
- */
1604
- type DocumentCreateLayer = {
1605
- type: LayerType;
1606
- input: StorageDetails & unknown;
1607
- name?: string;
1608
- /**
1609
- * is the layer locked
1610
- */
1611
- locked?: boolean;
1612
- /**
1613
- * is the layer visible
1614
- */
1615
- visible?: boolean;
1616
- adjustments?: AdjustmentDetails;
1617
- bounds?: Bounds;
1618
- children?: Array<ChildrenLayerDetails>;
1619
- mask?: MaskDetails;
1620
- smartObject?: SmartObject & unknown;
1621
- fill?: FillDetails;
1622
- text?: TextLayerDetails & unknown;
1623
- blendOptions?: BlendDetails & unknown;
1624
- };
1625
- /**
1626
- * DocumentOperationLayer
1627
- */
1628
- type DocumentOperationLayer = {
1629
- /**
1630
- * Indicates the layer to edit, by it's ID or name. Note the object is currently empty but leaves room for further enhancements. The layer block should contain changes from the original manifest. If you apply it to a group layer, you will be affecting the attributes of the group layer itself, not the child layers. This edit is supported for layer type `smartObject` and `fillLayer` only.
1631
- */
1632
- edit?: {
1633
- [key: string]: unknown;
1634
- };
1635
- move?: MoveDetails;
1636
- add?: LayerPosition;
1637
- delete: DeleteDetails;
1638
- /**
1639
- * The layer ID.
1640
- */
1641
- id: number;
1642
- /**
1643
- * The layer index. Required when deleting a layer, otherwise not used.
1644
- */
1645
- index?: number;
1646
- /**
1647
- * A tree of layer objects representing the PSD layer structure extracted from the PSD document.
1648
- */
1649
- children?: Array<ChildrenLayerDetails>;
1650
- type?: LayerType;
1651
- input?: StorageDetails;
1652
- name?: string;
1653
- /**
1654
- * is the layer locked
1655
- */
1656
- locked?: boolean;
1657
- /**
1658
- * is the layer visible
1659
- */
1660
- visible?: boolean;
1661
- adjustments?: AdjustmentDetails;
1662
- mask?: MaskDetails;
1663
- bounds?: Bounds;
1664
- smartObject?: SmartObject & unknown;
1665
- fill?: FillDetails;
1666
- text?: TextLayerDetails & unknown;
1667
- blendOptions?: BlendDetails & unknown;
1668
- horizontalAlign?: HorizontalAlignType;
1669
- verticalAlign?: VerticalAlignType;
1670
- /**
1671
- * Indicates if the pixels need to proportionally fill into the entire canvas of the document.
1672
- */
1673
- fillToCanvas?: boolean;
1674
- };
1675
- /**
1676
- * SmartObjectLayer
1677
- */
1678
- type SmartObjectLayer = {
1679
- add?: LayerPosition;
1680
- /**
1681
- * the layer id
1682
- */
1683
- id?: number;
1684
- name?: string;
1685
- /**
1686
- * is the layer locked
1687
- */
1688
- locked?: boolean;
1689
- /**
1690
- * is the layer visible
1691
- */
1692
- visible?: boolean;
1693
- input: StorageDetails;
1694
- bounds?: Bounds;
1695
- };
1696
- /**
1697
- * TextOptionsLayer
1698
- */
1699
- type TextOptionsLayer = {
1700
- /**
1701
- * The name of the layer you want to insert. Use either ID or name.
1702
- */
1703
- name?: string;
1704
- /**
1705
- * The ID of the layer you want to insert. Use either ID or name.
1706
- */
1707
- id?: number;
1708
- bounds?: Bounds;
1709
- /**
1710
- * Is the layer editable.
1711
- */
1712
- locked?: boolean;
1713
- /**
1714
- * Is the layer visible.
1715
- */
1716
- visible?: boolean;
1717
- text?: TextDetails & unknown;
1718
- };
1719
- /**
1720
- * RenditionLinks
1721
- *
1722
- * The rendition links.
1723
- */
1724
- type RenditionLinks = {
1725
- /**
1726
- * Array of rendition objects.
1727
- */
1728
- renditions?: Array<RenditionLinkDetails>;
1729
- };
1730
- /**
1731
- * ManageMissingFonts
1732
- *
1733
- * Action to take if there are one or more missing fonts in the document. Using `fail` - the job will not succeed and the status will be set to `failed` with the details of the error provided in the `details` section in the status. Using `useDefault` - the job will succeed, however all the missing fonts will use the font: ArialMT.
1734
- */
1735
- type ManageMissingFonts = 'useDefault' | 'fail';
1736
- /**
1737
- * MaskFormat
1738
- */
1739
- type MaskFormat = {
1740
- format?: MaskFormatType;
1741
- };
1742
- /**
1743
- * MaskDetails
1744
- */
1745
- type MaskDetails = {
1746
- input?: StorageDetails;
1747
- /**
1748
- * Indicates if this is a clipped layer
1749
- */
1750
- clip?: boolean;
1751
- /**
1752
- * Indicates a mask is enabled on that layer or not
1753
- */
1754
- enabled?: boolean;
1755
- /**
1756
- * Indicates a mask is linked to the layer or not
1757
- */
1758
- linked?: boolean;
1759
- offset?: Offset;
1760
- };
1761
- /**
1762
- * ChannelModeType
1763
- *
1764
- * The document's bit/channel depth.
1765
- */
1766
- type ChannelModeType = 'bitmap' | 'greyscale' | 'indexed' | 'rgb' | 'cmyk' | 'hsl' | 'hsb' | 'multichannel' | 'duotone' | 'lab' | 'xyz';
1767
- /**
1768
- * MoveDetails
1769
- */
1770
- type MoveDetails = {
1771
- moveChildren?: boolean;
1772
- insertAbove?: LayerReference;
1773
- insertBelow?: LayerReference;
1774
- insertInto?: LayerReference;
1775
- insertTop?: boolean;
1776
- insertBottom?: boolean;
1777
- };
1778
- /**
1779
- * DocumentManifestOptions
1780
- *
1781
- * Available options to apply to all input files.
1782
- */
1783
- type DocumentManifestOptions = {
1784
- thumbnails?: Thumbnails & unknown;
1785
- };
1786
- /**
1787
- * DocumentCreateOptions
1788
- */
1789
- type DocumentCreateOptions = {
1790
- manageMissingFonts?: ManageMissingFonts & unknown;
1791
- /**
1792
- * The PostScript name of the font to be used as the global default for the document. If this font is also missing, the option specified in `manageMissingFonts` will take effect.
1793
- */
1794
- globalFont?: string;
1795
- /**
1796
- * array of custom fonts needed in this document
1797
- */
1798
- fonts?: Array<StorageDetails>;
1799
- document: DocumentDetails;
1800
- /**
1801
- * Array of layers to be created in the document.
1802
- */
1803
- layers?: Array<DocumentCreateLayer>;
1804
- };
1805
- /**
1806
- * DocumentOperationOptions
1807
- */
1808
- type DocumentOperationOptions = {
1809
- manageMissingFonts?: ManageMissingFonts & unknown;
1810
- /**
1811
- * The PostScript name of the font to be used as the global default. If this font is also missing, the option specified in `manageMissingFonts` will take effect
1812
- */
1813
- globalFont?: string;
1814
- /**
1815
- * array of custom fonts needed in this document
1816
- */
1817
- fonts?: Array<StorageDetails>;
1818
- document?: OperationDocument;
1819
- /**
1820
- * Array of layers to be created in the document.
1821
- */
1822
- layers?: Array<DocumentOperationLayer>;
1823
- };
1824
- /**
1825
- * SmartObjectOptions
1826
- */
1827
- type SmartObjectOptions = {
1828
- /**
1829
- * Array of Smart Object layers to be created in the document
1830
- */
1831
- layers: Array<SmartObjectLayer>;
1832
- };
1833
- /**
1834
- * ActionOptions
1835
- */
1836
- type ActionOptions = {
1837
- /**
1838
- * Array of Photoshop Actions to play.
1839
- */
1840
- actions: Array<Action>;
1841
- /**
1842
- * array of custom pattern preset to be used in Photoshop Actions
1843
- */
1844
- patterns?: Array<StorageDetails>;
1845
- /**
1846
- * array of custom fonts needed in this document
1847
- */
1848
- fonts?: Array<StorageDetails>;
1849
- /**
1850
- * array of custom brushes needed in this document
1851
- */
1852
- brushes?: Array<StorageDetails>;
1853
- };
1854
- /**
1855
- * ActionJsonOptions
1856
- */
1857
- type ActionJsonOptions = {
1858
- /**
1859
- * Array of Photoshop JSON-formatted Actions to play.
1860
- */
1861
- actionJSON: Array<{
1862
- [key: string]: unknown;
1863
- }>;
1864
- /**
1865
- * array of custom pattern preset to be used in Photoshop Actions
1866
- */
1867
- patterns?: Array<StorageDetails>;
1868
- /**
1869
- * array of custom fonts needed in this document
1870
- */
1871
- fonts?: Array<StorageDetails>;
1872
- /**
1873
- * array of custom brushes needed in this document
1874
- */
1875
- brushes?: Array<StorageDetails>;
1876
- /**
1877
- * Array of references to additional images, which can be referred by actionJson commands.
1878
- */
1879
- additionalImages?: Array<StorageDetails>;
1880
- };
1881
- /**
1882
- * ActionJsonCreateOptions
1883
- *
1884
- * This block is needed only if you want to specify which action to convert from the ActionSet.
1885
- */
1886
- type ActionJsonCreateOptions = {
1887
- /**
1888
- * Array of action objects.
1889
- */
1890
- actions: [ActionDetails];
1891
- };
1892
- /**
1893
- * CropOptions
1894
- */
1895
- type CropOptions = {
1896
- unit: UnitType & unknown;
1897
- /**
1898
- * The width to be added as padding.
1899
- */
1900
- width: number;
1901
- /**
1902
- * The height to be added as padding.
1903
- */
1904
- height: number;
1905
- };
1906
- /**
1907
- * DepthBlurDetails
1908
- */
1909
- type DepthBlurDetails = {
1910
- /**
1911
- * The distance of the point to be in focus. 0 would be the nearest point, 100 would be the furthest point.
1912
- */
1913
- focalDistance?: number;
1914
- /**
1915
- * The range of the focal point.
1916
- */
1917
- focalRange?: number;
1918
- focalSelector?: FocalSelector & unknown;
1919
- /**
1920
- * If enabled uses select subject to automatically select the prominent subject for focus. Also would override focalDistance.
1921
- */
1922
- focusSubject?: boolean;
1923
- /**
1924
- * The amount of blur to apply.
1925
- */
1926
- blurStrength?: number;
1927
- /**
1928
- * The amount of haze to apply.
1929
- */
1930
- haze?: number;
1931
- /**
1932
- * The value of the temperature to apply. -50 would be coldest and 50 would be the warmest setting.
1933
- */
1934
- temp?: number;
1935
- /**
1936
- * The amount of the tint to apply.
1937
- */
1938
- tint?: number;
1939
- /**
1940
- * The amount of the saturation to apply. -50 implies fully unsaturated colors and 50 will fully saturate the colors.
1941
- */
1942
- saturation?: number;
1943
- /**
1944
- * The amount of the brightness to apply.
1945
- */
1946
- brightness?: number;
1947
- /**
1948
- * The amount of the graining to add to the image.
1949
- */
1950
- grain?: number;
1951
- };
1952
- /**
1953
- * TextOptions
1954
- */
1955
- type TextOptions = {
1956
- manageMissingFonts?: ManageMissingFonts & unknown;
1957
- /**
1958
- * The PostScript name of the font to be used as the global default. If this font is also missing, the option specified in `manageMissingFonts` will take effect
1959
- */
1960
- globalFont?: string;
1961
- /**
1962
- * Array of text layer objects you wish to act upon.
1963
- */
1964
- layers: Array<TextOptionsLayer>;
1965
- /**
1966
- * Array of custom fonts needed in this document.
1967
- */
1968
- fonts?: Array<StorageDetails>;
1969
- };
1970
- /**
1971
- * ArtboardDetails
1972
- */
1973
- type ArtboardDetails = {
1974
- /**
1975
- * An array of hashes describing the input files to edit. Each input object will be either 'external', 'adobe', 'azure' or 'dropbox'.
1976
- */
1977
- artboard: Array<StorageDetails>;
1978
- };
1979
- /**
1980
- * OrientationType
1981
- *
1982
- * The text orientation.
1983
- */
1984
- type OrientationType = 'horizontal' | 'vertical';
1985
- /**
1986
- * ManifestJobStatusOutputDetails
1987
- */
1988
- type ManifestJobStatusOutputDetails = {
1989
- /**
1990
- * the original input href
1991
- */
1992
- input?: string;
1993
- /**
1994
- * Created timestamp of the job (YYYY-DD-MMThh:mm:ss.mmmmmZ)
1995
- */
1996
- created?: string;
1997
- /**
1998
- * Modified timestamp of the job (YYYY-DD-MMThh:mm:ss.mmmmmZ)
1999
- */
2000
- modified?: string;
2001
- status?: JobStatus;
2002
- document?: ManifestJobDocumentDetails;
2003
- /**
2004
- * A tree of layer objects representing the PSD layer structure extracted from the PSD document.
2005
- */
2006
- layers?: Array<LayerDetails>;
2007
- };
2008
- /**
2009
- * JobOutputDetails
2010
- */
2011
- type JobOutputDetails = {
2012
- /**
2013
- * the original input href
2014
- */
2015
- input?: string;
2016
- /**
2017
- * Created timestamp of the job (YYYY-DD-MMThh:mm:ss.mmmmmZ)
2018
- */
2019
- created?: string;
2020
- /**
2021
- * Modified timestamp of the job (YYYY-DD-MMThh:mm:ss.mmmmmZ)
2022
- */
2023
- modified?: string;
2024
- status?: JobOutputStatus;
2025
- _links?: RenditionLinks;
2026
- };
2027
- /**
2028
- * ColorProfileType
2029
- *
2030
- * The name of the color profile.
2031
- */
2032
- type ColorProfileType = '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';
2033
- /**
2034
- * SelfLink
2035
- *
2036
- * Self link.
2037
- */
2038
- type SelfLink = {
2039
- /**
2040
- * Job Status URL.
2041
- */
2042
- href?: string;
2043
- };
2044
- /**
2045
- * SmartObject
2046
- *
2047
- * An object describing the attributes specific to creating or editing a smart object. `SmartObject` properties operate on the input smart object file. When creating a linked smart object, this is a required. When creating an embedded smart object, it is optional.
2048
- */
2049
- type SmartObject = {
2050
- /**
2051
- * Indicates if this Smart Object is linked. Currently we support Embedded Smart Object only which means "linked = false".
2052
- */
2053
- linked?: boolean;
2054
- };
2055
- /**
2056
- * JobStatus
2057
- *
2058
- * Job status.
2059
- */
2060
- type JobStatus = 'pending' | 'running' | 'succeeded' | 'failed';
2061
- /**
2062
- * JobOutputStatus
2063
- *
2064
- * The child job status. Using `pending` - the request has been accepted and is waiting to start. Using `running` - the child job is running. Using `uploading` - files have been generated and are uploading to destination. Using `succeeded` - the child job has succeeded. Using `failed` - the child job has failed.
2065
- */
2066
- type JobOutputStatus = 'pending' | 'running' | 'uploading' | 'succeeded' | 'failed';
2067
- /**
2068
- * StorageType
2069
- *
2070
- * Storage platforms supported.
2071
- */
2072
- type StorageType = 'external' | 'azure' | 'dropbox';
2073
- /**
2074
- * TextDetails
2075
- *
2076
- * Supported text layer attributes.
2077
- */
2078
- type TextDetails = {
2079
- /**
2080
- * The content of the text layer.
2081
- */
2082
- content?: string;
2083
- orientation?: OrientationType;
2084
- /**
2085
- * The text's rotation in angle.
2086
- */
2087
- rotate?: number;
2088
- antiAlias?: AntiAliasType & unknown;
2089
- eastAsianFeatures?: EastAsianFeatures & unknown;
2090
- /**
2091
- * Array of character style objects. Any of the `characterStyles` property is required.
2092
- */
2093
- characterStyles?: Array<CharacterStyleDetails>;
2094
- /**
2095
- * Array of paragraph style objects. Any of the `paragraphStyles` properties is required.
2096
- */
2097
- paragraphStyles?: Array<ParagraphStyleDetails>;
2098
- textType?: TextType & unknown;
2099
- };
2100
- /**
2101
- * TextStyleType
2102
- *
2103
- * Base line direction for text style.
2104
- */
2105
- type TextStyleType = 'cross' | 'rotated' | 'withSream';
2106
- /**
2107
- * TextType
2108
- *
2109
- * The type of text's contents, point or paragraph.
2110
- */
2111
- type TextType = 'point' | 'paragraph';
2112
- /**
2113
- * Thumbnails
2114
- *
2115
- * Include pre-signed GET URLs to small preview thumbnails for any renderable layer.
2116
- */
2117
- type Thumbnails = {
2118
- type?: ThumbnailType & unknown;
2119
- };
2120
- /**
2121
- * Trim
2122
- */
2123
- type Trim = {
2124
- basedOn: BasedOnType;
2125
- };
2126
- /**
2127
- * TrimToCanvasType
2128
- *
2129
- * Use this if the renditions needs to be of Canvas size. Using `True` trims the renditions to Canvas size, while `False` makes the renditions Layer Size.
2130
- */
2131
- type TrimToCanvasType = true | false;
2132
- /**
2133
- * ImageFormatType
2134
- *
2135
- * The desired image format. Using `image/vnd.adobe.photoshop` - create a new PSD file. Using `image/jpeg`, `image/png`, `image/tiff` - create a new JPEG, PNG or TIFF rendition. Certain image modes (RGB, CMYK, greyscale, etc.) must be converted to another image mode before a rendition can be created. With TIFF requested, Multichannel and Duotone will convert to RGB. With PNG requested, CMYK, HSL, HSB, Multichannel, Duotone, Lab and XYZ will convert to RGB.
2136
- */
2137
- type ImageFormatType = 'image/vnd.adobe.photoshop' | 'image/jpeg' | 'image/png' | 'image/tiff' | 'vnd.adobe.photoshop';
2138
- /**
2139
- * LayerType
2140
- *
2141
- * The layer type. Using `layer` - a pixel layer. Using `textLayer` - a text layer. Using `adjustmentLayer` - an adjustment layer. Using `layerSection` - a grouping layer. Using `smartObject` - a smart object. Using `backgroundLayer` - a background layer. Using `fillLayer` - a fill layer.
2142
- */
2143
- type LayerType = 'layer' | 'textLayer' | 'adjustmentLayer' | 'smartObject' | 'fillLayer' | 'backgroundLayer' | 'layerSection';
2144
- /**
2145
- * ThumbnailType
2146
- *
2147
- * Desired image format.
2148
- */
2149
- type ThumbnailType = 'image/jpeg' | 'image/png' | 'image/tiff';
2150
- /**
2151
- * UnitType
2152
- *
2153
- * Unit for width and height.
2154
- */
2155
- type UnitType = 'Pixels' | 'Percent';
2156
- /**
2157
- * HorizontalAlignType
2158
- *
2159
- * Indicates the relative horizontal position of the layer with respect to the canvas of the document.
2160
- */
2161
- type HorizontalAlignType = 'left' | 'center' | 'right';
2162
- /**
2163
- * VerticalAlignType
2164
- *
2165
- * Indicates the relative vertical position of the layer with respect to the canvas of the document.
2166
- */
2167
- type VerticalAlignType = 'top' | 'center' | 'bottom';
2168
- type UrlResource = {
2169
- /**
2170
- * The URL of the resource. Only these listed domains are accepted in the request:
2171
- * <ul><li><code>amazonaws.com</code></li><li><code>windows.net</code></li><li><code>dropboxusercontent.com</code></li><li><code>assets.frame.io</code></li><li><code>storage.googleapis.com</code></li></ul>
2172
- */
2173
- url: string;
2174
- };
2175
- type RemoveBgInputImage = {
2176
- /**
2177
- * The source path for the input image. Dimensions of the image should not be greater than 6000px X 6000px. The image media type must be `image/jpeg`, `image/png`, `image/webp`, or `image/tiff`.
2178
- */
2179
- source: UrlResource;
2180
- };
2181
- /**
2182
- * The mode of background removal.
2183
- */
2184
- type RemoveBgMode = 'cutout' | 'mask' | 'psd';
2185
- /**
2186
- * The media type of the output image. By default this will match the input source file format.
2187
- */
2188
- type RemoveBgOutputImageMediaType = 'image/jpeg' | 'image/png' | 'image/webp' | 'image/vnd.adobe.photoshop';
2189
- type RemoveBgOutputImageOptions = {
2190
- mediaType?: RemoveBgOutputImageMediaType;
2191
- };
2192
- type RemoveBgColor = {
2193
- /**
2194
- * The red value of the color.
2195
- */
2196
- red: number;
2197
- /**
2198
- * The green value of the color.
2199
- */
2200
- green: number;
2201
- /**
2202
- * The blue value of the color.
2203
- */
2204
- blue: number;
2205
- /**
2206
- * The transparency value. 0 is fully transparent and 1 is fully opaque.
2207
- */
2208
- alpha: number;
2209
- };
2210
- type RemoveBackgroundV2Request = {
2211
- /**
2212
- * The image to be processed.
2213
- */
2214
- image: RemoveBgInputImage;
2215
- mode?: RemoveBgMode;
2216
- /**
2217
- * The options for the output image.
2218
- */
2219
- output?: RemoveBgOutputImageOptions;
2220
- /**
2221
- * If true, the image returned is cropped to the cutout border. Transparent pixels are removed.
2222
- */
2223
- trim?: boolean;
2224
- /**
2225
- * The background color.
2226
- */
2227
- backgroundColor?: RemoveBgColor;
2228
- /**
2229
- * If the value is greater than 0, automatically removes colored reflections that have been left on the main subject by the background.
2230
- */
2231
- colorDecontamination?: number;
2232
- };
2233
- type JobLinkResponse = {
2234
- /**
2235
- * The job ID for the asynchronous job.
2236
- */
2237
- jobId: string;
2238
- /**
2239
- * The URL to check the status of the asynchronous job.
2240
- */
2241
- statusUrl: string;
2242
- };
2243
- type JobStatusPollPayload = {
2244
- status: JobStatus;
2245
- /**
2246
- * The job ID.
2247
- */
2248
- jobId: string;
2249
- };
2250
- /**
2251
- * Succeeded
2252
- */
2253
- type JobStatusSucceededResponse = {
2254
- status: 'succeeded';
2255
- /**
2256
- * The job ID.
2257
- */
2258
- jobId: string;
2259
- result: {
2260
- outputs?: Array<{
2261
- destination?: {
2262
- /**
2263
- * The output URL
2264
- */
2265
- url?: string;
2266
- };
2267
- /**
2268
- * The media type of the output
2269
- */
2270
- mediaType?: string;
2271
- }>;
2272
- };
2273
- };
2274
- type FillMaskedAreasInputImage = {
2275
- /**
2276
- * The source of the input image. Dimensions of the image should not be greater than (4000px X 4000px).
2277
- */
2278
- source: UrlResource;
2279
- };
2280
- type FillMaskedAreasRequest = {
2281
- /**
2282
- * The image to be processed.
2283
- */
2284
- image: FillMaskedAreasInputImage;
2285
- /**
2286
- * The areas of the image represented by this list of masks will be inpainted.
2287
- */
2288
- masks: Array<FillMaskedAreasInputImage>;
2289
- };
2290
- /**
2291
- * The media type of the input image.
2292
- */
2293
- type MaskBodyPartsImageMediaType = 'image/jpeg' | 'image/png';
2294
- type MaskBodyPartsInputImage = {
2295
- /**
2296
- * The source of the input image. Dimensions of the image should not be greater than (4000px X 4000px).
2297
- */
2298
- source: UrlResource;
2299
- };
2300
- /**
2301
- * The media type of the mask.
2302
- */
2303
- type MaskBodyPartsMaskMediaType = 'image/png';
2304
- type MaskBodyPartsInputMask = {
2305
- /**
2306
- * The URL of the mask. Dimensions of the mask should not be greater than (4000px X 4000px).
2307
- */
2308
- source: UrlResource;
2309
- };
2310
- type MaskBodyPartsRequest = {
2311
- /**
2312
- * The input image.
2313
- */
2314
- image: MaskBodyPartsInputImage;
2315
- /**
2316
- * The mask of the subject in the input image.
2317
- */
2318
- mask: MaskBodyPartsInputMask;
2319
- };
2320
- /**
2321
- * The media type of the input image.
2322
- */
2323
- type MaskObjectsInputImageMediaType = 'image/jpeg' | 'image/png';
2324
- type MaskObjectsInputImage = {
2325
- /**
2326
- * The source of the input image. Dimensions of the image should not be greater than (4000px X 4000px).
2327
- */
2328
- source: UrlResource;
2329
- };
2330
- type MaskObjectsRequest = {
2331
- /**
2332
- * The input image.
2333
- */
2334
- image: MaskObjectsInputImage;
2335
- };
2336
- /**
2337
- * The media type of the input image.
2338
- */
2339
- type RefineMaskImageMediaType = 'image/jpeg' | 'image/png';
2340
- type RefineMaskInputImage = {
2341
- /**
2342
- * The source of the input image. Dimensions of the image should not be greater than (4000px X 4000px).
2343
- */
2344
- source: UrlResource;
2345
- };
2346
- type RefineMaskRequest = {
2347
- /**
2348
- * The input image.
2349
- */
2350
- image: RefineMaskInputImage;
2351
- /**
2352
- * The mask in the input image that needs to be refined.
2353
- */
2354
- mask: RefineMaskInputImage;
2355
- /**
2356
- * When `true`, this returns an RGBA image where the masked area has been further refined with color decontamination. A `false` value (default) means that the output will simply be the refined mask.
2357
- */
2358
- colorDecontamination?: boolean;
2359
- };
2360
- type OutputImageDetails = {
2361
- /**
2362
- * Details of the location where the output image is located.
2363
- */
2364
- destination: UrlResource;
2365
- /**
2366
- * Media type of the output image.
2367
- */
2368
- mediaType: 'image/jpeg' | 'image/png';
2369
- };
2370
- type FillMaskedAreasJobApiResponse = {
2371
- status: JobStatus;
2372
- /**
2373
- * The job ID.
2374
- */
2375
- jobId: string;
2376
- /**
2377
- * The output image.
2378
- */
2379
- image: OutputImageDetails;
2380
- };
2381
- type ImageBoundingBox = {
2382
- /**
2383
- * The x coordinate of the upper-left corner of the bounding box. The origin (0,0) is at the upper-left corner of the image.
2384
- */
2385
- x: number;
2386
- /**
2387
- * The y coordinate of the upper-left corner of the bounding box. The origin (0,0) is at the upper-left corner of the image.
2388
- */
2389
- y: number;
2390
- /**
2391
- * The width of the bounding box, starting from the x coordinate.
2392
- */
2393
- width: number;
2394
- /**
2395
- * The height of the bounding box, starting from the y coordinate.
2396
- */
2397
- height: number;
2398
- };
2399
- type MaskBodyPartsOutputImage = {
2400
- /**
2401
- * The label of the identified body part.
2402
- */
2403
- label: string;
2404
- /**
2405
- * The bounding box of the identified body part.
2406
- */
2407
- boundingBox: ImageBoundingBox;
2408
- /**
2409
- * The probability or confidence score of the match.
2410
- */
2411
- score: number;
2412
- /**
2413
- * Details of the location where the mask of the identified body part is located.
2414
- */
2415
- destination: UrlResource;
2416
- /**
2417
- * Media type of the mask of the identified body part.
2418
- */
2419
- mediaType: 'image/png';
2420
- };
2421
- type MaskBodyPartsJobApiResponse = {
2422
- status: JobStatus;
2423
- /**
2424
- * The job ID.
2425
- */
2426
- jobId: string;
2427
- /**
2428
- * An array of output image masks.
2429
- */
2430
- masks: Array<MaskBodyPartsOutputImage>;
2431
- };
2432
- type MaskObjectsOutputImage = {
2433
- /**
2434
- * The label of the identified object or area of interest.
2435
- */
2436
- label: string;
2437
- /**
2438
- * The bounding box of the object or area of interest.
2439
- */
2440
- boundingBox: ImageBoundingBox;
2441
- /**
2442
- * The probability or confidence score of the match.
2443
- */
2444
- score: number;
2445
- /**
2446
- * Details of the location where the mask is located.
2447
- */
2448
- destination: UrlResource;
2449
- /**
2450
- * Media type of the mask.
2451
- */
2452
- mediaType: 'image/png';
2453
- };
2454
- type MaskObjectsJobApiResponse = {
2455
- status: JobStatus;
2456
- /**
2457
- * The job ID.
2458
- */
2459
- jobId: string;
2460
- /**
2461
- * List of masks representing foreground objects.
2462
- */
2463
- semanticMasks: Array<MaskObjectsOutputImage>;
2464
- /**
2465
- * List of masks representing background regions.
2466
- */
2467
- backgroundMasks: Array<MaskObjectsOutputImage>;
2468
- };
2469
- type RefineMaskOutputImage = {
2470
- /**
2471
- * Details of the location where the refined mask or image is located.
2472
- */
2473
- destination: UrlResource;
2474
- /**
2475
- * Media type of the refined mask or image.
2476
- */
2477
- mediaType: 'image/jpeg' | 'image/png';
2478
- /**
2479
- * The bounding box of the refined mask or image.
2480
- */
2481
- boundingBox: ImageBoundingBox;
2482
- };
2483
- type RefineMaskJobApiResponse = {
2484
- status: JobStatus;
2485
- /**
2486
- * The job ID.
2487
- */
2488
- jobId: string;
2489
- /**
2490
- * The refined mask. This will only be attached to the response when mask is specified as an input. Only applicable when colorDecontamination is false.
2491
- */
2492
- mask?: RefineMaskOutputImage;
2493
- /**
2494
- * The image with color decontamination. This will only be attached to the response when mask is specified as an input. Only applicable when colorDecontamination is true.
2495
- */
2496
- image?: RefineMaskOutputImage;
2497
- };
2498
- type JobStatusResponse = {
2499
- status: JobStatus;
2500
- /**
2501
- * The results of the job if completed.
2502
- */
2503
- results: {
2504
- [key: string]: unknown;
2505
- };
2506
- };
2507
- /**
2508
- * Response when a job is currently being processed. The job has started but is not yet complete.
2509
- */
2510
- type JobStatusRunning = {
2511
- /**
2512
- * The job ID.
2513
- */
2514
- jobId: string;
2515
- /**
2516
- * The status of the job.
2517
- */
2518
- status: 'running';
2519
- };
2520
- /**
2521
- * Response when a job has completed successfully. In addition to the jobId and status, the response includes the results of the job which vary depending on the operation.
2522
- */
2523
- type JobStatusSucceeded = {
2524
- /**
2525
- * The job ID.
2526
- */
2527
- jobId: string;
2528
- /**
2529
- * The status of the job.
2530
- */
2531
- status: 'succeeded';
2532
- };
2533
- /**
2534
- * Response when a job has failed during processing. Contains error details explaining what went wrong.
2535
- */
2536
- type JobStatusFailed = {
2537
- /**
2538
- * The job ID.
2539
- */
2540
- jobId: string;
2541
- /**
2542
- * The status of the job.
2543
- */
2544
- status: 'failed';
2545
- /**
2546
- * The error code.
2547
- */
2548
- error_code: string;
2549
- /**
2550
- * The error message.
2551
- */
2552
- message: string;
2553
- };
2554
- /**
2555
- * Response when a job has been created but processing has not yet begun. This status indicates the job is queued and waiting to start.
2556
- */
2557
- type JobStatusNotStarted = {
2558
- /**
2559
- * The job ID.
2560
- */
2561
- jobId: string;
2562
- /**
2563
- * The status of the job.
2564
- */
2565
- status: 'not_started';
2566
- };
2567
- type SenseiJobStatusData = {
2568
- body?: never;
2569
- headers?: {
2570
- /**
2571
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
2572
- */
2573
- 'x-gw-ims-org-id'?: string;
2574
- };
2575
- path: {
2576
- /**
2577
- * The job ID.
2578
- */
2579
- jobId: string;
2580
- };
2581
- query?: never;
2582
- url: '/sensei/status/{jobId}';
2583
- };
2584
- type SenseiJobStatusResponses = {
2585
- /**
2586
- * Job status
2587
- */
2588
- 200: SenseiJobApiResponse;
2589
- };
2590
- type SenseiJobStatusResponse = SenseiJobStatusResponses[keyof SenseiJobStatusResponses];
2591
- type RemoveBackgroundAsyncData = {
2592
- /**
2593
- * The input image and the cutout mask parameters
2594
- */
2595
- body: RemoveBackgroundRequest;
2596
- headers?: {
2597
- /**
2598
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
2599
- */
2600
- 'x-gw-ims-org-id'?: string;
2601
- };
2602
- path?: never;
2603
- query?: never;
2604
- url: '/sensei/cutout';
2605
- };
2606
- type RemoveBackgroundAsyncErrors = {
2607
- /**
2608
- * Input Validation Error
2609
- */
2610
- 400: InputValidationError;
2611
- /**
2612
- * Trial Limit Exceeded Error
2613
- */
2614
- 402: TrialLimitExceededError;
2615
- /**
2616
- * Unauthorized
2617
- */
2618
- 403: JobError;
2619
- /**
2620
- * Requested Resource Was Not Found
2621
- */
2622
- 404: JobError;
2623
- /**
2624
- * Unable to upload asset
2625
- */
2626
- 409: JobError;
2627
- /**
2628
- * Asset Link Invalid
2629
- */
2630
- 410: JobError;
2631
- /**
2632
- * Too many requests
2633
- */
2634
- 429: JobError;
2635
- /**
2636
- * Internal Server Error
2637
- */
2638
- 500: JobError;
2639
- };
2640
- type RemoveBackgroundAsyncError = RemoveBackgroundAsyncErrors[keyof RemoveBackgroundAsyncErrors];
2641
- type RemoveBackgroundAsyncResponses = {
2642
- /**
2643
- * Success
2644
- */
2645
- 202: JobStatusLinkResponse;
2646
- };
2647
- type RemoveBackgroundAsyncResponse = RemoveBackgroundAsyncResponses[keyof RemoveBackgroundAsyncResponses];
2648
- type RemoveBackgroundData = {
2649
- body: RemoveBackgroundV2Request;
2650
- headers: {
2651
- /**
2652
- * The bearer token for the user. This is the access token.
2653
- */
2654
- Authorization: string;
2655
- /**
2656
- * The API key/Client ID
2657
- */
2658
- 'x-api-key': string;
2659
- /**
2660
- * The content type of the request. The value is `application/json`.
2661
- */
2662
- 'Content-Type': string;
2663
- };
2664
- path?: never;
2665
- query?: never;
2666
- url: '/v2/remove-background';
2667
- };
2668
- type RemoveBackgroundErrors = {
2669
- /**
2670
- * Unauthorized
2671
- */
2672
- 401: JobError;
2673
- /**
2674
- * Forbidden
2675
- */
2676
- 403: JobError;
2677
- /**
2678
- * Too Many Requests
2679
- */
2680
- 429: JobError;
2681
- /**
2682
- * Internal Server Error
2683
- */
2684
- 500: JobError;
2685
- };
2686
- type RemoveBackgroundError = RemoveBackgroundErrors[keyof RemoveBackgroundErrors];
2687
- type RemoveBackgroundResponses = {
2688
- /**
2689
- * Accepted
2690
- */
2691
- 202: JobLinkResponse;
2692
- };
2693
- type RemoveBackgroundResponse = RemoveBackgroundResponses[keyof RemoveBackgroundResponses];
2694
- type FacadeJobStatusData = {
2695
- body?: never;
2696
- path: {
2697
- /**
2698
- * The job ID from the response of the Remove Background API call.
2699
- */
2700
- jobId: string;
2701
- };
2702
- query?: never;
2703
- url: '/v2/status/{jobId}';
2704
- };
2705
- type FacadeJobStatusErrors = {
2706
- /**
2707
- * Bad Request
2708
- */
2709
- 400: JobError;
2710
- /**
2711
- * Requested Resource Was Not Found
2712
- */
2713
- 404: JobError;
2714
- /**
2715
- * Internal Server Error
2716
- */
2717
- 500: JobError;
2718
- };
2719
- type FacadeJobStatusError = FacadeJobStatusErrors[keyof FacadeJobStatusErrors];
2720
- type FacadeJobStatusResponses = {
2721
- /**
2722
- * Success
2723
- */
2724
- 200: JobStatusPollPayload | JobStatusSucceededResponse;
2725
- };
2726
- type FacadeJobStatusResponse = FacadeJobStatusResponses[keyof FacadeJobStatusResponses];
2727
- type CreateMaskAsyncData = {
2728
- /**
2729
- * The input image and the mask parameters
2730
- */
2731
- body: CreateMaskRequest;
2732
- headers?: {
2733
- /**
2734
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
2735
- */
2736
- 'x-gw-ims-org-id'?: string;
2737
- };
2738
- path?: never;
2739
- query?: never;
2740
- url: '/sensei/mask';
2741
- };
2742
- type CreateMaskAsyncErrors = {
2743
- /**
2744
- * Input Validation Error
2745
- */
2746
- 400: InputValidationError;
2747
- /**
2748
- * Trial Limit Exceeded Error
2749
- */
2750
- 402: TrialLimitExceededError;
2751
- /**
2752
- * Unauthorized
2753
- */
2754
- 403: JobError;
2755
- /**
2756
- * Requested Resource Was Not Found
2757
- */
2758
- 404: JobError;
2759
- /**
2760
- * Unable to upload asset
2761
- */
2762
- 409: JobError;
2763
- /**
2764
- * Asset Link Invalid
2765
- */
2766
- 410: JobError;
2767
- /**
2768
- * Too many requests
2769
- */
2770
- 429: JobError;
2771
- /**
2772
- * Internal Server Error
2773
- */
2774
- 500: JobError;
2775
- };
2776
- type CreateMaskAsyncError = CreateMaskAsyncErrors[keyof CreateMaskAsyncErrors];
2777
- type CreateMaskAsyncResponses = {
2778
- /**
2779
- * Success
2780
- */
2781
- 202: JobStatusLinkResponse;
2782
- };
2783
- type CreateMaskAsyncResponse = CreateMaskAsyncResponses[keyof CreateMaskAsyncResponses];
2784
- type PsJobStatusData = {
2785
- body?: never;
2786
- headers?: {
2787
- /**
2788
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
2789
- */
2790
- 'x-gw-ims-org-id'?: string;
2791
- };
2792
- path: {
2793
- /**
2794
- * The job ID.
2795
- */
2796
- jobId: string;
2797
- };
2798
- query?: never;
2799
- url: '/pie/psdService/status/{jobId}';
2800
- };
2801
- type PsJobStatusResponses = {
2802
- /**
2803
- * Job Status
2804
- */
2805
- 200: PsJobResponse;
2806
- };
2807
- type PsJobStatusResponse = PsJobStatusResponses[keyof PsJobStatusResponses];
2808
- type GetDocumentManifestAsyncData = {
2809
- /**
2810
- * The PSD file with the layer information you want to extract.
2811
- */
2812
- body: DocumentManifestRequest;
2813
- headers?: {
2814
- /**
2815
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
2816
- */
2817
- 'x-gw-ims-org-id'?: string;
2818
- };
2819
- path?: never;
2820
- query?: never;
2821
- url: '/pie/psdService/documentManifest';
2822
- };
2823
- type GetDocumentManifestAsyncErrors = {
2824
- /**
2825
- * Input Validation Error
2826
- */
2827
- 400: InputValidationError;
2828
- /**
2829
- * Trial Limit Exceeded Error
2830
- */
2831
- 402: TrialLimitExceededError;
2832
- /**
2833
- * Forbidden
2834
- */
2835
- 403: JobError;
2836
- /**
2837
- * Requested Resource Was Not Found
2838
- */
2839
- 404: JobError;
2840
- /**
2841
- * Internal Server Error
2842
- */
2843
- 500: JobError;
2844
- };
2845
- type GetDocumentManifestAsyncError = GetDocumentManifestAsyncErrors[keyof GetDocumentManifestAsyncErrors];
2846
- type GetDocumentManifestAsyncResponses = {
2847
- /**
2848
- * Success
2849
- */
2850
- 202: JobStatusLinkResponse;
2851
- };
2852
- type GetDocumentManifestAsyncResponse = GetDocumentManifestAsyncResponses[keyof GetDocumentManifestAsyncResponses];
2853
- type CreateDocumentAsyncData = {
2854
- /**
2855
- * The input psd file to create a new psd from
2856
- */
2857
- body: CreateDocumentRequest;
2858
- headers?: {
2859
- /**
2860
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
2861
- */
2862
- 'x-gw-ims-org-id'?: string;
2863
- };
2864
- path?: never;
2865
- query?: never;
2866
- url: '/pie/psdService/documentCreate';
2867
- };
2868
- type CreateDocumentAsyncErrors = {
2869
- /**
2870
- * Input Validation Error
2871
- */
2872
- 400: InputValidationError;
2873
- /**
2874
- * Trial Limit Exceeded Error
2875
- */
2876
- 402: TrialLimitExceededError;
2877
- /**
2878
- * Forbidden
2879
- */
2880
- 403: JobError;
2881
- /**
2882
- * Requested Resource Was Not Found
2883
- */
2884
- 404: JobError;
2885
- /**
2886
- * Unable to upload asset
2887
- */
2888
- 409: JobError;
2889
- /**
2890
- * Asset Link Invalid
2891
- */
2892
- 410: JobError;
2893
- /**
2894
- * Internal Server Error
2895
- */
2896
- 500: JobError;
2897
- };
2898
- type CreateDocumentAsyncError = CreateDocumentAsyncErrors[keyof CreateDocumentAsyncErrors];
2899
- type CreateDocumentAsyncResponses = {
2900
- /**
2901
- * Success
2902
- */
2903
- 202: JobStatusLinkResponse;
2904
- };
2905
- type CreateDocumentAsyncResponse = CreateDocumentAsyncResponses[keyof CreateDocumentAsyncResponses];
2906
- type ModifyDocumentAsyncData = {
2907
- /**
2908
- * The input psd file to apply edits to and generate renditions and/or save as a new psd
2909
- */
2910
- body: ModifyDocumentRequest;
2911
- headers?: {
2912
- /**
2913
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
2914
- */
2915
- 'x-gw-ims-org-id'?: string;
2916
- };
2917
- path?: never;
2918
- query?: never;
2919
- url: '/pie/psdService/documentOperations';
2920
- };
2921
- type ModifyDocumentAsyncErrors = {
2922
- /**
2923
- * Input Validation Error
2924
- */
2925
- 400: InputValidationError;
2926
- /**
2927
- * Trial Limit Exceeded Error
2928
- */
2929
- 402: TrialLimitExceededError;
2930
- /**
2931
- * Forbidden
2932
- */
2933
- 403: JobError;
2934
- /**
2935
- * Requested Resource Was Not Found
2936
- */
2937
- 404: JobError;
2938
- /**
2939
- * Unable to upload asset
2940
- */
2941
- 409: JobError;
2942
- /**
2943
- * Asset Link Invalid
2944
- */
2945
- 410: JobError;
2946
- /**
2947
- * Internal Server Error
2948
- */
2949
- 500: JobError;
2950
- };
2951
- type ModifyDocumentAsyncError = ModifyDocumentAsyncErrors[keyof ModifyDocumentAsyncErrors];
2952
- type ModifyDocumentAsyncResponses = {
2953
- /**
2954
- * Success
2955
- */
2956
- 202: JobStatusLinkResponse;
2957
- };
2958
- type ModifyDocumentAsyncResponse = ModifyDocumentAsyncResponses[keyof ModifyDocumentAsyncResponses];
2959
- type CreateRenditionAsyncData = {
2960
- /**
2961
- * The input psd file to create renditions from
2962
- */
2963
- body: CreateRenditionRequest;
2964
- headers?: {
2965
- /**
2966
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
2967
- */
2968
- 'x-gw-ims-org-id'?: string;
2969
- };
2970
- path?: never;
2971
- query?: never;
2972
- url: '/pie/psdService/renditionCreate';
2973
- };
2974
- type CreateRenditionAsyncErrors = {
2975
- /**
2976
- * Input Validation Error
2977
- */
2978
- 400: InputValidationError;
2979
- /**
2980
- * Trial Limit Exceeded Error
2981
- */
2982
- 402: TrialLimitExceededError;
2983
- /**
2984
- * Forbidden
2985
- */
2986
- 403: JobError;
2987
- /**
2988
- * Requested Resource Was Not Found
2989
- */
2990
- 404: JobError;
2991
- /**
2992
- * Unable to upload asset
2993
- */
2994
- 409: JobError;
2995
- /**
2996
- * Asset Link Invalid
2997
- */
2998
- 410: JobError;
2999
- /**
3000
- * Internal Server Error
3001
- */
3002
- 500: JobError;
3003
- };
3004
- type CreateRenditionAsyncError = CreateRenditionAsyncErrors[keyof CreateRenditionAsyncErrors];
3005
- type CreateRenditionAsyncResponses = {
3006
- /**
3007
- * Success
3008
- */
3009
- 202: JobStatusLinkResponse;
3010
- };
3011
- type CreateRenditionAsyncResponse = CreateRenditionAsyncResponses[keyof CreateRenditionAsyncResponses];
3012
- type ReplaceSmartObjectAsyncData = {
3013
- /**
3014
- * The input psd file to apply edits for replacing embedded smart object to and generate renditions and/or save as a new psd
3015
- */
3016
- body: ReplaceSmartObjectRequest;
3017
- headers?: {
3018
- /**
3019
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
3020
- */
3021
- 'x-gw-ims-org-id'?: string;
3022
- };
3023
- path?: never;
3024
- query?: never;
3025
- url: '/pie/psdService/smartObject';
3026
- };
3027
- type ReplaceSmartObjectAsyncErrors = {
3028
- /**
3029
- * Input Validation Error
3030
- */
3031
- 400: InputValidationError;
3032
- /**
3033
- * Trial Limit Exceeded Error
3034
- */
3035
- 402: TrialLimitExceededError;
3036
- /**
3037
- * Forbidden
3038
- */
3039
- 403: JobError;
3040
- /**
3041
- * Requested Resource Was Not Found
3042
- */
3043
- 404: JobError;
3044
- /**
3045
- * Unable to upload asset
3046
- */
3047
- 409: JobError;
3048
- /**
3049
- * Asset Link Invalid
3050
- */
3051
- 410: JobError;
3052
- /**
3053
- * Internal Server Error
3054
- */
3055
- 500: JobError;
3056
- };
3057
- type ReplaceSmartObjectAsyncError = ReplaceSmartObjectAsyncErrors[keyof ReplaceSmartObjectAsyncErrors];
3058
- type ReplaceSmartObjectAsyncResponses = {
3059
- /**
3060
- * Success
3061
- */
3062
- 202: JobStatusLinkResponse;
3063
- };
3064
- type ReplaceSmartObjectAsyncResponse = ReplaceSmartObjectAsyncResponses[keyof ReplaceSmartObjectAsyncResponses];
3065
- type PlayPhotoshopActionsAsyncData = {
3066
- /**
3067
- * The input file to apply Photoshop Actions to and generate renditions and/or save as a new image
3068
- */
3069
- body: PlayPhotoshopActionsRequest;
3070
- headers?: {
3071
- /**
3072
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
3073
- */
3074
- 'x-gw-ims-org-id'?: string;
3075
- };
3076
- path?: never;
3077
- query?: never;
3078
- url: '/pie/psdService/photoshopActions';
3079
- };
3080
- type PlayPhotoshopActionsAsyncErrors = {
3081
- /**
3082
- * Input Validation Error
3083
- */
3084
- 400: InputValidationError;
3085
- /**
3086
- * Trial Limit Exceeded Error
3087
- */
3088
- 402: TrialLimitExceededError;
3089
- /**
3090
- * Forbidden
3091
- */
3092
- 403: JobError;
3093
- /**
3094
- * Requested Resource Was Not Found
3095
- */
3096
- 404: JobError;
3097
- /**
3098
- * Unable to upload asset
3099
- */
3100
- 409: JobError;
3101
- /**
3102
- * Asset Link Invalid
3103
- */
3104
- 410: JobError;
3105
- /**
3106
- * Internal Server Error
3107
- */
3108
- 500: JobError;
3109
- };
3110
- type PlayPhotoshopActionsAsyncError = PlayPhotoshopActionsAsyncErrors[keyof PlayPhotoshopActionsAsyncErrors];
3111
- type PlayPhotoshopActionsAsyncResponses = {
3112
- /**
3113
- * Success
3114
- */
3115
- 202: JobStatusLinkResponse;
3116
- };
3117
- type PlayPhotoshopActionsAsyncResponse = PlayPhotoshopActionsAsyncResponses[keyof PlayPhotoshopActionsAsyncResponses];
3118
- type PlayPhotoshopActionsJsonAsyncData = {
3119
- /**
3120
- * The input psd file to apply Photoshop actionJSON to and generate renditions and/or save as a new image
3121
- */
3122
- body: PlayPhotoshopActionsJsonRequest;
3123
- headers?: {
3124
- /**
3125
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
3126
- */
3127
- 'x-gw-ims-org-id'?: string;
3128
- };
3129
- path?: never;
3130
- query?: never;
3131
- url: '/pie/psdService/actionJSON';
3132
- };
3133
- type PlayPhotoshopActionsJsonAsyncErrors = {
3134
- /**
3135
- * Input Validation Error
3136
- */
3137
- 400: InputValidationError;
3138
- /**
3139
- * Trial Limit Exceeded Error
3140
- */
3141
- 402: TrialLimitExceededError;
3142
- /**
3143
- * Forbidden
3144
- */
3145
- 403: JobError;
3146
- /**
3147
- * Requested Resource Was Not Found
3148
- */
3149
- 404: JobError;
3150
- /**
3151
- * Unable to upload asset
3152
- */
3153
- 409: JobError;
3154
- /**
3155
- * Asset Link Invalid
3156
- */
3157
- 410: JobError;
3158
- /**
3159
- * Too many requests
3160
- */
3161
- 429: JobError;
3162
- /**
3163
- * Internal Server Error
3164
- */
3165
- 500: JobError;
3166
- };
3167
- type PlayPhotoshopActionsJsonAsyncError = PlayPhotoshopActionsJsonAsyncErrors[keyof PlayPhotoshopActionsJsonAsyncErrors];
3168
- type PlayPhotoshopActionsJsonAsyncResponses = {
3169
- /**
3170
- * Success
3171
- */
3172
- 202: JobStatusLinkResponse;
3173
- };
3174
- type PlayPhotoshopActionsJsonAsyncResponse = PlayPhotoshopActionsJsonAsyncResponses[keyof PlayPhotoshopActionsJsonAsyncResponses];
3175
- type ConvertToActionsJsonAsyncData = {
3176
- /**
3177
- * The input ATN file to convert to actionJSON.
3178
- */
3179
- body: ConvertToActionsJsonRequest;
3180
- headers?: {
3181
- /**
3182
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
3183
- */
3184
- 'x-gw-ims-org-id'?: string;
3185
- };
3186
- path?: never;
3187
- query?: never;
3188
- url: '/pie/psdService/actionJsonCreate';
3189
- };
3190
- type ConvertToActionsJsonAsyncErrors = {
3191
- /**
3192
- * Input Validation Error
3193
- */
3194
- 400: InputValidationError;
3195
- /**
3196
- * Trial Limit Exceeded Error
3197
- */
3198
- 402: TrialLimitExceededError;
3199
- /**
3200
- * Forbidden
3201
- */
3202
- 403: JobError;
3203
- /**
3204
- * Requested Resource Was Not Found
3205
- */
3206
- 404: JobError;
3207
- /**
3208
- * Asset Link Invalid
3209
- */
3210
- 410: JobError;
3211
- /**
3212
- * Internal Server Error
3213
- */
3214
- 500: JobError;
3215
- };
3216
- type ConvertToActionsJsonAsyncError = ConvertToActionsJsonAsyncErrors[keyof ConvertToActionsJsonAsyncErrors];
3217
- type ConvertToActionsJsonAsyncResponses = {
3218
- /**
3219
- * Success
3220
- */
3221
- 202: JobStatusLinkResponse;
3222
- };
3223
- type ConvertToActionsJsonAsyncResponse = ConvertToActionsJsonAsyncResponses[keyof ConvertToActionsJsonAsyncResponses];
3224
- type ApplyAutoCropAsyncData = {
3225
- /**
3226
- * The input image to apply product crop to.
3227
- */
3228
- body: ApplyAutoCropRequest;
3229
- headers?: {
3230
- /**
3231
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
3232
- */
3233
- 'x-gw-ims-org-id'?: string;
3234
- };
3235
- path?: never;
3236
- query?: never;
3237
- url: '/pie/psdService/productCrop';
3238
- };
3239
- type ApplyAutoCropAsyncErrors = {
3240
- /**
3241
- * Input Validation Error
3242
- */
3243
- 400: InputValidationError;
3244
- /**
3245
- * Trial Limit Exceeded Error
3246
- */
3247
- 402: TrialLimitExceededError;
3248
- /**
3249
- * Forbidden
3250
- */
3251
- 403: JobError;
3252
- /**
3253
- * Requested Resource Was Not Found
3254
- */
3255
- 404: JobError;
3256
- /**
3257
- * Unable to upload asset
3258
- */
3259
- 409: JobError;
3260
- /**
3261
- * Asset Link Invalid
3262
- */
3263
- 410: JobError;
3264
- /**
3265
- * Too many requests
3266
- */
3267
- 429: JobError;
3268
- /**
3269
- * Internal Server Error
3270
- */
3271
- 500: JobError;
3272
- };
3273
- type ApplyAutoCropAsyncError = ApplyAutoCropAsyncErrors[keyof ApplyAutoCropAsyncErrors];
3274
- type ApplyAutoCropAsyncResponses = {
3275
- /**
3276
- * Success
3277
- */
3278
- 202: JobStatusLinkResponse;
3279
- };
3280
- type ApplyAutoCropAsyncResponse = ApplyAutoCropAsyncResponses[keyof ApplyAutoCropAsyncResponses];
3281
- type ApplyDepthBlurAsyncData = {
3282
- /**
3283
- * The input image to apply depth blur to.
3284
- */
3285
- body: ApplyDepthBlurRequest;
3286
- headers?: {
3287
- /**
3288
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events.
3289
- */
3290
- 'x-gw-ims-org-id'?: string;
3291
- };
3292
- path?: never;
3293
- query?: never;
3294
- url: '/pie/psdService/depthBlur';
3295
- };
3296
- type ApplyDepthBlurAsyncErrors = {
3297
- /**
3298
- * Input Validation Error
3299
- */
3300
- 400: InputValidationError;
3301
- /**
3302
- * Trial Limit Exceeded Error
3303
- */
3304
- 402: TrialLimitExceededError;
3305
- /**
3306
- * Forbidden
3307
- */
3308
- 403: JobError;
3309
- /**
3310
- * Requested Resource Was Not Found
3311
- */
3312
- 404: JobError;
3313
- /**
3314
- * Unable to upload asset
3315
- */
3316
- 409: JobError;
3317
- /**
3318
- * Asset Link Invalid
3319
- */
3320
- 410: JobError;
3321
- /**
3322
- * Too many requests
3323
- */
3324
- 429: JobError;
3325
- /**
3326
- * Internal Server Error
3327
- */
3328
- 500: JobError;
3329
- };
3330
- type ApplyDepthBlurAsyncError = ApplyDepthBlurAsyncErrors[keyof ApplyDepthBlurAsyncErrors];
3331
- type ApplyDepthBlurAsyncResponses = {
3332
- /**
3333
- * Success
3334
- */
3335
- 202: JobStatusLinkResponse;
3336
- };
3337
- type ApplyDepthBlurAsyncResponse = ApplyDepthBlurAsyncResponses[keyof ApplyDepthBlurAsyncResponses];
3338
- type EditTextLayerAsyncData = {
3339
- /**
3340
- * The input text to be edited.
3341
- */
3342
- body: EditTextLayerRequest;
3343
- headers?: {
3344
- /**
3345
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
3346
- */
3347
- 'x-gw-ims-org-id'?: string;
3348
- };
3349
- path?: never;
3350
- query?: never;
3351
- url: '/pie/psdService/text';
3352
- };
3353
- type EditTextLayerAsyncErrors = {
3354
- /**
3355
- * Input Validation Error
3356
- */
3357
- 400: InputValidationError;
3358
- /**
3359
- * Trial Limit Exceeded Error
3360
- */
3361
- 402: TrialLimitExceededError;
3362
- /**
3363
- * Forbidden
3364
- */
3365
- 403: JobError;
3366
- /**
3367
- * Requested Resource Was Not Found
3368
- */
3369
- 404: JobError;
3370
- /**
3371
- * Unable to upload asset
3372
- */
3373
- 409: JobError;
3374
- /**
3375
- * Asset Link Invalid
3376
- */
3377
- 410: JobError;
3378
- /**
3379
- * Too many requests
3380
- */
3381
- 429: JobError;
3382
- /**
3383
- * Internal Server Error
3384
- */
3385
- 500: JobError;
3386
- };
3387
- type EditTextLayerAsyncError = EditTextLayerAsyncErrors[keyof EditTextLayerAsyncErrors];
3388
- type EditTextLayerAsyncResponses = {
3389
- /**
3390
- * success
3391
- */
3392
- 202: JobStatusLinkResponse;
3393
- };
3394
- type EditTextLayerAsyncResponse = EditTextLayerAsyncResponses[keyof EditTextLayerAsyncResponses];
3395
- type CreateArtboardAsyncData = {
3396
- /**
3397
- * The input artboard to be created.
3398
- */
3399
- body: CreateArtboardRequest;
3400
- headers?: {
3401
- /**
3402
- * The IMS organization ID. This only needs to be sent if you want to receive the job status through Adobe I/O Events
3403
- */
3404
- 'x-gw-ims-org-id'?: string;
3405
- };
3406
- path?: never;
3407
- query?: never;
3408
- url: '/pie/psdService/artboardCreate';
3409
- };
3410
- type CreateArtboardAsyncErrors = {
3411
- /**
3412
- * Input Validation Error
3413
- */
3414
- 400: InputValidationError;
3415
- /**
3416
- * Trial Limit Exceeded Error
3417
- */
3418
- 402: TrialLimitExceededError;
3419
- /**
3420
- * Forbidden
3421
- */
3422
- 403: JobError;
3423
- /**
3424
- * Requested Resource Was Not Found
3425
- */
3426
- 404: JobError;
3427
- /**
3428
- * Unable to upload asset
3429
- */
3430
- 409: JobError;
3431
- /**
3432
- * Asset Link Invalid
3433
- */
3434
- 410: JobError;
3435
- /**
3436
- * Internal Server Error
3437
- */
3438
- 500: JobError;
3439
- };
3440
- type CreateArtboardAsyncError = CreateArtboardAsyncErrors[keyof CreateArtboardAsyncErrors];
3441
- type CreateArtboardAsyncResponses = {
3442
- /**
3443
- * success
3444
- */
3445
- 202: JobStatusLinkResponse;
3446
- };
3447
- type CreateArtboardAsyncResponse = CreateArtboardAsyncResponses[keyof CreateArtboardAsyncResponses];
3448
- type MaskObjectsData = {
3449
- body: MaskObjectsRequest;
3450
- path?: never;
3451
- query?: never;
3452
- url: '/v1/mask-objects';
3453
- };
3454
- type MaskObjectsErrors = {
3455
- /**
3456
- * Bad Request
3457
- */
3458
- 400: InputValidationError;
3459
- /**
3460
- * Unauthorized
3461
- */
3462
- 401: InputValidationError;
3463
- /**
3464
- * Forbidden
3465
- */
3466
- 403: InputValidationError;
3467
- /**
3468
- * Resource Not Found
3469
- */
3470
- 404: InputValidationError;
3471
- /**
3472
- * Too Many Requests
3473
- */
3474
- 429: InputValidationError;
3475
- /**
3476
- * Internal Server Error
3477
- */
3478
- 500: JobError;
3479
- };
3480
- type MaskObjectsError = MaskObjectsErrors[keyof MaskObjectsErrors];
3481
- type MaskObjectsResponses = {
3482
- /**
3483
- * Accepted
3484
- */
3485
- 202: JobLinkResponse;
3486
- };
3487
- type MaskObjectsResponse = MaskObjectsResponses[keyof MaskObjectsResponses];
3488
- type MaskBodyPartsData = {
3489
- body: MaskBodyPartsRequest;
3490
- path?: never;
3491
- query?: never;
3492
- url: '/v1/mask-body-parts';
3493
- };
3494
- type MaskBodyPartsErrors = {
3495
- /**
3496
- * Bad Request
3497
- */
3498
- 400: InputValidationError;
3499
- /**
3500
- * Unauthorized
3501
- */
3502
- 401: InputValidationError;
3503
- /**
3504
- * Forbidden
3505
- */
3506
- 403: InputValidationError;
3507
- /**
3508
- * Resource Not Found
3509
- */
3510
- 404: InputValidationError;
3511
- /**
3512
- * Too Many Requests
3513
- */
3514
- 429: InputValidationError;
3515
- /**
3516
- * Internal Server Error
3517
- */
3518
- 500: JobError;
3519
- };
3520
- type MaskBodyPartsError = MaskBodyPartsErrors[keyof MaskBodyPartsErrors];
3521
- type MaskBodyPartsResponses = {
3522
- /**
3523
- * Accepted
3524
- */
3525
- 202: JobLinkResponse;
3526
- };
3527
- type MaskBodyPartsResponse = MaskBodyPartsResponses[keyof MaskBodyPartsResponses];
3528
- type RefineMaskData = {
3529
- body: RefineMaskRequest;
3530
- path?: never;
3531
- query?: never;
3532
- url: '/v1/refine-mask';
3533
- };
3534
- type RefineMaskErrors = {
3535
- /**
3536
- * Bad Request
3537
- */
3538
- 400: InputValidationError;
3539
- /**
3540
- * Unauthorized
3541
- */
3542
- 401: InputValidationError;
3543
- /**
3544
- * Forbidden
3545
- */
3546
- 403: InputValidationError;
3547
- /**
3548
- * Resource Not Found
3549
- */
3550
- 404: InputValidationError;
3551
- /**
3552
- * Too Many Requests
3553
- */
3554
- 429: InputValidationError;
3555
- /**
3556
- * Internal Server Error
3557
- */
3558
- 500: JobError;
3559
- };
3560
- type RefineMaskError = RefineMaskErrors[keyof RefineMaskErrors];
3561
- type RefineMaskResponses = {
3562
- /**
3563
- * Accepted
3564
- */
3565
- 202: JobLinkResponse;
3566
- };
3567
- type RefineMaskResponse = RefineMaskResponses[keyof RefineMaskResponses];
3568
- type FillMaskedAreasData = {
3569
- body: FillMaskedAreasRequest;
3570
- path?: never;
3571
- query?: never;
3572
- url: '/v1/fill-masked-areas';
3573
- };
3574
- type FillMaskedAreasErrors = {
3575
- /**
3576
- * Bad Request
3577
- */
3578
- 400: InputValidationError;
3579
- /**
3580
- * Unauthorized
3581
- */
3582
- 401: InputValidationError;
3583
- /**
3584
- * Forbidden
3585
- */
3586
- 403: InputValidationError;
3587
- /**
3588
- * Resource Not Found
3589
- */
3590
- 404: InputValidationError;
3591
- /**
3592
- * Too Many Requests
3593
- */
3594
- 429: InputValidationError;
3595
- /**
3596
- * Internal Server Error
3597
- */
3598
- 500: JobError;
3599
- };
3600
- type FillMaskedAreasError = FillMaskedAreasErrors[keyof FillMaskedAreasErrors];
3601
- type FillMaskedAreasResponses = {
3602
- /**
3603
- * Accepted
3604
- */
3605
- 202: JobLinkResponse;
3606
- };
3607
- type FillMaskedAreasResponse = FillMaskedAreasResponses[keyof FillMaskedAreasResponses];
3608
- type GetJobStatusData = {
3609
- body?: never;
3610
- path: {
3611
- jobId: string;
3612
- };
3613
- query?: never;
3614
- url: '/v1/status/{jobId}';
3615
- };
3616
- type GetJobStatusErrors = {
3617
- /**
3618
- * Internal Server Error
3619
- */
3620
- 500: JobError;
3621
- };
3622
- type GetJobStatusError = GetJobStatusErrors[keyof GetJobStatusErrors];
3623
- type GetJobStatusResponses = {
3624
- /**
3625
- * The schema of a 200 response varies depending on the status of the job. A job with a `succeeded` status will include the results in the response. Result objects vary depending on the operation.
3626
- */
3627
- 200: ({
3628
- status: 'not_started';
3629
- } & JobStatusNotStarted) | ({
3630
- status: 'running';
3631
- } & JobStatusRunning) | ({
3632
- status: 'succeeded';
3633
- } & JobStatusSucceeded) | ({
3634
- status: 'failed';
3635
- } & JobStatusFailed);
3636
- };
3637
- type GetJobStatusResponse = GetJobStatusResponses[keyof GetJobStatusResponses];
3638
- //#endregion
3639
3
  //#region packages/photoshop/src/flat/sdk.gen.d.ts
3640
- type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
4
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
3641
5
  /**
3642
6
  * You can provide a client instance returned by `createClient()` instead of
3643
7
  * individual options. This might be also useful if you want to implement a
@@ -3796,5 +160,5 @@ declare const getJobStatus: <ThrowOnError extends boolean = false>(options: Opti
3796
160
  //#region packages/photoshop/src/flat/client.gen.d.ts
3797
161
  declare const client: Client;
3798
162
  //#endregion
3799
- export { type Action, type ActionDetails, type ActionJsonCreateOptions, type ActionJsonOptions, type ActionOptions, type ActionOutputDetails, type AdjustmentDetails, type AlignmentType, type AntiAliasType, type ApplyAutoCropAsyncData, type ApplyAutoCropAsyncError, type ApplyAutoCropAsyncErrors, type ApplyAutoCropAsyncResponse, type ApplyAutoCropAsyncResponses, type ApplyAutoCropRequest, type ApplyDepthBlurAsyncData, type ApplyDepthBlurAsyncError, type ApplyDepthBlurAsyncErrors, type ApplyDepthBlurAsyncResponse, type ApplyDepthBlurAsyncResponses, type ApplyDepthBlurRequest, type ArtboardDetails, type AutoKernType, type BasedOnType, type BaselineType, type BlendDetails, type BlendModeType, type Bounds, type BrightnessContrast, type CanvasSize, type ChannelDetails, type ChannelModeType, type ChannelType, type CharacterStyleDetails, type ChildrenLayerDetails, type ClientOptions, type ColorBalance, type ColorDetails, type ColorProfileType, type ColorSpaceType, type CompressionType, type ConvertToActionsJsonAsyncData, type ConvertToActionsJsonAsyncError, type ConvertToActionsJsonAsyncErrors, type ConvertToActionsJsonAsyncResponse, type ConvertToActionsJsonAsyncResponses, type ConvertToActionsJsonRequest, type CreateArtboardAsyncData, type CreateArtboardAsyncError, type CreateArtboardAsyncErrors, type CreateArtboardAsyncResponse, type CreateArtboardAsyncResponses, type CreateArtboardRequest, type CreateDocumentAsyncData, type CreateDocumentAsyncError, type CreateDocumentAsyncErrors, type CreateDocumentAsyncResponse, type CreateDocumentAsyncResponses, type CreateDocumentRequest, type CreateMaskAsyncData, type CreateMaskAsyncError, type CreateMaskAsyncErrors, type CreateMaskAsyncResponse, type CreateMaskAsyncResponses, type CreateMaskRequest, type CreateRenditionAsyncData, type CreateRenditionAsyncError, type CreateRenditionAsyncErrors, type CreateRenditionAsyncResponse, type CreateRenditionAsyncResponses, type CreateRenditionRequest, type CropOptions, type DeleteDetails, type DepthBlurDetails, type DepthType, type DocumentCreateLayer, type DocumentCreateOptions, type DocumentDetails, type DocumentManifestOptions, type DocumentManifestRequest, type DocumentOperationLayer, type DocumentOperationOptions, type EastAsianFeatures, type EditTextLayerAsyncData, type EditTextLayerAsyncError, type EditTextLayerAsyncErrors, type EditTextLayerAsyncResponse, type EditTextLayerAsyncResponses, type EditTextLayerRequest, type ErrorDetails, type ExposureDetails, type FacadeJobStatusData, type FacadeJobStatusError, type FacadeJobStatusErrors, type FacadeJobStatusResponse, type FacadeJobStatusResponses, type FillDetails, type FillMaskedAreasData, type FillMaskedAreasError, type FillMaskedAreasErrors, type FillMaskedAreasInputImage, type FillMaskedAreasJobApiResponse, type FillMaskedAreasRequest, type FillMaskedAreasResponse, type FillMaskedAreasResponses, type FillType, type FocalSelector, type FontCaps, type FontColorCmyk, type FontColorDetails, type FontColorGray, type FontColorLab, type FontColorRgb, type GetDocumentManifestAsyncData, type GetDocumentManifestAsyncError, type GetDocumentManifestAsyncErrors, type GetDocumentManifestAsyncResponse, type GetDocumentManifestAsyncResponses, type GetJobStatusData, type GetJobStatusError, type GetJobStatusErrors, type GetJobStatusResponse, type GetJobStatusResponses, type HorizontalAlignType, type HueSaturation, type IccProfileDetails, type ImageBoundingBox, type ImageFormatType, type ImageModeType, type ImageSize, type InputValidationError, type InputValidationErrorDetail, type JobError, type JobLinkResponse, type JobOutputDetails, type JobOutputStatus, type JobStatus, type JobStatusFailed, type JobStatusLink, type JobStatusLinkResponse, type JobStatusNotStarted, type JobStatusPollPayload, type JobStatusResponse, type JobStatusRunning, type JobStatusSucceeded, type JobStatusSucceededResponse, type LayerDetails, type LayerMaskDetails, type LayerPosition, type LayerReference, type LayerType, type ManageMissingFonts, type ManifestJobAdjustmentDetails, type ManifestJobApiResponse, type ManifestJobDocumentDetails, type ManifestJobStatusOutputDetails, type MaskBodyPartsData, type MaskBodyPartsError, type MaskBodyPartsErrors, type MaskBodyPartsImageMediaType, type MaskBodyPartsInputImage, type MaskBodyPartsInputMask, type MaskBodyPartsJobApiResponse, type MaskBodyPartsMaskMediaType, type MaskBodyPartsOutputImage, type MaskBodyPartsRequest, type MaskBodyPartsResponse, type MaskBodyPartsResponses, type MaskDetails, type MaskFormat, type MaskFormatType, type MaskObjectsData, type MaskObjectsError, type MaskObjectsErrors, type MaskObjectsInputImage, type MaskObjectsInputImageMediaType, type MaskObjectsJobApiResponse, type MaskObjectsOutputImage, type MaskObjectsRequest, type MaskObjectsResponse, type MaskObjectsResponses, type ModifyDocumentAsyncData, type ModifyDocumentAsyncError, type ModifyDocumentAsyncErrors, type ModifyDocumentAsyncResponse, type ModifyDocumentAsyncResponses, type ModifyDocumentRequest, type MoveDetails, type Offset, type OperationDocument, type Options, type OrientationType, type OutputImageDetails, type ParagraphStyleAlignmentType, type ParagraphStyleDetails, type PlayPhotoshopActionsAsyncData, type PlayPhotoshopActionsAsyncError, type PlayPhotoshopActionsAsyncErrors, type PlayPhotoshopActionsAsyncResponse, type PlayPhotoshopActionsAsyncResponses, type PlayPhotoshopActionsJsonAsyncData, type PlayPhotoshopActionsJsonAsyncError, type PlayPhotoshopActionsJsonAsyncErrors, type PlayPhotoshopActionsJsonAsyncResponse, type PlayPhotoshopActionsJsonAsyncResponses, type PlayPhotoshopActionsJsonRequest, type PlayPhotoshopActionsRequest, type PsJobApiResponse, type PsJobResponse, type PsJobStatusData, type PsJobStatusResponse, type PsJobStatusResponses, type PsOutputDetails, type RefineMaskData, type RefineMaskError, type RefineMaskErrors, type RefineMaskImageMediaType, type RefineMaskInputImage, type RefineMaskJobApiResponse, type RefineMaskOutputImage, type RefineMaskRequest, type RefineMaskResponse, type RefineMaskResponses, type RemoveBackgroundAsyncData, type RemoveBackgroundAsyncError, type RemoveBackgroundAsyncErrors, type RemoveBackgroundAsyncResponse, type RemoveBackgroundAsyncResponses, type RemoveBackgroundData, type RemoveBackgroundError, type RemoveBackgroundErrors, type RemoveBackgroundRequest, type RemoveBackgroundResponse, type RemoveBackgroundResponses, type RemoveBackgroundV2Request, type RemoveBgColor, type RemoveBgInputImage, type RemoveBgMode, type RemoveBgOutputImageMediaType, type RemoveBgOutputImageOptions, type RenditionLinkDetails, type RenditionLinks, type ReplaceSmartObjectAsyncData, type ReplaceSmartObjectAsyncError, type ReplaceSmartObjectAsyncErrors, type ReplaceSmartObjectAsyncResponse, type ReplaceSmartObjectAsyncResponses, type ReplaceSmartObjectRequest, type RgbColor, type SelfLink, type SenseiColor, type SenseiJobApiResponse, type SenseiJobStatusData, type SenseiJobStatusResponse, type SenseiJobStatusResponses, type SenseiOutputDetails, type SmartObject, type SmartObjectDetails, type SmartObjectLayer, type SmartObjectOptions, type SmartObjectOutputDetails, type SolidColor, type StorageDetails, type StorageType, type TextDetails, type TextLayerCharacterStyleDetails, type TextLayerDetails, type TextLayerParagraphStyleDetails, type TextOptions, type TextOptionsLayer, type TextStyleType, type TextType, type ThumbnailType, type Thumbnails, type TrialLimitExceededError, type Trim, type TrimToCanvasType, type UnitType, type UrlResource, type VerticalAlignType, applyAutoCropAsync, applyDepthBlurAsync, client, convertToActionsJsonAsync, createArtboardAsync, createClient, createConfig, createDocumentAsync, createMaskAsync, createRenditionAsync, editTextLayerAsync, facadeJobStatus, fillMaskedAreas, getDocumentManifestAsync, getJobStatus, maskBodyParts, maskObjects, mergeHeaders, modifyDocumentAsync, playPhotoshopActionsAsync, playPhotoshopActionsJsonAsync, psJobStatus, refineMask, removeBackground, removeBackgroundAsync, replaceSmartObjectAsync, senseiJobStatus };
163
+ export { type Action, type ActionDetails, type ActionJsonCreateOptions, type ActionJsonOptions, type ActionOptions, type ActionOutputDetails, type AdjustmentDetails, type AlignmentType, type AntiAliasType, type ApplyAutoCropAsyncData, type ApplyAutoCropAsyncError, type ApplyAutoCropAsyncErrors, type ApplyAutoCropAsyncResponse, type ApplyAutoCropAsyncResponses, type ApplyAutoCropRequest, type ApplyDepthBlurAsyncData, type ApplyDepthBlurAsyncError, type ApplyDepthBlurAsyncErrors, type ApplyDepthBlurAsyncResponse, type ApplyDepthBlurAsyncResponses, type ApplyDepthBlurRequest, type ArtboardDetails, type AutoKernType, type BasedOnType, type BaselineType, type BlendDetails, type BlendModeType, type Bounds, type BrightnessContrast, type CanvasSize, type ChannelDetails, type ChannelModeType, type ChannelType, type CharacterStyleDetails, type ChildrenLayerDetails, type ClientOptions, type ColorBalance, type ColorDetails, type ColorProfileType, type ColorSpaceType, type CompressionType, type ConvertToActionsJsonAsyncData, type ConvertToActionsJsonAsyncError, type ConvertToActionsJsonAsyncErrors, type ConvertToActionsJsonAsyncResponse, type ConvertToActionsJsonAsyncResponses, type ConvertToActionsJsonRequest, type CreateArtboardAsyncData, type CreateArtboardAsyncError, type CreateArtboardAsyncErrors, type CreateArtboardAsyncResponse, type CreateArtboardAsyncResponses, type CreateArtboardRequest, type CreateDocumentAsyncData, type CreateDocumentAsyncError, type CreateDocumentAsyncErrors, type CreateDocumentAsyncResponse, type CreateDocumentAsyncResponses, type CreateDocumentRequest, type CreateMaskAsyncData, type CreateMaskAsyncError, type CreateMaskAsyncErrors, type CreateMaskAsyncResponse, type CreateMaskAsyncResponses, type CreateMaskRequest, type CreateRenditionAsyncData, type CreateRenditionAsyncError, type CreateRenditionAsyncErrors, type CreateRenditionAsyncResponse, type CreateRenditionAsyncResponses, type CreateRenditionRequest, type CropOptions, type DeleteDetails, type DepthBlurDetails, type DepthType, type DocumentCreateLayer, type DocumentCreateOptions, type DocumentDetails, type DocumentManifestOptions, type DocumentManifestRequest, type DocumentOperationLayer, type DocumentOperationOptions, type EastAsianFeatures, type EditTextLayerAsyncData, type EditTextLayerAsyncError, type EditTextLayerAsyncErrors, type EditTextLayerAsyncResponse, type EditTextLayerAsyncResponses, type EditTextLayerRequest, type ErrorDetails, type ExposureDetails, type FacadeJobStatusData, type FacadeJobStatusError, type FacadeJobStatusErrors, type FacadeJobStatusResponse, type FacadeJobStatusResponses, type FillDetails, type FillMaskedAreasData, type FillMaskedAreasError, type FillMaskedAreasErrors, type FillMaskedAreasInputImage, type FillMaskedAreasJobApiResponse, type FillMaskedAreasRequest, type FillMaskedAreasResponse, type FillMaskedAreasResponses, type FillType, type FocalSelector, type FontCaps, type FontColorCmyk, type FontColorDetails, type FontColorGray, type FontColorLab, type FontColorRgb, type GetDocumentManifestAsyncData, type GetDocumentManifestAsyncError, type GetDocumentManifestAsyncErrors, type GetDocumentManifestAsyncResponse, type GetDocumentManifestAsyncResponses, type GetJobStatusData, type GetJobStatusError, type GetJobStatusErrors, type GetJobStatusResponse, type GetJobStatusResponses, type HorizontalAlignType, type HueSaturation, type IccProfileDetails, type ImageBoundingBox, type ImageFormatType, type ImageModeType, type ImageSize, type InputValidationError, type InputValidationErrorDetail, type JobError, type JobLinkResponse, type JobOutputDetails, type JobOutputStatus, type JobStatus, type JobStatusFailed, type JobStatusLink, type JobStatusLinkResponse, type JobStatusNotStarted, type JobStatusPollPayload, type JobStatusResponse, type JobStatusRunning, type JobStatusSucceeded, type JobStatusSucceededResponse, type LayerDetails, type LayerMaskDetails, type LayerPosition, type LayerReference, type LayerType, type ManageMissingFonts, type ManifestJobAdjustmentDetails, type ManifestJobApiResponse, type ManifestJobDocumentDetails, type ManifestJobStatusOutputDetails, type MaskBodyPartsData, type MaskBodyPartsError, type MaskBodyPartsErrors, type MaskBodyPartsImageMediaType, type MaskBodyPartsInputImage, type MaskBodyPartsInputMask, type MaskBodyPartsJobApiResponse, type MaskBodyPartsMaskMediaType, type MaskBodyPartsOutputImage, type MaskBodyPartsRequest, type MaskBodyPartsResponse, type MaskBodyPartsResponses, type MaskDetails, type MaskFormat, type MaskFormatType, type MaskObjectsData, type MaskObjectsError, type MaskObjectsErrors, type MaskObjectsInputImage, type MaskObjectsInputImageMediaType, type MaskObjectsJobApiResponse, type MaskObjectsOutputImage, type MaskObjectsRequest, type MaskObjectsResponse, type MaskObjectsResponses, type ModifyDocumentAsyncData, type ModifyDocumentAsyncError, type ModifyDocumentAsyncErrors, type ModifyDocumentAsyncResponse, type ModifyDocumentAsyncResponses, type ModifyDocumentRequest, type MoveDetails, type Offset, type OperationDocument, type Options, type OrientationType, type OutputImageDetails, type ParagraphStyleAlignmentType, type ParagraphStyleDetails, PhotoshopPollJobOptions, type PlayPhotoshopActionsAsyncData, type PlayPhotoshopActionsAsyncError, type PlayPhotoshopActionsAsyncErrors, type PlayPhotoshopActionsAsyncResponse, type PlayPhotoshopActionsAsyncResponses, type PlayPhotoshopActionsJsonAsyncData, type PlayPhotoshopActionsJsonAsyncError, type PlayPhotoshopActionsJsonAsyncErrors, type PlayPhotoshopActionsJsonAsyncResponse, type PlayPhotoshopActionsJsonAsyncResponses, type PlayPhotoshopActionsJsonRequest, type PlayPhotoshopActionsRequest, type PsJobApiResponse, type PsJobResponse, type PsJobStatusData, type PsJobStatusResponse, type PsJobStatusResponses, type PsOutputDetails, type RefineMaskData, type RefineMaskError, type RefineMaskErrors, type RefineMaskImageMediaType, type RefineMaskInputImage, type RefineMaskJobApiResponse, type RefineMaskOutputImage, type RefineMaskRequest, type RefineMaskResponse, type RefineMaskResponses, type RemoveBackgroundAsyncData, type RemoveBackgroundAsyncError, type RemoveBackgroundAsyncErrors, type RemoveBackgroundAsyncResponse, type RemoveBackgroundAsyncResponses, type RemoveBackgroundData, type RemoveBackgroundError, type RemoveBackgroundErrors, type RemoveBackgroundRequest, type RemoveBackgroundResponse, type RemoveBackgroundResponses, type RemoveBackgroundV2Request, type RemoveBgColor, type RemoveBgInputImage, type RemoveBgMode, type RemoveBgOutputImageMediaType, type RemoveBgOutputImageOptions, type RenditionLinkDetails, type RenditionLinks, type ReplaceSmartObjectAsyncData, type ReplaceSmartObjectAsyncError, type ReplaceSmartObjectAsyncErrors, type ReplaceSmartObjectAsyncResponse, type ReplaceSmartObjectAsyncResponses, type ReplaceSmartObjectRequest, type RgbColor, type SelfLink, type SenseiColor, type SenseiJobApiResponse, type SenseiJobStatusData, type SenseiJobStatusResponse, type SenseiJobStatusResponses, type SenseiOutputDetails, type SmartObject, type SmartObjectDetails, type SmartObjectLayer, type SmartObjectOptions, type SmartObjectOutputDetails, type SolidColor, type StorageDetails, type StorageType, type TextDetails, type TextLayerCharacterStyleDetails, type TextLayerDetails, type TextLayerParagraphStyleDetails, type TextOptions, type TextOptionsLayer, type TextStyleType, type TextType, type ThumbnailType, type Thumbnails, type TrialLimitExceededError, type Trim, type TrimToCanvasType, type UnitType, type UrlResource, type VerticalAlignType, applyAutoCropAsync, applyDepthBlurAsync, client, convertToActionsJsonAsync, createArtboardAsync, createClient, createConfig, createDocumentAsync, createMaskAsync, createRenditionAsync, editTextLayerAsync, facadeJobStatus, fillMaskedAreas, getDocumentManifestAsync, getJobStatus, maskBodyParts, maskObjects, mergeHeaders, modifyDocumentAsync, playPhotoshopActionsAsync, playPhotoshopActionsJsonAsync, pollPhotoshopFacadeJob, pollPhotoshopMaskingV1Job, pollPhotoshopPsdServiceJob, pollPhotoshopSenseiJob, psJobStatus, refineMask, removeBackground, removeBackgroundAsync, replaceSmartObjectAsync, senseiJobStatus };
3800
164
  //# sourceMappingURL=flat.d.cts.map