@musallam/ffs-substance-3d-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk.d.mts ADDED
@@ -0,0 +1,2556 @@
1
+ import { n as Options$2, t as ky } from "./index-IOhsyoSY.mjs";
2
+
3
+ //#region packages/substance-3d/src/sdk/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/substance-3d/src/sdk/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/substance-3d/src/sdk/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/substance-3d/src/sdk/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/substance-3d/src/sdk/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/substance-3d/src/sdk/client/utils.gen.d.ts
190
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
191
+ type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
192
+ type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
193
+ declare class Interceptors<Interceptor> {
194
+ fns: Array<Interceptor | null>;
195
+ clear(): void;
196
+ eject(id: number | Interceptor): void;
197
+ exists(id: number | Interceptor): boolean;
198
+ getInterceptorIndex(id: number | Interceptor): number;
199
+ update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
200
+ use(fn: Interceptor): number;
201
+ }
202
+ interface Middleware<Req, Res, Err, Options> {
203
+ error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
204
+ request: Interceptors<ReqInterceptor<Req, Options>>;
205
+ response: Interceptors<ResInterceptor<Res, Req, Options>>;
206
+ }
207
+ //#endregion
208
+ //#region packages/substance-3d/src/sdk/client/types.gen.d.ts
209
+ type ResponseStyle = 'data' | 'fields';
210
+ interface RetryOptions {
211
+ /**
212
+ * Maximum number of retry attempts
213
+ *
214
+ * @default 2
215
+ */
216
+ limit?: number;
217
+ /**
218
+ * HTTP methods to retry
219
+ *
220
+ * @default ['get', 'put', 'head', 'delete', 'options', 'trace']
221
+ */
222
+ methods?: Array<'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace'>;
223
+ /**
224
+ * HTTP status codes to retry
225
+ *
226
+ * @default [408, 413, 429, 500, 502, 503, 504]
227
+ */
228
+ statusCodes?: number[];
229
+ }
230
+ interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Options$2, 'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'>, Config$1 {
231
+ /**
232
+ * Base URL for all requests made by this client.
233
+ */
234
+ baseUrl?: T['baseUrl'];
235
+ /**
236
+ * Ky instance to use. You can use this option to provide a custom
237
+ * ky instance.
238
+ */
239
+ ky?: typeof ky;
240
+ /**
241
+ * Additional ky-specific options that will be passed directly to ky.
242
+ * This allows you to use any ky option not explicitly exposed in the config.
243
+ */
244
+ kyOptions?: Omit<Options$2, 'method' | 'prefixUrl'>;
245
+ /**
246
+ * Return the response data parsed in a specified format. By default, `auto`
247
+ * will infer the appropriate method from the `Content-Type` response header.
248
+ * You can override this behavior with any of the {@link Body} methods.
249
+ * Select `stream` if you don't want to parse response data at all.
250
+ *
251
+ * @default 'auto'
252
+ */
253
+ parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
254
+ /**
255
+ * Should we return only data or multiple fields (data, error, response, etc.)?
256
+ *
257
+ * @default 'fields'
258
+ */
259
+ responseStyle?: ResponseStyle;
260
+ /**
261
+ * Retry configuration
262
+ */
263
+ retry?: RetryOptions;
264
+ /**
265
+ * Throw an error instead of returning it in the response?
266
+ *
267
+ * @default false
268
+ */
269
+ throwOnError?: T['throwOnError'];
270
+ /**
271
+ * Request timeout in milliseconds
272
+ *
273
+ * @default 10000
274
+ */
275
+ timeout?: number;
276
+ }
277
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
278
+ responseStyle: TResponseStyle;
279
+ throwOnError: ThrowOnError;
280
+ }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
281
+ /**
282
+ * Any body that you want to add to your request.
283
+ *
284
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
285
+ */
286
+ body?: unknown;
287
+ path?: Record<string, unknown>;
288
+ query?: Record<string, unknown>;
289
+ /**
290
+ * Security mechanism(s) to use for the request.
291
+ */
292
+ security?: ReadonlyArray<Auth>;
293
+ url: Url;
294
+ }
295
+ interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
296
+ serializedBody?: string;
297
+ }
298
+ 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 : {
299
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
300
+ request: Request;
301
+ response: Response;
302
+ }> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
303
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
304
+ error: undefined;
305
+ } | {
306
+ data: undefined;
307
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
308
+ }) & {
309
+ request: Request;
310
+ response: Response;
311
+ }>;
312
+ interface ClientOptions$1 {
313
+ baseUrl?: string;
314
+ responseStyle?: ResponseStyle;
315
+ throwOnError?: boolean;
316
+ }
317
+ 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>;
318
+ 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>>;
319
+ 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>;
320
+ type BuildUrlFn = <TData extends {
321
+ body?: unknown;
322
+ path?: Record<string, unknown>;
323
+ query?: Record<string, unknown>;
324
+ url: string;
325
+ }>(options: TData & Options$1<TData>) => string;
326
+ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
327
+ interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
328
+ };
329
+ interface TDataShape {
330
+ body?: unknown;
331
+ headers?: unknown;
332
+ path?: unknown;
333
+ query?: unknown;
334
+ url: string;
335
+ }
336
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
337
+ type Options$1<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'>);
338
+ //#endregion
339
+ //#region packages/substance-3d/src/sdk/types.gen.d.ts
340
+ type ClientOptions = {
341
+ baseUrl: 'https://s3d.adobe.io' | (string & {});
342
+ };
343
+ /**
344
+ * The error within the error response.
345
+ */
346
+ type FfapierrorsFfapiError = {
347
+ /**
348
+ * A URL to the JSON schema for this object.
349
+ */
350
+ readonly $schema?: string;
351
+ /**
352
+ * Associated error code.
353
+ */
354
+ error_code: string;
355
+ /**
356
+ * Optional list of individual error details.
357
+ */
358
+ error_details?: Array<unknown>;
359
+ /**
360
+ * Error message.
361
+ */
362
+ message?: string;
363
+ };
364
+ type FfapierrorsFfapiErrorDetail = {
365
+ /**
366
+ * Error code.
367
+ */
368
+ error_code: string;
369
+ /**
370
+ * Additional context for the error.
371
+ */
372
+ error_context?: unknown;
373
+ /**
374
+ * Where the error occurred, indicated in dot notation (e.g., body.items[3].tags or path.thing-id).
375
+ */
376
+ loc: string;
377
+ /**
378
+ * Error message text.
379
+ */
380
+ msg: string;
381
+ };
382
+ type RestBaseMountedSource = {
383
+ /**
384
+ * Fetch content from a Frame.io folder. ⚠️ All sources are exclusive.
385
+ *
386
+ * @deprecated
387
+ */
388
+ 'frame.io'?: RestBaseSourceFrameIo;
389
+ /**
390
+ * Where to mount the content of the source in the virtual job working directory.
391
+ */
392
+ mountPoint?: string;
393
+ /**
394
+ * Fetch content from a next.frame.io folder. ⚠️ All sources are exclusive.
395
+ */
396
+ 'next.frame.io'?: RestBaseSourceFrameIov4;
397
+ /**
398
+ * Read content from an existing space (can be another job's output, or uploaded manually with the space API). ⚠️ All sources are exclusive.'
399
+ */
400
+ space?: RestBaseSourceSpace;
401
+ /**
402
+ * Fetch content from a URL. ⚠️ All sources are exclusive.
403
+ */
404
+ url?: RestBaseSourceUrl;
405
+ };
406
+ type RestBaseSourceFrameIo = {
407
+ accessToken: string;
408
+ folderId: string;
409
+ };
410
+ type RestBaseSourceFrameIov4 = {
411
+ accessToken: string;
412
+ accountId: string;
413
+ folderId: string;
414
+ };
415
+ type RestBaseSourceSpace = {
416
+ /**
417
+ * A space ID.
418
+ */
419
+ id: string;
420
+ };
421
+ type RestBaseSourceUrl = {
422
+ /**
423
+ * Filename override. If unset, the service will try to detect the filename from the content disposition header, then the URL itself.
424
+ */
425
+ filename?: string;
426
+ /**
427
+ * URL to fetch content from.
428
+ */
429
+ url: string;
430
+ };
431
+ type RestBaseSpace = {
432
+ /**
433
+ * A URL to the JSON schema for this object.
434
+ */
435
+ readonly $schema?: string;
436
+ /**
437
+ * time at which the space will be deleted
438
+ */
439
+ expiry: string;
440
+ /**
441
+ * List of all files contained in Space, ordered by name.
442
+ */
443
+ files: Array<RestBaseSpaceFile> | null;
444
+ /**
445
+ * Unique identifier of this Space.
446
+ */
447
+ id: string;
448
+ /**
449
+ * URL to the full description of this Space.
450
+ */
451
+ url: string;
452
+ /**
453
+ * URL to fetch the whole space as an archive (usually a ZIP file).
454
+ */
455
+ archiveUrl?: unknown;
456
+ };
457
+ type RestBaseSpaceFile = {
458
+ name: string;
459
+ size: number;
460
+ url: string;
461
+ };
462
+ type Restv1ComposeSceneRequest = {
463
+ /**
464
+ * A URL to the JSON schema for this object.
465
+ */
466
+ readonly $schema?: string;
467
+ /**
468
+ * Name of an existing camera in the source 3D scene. The camera has to be defined in the scene.
469
+ */
470
+ cameraName?: string | null;
471
+ /**
472
+ * Class of content to generate.
473
+ */
474
+ contentClass?: 'art' | 'photo';
475
+ /**
476
+ * Enable the auto-generated ground plane under the hero asset. This is useful if the 3D scene contains only a hero asset, without additional elements.
477
+ */
478
+ enableGroundPlane?: boolean;
479
+ /**
480
+ * Optional environment settings used for all variations. If omitted, an environment will be generated based on the background. If set, the `lightingSeeds` parameter will be ignored.
481
+ */
482
+ environment?: TypesComposeEnvironment;
483
+ /**
484
+ * Exposure, in EV (0=neutral).
485
+ */
486
+ environmentExposure?: number;
487
+ /**
488
+ * Name of an existing 'hero asset' in the source 3D scene. The asset has to be defined in the scene.
489
+ */
490
+ heroAsset: string;
491
+ /**
492
+ * Optional seeds to be used to generate the lighting for the scene. The first seed will be used with the first seed of the background, the second one with the second seed of the background and so on. Background seeds must be defined and the number of lighting seeds should equal the number of background seeds. If not set, random seeds will be used. You will be able to retrieve the seeds used for the generation in the output details of the job.
493
+ */
494
+ lightingSeeds?: Array<number>;
495
+ /**
496
+ * Model version to be used to generate the background image with Adobe Firefly.
497
+ */
498
+ modelVersion?: 'image3_fast' | 'image4_standard' | 'image4_ultra';
499
+ /**
500
+ * The number of variations to generate. `numVariations` will default to the number of seeds, or to 1 if `seeds` is not specified.
501
+ */
502
+ numVariations?: number;
503
+ /**
504
+ * Prompt to be used to generate the background image with Adobe Firefly.
505
+ */
506
+ prompt: string;
507
+ scene?: TypesComposeSceneSceneDetails;
508
+ /**
509
+ * The path of the scene file in `sources`. If value is null, the first found scene file will be used.
510
+ */
511
+ sceneFile?: string;
512
+ /**
513
+ * Optional seed value to be used to generate the background image with Adobe Firefly. A seed ensures consistent background image generation. If `seed` is not set, a random seed will be used. Retrieve the seed used for the generation in the output details of the job. If specified with `numVariations`, the number of seeds must be the equal to `numVariations`.
514
+ */
515
+ seeds?: Array<number>;
516
+ /**
517
+ * The size of the image generations. The supported dimensions for image generations are:
518
+ * | Dimensions | Description |
519
+ * | -----------| ----- |
520
+ * | { "width": 2048, "height": 2048} | Square (1:1) |
521
+ * | { "width": 2304, "height": 1792 } | Landscape (4:3) |
522
+ * | { "width": 1792, "height": 2304 } | Portrait (3:4) |
523
+ * | { "width": 2688, "height": 1536 } | Widescreen (16:9) |
524
+ * | { "width": 1344, "height": 768 } |(7:4) |
525
+ * |{ "width": 1152, "height": 896 } |(9:7) |
526
+ * |{ "width": 896, "height": 1152 } |(7:9) |
527
+ * | { "width": 1024, "height": 1024} | Square (1:1) |
528
+ */
529
+ size?: TypesOutputSize;
530
+ /**
531
+ * List of sources to aggregate and run the job against.
532
+ */
533
+ sources: Array<RestBaseMountedSource> | null;
534
+ /**
535
+ * Optional 'style image' to be used to generate the background. The style image has to be present in `sources`.
536
+ */
537
+ styleImage?: string;
538
+ };
539
+ type Restv1BetaComposeOutput = {
540
+ backgroundImage: Restv1BetaComposeOutputImage;
541
+ image: Restv1BetaComposeOutputImage;
542
+ lightingSeed: number;
543
+ maskImage: Restv1BetaComposeOutputImage;
544
+ seed: number;
545
+ };
546
+ type Restv1BetaComposeOutputImage = {
547
+ url: string;
548
+ };
549
+ type Restv1BetaComposeSceneJobResult = {
550
+ outputSpace?: RestBaseSpace;
551
+ outputs: Array<Restv1BetaComposeOutput> | null;
552
+ promptHasBlockedArtists: boolean;
553
+ promptHasDeniedWords: boolean;
554
+ warnings: Array<TypesWarning> | null;
555
+ };
556
+ type Restv1BetaComposeSceneRequest = {
557
+ /**
558
+ * A URL to the JSON Schema for this object.
559
+ */
560
+ readonly $schema?: string;
561
+ /**
562
+ * Name of an existing camera in the source 3D scene (the camera has to be defined in the scene). This is exclusive with 'scene.camera'.
563
+ */
564
+ cameraName?: string | null;
565
+ /**
566
+ * Class of content to generate ('photo' or 'art'). If omitted, defaults to 'photo'.
567
+ */
568
+ contentClass?: 'art' | 'photo';
569
+ /**
570
+ * Allow to enable the auto-generated ground plane under the hero asset. Useful if the 3D scene contains only a hero asset without additional elements. Disabled by default.
571
+ */
572
+ enableGroundPlane?: boolean;
573
+ /**
574
+ * Optional environment settings used for all variations. If omitted, an environment will be generated based on the background. If set, the `lightingSeeds` parameter will be ignored.
575
+ */
576
+ environment?: TypesComposeEnvironment;
577
+ /**
578
+ * Exposure, in EV (0=neutral).
579
+ */
580
+ environmentExposure?: number;
581
+ /**
582
+ * Name of an existing 'hero asset' in the source 3D scene (the asset has to be defined in the scene).
583
+ */
584
+ heroAsset: string;
585
+ /**
586
+ * Optional seeds to be used to generate the lighting for the scene. The first seed will be used with the first seed of the background, the second one with the second seed of the background and so on. Background seeds must be defined and the number of lighting seeds should equal the number of background seeds. If not set, random seeds will be used. You will be able to retrieve the seeds used for the generation in the output details of the job.
587
+ */
588
+ lightingSeeds?: Array<number>;
589
+ /**
590
+ * Model version to be used to generate the background image with Adobe Firefly. If omitted, defaults to 'image3_fast'.
591
+ */
592
+ modelVersion?: 'image3_fast' | 'image4_standard' | 'image4_ultra';
593
+ /**
594
+ * The number of variations to generate. `numVariations` will default to the number of seeds, or to 1 if `seeds` is not specified.
595
+ */
596
+ numVariations?: number;
597
+ /**
598
+ * Prompt to be used to generate the background image with Adobe Firefly.
599
+ */
600
+ prompt: string;
601
+ scene?: TypesComposeSceneSceneDetails;
602
+ /**
603
+ * The path of the scene file in `sources`. If value is null, the first found scene file will be used.
604
+ */
605
+ sceneFile?: string;
606
+ /**
607
+ * Optional seed to be used to generate the background image with Adobe Firefly. Seed ensures consistent background image generation. If `seed` is not set, a random seed will be used. You will be able to retrieve the seed used for the generation in the output details of the job. If specified alongside `numVariations`, the number of seeds must be equal to `numVariations`.
608
+ */
609
+ seeds?: Array<number>;
610
+ /**
611
+ * The size of the requested generations. The supported dimensions for image generations are:
612
+ * | Dimensions | Description |
613
+ * | -----------| ----- |
614
+ * | { "width": 2048, "height": 2048} | Square (1:1) |
615
+ * | { "width": 2304, "height": 1792 } | Landscape (4:3) |
616
+ * | { "width": 1792, "height": 2304 } | Portrait (3:4) |
617
+ * | { "width": 2688, "height": 1536 } | Widescreen (16:9) |
618
+ */
619
+ size?: TypesOutputSize;
620
+ /**
621
+ * List of sources to aggregate and run the job against.
622
+ */
623
+ sources: Array<RestBaseMountedSource> | null;
624
+ /**
625
+ * Optional 'style image' to be used to generate the background (the style image has to be present in sources)
626
+ */
627
+ styleImage?: string;
628
+ };
629
+ type Restv1BetaComposeSceneResponse = {
630
+ /**
631
+ * A URL to the JSON schema for this object.
632
+ */
633
+ readonly $schema?: string;
634
+ /**
635
+ * URL to report a bug about this job.
636
+ */
637
+ bugReportUrl: string;
638
+ /**
639
+ * Potential error that happened during the job processing.
640
+ */
641
+ error?: string;
642
+ /**
643
+ * Unique identifier of the job.
644
+ */
645
+ id: string;
646
+ /**
647
+ * Result when the job is successfully finished.
648
+ */
649
+ result?: Restv1BetaComposeSceneJobResult;
650
+ /**
651
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
652
+ */
653
+ status: string;
654
+ /**
655
+ * URL to fetch/poll for job result in case the job is not finished yet.
656
+ */
657
+ url: string;
658
+ };
659
+ type Restv1BetaCreateSceneJobResult = {
660
+ outputSpace?: RestBaseSpace;
661
+ /**
662
+ * URL for the created scene.
663
+ */
664
+ sceneUrl: string;
665
+ };
666
+ type Restv1BetaCreateSceneRequest = {
667
+ /**
668
+ * A URL to the JSON schema for this object.
669
+ */
670
+ readonly $schema?: string;
671
+ /**
672
+ * Encoding output format.
673
+ */
674
+ encoding: 'glb' | 'gltf' | 'fbx' | 'usdz' | 'usda' | 'usdc' | 'obj';
675
+ /**
676
+ * Output filename.
677
+ */
678
+ fileBaseName: string;
679
+ scene: TypesSceneDescription;
680
+ /**
681
+ * List of sources to aggregate and run the job against.
682
+ */
683
+ sources: Array<RestBaseMountedSource> | null;
684
+ };
685
+ type Restv1BetaCreateSceneResponse = {
686
+ /**
687
+ * A URL to the JSON schema for this object.
688
+ */
689
+ readonly $schema?: string;
690
+ /**
691
+ * URL to report a bug about this job.
692
+ */
693
+ bugReportUrl: string;
694
+ /**
695
+ * Potential error that happened during the job processing.
696
+ */
697
+ error?: string;
698
+ /**
699
+ * Unique identifier of the job.
700
+ */
701
+ id: string;
702
+ /**
703
+ * Result when the job is successfully finished.
704
+ */
705
+ result?: Restv1BetaCreateSceneJobResult;
706
+ /**
707
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
708
+ */
709
+ status: string;
710
+ /**
711
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
712
+ */
713
+ url: string;
714
+ };
715
+ type Restv1BetaModelConvertJobResult = {
716
+ outputSpace?: RestBaseSpace;
717
+ };
718
+ type Restv1BetaModelConvertRequest = {
719
+ /**
720
+ * A URL to the JSON schema for this object.
721
+ */
722
+ readonly $schema?: string;
723
+ /**
724
+ * Output format.
725
+ */
726
+ format: 'glb' | 'gltf' | 'fbx' | 'usdz' | 'usda' | 'usdc' | 'obj';
727
+ /**
728
+ * Conversion usually takes the first file that's considered a valid 3D model. Define this entry point to disambiguate when there are multiple options.
729
+ */
730
+ modelEntrypoint?: string;
731
+ /**
732
+ * List of sources to aggregate and run the job against.
733
+ */
734
+ sources: Array<RestBaseMountedSource> | null;
735
+ };
736
+ type Restv1BetaModelConvertResponse = {
737
+ /**
738
+ * A URL to the JSON schema for this object.
739
+ */
740
+ readonly $schema?: string;
741
+ /**
742
+ * URL to report a bug about this job.
743
+ */
744
+ bugReportUrl: string;
745
+ /**
746
+ * Potential error that happened during the job processing.
747
+ */
748
+ error?: string;
749
+ /**
750
+ * Unique identifier of the job.
751
+ */
752
+ id: string;
753
+ /**
754
+ * Result when the job is successfully finished.
755
+ */
756
+ result?: Restv1BetaModelConvertJobResult;
757
+ /**
758
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
759
+ */
760
+ status: string;
761
+ /**
762
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
763
+ */
764
+ url: string;
765
+ };
766
+ type Restv1BetaRenderModelRequest = {
767
+ /**
768
+ * A URL to the JSON schema for this object.
769
+ */
770
+ readonly $schema?: string;
771
+ /**
772
+ * Options related to auto-framing.
773
+ */
774
+ autoFraming?: TypesAutoFramingOptions;
775
+ /**
776
+ * Options related to the background.
777
+ */
778
+ background?: TypesBackgroundOptions;
779
+ /**
780
+ * If set, this camera is used to perform the render. The camera has to be defined in the scene.
781
+ */
782
+ cameraName?: string;
783
+ /**
784
+ * Request additional outputs from the renderer.
785
+ */
786
+ extraOutputs?: TypesRenderExtraOutputs;
787
+ /**
788
+ * Options related to the ground plane.
789
+ */
790
+ groundPlane?: TypesGroundPlaneOptions;
791
+ /**
792
+ * Define rendering scene primitives.
793
+ */
794
+ scene: TypesSimpleSceneDescription;
795
+ /**
796
+ * Options related to the render size.
797
+ */
798
+ size?: TypesSizeOptions;
799
+ /**
800
+ * List of sources to aggregate and run the job against.
801
+ */
802
+ sources: Array<RestBaseMountedSource> | null;
803
+ };
804
+ type Restv1BetaRenderModelResponse = {
805
+ /**
806
+ * A URL to the JSON schema for this object.
807
+ */
808
+ readonly $schema?: string;
809
+ /**
810
+ * URL to report a bug about this job.
811
+ */
812
+ bugReportUrl: string;
813
+ /**
814
+ * Potential error that happened during the job processing.
815
+ */
816
+ error?: string;
817
+ /**
818
+ * Unique identifier of the job.
819
+ */
820
+ id: string;
821
+ /**
822
+ * Result when the job is successfully finished.
823
+ */
824
+ result?: Restv1BetaRenderSceneJobResult;
825
+ /**
826
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
827
+ */
828
+ status: string;
829
+ /**
830
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
831
+ */
832
+ url: string;
833
+ };
834
+ type Restv1BetaRenderModelTurntableRequest = {
835
+ /**
836
+ * A URL to the JSON schema for this object.
837
+ */
838
+ readonly $schema?: string;
839
+ /**
840
+ * Auto-framing related options.
841
+ */
842
+ autoFraming?: TypesAutoFramingOptions;
843
+ /**
844
+ * Background related options.
845
+ */
846
+ background?: TypesBackgroundOptions;
847
+ /**
848
+ * If set, this camera is used to perform the render. The camera has to be defined in the scene.
849
+ */
850
+ cameraName?: string;
851
+ /**
852
+ * Whether to export individual frames along with the turntable product.
853
+ */
854
+ exportFrames?: boolean;
855
+ framerate?: number;
856
+ /**
857
+ * Ground plane related options.
858
+ */
859
+ groundPlane?: TypesGroundPlaneOptions;
860
+ /**
861
+ * Set the rotation mode. Options are `rotate_camera` (camera rotates around model), `rotate_model` (model rotates), or `rotate_environment` (environment rotates).
862
+ */
863
+ mode?: 'rotate_camera' | 'rotate_model' | 'rotate_environment';
864
+ /**
865
+ * Define rendering scene primitives.
866
+ */
867
+ scene: TypesSimpleSceneDescription;
868
+ seconds?: number;
869
+ /**
870
+ * Render size related options.
871
+ */
872
+ size?: TypesSizeOptions;
873
+ /**
874
+ * List of sources to aggregate and run the job against.
875
+ */
876
+ sources: Array<RestBaseMountedSource> | null;
877
+ /**
878
+ * Set to true to use a very fast rendering technique but with less accurate lighting.
879
+ */
880
+ useRasterizer?: boolean;
881
+ };
882
+ type Restv1BetaRenderModelTurntableResponse = {
883
+ /**
884
+ * A URL to the JSON schema for this object.
885
+ */
886
+ readonly $schema?: string;
887
+ /**
888
+ * URL to report a bug about this job.
889
+ */
890
+ bugReportUrl: string;
891
+ /**
892
+ * Potential error that happened during the job processing.
893
+ */
894
+ error?: string;
895
+ /**
896
+ * Unique identifier of the job.
897
+ */
898
+ id: string;
899
+ /**
900
+ * Result when the job is successfully finished.
901
+ */
902
+ result?: Restv1BetaRenderSceneTurntableJobResult;
903
+ /**
904
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
905
+ */
906
+ status: string;
907
+ /**
908
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
909
+ */
910
+ url: string;
911
+ };
912
+ type Restv1BetaRenderSceneJobResult = {
913
+ /**
914
+ * List of URLs to the rendered frames. The rendered frames are ordered by frame number.
915
+ */
916
+ framesUrls?: Array<string> | null;
917
+ materialIds?: TypesIdsMapData;
918
+ materialMasks?: Array<TypesMaskNameToFileBinding>;
919
+ objectIds?: TypesIdsMapData;
920
+ objectMasks?: Array<TypesMaskNameToFileBinding>;
921
+ outputSpace?: RestBaseSpace;
922
+ /**
923
+ * URL to the rendered scene.
924
+ */
925
+ renderUrl: string;
926
+ warnings: Array<TypesWarning> | null;
927
+ };
928
+ type Restv1BetaRenderSceneRequest = {
929
+ /**
930
+ * A URL to the JSON schema for this object.
931
+ */
932
+ readonly $schema?: string;
933
+ /**
934
+ * Auto-framing related options.
935
+ */
936
+ autoFraming?: TypesAutoFramingOptions;
937
+ /**
938
+ * Background related options.
939
+ */
940
+ background?: TypesBackgroundOptions;
941
+ /**
942
+ * If set, this camera is used to perform the render. The camera has to be defined in the scene.
943
+ */
944
+ cameraName?: string;
945
+ /**
946
+ * Request additional outputs from the renderer.
947
+ */
948
+ extraOutputs?: TypesRenderExtraOutputs;
949
+ /**
950
+ * Options related to the ground plane.
951
+ */
952
+ groundPlane?: TypesGroundPlaneOptions;
953
+ /**
954
+ * Define rendering scene primitives.
955
+ */
956
+ scene: TypesSceneDescription;
957
+ /**
958
+ * Render size related options.
959
+ */
960
+ size?: TypesSizeOptions;
961
+ /**
962
+ * List of sources to aggregate and run the job against.
963
+ */
964
+ sources: Array<RestBaseMountedSource> | null;
965
+ };
966
+ type Restv1BetaRenderSceneResponse = {
967
+ /**
968
+ * A URL to the JSON schema for this object.
969
+ */
970
+ readonly $schema?: string;
971
+ /**
972
+ * URL to report a bug about this job.
973
+ */
974
+ bugReportUrl: string;
975
+ /**
976
+ * Potential error that happened during the job processing.
977
+ */
978
+ error?: string;
979
+ /**
980
+ * Unique identifier of the job.
981
+ */
982
+ id: string;
983
+ /**
984
+ * Result when the job is successfully finished.
985
+ */
986
+ result?: Restv1BetaRenderSceneJobResult;
987
+ /**
988
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
989
+ */
990
+ status: string;
991
+ /**
992
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
993
+ */
994
+ url: string;
995
+ };
996
+ type Restv1BetaRenderSceneTurntableJobResult = {
997
+ /**
998
+ * List of URLs to the rendered frames. The rendered frames are ordered by frame number.
999
+ */
1000
+ framesUrls?: Array<string> | null;
1001
+ outputSpace?: RestBaseSpace;
1002
+ /**
1003
+ * URL to the rendered scene.
1004
+ */
1005
+ renderUrl: string;
1006
+ warnings: Array<TypesWarning> | null;
1007
+ };
1008
+ type Restv1BetaSceneDescJobResult = {
1009
+ stats: TypesSceneStatsInfo;
1010
+ };
1011
+ type Restv1BetaSceneDescRequest = {
1012
+ /**
1013
+ * A URL to the JSON schema for this object.
1014
+ */
1015
+ readonly $schema?: string;
1016
+ /**
1017
+ * Path to the scene file in `sources`. If the value is `null`, the first found scene file will be used.
1018
+ */
1019
+ sceneFile?: string;
1020
+ /**
1021
+ * List of sources to aggregate and run the job against.
1022
+ */
1023
+ sources: Array<RestBaseMountedSource> | null;
1024
+ };
1025
+ type Restv1BetaSceneDescResponse = {
1026
+ /**
1027
+ * A URL to the JSON schema for this object.
1028
+ */
1029
+ readonly $schema?: string;
1030
+ /**
1031
+ * URL to report a bug about this job.
1032
+ */
1033
+ bugReportUrl: string;
1034
+ /**
1035
+ * Potential error that happened during the job processing.
1036
+ */
1037
+ error?: string;
1038
+ /**
1039
+ * Unique identifier of the job.
1040
+ */
1041
+ id: string;
1042
+ /**
1043
+ * Result when the job is successfully finished.
1044
+ */
1045
+ result?: Restv1BetaSceneDescJobResult;
1046
+ /**
1047
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
1048
+ */
1049
+ status: string;
1050
+ /**
1051
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
1052
+ */
1053
+ url: string;
1054
+ };
1055
+ type TypesAutoFramingOptions = {
1056
+ algorithm?: 'auto' | 'bounding_cylinder' | 'frustum_fit';
1057
+ /**
1058
+ * A value of 1 indicates tight framing. Less than 1 is a zoom-out. Greater than 1 is a zoom-in.
1059
+ */
1060
+ zoomFactor?: number;
1061
+ };
1062
+ type TypesAzimuthAltitude = {
1063
+ /**
1064
+ * Altitude, in degrees, from -90 to 90 degrees.
1065
+ */
1066
+ altitude: number;
1067
+ /**
1068
+ * Rotation around the vertical axis, in degrees.
1069
+ */
1070
+ azimuth: number;
1071
+ /**
1072
+ * Look at point coordinates.
1073
+ */
1074
+ lookAt: [number, number, number] | null;
1075
+ /**
1076
+ * Distance to the `lookAt` point.
1077
+ */
1078
+ radius: number;
1079
+ };
1080
+ type TypesBackgroundOptions = {
1081
+ /**
1082
+ * RGBA background color. Has an effect only if `showEnvironment` is `false`. Each component has to be in the [0,1] range.
1083
+ */
1084
+ backgroundColor?: [number, number, number, number] | null;
1085
+ /**
1086
+ * Path to a background image. If set, will be used as the background.
1087
+ */
1088
+ backgroundImage?: string;
1089
+ /**
1090
+ * Show the environment map as the background.
1091
+ */
1092
+ showEnvironment?: boolean;
1093
+ };
1094
+ type TypesCameraStats = {
1095
+ aspectRatio: number;
1096
+ fStop: number;
1097
+ focalLength: number;
1098
+ focusDistance: number;
1099
+ horizontalAperture: number;
1100
+ horizontalApertureOffset: number;
1101
+ name: string;
1102
+ projection: string;
1103
+ verticalAperture: number;
1104
+ verticalApertureOffset: number;
1105
+ };
1106
+ type TypesComposeEnvironment = {
1107
+ /**
1108
+ * Path of environment file in `sources`. If value is null, the environment file will be generated.
1109
+ */
1110
+ file: string;
1111
+ /**
1112
+ * Controls the orientation of the environment map.
1113
+ */
1114
+ rotation?: TypesRotation;
1115
+ };
1116
+ type TypesComposeSceneCustomModel = {
1117
+ /**
1118
+ * ID of the custom model to be used for the generation.
1119
+ */
1120
+ customModelId: string | null;
1121
+ /**
1122
+ * Token to be used to access the custom model.
1123
+ */
1124
+ customModelToken: string | null;
1125
+ };
1126
+ type TypesComposeSceneSceneDetails = {
1127
+ /**
1128
+ * Custom camera, exclusive with 'cameraName'.
1129
+ */
1130
+ camera?: TypesSceneCamera;
1131
+ };
1132
+ type TypesExportMasksOptions = {
1133
+ /**
1134
+ * The list of masks to be exported, accepts glob expressions. If empty, all masks will be exported.
1135
+ */
1136
+ selection?: Array<string> | null;
1137
+ };
1138
+ type TypesFormatOptions = {
1139
+ /**
1140
+ * USD format options.
1141
+ */
1142
+ usd: TypesUsdOptions;
1143
+ };
1144
+ type TypesGroundPlaneOptions = {
1145
+ /**
1146
+ * Automatically position the scene on the ground plane. Moves the scene along the vertical axis.
1147
+ */
1148
+ autoGroundScene?: boolean;
1149
+ /**
1150
+ * Enable/disable the ground plane.
1151
+ */
1152
+ enable?: boolean;
1153
+ /**
1154
+ * Enable/disable reflections onto the ground plane.
1155
+ */
1156
+ reflections?: boolean;
1157
+ /**
1158
+ * Controls the opacity of the reflections. Useful for compositing purposes.
1159
+ */
1160
+ reflectionsOpacity?: number;
1161
+ /**
1162
+ * Controls the roughness of the reflections. Useful for compositing purposes.
1163
+ */
1164
+ reflectionsRoughness?: number;
1165
+ /**
1166
+ * Controls whether the ground plane catches shadows or not.
1167
+ */
1168
+ shadows?: boolean;
1169
+ /**
1170
+ * Controls the opacity of cast shadows. Only has effect if shadows are enabled.
1171
+ */
1172
+ shadowsOpacity?: number;
1173
+ };
1174
+ type TypesIdsMapData = {
1175
+ /**
1176
+ * The Ids map file name.
1177
+ */
1178
+ fileName: string;
1179
+ /**
1180
+ * List of name to color bindings.
1181
+ */
1182
+ ids: Array<TypesNameToColorBinding> | null;
1183
+ };
1184
+ type TypesMaskNameToFileBinding = {
1185
+ /**
1186
+ * The file name.
1187
+ */
1188
+ fileName: string;
1189
+ /**
1190
+ * The name in the 3D scene.
1191
+ */
1192
+ name: string;
1193
+ };
1194
+ type TypesMaterial = {
1195
+ /**
1196
+ * The PBR material definition.
1197
+ */
1198
+ sbs?: TypesSbsMaterial;
1199
+ /**
1200
+ * The solid color material definition.
1201
+ */
1202
+ solidColor?: TypesSolidColorMaterial;
1203
+ };
1204
+ type TypesMaterialAssign = {
1205
+ /**
1206
+ * The material definition.
1207
+ */
1208
+ material: TypesMaterial;
1209
+ /**
1210
+ * Desired material name, it will be sanitized to make a valid USD prim name.
1211
+ */
1212
+ materialName: string;
1213
+ /**
1214
+ * List of nodes under which geometric primitives will have this material assigned. Each entry can be a full node name or a glob expression.
1215
+ */
1216
+ nodeList: Array<string> | null;
1217
+ /**
1218
+ * Set to true to assign this material by default to all geometric primitives.
1219
+ */
1220
+ assignByDefault?: unknown;
1221
+ /**
1222
+ * List of nodes to exclude from default assignment.
1223
+ */
1224
+ excludeFromDefault?: unknown;
1225
+ };
1226
+ type TypesMaterialOverride = {
1227
+ /**
1228
+ * RGB float color value, for example white is [1.0,1.0,1.0].
1229
+ */
1230
+ absorptionColorFactor?: [number, number, number];
1231
+ absorptionColorTexture?: string;
1232
+ absorptionDistanceFactor?: number;
1233
+ absorptionDistanceTexture?: string;
1234
+ /**
1235
+ * RGB float color value, for example white is [1.0,1.0,1.0].
1236
+ */
1237
+ baseColorFactor?: [number, number, number];
1238
+ baseColorTexture?: string;
1239
+ /**
1240
+ * RGB float color value, for example white is [1.0,1.0,1.0].
1241
+ */
1242
+ coatColorFactor?: [number, number, number];
1243
+ coatColorTexture?: string;
1244
+ coatOpacityFactor?: number;
1245
+ coatOpacityTexture?: string;
1246
+ coatRoughnessFactor?: number;
1247
+ coatRoughnessTexture?: string;
1248
+ materialName: string;
1249
+ metallicFactor?: number;
1250
+ metallicTexture?: string;
1251
+ normalFactor?: [number, number, number];
1252
+ normalTexture?: string;
1253
+ opacityFactor?: number;
1254
+ opacityTexture?: string;
1255
+ pbrMaterial?: TypesSbsMaterial;
1256
+ roughnessFactor?: number;
1257
+ roughnessTexture?: string;
1258
+ translucencyFactor?: number;
1259
+ translucencyTexture?: string;
1260
+ volumeThicknessFactor?: number;
1261
+ volumeThicknessTexture?: string;
1262
+ };
1263
+ type TypesNameToColorBinding = {
1264
+ /**
1265
+ * Corresponding color in the ID map.
1266
+ */
1267
+ color: string;
1268
+ /**
1269
+ * Name in 3D scene.
1270
+ */
1271
+ name: string;
1272
+ };
1273
+ type TypesOutputSize = {
1274
+ height: number;
1275
+ width: number;
1276
+ };
1277
+ type TypesRenderExtraOutputs = {
1278
+ /**
1279
+ * Export an image with one color per material.
1280
+ */
1281
+ exportMaterialIds?: boolean;
1282
+ /**
1283
+ * Export one mask per material.
1284
+ */
1285
+ exportMaterialMasks?: TypesExportMasksOptions;
1286
+ /**
1287
+ * Export an image with one color per object.
1288
+ */
1289
+ exportObjectIds?: boolean;
1290
+ /**
1291
+ * Export one mask per object.
1292
+ */
1293
+ exportObjectMasks?: TypesExportMasksOptions;
1294
+ };
1295
+ type TypesRotation = {
1296
+ /**
1297
+ * Euler angles in degrees.
1298
+ */
1299
+ euler?: [number, number, number];
1300
+ /**
1301
+ * In W,X,Y,Z order.
1302
+ */
1303
+ quaternion?: [number, number, number, number];
1304
+ };
1305
+ type TypesSbsMaterial = {
1306
+ /**
1307
+ * Select a preset to be used for the substance material rendering.
1308
+ */
1309
+ preset?: string;
1310
+ /**
1311
+ * Substance material render resolution. This should be a power of two.
1312
+ */
1313
+ resolution?: 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;
1314
+ /**
1315
+ * Texture space rotation.
1316
+ */
1317
+ rotation?: number;
1318
+ /**
1319
+ * Path to a substance material; if not set, the first substance 3D material found in sources will be used.
1320
+ */
1321
+ sbsar?: string;
1322
+ /**
1323
+ * Texture space scale.
1324
+ */
1325
+ scale?: [number, number];
1326
+ /**
1327
+ * Texture space translation.
1328
+ */
1329
+ translation?: [number, number];
1330
+ };
1331
+ type TypesSceneBaseFile = {
1332
+ /**
1333
+ * Path to the scene file in `sources`.
1334
+ */
1335
+ file: string;
1336
+ /**
1337
+ * Define root node for models in scene graph. If not found, the node which is parent of all models in the scene will be used. If this node doesn't exist, a new node will be created under global root.
1338
+ */
1339
+ modelsRootNodeName?: string;
1340
+ };
1341
+ type TypesSceneCamera = {
1342
+ /**
1343
+ * Camera focal length, in mm.
1344
+ */
1345
+ focal?: number;
1346
+ /**
1347
+ * Camera sensor width, in mm.
1348
+ */
1349
+ sensorWidth?: number;
1350
+ /**
1351
+ * Controls the position and angle of the camera.
1352
+ */
1353
+ transform?: TypesTransform;
1354
+ };
1355
+ type TypesSceneDescription = {
1356
+ /**
1357
+ * Define a scene from a file. If value is `null`, an empty scene will be created.
1358
+ */
1359
+ baseFile?: TypesSceneBaseFile;
1360
+ /**
1361
+ * Define a new camera for the scene.
1362
+ */
1363
+ camera?: TypesSceneCamera;
1364
+ /**
1365
+ * Define the environment for the scene. Override the previous existing environment.
1366
+ */
1367
+ environment?: TypesSceneEnvironment;
1368
+ /**
1369
+ * Assign new materials to geometric primitives.
1370
+ */
1371
+ materials?: Array<TypesMaterialAssign> | null;
1372
+ /**
1373
+ * Length of a scene unit, in meters. Defaults to `baseFile` meters per unit if any, or 0.01 (centimeters) otherwise.
1374
+ */
1375
+ metersPerUnit?: number;
1376
+ /**
1377
+ * Define additional models for the scene.
1378
+ */
1379
+ models?: TypesSceneModels;
1380
+ };
1381
+ type TypesSceneEnvironment = {
1382
+ /**
1383
+ * Exposure, in EV (0=neutral).
1384
+ */
1385
+ exposure?: number;
1386
+ /**
1387
+ * Path to the environment file in `sources`. If the value is `null`, the first found environment file will be used.
1388
+ */
1389
+ file?: string;
1390
+ /**
1391
+ * A scene may contain 3D lights, like area lights or spot lights. By default, all those lights are removed when a new environment is set. Set this option to `true` to preserve the scene 3D lights.
1392
+ */
1393
+ preserveLights?: boolean;
1394
+ /**
1395
+ * Controls the orientation of the environment map.
1396
+ */
1397
+ rotation?: TypesRotation;
1398
+ };
1399
+ type TypesSceneModel = {
1400
+ /**
1401
+ * Node name in scene graph which used as parent for the model. If anchor is not found, a node with the anchor name will be generated under models root node. And If value is `null`, a node will be generated under models root node.
1402
+ */
1403
+ anchorName?: string;
1404
+ /**
1405
+ * Path to the model file in `sources`. If the value is `null`, the first found model file will be used.
1406
+ */
1407
+ file?: string;
1408
+ /**
1409
+ * Define options specific for the model file format.
1410
+ */
1411
+ formatOptions?: TypesFormatOptions;
1412
+ /**
1413
+ * Define material overrides.
1414
+ */
1415
+ materialOverrides?: Array<TypesMaterialOverride> | null;
1416
+ /**
1417
+ * Transform applied on the anchor node. Overrides the previous value, if it exists.
1418
+ */
1419
+ transform?: TypesTransform;
1420
+ };
1421
+ type TypesSceneModels = {
1422
+ /**
1423
+ * List of model import definitions.
1424
+ */
1425
+ imports?: Array<TypesSceneModel> | null;
1426
+ /**
1427
+ * Global transformation applied on the models root node defined in the scene. Overrides the previous value, if it exists.
1428
+ */
1429
+ modelsRootNodeTransform?: TypesTransform;
1430
+ };
1431
+ type TypesSceneStatsBoundingBox = {
1432
+ max: Array<number> | null;
1433
+ min: Array<number> | null;
1434
+ };
1435
+ type TypesSceneStatsInfo = {
1436
+ cameraNames: Array<string> | null;
1437
+ materialNames: Array<string> | null;
1438
+ metersPerSceneUnit: number;
1439
+ nodesHierarchy: TypesSceneStatsNode;
1440
+ numEquivalentTriangles: number;
1441
+ numExtraPolygons: number;
1442
+ numFaces: number;
1443
+ numLines: number;
1444
+ numMeshes: number;
1445
+ numPoints: number;
1446
+ numQuads: number;
1447
+ numSubMeshes: number;
1448
+ numTextures: number;
1449
+ numTriangles: number;
1450
+ numVertices: number;
1451
+ sceneUpAxis: string;
1452
+ };
1453
+ type TypesSceneStatsNode = {
1454
+ assignedMaterialName?: string;
1455
+ cameraStats?: TypesCameraStats;
1456
+ children?: Array<TypesSceneStatsNode> | null;
1457
+ name: string;
1458
+ type: string;
1459
+ variants?: Array<TypesSceneStatsNodeVariant> | null;
1460
+ worldSpaceBoundingBox?: TypesSceneStatsBoundingBox;
1461
+ };
1462
+ type TypesSceneStatsNodeVariant = {
1463
+ currentValue: string;
1464
+ name: string;
1465
+ values: Array<string> | null;
1466
+ };
1467
+ type TypesShadowCatchingMaterial = {
1468
+ reflectionOpacity: number;
1469
+ roughness: number;
1470
+ shadowOpacity: number;
1471
+ };
1472
+ type TypesSimpleSceneDescription = {
1473
+ /**
1474
+ * Define a new camera for the scene.
1475
+ */
1476
+ camera?: TypesSceneCamera;
1477
+ /**
1478
+ * Define the environment for the scene. Override the previous existing environment.
1479
+ */
1480
+ environment?: TypesSceneEnvironment;
1481
+ /**
1482
+ * Define options specific for the model file format.
1483
+ */
1484
+ formatOptions?: TypesFormatOptions;
1485
+ /**
1486
+ * Define material overrides.
1487
+ */
1488
+ materialOverrides?: Array<TypesMaterialOverride> | null;
1489
+ /**
1490
+ * Assign new materials to geometric primitives.
1491
+ */
1492
+ materials?: Array<TypesMaterialAssign> | null;
1493
+ /**
1494
+ * Length of a scene unit, in meters. Defaults to 0.01 (centimeters).
1495
+ */
1496
+ metersPerUnit?: number;
1497
+ /**
1498
+ * Path to the model file in `sources`. If the value is `null`, the first found model file will be used.
1499
+ */
1500
+ modelFile?: string;
1501
+ /**
1502
+ * Transform applied on the model.
1503
+ */
1504
+ modelTransform?: TypesTransform;
1505
+ };
1506
+ type TypesSizeOptions = {
1507
+ /**
1508
+ * Render height.
1509
+ */
1510
+ height: number;
1511
+ /**
1512
+ * Render width.
1513
+ */
1514
+ width: number;
1515
+ };
1516
+ type TypesSolidColorMaterial = {
1517
+ /**
1518
+ * RGB color of the solid material, each component has to be in the [0,1] range.
1519
+ */
1520
+ color: [number, number, number] | null;
1521
+ /**
1522
+ * Metallic factor of the solid material, has to be in the [0,1] range.
1523
+ */
1524
+ metallicFactor?: number;
1525
+ /**
1526
+ * Roughness factor of the solid material, has to be in the [0,1] range.
1527
+ */
1528
+ roughnessFactor?: number;
1529
+ };
1530
+ type TypesTrs = {
1531
+ rotation: TypesRotation;
1532
+ scale: [number, number, number] | null;
1533
+ translation: [number, number, number] | null;
1534
+ };
1535
+ type TypesTransform = {
1536
+ /**
1537
+ * Transform is defined by azimuth, altitude and radius terms. If set, do not set `matrix` or `trs`.
1538
+ */
1539
+ azimuthAltitude?: TypesAzimuthAltitude;
1540
+ /**
1541
+ * Transform is defined as a matrix. If set, do not set `trs` or `azimuthAltitude`.
1542
+ */
1543
+ matrix?: [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number];
1544
+ /**
1545
+ * Transform is defined by translation, rotation and scale terms. If set, do not set `matrix` or `azimuthAltitude`.
1546
+ */
1547
+ trs?: TypesTrs;
1548
+ };
1549
+ type TypesUsdOptions = {
1550
+ /**
1551
+ * List of USD variants definition applied on USD primitives.
1552
+ */
1553
+ variants: Array<TypesUsdVariant> | null;
1554
+ };
1555
+ type TypesUsdVariant = {
1556
+ primName: string;
1557
+ variant: string;
1558
+ variantSet: string;
1559
+ };
1560
+ type TypesWarning = {
1561
+ context: string;
1562
+ message: string;
1563
+ };
1564
+ /**
1565
+ * The error within the error response.
1566
+ */
1567
+ type FfapierrorsFfapiErrorWritable = {
1568
+ /**
1569
+ * Associated error code.
1570
+ */
1571
+ error_code: string;
1572
+ /**
1573
+ * Optional list of individual error details.
1574
+ */
1575
+ error_details?: Array<unknown>;
1576
+ /**
1577
+ * Error message.
1578
+ */
1579
+ message?: string;
1580
+ };
1581
+ type RestBaseSpaceWritable = {
1582
+ /**
1583
+ * time at which the space will be deleted
1584
+ */
1585
+ expiry: string;
1586
+ /**
1587
+ * List of all files contained in Space, ordered by name.
1588
+ */
1589
+ files: Array<RestBaseSpaceFile> | null;
1590
+ /**
1591
+ * Unique identifier of this Space.
1592
+ */
1593
+ id: string;
1594
+ /**
1595
+ * URL to the full description of this Space.
1596
+ */
1597
+ url: string;
1598
+ /**
1599
+ * URL to fetch the whole space as an archive (usually a ZIP file).
1600
+ */
1601
+ archiveUrl?: unknown;
1602
+ };
1603
+ type Restv1ComposeSceneRequestWritable = {
1604
+ /**
1605
+ * Name of an existing camera in the source 3D scene. The camera has to be defined in the scene.
1606
+ */
1607
+ cameraName?: string | null;
1608
+ /**
1609
+ * Class of content to generate.
1610
+ */
1611
+ contentClass?: 'art' | 'photo';
1612
+ /**
1613
+ * Enable the auto-generated ground plane under the hero asset. This is useful if the 3D scene contains only a hero asset, without additional elements.
1614
+ */
1615
+ enableGroundPlane?: boolean;
1616
+ /**
1617
+ * Optional environment settings used for all variations. If omitted, an environment will be generated based on the background. If set, the `lightingSeeds` parameter will be ignored.
1618
+ */
1619
+ environment?: TypesComposeEnvironment;
1620
+ /**
1621
+ * Exposure, in EV (0=neutral).
1622
+ */
1623
+ environmentExposure?: number;
1624
+ /**
1625
+ * Name of an existing 'hero asset' in the source 3D scene. The asset has to be defined in the scene.
1626
+ */
1627
+ heroAsset: string;
1628
+ /**
1629
+ * Optional seeds to be used to generate the lighting for the scene. The first seed will be used with the first seed of the background, the second one with the second seed of the background and so on. Background seeds must be defined and the number of lighting seeds should equal the number of background seeds. If not set, random seeds will be used. You will be able to retrieve the seeds used for the generation in the output details of the job.
1630
+ */
1631
+ lightingSeeds?: Array<number>;
1632
+ /**
1633
+ * Model version to be used to generate the background image with Adobe Firefly.
1634
+ */
1635
+ modelVersion?: 'image3_fast' | 'image4_standard' | 'image4_ultra';
1636
+ /**
1637
+ * The number of variations to generate. `numVariations` will default to the number of seeds, or to 1 if `seeds` is not specified.
1638
+ */
1639
+ numVariations?: number;
1640
+ /**
1641
+ * Prompt to be used to generate the background image with Adobe Firefly.
1642
+ */
1643
+ prompt: string;
1644
+ scene?: TypesComposeSceneSceneDetails;
1645
+ /**
1646
+ * The path of the scene file in `sources`. If value is null, the first found scene file will be used.
1647
+ */
1648
+ sceneFile?: string;
1649
+ /**
1650
+ * Optional seed value to be used to generate the background image with Adobe Firefly. A seed ensures consistent background image generation. If `seed` is not set, a random seed will be used. Retrieve the seed used for the generation in the output details of the job. If specified with `numVariations`, the number of seeds must be the equal to `numVariations`.
1651
+ */
1652
+ seeds?: Array<number>;
1653
+ /**
1654
+ * The size of the image generations. The supported dimensions for image generations are:
1655
+ * | Dimensions | Description |
1656
+ * | -----------| ----- |
1657
+ * | { "width": 2048, "height": 2048} | Square (1:1) |
1658
+ * | { "width": 2304, "height": 1792 } | Landscape (4:3) |
1659
+ * | { "width": 1792, "height": 2304 } | Portrait (3:4) |
1660
+ * | { "width": 2688, "height": 1536 } | Widescreen (16:9) |
1661
+ * | { "width": 1344, "height": 768 } |(7:4) |
1662
+ * |{ "width": 1152, "height": 896 } |(9:7) |
1663
+ * |{ "width": 896, "height": 1152 } |(7:9) |
1664
+ * | { "width": 1024, "height": 1024} | Square (1:1) |
1665
+ */
1666
+ size?: TypesOutputSize;
1667
+ /**
1668
+ * List of sources to aggregate and run the job against.
1669
+ */
1670
+ sources: Array<RestBaseMountedSource> | null;
1671
+ /**
1672
+ * Optional 'style image' to be used to generate the background. The style image has to be present in `sources`.
1673
+ */
1674
+ styleImage?: string;
1675
+ };
1676
+ type Restv1BetaComposeSceneJobResultWritable = {
1677
+ outputSpace?: RestBaseSpaceWritable;
1678
+ outputs: Array<Restv1BetaComposeOutput> | null;
1679
+ promptHasBlockedArtists: boolean;
1680
+ promptHasDeniedWords: boolean;
1681
+ warnings: Array<TypesWarning> | null;
1682
+ };
1683
+ type Restv1BetaComposeSceneRequestWritable = {
1684
+ /**
1685
+ * Name of an existing camera in the source 3D scene (the camera has to be defined in the scene). This is exclusive with 'scene.camera'.
1686
+ */
1687
+ cameraName?: string | null;
1688
+ /**
1689
+ * Class of content to generate ('photo' or 'art'). If omitted, defaults to 'photo'.
1690
+ */
1691
+ contentClass?: 'art' | 'photo';
1692
+ /**
1693
+ * Allow to enable the auto-generated ground plane under the hero asset. Useful if the 3D scene contains only a hero asset without additional elements. Disabled by default.
1694
+ */
1695
+ enableGroundPlane?: boolean;
1696
+ /**
1697
+ * Optional environment settings used for all variations. If omitted, an environment will be generated based on the background. If set, the `lightingSeeds` parameter will be ignored.
1698
+ */
1699
+ environment?: TypesComposeEnvironment;
1700
+ /**
1701
+ * Exposure, in EV (0=neutral).
1702
+ */
1703
+ environmentExposure?: number;
1704
+ /**
1705
+ * Name of an existing 'hero asset' in the source 3D scene (the asset has to be defined in the scene).
1706
+ */
1707
+ heroAsset: string;
1708
+ /**
1709
+ * Optional seeds to be used to generate the lighting for the scene. The first seed will be used with the first seed of the background, the second one with the second seed of the background and so on. Background seeds must be defined and the number of lighting seeds should equal the number of background seeds. If not set, random seeds will be used. You will be able to retrieve the seeds used for the generation in the output details of the job.
1710
+ */
1711
+ lightingSeeds?: Array<number>;
1712
+ /**
1713
+ * Model version to be used to generate the background image with Adobe Firefly. If omitted, defaults to 'image3_fast'.
1714
+ */
1715
+ modelVersion?: 'image3_fast' | 'image4_standard' | 'image4_ultra';
1716
+ /**
1717
+ * The number of variations to generate. `numVariations` will default to the number of seeds, or to 1 if `seeds` is not specified.
1718
+ */
1719
+ numVariations?: number;
1720
+ /**
1721
+ * Prompt to be used to generate the background image with Adobe Firefly.
1722
+ */
1723
+ prompt: string;
1724
+ scene?: TypesComposeSceneSceneDetails;
1725
+ /**
1726
+ * The path of the scene file in `sources`. If value is null, the first found scene file will be used.
1727
+ */
1728
+ sceneFile?: string;
1729
+ /**
1730
+ * Optional seed to be used to generate the background image with Adobe Firefly. Seed ensures consistent background image generation. If `seed` is not set, a random seed will be used. You will be able to retrieve the seed used for the generation in the output details of the job. If specified alongside `numVariations`, the number of seeds must be equal to `numVariations`.
1731
+ */
1732
+ seeds?: Array<number>;
1733
+ /**
1734
+ * The size of the requested generations. The supported dimensions for image generations are:
1735
+ * | Dimensions | Description |
1736
+ * | -----------| ----- |
1737
+ * | { "width": 2048, "height": 2048} | Square (1:1) |
1738
+ * | { "width": 2304, "height": 1792 } | Landscape (4:3) |
1739
+ * | { "width": 1792, "height": 2304 } | Portrait (3:4) |
1740
+ * | { "width": 2688, "height": 1536 } | Widescreen (16:9) |
1741
+ */
1742
+ size?: TypesOutputSize;
1743
+ /**
1744
+ * List of sources to aggregate and run the job against.
1745
+ */
1746
+ sources: Array<RestBaseMountedSource> | null;
1747
+ /**
1748
+ * Optional 'style image' to be used to generate the background (the style image has to be present in sources)
1749
+ */
1750
+ styleImage?: string;
1751
+ };
1752
+ type Restv1BetaComposeSceneResponseWritable = {
1753
+ /**
1754
+ * URL to report a bug about this job.
1755
+ */
1756
+ bugReportUrl: string;
1757
+ /**
1758
+ * Potential error that happened during the job processing.
1759
+ */
1760
+ error?: string;
1761
+ /**
1762
+ * Unique identifier of the job.
1763
+ */
1764
+ id: string;
1765
+ /**
1766
+ * Result when the job is successfully finished.
1767
+ */
1768
+ result?: Restv1BetaComposeSceneJobResultWritable;
1769
+ /**
1770
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
1771
+ */
1772
+ status: string;
1773
+ /**
1774
+ * URL to fetch/poll for job result in case the job is not finished yet.
1775
+ */
1776
+ url: string;
1777
+ };
1778
+ type Restv1BetaCreateSceneJobResultWritable = {
1779
+ outputSpace?: RestBaseSpaceWritable;
1780
+ /**
1781
+ * URL for the created scene.
1782
+ */
1783
+ sceneUrl: string;
1784
+ };
1785
+ type Restv1BetaCreateSceneRequestWritable = {
1786
+ /**
1787
+ * Encoding output format.
1788
+ */
1789
+ encoding: 'glb' | 'gltf' | 'fbx' | 'usdz' | 'usda' | 'usdc' | 'obj';
1790
+ /**
1791
+ * Output filename.
1792
+ */
1793
+ fileBaseName: string;
1794
+ scene: TypesSceneDescription;
1795
+ /**
1796
+ * List of sources to aggregate and run the job against.
1797
+ */
1798
+ sources: Array<RestBaseMountedSource> | null;
1799
+ };
1800
+ type Restv1BetaCreateSceneResponseWritable = {
1801
+ /**
1802
+ * URL to report a bug about this job.
1803
+ */
1804
+ bugReportUrl: string;
1805
+ /**
1806
+ * Potential error that happened during the job processing.
1807
+ */
1808
+ error?: string;
1809
+ /**
1810
+ * Unique identifier of the job.
1811
+ */
1812
+ id: string;
1813
+ /**
1814
+ * Result when the job is successfully finished.
1815
+ */
1816
+ result?: Restv1BetaCreateSceneJobResultWritable;
1817
+ /**
1818
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
1819
+ */
1820
+ status: string;
1821
+ /**
1822
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
1823
+ */
1824
+ url: string;
1825
+ };
1826
+ type Restv1BetaModelConvertJobResultWritable = {
1827
+ outputSpace?: RestBaseSpaceWritable;
1828
+ };
1829
+ type Restv1BetaModelConvertRequestWritable = {
1830
+ /**
1831
+ * Output format.
1832
+ */
1833
+ format: 'glb' | 'gltf' | 'fbx' | 'usdz' | 'usda' | 'usdc' | 'obj';
1834
+ /**
1835
+ * Conversion usually takes the first file that's considered a valid 3D model. Define this entry point to disambiguate when there are multiple options.
1836
+ */
1837
+ modelEntrypoint?: string;
1838
+ /**
1839
+ * List of sources to aggregate and run the job against.
1840
+ */
1841
+ sources: Array<RestBaseMountedSource> | null;
1842
+ };
1843
+ type Restv1BetaModelConvertResponseWritable = {
1844
+ /**
1845
+ * URL to report a bug about this job.
1846
+ */
1847
+ bugReportUrl: string;
1848
+ /**
1849
+ * Potential error that happened during the job processing.
1850
+ */
1851
+ error?: string;
1852
+ /**
1853
+ * Unique identifier of the job.
1854
+ */
1855
+ id: string;
1856
+ /**
1857
+ * Result when the job is successfully finished.
1858
+ */
1859
+ result?: Restv1BetaModelConvertJobResultWritable;
1860
+ /**
1861
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
1862
+ */
1863
+ status: string;
1864
+ /**
1865
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
1866
+ */
1867
+ url: string;
1868
+ };
1869
+ type Restv1BetaRenderModelRequestWritable = {
1870
+ /**
1871
+ * Options related to auto-framing.
1872
+ */
1873
+ autoFraming?: TypesAutoFramingOptions;
1874
+ /**
1875
+ * Options related to the background.
1876
+ */
1877
+ background?: TypesBackgroundOptions;
1878
+ /**
1879
+ * If set, this camera is used to perform the render. The camera has to be defined in the scene.
1880
+ */
1881
+ cameraName?: string;
1882
+ /**
1883
+ * Request additional outputs from the renderer.
1884
+ */
1885
+ extraOutputs?: TypesRenderExtraOutputs;
1886
+ /**
1887
+ * Options related to the ground plane.
1888
+ */
1889
+ groundPlane?: TypesGroundPlaneOptions;
1890
+ /**
1891
+ * Define rendering scene primitives.
1892
+ */
1893
+ scene: TypesSimpleSceneDescription;
1894
+ /**
1895
+ * Options related to the render size.
1896
+ */
1897
+ size?: TypesSizeOptions;
1898
+ /**
1899
+ * List of sources to aggregate and run the job against.
1900
+ */
1901
+ sources: Array<RestBaseMountedSource> | null;
1902
+ };
1903
+ type Restv1BetaRenderModelResponseWritable = {
1904
+ /**
1905
+ * URL to report a bug about this job.
1906
+ */
1907
+ bugReportUrl: string;
1908
+ /**
1909
+ * Potential error that happened during the job processing.
1910
+ */
1911
+ error?: string;
1912
+ /**
1913
+ * Unique identifier of the job.
1914
+ */
1915
+ id: string;
1916
+ /**
1917
+ * Result when the job is successfully finished.
1918
+ */
1919
+ result?: Restv1BetaRenderSceneJobResultWritable;
1920
+ /**
1921
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
1922
+ */
1923
+ status: string;
1924
+ /**
1925
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
1926
+ */
1927
+ url: string;
1928
+ };
1929
+ type Restv1BetaRenderModelTurntableRequestWritable = {
1930
+ /**
1931
+ * Auto-framing related options.
1932
+ */
1933
+ autoFraming?: TypesAutoFramingOptions;
1934
+ /**
1935
+ * Background related options.
1936
+ */
1937
+ background?: TypesBackgroundOptions;
1938
+ /**
1939
+ * If set, this camera is used to perform the render. The camera has to be defined in the scene.
1940
+ */
1941
+ cameraName?: string;
1942
+ /**
1943
+ * Whether to export individual frames along with the turntable product.
1944
+ */
1945
+ exportFrames?: boolean;
1946
+ framerate?: number;
1947
+ /**
1948
+ * Ground plane related options.
1949
+ */
1950
+ groundPlane?: TypesGroundPlaneOptions;
1951
+ /**
1952
+ * Set the rotation mode. Options are `rotate_camera` (camera rotates around model), `rotate_model` (model rotates), or `rotate_environment` (environment rotates).
1953
+ */
1954
+ mode?: 'rotate_camera' | 'rotate_model' | 'rotate_environment';
1955
+ /**
1956
+ * Define rendering scene primitives.
1957
+ */
1958
+ scene: TypesSimpleSceneDescription;
1959
+ seconds?: number;
1960
+ /**
1961
+ * Render size related options.
1962
+ */
1963
+ size?: TypesSizeOptions;
1964
+ /**
1965
+ * List of sources to aggregate and run the job against.
1966
+ */
1967
+ sources: Array<RestBaseMountedSource> | null;
1968
+ /**
1969
+ * Set to true to use a very fast rendering technique but with less accurate lighting.
1970
+ */
1971
+ useRasterizer?: boolean;
1972
+ };
1973
+ type Restv1BetaRenderModelTurntableResponseWritable = {
1974
+ /**
1975
+ * URL to report a bug about this job.
1976
+ */
1977
+ bugReportUrl: string;
1978
+ /**
1979
+ * Potential error that happened during the job processing.
1980
+ */
1981
+ error?: string;
1982
+ /**
1983
+ * Unique identifier of the job.
1984
+ */
1985
+ id: string;
1986
+ /**
1987
+ * Result when the job is successfully finished.
1988
+ */
1989
+ result?: Restv1BetaRenderSceneTurntableJobResultWritable;
1990
+ /**
1991
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
1992
+ */
1993
+ status: string;
1994
+ /**
1995
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
1996
+ */
1997
+ url: string;
1998
+ };
1999
+ type Restv1BetaRenderSceneJobResultWritable = {
2000
+ /**
2001
+ * List of URLs to the rendered frames. The rendered frames are ordered by frame number.
2002
+ */
2003
+ framesUrls?: Array<string> | null;
2004
+ materialIds?: TypesIdsMapData;
2005
+ materialMasks?: Array<TypesMaskNameToFileBinding>;
2006
+ objectIds?: TypesIdsMapData;
2007
+ objectMasks?: Array<TypesMaskNameToFileBinding>;
2008
+ outputSpace?: RestBaseSpaceWritable;
2009
+ /**
2010
+ * URL to the rendered scene.
2011
+ */
2012
+ renderUrl: string;
2013
+ warnings: Array<TypesWarning> | null;
2014
+ };
2015
+ type Restv1BetaRenderSceneRequestWritable = {
2016
+ /**
2017
+ * Auto-framing related options.
2018
+ */
2019
+ autoFraming?: TypesAutoFramingOptions;
2020
+ /**
2021
+ * Background related options.
2022
+ */
2023
+ background?: TypesBackgroundOptions;
2024
+ /**
2025
+ * If set, this camera is used to perform the render. The camera has to be defined in the scene.
2026
+ */
2027
+ cameraName?: string;
2028
+ /**
2029
+ * Request additional outputs from the renderer.
2030
+ */
2031
+ extraOutputs?: TypesRenderExtraOutputs;
2032
+ /**
2033
+ * Options related to the ground plane.
2034
+ */
2035
+ groundPlane?: TypesGroundPlaneOptions;
2036
+ /**
2037
+ * Define rendering scene primitives.
2038
+ */
2039
+ scene: TypesSceneDescription;
2040
+ /**
2041
+ * Render size related options.
2042
+ */
2043
+ size?: TypesSizeOptions;
2044
+ /**
2045
+ * List of sources to aggregate and run the job against.
2046
+ */
2047
+ sources: Array<RestBaseMountedSource> | null;
2048
+ };
2049
+ type Restv1BetaRenderSceneResponseWritable = {
2050
+ /**
2051
+ * URL to report a bug about this job.
2052
+ */
2053
+ bugReportUrl: string;
2054
+ /**
2055
+ * Potential error that happened during the job processing.
2056
+ */
2057
+ error?: string;
2058
+ /**
2059
+ * Unique identifier of the job.
2060
+ */
2061
+ id: string;
2062
+ /**
2063
+ * Result when the job is successfully finished.
2064
+ */
2065
+ result?: Restv1BetaRenderSceneJobResultWritable;
2066
+ /**
2067
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
2068
+ */
2069
+ status: string;
2070
+ /**
2071
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
2072
+ */
2073
+ url: string;
2074
+ };
2075
+ type Restv1BetaRenderSceneTurntableJobResultWritable = {
2076
+ /**
2077
+ * List of URLs to the rendered frames. The rendered frames are ordered by frame number.
2078
+ */
2079
+ framesUrls?: Array<string> | null;
2080
+ outputSpace?: RestBaseSpaceWritable;
2081
+ /**
2082
+ * URL to the rendered scene.
2083
+ */
2084
+ renderUrl: string;
2085
+ warnings: Array<TypesWarning> | null;
2086
+ };
2087
+ type Restv1BetaSceneDescRequestWritable = {
2088
+ /**
2089
+ * Path to the scene file in `sources`. If the value is `null`, the first found scene file will be used.
2090
+ */
2091
+ sceneFile?: string;
2092
+ /**
2093
+ * List of sources to aggregate and run the job against.
2094
+ */
2095
+ sources: Array<RestBaseMountedSource> | null;
2096
+ };
2097
+ type Restv1BetaSceneDescResponseWritable = {
2098
+ /**
2099
+ * URL to report a bug about this job.
2100
+ */
2101
+ bugReportUrl: string;
2102
+ /**
2103
+ * Potential error that happened during the job processing.
2104
+ */
2105
+ error?: string;
2106
+ /**
2107
+ * Unique identifier of the job.
2108
+ */
2109
+ id: string;
2110
+ /**
2111
+ * Result when the job is successfully finished.
2112
+ */
2113
+ result?: Restv1BetaSceneDescJobResult;
2114
+ /**
2115
+ * Status of the job. Can be `not_started`, `running`, `succeeded`, or `failed`.
2116
+ */
2117
+ status: string;
2118
+ /**
2119
+ * URL to fetch/poll for the job result, in case the job is not finished yet.
2120
+ */
2121
+ url: string;
2122
+ };
2123
+ type V1CompositesComposeData = {
2124
+ body?: Restv1ComposeSceneRequestWritable;
2125
+ path?: never;
2126
+ query?: {
2127
+ /**
2128
+ * Blocking mode (acts like a synchronous API call). Wait for the result before returning. ⚠️ Some operations are long, please be sure to configure your client timeout settings accordingly.
2129
+ */
2130
+ wait?: boolean;
2131
+ };
2132
+ url: '/v1/composites/compose';
2133
+ };
2134
+ type V1CompositesComposeErrors = {
2135
+ /**
2136
+ * Bad Request
2137
+ */
2138
+ 400: FfapierrorsFfapiError;
2139
+ /**
2140
+ * Forbidden
2141
+ */
2142
+ 403: FfapierrorsFfapiError;
2143
+ /**
2144
+ * Request Timeout
2145
+ */
2146
+ 408: FfapierrorsFfapiError;
2147
+ /**
2148
+ * Unsupported Media Type
2149
+ */
2150
+ 415: FfapierrorsFfapiError;
2151
+ /**
2152
+ * Unprocessable Entity
2153
+ */
2154
+ 422: FfapierrorsFfapiError;
2155
+ /**
2156
+ * Too Many Requests
2157
+ */
2158
+ 429: FfapierrorsFfapiError;
2159
+ /**
2160
+ * Internal Server Error
2161
+ */
2162
+ 500: FfapierrorsFfapiError;
2163
+ };
2164
+ type V1CompositesComposeError = V1CompositesComposeErrors[keyof V1CompositesComposeErrors];
2165
+ type V1CompositesComposeResponses = {
2166
+ /**
2167
+ * Accepted
2168
+ */
2169
+ 202: Restv1BetaComposeSceneResponse;
2170
+ };
2171
+ type V1CompositesComposeResponse = V1CompositesComposeResponses[keyof V1CompositesComposeResponses];
2172
+ type V1ScenesAssembleData = {
2173
+ body?: Restv1BetaCreateSceneRequestWritable;
2174
+ path?: never;
2175
+ query?: {
2176
+ /**
2177
+ * Blocking mode (acts like a synchronous API call). Wait for the result before returning. ⚠️ Some operations are long, please be sure to configure your client timeout settings accordingly.
2178
+ */
2179
+ wait?: boolean;
2180
+ };
2181
+ url: '/v1/scenes/assemble';
2182
+ };
2183
+ type V1ScenesAssembleErrors = {
2184
+ /**
2185
+ * Bad Request
2186
+ */
2187
+ 400: FfapierrorsFfapiError;
2188
+ /**
2189
+ * Forbidden
2190
+ */
2191
+ 403: FfapierrorsFfapiError;
2192
+ /**
2193
+ * Request Timeout
2194
+ */
2195
+ 408: FfapierrorsFfapiError;
2196
+ /**
2197
+ * Unsupported Media Type
2198
+ */
2199
+ 415: FfapierrorsFfapiError;
2200
+ /**
2201
+ * Unprocessable Entity
2202
+ */
2203
+ 422: FfapierrorsFfapiError;
2204
+ /**
2205
+ * Too Many Requests
2206
+ */
2207
+ 429: FfapierrorsFfapiError;
2208
+ /**
2209
+ * Internal Server Error
2210
+ */
2211
+ 500: FfapierrorsFfapiError;
2212
+ };
2213
+ type V1ScenesAssembleError = V1ScenesAssembleErrors[keyof V1ScenesAssembleErrors];
2214
+ type V1ScenesAssembleResponses = {
2215
+ /**
2216
+ * Accepted
2217
+ */
2218
+ 202: Restv1BetaCreateSceneResponse;
2219
+ };
2220
+ type V1ScenesAssembleResponse = V1ScenesAssembleResponses[keyof V1ScenesAssembleResponses];
2221
+ type V1ScenesConvertData = {
2222
+ body?: Restv1BetaModelConvertRequestWritable;
2223
+ path?: never;
2224
+ query?: {
2225
+ /**
2226
+ * Blocking mode (acts like a synchronous API call). Wait for the result before returning. ⚠️ Some operations are long, please be sure to configure your client timeout settings accordingly.
2227
+ */
2228
+ wait?: boolean;
2229
+ };
2230
+ url: '/v1/scenes/convert';
2231
+ };
2232
+ type V1ScenesConvertErrors = {
2233
+ /**
2234
+ * Bad Request
2235
+ */
2236
+ 400: FfapierrorsFfapiError;
2237
+ /**
2238
+ * Forbidden
2239
+ */
2240
+ 403: FfapierrorsFfapiError;
2241
+ /**
2242
+ * Request Timeout
2243
+ */
2244
+ 408: FfapierrorsFfapiError;
2245
+ /**
2246
+ * Unsupported Media Type
2247
+ */
2248
+ 415: FfapierrorsFfapiError;
2249
+ /**
2250
+ * Unprocessable Entity
2251
+ */
2252
+ 422: FfapierrorsFfapiError;
2253
+ /**
2254
+ * Too Many Requests
2255
+ */
2256
+ 429: FfapierrorsFfapiError;
2257
+ /**
2258
+ * Internal Server Error
2259
+ */
2260
+ 500: FfapierrorsFfapiError;
2261
+ };
2262
+ type V1ScenesConvertError = V1ScenesConvertErrors[keyof V1ScenesConvertErrors];
2263
+ type V1ScenesConvertResponses = {
2264
+ /**
2265
+ * Accepted
2266
+ */
2267
+ 202: Restv1BetaModelConvertResponse;
2268
+ };
2269
+ type V1ScenesConvertResponse = V1ScenesConvertResponses[keyof V1ScenesConvertResponses];
2270
+ type V1ScenesDescribeData = {
2271
+ body?: Restv1BetaSceneDescRequestWritable;
2272
+ path?: never;
2273
+ query?: {
2274
+ /**
2275
+ * Blocking mode (acts like a synchronous API call). Wait for the result before returning. ⚠️ Some operations are long, please be sure to configure your client timeout settings accordingly.
2276
+ */
2277
+ wait?: boolean;
2278
+ };
2279
+ url: '/v1/scenes/describe';
2280
+ };
2281
+ type V1ScenesDescribeErrors = {
2282
+ /**
2283
+ * Bad Request
2284
+ */
2285
+ 400: FfapierrorsFfapiError;
2286
+ /**
2287
+ * Forbidden
2288
+ */
2289
+ 403: FfapierrorsFfapiError;
2290
+ /**
2291
+ * Request Timeout
2292
+ */
2293
+ 408: FfapierrorsFfapiError;
2294
+ /**
2295
+ * Unsupported Media Type
2296
+ */
2297
+ 415: FfapierrorsFfapiError;
2298
+ /**
2299
+ * Unprocessable Entity
2300
+ */
2301
+ 422: FfapierrorsFfapiError;
2302
+ /**
2303
+ * Too Many Requests
2304
+ */
2305
+ 429: FfapierrorsFfapiError;
2306
+ /**
2307
+ * Internal Server Error
2308
+ */
2309
+ 500: FfapierrorsFfapiError;
2310
+ };
2311
+ type V1ScenesDescribeError = V1ScenesDescribeErrors[keyof V1ScenesDescribeErrors];
2312
+ type V1ScenesDescribeResponses = {
2313
+ /**
2314
+ * Accepted
2315
+ */
2316
+ 202: Restv1BetaSceneDescResponse;
2317
+ };
2318
+ type V1ScenesDescribeResponse = V1ScenesDescribeResponses[keyof V1ScenesDescribeResponses];
2319
+ type V1ScenesRenderData = {
2320
+ body?: Restv1BetaRenderSceneRequestWritable;
2321
+ path?: never;
2322
+ query?: {
2323
+ /**
2324
+ * Blocking mode (acts like a synchronous API call). Wait for the result before returning. ⚠️ Some operations are long, please be sure to configure your client timeout settings accordingly.
2325
+ */
2326
+ wait?: boolean;
2327
+ };
2328
+ url: '/v1/scenes/render';
2329
+ };
2330
+ type V1ScenesRenderErrors = {
2331
+ /**
2332
+ * Bad Request
2333
+ */
2334
+ 400: FfapierrorsFfapiError;
2335
+ /**
2336
+ * Forbidden
2337
+ */
2338
+ 403: FfapierrorsFfapiError;
2339
+ /**
2340
+ * Request Timeout
2341
+ */
2342
+ 408: FfapierrorsFfapiError;
2343
+ /**
2344
+ * Unsupported Media Type
2345
+ */
2346
+ 415: FfapierrorsFfapiError;
2347
+ /**
2348
+ * Unprocessable Entity
2349
+ */
2350
+ 422: FfapierrorsFfapiError;
2351
+ /**
2352
+ * Too Many Requests
2353
+ */
2354
+ 429: FfapierrorsFfapiError;
2355
+ /**
2356
+ * Internal Server Error
2357
+ */
2358
+ 500: FfapierrorsFfapiError;
2359
+ };
2360
+ type V1ScenesRenderError = V1ScenesRenderErrors[keyof V1ScenesRenderErrors];
2361
+ type V1ScenesRenderResponses = {
2362
+ /**
2363
+ * Accepted
2364
+ */
2365
+ 202: Restv1BetaRenderSceneResponse;
2366
+ };
2367
+ type V1ScenesRenderResponse = V1ScenesRenderResponses[keyof V1ScenesRenderResponses];
2368
+ type V1ScenesRenderBasicData = {
2369
+ body?: Restv1BetaRenderModelRequestWritable;
2370
+ path?: never;
2371
+ query?: {
2372
+ /**
2373
+ * Blocking mode (acts like a synchronous API call). Wait for the result before returning. ⚠️ Some operations are long, please be sure to configure your client timeout settings accordingly.
2374
+ */
2375
+ wait?: boolean;
2376
+ };
2377
+ url: '/v1/scenes/render-basic';
2378
+ };
2379
+ type V1ScenesRenderBasicErrors = {
2380
+ /**
2381
+ * Bad Request
2382
+ */
2383
+ 400: FfapierrorsFfapiError;
2384
+ /**
2385
+ * Forbidden
2386
+ */
2387
+ 403: FfapierrorsFfapiError;
2388
+ /**
2389
+ * Request Timeout
2390
+ */
2391
+ 408: FfapierrorsFfapiError;
2392
+ /**
2393
+ * Unsupported Media Type
2394
+ */
2395
+ 415: FfapierrorsFfapiError;
2396
+ /**
2397
+ * Unprocessable Entity
2398
+ */
2399
+ 422: FfapierrorsFfapiError;
2400
+ /**
2401
+ * Too Many Requests
2402
+ */
2403
+ 429: FfapierrorsFfapiError;
2404
+ /**
2405
+ * Internal Server Error
2406
+ */
2407
+ 500: FfapierrorsFfapiError;
2408
+ };
2409
+ type V1ScenesRenderBasicError = V1ScenesRenderBasicErrors[keyof V1ScenesRenderBasicErrors];
2410
+ type V1ScenesRenderBasicResponses = {
2411
+ /**
2412
+ * Accepted
2413
+ */
2414
+ 202: Restv1BetaRenderModelResponse;
2415
+ };
2416
+ type V1ScenesRenderBasicResponse = V1ScenesRenderBasicResponses[keyof V1ScenesRenderBasicResponses];
2417
+ type CreateSpaceV1Data = {
2418
+ body: {
2419
+ /**
2420
+ * Filename of the file being uploaded.
2421
+ */
2422
+ filename?: Blob | File;
2423
+ /**
2424
+ * General purpose name for multipart form value.
2425
+ */
2426
+ name?: string;
2427
+ };
2428
+ path?: never;
2429
+ query?: never;
2430
+ url: '/v1/spaces';
2431
+ };
2432
+ type CreateSpaceV1Errors = {
2433
+ /**
2434
+ * Forbidden
2435
+ */
2436
+ 403: FfapierrorsFfapiError;
2437
+ /**
2438
+ * Request Timeout
2439
+ */
2440
+ 408: FfapierrorsFfapiError;
2441
+ /**
2442
+ * Request Entity Too Large
2443
+ */
2444
+ 413: FfapierrorsFfapiError;
2445
+ /**
2446
+ * Unprocessable Entity
2447
+ */
2448
+ 422: FfapierrorsFfapiError;
2449
+ /**
2450
+ * Too Many Requests
2451
+ */
2452
+ 429: FfapierrorsFfapiError;
2453
+ /**
2454
+ * Internal Server Error
2455
+ */
2456
+ 500: FfapierrorsFfapiError;
2457
+ };
2458
+ type CreateSpaceV1Error = CreateSpaceV1Errors[keyof CreateSpaceV1Errors];
2459
+ type CreateSpaceV1Responses = {
2460
+ /**
2461
+ * Created
2462
+ */
2463
+ 201: RestBaseSpace;
2464
+ };
2465
+ type CreateSpaceV1Response = CreateSpaceV1Responses[keyof CreateSpaceV1Responses];
2466
+ //#endregion
2467
+ //#region packages/substance-3d/src/sdk/sdk.gen.d.ts
2468
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
2469
+ /**
2470
+ * You can provide a client instance returned by `createClient()` instead of
2471
+ * individual options. This might be also useful if you want to implement a
2472
+ * custom client.
2473
+ */
2474
+ client?: Client;
2475
+ /**
2476
+ * You can pass arbitrary values through the `meta` object. This can be
2477
+ * used to access values that aren't defined as part of the SDK function.
2478
+ */
2479
+ meta?: Record<string, unknown>;
2480
+ };
2481
+ declare class HeyApiClient {
2482
+ protected client: Client;
2483
+ constructor(args?: {
2484
+ client?: Client;
2485
+ });
2486
+ }
2487
+ declare class HeyApiRegistry<T> {
2488
+ private readonly defaultKey;
2489
+ private readonly instances;
2490
+ get(key?: string): T;
2491
+ set(value: T, key?: string): void;
2492
+ }
2493
+ declare class Composites extends HeyApiClient {
2494
+ /**
2495
+ * Generate 3D object composite
2496
+ *
2497
+ * Generate a 3D Object Composite with the Substance 3D API.
2498
+ */
2499
+ compose<ThrowOnError extends boolean = false>(options?: Options<V1CompositesComposeData, ThrowOnError>): RequestResult<V1CompositesComposeResponses, V1CompositesComposeErrors, ThrowOnError, "fields">;
2500
+ }
2501
+ declare class Scenes extends HeyApiClient {
2502
+ /**
2503
+ * Create 3D scene
2504
+ *
2505
+ * Assemble a 3D scene with the Substance 3D API.
2506
+ */
2507
+ assemble<ThrowOnError extends boolean = false>(options?: Options<V1ScenesAssembleData, ThrowOnError>): RequestResult<V1ScenesAssembleResponses, V1ScenesAssembleErrors, ThrowOnError, "fields">;
2508
+ /**
2509
+ * Convert 3D files
2510
+ *
2511
+ * Convert a 3D file into another 3D format with the Substance 3D API.
2512
+ */
2513
+ convert<ThrowOnError extends boolean = false>(options?: Options<V1ScenesConvertData, ThrowOnError>): RequestResult<V1ScenesConvertResponses, V1ScenesConvertErrors, ThrowOnError, "fields">;
2514
+ /**
2515
+ * Describe 3D scene
2516
+ *
2517
+ * Describe a 3D scene.
2518
+ */
2519
+ describe<ThrowOnError extends boolean = false>(options?: Options<V1ScenesDescribeData, ThrowOnError>): RequestResult<V1ScenesDescribeResponses, V1ScenesDescribeErrors, ThrowOnError, "fields">;
2520
+ /**
2521
+ * Render 3D object
2522
+ *
2523
+ * Render a 3D object with the Substance 3D API.
2524
+ */
2525
+ render<ThrowOnError extends boolean = false>(options?: Options<V1ScenesRenderData, ThrowOnError>): RequestResult<V1ScenesRenderResponses, V1ScenesRenderErrors, ThrowOnError, "fields">;
2526
+ /**
2527
+ * Render 3D object (basic version)
2528
+ *
2529
+ * Render a 3D object (basic version) with the Substance 3D API.
2530
+ */
2531
+ renderBasic<ThrowOnError extends boolean = false>(options?: Options<V1ScenesRenderBasicData, ThrowOnError>): RequestResult<V1ScenesRenderBasicResponses, V1ScenesRenderBasicErrors, ThrowOnError, "fields">;
2532
+ }
2533
+ declare class V1 extends HeyApiClient {
2534
+ private _composites?;
2535
+ get composites(): Composites;
2536
+ private _scenes?;
2537
+ get scenes(): Scenes;
2538
+ }
2539
+ declare class Substance3Dsdk extends HeyApiClient {
2540
+ static readonly __registry: HeyApiRegistry<Substance3Dsdk>;
2541
+ constructor(args?: {
2542
+ client?: Client;
2543
+ key?: string;
2544
+ });
2545
+ /**
2546
+ * Create Space
2547
+ *
2548
+ * Create a Space from 3D files.
2549
+ */
2550
+ createSpaceV1<ThrowOnError extends boolean = false>(options: Options<CreateSpaceV1Data, ThrowOnError>): RequestResult<CreateSpaceV1Responses, CreateSpaceV1Errors, ThrowOnError, "fields">;
2551
+ private _v1?;
2552
+ get v1(): V1;
2553
+ }
2554
+ //#endregion
2555
+ export { type ClientOptions, Composites, type CreateSpaceV1Data, type CreateSpaceV1Error, type CreateSpaceV1Errors, type CreateSpaceV1Response, type CreateSpaceV1Responses, type FfapierrorsFfapiError, type FfapierrorsFfapiErrorDetail, type FfapierrorsFfapiErrorWritable, type Options, type RestBaseMountedSource, type RestBaseSourceFrameIo, type RestBaseSourceFrameIov4, type RestBaseSourceSpace, type RestBaseSourceUrl, type RestBaseSpace, type RestBaseSpaceFile, type RestBaseSpaceWritable, type Restv1BetaComposeOutput, type Restv1BetaComposeOutputImage, type Restv1BetaComposeSceneJobResult, type Restv1BetaComposeSceneJobResultWritable, type Restv1BetaComposeSceneRequest, type Restv1BetaComposeSceneRequestWritable, type Restv1BetaComposeSceneResponse, type Restv1BetaComposeSceneResponseWritable, type Restv1BetaCreateSceneJobResult, type Restv1BetaCreateSceneJobResultWritable, type Restv1BetaCreateSceneRequest, type Restv1BetaCreateSceneRequestWritable, type Restv1BetaCreateSceneResponse, type Restv1BetaCreateSceneResponseWritable, type Restv1BetaModelConvertJobResult, type Restv1BetaModelConvertJobResultWritable, type Restv1BetaModelConvertRequest, type Restv1BetaModelConvertRequestWritable, type Restv1BetaModelConvertResponse, type Restv1BetaModelConvertResponseWritable, type Restv1BetaRenderModelRequest, type Restv1BetaRenderModelRequestWritable, type Restv1BetaRenderModelResponse, type Restv1BetaRenderModelResponseWritable, type Restv1BetaRenderModelTurntableRequest, type Restv1BetaRenderModelTurntableRequestWritable, type Restv1BetaRenderModelTurntableResponse, type Restv1BetaRenderModelTurntableResponseWritable, type Restv1BetaRenderSceneJobResult, type Restv1BetaRenderSceneJobResultWritable, type Restv1BetaRenderSceneRequest, type Restv1BetaRenderSceneRequestWritable, type Restv1BetaRenderSceneResponse, type Restv1BetaRenderSceneResponseWritable, type Restv1BetaRenderSceneTurntableJobResult, type Restv1BetaRenderSceneTurntableJobResultWritable, type Restv1BetaSceneDescJobResult, type Restv1BetaSceneDescRequest, type Restv1BetaSceneDescRequestWritable, type Restv1BetaSceneDescResponse, type Restv1BetaSceneDescResponseWritable, type Restv1ComposeSceneRequest, type Restv1ComposeSceneRequestWritable, Scenes, Substance3Dsdk, type TypesAutoFramingOptions, type TypesAzimuthAltitude, type TypesBackgroundOptions, type TypesCameraStats, type TypesComposeEnvironment, type TypesComposeSceneCustomModel, type TypesComposeSceneSceneDetails, type TypesExportMasksOptions, type TypesFormatOptions, type TypesGroundPlaneOptions, type TypesIdsMapData, type TypesMaskNameToFileBinding, type TypesMaterial, type TypesMaterialAssign, type TypesMaterialOverride, type TypesNameToColorBinding, type TypesOutputSize, type TypesRenderExtraOutputs, type TypesRotation, type TypesSbsMaterial, type TypesSceneBaseFile, type TypesSceneCamera, type TypesSceneDescription, type TypesSceneEnvironment, type TypesSceneModel, type TypesSceneModels, type TypesSceneStatsBoundingBox, type TypesSceneStatsInfo, type TypesSceneStatsNode, type TypesSceneStatsNodeVariant, type TypesShadowCatchingMaterial, type TypesSimpleSceneDescription, type TypesSizeOptions, type TypesSolidColorMaterial, type TypesTransform, type TypesTrs, type TypesUsdOptions, type TypesUsdVariant, type TypesWarning, V1, type V1CompositesComposeData, type V1CompositesComposeError, type V1CompositesComposeErrors, type V1CompositesComposeResponse, type V1CompositesComposeResponses, type V1ScenesAssembleData, type V1ScenesAssembleError, type V1ScenesAssembleErrors, type V1ScenesAssembleResponse, type V1ScenesAssembleResponses, type V1ScenesConvertData, type V1ScenesConvertError, type V1ScenesConvertErrors, type V1ScenesConvertResponse, type V1ScenesConvertResponses, type V1ScenesDescribeData, type V1ScenesDescribeError, type V1ScenesDescribeErrors, type V1ScenesDescribeResponse, type V1ScenesDescribeResponses, type V1ScenesRenderBasicData, type V1ScenesRenderBasicError, type V1ScenesRenderBasicErrors, type V1ScenesRenderBasicResponse, type V1ScenesRenderBasicResponses, type V1ScenesRenderData, type V1ScenesRenderError, type V1ScenesRenderErrors, type V1ScenesRenderResponse, type V1ScenesRenderResponses };
2556
+ //# sourceMappingURL=sdk.d.mts.map