@3dverse/api 0.15.0 → 0.17.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/_prebuild/wrapper.d.ts +1585 -54
- package/dist/index.js +64 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +59 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../index.ts", "../_prebuild/wrapper.ts"],
|
|
4
|
-
"sourcesContent": ["//--------------------------------------------------------------------------\nimport { AxiosError } from 'axios';\nimport axiosRetry, { isNetworkError, isIdempotentRequestError } from 'axios-retry';\n\n//--------------------------------------------------------------------------\nimport { axiosInstance } from './_prebuild/wrapper';\n\n//------------------------------------------------------------------------------\nexport function setApiKey(apiKey: string) {\n axiosInstance.defaults.headers.common['api_key'] = apiKey;\n delete axiosInstance.defaults.headers.common['user_token'];\n}\n\n//------------------------------------------------------------------------------\nexport function setUserToken(userToken: string) {\n axiosInstance.defaults.headers.common['user_token'] = userToken;\n delete axiosInstance.defaults.headers.common['api_key'];\n}\n\n//------------------------------------------------------------------------------\nabstract class ServiceError extends Error {\n errorCode: number;\n httpCode: number;\n message: string;\n\n //--------------------------------------------------------------------------\n constructor(errorCode: number, httpCode: number, message: string) {\n super();\n this.errorCode = errorCode;\n this.httpCode = httpCode;\n this.message = message;\n }\n}\n\n//------------------------------------------------------------------------------\nexport class ApiError extends ServiceError {\n serviceError: unknown;\n\n constructor(errorCode: number, status: number, message: string, serviceError: unknown) {\n super(errorCode, status, message);\n this.serviceError = serviceError;\n }\n}\n\n//------------------------------------------------------------------------------\nexport class UnexpectedServiceError extends ServiceError {\n unexpectedError: unknown;\n\n constructor(status: number, unexpectedError: unknown) {\n super(0, status, 'Unexpected service error error');\n this.unexpectedError = unexpectedError;\n }\n}\n\n//------------------------------------------------------------------------------\nfunction installInterceptors() {\n const CLIENT_ERROR = 400 as const;\n const INTERNAL_SERVER_ERROR = 500 as const;\n\n axiosRetry(axiosInstance, {\n retries: 5,\n retryDelay: axiosRetry.exponentialDelay,\n retryCondition: shouldRetryRequest,\n });\n\n axiosInstance.interceptors.response.use(\n successFulResponse => {\n if (successFulResponse.config.responseType === 'stream') {\n successFulResponse.data.pause();\n }\n\n return successFulResponse;\n },\n error => {\n if (!error.response) {\n return Promise.reject(error);\n }\n\n const axiosError = error as AxiosError;\n const status = axiosError.response?.status || INTERNAL_SERVER_ERROR;\n const errorData = axiosError.response?.data;\n\n if (\n !errorData &&\n axiosError.request.method === 'HEAD' &&\n status >= CLIENT_ERROR &&\n status < INTERNAL_SERVER_ERROR\n ) {\n return axiosError.response;\n }\n\n if (!errorData || typeof errorData !== 'object') {\n return Promise.reject(new UnexpectedServiceError(status, errorData));\n }\n\n const serviceError = errorData as ServiceError;\n return Promise.reject(new ApiError(serviceError.errorCode, status, serviceError.message, serviceError));\n },\n );\n}\n\n//------------------------------------------------------------------------------\n// A request may succeed tried again when it did not reach the gateway, or when an idempotent one failed on its side\n// (5XX): a refusal or a missing resource (4XX) is the answer, which trying again only delays.\nfunction shouldRetryRequest(error: AxiosError) {\n return isNetworkError(error) || isIdempotentRequestError(error);\n}\n\n//------------------------------------------------------------------------------\ninstallInterceptors();\n\n//------------------------------------------------------------------------------\nexport * from './_prebuild/wrapper';\n", "/**\n * Asset API v1.0\n * ## Getting Started\n *\n * This is the reference for the REST API endpoints.\n *\n * ### NPM package\n *\n * We provide a TypeScript wrapper library to make typesafe API requests and get typed responses: [https://www.npmjs.com/package/@3dverse/api](https://www.npmjs.com/package/@3dverse/api).\n *\n * ### Authentication\n *\n * To authenticate your API calls, you'll need to generate an API key via the [3dverse Console](https://console.3dverse.com) and send an `api_key` header with your API requests.\n * Alternatively, you can create a user, generate a token for the user and authenticate with a `user_token`.\n *\n * ### Rate limits\n *\n * Each operation belongs to a class of requests, by what it costs:\n *\n * | Class | Operations | Per caller | Per environment |\n * | --- | --- | --- | --- |\n * | `read` | The reads | 50 per second, up to 300 at once | 500 per second, up to 2000 at once |\n * | `write` | The changes | 5 per second, up to 20 at once | 25 per second, up to 100 at once |\n * | `transfer` | The downloads of payloads and conversion metadata | 2 per second, up to 10 at once | 10 per second, up to 50 at once |\n * | `job` | Uploads, packages, exports, sessions created, folders and batches deleted | 12 per minute, up to 5 at once | 60 per minute, up to 20 at once |\n *\n * A request is counted in two budgets of its class: its caller's, the user of the API key, user token or guest token, in its environment, and its environment's, shared by all its callers. Each budget is a bucket of the size it holds at once, refilled at its rate: a caller can send a burst after a pause, never more than the rate on average. A request either budget refuses is answered `429 Too Many Requests` (`TooManyRequests`) and counted in neither: retry after the seconds its `Retry-After` header tells.\n *\n * Every answer to authenticated credentials tells both budgets, in the headers of the IETF draft on rate limits: `RateLimit-Policy` their size (`q`) and the seconds they take to refill entirely (`w`), and `RateLimit` what is left of each (`r`) and the seconds until it is full again (`t`), e.g. `\"read-user\";r=212;t=2, \"read-environment\";r=1980;t=1`. Slow down before `r` reaches 0.\n *\n * The live feed (`/changes`) takes up to 10 sockets per caller, closing one more with 4429.\n *\n *\n * ---\n *\n *\n * Contact: 3dverse Support (support@3dverse.com)\n *\n * DO NOT EDIT THIS FILE MANUALLY.\n * This file has been generated automatically from its OpenAPI spec file.\n * See: https://gitlab.com/3dverse/platform/libs/js/openapi-client-library-generator\n */\n\n//--------------------------------------------------------------------------\nimport axios, {\n AxiosHeaders,\n AxiosPromise,\n AxiosRequestHeaders,\n AxiosError,\n AxiosProgressEvent,\n AxiosResponse,\n RawAxiosRequestHeaders,\n RawAxiosResponseHeaders,\n} from 'axios';\n\n//--------------------------------------------------------------------------\ntype UnionKeys<T> = T extends T ? keyof T : never;\ntype StrictUnionHelper<T, TAll> = T extends any ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never;\ntype StrictUnion<T> = StrictUnionHelper<T, T>;\n\n//--------------------------------------------------------------------------\n// The response of an operation whose spec declares response headers, typed as the function reads them: axios types the\n// headers of its response as any header value.\nexport type ResponseWithHeaders<T, H> = Omit<AxiosResponse<T>, 'headers'> & { headers: H & RawAxiosResponseHeaders };\n\n//--------------------------------------------------------------------------\n// An error a service answered with, the base of the errors the spec declares: see errorOf. Holding its own errorCode,\n// httpCode and message, it is a service error to the services, which forward it as such.\nexport class ServiceErrorResponse extends Error {\n errorCode: number;\n httpCode: number;\n serviceError: unknown;\n\n constructor(errorCode: number, httpCode: number, message: string, serviceError: unknown) {\n super(message);\n // Enumerable, unlike the message of an Error, so that the error keeps it in JSON.\n Object.defineProperty(this, 'message', {\n value: message,\n enumerable: true,\n writable: true,\n configurable: true,\n });\n this.errorCode = errorCode;\n this.httpCode = httpCode;\n this.serviceError = serviceError;\n }\n}\n\n//--------------------------------------------------------------------------\n// An optional JSON body: none when the caller gives none of its properties.\nfunction optionalBody<T extends object>(body: T): T | undefined {\n return Object.values(body).some(value => value !== undefined) ? body : undefined;\n}\n\n//--------------------------------------------------------------------------\n// A multipart body: each file under its name, the files of an array under the same one, and each field as a string, or\n// as its JSON when it is no string. What is undefined is left out.\nfunction multipartBody(fields: Record<string, unknown>, files: Record<string, Blob | Blob[] | undefined>): FormData {\n const form = new FormData();\n for (const [name, value] of Object.entries(fields)) {\n if (value !== undefined) {\n form.append(name, typeof value === 'string' ? value : JSON.stringify(value));\n }\n }\n for (const [name, value] of Object.entries(files)) {\n for (const file of value === undefined ? [] : Array.isArray(value) ? value : [value]) {\n form.append(name, file);\n }\n }\n return form;\n}\n\n//--------------------------------------------------------------------------\n// A body that is JSON, or multipart once it carries files: a multipart body when a file is given, else the fields as\n// a JSON body, what is undefined left out.\nfunction jsonOrMultipartBody(\n fields: Record<string, unknown>,\n files: Record<string, Blob | Blob[] | undefined>,\n): FormData | Record<string, unknown> {\n const hasFile = Object.values(files).some(value => (Array.isArray(value) ? value.length > 0 : value !== undefined));\n if (hasFile) {\n return multipartBody(fields, files);\n }\n return Object.fromEntries(Object.entries(fields).filter(([, value]) => value !== undefined));\n}\n\n//--------------------------------------------------------------------------\n// A body that is JSON, or multipart once it carries files, given as one object: a multipart body of its fields and its\n// files when a Blob is among its values, else the object itself as a JSON body.\nfunction jsonOrMultipartBodyOf(body: object | undefined): FormData | object | undefined {\n if (body === undefined) {\n return undefined;\n }\n\n const isFile = (value: unknown): boolean =>\n value instanceof Blob ||\n (Array.isArray(value) && value.length > 0 && value.every(item => item instanceof Blob));\n const entries = Object.entries(body);\n const files = entries.filter(([, value]) => isFile(value));\n if (files.length === 0) {\n return body;\n }\n return multipartBody(\n Object.fromEntries(entries.filter(([, value]) => !isFile(value))),\n Object.fromEntries(files) as Record<string, Blob | Blob[]>,\n );\n}\n\n//--------------------------------------------------------------------------\n// The headers a caller gives, a plain object or an AxiosHeaders, as a plain object to add those of the request to.\nfunction plainHeaders(headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): RawAxiosRequestHeaders {\n return headers instanceof AxiosHeaders ? headers.toJSON() : { ...headers };\n}\n\n//--------------------------------------------------------------------------\nexport const axiosInstance = axios.create({\n baseURL: 'https://api.3dverse.com/app/v1',\n paramsSerializer: { indexes: null },\n});\n\n//------------------------------------------------------------------------------\nexport function setBaseURL(baseURL: string) {\n axiosInstance.defaults.baseURL = baseURL;\n}\n\n//--------------------------------------------------------------------------\n/** User unique identifier */\nexport type UserId = string;\nexport type UserInfo = {\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n};\n/**\n * This object represents a user in 3dverse. This object contains group and task information about the user.\n * The user object lets you create or update user tokens that identify the user on the 3dverse platform.\n */\nexport type User = {\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n /** The user registration date */\n registered_at: string;\n};\n/** An error the gateway raised, or one of the services it calls answered */\nexport type ServiceError = {\n /** The error's code, unique in the service, e.g. 1010 for UploadTaskNotFound */\n errorCode: number;\n /** The response's status code */\n httpCode: number;\n /** What went wrong, for a human */\n message: string;\n /** Details specific to each error, e.g. the ids it concerns, or the reason of a refusal */\n [_additionalproperties_: string]: any;\n};\n/**\n * The kind of token authenticating a request: OAuthToken, an access token of the authorization server acting for a\n * person in one environment, authenticates the MCP endpoint only, and UploadToken, issued by its tool\n * `import_files`, one import\n */\nexport type SessionType = 'ApiKey' | 'UserToken' | 'GuestToken' | 'OAuthToken' | 'UploadToken';\n/** What a token lets its holder do, each scope allowing what the ones before it allow */\nexport type SecurityScope = 'read' | 'write' | 'manage';\n/** Why the caller may not do what it asks, its credentials being valid */\nexport type AccessRefused = InvalidAuthorization | InsufficientSecurityScope | InsufficientPermissions;\n/** The user token object only supplies a user token for validation when connecting to a session. */\nexport type Token = {\n /** The user token, a JWT */\n user_token: string;\n /** How long it is valid, in seconds */\n expires_in: number;\n /** When it expires, as a Unix timestamp in seconds */\n expires_on: number;\n};\n/** Group unique identifier */\nexport type GroupId = string;\nexport type GroupInfo = {\n group_id: GroupId;\n name: string;\n};\n/**\n * A member's role, one for both: what it may do on the group, and what it may do on what the group can access, the\n * group's own access there limiting it. Both are given, and must be equal.\n */\nexport type GroupAccess = {\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n};\nexport type GroupMember = {\n user_id: UserId;\n /** Date user joined group */\n joined_at?: string;\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n};\n/**\n * This object lets you create and modify a group of users in your application.\n * You can set or remove access to other resources within 3dverse through the `Group` object.\n */\nexport type Group = {\n group_id: GroupId;\n name: string;\n description?: string;\n created_at: string;\n members: Array<GroupMember>;\n};\n/** Folder unique identifier */\nexport type FolderId = string;\n/**\n * The folder object contains items that you import into 3dverse.\n * These items can be either a source file or an asset.\n */\nexport type Folder = {\n folder_id: FolderId;\n parent_folder_id?: FolderId;\n /** Folder name */\n name: string;\n created_at?: string;\n created_by?: UserInfo;\n subfolders?: Array<Folder>;\n source_file_count?: number;\n asset_count?: number;\n library_count?: number;\n /**\n * How far the folder's content is shared: `platform` when it is shared with every user of the platform, the folder\n * or one of its ancestors being shared; `environment` otherwise. New scopes may be added.\n */\n shared_with?: 'environment' | 'platform';\n /** The folders holding it, from its environment's root down to its parent; empty for the root. */\n path?: Array<{\n folder_id: FolderId;\n name: string;\n }>;\n};\nexport type FolderList = Array<Folder>;\nexport type FolderAccess = {\n access: 'read' | 'write' | 'manage';\n};\n/** Source file unique identifier */\nexport type SourceFileId = string;\n/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\nexport type AssetId = string;\nexport type AssetType =\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n/**\n * The `source file` object represents the source file imported into 3dverse.\n * This object contains the original uploaded file, along with the source file metadata.\n * You can also retrieve a list of assets generated from the file.\n */\nexport type SourceFile = {\n source_file_id: SourceFileId;\n /** The name of the source file when uploaded */\n source_file_original_name: string;\n /** Source file display name */\n name: string;\n /** Size in bytes */\n size: number;\n /** The asset standing for the source file once converted, absent before */\n main_asset?: {\n asset_id: AssetId;\n name: string;\n type: AssetType;\n /** Whether the asset has a thumbnail */\n has_thumbnail: boolean;\n };\n /** The types of the assets converted from the source file */\n contained_asset_types?: Array<AssetType>;\n};\nexport type ConversionPipeline = 'auto-detect' | 'volume' | 'point-cloud' | 'package';\n/** Upload task unique identifier */\nexport type UploadTaskId = string;\nexport type ConversionProgress = number;\n/** The task is awaiting for a worker to be available. */\nexport type PendingStatus = 'pending';\n/** The task is being processed. */\nexport type ConvertingStatus = 'converting';\n/** The task failed to convert the source file. */\nexport type ErrorStatus = 'error';\n/** The task was successfully processed, and the asset is ready to use. */\nexport type SuccessStatus = 'success';\n/** Conversion task unique identifier */\nexport type ConversionTaskId = string;\nexport type ConversionTask = {\n conversion_task_id: ConversionTaskId;\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id?: string;\n source_file_id: SourceFileId;\n /** The name of the source file */\n source_file_name: string;\n conversion_pipeline: ConversionPipeline;\n progress: ConversionProgress;\n status: (PendingStatus | ConvertingStatus | ErrorStatus | SuccessStatus) & string;\n};\n/**\n * The `upload task` object describes one upload process of source files and the status of the conversions.\n * This object can contain conversion tasks, if applicable.\n */\nexport type UploadTask = {\n upload_task_id: UploadTaskId;\n folder_id: FolderId;\n /** Date of the upload */\n uploaded_at: string;\n /** User who uploaded the file */\n uploaded_by: UserInfo;\n /** The global progress of the conversion tasks */\n progress: ConversionProgress;\n /**\n * The download progress of the source file if the Upload Task specified a URL for the source file.\n * This is only available if the source file is being downloaded.\n */\n download_progress?: ConversionProgress;\n status: (\n | 'waiting'\n | 'downloading'\n | 'extracting'\n | PendingStatus\n | ConvertingStatus\n | ErrorStatus\n | SuccessStatus\n | 'rejected'\n ) &\n string;\n conversion_tasks: Array<ConversionTask>;\n};\nexport type AssetListFilters = {\n /** Look for assets containing the given name (case-insensitive) */\n asset_name?: string;\n /** @deprecated Deprecated. Use asset_types instead. Look for assets of the given type */\n asset_type?: (\n | Array<\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n >\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n ) &\n any;\n /** Look for assets of the given types */\n asset_types?: Array<\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n >;\n /** Look for assets associated with or without libraries */\n library?: Array<string> | string | 'exclude';\n /**\n * The assets shared at these scopes, an asset's widest: `environment`, the folder's assets shared no further;\n * `platform`, those shared with the platform, the folder's and those of any other environment. The folder's\n * assets alone when absent.\n */\n sharing_scopes?: Array<'environment' | 'platform'>;\n /** Look for assets associated with or without source files */\n source_file?: Array<string> | string | 'exclude';\n};\n/**\n * JSON serialized object that follow the same response content format\n * but with a number describing the total count of that specific asset\n * type plus an extra total key which sums up all asset types combined\n */\nexport type AssetsCount = {\n /** Total number of assets in target folder. */\n total: number;\n /** Total number of assets in target folder of specific type. */\n [asset_type: string]: number;\n};\nexport type AssetList = {\n action_maps?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n animation_graphs?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n animation_sequences?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n animation_sets?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n animations?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n collision_geometries?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n cubemaps?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n event_maps?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n materials?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n meshes?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n modules?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n navmeshes?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n point_clouds?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n render_graphs?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n scenes?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n scripts?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n shader_contexts?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n shaders?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n skeletons?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n sounds?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n textures?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n textures_3d?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n volume_materials?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n }>;\n};\nexport type AssetTypeCreatable =\n | 'action_map'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'module'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'volume_material';\n/** Asset description */\nexport type BasicAssetDescription = {\n uuid?: AssetId;\n name: string;\n};\nexport type AssetCreatableWithType =\n | {\n /** Action map for a controller */\n asset_description: {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'action_map';\n }\n | {\n /** An animation graph */\n asset_description: {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_graph';\n }\n | {\n /** An animated sequence of component properties */\n asset_description: {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_sequence';\n }\n | {\n /** An animation set linked to an animation graph */\n asset_description: {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_set';\n }\n | {\n /** A cubemap is a set of 6 textures forming a cube */\n asset_description: {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'cubemap';\n }\n | {\n /** A list of events with a description of their parameters */\n asset_description: {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'event_map';\n }\n | {\n /** A material implementing a shader */\n asset_description: {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'material';\n }\n | {\n /** Source code from a git repository that could be used in a shader, a script or in an algorithm */\n asset_description: {\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'module';\n }\n | {\n /** A render graph used by a camera */\n asset_description: {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'render_graph';\n }\n | {\n /** A scene is a collection of entities */\n asset_description: {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'scene';\n }\n | {\n /** A runtime script */\n asset_description: {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'script';\n }\n | {\n /** A GPU shader */\n asset_description: {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n };\n asset_type: 'shader';\n }\n | {\n /** A material applied to a volume (3d texture) */\n asset_description: {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'volume_material';\n };\nexport type AssetItem = {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n};\n/** Duplication request unique identifier */\nexport type DuplicationRequestId = string;\n/**\n * A plan duplicating assets: the copies, planned in a draft, then created in the graph once confirmed, in no folder\n * until the request completes, each `DUPLICATED_FROM` its source. The content service fills them, from their sources,\n * then completes the request.\n */\nexport type DuplicationRequest = {\n /** The account duplicating the assets, absent for a user's request */\n account_id?: string;\n asset_types?: Array<\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n >;\n /** The copies, sorted by id. A completed or failed request has none left. */\n assets: Array<{\n /** The id of the copy */\n asset_id: string;\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n /** What it depends on, copies and sources alike */\n dependencies: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n count: number;\n }>;\n /** A root's folder for the copies of the dependencies it pulls in */\n dependencies_folder_id?: string;\n /**\n * The storage to write its payload to, once the request is confirmed: absent from a draft, and for a source\n * without payload\n */\n dst_storage_id?: string;\n /** The id of its source */\n duplicated_from_id: string;\n excluded: boolean;\n /** The folder it goes to, once the request completes */\n folder_id: string;\n /** Whether its folder is its own, rather than resolved */\n folder_set: boolean;\n has_thumbnail: boolean;\n name: string;\n /** The copy that pulled it in, absent for a root */\n parent_id?: string;\n /** The size of its source's payload, in bytes */\n payload_size?: number;\n /** Whether it was requested, rather than pulled in as a dependency */\n root: boolean;\n /**\n * The storage to read its source's payload from, once the request is confirmed: absent from a draft, and for a\n * source without payload\n */\n src_storage_id?: string;\n }>;\n /** How many times the request was leased */\n attempts: number;\n created_at: string;\n /** How deep the dependencies of the assets duplicated are duplicated with them. */\n depth: 'none' | 'all' | number;\n /** Duplication request unique identifier */\n duplication_request_id: string;\n /** Why a failed request failed */\n error?: string;\n /** When a draft, a completed request or a failed one is deleted */\n expires_at?: string;\n folders_by_type: Array<{\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n /** Folder unique identifier */\n folder_id: string;\n }>;\n /** When the lease of the content service filling the copies ends */\n lease_expires_at?: string;\n /** Only answered to the caller the request was just leased to */\n lease_token?: string;\n /**\n * - `draft`: the plan is being reviewed, and expires unless confirmed.\n * - `running`: confirmed, and leased to a content service filling the copies.\n * - `queued`: running, but its lease expired, its filling having crashed or stalled: for a content service to grab,\n * with `grabDuplicationRequest`.\n * - `completed`: its copies filled, and moved into their folders. Kept for a few minutes, for a caller following it.\n * - `failed`: given up, with its error. Its copies are deleted.\n */\n state: 'draft' | 'queued' | 'running' | 'completed' | 'failed';\n /** The user duplicating the assets, absent for an account's request, still named once deleted */\n user_id?: string;\n};\n/** Source file formats accepted for conversion, grouped by conversion type. */\nexport type SupportedSourceFileFormats = {\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n cubemap: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n point_cloud: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n scene: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n sound: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n texture: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n volume: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n};\n/** Import unique identifier, which this service mints: the id of the pipeline running it. */\nexport type ImportId = string;\n/** The unique identifier of a conversion */\nexport type ConversionId = string;\n/** The conversion of one file of an import into assets. */\nexport type Conversion = {\n conversion_id: ConversionId;\n /**\n * The assets the conversion stored, once stored: its main one, standing for the file, and the others, those of a\n * conversion embedded in another one included, e.g. the textures of an FBX file.\n */\n assets: Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n }>;\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id?: string;\n source_file_id: SourceFileId;\n /** The name of the file converted */\n source_file_name: string;\n conversion_pipeline: ConversionPipeline;\n progress: ConversionProgress;\n status: ('pending' | 'converting' | 'error' | 'success' | 'cancelled') & string;\n};\n/**\n * An import of files into the environment, run as a data pipeline: the files uploaded or downloaded, unpacked, and\n * each one converted into assets, or imported as it is when it is an asset package. It names the folder its assets\n * were stored into, which they may have left since.\n */\nexport type Import = {\n import_id: ImportId;\n /** The folder the import stores its assets into */\n folder_id: FolderId;\n /** When the import was created */\n created_at: string;\n /** The user who created the import */\n created_by: UserInfo;\n /** The progress of the import, over all its conversions */\n progress: ConversionProgress;\n /** The progress of the download of the files given by URL, while they are downloaded */\n download_progress?: ConversionProgress;\n status: (\n | 'waiting'\n | 'downloading'\n | 'extracting'\n | 'pending'\n | 'converting'\n | 'pending-confirmation'\n | 'error'\n | 'success'\n | 'rejected'\n | 'cancelled'\n ) &\n string;\n conversions: Array<Conversion>;\n};\n/** A file an import downloads, given by its URL */\nexport type RemoteFile = {\n /** The name of the file */\n name: string;\n /** The URL of the file, which must be public, unless an Authorization header is given */\n url: string;\n /** The value of the Authorization header of the download, when it needs one */\n authorization?: string;\n};\nexport type AssetGenerationOptions =\n | {\n asset_type: 'collision_geometry';\n data_pipeline: 'collision-geometry-baker';\n /** What a collision geometry is baked from: submeshes of meshes, merged into one geometry. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** The shape baked */\n collision_geometry_type: 0 | 1;\n /** The meshes the geometry is baked from */\n mesh_ids: Array<string>;\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n };\n }\n | {\n asset_type: 'navmesh';\n data_pipeline: 'navmesh-baker';\n /** What a navmesh is baked from, submeshes of meshes, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** Traversal cost multiplier of each area, by area id: 1 for an area left out */\n area_costs?: Array<number>;\n /** Border around a tile, in voxels */\n border_size?: number;\n /** Build a bounding volume tree for each tile */\n build_bv_tree?: boolean;\n /** Build the detail mesh of each tile */\n build_detail_mesh?: boolean;\n /** Height of a voxel */\n cell_height?: number;\n /** Size of a voxel on the xz-plane */\n cell_size?: number;\n /** Distance between the samples of the detail mesh */\n detail_sample_dist?: number;\n /** Furthest the detail mesh strays from the heightfield */\n detail_sample_max_error?: number;\n /** Longest edge along the mesh border, in voxels, 0 for none */\n max_edge_len?: number;\n /** Furthest a simplified contour strays from the raw one, in voxels */\n max_simplification_error?: number;\n /** Most vertices a polygon has */\n max_verts_per_poly?: number;\n /** Area under which a region is merged into a larger one, in voxels */\n merge_region_area?: number;\n /** The meshes the navmesh is baked from */\n mesh_ids: Array<string>;\n /** Area of the smallest region kept, in voxels */\n min_region_area?: number;\n /** How the walkable area is partitioned into regions */\n partition_type?: 'watershed' | 'monotone' | 'layers';\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n /** Size of a tile, in voxels */\n tile_size?: number;\n /** Height of a step an agent climbs, in voxels */\n walkable_climb?: number;\n /** Height an agent needs, in voxels */\n walkable_height?: number;\n /** Radius of an agent, in voxels */\n walkable_radius?: number;\n /** Steepest slope an agent walks, in degrees */\n walkable_slope_angle?: number;\n };\n };\n/**\n * What an import imports, when not the files it brings, by its `type`, the only one so far being `library`: a library\n * synchronized from its repository, by a single conversion building it. The import targets the library's folder, and\n * holds the library while it runs: a single running import synchronizes it, and it cannot move nor be deleted. Kept\n * once the import ended, while the library is there.\n */\nexport type ImportSource = {\n /** Library unique identifier */\n library_id: string;\n type: 'library';\n};\n/** A line a conversion task logged, as logged */\nexport type ConversionLogLine = {\n /**\n * When the line was logged, in UTC, to the nanosecond, e.g. `2026-10-19T08:00:00.123456789Z`: the lines logged\n * within the same millisecond keep their order.\n */\n timestamp: string;\n line: string;\n};\nexport type EnvironmentAssetListFilters = {\n /** Look for assets of the given types */\n asset_types?: Array<AssetType>;\n /** Filter by asset name */\n asset_name?: string;\n /** Include the assets shared with the platform, from any environment */\n include_public_assets?: boolean;\n};\nexport type AssetContainer =\n | 'action_maps'\n | 'animations'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'animation_sets'\n | 'collision_geometries'\n | 'cubemaps'\n | 'event_maps'\n | 'materials'\n | 'meshes'\n | 'modules'\n | 'navmeshes'\n | 'point_clouds'\n | 'render_graphs'\n | 'scenes'\n | 'scripts'\n | 'shaders'\n | 'shader_contexts'\n | 'skeletons'\n | 'sounds'\n | 'textures'\n | 'textures_3d'\n | 'volume_materials';\n/** An asset as platform-management holds it, where it is included, and how it was edited */\nexport type AssetDetails = {\n asset_container:\n | 'action_maps'\n | 'animations'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'animation_sets'\n | 'collision_geometries'\n | 'cubemaps'\n | 'event_maps'\n | 'materials'\n | 'meshes'\n | 'modules'\n | 'navmeshes'\n | 'point_clouds'\n | 'render_graphs'\n | 'scenes'\n | 'scripts'\n | 'shaders'\n | 'shader_contexts'\n | 'skeletons'\n | 'sounds'\n | 'textures'\n | 'textures_3d'\n | 'volume_materials';\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n contributors?: Array<{\n contribution_count: number;\n /** A user of an environment: a registered user, an API key's user, or an account's user. */\n user: {\n /**\n * Set for a deleted user, kept as the creator of what it created, under a placeholder username, or its own for\n * the user of a revoked API key. Its own operations answer UserNotFound.\n */\n deleted?: true;\n /** The user registration date */\n registered_at: string;\n /** User unique identifier */\n user_id: string;\n /** The username that will be displayed in monitoring tools. */\n username: string;\n };\n }>;\n /** When the asset was created, absent when unknown */\n created_at?: string;\n /** The user who created the asset, absent when unknown */\n created_by?: {\n /**\n * Set for a deleted user, kept as the creator of what it created, under a placeholder username, or its own for\n * the user of a revoked API key. Its own operations answer UserNotFound.\n */\n deleted?: true;\n /** User unique identifier */\n user_id: string;\n /** The username of the user */\n username: string;\n };\n /** Unique identifier of an environment */\n environment_id: string;\n environment_slug: string;\n /** Folder unique identifier */\n folder_id: string;\n /**\n * The path to the asset's folder from its root folder, the root first, the folder itself left out: empty for an\n * asset in a root folder.\n */\n folder_path: Array<{\n /** Folder unique identifier */\n folder_id: string;\n /** Folder name */\n name: string;\n }>;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** The last compilation the content service stored of the asset, absent when none was */\n last_compilation?: {\n /** When the content service stored what it compiled */\n compiled_at: string;\n /** The compiler, e.g. `script-compiler` */\n compiler: string;\n /** The compiler's version */\n version: string;\n };\n last_edited_at?: string;\n /** A user of an environment: a registered user, an API key's user, or an account's user. */\n last_edited_by?: {\n /**\n * Set for a deleted user, kept as the creator of what it created, under a placeholder username, or its own for\n * the user of a revoked API key. Its own operations answer UserNotFound.\n */\n deleted?: true;\n /** The user registration date */\n registered_at: string;\n /** User unique identifier */\n user_id: string;\n /** The username that will be displayed in monitoring tools. */\n username: string;\n };\n /** The library exporting the asset, if any */\n library_id?: string;\n name: string;\n /** Unique identifier of an organization */\n organization_id: string;\n organization_slug: string;\n /**\n * What the asset's payload takes, absent before the content service stored one, or for a payload recorded\n * with no size, as some the services before left\n */\n payload?: {\n /**\n * Whether the payload is stored compressed, with LZ4: not those of the asset types whose compressedPayload trait\n * is false\n */\n compressed: boolean;\n /** The payload's size, uncompressed, in bytes */\n size: number;\n /** What the payload takes on disk, in bytes, its size compressed, or its size when stored uncompressed */\n size_on_disk: number;\n };\n /** Unique identifier of a project */\n project_id: string;\n project_slug: string;\n /** The source file the asset was imported from, if any */\n source_file_id?: string;\n};\nexport type AssetDescription =\n | {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** A track that represents events triggered by the animation */\n animationEventTrack: {\n /** Animation event names */\n eventNames: Array<string>;\n /** The animation events sorted on a timeline */\n eventTimeline: Array<{\n /** Index of event in the timeline */\n eventIndex: number;\n /** Whether the event should trigger globally or not */\n triggerGlobally: boolean;\n /** Normalized animation time at which the event is triggered */\n triggerTime: number;\n }>;\n };\n /** Duration of the animation in ms */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** Payload size of all channels */\n payloadSize: number;\n /** A reference to the skeleton used by this animation */\n skeletonRef?: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n geometryType: 0 | 1;\n /** Name of the asset */\n name: string;\n /** Total size in byte of this mesh's payload. This has to be equal to the sum of each submesh payload size */\n payloadSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Morph targets which contain the deltas from the source submesh */\n morphTargets?: Array<{\n /** Batches of morph targets which share the same index channel */\n batches: Array<{\n /** Index of the index channel in the channels array */\n indexChannelIndex: number;\n /** Morph targets in the batch */\n morphTargets: {\n /** Morph target name to morph target description */\n [morph_target_name: string]: {\n /** Channels that make up the morph target. */\n channelIndices: Array<number>;\n };\n };\n }>;\n /** Channels that make up the morph targets */\n channels: Array<{\n /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */\n dataOffset: number;\n /** Size of this channel in bytes */\n dataSize: number;\n /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */\n elementCount: number;\n /** Size in bytes of a single element (1, 2, 4, 8) for integers, (4, 8) for floats */\n elementSize: number;\n /** Can be either (signed/unsigned) integer or float */\n elementType: (0 | 1 | 2) & number;\n /** Semantic of the attribute */\n semantic: 'index' | 'position' | 'normal' | 'uv' | 'color' | 'bone_id' | 'weight';\n }>;\n }>;\n /** Name of the asset */\n name: string;\n /** Total size in byte of this mesh's payload. This has to be equal to the sum of each submesh payload size */\n payloadSize: number;\n /** A mesh is composed of one or more submeshes */\n submeshes: Array<{\n /** The axis aligned bounding box that encompasses all the vertices of the submesh */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Description of the channels in the payload blob */\n channels: Array<{\n /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */\n dataOffset: number;\n /** Size of this channel in bytes */\n dataSize: number;\n /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */\n elementCount: number;\n /** Size in bytes of a single element (1, 2, 4, 8) for integers, (4, 8) for floats */\n elementSize: number;\n /** Can be either (signed/unsigned) integer or float */\n elementType: (0 | 1 | 2) & number;\n /** Semantic of the attribute */\n semantic: 'index' | 'position' | 'normal' | 'uv' | 'color' | 'bone_id' | 'weight';\n }>;\n /** Total number of indices, a vertex can be referenced multiple times using its index. Note that this number has to be divisible by 3 as we only deal with triangles. Also, note that if this mesh doesn't use indices, the count will be 0. */\n indexCount: number;\n /** Index of morph targets associated with this submesh */\n morphTargetsIndex?: number;\n /** Total number of vertices. Can't exceed UINT32_MAX because indices are restricted to a uint32 */\n vertexCount: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Area cost overrides (area ID -> traversal cost multiplier). Only non-default (!= 1.0f) entries need to be stored. */\n areaCosts?: Array<{\n areaId: number;\n cost: number;\n }>;\n /** World-space axis-aligned bounding box of the entire navmesh */\n boundingBox: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** World-space origin of the tile grid (bottom-left corner at layer 0) */\n gridOrigin: Array<number>;\n /** Name of the asset */\n name: string;\n /** Size in bytes of the payloads of all the tiles. */\n payloadSize: number;\n /** World-space dimensions of each tile: {width along x, height along z, depth along y}. Tiles are square on the xz-plane, so x == y. z is always 0. */\n tileDimensions: Array<number>;\n /** Description of each tile of the grid holding walkable area, the payload tile<N> storing the N-th. */\n tiles: Array<{\n /** World-space axis-aligned bounding box of this tile. */\n boundingBox: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Grid position within the tile grid. */\n gridPosition: Array<number>;\n /** Size in bytes of the raw binary tile payload. */\n payloadSize: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Size in bytes of the acceleration structure payload: nodeCount * (sizeof(aabb) + pcasSize), the AABB of each node followed by its record. */\n accelerationStructureSize: number;\n /** Axis aligned bounding box of the entire point cloud */\n bounds: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Description of the per-point attributes (position, color, etc.) */\n channels: Array<{\n /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */\n dataOffset: number;\n /** Size of this channel in bytes */\n dataSize: number;\n /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */\n elementCount: number;\n /** Size in bytes of a single element (1, 2, 4, 8) for integers, (4, 8) for floats */\n elementSize: number;\n /** Can be either (signed/unsigned) integer or float */\n elementType: (0 | 1 | 2) & number;\n /** Semantic of the attribute */\n semantic: 'index' | 'position' | 'normal' | 'uv' | 'color' | 'bone_id' | 'weight';\n }>;\n /** Size in bytes of each layer. A layer is a collection of nodes serialized into a single file. */\n layerSizes: Array<number>;\n /** Name of the asset */\n name: string;\n /** Number of nodes in the acceleration structure. */\n nodeCount: number;\n /** Number of points in the original point cloud before any spatial partitioning or filtering was applied */\n originalPointCount: number;\n /** Page size in bytes used for sparse buffer alignment. Each node occupies a multiple of this size per attribute */\n pageSize: number;\n /** Total size in bytes of all attribute layer files. Sum of sizeof(payload.pointCloud.layer<N>.<uuid>) for all layers */\n payloadTotalSize: number;\n /** Size in bytes of one acceleration_structure_node record. */\n pcasSize: number;\n /** Size in bytes of the sparse buffer the runtime must reserve to bake this point cloud's node data (position/color channels) into: sum(align(nodeSizeInBytes, pageSize)) over every node. Larger than payloadTotalSize: leaves are packed tight on disk but each occupies a whole page once baked, same as internal (LOD) nodes already do. */\n sparseBufferSize: number;\n /** Total number of points across all nodes in the tree, including intermediary nodes. Greater than or equal to originalPointCount */\n totalPointCount: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n }\n | {\n /** The fields every shader in this family reads as input */\n dataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Name of the asset */\n name: string;\n /** The fields a material shader must produce. */\n outputDescriptor?: Array<{\n /** Blend state of the attachment, no blending if absent */\n blendState?: {\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n };\n /** What this field represents */\n description: string;\n /** Field name */\n name: string;\n /** Field data type */\n type:\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4';\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Descriptions of all bones forming the skeleton */\n bones: Array<{\n /** Total number of children of this bone */\n childrenCount?: number;\n /** The index of the first child bone in the flat bones array */\n firstChildIndex?: number;\n /** The bone's name */\n name?: string;\n /** The offset matrix */\n offsetMatrix?: Array<number>;\n /** The index of the parent bone in the flat bones array */\n parentIndex?: number;\n }>;\n /** Name of the asset */\n name: string;\n /** The size in byte of skeleton data */\n payloadSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The bit depth of the audio data */\n bitDepth: number;\n /** The of audio channels (1 = mono, 2 = stereo, etc.) */\n channelCount: number;\n /** Duration of the track in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the sound data */\n payloadSize: number;\n /** Total number of samples composing the audio track */\n sampleCount: number;\n /** Frequency in Hertz */\n sampleFrequencyInHz: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The format of the texture */\n format: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14) & number;\n /** Index of the first mip stored in the mip bundle, along with every smaller mip, rather than in a payload of its own. -1 when there is no mip bundle. */\n mipBundleFirstIndex?: number;\n /** Mip-maps */\n mips: Array<{\n /** The mip resolution in pixels */\n dimension?: Array<number>;\n /** Size of this mip payload in bytes */\n payloadSize?: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Total size in bytes of all mip-maps */\n payloadTotalSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The format of the texture */\n format: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14) & number;\n /** Index of the first mip stored in the mip bundle, along with every smaller mip, rather than in a payload of its own. -1 when there is no mip bundle. */\n mipBundleFirstIndex?: number;\n /** Mip-maps */\n mips: Array<{\n /** The mip resolution in pixels */\n dimension?: Array<number>;\n /** Size of this mip payload in bytes */\n payloadSize?: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Total size in bytes of all mip-maps */\n payloadTotalSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** The voxel dimensions of the texture */\n voxelDimensions?: Array<number>;\n }\n | {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\nexport type AssetContainerEditable =\n | 'action_maps'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'animation_sets'\n | 'cubemaps'\n | 'event_maps'\n | 'materials'\n | 'modules'\n | 'render_graphs'\n | 'scenes'\n | 'scripts'\n | 'shaders'\n | 'volume_materials';\nexport type EditableAssetDescription =\n | {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n }\n | {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\nexport type AssetContainerWithPayload =\n | 'animations'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'collision_geometries'\n | 'meshes'\n | 'navmeshes'\n | 'point_clouds'\n | 'scripts'\n | 'shaders'\n | 'skeletons'\n | 'sounds'\n | 'textures'\n | 'textures_3d';\nexport type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';\nexport type AssetContainerWithCode = 'animation_graphs' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';\n/** The code replacing an asset's, as its caller sends it. Left open, to be extended through `allOf`, as the route adds the user: a body taking it alone closes it with `unevaluatedProperties: false`. */\nexport type AssetCode = {\n /** The C++ code, built against the asset type's precompiled header, which it needs not include */\n code: string;\n /** Whether to build its debug library too, with its symbols, for the engine's developers */\n debug?: boolean;\n};\nexport type AssetCodeInput = {\n /** The C++ code, built against the asset type's precompiled header, which it needs not include */\n code: string;\n /** Whether to build its debug library too, with its symbols, for the engine's developers */\n debug?: boolean;\n};\n/** The build of an asset's code, which replaced the asset's. */\nexport type AssetCodeBuild = {\n /** Whether the asset's description changed, which a script's code tells */\n description_changed: boolean;\n /** The compiler's warnings */\n warnings: Array<{\n column?: number;\n /** The header it is in, relative to the toolchain, none for the code itself */\n file?: string;\n line?: number;\n message: string;\n severity: 'error' | 'warning' | 'note';\n }>;\n};\nexport type AssetContainerExportable = 'meshes' | 'sounds';\nexport type Vector3 = Array<number>;\n/** An entity of a scene: its components, by class. */\nexport type Entity = {\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Unique identifier for the entity. */\n euid: {\n /** Unique identifier value. */\n value: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n};\n/** An entity of a scene, with its global transform when it was asked for */\nexport type SceneEntity = {\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Unique identifier for the entity. */\n euid: {\n /** Unique identifier value. */\n value: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n /** The entity's transform in its scene's space, its parents' local transforms composed with its own. */\n global_transform?: {\n /** Position (x, y, z) in meters. */\n position: Array<number>;\n /** Orientation as a quaternion (x, y, z, w). */\n orientation: Array<number>;\n /** Scale (x, y, z), its parents' scales multiplied by its own. */\n scale: Array<number>;\n };\n};\n/** The settings of a scene: its settings blocks, by class. */\nexport type SceneSettings = {\n /** Settings for debug lines */\n debug_lines?: {\n /** Whether to draw the bouding boxes of entities */\n drawBoundingBoxes?: boolean;\n /** Whether to draw camera frustums */\n drawCameraFrustums?: boolean;\n /** Whether to draw the center of mass of physics bodies */\n drawCenterOfMass?: boolean;\n /** Whether to draw contacts between physics bodies */\n drawContacts?: boolean;\n /** Whether to draw debug lines */\n drawDebugLines?: boolean;\n /** Whether to draw certain IK parameters like the forward and up vector of an IK Aim node, or the pole vector of an IK Two Bone node */\n drawIK?: boolean;\n /** Whether to draw joint-related debug lines */\n drawJoints?: boolean;\n /** Whether to draw light-related debug lines */\n drawLights?: boolean;\n /** Whether to draw geometry of physics bodies */\n drawPhysicsBodies?: boolean;\n /** Whether to draw physics body axes */\n drawPhysicsBodyAxes?: boolean;\n /** Whether to draw reflection probes */\n drawReflectionProbes?: boolean;\n /** Whether to draw the skeletons of rigged characters */\n drawSkeletons?: boolean;\n };\n /** Default camera component of the scene, used to create default cameras. */\n default_camera_component?: {\n /** Input values as described in the referenced render graph in their original JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Specifies which render graph this camera should use. */\n renderGraphRef?: string;\n /** Index of the render target to blit. */\n renderTargetIndex?: number;\n };\n /** Default camera global transform of the scene, used to create default cameras. */\n default_camera_transform?: {\n /** Orientation of the camera expressed as a quaternion */\n orientation?: Array<number>;\n /** x, y, z position of the camera */\n position?: Array<number>;\n };\n /** Settings for the display */\n display?: {\n /** Draw frame without input events */\n forceRedraw?: boolean;\n /** When 'Force Redraw' is off, this setting controls the number of frames the renderer will draw before going back to idle */\n framePersistence?: number;\n /** Maximum number of Frames Per Second the renderer is allowed to produce */\n maxFPS?: (15 | 30 | 60 | 90) & number;\n /** Maximum resolution of loaded textures */\n maxTextureSize?: (4294967295 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192) & number;\n };\n /** Settings for the encoder */\n encoder?: {\n /** Encoder type. */\n encoderType?: string;\n };\n /** Settings for the environment */\n environment?: {\n /** Color of the spherical gradient at the bottom of the sphere. */\n ambientColorBottom?: Array<number>;\n /** Color of the spherical gradient at the top of the sphere. */\n ambientColorTop?: Array<number>;\n /** Solid color used to clear the screen before drawing. */\n clearColor?: Array<number>;\n };\n /** Miscellaneous settings */\n misc?: {\n /** The maximum number of time a linker can reference itself. */\n maxLinkersRecursionCount?: number;\n /** The maximum time a script can run before getting aborted. */\n maxScriptExecutionTimeInMs?: number;\n /** Plugins to load at startup */\n plugins?: Array<string>;\n };\n /** Settings for the network */\n network?: {\n /** Time to wait in seconds with no client before closing the session. */\n clientConnectionTimeout?: number;\n sendSimulationUpdates?: boolean;\n /** Time to maintain the session alive without any active client in seconds. */\n timeToLiveWithInactiveUsersInSeconds?: number;\n waitForDefaultAssetsTimeoutInSeconds?: number;\n };\n /** Settings for the physics engine. */\n physics?: {\n /** The engine that is powering the physics of the scene. */\n engine?: 'physx' | 'xde';\n /** The epsilon used to mark whether the transform of an entity has changed and so whether to notify the physics engine. */\n epsilon?: number;\n /** Global gravity applied throughout the scene. */\n gravity?: Array<number>;\n /** The bigger LMD Max is, the greater the area that is searched for future contacts, and so the greater time taken per iteration. Note that XDE resolves contacts pre-collision, not once collision has taken place, like the majority of physics engines. Displacement of any object per iteration should not exceed LMD Max. */\n lmdMax?: number;\n /** A frame-rate-independent interval that dictates when physics calculations are performed. */\n timestepInS?: number;\n /** The approximate size of objects in the simulation. This is used to estimate certain length-related tolerances. */\n toleranceLength?: number;\n /** The typical magnitude of velocities of objects in simulation. This is used to estimate whether a contact should be treated as bouncing or resting based on its impact velocity, and a kinetic energy threshold below which the simulation may put objects to sleep. For normal physical environments, a good choice is the approximate speed of an object falling under gravity for one second. */\n toleranceSpeed?: number;\n };\n /** Renderer settings */\n renderer?: {\n /** Enable occlusion culling. */\n cpuOcclusionCulling?: boolean;\n /** Toggle frustum culling */\n enableFrustumCulling?: boolean;\n /** Enables geometry culling. */\n enableGeometryCulling?: boolean;\n /** Enables ray tracing. */\n enableRayTracing?: boolean;\n /** Toggle texture streaming */\n enableTextureStreaming?: boolean;\n /** Time to wait for the GPU in milliseconds. */\n endFrameTimeoutInMilliseconds?: number;\n };\n /** Settings to apply whenever simulation is active */\n simulation?: {\n /** Scripts which the client will be automatically attached */\n clientScripts?: Array<{\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n }>;\n /** Camera used when starting the simulation */\n mainCamera?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Sound settings */\n sound?: {\n /** Enable 3dverse sound. */\n enabled?: boolean;\n };\n /** Settings for the scene streaming */\n streaming?: {\n /** Maximum number of entities that can be loading at the same time. 0 means unlimited. */\n maxInFlightEntities?: number;\n /** Scenes that enter this radius around the camera get loaded. */\n streamingLoadingRadius?: number;\n /** Scenes that exit this radius around the camera get unloaded. */\n streamingUnloadingRadius?: number;\n };\n /** Settings for voxel rendering */\n voxel?: {\n /** Maximum number of color samples used to compute the color LUT. */\n maxNumberAlbedoValues?: number;\n };\n};\n/** Session unique identifier */\nexport type SessionId = string;\n/** Client unique identifier */\nexport type ClientId = string;\n/**\n * What an application attaches to a session it creates, or to a client it joins one with, which the service keeps\n * and answers as is, never reading it: up to 32 keys, each a string of up to 512 characters, set once\n */\nexport type Metadata = {\n [_additionalproperties_: string]: string;\n};\nexport type Client = {\n client_id?: ClientId;\n client_type?: 'user' | 'guest';\n /** What the application which joined with this client attached to it, empty for none */\n metadata?: Metadata;\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n};\n/** A rendering session. */\nexport type Session = {\n session_id: SessionId;\n /** The main scene identifier of the session */\n scene_id: AssetId;\n /** The main scene name of the session */\n scene_name: string;\n /** The folder identifier of the scene */\n folder_id: FolderId;\n /** Maximum number of users allowed in this session at the same time */\n max_users: number;\n /** User identifier of the creator of the session */\n created_by?: {\n user_id: UserId;\n username: string;\n };\n /** Session creation date */\n created_at: string;\n /** Country code of the rendering server location */\n country_code: string;\n /** Continent code of the rendering server location */\n continent_code: string;\n /** Whether the session is transient or not */\n is_transient_session: boolean;\n /** Current clients in session */\n clients: Array<Client>;\n /** What the application which created the session attached to it, empty for none */\n metadata: Metadata;\n};\nexport type SessionToken = {\n /** The token used to join the requested session, a JWT */\n session_token: string;\n /** The endpoint to connect to */\n endpoint_info: {\n /** The host to connect to, an IP address, or `localhost` when the client connects from the cluster's gateway */\n ip: string;\n port: number;\n ssl_port: number;\n };\n};\nexport type GuestToken = {\n /** The token used to join the requested session as a guest */\n guest_token?: string;\n};\n/** The id of a delivery, sent as the `webhook-id` header of each attempt, which the receiver deduplicates on */\nexport type WebhookDeliveryId = string;\n/** An import was requested, and registered in platform-management. */\nexport type ImportCreated = {\n /** Pipeline unique identifier. A pipeline is an instance of a Data Pipeline. */\n data_pipeline_id: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Folder unique identifier */\n folder_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Unique identifier of a project */\n project_id: string;\n /** Possible status of an import before it completes. */\n status: 'created' | 'downloading' | 'extracting' | 'pending-confirmation' | 'queued' | 'running';\n /** User unique identifier */\n user_id: string;\n};\n/** An import moved on, before it completed. */\nexport type ImportStatusChanged = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Unique identifier of a project */\n project_id: string;\n /** Possible status of an import before it completes. */\n status: 'created' | 'downloading' | 'extracting' | 'pending-confirmation' | 'queued' | 'running';\n};\n/** How much of an import's remote files is downloaded: the bytes received against their total size. */\nexport type ImportDownloadProgress = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n};\n/** How much of an import's archives is extracted: the bytes extracted against their total size. */\nexport type ImportExtractionProgress = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n};\n/** An import this service completed: failed or rejected before its assets are stored, or none of whose conversions succeeded. asset-store completes the others. */\nexport type ImportCompleted = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Unique identifier of a project */\n project_id: string;\n /** Possible status of an import once it completed. This service completes an import that failed or was rejected before its assets are stored, or none of whose conversions succeeded; otherwise asset-store completes it, once it stored them. */\n status: 'passed-with-errors' | 'failed' | 'rejected' | 'succeeded' | 'cancelled';\n};\n/** A conversion of an import was created, whatever its status: one of a source file, of an embedded file (its parent's source file), or of input assets. One that could not start is created `failed`. */\nexport type ConversionCreated = {\n /** Conversion unique identifier, which this service mints: the id of the job running it. */\n conversion_id: string;\n /** Its conversion type, unknown for an embedded file no converter supports. */\n conversion_type?:\n | 'collision_geometry'\n | 'cubemap'\n | 'library'\n | 'navmesh'\n | 'package'\n | 'point_cloud'\n | 'scene'\n | 'sound'\n | 'texture'\n | 'volume';\n /** The converter it runs, unknown for an embedded file no converter supports. */\n converter?: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n /** The name of the main file it converts. */\n name: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** The conversion that found the embedded file this one converts. */\n parent_conversion_id?: string;\n /** Unique identifier of a project */\n project_id: string;\n /** The size of the files it converts, in bytes. */\n size: number;\n /** Source file unique identifier, which this service mints for each file an import brings. */\n source_file_id?: string;\n /** Possible status of a conversion. */\n status: 'created' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded' | 'cancelled';\n steps: Array<{\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at?: string;\n /** Name of the step. */\n name: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n started_at?: string;\n /** Possible status of a step of a conversion. */\n status: 'created' | 'skipped' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';\n /** Unique identifier of one step of a conversion. */\n step_id: string;\n }>;\n /** The input assets it converts. */\n used_assets?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n }>;\n};\n/** A conversion, or one of its steps, moved on, before it completed. */\nexport type ConversionStatusChanged = {\n /** Conversion unique identifier, which this service mints: the id of the job running it. */\n conversion_id: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n started_at?: string;\n /** Possible status of a conversion before it completes. */\n status: 'created' | 'queued' | 'running';\n steps: Array<{\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at?: string;\n /** Name of the step. */\n name: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n started_at?: string;\n /** Possible status of a step of a conversion. */\n status: 'created' | 'skipped' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';\n /** Unique identifier of one step of a conversion. */\n step_id: string;\n }>;\n};\n/** A conversion completed. What it stored, and its size, is asset-store's to announce. */\nexport type ConversionCompleted = {\n /** Conversion unique identifier, which this service mints: the id of the job running it. */\n conversion_id: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n started_at?: string;\n /** Possible status of a conversion once it completed. A conversion timed out failed. */\n status: 'timed-out' | 'failed' | 'succeeded' | 'cancelled';\n steps: Array<{\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at?: string;\n /** Name of the step. */\n name: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n started_at?: string;\n /** Possible status of a step of a conversion. */\n status: 'created' | 'skipped' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';\n /** Unique identifier of one step of a conversion. */\n step_id: string;\n }>;\n};\nexport type PipelineId = ImportId;\nexport type GroupMemberInput = {\n user_id: UserId;\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n};\n/**\n * The folder object contains items that you import into 3dverse.\n * These items can be either a source file or an asset.\n */\nexport type FolderInput = {\n /** Folder name */\n name: string;\n subfolders?: Array<FolderInput>;\n};\nexport type AssetCreatableWithTypeInput =\n | {\n /** Action map for a controller */\n asset_description: {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n };\n asset_type: 'action_map';\n }\n | {\n /** An animation graph */\n asset_description: {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n };\n asset_type: 'animation_graph';\n }\n | {\n /** An animated sequence of component properties */\n asset_description: {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n };\n asset_type: 'animation_sequence';\n }\n | {\n /** An animation set linked to an animation graph */\n asset_description: {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n };\n asset_type: 'animation_set';\n }\n | {\n /** A cubemap is a set of 6 textures forming a cube */\n asset_description: {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n };\n asset_type: 'cubemap';\n }\n | {\n /** A list of events with a description of their parameters */\n asset_description: {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n };\n asset_type: 'event_map';\n }\n | {\n /** A material implementing a shader */\n asset_description: {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n };\n asset_type: 'material';\n }\n | {\n /** Source code from a git repository that could be used in a shader, a script or in an algorithm */\n asset_description: {\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n };\n asset_type: 'module';\n }\n | {\n /** A render graph used by a camera */\n asset_description: {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n };\n asset_type: 'render_graph';\n }\n | {\n /** A scene is a collection of entities */\n asset_description: {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n };\n asset_type: 'scene';\n }\n | {\n /** A runtime script */\n asset_description: {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n };\n asset_type: 'script';\n }\n | {\n /** A GPU shader */\n asset_description: {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n };\n asset_type: 'shader';\n }\n | {\n /** A material applied to a volume (3d texture) */\n asset_description: {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n };\n asset_type: 'volume_material';\n };\nexport type EditableAssetDescriptionInput =\n | {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n }\n | {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n }\n | {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n }\n | {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n }\n | {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n }\n | {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n }\n | {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n }\n | {\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n }\n | {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n }\n | {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n }\n | {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n }\n | {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?: number | boolean | Array<number>;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n }\n | {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n };\n\n//--------------------------------------------------------------------------\nexport class InvalidAuthorization extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1003;\n declare readonly session_type: SessionType;\n constructor(serviceError: Record<string, unknown>) {\n super(1003, 403, 'This operation is not allowed with this kind of token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InsufficientSecurityScope extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1004;\n declare readonly current_scope: SecurityScope;\n declare readonly required_scope: SecurityScope;\n constructor(serviceError: Record<string, unknown>) {\n super(1004, 403, 'This operation is not permitted with the scope of this token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InsufficientPermissions extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1002;\n /** The permissions the caller misses, per resource */\n declare readonly missing_permissions?: Array<{\n id: string;\n /** The resource type, e.g. folders */\n type: string;\n permissions: Array<string>;\n }>;\n constructor(serviceError: Record<string, unknown>) {\n super(1002, 403, 'Insufficient permissions', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidTokenTtl extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1017;\n /** The time to live asked */\n declare readonly ttl: string;\n constructor(serviceError: Record<string, unknown>) {\n super(1017, 400, 'The time to live of a user token is a duration from 1 minute to 14 days', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidParameter extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1;\n /** What the request breaks of the specification, one entry per rule, e.g. /limit must be <= 100 */\n declare readonly details: Array<string>;\n constructor(serviceError: Record<string, unknown>) {\n super(1, 400, 'Invalid parameter', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class MemberAccessesDiffer extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1020;\n declare readonly member_ids: Array<string>;\n constructor(serviceError: Record<string, unknown>) {\n super(1020, 422, \"A member's group and folder accesses differ, while it holds a single role\", serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidMaterial extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1013;\n declare readonly material_ids: Array<AssetId>;\n constructor(serviceError: Record<string, unknown>) {\n super(1013, 400, 'Some of the asset ids are not materials', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidRequest extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1014;\n declare readonly reason: string;\n constructor(serviceError: Record<string, unknown>) {\n super(1014, 400, 'Invalid request', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class UploadedPayloadTooLarge extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1007;\n /** The maximum upload size of the environment, in bytes */\n declare readonly max_size: number;\n constructor(serviceError: Record<string, unknown>) {\n super(1007, 413, 'Upload payload size exceeds the maximum allowed', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class NoFileUploaded extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1008;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1008, 422, 'No file uploaded', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class UploadAborted extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1009;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1009, 422, 'Upload aborted', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class ImportNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1022;\n declare readonly import_id: ImportId;\n constructor(serviceError: Record<string, unknown>) {\n super(1022, 404, 'Import not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class ConversionNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1023;\n declare readonly conversion_id: ConversionId;\n constructor(serviceError: Record<string, unknown>) {\n super(1023, 404, 'Conversion not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class LogsUnavailable extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1019;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1019, 502, 'Logs unavailable', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class UploadTaskNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1010;\n declare readonly upload_task_id: UploadTaskId;\n constructor(serviceError: Record<string, unknown>) {\n super(1010, 404, 'Upload task not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class ConversionTaskNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1015;\n declare readonly conversion_task_id: ConversionTaskId;\n constructor(serviceError: Record<string, unknown>) {\n super(1015, 404, 'Conversion task not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidGuestToken extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1016;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1016, 403, 'You are not allowed to use this guest token for this session', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class Unauthorized extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1005;\n declare readonly session_type: SessionType;\n constructor(serviceError: Record<string, unknown>) {\n super(1005, 401, 'Invalid or expired token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class MissingAuthorizationHeader extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1011;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1011, 401, 'Missing api key or user token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidApiKey extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1012;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1012, 401, 'Invalid api key', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class TooManyRequests extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1021;\n /** The class of requests whose budget the caller or its environment spent, e.g. read or job */\n declare readonly rate_limit_class: string;\n /** The seconds to wait before the request would be accepted, as Retry-After tells it */\n declare readonly retry_after: number;\n constructor(serviceError: Record<string, unknown>) {\n super(1021, 429, 'Too many requests', serviceError);\n Object.assign(this, serviceError);\n }\n}\n/** The errors the spec declares. */\nexport type DeclaredError =\n | InvalidAuthorization\n | InsufficientSecurityScope\n | InsufficientPermissions\n | InvalidTokenTtl\n | InvalidParameter\n | MemberAccessesDiffer\n | InvalidMaterial\n | InvalidRequest\n | UploadedPayloadTooLarge\n | NoFileUploaded\n | UploadAborted\n | ImportNotFound\n | ConversionNotFound\n | LogsUnavailable\n | UploadTaskNotFound\n | ConversionTaskNotFound\n | InvalidGuestToken\n | Unauthorized\n | MissingAuthorizationHeader\n | InvalidApiKey\n | TooManyRequests;\nconst declaredErrors: Record<number, new (serviceError: Record<string, unknown>) => DeclaredError> = {\n 1003: InvalidAuthorization,\n 1004: InsufficientSecurityScope,\n 1002: InsufficientPermissions,\n 1017: InvalidTokenTtl,\n 1: InvalidParameter,\n 1020: MemberAccessesDiffer,\n 1013: InvalidMaterial,\n 1014: InvalidRequest,\n 1007: UploadedPayloadTooLarge,\n 1008: NoFileUploaded,\n 1009: UploadAborted,\n 1022: ImportNotFound,\n 1023: ConversionNotFound,\n 1019: LogsUnavailable,\n 1010: UploadTaskNotFound,\n 1015: ConversionTaskNotFound,\n 1016: InvalidGuestToken,\n 1005: Unauthorized,\n 1011: MissingAuthorizationHeader,\n 1012: InvalidApiKey,\n 1021: TooManyRequests,\n};\n/**\n * The error declared in the spec that a request failed with, or undefined: read from the error a function of this\n * client rejected with, e.g. `if (errorOf(error) instanceof FolderNotFound)`.\n */\nexport function errorOf(error: unknown): DeclaredError | undefined {\n if (Object.values(declaredErrors).some(declared => error instanceof declared)) {\n return error as DeclaredError;\n }\n const failure = error as { serviceError?: unknown; response?: { data?: { error?: unknown } } } | null | undefined;\n const serviceError = (failure?.serviceError ?? failure?.response?.data?.error) as\n Record<string, unknown> | undefined;\n const errorCode = serviceError?.errorCode;\n const declared = typeof errorCode === 'number' ? declaredErrors[errorCode] : undefined;\n return declared ? new declared(serviceError!) : undefined;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieve a list of all users in the current application.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listUsers(\n {\n offset = 0,\n limit = 10,\n }: {\n offset?: number;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<User>, { link?: string; 'x-total-count'?: number }>> {\n return axiosInstance({\n method: 'get',\n url: '/users',\n params: {\n offset: offset,\n limit: limit,\n },\n headers: headers,\n }).then(response => {\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<ResponseWithHeaders<Array<User>, { link?: string; 'x-total-count'?: number }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Registers the target user in the current application.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function registerUser(\n {\n username,\n }: {\n /** Used only for debug purposes */\n username: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<User> {\n return axiosInstance({\n method: 'post',\n url: '/users',\n data: {\n username: username,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the current user.\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getCurrentUser(headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<User> {\n return axiosInstance({\n method: 'get',\n url: '/users/me',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the target user.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getUser(\n {\n user_id,\n }: {\n user_id: UserId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<User> {\n return axiosInstance({\n method: 'get',\n url: '/users/' + encodeURIComponent(user_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates the details of the target user.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateUser(\n {\n user_id,\n username,\n }: {\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<User> {\n return axiosInstance({\n method: 'patch',\n url: '/users/' + encodeURIComponent(user_id) + '',\n data: {\n username: username,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes a registered user of the environment. What it created stays, naming it under a placeholder username; its\n * accesses and the public access tokens impersonating it are deleted, and its user tokens are refused from then on.\n * A user cannot delete itself, nor an API key's user or an account user be deleted.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteUser(\n {\n user_id,\n }: {\n user_id: UserId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/users/' + encodeURIComponent(user_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Generates a user token. This user token identifies the user when making a request, with the scope it was generated\n * with, until it expires. It cannot be revoked.\n * @throws {InvalidTokenTtl}\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function generateUserToken(\n {\n user_id,\n scope,\n ttl = '1h',\n }: {\n user_id: UserId;\n /** Token permission scope */\n scope: 'read' | 'write' | 'manage';\n /**\n * Time to live, from 1 minute to 14 days, e.g. `30m`, `1h`, `7d` or `1h 30m`, a number alone counting\n * seconds\n */\n ttl?: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Token> {\n return axiosInstance({\n method: 'post',\n url: '/users/' + encodeURIComponent(user_id) + '/tokens',\n data: {\n scope: scope,\n ttl: ttl,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all user groups.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listUserGroups(\n {\n user_id,\n }: {\n user_id: UserId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Array<Group>> {\n return axiosInstance({\n method: 'get',\n url: '/users/' + encodeURIComponent(user_id) + '/groups',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a new user group.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {MemberAccessesDiffer}\n * @throws {TooManyRequests}\n */\nexport function createGroup(\n {\n name,\n description,\n members,\n }: {\n name: string;\n description?: string;\n members: Array<GroupMemberInput>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Group> {\n return axiosInstance({\n method: 'post',\n url: '/groups',\n data: {\n name: name,\n description: description,\n members: members,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets a group details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getGroup(\n {\n group_id,\n }: {\n group_id: GroupId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Group> {\n return axiosInstance({\n method: 'get',\n url: '/groups/' + encodeURIComponent(group_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates a group details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateGroup(\n {\n group_id,\n name,\n description,\n }: {\n group_id: GroupId;\n name: string;\n description: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Group> {\n return axiosInstance({\n method: 'patch',\n url: '/groups/' + encodeURIComponent(group_id) + '',\n data: {\n name: name,\n description: description,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes a group and all its access rights.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteGroup(\n {\n group_id,\n }: {\n group_id: GroupId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/groups/' + encodeURIComponent(group_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Grants member access to the group.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {MemberAccessesDiffer}\n * @throws {TooManyRequests}\n */\nexport function grantMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id,\n group_access,\n folder_access,\n }: {\n group_id: GroupId;\n member_type: 'users' | 'groups';\n member_id: string;\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url:\n '/groups/' +\n encodeURIComponent(group_id) +\n '/members/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n data: {\n group_access: group_access,\n folder_access: folder_access,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Revoke requested user access to group.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function revokeMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id,\n }: {\n group_id: GroupId;\n member_type: 'users' | 'groups';\n member_id: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url:\n '/groups/' +\n encodeURIComponent(group_id) +\n '/members/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the folders the caller can read, at every depth, those in the trash left out.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolders(\n {\n offset = 0,\n limit = 10,\n }: {\n offset?: number;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<FolderList, { link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/folders',\n params: {\n offset: offset,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<FolderList, { link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createFolder(\n {\n name,\n subfolders,\n }: {\n /** Folder name */\n name: string;\n subfolders?: Array<FolderInput>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'post',\n url: '/folders',\n data: {\n name: name,\n subfolders: subfolders,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the requested folder details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getFolder(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates the folder details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateFolder(\n {\n folder_id,\n name,\n }: {\n folder_id: FolderId;\n /** Folder name */\n name: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '',\n data: {\n name: name,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes the requested folder. The target folder must be empty.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteFolder(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/folders/' + encodeURIComponent(folder_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * List member access to the targeted folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderAccesses(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n users?: Array<{\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n access: 'read' | 'write' | 'manage';\n }>;\n groups?: Array<{\n group_id: GroupId;\n name: string;\n access: 'read' | 'write' | 'manage';\n }>;\n}> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/access',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Grants member access to the targeted folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function grantMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id,\n access,\n }: {\n folder_id: FolderId;\n member_type: 'users' | 'groups';\n member_id: string;\n access: 'read' | 'write' | 'manage';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url:\n '/folders/' +\n encodeURIComponent(folder_id) +\n '/access/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n data: {\n access: access,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Revokes member access to a target folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function revokeMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id,\n }: {\n folder_id: FolderId;\n member_type: 'users' | 'groups';\n member_id: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url:\n '/folders/' +\n encodeURIComponent(folder_id) +\n '/access/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a subfolder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createSubfolder(\n {\n folder_id,\n name,\n subfolders,\n }: {\n folder_id: FolderId;\n /** Folder name */\n name: string;\n subfolders?: Array<FolderInput>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'post',\n url: '/folders/' + encodeURIComponent(folder_id) + '/folders',\n data: {\n name: name,\n subfolders: subfolders,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all subfolders of requested folder. This request can be recursive.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderSubfolders(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Array<Folder>> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/folders',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Moves folders, with their subtrees, into the specified folder, adding them to its subfolders. Moving them under a\n * folder the caller manages needs the caller to manage them too: a folder's permissions carry down, so the move would\n * otherwise give the caller more than it holds.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function moveFolders(\n {\n folder_id,\n folder_ids,\n }: {\n folder_id: FolderId;\n /** The folders to move */\n folder_ids: Array<FolderId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '/folders',\n data: {\n folder_ids: folder_ids,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `createImport` (`POST /imports?folder_id=\u2026`), which takes the same body, its `source_files`\n * named `remote_files`, and answers the import's `import_id`.\n * Uploads the specified source file(s). The accepted extensions, their conversion type and\n * per-converter options are listed by `GET /source-files/supported-formats` and documented at\n * https://docs.3dverse.com/references/supported-file-formats.\n * ### Importing an asset package\n * With the `package` conversion pipeline, the source files are already converted assets, imported as they are,\n * submitted as zip archives (asset packages) or as the asset files themselves. The asset files are named\n * `<part>.<asset_type>[.<sub resource>].<uuid>`, where the part is `desc` (the asset description, in JSON),\n * `payload`, `graph` or `layout`, for example `desc.mesh.<uuid>`, `payload.mesh.<uuid>` or\n * `payload.texture.mip0.<uuid>`. The assets they reference must be submitted along with them, unless they already\n * exist. The submitted assets that already exist are overwritten only if they are listed in an `overwrite.json`\n * file, a JSON array of asset ids submitted along with them, the others being left as they are; without it, the\n * import fails if one of them already exists. Overwriting an asset requires the `update-asset` and `delete-asset`\n * permissions on it, referencing one the `read-asset` permission. A file named as an asset file but which is not a valid one fails the\n * import, the files named otherwise being ignored. The payloads of shaders, scripts, animation sequences and\n * animation graphs, compiled code which only a library builds, are ignored.\n * The import runs asynchronously, as a data pipeline, the returned `upload_task_id` being its id. It is rejected\n * (`quota_exceeded`) once its files are unpacked if it would convert more source files than the plan of the\n * environment's organization has left this month, or store more than its storage has left, the organization's\n * conversions and assets counted as activity-monitor measures them.\n * @throws {InvalidMaterial}\n * @throws {InvalidRequest}\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {UploadedPayloadTooLarge}\n * @throws {NoFileUploaded}\n * @throws {UploadAborted}\n * @throws {TooManyRequests}\n */\nexport function uploadSourceFiles(\n {\n folder_id,\n files,\n conversion_pipeline = 'auto-detect',\n source_files,\n options,\n }: {\n folder_id: FolderId;\n /** The source files to upload, each with its file name. Files are accepted under any field name. */\n files?: Array<Blob>;\n conversion_pipeline: ConversionPipeline;\n /**\n * Instead of submitting a source file as a multipart/form-data field, you can also submit a URL to a source file.\n * This is useful if you want to upload a source file that is already available on a storage service,\n * or upload a source file that is too large to upload via the API.\n */\n source_files?: Array<{\n /** The name of the source file. */\n name: string;\n /** The URL of the source file, it must be publicly accessible, unless an Authorization header is provided. */\n url: string;\n /** Optional Authorization header value used for the download request. */\n authorization?: string;\n }>;\n /** Options for the conversion pipeline. For future use. */\n options?: {\n [_additionalproperties_: string]: any;\n };\n },\n onUploadProgress?: (progressEvent: AxiosProgressEvent) => void,\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<\n {\n upload_task_id?: UploadTaskId;\n },\n { deprecation?: string; link?: string }\n >\n> {\n return axiosInstance({\n method: 'post',\n url: '/folders/' + encodeURIComponent(folder_id) + '/source-files',\n data: multipartBody(\n {\n conversion_pipeline: conversion_pipeline,\n source_files: source_files,\n options: options,\n },\n {\n files: files,\n },\n ),\n onUploadProgress: onUploadProgress,\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...plainHeaders(headers),\n },\n }) as Promise<\n ResponseWithHeaders<\n {\n upload_task_id?: UploadTaskId;\n },\n { deprecation?: string; link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all source files in a folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderSourceFiles(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filters,\n }: {\n folder_id: FolderId;\n offset?: number;\n limit?: number;\n filters?: {\n source_file_name?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<Array<SourceFile>, { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }>\n> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/source-files',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(\n response.headers['x-source-files-count'] as string,\n ) as number;\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<\n ResponseWithHeaders<\n Array<SourceFile>,\n { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Moves source files into the specified folder, adding them to its source files.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function moveSourceFiles(\n {\n folder_id,\n source_file_ids,\n }: {\n folder_id: FolderId;\n /** The source files to move */\n source_file_ids: Array<SourceFileId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '/source-files',\n data: {\n source_file_ids: source_file_ids,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**, with no replacement: an import names the folder it stored its assets into, which they may have\n * left since. `listImports` lists the environment's imports, or a user's.\n * Lists the upload tasks importing into a folder. The caller needs to be able to list the folder's upload tasks\n * only: a user granted the folder lists them, without the environment's permission `listUploadTasks` needs.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderUploadTasks(\n {\n folder_id,\n offset = 0,\n limit = 10,\n }: {\n folder_id: FolderId;\n offset?: number;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/upload-tasks',\n params: {\n offset: offset,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists assets.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderAssets(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filters,\n recursive = false,\n }: {\n folder_id: FolderId;\n offset?: number;\n limit?: number;\n filters?: AssetListFilters;\n recursive?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<AssetList, { 'x-assets-count': AssetsCount; link?: string; 'x-total-count'?: number }>> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/assets',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n recursive: recursive,\n },\n headers: headers,\n }).then(response => {\n response.headers['x-assets-count'] = JSON.parse(response.headers['x-assets-count'] as string) as AssetsCount;\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<\n ResponseWithHeaders<AssetList, { 'x-assets-count': AssetsCount; link?: string; 'x-total-count'?: number }>\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a new asset: empty, of a type and a name, or from its description, of a type asset-store creates from\n * one (a material, a cubemap, a script...), or as a copy of another asset, with its dependencies up to a depth.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createAsset(\n {\n folder_id,\n asset_creation_options,\n }: {\n folder_id: FolderId;\n asset_creation_options: StrictUnion<\n | {\n asset_type: AssetTypeCreatable;\n name: string;\n }\n | AssetCreatableWithTypeInput\n | {\n asset_type: AssetType;\n copy_from_asset_id: AssetId;\n new_asset_name?: string;\n /** Provide options to recursively duplicate asset dependencies. */\n options?: {\n /** Limits the duplication to the specified asset types */\n asset_types?: Array<AssetType>;\n /** Limits the depth level of the duplication process. */\n max_depth?: number;\n };\n }\n >;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<\n | {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n /** Map of source asset ids to copied asset ids */\n source_to_copy_asset_id_map?: {\n [source_asset_id: string]: AssetId;\n };\n }\n | {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n source_to_copy_asset_id_map?: {\n [_additionalproperties_: string]: AssetId;\n };\n duplication_request_id: DuplicationRequestId;\n }\n> {\n return axiosInstance({\n method: 'post',\n url: '/folders/' + encodeURIComponent(folder_id) + '/assets',\n data: asset_creation_options,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Moves assets into the specified folder, adding them to its assets. Moving them into a folder the caller manages\n * needs the caller to manage them too: an asset has its folder's permissions, so the move would otherwise give the\n * caller more than it holds.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function moveAssets(\n {\n folder_id,\n asset_ids,\n }: {\n folder_id: FolderId;\n /** The assets to move */\n asset_ids: Array<AssetId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '/assets',\n data: {\n asset_ids: asset_ids,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * A duplication request of the caller, with its copies. A duplication answered with a 202 is done once its request\n * is `completed`, or `failed` with its error. A completed request stays readable for 10 minutes, a failed one for 3\n * hours: then it answers 404.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getDuplicationRequest(\n {\n duplication_request_id,\n }: {\n duplication_request_id: DuplicationRequestId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<DuplicationRequest> {\n return axiosInstance({\n method: 'get',\n url: '/duplication-requests/' + encodeURIComponent(duplication_request_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the source files of the caller's environment, at every depth. The caller needs to be able to list them on\n * the environment's root folder: one granted some folders only lists theirs with\n * `GET /folders/{folder_id}/source-files`.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listSourceFiles(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: {\n source_file_name?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<Array<SourceFile>, { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }>\n> {\n return axiosInstance({\n method: 'get',\n url: '/source-files',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(\n response.headers['x-source-files-count'] as string,\n ) as number;\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<\n ResponseWithHeaders<\n Array<SourceFile>,\n { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes the target source files. Deleting a source file is permanent.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteSourceFiles(\n {\n source_file_ids,\n delete_assets = false,\n }: {\n /** List of source files to delete */\n source_file_ids: Array<SourceFileId>;\n /** If true, delete the assets associated with the source files as well. */\n delete_assets?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/source-files',\n data: {\n source_file_ids: source_file_ids,\n delete_assets: delete_assets,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Returns the source file formats accepted for conversion, grouped by conversion type, with the per-converter breakdown and each converter's options schema.\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSupportedSourceFileFormats(\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SupportedSourceFileFormats> {\n return axiosInstance({\n method: 'get',\n url: '/source-files/supported-formats',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get source file details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSourceFile(\n {\n source_file_id,\n }: {\n source_file_id: SourceFileId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SourceFile> {\n return axiosInstance({\n method: 'get',\n url: '/source-files/' + encodeURIComponent(source_file_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates details for a specific source file.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateSourceFile(\n {\n source_file_id,\n name,\n }: {\n source_file_id: SourceFileId;\n /** Source file display name */\n name: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SourceFile> {\n return axiosInstance({\n method: 'patch',\n url: '/source-files/' + encodeURIComponent(source_file_id) + '',\n data: {\n name: name,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all assets generated from the requested source file.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listSourceFileAssets(\n {\n source_file_id,\n }: {\n source_file_id: SourceFileId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetList> {\n return axiosInstance({\n method: 'get',\n url: '/source-files/' + encodeURIComponent(source_file_id) + '/assets',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Imports files into a folder: source files, converted into assets, or asset packages, imported as they are. The\n * files are sent in a multipart body, or given by URL, for the import to download them: in a JSON body when none is\n * sent. An import may also generate an asset from others, or synchronize a library, in a JSON body (below). The accepted extensions, their\n * conversion type and per-converter options are listed by `GET /source-files/supported-formats` and documented at\n * https://docs.3dverse.com/references/supported-file-formats.\n * The folder is given in the query, so that a request the folder's permission refuses is refused before any of its\n * files is received. The import stores its assets into it.\n * ### Importing an asset package\n * With the `package` conversion pipeline, the files are already converted assets, imported as they are, submitted\n * as zip archives (asset packages) or as the asset files themselves. The asset files are named\n * `<part>.<asset_type>[.<sub resource>].<uuid>`, where the part is `desc` (the asset description, in JSON),\n * `payload`, `graph` or `layout`, for example `desc.mesh.<uuid>`, `payload.mesh.<uuid>` or\n * `payload.texture.mip0.<uuid>`. The assets they reference must be submitted along with them, unless they already\n * exist. The submitted assets that already exist are overwritten only if they are listed in an `overwrite.json`\n * file, a JSON array of asset ids submitted along with them, the others being left as they are; without it, the\n * import fails if one of them already exists. Overwriting an asset requires the `update-asset` and `delete-asset`\n * permissions on it, referencing one the `read-asset` permission. A file named as an asset file but which is not a\n * valid one fails the import, the files named otherwise being ignored. The payloads of shaders, scripts, animation\n * sequences and animation graphs, compiled code which only a library builds, are ignored.\n * ### Generating an asset\n * A collision geometry or a navmesh is generated from meshes by a data pipeline of its type, which the JSON body\n * names along with the asset's type and name, and the options of the data pipeline's baker: the meshes, by\n * `mesh_ids`, with the submeshes of each, and what is baked, e.g. the shape of the collision geometry, or the Recast\n * settings of the navmesh, each left out taking its default. The meshes must exist and be readable by the caller.\n * ### Synchronizing a library\n * A library is synchronized from its repository by the `library-synchronization` data pipeline, which the JSON body\n * names along with the library, as its `source`, the folder being the library's. Its one conversion fetches the\n * repository at `options.ref` (a branch, tag or commit, the library's branch when left out) and builds it with\n * `options.conversion_options`, such as `rebuild` and `debug`. Once built, the import waits up to an hour to be\n * confirmed or cancelled (`updateImport`) before its assets are stored: its status is `pending-confirmation`\n * meanwhile, and the build's report is its conversion's metadata file `report.json`\n * (`getConversionMetadata`). A single import synchronizes a library at a time.\n * The import runs asynchronously, as a data pipeline, `getImport` telling its progress. It is rejected\n * (`quota_exceeded`) once its files are unpacked if it would convert more source files than the plan of the\n * environment's organization has left this month, or store more than its storage has left, the organization's\n * conversions and assets counted as activity-monitor measures them.\n * @throws {InvalidMaterial}\n * @throws {InvalidRequest}\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {UploadedPayloadTooLarge}\n * @throws {NoFileUploaded}\n * @throws {UploadAborted}\n * @throws {TooManyRequests}\n */\nexport function createImport(\n {\n folder_id,\n body,\n }: {\n folder_id: FolderId;\n body:\n | StrictUnion<\n | {\n conversion_pipeline: ConversionPipeline;\n /** The files the import downloads */\n remote_files: Array<RemoteFile>;\n /** Options for the conversion pipeline. For future use. */\n options?: {\n [_additionalproperties_: string]: any;\n };\n }\n | ((\n | {\n asset_type: 'collision_geometry';\n data_pipeline: 'collision-geometry-baker';\n /** What a collision geometry is baked from: submeshes of meshes, merged into one geometry. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** The shape baked */\n collision_geometry_type: 0 | 1;\n /** The meshes the geometry is baked from */\n mesh_ids: Array<string>;\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n };\n }\n | {\n asset_type: 'navmesh';\n data_pipeline: 'navmesh-baker';\n /** What a navmesh is baked from, submeshes of meshes, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** Traversal cost multiplier of each area, by area id: 1 for an area left out */\n area_costs?: Array<number>;\n /** Border around a tile, in voxels */\n border_size?: number;\n /** Build a bounding volume tree for each tile */\n build_bv_tree?: boolean;\n /** Build the detail mesh of each tile */\n build_detail_mesh?: boolean;\n /** Height of a voxel */\n cell_height?: number;\n /** Size of a voxel on the xz-plane */\n cell_size?: number;\n /** Distance between the samples of the detail mesh */\n detail_sample_dist?: number;\n /** Furthest the detail mesh strays from the heightfield */\n detail_sample_max_error?: number;\n /** Longest edge along the mesh border, in voxels, 0 for none */\n max_edge_len?: number;\n /** Furthest a simplified contour strays from the raw one, in voxels */\n max_simplification_error?: number;\n /** Most vertices a polygon has */\n max_verts_per_poly?: number;\n /** Area under which a region is merged into a larger one, in voxels */\n merge_region_area?: number;\n /** The meshes the navmesh is baked from */\n mesh_ids: Array<string>;\n /** Area of the smallest region kept, in voxels */\n min_region_area?: number;\n /** How the walkable area is partitioned into regions */\n partition_type?: 'watershed' | 'monotone' | 'layers';\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n /** Size of a tile, in voxels */\n tile_size?: number;\n /** Height of a step an agent climbs, in voxels */\n walkable_climb?: number;\n /** Height an agent needs, in voxels */\n walkable_height?: number;\n /** Radius of an agent, in voxels */\n walkable_radius?: number;\n /** Steepest slope an agent walks, in degrees */\n walkable_slope_angle?: number;\n };\n }\n ) & {\n /** The name of the asset generated */\n name: string;\n })\n | {\n data_pipeline: 'library-synchronization';\n source: ImportSource;\n /** How the library is built */\n options?: {\n /** The branch, tag or commit of the library's repository built, its branch when left out */\n ref?: string;\n /** The build's options, such as `rebuild` and `debug` */\n conversion_options?: {\n [_additionalproperties_: string]: any;\n };\n };\n }\n >\n | {\n files?: Array<Blob>;\n conversion_pipeline: ConversionPipeline;\n remote_files?: Array<RemoteFile>;\n options?: {\n [_additionalproperties_: string]: any;\n };\n };\n },\n onUploadProgress?: (progressEvent: AxiosProgressEvent) => void,\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n import_id: ImportId;\n}> {\n return axiosInstance({\n method: 'post',\n url: '/imports',\n params: {\n folder_id: folder_id,\n },\n data: jsonOrMultipartBodyOf(body),\n onUploadProgress: onUploadProgress,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the imports of the caller's environment, or those of a user, with `filters`. The caller needs to be able to\n * list the environment's imports, and those of the user filtered on.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listImports(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: {\n /** Only the imports of this user */\n user_id?: UserId;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<Import>, { link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/imports',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<Import>, { link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets an import, with its progress and each of its conversions.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ImportNotFound}\n * @throws {TooManyRequests}\n */\nexport function getImport(\n {\n import_id,\n }: {\n import_id: ImportId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Import> {\n return axiosInstance({\n method: 'get',\n url: '/imports/' + encodeURIComponent(import_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Confirms or cancels a library synchronization. Once built, it waits up to an hour to be confirmed before its\n * assets are stored, its status `pending-confirmation`, past which it is cancelled: `confirmed`, its assets are\n * stored as built; `cancelled`, nothing is, its build stopped if it still runs. Given again, the same state is\n * accepted. The caller also needs to be able to synchronize the library: deciding what it stores is as much as\n * starting it.\n * It answers once data-pipeline-scheduler took the change, without the import: its status follows asynchronously,\n * as `getImport` tells it. Cancelling an import other than a library synchronization is not supported yet.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ImportNotFound}\n * @throws {TooManyRequests}\n */\nexport function updateImport(\n {\n import_id,\n state,\n }: {\n import_id: ImportId;\n state: 'confirmed' | 'cancelled';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/imports/' + encodeURIComponent(import_id) + '',\n data: {\n state: state,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the lines a conversion logged, the oldest first, while they are kept: those logged from its creation until a\n * minute after it finished, or until now while it runs, unless asked otherwise. When there are more lines than\n * answered, the `link` header gives the next ones (`rel=\"next\"`). To follow a conversion still running, ask again\n * with `from` just after the timestamp of the last line received.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionNotFound}\n * @throws {TooManyRequests}\n * @throws {LogsUnavailable}\n */\nexport function getConversionLogs(\n {\n conversion_id,\n from,\n to,\n limit,\n }: {\n conversion_id: ConversionId;\n from?: string;\n to?: string;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/conversions/' + encodeURIComponent(conversion_id) + '/logs',\n params: {\n from: from,\n to: to,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets a metadata file a conversion produced, along with its assets, such as the properties an IFC file's elements\n * carry. The files are kept for 24 hours after the conversion, then deleted.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionNotFound}\n * @throws {TooManyRequests}\n */\nexport function getConversionMetadata<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n conversion_id,\n filename,\n }: {\n conversion_id: ConversionId;\n filename: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url: '/conversions/' + encodeURIComponent(conversion_id) + '/metadata/' + encodeURIComponent(filename) + '',\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `listImports` (`GET /imports`), which takes the same filters.\n * Lists the upload tasks of the caller's environment, or those of a user, with `filters`. These upload tasks relate\n * to uploaded source files. The caller needs to be able to list the environment's upload tasks, and those of the\n * user filtered on. Those of a folder are listed with `listFolderUploadTasks`.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listUploadTasks(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: {\n /** Only the upload tasks of this user */\n user_id?: UserId;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/upload-tasks',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `getImport` (`GET /imports/{import_id}`), the import's id being the upload task's.\n * Gets information related to an upload task. This upload task relates to uploaded source files.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {UploadTaskNotFound}\n * @throws {TooManyRequests}\n */\nexport function getUploadTask(\n {\n upload_task_id,\n }: {\n upload_task_id: UploadTaskId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<UploadTask, { deprecation?: string; link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/upload-tasks/' + encodeURIComponent(upload_task_id) + '',\n headers: headers,\n }) as Promise<ResponseWithHeaders<UploadTask, { deprecation?: string; link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `getConversionMetadata` (`GET /conversions/{conversion_id}/metadata/{filename}`), the\n * conversion's id being the conversion task's.\n * Gets metadata related to a conversion task. This metadata is produced by the conversion task, and kept for 24\n * hours.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionTaskNotFound}\n * @throws {TooManyRequests}\n */\nexport function getConversionTaskMetadata<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n conversion_task_id,\n filename,\n }: {\n conversion_task_id: ConversionTaskId;\n filename: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): Promise<\n ResponseWithHeaders<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never,\n { deprecation?: string; link?: string }\n >\n> {\n return axiosInstance({\n method: 'get',\n url:\n '/conversion-tasks/' +\n encodeURIComponent(conversion_task_id) +\n '/metadata/' +\n encodeURIComponent(filename) +\n '',\n headers: headers,\n responseType: responseType || 'arraybuffer',\n }) as Promise<\n ResponseWithHeaders<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never,\n { deprecation?: string; link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `getConversionLogs` (`GET /conversions/{conversion_id}/logs`), the conversion's id being the\n * conversion task's.\n * Gets the lines a conversion task logged, the oldest first, while they are kept: those logged from its creation until\n * a minute after it finished, or until now while it runs, unless asked otherwise. When there are more lines than\n * answered, the `link` header gives the next ones (`rel=\"next\"`). To follow a conversion task still running, ask\n * again with `from` just after the timestamp of the last line received.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionTaskNotFound}\n * @throws {TooManyRequests}\n * @throws {LogsUnavailable}\n */\nexport function getConversionTaskLogs(\n {\n conversion_task_id,\n from,\n to,\n limit,\n }: {\n conversion_task_id: ConversionTaskId;\n from?: string;\n to?: string;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string; deprecation?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/conversion-tasks/' + encodeURIComponent(conversion_task_id) + '/logs',\n params: {\n from: from,\n to: to,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string; deprecation?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the assets of the caller's environment, at every depth, grouped by type, and with\n * `filters[include_public_assets]` those shared with the platform from any environment too, as asset pickers list\n * them. Filters by types and by name (a uuid, or a case-insensitive substring).\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listAssets(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: EnvironmentAssetListFilters;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<AssetList, { link?: string; 'x-total-count'?: number }>> {\n return axiosInstance({\n method: 'get',\n url: '/assets',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }).then(response => {\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<ResponseWithHeaders<AssetList, { link?: string; 'x-total-count'?: number }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Batch delete assets. You **MUST NOT** reference assets.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteAssets(\n {\n asset_ids,\n }: {\n asset_ids: Array<AssetId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/assets',\n data: asset_ids,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes the asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteAsset(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Renames the asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function renameAsset(\n {\n asset_container,\n asset_id,\n name,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n name: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '',\n data: {\n name: name,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset details from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetDetails(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetDetails> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/details',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset dependencies from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listAssetDependencies(\n {\n asset_container,\n asset_id,\n offset = 0,\n limit = 10,\n depth = 'all',\n filters,\n properties,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n offset?: number;\n limit?: number;\n depth?: 'all' | 'direct' | 'all-until-self-dependent' | number;\n filters?: {\n /** Filter dependencies by types */\n with_asset_types?: Array<AssetType>;\n /** Exclude dependencies by types */\n without_asset_types?: Array<AssetType>;\n /** Filter assets by public status */\n public?: 'include' | 'exclude' | 'restrict-to';\n };\n properties?: Array<'name' | 'dependencies' | 'count' | 'public' | 'accessible' | 'payload_info'>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Number of time that the dependency is needed as indirect dependency */\n indirect_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n /** Whether the asset is accessible to the user */\n is_accessible?: boolean;\n /** Information about the asset payload */\n payload_info?: {\n /** Hash of the asset payload if it exists */\n hash?: string;\n /** The payload storage the asset's payload is on */\n storage_id?: string;\n };\n /** Direct dependencies of the asset */\n dependencies?: Array<{\n asset_id: AssetId;\n /** Number of time that the dependency is needed */\n count: number;\n }>;\n };\n }>,\n { link?: string }\n >\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/dependencies',\n params: {\n offset: offset,\n limit: limit,\n depth: depth,\n filters: filters,\n properties: properties,\n },\n headers: headers,\n }) as Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Number of time that the dependency is needed as indirect dependency */\n indirect_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n /** Whether the asset is accessible to the user */\n is_accessible?: boolean;\n /** Information about the asset payload */\n payload_info?: {\n /** Hash of the asset payload if it exists */\n hash?: string;\n /** The payload storage the asset's payload is on */\n storage_id?: string;\n };\n /** Direct dependencies of the asset */\n dependencies?: Array<{\n asset_id: AssetId;\n /** Number of time that the dependency is needed */\n count: number;\n }>;\n };\n }>,\n { link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset references from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listAssetReferences(\n {\n asset_container,\n asset_id,\n offset = 0,\n limit = 10,\n properties,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n offset?: number;\n limit?: number;\n properties?: Array<'name' | 'count' | 'public'>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n };\n }>,\n { link?: string }\n >\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/references',\n params: {\n offset: offset,\n limit: limit,\n properties: properties,\n },\n headers: headers,\n }) as Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n };\n }>,\n { link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset description from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetDescription(\n {\n asset_id,\n asset_container,\n }: {\n asset_id: AssetId;\n asset_container: AssetContainer;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetDescription> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/description',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates the description of the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateAssetDescription(\n {\n asset_id,\n asset_container,\n asset_description,\n }: {\n asset_id: AssetId;\n asset_container: AssetContainerEditable;\n asset_description: EditableAssetDescriptionInput;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/description',\n data: asset_description,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset payload from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetPayload<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container_with_payload,\n asset_id,\n sub_resource,\n }: {\n asset_container_with_payload: AssetContainerWithPayload;\n asset_id: AssetId;\n sub_resource?: string | 'histogram' | 'position' | 'color';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url:\n '/assets/' +\n encodeURIComponent(asset_container_with_payload) +\n '/' +\n encodeURIComponent(asset_id) +\n '/payload',\n params: {\n sub_resource: sub_resource,\n },\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset graph from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetGraph(\n {\n asset_container_with_graph,\n asset_id,\n }: {\n asset_container_with_graph: AssetContainerWithGraph;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Unique identifier for the asset graph. */\n uuid: string;\n [_additionalproperties_: string]: any;\n}> {\n return axiosInstance({\n method: 'get',\n url:\n '/assets/' + encodeURIComponent(asset_container_with_graph) + '/' + encodeURIComponent(asset_id) + '/graph',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates or replaces asset graph for the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateAssetGraph(\n {\n asset_container_with_graph,\n asset_id,\n asset_graph,\n }: {\n asset_container_with_graph: AssetContainerWithGraph;\n asset_id: AssetId;\n asset_graph: {\n [_additionalproperties_: string]: any;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url:\n '/assets/' + encodeURIComponent(asset_container_with_graph) + '/' + encodeURIComponent(asset_id) + '/graph',\n data: asset_graph,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the edit history of the specified asset: the distinct `contributors` (so a consumer can resolve them to display names) and the chronological `timeline` of modifications.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetHistory(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Distinct contributors to the asset, with their edit counts. */\n contributors: Array<{\n user_id: string;\n contribution_count: number;\n }>;\n /** Chronological list of modifications, oldest first. */\n timeline: Array<{\n user_id: string;\n timestamp: string;\n /** The kind of modification. */\n type?: string;\n /** Modification-specific payload. */\n data?: {\n [_additionalproperties_: string]: any;\n };\n }>;\n}> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/history',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the code of the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetCode(\n {\n asset_container_with_code,\n asset_id,\n }: {\n asset_container_with_code: AssetContainerWithCode;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<string> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container_with_code) + '/' + encodeURIComponent(asset_id) + '/code',\n headers: headers,\n responseType: 'text',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Replaces the C++ code of a script, animation sequence or animation graph, once asset-compiler built it: code which\n * fails to build replaces nothing, and answers its diagnostics. A script's description is read from its code, and the\n * answer tells whether it changed; the caller must be able to read the assets it references. The build takes a few\n * seconds.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function replaceAssetCode(\n {\n asset_container_with_code,\n asset_id,\n code,\n debug = false,\n }: {\n asset_container_with_code: AssetContainerWithCode;\n asset_id: AssetId;\n /** The C++ code, built against the asset type's precompiled header, which it needs not include */\n code: string;\n /** Whether to build its debug library too, with its symbols, for the engine's developers */\n debug?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetCodeBuild> {\n return axiosInstance({\n method: 'put',\n url: '/assets/' + encodeURIComponent(asset_container_with_code) + '/' + encodeURIComponent(asset_id) + '/code',\n data: {\n code: code,\n debug: debug,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset thumbnail from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetThumbnail<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container,\n asset_id,\n size,\n default_url,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n size: 'large' | 'medium' | 'small' | 'tiny';\n default_url?: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/thumbnail',\n params: {\n size: size,\n default_url: default_url,\n },\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Assigns a thumbnail to the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function setAssetThumbnail(\n {\n asset_container,\n asset_id,\n body,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n body: ArrayBuffer | ReadableStream;\n },\n contentType: 'image/jpeg' | 'image/jpg' | 'image/png',\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/thumbnail',\n data: body,\n maxRedirects: 0,\n headers: {\n 'Content-Type': contentType,\n ...plainHeaders(headers),\n },\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Packages and downloads the target asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function packageAsset<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/package',\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Downloads an asset payload in a given format. Only mesh is supported for the moment. This endpoint requires special export permission.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function exportAsset<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container_exportable,\n asset_id,\n format,\n scale = 1,\n sub_mesh_index,\n }: {\n asset_container_exportable: AssetContainerExportable;\n asset_id: AssetId;\n format: 'obj' | 'stl';\n scale?: number;\n sub_mesh_index?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url:\n '/assets/' +\n encodeURIComponent(asset_container_exportable) +\n '/' +\n encodeURIComponent(asset_id) +\n '/exports/' +\n encodeURIComponent(format) +\n '',\n params: {\n scale: scale,\n sub_mesh_index: sub_mesh_index,\n },\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get the axis aligned bounding box of the specified scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSceneAABB(\n {\n scene_id,\n }: {\n scene_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Vector3 representing the upper (x, y, z) boundary of the box. */\n max: Vector3;\n /** Vector3 representing the lower (x, y, z) boundary of the box. */\n min: Vector3;\n}> {\n return axiosInstance({\n method: 'get',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/aabb',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Create a new entity in a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createEntity(\n {\n scene_id,\n animation_controller,\n animation_sequence_controller,\n bone,\n box_geometry,\n camera,\n capsule_geometry,\n character_controller,\n collision_geometry_ref,\n constraint,\n constraint_actuator,\n culling_geometry,\n custom_lens,\n cylinder_geometry,\n debug_name,\n decal_projector,\n environment,\n joint,\n label,\n lineage,\n local_aabb,\n local_transform,\n material,\n material_ref,\n measure,\n mesh_ref,\n morph_targets,\n navmesh_ref,\n orthographic_lens,\n overrider,\n perspective_lens,\n physics_material,\n plane_geometry,\n point_cloud_ref,\n point_light,\n reflection_probe,\n rigid_body,\n scene_ref,\n script_element,\n script_map,\n shadow_caster,\n skeleton_ref,\n sound_ref,\n sphere_geometry,\n spline,\n spot_light,\n tags,\n vehicle_controller,\n volume_filter,\n volume_material_ref,\n volume_ref,\n }: {\n scene_id: AssetId;\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Entity unique identifier */\n entity_id: string;\n}> {\n return axiosInstance({\n method: 'post',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities',\n data: {\n animation_controller: animation_controller,\n animation_sequence_controller: animation_sequence_controller,\n bone: bone,\n box_geometry: box_geometry,\n camera: camera,\n capsule_geometry: capsule_geometry,\n character_controller: character_controller,\n collision_geometry_ref: collision_geometry_ref,\n constraint: constraint,\n constraint_actuator: constraint_actuator,\n culling_geometry: culling_geometry,\n custom_lens: custom_lens,\n cylinder_geometry: cylinder_geometry,\n debug_name: debug_name,\n decal_projector: decal_projector,\n environment: environment,\n joint: joint,\n label: label,\n lineage: lineage,\n local_aabb: local_aabb,\n local_transform: local_transform,\n material: material,\n material_ref: material_ref,\n measure: measure,\n mesh_ref: mesh_ref,\n morph_targets: morph_targets,\n navmesh_ref: navmesh_ref,\n orthographic_lens: orthographic_lens,\n overrider: overrider,\n perspective_lens: perspective_lens,\n physics_material: physics_material,\n plane_geometry: plane_geometry,\n point_cloud_ref: point_cloud_ref,\n point_light: point_light,\n reflection_probe: reflection_probe,\n rigid_body: rigid_body,\n scene_ref: scene_ref,\n script_element: script_element,\n script_map: script_map,\n shadow_caster: shadow_caster,\n skeleton_ref: skeleton_ref,\n sound_ref: sound_ref,\n sphere_geometry: sphere_geometry,\n spline: spline,\n spot_light: spot_light,\n tags: tags,\n vehicle_controller: vehicle_controller,\n volume_filter: volume_filter,\n volume_material_ref: volume_material_ref,\n volume_ref: volume_ref,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get a specific entity from a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getEntity(\n {\n scene_id,\n entity_id,\n compute_global_transform = false,\n }: {\n scene_id: AssetId;\n entity_id: string;\n compute_global_transform?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SceneEntity> {\n return axiosInstance({\n method: 'get',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities/' + encodeURIComponent(entity_id) + '',\n params: {\n compute_global_transform: compute_global_transform,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Update a specific entity from a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateEntity(\n {\n scene_id,\n entity_id,\n animation_controller,\n animation_sequence_controller,\n bone,\n box_geometry,\n camera,\n capsule_geometry,\n character_controller,\n collision_geometry_ref,\n constraint,\n constraint_actuator,\n culling_geometry,\n custom_lens,\n cylinder_geometry,\n debug_name,\n decal_projector,\n environment,\n joint,\n label,\n lineage,\n local_aabb,\n local_transform,\n material,\n material_ref,\n measure,\n mesh_ref,\n morph_targets,\n navmesh_ref,\n orthographic_lens,\n overrider,\n perspective_lens,\n physics_material,\n plane_geometry,\n point_cloud_ref,\n point_light,\n reflection_probe,\n rigid_body,\n scene_ref,\n script_element,\n script_map,\n shadow_caster,\n skeleton_ref,\n sound_ref,\n sphere_geometry,\n spline,\n spot_light,\n tags,\n vehicle_controller,\n volume_filter,\n volume_material_ref,\n volume_ref,\n }: {\n scene_id: AssetId;\n entity_id: string;\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities/' + encodeURIComponent(entity_id) + '',\n data: {\n animation_controller: animation_controller,\n animation_sequence_controller: animation_sequence_controller,\n bone: bone,\n box_geometry: box_geometry,\n camera: camera,\n capsule_geometry: capsule_geometry,\n character_controller: character_controller,\n collision_geometry_ref: collision_geometry_ref,\n constraint: constraint,\n constraint_actuator: constraint_actuator,\n culling_geometry: culling_geometry,\n custom_lens: custom_lens,\n cylinder_geometry: cylinder_geometry,\n debug_name: debug_name,\n decal_projector: decal_projector,\n environment: environment,\n joint: joint,\n label: label,\n lineage: lineage,\n local_aabb: local_aabb,\n local_transform: local_transform,\n material: material,\n material_ref: material_ref,\n measure: measure,\n mesh_ref: mesh_ref,\n morph_targets: morph_targets,\n navmesh_ref: navmesh_ref,\n orthographic_lens: orthographic_lens,\n overrider: overrider,\n perspective_lens: perspective_lens,\n physics_material: physics_material,\n plane_geometry: plane_geometry,\n point_cloud_ref: point_cloud_ref,\n point_light: point_light,\n reflection_probe: reflection_probe,\n rigid_body: rigid_body,\n scene_ref: scene_ref,\n script_element: script_element,\n script_map: script_map,\n shadow_caster: shadow_caster,\n skeleton_ref: skeleton_ref,\n sound_ref: sound_ref,\n sphere_geometry: sphere_geometry,\n spline: spline,\n spot_light: spot_light,\n tags: tags,\n vehicle_controller: vehicle_controller,\n volume_filter: volume_filter,\n volume_material_ref: volume_material_ref,\n volume_ref: volume_ref,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Delete a specific entity from a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteEntity(\n {\n scene_id,\n entity_id,\n }: {\n scene_id: AssetId;\n entity_id: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities/' + encodeURIComponent(entity_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get the settings of a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSceneSettings(\n {\n scene_id,\n }: {\n scene_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SceneSettings> {\n return axiosInstance({\n method: 'get',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/settings',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Update the settings of a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateSceneSettings(\n {\n scene_id,\n body,\n }: {\n scene_id: AssetId;\n body: SceneSettings;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/settings',\n data: body,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all running rendering sessions.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listRunningSessions(\n {\n filters,\n }: {\n filters?: {\n /** Filter sessions created by the specified user. Only available while using an api key. */\n user_id?: string;\n /** Filter sessions running a specified scene. */\n scene_id?: string;\n /** Filter sessions running scenes located in the specified folder. */\n folder_id?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Array<Session>> {\n return axiosInstance({\n method: 'get',\n url: '/sessions',\n params: {\n filters: filters,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Create a new rendering session.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createSession(\n {\n scene_id,\n renderer_version,\n is_transient = false,\n options,\n metadata,\n }: {\n /** The unique identifier of the scene to launch. */\n scene_id: AssetId;\n /** The version of the renderer to use. */\n renderer_version?: string;\n /** Whether the session should be created as transient or not. */\n is_transient?: boolean;\n /** Additional options for the session. For internal use. */\n options?: {\n [_additionalproperties_: string]: any;\n };\n /** What the application attaches to the session, returned with it. */\n metadata?: Metadata;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n session_id: SessionId;\n}> {\n return axiosInstance({\n method: 'post',\n url: '/sessions',\n data: {\n scene_id: scene_id,\n renderer_version: renderer_version,\n is_transient: is_transient,\n options: options,\n metadata: metadata,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the target session.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSession(\n {\n session_id,\n }: {\n session_id: SessionId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Session> {\n return axiosInstance({\n method: 'get',\n url: '/sessions/' + encodeURIComponent(session_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Terminates a session: its renderer is stopped, its clients disconnected. Only the session's creator can terminate\n * it. The session is closing until its renderer stopped, joined no more.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function killSession(\n {\n session_id,\n }: {\n session_id: SessionId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/sessions/' + encodeURIComponent(session_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a new client for the user and returns a token to join the session.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {InvalidGuestToken}\n * @throws {TooManyRequests}\n */\nexport function joinSession(\n {\n session_id,\n is_headless = false,\n metadata,\n }: {\n session_id: SessionId;\n /** Declare that the client is headless and will not receive any frames. Useful for clients running on servers or in the background. */\n is_headless?: boolean;\n /** What the application attaches to the client the token creates, returned with it. */\n metadata?: Metadata;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SessionToken> {\n return axiosInstance({\n method: 'post',\n url: '/sessions/' + encodeURIComponent(session_id) + '/clients',\n data: optionalBody({\n is_headless: is_headless,\n metadata: metadata,\n }),\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the target client.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {InvalidGuestToken}\n * @throws {TooManyRequests}\n */\nexport function getClient(\n {\n session_id,\n client_id,\n }: {\n session_id: SessionId;\n client_id: ClientId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Client> {\n return axiosInstance({\n method: 'get',\n url: '/sessions/' + encodeURIComponent(session_id) + '/clients/' + encodeURIComponent(client_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Kicks a client from a running session: it is disconnected, and leaves the session. Only the session's creator can\n * kick a client.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function kickClientFromSession(\n {\n session_id,\n client_id,\n }: {\n session_id: SessionId;\n client_id: ClientId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/sessions/' + encodeURIComponent(session_id) + '/clients/' + encodeURIComponent(client_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Join a session as guest.\n * @throws {InvalidParameter}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function joinSessionAsGuest(\n {\n metadata,\n }: {\n /** What the application attaches to the client the token creates, returned with it. */\n metadata?: Metadata;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SessionToken> {\n return axiosInstance({\n method: 'post',\n url: '/sessions/guests',\n data: optionalBody({\n metadata: metadata,\n }),\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Generates a token to join the session as a guest.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function generateGuestToken(\n {\n session_id,\n }: {\n session_id: SessionId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<GuestToken> {\n return axiosInstance({\n method: 'post',\n url: '/sessions/' + encodeURIComponent(session_id) + '/guests',\n headers: headers,\n });\n}\n"],
|
|
5
|
-
"mappings": "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",
|
|
4
|
+
"sourcesContent": ["//--------------------------------------------------------------------------\nimport { AxiosError } from 'axios';\nimport axiosRetry, { isNetworkError, isIdempotentRequestError } from 'axios-retry';\n\n//--------------------------------------------------------------------------\nimport { axiosInstance } from './_prebuild/wrapper';\n\n//------------------------------------------------------------------------------\nexport function setApiKey(apiKey: string) {\n axiosInstance.defaults.headers.common['api_key'] = apiKey;\n delete axiosInstance.defaults.headers.common['user_token'];\n}\n\n//------------------------------------------------------------------------------\nexport function setUserToken(userToken: string) {\n axiosInstance.defaults.headers.common['user_token'] = userToken;\n delete axiosInstance.defaults.headers.common['api_key'];\n}\n\n//------------------------------------------------------------------------------\nabstract class ServiceError extends Error {\n errorCode: number;\n httpCode: number;\n message: string;\n\n //--------------------------------------------------------------------------\n constructor(errorCode: number, httpCode: number, message: string) {\n super();\n this.errorCode = errorCode;\n this.httpCode = httpCode;\n this.message = message;\n }\n}\n\n//------------------------------------------------------------------------------\nexport class ApiError extends ServiceError {\n serviceError: unknown;\n\n constructor(errorCode: number, status: number, message: string, serviceError: unknown) {\n super(errorCode, status, message);\n this.serviceError = serviceError;\n }\n}\n\n//------------------------------------------------------------------------------\nexport class UnexpectedServiceError extends ServiceError {\n unexpectedError: unknown;\n\n constructor(status: number, unexpectedError: unknown) {\n super(0, status, 'Unexpected service error error');\n this.unexpectedError = unexpectedError;\n }\n}\n\n//------------------------------------------------------------------------------\nfunction installInterceptors() {\n const CLIENT_ERROR = 400 as const;\n const INTERNAL_SERVER_ERROR = 500 as const;\n\n axiosRetry(axiosInstance, {\n retries: 5,\n retryDelay: axiosRetry.exponentialDelay,\n retryCondition: shouldRetryRequest,\n });\n\n axiosInstance.interceptors.response.use(\n successFulResponse => {\n if (successFulResponse.config.responseType === 'stream') {\n successFulResponse.data.pause();\n }\n\n return successFulResponse;\n },\n error => {\n if (!error.response) {\n return Promise.reject(error);\n }\n\n const axiosError = error as AxiosError;\n const status = axiosError.response?.status || INTERNAL_SERVER_ERROR;\n const errorData = axiosError.response?.data;\n\n if (\n !errorData &&\n axiosError.request.method === 'HEAD' &&\n status >= CLIENT_ERROR &&\n status < INTERNAL_SERVER_ERROR\n ) {\n return axiosError.response;\n }\n\n if (!errorData || typeof errorData !== 'object') {\n return Promise.reject(new UnexpectedServiceError(status, errorData));\n }\n\n const serviceError = errorData as ServiceError;\n return Promise.reject(new ApiError(serviceError.errorCode, status, serviceError.message, serviceError));\n },\n );\n}\n\n//------------------------------------------------------------------------------\n// A request may succeed tried again when it did not reach the gateway, or when an idempotent one failed on its side\n// (5XX): a refusal or a missing resource (4XX) is the answer, which trying again only delays.\nfunction shouldRetryRequest(error: AxiosError) {\n return isNetworkError(error) || isIdempotentRequestError(error);\n}\n\n//------------------------------------------------------------------------------\ninstallInterceptors();\n\n//------------------------------------------------------------------------------\nexport * from './_prebuild/wrapper';\n", "/**\n * Asset API v1.0\n * ## Getting Started\n *\n * This is the reference for the REST API endpoints.\n *\n * ### NPM package\n *\n * We provide a TypeScript wrapper library to make typesafe API requests and get typed responses: [https://www.npmjs.com/package/@3dverse/api](https://www.npmjs.com/package/@3dverse/api).\n *\n * ### Authentication\n *\n * To authenticate your API calls, you'll need to generate an API key via the [3dverse Console](https://console.3dverse.com) and send an `api_key` header with your API requests.\n * Alternatively, you can create a user, generate a token for the user and authenticate with a `user_token`.\n *\n * ### Rate limits\n *\n * Each operation belongs to a class of requests, by what it costs:\n *\n * | Class | Operations | Per caller | Per environment |\n * | --- | --- | --- | --- |\n * | `read` | The reads | 50 per second, up to 300 at once | 500 per second, up to 2000 at once |\n * | `write` | The changes | 5 per second, up to 20 at once | 25 per second, up to 100 at once |\n * | `transfer` | The downloads of payloads and conversion metadata | 2 per second, up to 10 at once | 10 per second, up to 50 at once |\n * | `job` | Uploads, packages, exports, sessions created, folders and batches deleted | 12 per minute, up to 5 at once | 60 per minute, up to 20 at once |\n *\n * A request is counted in two budgets of its class: its caller's, the user of the API key, user token or guest token, in its environment, and its environment's, shared by all its callers. Each budget is a bucket of the size it holds at once, refilled at its rate: a caller can send a burst after a pause, never more than the rate on average. A request either budget refuses is answered `429 Too Many Requests` (`TooManyRequests`) and counted in neither: retry after the seconds its `Retry-After` header tells.\n *\n * Every answer to authenticated credentials tells both budgets, in the headers of the IETF draft on rate limits: `RateLimit-Policy` their size (`q`) and the seconds they take to refill entirely (`w`), and `RateLimit` what is left of each (`r`) and the seconds until it is full again (`t`), e.g. `\"read-user\";r=212;t=2, \"read-environment\";r=1980;t=1`. Slow down before `r` reaches 0.\n *\n * The live feed (`/changes`) takes up to 10 sockets per caller, closing one more with 4429.\n *\n *\n * ---\n *\n *\n * Contact: 3dverse Support (support@3dverse.com)\n *\n * DO NOT EDIT THIS FILE MANUALLY.\n * This file has been generated automatically from its OpenAPI spec file.\n * See: https://gitlab.com/3dverse/platform/libs/js/openapi-client-library-generator\n */\n\n//--------------------------------------------------------------------------\nimport axios, {\n AxiosHeaders,\n AxiosPromise,\n AxiosRequestHeaders,\n AxiosError,\n AxiosProgressEvent,\n AxiosResponse,\n RawAxiosRequestHeaders,\n RawAxiosResponseHeaders,\n} from 'axios';\n\n//--------------------------------------------------------------------------\ntype UnionKeys<T> = T extends T ? keyof T : never;\ntype StrictUnionHelper<T, TAll> = T extends any ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never;\ntype StrictUnion<T> = StrictUnionHelper<T, T>;\n\n//--------------------------------------------------------------------------\n// The response of an operation whose spec declares response headers, typed as the function reads them: axios types the\n// headers of its response as any header value.\nexport type ResponseWithHeaders<T, H> = Omit<AxiosResponse<T>, 'headers'> & { headers: H & RawAxiosResponseHeaders };\n\n//--------------------------------------------------------------------------\n// An error a service answered with, the base of the errors the spec declares: see errorOf. Holding its own errorCode,\n// httpCode and message, it is a service error to the services, which forward it as such.\nexport class ServiceErrorResponse extends Error {\n errorCode: number;\n httpCode: number;\n serviceError: unknown;\n\n constructor(errorCode: number, httpCode: number, message: string, serviceError: unknown) {\n super(message);\n // Enumerable, unlike the message of an Error, so that the error keeps it in JSON.\n Object.defineProperty(this, 'message', {\n value: message,\n enumerable: true,\n writable: true,\n configurable: true,\n });\n this.errorCode = errorCode;\n this.httpCode = httpCode;\n this.serviceError = serviceError;\n }\n}\n\n//--------------------------------------------------------------------------\n// An optional JSON body: none when the caller gives none of its properties.\nfunction optionalBody<T extends object>(body: T): T | undefined {\n return Object.values(body).some(value => value !== undefined) ? body : undefined;\n}\n\n//--------------------------------------------------------------------------\n// A multipart body: each file under its name, the files of an array under the same one, and each field as a string, or\n// as its JSON when it is no string. What is undefined is left out.\nfunction multipartBody(fields: Record<string, unknown>, files: Record<string, Blob | Blob[] | undefined>): FormData {\n const form = new FormData();\n for (const [name, value] of Object.entries(fields)) {\n if (value !== undefined) {\n form.append(name, typeof value === 'string' ? value : JSON.stringify(value));\n }\n }\n for (const [name, value] of Object.entries(files)) {\n for (const file of value === undefined ? [] : Array.isArray(value) ? value : [value]) {\n form.append(name, file);\n }\n }\n return form;\n}\n\n//--------------------------------------------------------------------------\n// A body that is JSON, or multipart once it carries files: a multipart body when a file is given, else the fields as\n// a JSON body, what is undefined left out.\nfunction jsonOrMultipartBody(\n fields: Record<string, unknown>,\n files: Record<string, Blob | Blob[] | undefined>,\n): FormData | Record<string, unknown> {\n const hasFile = Object.values(files).some(value => (Array.isArray(value) ? value.length > 0 : value !== undefined));\n if (hasFile) {\n return multipartBody(fields, files);\n }\n return Object.fromEntries(Object.entries(fields).filter(([, value]) => value !== undefined));\n}\n\n//--------------------------------------------------------------------------\n// A body that is JSON, or multipart once it carries files, given as one object: a multipart body of its fields and its\n// files when a Blob is among its values, else the object itself as a JSON body.\nfunction jsonOrMultipartBodyOf(body: object | undefined): FormData | object | undefined {\n if (body === undefined) {\n return undefined;\n }\n\n const isFile = (value: unknown): boolean =>\n value instanceof Blob ||\n (Array.isArray(value) && value.length > 0 && value.every(item => item instanceof Blob));\n const entries = Object.entries(body);\n const files = entries.filter(([, value]) => isFile(value));\n if (files.length === 0) {\n return body;\n }\n return multipartBody(\n Object.fromEntries(entries.filter(([, value]) => !isFile(value))),\n Object.fromEntries(files) as Record<string, Blob | Blob[]>,\n );\n}\n\n//--------------------------------------------------------------------------\n// The headers a caller gives, a plain object or an AxiosHeaders, as a plain object to add those of the request to.\nfunction plainHeaders(headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): RawAxiosRequestHeaders {\n return headers instanceof AxiosHeaders ? headers.toJSON() : { ...headers };\n}\n\n//--------------------------------------------------------------------------\nexport const axiosInstance = axios.create({\n baseURL: 'https://api.3dverse.com/app/v1',\n paramsSerializer: { indexes: null },\n});\n\n//------------------------------------------------------------------------------\nexport function setBaseURL(baseURL: string) {\n axiosInstance.defaults.baseURL = baseURL;\n}\n\n//--------------------------------------------------------------------------\n/** User unique identifier */\nexport type UserId = string;\nexport type UserInfo = {\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n};\n/**\n * This object represents a user in 3dverse. This object contains group and task information about the user.\n * The user object lets you create or update user tokens that identify the user on the 3dverse platform.\n */\nexport type User = {\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n /** The user registration date */\n registered_at: string;\n};\n/** An error the gateway raised, or one of the services it calls answered */\nexport type ServiceError = {\n /** The error's code, unique in the service, e.g. 1010 for UploadTaskNotFound */\n errorCode: number;\n /** The response's status code */\n httpCode: number;\n /** What went wrong, for a human */\n message: string;\n /** Details specific to each error, e.g. the ids it concerns, or the reason of a refusal */\n [_additionalproperties_: string]: any;\n};\n/**\n * The kind of token authenticating a request: OAuthToken, an access token of the authorization server acting for a\n * person in one environment, authenticates the MCP endpoint only, and UploadToken, issued by its tool\n * `import_files`, one import\n */\nexport type SessionType = 'ApiKey' | 'UserToken' | 'GuestToken' | 'OAuthToken' | 'UploadToken';\n/** What a token lets its holder do, each scope allowing what the ones before it allow */\nexport type SecurityScope = 'read' | 'write' | 'manage';\n/** Why the caller may not do what it asks, its credentials being valid */\nexport type AccessRefused = InvalidAuthorization | InsufficientSecurityScope | InsufficientPermissions;\n/** The user token object only supplies a user token for validation when connecting to a session. */\nexport type Token = {\n /** The user token, a JWT */\n user_token: string;\n /** How long it is valid, in seconds */\n expires_in: number;\n /** When it expires, as a Unix timestamp in seconds */\n expires_on: number;\n};\n/** Group unique identifier */\nexport type GroupId = string;\nexport type GroupInfo = {\n group_id: GroupId;\n name: string;\n};\n/**\n * A member's role, one for both: what it may do on the group, and what it may do on what the group can access, the\n * group's own access there limiting it. Both are given, and must be equal.\n */\nexport type GroupAccess = {\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n};\nexport type GroupMember = {\n user_id: UserId;\n /** Date user joined group */\n joined_at?: string;\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n};\n/**\n * This object lets you create and modify a group of users in your application.\n * You can set or remove access to other resources within 3dverse through the `Group` object.\n */\nexport type Group = {\n group_id: GroupId;\n name: string;\n description?: string;\n created_at: string;\n members: Array<GroupMember>;\n};\n/** Folder unique identifier */\nexport type FolderId = string;\n/**\n * The folder object contains items that you import into 3dverse.\n * These items can be either a source file or an asset.\n */\nexport type Folder = {\n folder_id: FolderId;\n parent_folder_id?: FolderId;\n /** Folder name */\n name: string;\n created_at?: string;\n created_by?: UserInfo;\n subfolders?: Array<Folder>;\n source_file_count?: number;\n asset_count?: number;\n library_count?: number;\n /**\n * How far the folder's content is shared: `platform` when it is shared with every user of the platform, the folder\n * or one of its ancestors being shared; `environment` otherwise. New scopes may be added.\n */\n shared_with?: 'environment' | 'platform';\n /** The folders holding it, from its environment's root down to its parent; empty for the root. */\n path?: Array<{\n folder_id: FolderId;\n name: string;\n }>;\n};\nexport type FolderList = Array<Folder>;\nexport type FolderAccess = {\n access: 'read' | 'write' | 'manage';\n};\n/** Source file unique identifier */\nexport type SourceFileId = string;\n/** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\nexport type AssetId = string;\nexport type AssetType =\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n/** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\nexport type AssetMeta =\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n/**\n * The `source file` object represents the source file imported into 3dverse.\n * This object contains the original uploaded file, along with the source file metadata.\n * You can also retrieve a list of assets generated from the file.\n */\nexport type SourceFile = {\n source_file_id: SourceFileId;\n /** The name of the source file when uploaded */\n source_file_original_name: string;\n /** Source file display name */\n name: string;\n /** Size in bytes */\n size: number;\n /** The asset standing for the source file once converted, absent before */\n main_asset?: {\n asset_id: AssetId;\n name: string;\n type: AssetType;\n /** Whether the asset has a thumbnail */\n has_thumbnail: boolean;\n meta: AssetMeta;\n };\n /** The types of the assets converted from the source file */\n contained_asset_types?: Array<AssetType>;\n};\nexport type ConversionPipeline = 'auto-detect' | 'volume' | 'point-cloud' | 'package';\n/** Upload task unique identifier */\nexport type UploadTaskId = string;\nexport type ConversionProgress = number;\n/** The task is awaiting for a worker to be available. */\nexport type PendingStatus = 'pending';\n/** The task is being processed. */\nexport type ConvertingStatus = 'converting';\n/** The task failed to convert the source file. */\nexport type ErrorStatus = 'error';\n/** The task was successfully processed, and the asset is ready to use. */\nexport type SuccessStatus = 'success';\n/** Conversion task unique identifier */\nexport type ConversionTaskId = string;\nexport type ConversionTask = {\n conversion_task_id: ConversionTaskId;\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id?: string;\n source_file_id: SourceFileId;\n /** The name of the source file */\n source_file_name: string;\n conversion_pipeline: ConversionPipeline;\n progress: ConversionProgress;\n status: (PendingStatus | ConvertingStatus | ErrorStatus | SuccessStatus) & string;\n};\n/**\n * The `upload task` object describes one upload process of source files and the status of the conversions.\n * This object can contain conversion tasks, if applicable.\n */\nexport type UploadTask = {\n upload_task_id: UploadTaskId;\n folder_id: FolderId;\n /** Date of the upload */\n uploaded_at: string;\n /** User who uploaded the file */\n uploaded_by: UserInfo;\n /** The global progress of the conversion tasks */\n progress: ConversionProgress;\n /**\n * The download progress of the source file if the Upload Task specified a URL for the source file.\n * This is only available if the source file is being downloaded.\n */\n download_progress?: ConversionProgress;\n status: (\n | 'waiting'\n | 'downloading'\n | 'extracting'\n | PendingStatus\n | ConvertingStatus\n | ErrorStatus\n | SuccessStatus\n | 'rejected'\n ) &\n string;\n conversion_tasks: Array<ConversionTask>;\n};\nexport type AssetListFilters = {\n /** Look for assets containing the given name (case-insensitive) */\n asset_name?: string;\n /** @deprecated Deprecated. Use asset_types instead. Look for assets of the given type */\n asset_type?: (\n | Array<\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n >\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n ) &\n any;\n /** Look for assets of the given types */\n asset_types?: Array<\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n >;\n /** Look for assets associated with or without libraries */\n library?: Array<string> | string | 'exclude';\n /**\n * The assets shared at these scopes, an asset's widest: `environment`, the folder's assets shared no further;\n * `platform`, those shared with the platform, the folder's and those of any other environment. The folder's\n * assets alone when absent.\n */\n sharing_scopes?: Array<'environment' | 'platform'>;\n /** Look for assets associated with or without source files */\n source_file?: Array<string> | string | 'exclude';\n};\n/**\n * JSON serialized object that follow the same response content format\n * but with a number describing the total count of that specific asset\n * type plus an extra total key which sums up all asset types combined\n */\nexport type AssetsCount = {\n /** Total number of assets in target folder. */\n total: number;\n /** Total number of assets in target folder of specific type. */\n [asset_type: string]: number;\n};\n/** Assets grouped by their container, i.e. the plural of their type; a container with no asset is left out */\nexport type AssetsByContainer = {\n action_maps?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n animation_graphs?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n animation_sequences?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n animation_sets?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n animations?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n collision_geometries?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n cubemaps?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n event_maps?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n materials?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n meshes?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n modules?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n navmeshes?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n point_clouds?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n render_graphs?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n scenes?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n scripts?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n shader_contexts?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n shaders?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n skeletons?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n sounds?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n textures?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n textures_3d?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n volume_materials?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n }>;\n};\nexport type AssetTypeCreatable =\n | 'action_map'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'module'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'volume_material';\n/** Asset description */\nexport type BasicAssetDescription = {\n uuid?: AssetId;\n name: string;\n};\nexport type AssetCreatableWithType =\n | {\n /** Action map for a controller */\n asset_description: {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'action_map';\n }\n | {\n /** An animation graph */\n asset_description: {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_graph';\n }\n | {\n /** An animated sequence of component properties */\n asset_description: {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_sequence';\n }\n | {\n /** An animation set linked to an animation graph */\n asset_description: {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_set';\n }\n | {\n /** A cubemap is a set of 6 textures forming a cube */\n asset_description: {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'cubemap';\n }\n | {\n /** A list of events with a description of their parameters */\n asset_description: {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'event_map';\n }\n | {\n /** A material implementing a shader */\n asset_description: {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'material';\n }\n | {\n /** Source code from a git repository that could be used in a shader, a script or in an algorithm */\n asset_description: {\n /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */\n payloadSize?: number;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'module';\n }\n | {\n /** A render graph used by a camera */\n asset_description: {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'render_graph';\n }\n | {\n /** A scene is a collection of entities */\n asset_description: {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'scene';\n }\n | {\n /** A runtime script */\n asset_description: {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'script';\n }\n | {\n /** A GPU shader */\n asset_description: {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n };\n asset_type: 'shader';\n }\n | {\n /** A material applied to a volume (3d texture) */\n asset_description: {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'volume_material';\n };\nexport type AssetCreationFromDescription = (\n | {\n /** Action map for a controller */\n asset_description: {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'action_map';\n }\n | {\n /** An animation graph */\n asset_description: {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_graph';\n }\n | {\n /** An animated sequence of component properties */\n asset_description: {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_sequence';\n }\n | {\n /** An animation set linked to an animation graph */\n asset_description: {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'animation_set';\n }\n | {\n /** A cubemap is a set of 6 textures forming a cube */\n asset_description: {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'cubemap';\n }\n | {\n /** A list of events with a description of their parameters */\n asset_description: {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'event_map';\n }\n | {\n /** A material implementing a shader */\n asset_description: {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'material';\n }\n | {\n /** Source code from a git repository that could be used in a shader, a script or in an algorithm */\n asset_description: {\n /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */\n payloadSize?: number;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'module';\n }\n | {\n /** A render graph used by a camera */\n asset_description: {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'render_graph';\n }\n | {\n /** A scene is a collection of entities */\n asset_description: {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'scene';\n }\n | {\n /** A runtime script */\n asset_description: {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'script';\n }\n | {\n /** A GPU shader */\n asset_description: {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n };\n asset_type: 'shader';\n }\n | {\n /** A material applied to a volume (3d texture) */\n asset_description: {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\n asset_type: 'volume_material';\n }\n) & {\n /** The asset's metadata, as its type declares them, none by default */\n meta?: AssetMeta;\n};\nexport type AssetItem = {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n};\n/** Duplication request unique identifier */\nexport type DuplicationRequestId = string;\n/**\n * A plan duplicating assets: the copies, planned in a draft, then created in the graph once confirmed, in no folder\n * until the request completes, each `DUPLICATED_FROM` its source. The content service fills them, from their sources,\n * then completes the request.\n */\nexport type DuplicationRequest = {\n /** The account duplicating the assets, absent for a user's request */\n account_id?: string;\n asset_types?: Array<\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material'\n >;\n /** The copies, sorted by id. A completed or failed request has none left. */\n assets: Array<{\n /** The id of the copy */\n asset_id: string;\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n /** What it depends on, copies and sources alike */\n dependencies: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n count: number;\n }>;\n /** A root's folder for the copies of the dependencies it pulls in */\n dependencies_folder_id?: string;\n /**\n * The storage to write its payload to, once the request is confirmed: absent from a draft, and for a source\n * without payload\n */\n dst_storage_id?: string;\n /** The id of its source */\n duplicated_from_id: string;\n excluded: boolean;\n /** The folder it goes to, once the request completes */\n folder_id: string;\n /** Whether its folder is its own, rather than resolved */\n folder_set: boolean;\n has_thumbnail: boolean;\n name: string;\n /** The copy that pulled it in, absent for a root */\n parent_id?: string;\n /** The size of its source's payload, in bytes */\n payload_size?: number;\n /** Whether it was requested, rather than pulled in as a dependency */\n root: boolean;\n /**\n * The storage to read its source's payload from, once the request is confirmed: absent from a draft, and for a\n * source without payload\n */\n src_storage_id?: string;\n }>;\n /** How many times the request was leased */\n attempts: number;\n created_at: string;\n /** How deep the dependencies of the assets duplicated are duplicated with them. */\n depth: 'none' | 'all' | number;\n /** Duplication request unique identifier */\n duplication_request_id: string;\n /** Why a failed request failed */\n error?: string;\n /** When a draft, a completed request or a failed one is deleted */\n expires_at?: string;\n folders_by_type: Array<{\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n /** Folder unique identifier */\n folder_id: string;\n }>;\n /** When the lease of the content service filling the copies ends */\n lease_expires_at?: string;\n /** Only answered to the caller the request was just leased to */\n lease_token?: string;\n /**\n * - `draft`: the plan is being reviewed, and expires unless confirmed.\n * - `running`: confirmed, and leased to a content service filling the copies.\n * - `queued`: running, but its lease expired, its filling having crashed or stalled: for a content service to grab,\n * with `grabDuplicationRequest`.\n * - `completed`: its copies filled, and moved into their folders. Kept for a few minutes, for a caller following it.\n * - `failed`: given up, with its error. Its copies are deleted.\n */\n state: 'draft' | 'queued' | 'running' | 'completed' | 'failed';\n /** The user duplicating the assets, absent for an account's request, still named once deleted */\n user_id?: string;\n};\n/** Source file formats accepted for conversion, grouped by conversion type. */\nexport type SupportedSourceFileFormats = {\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n cubemap: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n point_cloud: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n scene: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n sound: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n texture: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n /** Files accepted by one conversion type. Aggregates are the union over its converters. */\n volume: {\n /** Extra file extensions to bundle with a given primary extension. */\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n /** Per converter breakdown, keyed by converter name. */\n converters: {\n /** One converter of a conversion type. */\n [_additionalproperties_: string]: {\n associated_file_extensions?: {\n [_additionalproperties_: string]: Array<string>;\n };\n file_extensions: Array<string>;\n /** JSON Schema of the converter's options, or null if not published yet. */\n options_schema: {\n [_additionalproperties_: string]: any;\n };\n };\n };\n file_extensions: Array<string>;\n };\n};\n/** Import unique identifier, which this service mints: the id of the pipeline running it. */\nexport type ImportId = string;\n/** The unique identifier of a conversion */\nexport type ConversionId = string;\n/** The conversion of one file of an import into assets. */\nexport type Conversion = {\n conversion_id: ConversionId;\n /**\n * The assets the conversion stored, once stored: its main one, standing for the file, and the others, those of a\n * conversion embedded in another one included, e.g. the textures of an FBX file.\n */\n assets: Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n }>;\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id?: string;\n source_file_id: SourceFileId;\n /** The name of the file converted */\n source_file_name: string;\n conversion_pipeline: ConversionPipeline;\n progress: ConversionProgress;\n status: ('pending' | 'converting' | 'error' | 'success' | 'cancelled') & string;\n};\n/**\n * An import of files into the environment, run as a data pipeline: the files uploaded or downloaded, unpacked, and\n * each one converted into assets, or imported as it is when it is an asset package. It names the folder its assets\n * were stored into, which they may have left since.\n */\nexport type Import = {\n import_id: ImportId;\n /** The folder the import stores its assets into */\n folder_id: FolderId;\n /** When the import was created */\n created_at: string;\n /** The user who created the import */\n created_by: UserInfo;\n /** The progress of the import, over all its conversions */\n progress: ConversionProgress;\n /** The progress of the download of the files given by URL, while they are downloaded */\n download_progress?: ConversionProgress;\n status: (\n | 'waiting'\n | 'downloading'\n | 'extracting'\n | 'pending'\n | 'converting'\n | 'pending-confirmation'\n | 'error'\n | 'success'\n | 'rejected'\n | 'cancelled'\n ) &\n string;\n conversions: Array<Conversion>;\n};\n/** A file an import downloads, given by its URL */\nexport type RemoteFile = {\n /** The name of the file */\n name: string;\n /** The URL of the file, which must be public, unless an Authorization header is given */\n url: string;\n /** The value of the Authorization header of the download, when it needs one */\n authorization?: string;\n};\nexport type AssetGenerationOptions =\n | {\n asset_type: 'collision_geometry';\n data_pipeline: 'collision-geometry-baker';\n /** What a collision geometry is baked from: submeshes of meshes, merged into one geometry. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** The shape baked */\n collision_geometry_type: 0 | 1;\n /** The meshes the geometry is baked from */\n mesh_ids: Array<string>;\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n };\n }\n | {\n asset_type: 'navmesh';\n data_pipeline: 'navmesh-baker';\n /** What a navmesh is baked from, submeshes of meshes, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** Traversal cost multiplier of each area, by area id: 1 for an area left out */\n area_costs?: Array<number>;\n /** Border around a tile, in voxels */\n border_size?: number;\n /** Build a bounding volume tree for each tile */\n build_bv_tree?: boolean;\n /** Build the detail mesh of each tile */\n build_detail_mesh?: boolean;\n /** Height of a voxel */\n cell_height?: number;\n /** Size of a voxel on the xz-plane */\n cell_size?: number;\n /** Distance between the samples of the detail mesh */\n detail_sample_dist?: number;\n /** Furthest the detail mesh strays from the heightfield */\n detail_sample_max_error?: number;\n /** Longest edge along the mesh border, in voxels, 0 for none */\n max_edge_len?: number;\n /** Furthest a simplified contour strays from the raw one, in voxels */\n max_simplification_error?: number;\n /** Most vertices a polygon has */\n max_verts_per_poly?: number;\n /** Area under which a region is merged into a larger one, in voxels */\n merge_region_area?: number;\n /** The meshes the navmesh is baked from */\n mesh_ids: Array<string>;\n /** Area of the smallest region kept, in voxels */\n min_region_area?: number;\n /** How the walkable area is partitioned into regions */\n partition_type?: 'watershed' | 'monotone' | 'layers';\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n /** Size of a tile, in voxels */\n tile_size?: number;\n /** Height of a step an agent climbs, in voxels */\n walkable_climb?: number;\n /** Height an agent needs, in voxels */\n walkable_height?: number;\n /** Radius of an agent, in voxels */\n walkable_radius?: number;\n /** Steepest slope an agent walks, in degrees */\n walkable_slope_angle?: number;\n };\n };\n/**\n * What an import imports, when not the files it brings, by its `type`, the only one so far being `library`: a library\n * synchronized from its repository, by a single conversion building it. The import targets the library's folder, and\n * holds the library while it runs: a single running import synchronizes it, and it cannot move nor be deleted. Kept\n * once the import ended, while the library is there.\n */\nexport type ImportSource = {\n /** Library unique identifier */\n library_id: string;\n type: 'library';\n};\n/** A line a conversion task logged, as logged */\nexport type ConversionLogLine = {\n /**\n * When the line was logged, in UTC, to the nanosecond, e.g. `2026-10-19T08:00:00.123456789Z`: the lines logged\n * within the same millisecond keep their order.\n */\n timestamp: string;\n line: string;\n};\nexport type EnvironmentAssetListFilters = {\n /** Look for assets of the given types */\n asset_types?: Array<AssetType>;\n /** Filter by asset name */\n asset_name?: string;\n /** Include the assets shared with the platform, from any environment */\n include_public_assets?: boolean;\n};\nexport type AssetContainer =\n | 'action_maps'\n | 'animations'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'animation_sets'\n | 'collision_geometries'\n | 'cubemaps'\n | 'event_maps'\n | 'materials'\n | 'meshes'\n | 'modules'\n | 'navmeshes'\n | 'point_clouds'\n | 'render_graphs'\n | 'scenes'\n | 'scripts'\n | 'shaders'\n | 'shader_contexts'\n | 'skeletons'\n | 'sounds'\n | 'textures'\n | 'textures_3d'\n | 'volume_materials';\n/** A change of an asset's metadata, merged into them, a key set to null removed, the others kept */\nexport type AssetMetaChange =\n | {\n kind?: 'slang' | 'glsl' | null;\n }\n | {\n kind?: 'statechart' | 'coroutine' | 'custom' | null;\n }\n | {\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph' | null;\n };\n/** An asset as platform-management holds it, where it is included, and how it was edited */\nexport type AssetDetails = {\n asset_container:\n | 'action_maps'\n | 'animations'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'animation_sets'\n | 'collision_geometries'\n | 'cubemaps'\n | 'event_maps'\n | 'materials'\n | 'meshes'\n | 'modules'\n | 'navmeshes'\n | 'point_clouds'\n | 'render_graphs'\n | 'scenes'\n | 'scripts'\n | 'shaders'\n | 'shader_contexts'\n | 'skeletons'\n | 'sounds'\n | 'textures'\n | 'textures_3d'\n | 'volume_materials';\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n contributors?: Array<{\n contribution_count: number;\n /** A user of an environment: a registered user, an API key's user, or an account's user. */\n user: {\n /**\n * Set for a deleted user, kept as the creator of what it created, under a placeholder username, or its own for\n * the user of a revoked API key. Its own operations answer UserNotFound.\n */\n deleted?: true;\n /** The user registration date */\n registered_at: string;\n /** User unique identifier */\n user_id: string;\n /** The username that will be displayed in monitoring tools. */\n username: string;\n };\n }>;\n /** When the asset was created, absent when unknown */\n created_at?: string;\n /** The user who created the asset, absent when unknown */\n created_by?: {\n /**\n * Set for a deleted user, kept as the creator of what it created, under a placeholder username, or its own for\n * the user of a revoked API key. Its own operations answer UserNotFound.\n */\n deleted?: true;\n /** User unique identifier */\n user_id: string;\n /** The username of the user */\n username: string;\n };\n /** Unique identifier of an environment */\n environment_id: string;\n environment_slug: string;\n /** Folder unique identifier */\n folder_id: string;\n /**\n * The path to the asset's folder from its root folder, the root first, the folder itself left out: empty for an\n * asset in a root folder.\n */\n folder_path: Array<{\n /** Folder unique identifier */\n folder_id: string;\n /** Folder name */\n name: string;\n }>;\n /** Whether the content service stores a thumbnail of the asset */\n has_thumbnail: boolean;\n /** The last compilation the content service stored of the asset, absent when none was */\n last_compilation?: {\n /** When the content service stored what it compiled */\n compiled_at: string;\n /** The compiler, e.g. `script-compiler` */\n compiler: string;\n /** The compiler's version */\n version: string;\n };\n last_edited_at?: string;\n /** A user of an environment: a registered user, an API key's user, or an account's user. */\n last_edited_by?: {\n /**\n * Set for a deleted user, kept as the creator of what it created, under a placeholder username, or its own for\n * the user of a revoked API key. Its own operations answer UserNotFound.\n */\n deleted?: true;\n /** The user registration date */\n registered_at: string;\n /** User unique identifier */\n user_id: string;\n /** The username that will be displayed in monitoring tools. */\n username: string;\n };\n /** The library exporting the asset, if any */\n library_id?: string;\n /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */\n meta:\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'slang' | 'glsl';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'statechart' | 'coroutine' | 'custom';\n }\n | {\n /** What the asset is, which tells the tool opening it */\n kind?: 'material' | 'decal' | 'compute' | 'raster' | 'point_cloud' | 'utility_graph';\n };\n name: string;\n /** Unique identifier of an organization */\n organization_id: string;\n organization_slug: string;\n /**\n * What the asset's payload takes, absent before the content service stored one, or for a payload recorded\n * with no size, as some the services before left\n */\n payload?: {\n /**\n * Whether the payload is stored compressed, with LZ4: not those of the asset types whose compressedPayload trait\n * is false\n */\n compressed: boolean;\n /** The payload's size, uncompressed, in bytes */\n size: number;\n /** What the payload takes on disk, in bytes, its size compressed, or its size when stored uncompressed */\n size_on_disk: number;\n };\n /** Unique identifier of a project */\n project_id: string;\n project_slug: string;\n /** The source file the asset was imported from, if any */\n source_file_id?: string;\n};\nexport type AssetDescription =\n | {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** A track that represents events triggered by the animation */\n animationEventTrack: {\n /** Animation event names */\n eventNames: Array<string>;\n /** The animation events sorted on a timeline */\n eventTimeline: Array<{\n /** Index of event in the timeline */\n eventIndex: number;\n /** Whether the event should trigger globally or not */\n triggerGlobally: boolean;\n /** Normalized animation time at which the event is triggered */\n triggerTime: number;\n }>;\n };\n /** Duration of the animation in ms */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** Payload size of all channels */\n payloadSize: number;\n /** A reference to the skeleton used by this animation */\n skeletonRef?: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n geometryType: 0 | 1;\n /** Name of the asset */\n name: string;\n /** Total size in byte of this mesh's payload. This has to be equal to the sum of each submesh payload size */\n payloadSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Morph targets which contain the deltas from the source submesh */\n morphTargets?: Array<{\n /** Batches of morph targets which share the same index channel */\n batches: Array<{\n /** Index of the index channel in the channels array */\n indexChannelIndex: number;\n /** Morph targets in the batch */\n morphTargets: {\n /** Morph target name to morph target description */\n [morph_target_name: string]: {\n /** Channels that make up the morph target. */\n channelIndices: Array<number>;\n };\n };\n }>;\n /** Channels that make up the morph targets */\n channels: Array<{\n /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */\n dataOffset: number;\n /** Size of this channel in bytes */\n dataSize: number;\n /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */\n elementCount: number;\n /** Size in bytes of a single element (1, 2, 4, 8) for integers, (4, 8) for floats */\n elementSize: number;\n /** Can be either (signed/unsigned) integer or float */\n elementType: (0 | 1 | 2) & number;\n /** Semantic of the attribute */\n semantic: 'index' | 'position' | 'normal' | 'uv' | 'color' | 'bone_id' | 'weight';\n }>;\n }>;\n /** Name of the asset */\n name: string;\n /** Total size in byte of this mesh's payload. This has to be equal to the sum of each submesh payload size */\n payloadSize: number;\n /** A mesh is composed of one or more submeshes */\n submeshes: Array<{\n /** The axis aligned bounding box that encompasses all the vertices of the submesh */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Description of the channels in the payload blob */\n channels: Array<{\n /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */\n dataOffset: number;\n /** Size of this channel in bytes */\n dataSize: number;\n /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */\n elementCount: number;\n /** Size in bytes of a single element (1, 2, 4, 8) for integers, (4, 8) for floats */\n elementSize: number;\n /** Can be either (signed/unsigned) integer or float */\n elementType: (0 | 1 | 2) & number;\n /** Semantic of the attribute */\n semantic: 'index' | 'position' | 'normal' | 'uv' | 'color' | 'bone_id' | 'weight';\n }>;\n /** Total number of indices, a vertex can be referenced multiple times using its index. Note that this number has to be divisible by 3 as we only deal with triangles. Also, note that if this mesh doesn't use indices, the count will be 0. */\n indexCount: number;\n /** Index of morph targets associated with this submesh */\n morphTargetsIndex?: number;\n /** Total number of vertices. Can't exceed UINT32_MAX because indices are restricted to a uint32 */\n vertexCount: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */\n payloadSize?: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Area cost overrides (area ID -> traversal cost multiplier). Only non-default (!= 1.0f) entries need to be stored. */\n areaCosts?: Array<{\n areaId: number;\n cost: number;\n }>;\n /** World-space axis-aligned bounding box of the entire navmesh */\n boundingBox: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** World-space origin of the tile grid (bottom-left corner at layer 0) */\n gridOrigin: Array<number>;\n /** Name of the asset */\n name: string;\n /** Size in bytes of the payloads of all the tiles. */\n payloadSize: number;\n /** World-space dimensions of each tile: {width along x, height along z, depth along y}. Tiles are square on the xz-plane, so x == y. z is always 0. */\n tileDimensions: Array<number>;\n /** Description of each tile of the grid holding walkable area, the payload tile<N> storing the N-th. */\n tiles: Array<{\n /** World-space axis-aligned bounding box of this tile. */\n boundingBox: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Grid position within the tile grid. */\n gridPosition: Array<number>;\n /** Size in bytes of the raw binary tile payload. */\n payloadSize: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Size in bytes of the acceleration structure payload: nodeCount * (sizeof(aabb) + pcasSize), the AABB of each node followed by its record. */\n accelerationStructureSize: number;\n /** Axis aligned bounding box of the entire point cloud */\n bounds: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Description of the per-point attributes (position, color, etc.) */\n channels: Array<{\n /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */\n dataOffset: number;\n /** Size of this channel in bytes */\n dataSize: number;\n /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */\n elementCount: number;\n /** Size in bytes of a single element (1, 2, 4, 8) for integers, (4, 8) for floats */\n elementSize: number;\n /** Can be either (signed/unsigned) integer or float */\n elementType: (0 | 1 | 2) & number;\n /** Semantic of the attribute */\n semantic: 'index' | 'position' | 'normal' | 'uv' | 'color' | 'bone_id' | 'weight';\n }>;\n /** Size in bytes of each layer. A layer is a collection of nodes serialized into a single file. */\n layerSizes: Array<number>;\n /** Name of the asset */\n name: string;\n /** Number of nodes in the acceleration structure. */\n nodeCount: number;\n /** Number of points in the original point cloud before any spatial partitioning or filtering was applied */\n originalPointCount: number;\n /** Page size in bytes used for sparse buffer alignment. Each node occupies a multiple of this size per attribute */\n pageSize: number;\n /** Total size in bytes of all attribute layer files. Sum of sizeof(payload.pointCloud.layer<N>.<uuid>) for all layers */\n payloadTotalSize: number;\n /** Size in bytes of one acceleration_structure_node record. */\n pcasSize: number;\n /** Size in bytes of the sparse buffer the runtime must reserve to bake this point cloud's node data (position/color channels) into: sum(align(nodeSizeInBytes, pageSize)) over every node. Larger than payloadTotalSize: leaves are packed tight on disk but each occupies a whole page once baked, same as internal (LOD) nodes already do. */\n sparseBufferSize: number;\n /** Total number of points across all nodes in the tree, including intermediary nodes. Greater than or equal to originalPointCount */\n totalPointCount: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n }\n | {\n /** The fields every shader in this family reads as input */\n dataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Name of the asset */\n name: string;\n /** The fields a material shader must produce. */\n outputDescriptor?: Array<{\n /** Blend state of the attachment, no blending if absent */\n blendState?: {\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n };\n /** What this field represents */\n description: string;\n /** Field name */\n name: string;\n /** Field data type */\n type:\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4';\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Descriptions of all bones forming the skeleton */\n bones: Array<{\n /** Total number of children of this bone */\n childrenCount?: number;\n /** The index of the first child bone in the flat bones array */\n firstChildIndex?: number;\n /** The bone's name */\n name?: string;\n /** The offset matrix */\n offsetMatrix?: Array<number>;\n /** The index of the parent bone in the flat bones array */\n parentIndex?: number;\n }>;\n /** Name of the asset */\n name: string;\n /** The size in byte of skeleton data */\n payloadSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The bit depth of the audio data */\n bitDepth: number;\n /** The of audio channels (1 = mono, 2 = stereo, etc.) */\n channelCount: number;\n /** Duration of the track in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the sound data */\n payloadSize: number;\n /** Total number of samples composing the audio track */\n sampleCount: number;\n /** Frequency in Hertz */\n sampleFrequencyInHz: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The format of the texture */\n format: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14) & number;\n /** Index of the first mip stored in the mip bundle, along with every smaller mip, rather than in a payload of its own. -1 when there is no mip bundle. */\n mipBundleFirstIndex?: number;\n /** Mip-maps */\n mips: Array<{\n /** The mip resolution in pixels */\n dimension?: Array<number>;\n /** Size of this mip payload in bytes */\n payloadSize?: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Total size in bytes of all mip-maps */\n payloadTotalSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The format of the texture */\n format: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14) & number;\n /** Index of the first mip stored in the mip bundle, along with every smaller mip, rather than in a payload of its own. -1 when there is no mip bundle. */\n mipBundleFirstIndex?: number;\n /** Mip-maps */\n mips: Array<{\n /** The mip resolution in pixels */\n dimension?: Array<number>;\n /** Size of this mip payload in bytes */\n payloadSize?: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Total size in bytes of all mip-maps */\n payloadTotalSize: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** The voxel dimensions of the texture */\n voxelDimensions?: Array<number>;\n }\n | {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\nexport type AssetContainerEditable =\n | 'action_maps'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'animation_sets'\n | 'cubemaps'\n | 'event_maps'\n | 'materials'\n | 'modules'\n | 'render_graphs'\n | 'scenes'\n | 'scripts'\n | 'shaders'\n | 'volume_materials';\nexport type EditableAssetDescription =\n | {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */\n payloadSize?: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n /** Unique identifier for the asset */\n uuid: string;\n }\n | {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Unique identifier for the asset */\n uuid: string;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n }\n | {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Unique identifier for the asset */\n uuid: string;\n };\nexport type AssetContainerWithPayload =\n | 'animations'\n | 'animation_graphs'\n | 'animation_sequences'\n | 'collision_geometries'\n | 'meshes'\n | 'modules'\n | 'navmeshes'\n | 'point_clouds'\n | 'scripts'\n | 'shaders'\n | 'skeletons'\n | 'sounds'\n | 'textures'\n | 'textures_3d';\nexport type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';\n/** A tool keeping a document of an asset, and when it last wrote it */\nexport type AssetDocumentSummary = {\n /** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */\n tool_id: string;\n updated_at: string;\n};\n/** A tool editing assets, which keeps a document of its own for each, e.g. `graph-editor` */\nexport type ToolId = string;\n/** The document a tool keeps of an asset, in a format of its own, which names the assets it uses by references of its own, and the assets those references stand for, which cannot be deleted while it names them: neither dependencies of the asset nor references. A copy of the asset takes the document as it is, its references standing for the copies of the assets duplicated with it. */\nexport type AssetDocument = {\n /** The asset each reference of the document stands for */\n dependencies: {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n [_additionalproperties_: string]: string;\n };\n /** The tool's document, as it wrote it, holding no asset id but its own references */\n document: {\n [_additionalproperties_: string]: any;\n };\n};\nexport type AssetContainerWithCode = 'animation_graphs' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';\n/** The code replacing an asset's, as its caller sends it. Left open, to be extended through `allOf`, as the route adds the user: a body taking it alone closes it with `unevaluatedProperties: false`. */\nexport type AssetCode = {\n /** The C++ code, built against the asset type's precompiled header, which it needs not include */\n code: string;\n /** Whether to build its debug library too, with its symbols, for the engine's developers */\n debug?: boolean;\n};\nexport type AssetCodeInput = {\n /** The C++ code, built against the asset type's precompiled header, which it needs not include */\n code: string;\n /** Whether to build its debug library too, with its symbols, for the engine's developers */\n debug?: boolean;\n};\n/** The build of an asset's code, which replaced the asset's. */\nexport type AssetCodeBuild = {\n /** Whether the asset's description changed, which a script's code tells */\n description_changed: boolean;\n /** The compiler's warnings */\n warnings: Array<{\n column?: number;\n /** The header it is in, relative to the toolchain, none for the code itself */\n file?: string;\n line?: number;\n message: string;\n severity: 'error' | 'warning' | 'note';\n }>;\n};\nexport type AssetContainerExportable = 'meshes' | 'sounds';\nexport type Vector3 = Array<number>;\n/** An entity of a scene: its components, by class. */\nexport type Entity = {\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Unique identifier for the entity. */\n euid: {\n /** Unique identifier value. */\n value: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n};\n/** An entity of a scene, with its global transform when it was asked for */\nexport type SceneEntity = {\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Unique identifier for the entity. */\n euid: {\n /** Unique identifier value. */\n value: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n /** The entity's transform in its scene's space, its parents' local transforms composed with its own. */\n global_transform?: {\n /** Position (x, y, z) in meters. */\n position: Array<number>;\n /** Orientation as a quaternion (x, y, z, w). */\n orientation: Array<number>;\n /** Scale (x, y, z), its parents' scales multiplied by its own. */\n scale: Array<number>;\n };\n};\n/** The settings of a scene: its settings blocks, by class. */\nexport type SceneSettings = {\n /** Settings for debug lines */\n debug_lines?: {\n /** Whether to draw the bouding boxes of entities */\n drawBoundingBoxes?: boolean;\n /** Whether to draw camera frustums */\n drawCameraFrustums?: boolean;\n /** Whether to draw the center of mass of physics bodies */\n drawCenterOfMass?: boolean;\n /** Whether to draw contacts between physics bodies */\n drawContacts?: boolean;\n /** Whether to draw debug lines */\n drawDebugLines?: boolean;\n /** Whether to draw certain IK parameters like the forward and up vector of an IK Aim node, or the pole vector of an IK Two Bone node */\n drawIK?: boolean;\n /** Whether to draw joint-related debug lines */\n drawJoints?: boolean;\n /** Whether to draw light-related debug lines */\n drawLights?: boolean;\n /** Whether to draw geometry of physics bodies */\n drawPhysicsBodies?: boolean;\n /** Whether to draw physics body axes */\n drawPhysicsBodyAxes?: boolean;\n /** Whether to draw reflection probes */\n drawReflectionProbes?: boolean;\n /** Whether to draw the skeletons of rigged characters */\n drawSkeletons?: boolean;\n };\n /** Default camera component of the scene, used to create default cameras. */\n default_camera_component?: {\n /** Input values as described in the referenced render graph in their original JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Specifies which render graph this camera should use. */\n renderGraphRef?: string;\n /** Index of the render target to blit. */\n renderTargetIndex?: number;\n };\n /** Default camera global transform of the scene, used to create default cameras. */\n default_camera_transform?: {\n /** Orientation of the camera expressed as a quaternion */\n orientation?: Array<number>;\n /** x, y, z position of the camera */\n position?: Array<number>;\n };\n /** Settings for the display */\n display?: {\n /** Draw frame without input events */\n forceRedraw?: boolean;\n /** When 'Force Redraw' is off, this setting controls the number of frames the renderer will draw before going back to idle */\n framePersistence?: number;\n /** Maximum number of Frames Per Second the renderer is allowed to produce */\n maxFPS?: (15 | 30 | 60 | 90) & number;\n /** Maximum resolution of loaded textures */\n maxTextureSize?: (4294967295 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192) & number;\n };\n /** Settings for the encoder */\n encoder?: {\n /** Encoder type. */\n encoderType?: string;\n };\n /** Settings for the environment */\n environment?: {\n /** Color of the spherical gradient at the bottom of the sphere. */\n ambientColorBottom?: Array<number>;\n /** Color of the spherical gradient at the top of the sphere. */\n ambientColorTop?: Array<number>;\n /** Solid color used to clear the screen before drawing. */\n clearColor?: Array<number>;\n };\n /** Miscellaneous settings */\n misc?: {\n /** The maximum number of time a linker can reference itself. */\n maxLinkersRecursionCount?: number;\n /** The maximum time a script can run before getting aborted. */\n maxScriptExecutionTimeInMs?: number;\n /** Plugins to load at startup */\n plugins?: Array<string>;\n };\n /** Settings for the network */\n network?: {\n /** Time to wait in seconds with no client before closing the session. */\n clientConnectionTimeout?: number;\n sendSimulationUpdates?: boolean;\n /** Time to maintain the session alive without any active client in seconds. */\n timeToLiveWithInactiveUsersInSeconds?: number;\n waitForDefaultAssetsTimeoutInSeconds?: number;\n };\n /** Settings for the physics engine. */\n physics?: {\n /** The engine that is powering the physics of the scene. */\n engine?: 'physx' | 'xde';\n /** The epsilon used to mark whether the transform of an entity has changed and so whether to notify the physics engine. */\n epsilon?: number;\n /** Global gravity applied throughout the scene. */\n gravity?: Array<number>;\n /** The bigger LMD Max is, the greater the area that is searched for future contacts, and so the greater time taken per iteration. Note that XDE resolves contacts pre-collision, not once collision has taken place, like the majority of physics engines. Displacement of any object per iteration should not exceed LMD Max. */\n lmdMax?: number;\n /** A frame-rate-independent interval that dictates when physics calculations are performed. */\n timestepInS?: number;\n /** The approximate size of objects in the simulation. This is used to estimate certain length-related tolerances. */\n toleranceLength?: number;\n /** The typical magnitude of velocities of objects in simulation. This is used to estimate whether a contact should be treated as bouncing or resting based on its impact velocity, and a kinetic energy threshold below which the simulation may put objects to sleep. For normal physical environments, a good choice is the approximate speed of an object falling under gravity for one second. */\n toleranceSpeed?: number;\n };\n /** Renderer settings */\n renderer?: {\n /** Enable occlusion culling. */\n cpuOcclusionCulling?: boolean;\n /** Toggle frustum culling */\n enableFrustumCulling?: boolean;\n /** Enables geometry culling. */\n enableGeometryCulling?: boolean;\n /** Enables ray tracing. */\n enableRayTracing?: boolean;\n /** Toggle texture streaming */\n enableTextureStreaming?: boolean;\n /** Time to wait for the GPU in milliseconds. */\n endFrameTimeoutInMilliseconds?: number;\n };\n /** Settings to apply whenever simulation is active */\n simulation?: {\n /** Scripts which the client will be automatically attached */\n clientScripts?: Array<{\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n }>;\n /** Camera used when starting the simulation */\n mainCamera?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Sound settings */\n sound?: {\n /** Enable 3dverse sound. */\n enabled?: boolean;\n };\n /** Settings for the scene streaming */\n streaming?: {\n /** Maximum number of entities that can be loading at the same time. 0 means unlimited. */\n maxInFlightEntities?: number;\n /** Scenes that enter this radius around the camera get loaded. */\n streamingLoadingRadius?: number;\n /** Scenes that exit this radius around the camera get unloaded. */\n streamingUnloadingRadius?: number;\n };\n /** Settings for voxel rendering */\n voxel?: {\n /** Maximum number of color samples used to compute the color LUT. */\n maxNumberAlbedoValues?: number;\n };\n};\n/** Session unique identifier */\nexport type SessionId = string;\n/** Client unique identifier */\nexport type ClientId = string;\n/**\n * What an application attaches to a session it creates, or to a client it joins one with, which the service keeps\n * and answers as is, never reading it: up to 32 keys, each a string of up to 512 characters, set once\n */\nexport type Metadata = {\n [_additionalproperties_: string]: string;\n};\nexport type Client = {\n client_id?: ClientId;\n client_type?: 'user' | 'guest';\n /** What the application which joined with this client attached to it, empty for none */\n metadata?: Metadata;\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n};\n/** A rendering session. */\nexport type Session = {\n session_id: SessionId;\n /** The main scene identifier of the session */\n scene_id: AssetId;\n /** The main scene name of the session */\n scene_name: string;\n /** The folder identifier of the scene */\n folder_id: FolderId;\n /** Maximum number of users allowed in this session at the same time */\n max_users: number;\n /** User identifier of the creator of the session */\n created_by?: {\n user_id: UserId;\n username: string;\n };\n /** Session creation date */\n created_at: string;\n /** Country code of the rendering server location */\n country_code: string;\n /** Continent code of the rendering server location */\n continent_code: string;\n /** Whether the session is transient or not */\n is_transient_session: boolean;\n /** Current clients in session */\n clients: Array<Client>;\n /** What the application which created the session attached to it, empty for none */\n metadata: Metadata;\n};\nexport type SessionToken = {\n /** The token used to join the requested session, a JWT */\n session_token: string;\n /** The endpoint to connect to */\n endpoint_info: {\n /** The host to connect to, an IP address, or `localhost` when the client connects from the cluster's gateway */\n ip: string;\n port: number;\n ssl_port: number;\n };\n};\nexport type GuestToken = {\n /** The token used to join the requested session as a guest */\n guest_token?: string;\n};\n/** The id of a delivery, sent as the `webhook-id` header of each attempt, which the receiver deduplicates on */\nexport type WebhookDeliveryId = string;\n/** An import was requested, and registered in platform-management. */\nexport type ImportCreated = {\n /** Pipeline unique identifier. A pipeline is an instance of a Data Pipeline. */\n data_pipeline_id: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Folder unique identifier */\n folder_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Unique identifier of a project */\n project_id: string;\n /** Possible status of an import before it completes. */\n status: 'created' | 'downloading' | 'extracting' | 'pending-confirmation' | 'queued' | 'running';\n /** User unique identifier */\n user_id: string;\n};\n/** An import moved on, before it completed. */\nexport type ImportStatusChanged = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Unique identifier of a project */\n project_id: string;\n /** Possible status of an import before it completes. */\n status: 'created' | 'downloading' | 'extracting' | 'pending-confirmation' | 'queued' | 'running';\n};\n/** How much of an import's remote files is downloaded: the bytes received against their total size. */\nexport type ImportDownloadProgress = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n};\n/** How much of an import's archives is extracted: the bytes extracted against their total size. */\nexport type ImportExtractionProgress = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n};\n/** An import this service completed: failed or rejected before its assets are stored, or none of whose conversions succeeded. asset-store completes the others. */\nexport type ImportCompleted = {\n /** Unique identifier of an environment */\n environment_id: string;\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Unique identifier of a project */\n project_id: string;\n /** Possible status of an import once it completed. This service completes an import that failed or was rejected before its assets are stored, or none of whose conversions succeeded; otherwise asset-store completes it, once it stored them. */\n status: 'passed-with-errors' | 'failed' | 'rejected' | 'succeeded' | 'cancelled';\n};\n/** A conversion of an import was created, whatever its status: one of a source file, of an embedded file (its parent's source file), or of input assets. One that could not start is created `failed`. */\nexport type ConversionCreated = {\n /** Conversion unique identifier, which this service mints: the id of the job running it. */\n conversion_id: string;\n /** Its conversion type, unknown for an embedded file no converter supports. */\n conversion_type?:\n | 'collision_geometry'\n | 'cubemap'\n | 'library'\n | 'navmesh'\n | 'package'\n | 'point_cloud'\n | 'scene'\n | 'sound'\n | 'texture'\n | 'volume';\n /** The converter it runs, unknown for an embedded file no converter supports. */\n converter?: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n /** The name of the main file it converts. */\n name: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** The conversion that found the embedded file this one converts. */\n parent_conversion_id?: string;\n /** Unique identifier of a project */\n project_id: string;\n /** The size of the files it converts, in bytes. */\n size: number;\n /** Source file unique identifier, which this service mints for each file an import brings. */\n source_file_id?: string;\n /** Possible status of a conversion. */\n status: 'created' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded' | 'cancelled';\n steps: Array<{\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at?: string;\n /** Name of the step. */\n name: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n started_at?: string;\n /** Possible status of a step of a conversion. */\n status: 'created' | 'skipped' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';\n /** Unique identifier of one step of a conversion. */\n step_id: string;\n }>;\n /** The input assets it converts. */\n used_assets?: Array<{\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n asset_type:\n | 'action_map'\n | 'animation'\n | 'animation_graph'\n | 'animation_sequence'\n | 'animation_set'\n | 'collision_geometry'\n | 'cubemap'\n | 'event_map'\n | 'material'\n | 'mesh'\n | 'module'\n | 'navmesh'\n | 'point_cloud'\n | 'render_graph'\n | 'scene'\n | 'script'\n | 'shader'\n | 'shader_context'\n | 'skeleton'\n | 'sound'\n | 'texture'\n | 'texture_3d'\n | 'volume_material';\n }>;\n};\n/** A conversion, or one of its steps, moved on, before it completed. */\nexport type ConversionStatusChanged = {\n /** Conversion unique identifier, which this service mints: the id of the job running it. */\n conversion_id: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n started_at?: string;\n /** Possible status of a conversion before it completes. */\n status: 'created' | 'queued' | 'running';\n steps: Array<{\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at?: string;\n /** Name of the step. */\n name: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n started_at?: string;\n /** Possible status of a step of a conversion. */\n status: 'created' | 'skipped' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';\n /** Unique identifier of one step of a conversion. */\n step_id: string;\n }>;\n};\n/** A conversion completed. What it stored, and its size, is asset-store's to announce. */\nexport type ConversionCompleted = {\n /** Conversion unique identifier, which this service mints: the id of the job running it. */\n conversion_id: string;\n /** Unique identifier of an environment */\n environment_id: string;\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at: string;\n /** Import unique identifier, which this service mints: the id of the pipeline running it. */\n import_id: string;\n occurred_at: string;\n /** Unique identifier of an organization */\n organization_id: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n /** Unique identifier of a project */\n project_id: string;\n started_at?: string;\n /** Possible status of a conversion once it completed. A conversion timed out failed. */\n status: 'timed-out' | 'failed' | 'succeeded' | 'cancelled';\n steps: Array<{\n /** Why an import, a conversion or one of its steps failed or was rejected. */\n error?: {\n /** Stable, machine-readable category for why an import, a conversion or one of its steps failed or was rejected. Meant for programmatic handling (e.g. displaying a localized, user-facing message): the error's `message` carries the technical detail. `processing_failed` is a catch-all used whenever the failure doesn't fall into one of the other, more specific categories. */\n code:\n | 'quota_exceeded'\n | 'unsupported_file_format'\n | 'nothing_to_process'\n | 'download_failed'\n | 'extraction_failed'\n | 'processing_failed'\n | 'storing_failed';\n /** The technical detail. */\n message: string;\n };\n finished_at?: string;\n /** Name of the step. */\n name: string;\n /** Progress of a conversion, one of its steps, or an import's download or extraction, in percent. */\n progress: number;\n started_at?: string;\n /** Possible status of a step of a conversion. */\n status: 'created' | 'skipped' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';\n /** Unique identifier of one step of a conversion. */\n step_id: string;\n }>;\n};\nexport type PipelineId = ImportId;\nexport type GroupMemberInput = {\n user_id: UserId;\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n};\n/**\n * The folder object contains items that you import into 3dverse.\n * These items can be either a source file or an asset.\n */\nexport type FolderInput = {\n /** Folder name */\n name: string;\n subfolders?: Array<FolderInput>;\n};\nexport type AssetCreationFromDescriptionInput = (\n | {\n /** Action map for a controller */\n asset_description: {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n };\n asset_type: 'action_map';\n }\n | {\n /** An animation graph */\n asset_description: {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n };\n asset_type: 'animation_graph';\n }\n | {\n /** An animated sequence of component properties */\n asset_description: {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n };\n asset_type: 'animation_sequence';\n }\n | {\n /** An animation set linked to an animation graph */\n asset_description: {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n };\n asset_type: 'animation_set';\n }\n | {\n /** A cubemap is a set of 6 textures forming a cube */\n asset_description: {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n };\n asset_type: 'cubemap';\n }\n | {\n /** A list of events with a description of their parameters */\n asset_description: {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n };\n asset_type: 'event_map';\n }\n | {\n /** A material implementing a shader */\n asset_description: {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n };\n asset_type: 'material';\n }\n | {\n /** Source code from a git repository that could be used in a shader, a script or in an algorithm */\n asset_description: {\n /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */\n payloadSize?: number;\n };\n asset_type: 'module';\n }\n | {\n /** A render graph used by a camera */\n asset_description: {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n };\n asset_type: 'render_graph';\n }\n | {\n /** A scene is a collection of entities */\n asset_description: {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n };\n asset_type: 'scene';\n }\n | {\n /** A runtime script */\n asset_description: {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n };\n asset_type: 'script';\n }\n | {\n /** A GPU shader */\n asset_description: {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n };\n asset_type: 'shader';\n }\n | {\n /** A material applied to a volume (3d texture) */\n asset_description: {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n };\n asset_type: 'volume_material';\n }\n) & {\n /** The asset's metadata, as its type declares them, none by default */\n meta?: AssetMeta;\n};\nexport type EditableAssetDescriptionInput =\n | {\n actions: {\n [action_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Name of the asset */\n name: string;\n }\n | {\n /** Inputs used by the graph */\n inputDescriptor: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Animation state machines */\n stateMachines: Array<{\n /** States of the state machine */\n states?: Array<{\n /** The name of the state */\n name?: string;\n /** The nodes of this state's animation graph */\n nodes?: Array<{\n /** Indices of input nodes of the parent animation graph */\n inputs?: Array<number>;\n /** Type of the node */\n nodeType?: StrictUnion<0 | 1 | 2 | 3 | 100 | 101 | 200 | 201>;\n /** Settings associated to this node */\n settings?: StrictUnion<\n | {\n /** The animation to play */\n animationKey: number;\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 1D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: number;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n }\n | {\n /** 2D control points */\n controlPoints: Array<{\n animationKey: number;\n coords: Array<number>;\n }>;\n /** Horizontal axis */\n horizontalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n /** Whether the animation should loop back to the start when done */\n loop?: boolean;\n /** Multiplier factor for the speed */\n playbackSpeed?: number;\n /** Change the animation starting point. Expects a normalized value from 0 to 1 */\n startOffset?: number;\n /** Change the animation ending point. Expects a normalized value from 0 to 1 */\n stopOffset?: number;\n /** Vertical axis */\n verticalAxis: {\n /** The axis name */\n name: string;\n /** Maximum value of the axis */\n rangeMax: number;\n /** Minimum value of the axis */\n rangeMin: number;\n };\n }\n | {\n /** Bone mask keys. Used to find the corresponding bone mask in the animation set */\n boneMasks: Array<number>;\n /** Blend weights */\n weights: Array<number | string>;\n }\n | {\n /** Probabilities of each input animation to be selected */\n probabilities: Array<number>;\n }\n | {\n /** Index of the state machine to run */\n stateMachineIndex: number;\n }\n | {\n /** End bone. This bone will try to reach the target. */\n endBone: number | string;\n /** Mid bone. Must be ancestor of end bone. */\n midBone: number | string;\n /** The pole vector which defines where the direction the middle bone should point to, allowing to control IK chain orientation. In model space of the skeleton. */\n poleVector: Array<number> | string;\n /** Soften ratio, allowing the chain to gradually fall behind the target position. This prevents the bone chain from snapping into the final position, softening the final degrees before the bone chain becomes flat */\n soften: number | string;\n /** Start bone. Must be ancestor of mid bone. */\n startBone: number | string;\n /** The target which the endBone will try to reach. In world space */\n target: Array<number> | string;\n /** Twist angle rotates IK chain around the vector defined by start-to-target vector */\n twistAngle: number | string;\n /** Weight given to the whole IK process, allowing blending in and out */\n weight: number | string;\n }\n | {\n /** This is the bone which will aim at the target */\n aimingBone: number | string;\n /** Weight given to IK for each bone of the chain (except for the last bone which is 1). This directly affect correction spreading */\n boneWeight: number | string;\n /** Number of bones (from the predefined hierarchy) that are corrected by IK */\n chainLength: number | string;\n /** Weight given to the whole aim process, allowing blending in and out */\n chainWeight: number | string;\n /** Bone space forward vector. Default is z axis. */\n forward: Array<number> | string;\n /** Offset position from the aiming bone in local-space, that will aim at target */\n offset: Array<number> | string;\n /** The target that the forward vector will be aimed towards. In world space */\n target: Array<number> | string;\n /** Bone space up vector. Used to keep the bone oriented in the same direction as the pole vector. Default is y axis. */\n up: Array<number> | string;\n }\n >;\n }>;\n /** The transitions coming from the current state */\n transitionIndices?: Array<number>;\n }>;\n /** All transition between all states */\n transitions?: Array<{\n /** A variant of either exit time, data object entry or transition func index (depending on transition type) */\n condition?: number | string | number;\n /** The duration of the transition for blending purposes */\n durationInMs?: number;\n /** The index of the state to transition to */\n nextStateIndex?: number;\n /** The transition type. */\n type?: StrictUnion<0 | 1 | 2 | 3>;\n }>;\n }>;\n }\n | {\n /** Duration of the animation in milliseconds */\n durationInMs: number;\n /** Name of the asset */\n name: string;\n /** The size in byte of the compiled animation sequence library */\n payloadSize?: number;\n /** The array of track UUIDs at play in this animation sequence */\n trackUUIDs: Array<string>;\n }\n | {\n /** Parent animation graph */\n animationGraphUUID: string;\n /** The animation set */\n animationSet: Array<{\n /** Key of the animation in the animation graph */\n animationKey: number;\n /** The referenced animation for the specified key */\n animationRef: string;\n }>;\n /** The bone mask set */\n boneMaskSet?: Array<{\n /** The bone mask. An array of floats which corresponds to the weight per bone */\n boneMask: Array<number>;\n /** Key of the bone mask in the animation graph */\n boneMaskKey: number;\n }>;\n /** Name of the asset */\n name: string;\n }\n | {\n /** The 6 images forming the cube faces */\n faces: Array<string>;\n /** Name of the asset */\n name: string;\n }\n | {\n /** A map of events and their parameters descriptors */\n events: {\n /** Event name to parameters descriptor */\n [event_name: string]: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n };\n /** Name of the asset */\n name: string;\n }\n | {\n /** Data object following the descriptor of the attached shader */\n dataJson: {\n [_additionalproperties_: string]: any;\n };\n /** Whether the faces of the geometry are rendered from both sides or not */\n isDoubleSided: boolean;\n /** Name of the asset */\n name: string;\n /** The implemented shader */\n shaderRef: string;\n }\n | {\n /** The size in byte of the same built with its debug symbols: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n functions: {\n [function_name: string]: {\n [_additionalproperties_: string]: any;\n };\n };\n /** Other modules this module uses */\n moduleDependencies?: Array<string>;\n /** Name of the asset */\n name: string;\n /** The size in byte of what the module builds to, for a kind of module which builds: none for a legacy one */\n payloadSize?: number;\n }\n | {\n /** All blend states */\n blendStateDescriptions?: Array<{\n /** Selects which blend operation is used to calculate the alpha values to write to the color attachment. */\n alphaBlendOp?: number;\n /** Controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment\u2019s color for that attachment is passed through unmodified. */\n blendEnable?: boolean;\n /** Selects which blend operation is used to calculate the RGB values to write to the color attachment. */\n colorBlendOp?: number;\n /** Bitmask of VkColorComponentFlagBits specifying which of the R, G, B, and/or A components are enabled for writing, as described for the Color Write Mask. */\n colorWriteMask?: number;\n /** Selects which blend factor is used to determine the destination factor Da. */\n dstAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the destination factors (Dr,Dg,Db). */\n dstColorBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factor Sa. */\n srcAlphaBlendFactor?: number;\n /** Selects which blend factor is used to determine the source factors (Sr,Sg,Sb). */\n srcColorBlendFactor?: number;\n }>;\n /** Descriptions of all buffers */\n bufferDescriptions?: Array<{\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount?: number | Array<number>;\n /** Size in bytes of a single element in the buffer */\n elementSize?: number;\n /** Buffer name */\n name?: string;\n /** How this buffer is going to be used */\n usage?: number;\n }>;\n /** Conditions referenced by conditionIndex */\n conditions?: Array<string>;\n /** The index of the render target to blit into the canvas */\n defaultRenderTargetIndex?: number;\n /** The order in which to interpret the nodes */\n graphOrder: Array<Array<number>>;\n /** Input descriptor used to parse input data */\n inputDescriptor: Array<{\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'texture2d_ref'\n | 'stencil_op'\n | 'render_target_index'\n | 'buffer_reference'\n | 'string'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n /** Parameter type */\n type:\n | 'texture'\n | 'stencil_op'\n | 'render_target'\n | 'buffer'\n | 'string'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4';\n }>;\n /** Name of the asset */\n name: string;\n /** Descriptions of all nodes */\n nodeDataDescriptions: Array<\n (\n | {\n type: 0;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 1;\n }\n | {\n /** Batch type bitmask (batch_flags). Combinable flags: opaque=1, transparent=2, static_meshes=4, static_textured_meshes=8, all_static_meshes=16, skinned=32, selected=64, do_not_use_material=128, double_sided=256, single_sided=512, pass_occlusion_test=1024, unselected=2048, cast_shadows=4096, invalid_material=8192 */\n batchType?: number;\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 2;\n }\n | {\n /** @deprecated Const data type */\n constDataType?: (\n | 0\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | 13\n | 14\n | 15\n | 16\n | 17\n | 18\n | 19\n | 20\n | 21\n | 22\n | 23\n | 24\n ) &\n number;\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 3;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 4;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 5;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 6;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Destination render target */\n outputRenderTargetIndices?: Array<number>;\n type: 7;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 8;\n }\n | {\n filter?: number;\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n type: 9;\n }\n | {\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n type: 10;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Source render target */\n inputRenderTargetIndices?: Array<number>;\n /** Mip generation mode */\n mode?: (0 | 1) & number;\n /** A reference to a shader */\n shaderRef?: string;\n type: 11;\n }\n | {\n /** Clear value */\n clearValue?:\n | Array<number>\n | Array<number>\n | Array<number>\n | {\n depth: number;\n stencil: number;\n };\n /** Type of clearValue */\n clearValueType?: StrictUnion<0 | 1 | 2 | 3>;\n /** Render targets to clear */\n outputRenderTargetIndices?: Array<number>;\n type: 13;\n }\n | {\n /** Name of the buffer */\n bufferName?: string;\n /** Offset in the buffer */\n bufferOffset?: number;\n /** Size of the buffer; 0 for whole size */\n bufferSize?: number;\n /** Value to fill the buffer with */\n bufferValue?: number;\n type: 15;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Description of a shader pipeline */\n pipelineDescription?: {\n /** Index of the stencil state for back face rendering */\n backFaceStencilOpStateIndex?: number;\n /** Color blend attachement states */\n blendStateIndices?: Array<number>;\n /** Cull mode */\n cullMode?: number;\n /** Whether to enable depth bias or not */\n depthBiasEnable?: boolean;\n /** Depth compare operator */\n depthCompareOp?: number;\n /** Wether to enable depth test or not */\n depthTestEnable?: boolean;\n /** Wether to enable depth write or not */\n depthWriteEnable?: boolean;\n /** Front face */\n frontFace?: number;\n /** Index of the stencil state for front face rendering */\n frontFaceStencilOpStateIndex?: number;\n /** Polygon mode */\n polygonMode?: number;\n /** Primitive topology */\n topology?: number;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 16;\n }\n | {\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Index into shaderContexts of the descriptor providing the shader context data for this node */\n shaderContextIndex: number;\n type: 17;\n }\n | {\n /** Depth bias clamp */\n depthBiasClamp?: number;\n /** Depth bias constant factor */\n depthBiasConstantFactor?: number;\n /** Depth bias slope factor */\n depthBiasSlopeFactor?: number;\n type: 18;\n }\n | {\n /** Specialization constants values for the specified shader */\n constantsJson?: {\n [_additionalproperties_: string]: any;\n };\n /** Data provided to the shader through the node data buffer */\n dataJson?: {\n [_additionalproperties_: string]: any;\n };\n /** A reference to a shader */\n shaderRef?: string;\n type: 19;\n }\n ) & {\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** Node name */\n name?: string;\n /** Node type */\n type: (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19) &\n number;\n }\n >;\n /** The index of the render target used for occlusion */\n occlusionInputDepthRenderTargetIndex?: number;\n /** Descriptions of all render passes */\n renderPassDescriptions: Array<{\n /** The attachments clear colors */\n attachmentClearColors?: Array<Array<number>>;\n /** The attachment descriptions */\n attachmentDescriptions?: Array<{\n /** Final layout */\n finalLayout?: number;\n /** Attachment description flags */\n flags?: number;\n /** Format */\n format?: number;\n /** Initial layout */\n initialLayout?: number;\n /** Load op */\n loadOp?: number;\n /** Sample count */\n samples?: number;\n /** Stencil load op */\n stencilLoadOp?: number;\n /** Stencil store op */\n stencilStoreOp?: number;\n /** Store op */\n storeOp?: number;\n }>;\n /** The indices of the render targets used as color attachments for this render pass */\n colorAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as color attachments for this render pass */\n colorAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Index into the conditions array; -1 if unconditional */\n conditionIndex?: number;\n /** The index of the render target used as depth attachment for this render pass */\n depthAttachmentIndex?: number;\n /** The attachment reference of the render target used as depth attachment for this render pass */\n depthAttachmentReference?: {\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n };\n /** Render pass name */\n name?: string;\n /** The indices of the nodes composing this render pass */\n nodeIndices?: Array<number>;\n /** The indices of the render targets used as resolve attachments for this render pass */\n resolveAttachmentIndices?: Array<number>;\n /** The attachment references of the render targets used as resolve attachments for this render pass */\n resolveAttachmentReferences?: Array<{\n /** Attachment */\n attachment?: number;\n /** Layout */\n layout?: number;\n }>;\n /** Multisampling */\n sampleCount?: number;\n }>;\n /** Descriptions of all render targets */\n renderTargetDescriptions: Array<{\n /** The aspect of the image to use, in the graph */\n aspect?: number;\n /** The denoiser target this render target maps to */\n denoiserTarget?: (-1 | 0 | 1 | 2 | 3) & number;\n /** The extent of the render target, leave at 0 to use the canvas extent */\n extent?: Array<number>;\n /** Flags to use on image creation */\n flags?: number;\n /** Format of the render target */\n format?: number;\n /** Memory type */\n memoryType?: (0 | 1 | 2 | 3) & number;\n /** How the image is accessed */\n memoryUsage?: (0 | 1 | 2 | 3) & number;\n /** Minimum mip size, leave at 0 for single mip level */\n minMipSize?: number;\n /** Render target name */\n name?: string;\n /** The picking target this render target maps to */\n pickingTarget?: (-1 | 0 | 1) & number;\n /** Number of samples per pixel */\n sampleCount?: number;\n /** THe sampler to use when accessing this render target */\n samplerType?: number;\n /** Tiling of the image */\n tiling?: number;\n /** How this render target is going to be used */\n usage?: number;\n }>;\n /** Data descriptors for the shader contexts referenced by shaderContextIndex */\n shaderContexts?: Array<\n Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>\n >;\n /** All stencil states */\n stencilOpStateDescriptions?: Array<{\n /** Compare mask */\n compareMask?: number;\n /** Compare operator */\n compareOp?: number;\n /** Depth fail operator */\n depthFailOp?: number;\n /** Fail operator */\n failOp?: number;\n /** Pass operator */\n passOp?: number;\n /** Reference */\n reference?: number;\n /** Write mask */\n writeMask?: number;\n }>;\n }\n | {\n /** Bounding box in local space */\n aabb: {\n /** Maximum point of the box */\n max: Array<number>;\n /** Minimum point of the box */\n min: Array<number>;\n };\n /** Flat list of entities */\n entities: Array<{\n [_additionalproperties_: string]: any;\n }>;\n /** Name of the asset */\n name: string;\n /** Total number of direct triangles in the scene */\n triangleCount?: number;\n }\n | {\n /** The events that the script listens to, referenced by name */\n eventNames?: Array<string>;\n /** The description of the data object that the caller should provide to the script */\n inputDescriptor: Array<{\n /** Parameter default value */\n default?:\n | number\n | string\n | boolean\n | Array<number>\n | {\n [_additionalproperties_: string]: any;\n };\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'entity_ref'\n | 'int32_t'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n /** Parameter type */\n type:\n | 'entity'\n | 'bool'\n | 'int'\n | 'uint'\n | 'float'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'mat4'\n | 'string';\n }>;\n /** Name of the asset */\n name: string;\n /** An optional list of references to other scripts that the current script might call */\n subScripts?: Array<string>;\n }\n | {\n /** The blend mode for the shader, used for batching purposes. Only valid for material shaders */\n blendMode?: StrictUnion<0 | 1 | 2 | 3>;\n /** Compute shader settings. Only valid for compute shaders */\n computeSettings?: {\n /** Global group reference */\n sizeReference?: StrictUnion<0 | 1 | 2 | 3>;\n /** Size of the workgroup */\n workgroupSize?: Array<number>;\n /** Scaling factor to apply to the total workgroup count */\n workloadScalingFactor?: Array<number>;\n };\n /** Data descriptor for specialization constants */\n constantDescriptor?: Array<{\n /** Constant default value */\n default: number | boolean;\n /** Description */\n description?: string;\n /** Display name */\n displayName?: string;\n /** Constant name */\n name: string;\n /** Constant type */\n type: 'bool' | 'int' | 'uint' | 'float';\n }>;\n /** The size in byte of the same code built with its debug symbols, unoptimized: the optional `debug` payload, when built */\n debugPayloadSize?: number;\n /** GLSL extensions required by this shader, detected from the SPIR-V capabilities declared by its compiled modules or set by its author */\n glslExtensions?: Array<{\n /** Behavior of its #extension directive */\n behavior?: 'require' | 'enable' | 'warn' | 'disable';\n /** SPIR-V capability id that requires this extension (e.g. 5347 for PhysicalStorageBufferAddresses) */\n capabilityId?: number;\n /** GLSL extension name, e.g. \"GL_EXT_buffer_reference\" */\n name: string;\n /** Stage its #extension directive is written in, or \"all_stages\" */\n stage?: string;\n }>;\n /** Data descriptor for material shaders */\n materialDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Descriptions of all modules that compose this shader */\n moduleDescriptions?: Array<{\n /** Names of the bindings used by this module */\n bindings?: Array<string>;\n /** Constants used by this module */\n constants?: {\n [_additionalproperties_: string]: Array<number>;\n };\n /** Entry point of the shader module */\n entryPoint?: string;\n /** Outputs of this shader module (e.g. a fragment shader's color attachments, or the last stage's varying outputs), used to validate the module's compatibility with a render pipeline */\n outputs?: Array<{\n /** Output location */\n location: number;\n /** Output variable name */\n name: string;\n /** Output variable type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** Offset in byte in the shader payload buffer */\n payloadOffset: number;\n /** Size in byte of the compiled module */\n payloadSize: number;\n /** Push constant members used by this module, used to validate push constant layout compatibility across the pipeline's stages */\n pushConstants?: Array<{\n /** Push constant member name */\n name: string;\n /** Offset in byte within the push constant block */\n offset: number;\n /** Size in byte of the push constant member */\n size: number;\n /** Push constant member type */\n type:\n | 'bool'\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'float16'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'pointer';\n }>;\n /** The shader stage */\n shaderStage: number;\n /** Bit mask of the descriptor bindings used by this module, bit N for binding N */\n usedBindings: number;\n }>;\n /** Name of the asset */\n name: string;\n /** Data descriptor for render graph node shaders */\n nodeDataDescriptor?: Array<{\n /** Additional properties for a parameter of type \"buffer\": how many elements it holds, the size of each element, and how the buffer is used. Absent for every other parameter type */\n bufferProperties?: {\n /** Number of elements in the buffer, or a [x, y] pair of factors applied to the viewport width and height (each rounded up and clamped to a minimum of 1, then multiplied) to compute the element count */\n elementCount: number | Array<number>;\n /** Size in bytes of a single element in the buffer. If the buffer is declared as `T *buffer`, this is sizeof(T) */\n elementSize: number;\n /** How this buffer is going to be used */\n usage: number;\n };\n /** Categories */\n categories?: Array<string>;\n /** Parameter default value: a texture's is the uuid of the texture it samples unless set, which the engine loads with the shader */\n default?: number | boolean | Array<number> | string;\n /** Description of the parameter, shown by tools. Not read by the engine */\n description?: string;\n /** Identifier of the parameter, kept while its name is, and never given to another: tools follow a parameter across the versions of its shader by it. Not read by the engine */\n id?: number;\n /** Whether this parameter (a render target or buffer) is the resource used to compute the number of dispatched workgroups for a compute shader, i.e. DispatchedGroups = referenceResource.size / workgroupSize (see compute_shader_size_reference's reference_resource) */\n isReferenceResource?: boolean;\n /** For a parameter holding one of a set of values: each value, named and described for tools. Not read by the engine */\n list?: Array<{\n description?: string;\n name: string;\n value: number;\n }>;\n /** Parameter name */\n name: string;\n /** Parameter native type */\n nativeType:\n | 'vec4'\n | 'vec3'\n | 'vec2'\n | 'float'\n | 'int32_t'\n | 'texture2d_ref'\n | 'render_target_index'\n | 'buffer_reference';\n /** Parameter offset in bytes */\n offset: number;\n /** Additional properties gating this parameter's relevance and/or driving how it's interpreted by tooling (e.g. the material editor) */\n properties?: {\n /** For a parameter of type \"texture\" or \"render_target_index\": the underlying pixel type's exact format */\n format?:\n | 'int32'\n | 'uint32'\n | 'int64'\n | 'uint64'\n | 'float32'\n | 'float64'\n | 'vec2'\n | 'ivec2'\n | 'vec3'\n | 'ivec3'\n | 'vec4'\n | 'ivec4'\n | 'color3'\n | 'color4';\n /** For a parameter of type \"buffer\" or \"render_target_index\": how the underlying resource is accessed */\n openMode?: 'read' | 'write' | 'readwrite';\n /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */\n spec?: {\n [_additionalproperties_: string]: number | boolean;\n };\n };\n /** Parameter type */\n type:\n | 'vec4'\n | 'ivec4'\n | 'quat'\n | 'color_alpha'\n | 'vec3'\n | 'ivec3'\n | 'color'\n | 'vec2'\n | 'ivec2'\n | 'float'\n | 'int'\n | 'uint'\n | 'bool'\n | 'texture'\n | 'render_target_index'\n | 'buffer';\n }>;\n /** Hash of the node data descriptor, used to detect changes in the descriptor */\n nodeDataDescriptorHash?: number;\n /** The size in byte of the compiled shader code (accumulated size of all modules) */\n payloadSize?: number;\n /** Reference to the shader context associated with this shader. Only present for shaders that use one. */\n shaderContextRef?: string;\n /** Vulkan bit mask of all shader stages present in this shader */\n shaderStages?: number;\n /** Vertex description. Only valid when a vertex shader module is present */\n vertexDescriptor?: Array<{\n /** Binding number */\n binding: number;\n /** Format */\n format: number;\n /** Location */\n location: number;\n /** Offset */\n offset: number;\n /** Semantic */\n semantic: (1 | 2 | 4 | 8 | 16 | 32) & number;\n /** Stride between consecutive elements within the buffer */\n stride: number;\n }>;\n }\n | {\n /** The albedo look up table */\n albedoLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The metallic look up table */\n metallicLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** Name of the asset */\n name: string;\n /** The opacity look up table */\n opacityLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n /** The maximum voxel value handled by the material */\n rangeMax: number;\n /** The minimum voxel value handled material */\n rangeMin: number;\n /** The roughness look up table */\n roughnessLUT?: Array<{\n /** The normalized key for this entry */\n key?: number;\n /** The value associated to the key */\n value?: Array<number> | number;\n }>;\n };\n\n//--------------------------------------------------------------------------\nexport class InvalidAuthorization extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1003;\n declare readonly session_type: SessionType;\n constructor(serviceError: Record<string, unknown>) {\n super(1003, 403, 'This operation is not allowed with this kind of token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InsufficientSecurityScope extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1004;\n declare readonly current_scope: SecurityScope;\n declare readonly required_scope: SecurityScope;\n constructor(serviceError: Record<string, unknown>) {\n super(1004, 403, 'This operation is not permitted with the scope of this token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InsufficientPermissions extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1002;\n /** The permissions the caller misses, per resource */\n declare readonly missing_permissions?: Array<{\n id: string;\n /** The resource type, e.g. folders */\n type: string;\n permissions: Array<string>;\n }>;\n constructor(serviceError: Record<string, unknown>) {\n super(1002, 403, 'Insufficient permissions', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidTokenTtl extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1017;\n /** The time to live asked */\n declare readonly ttl: string;\n constructor(serviceError: Record<string, unknown>) {\n super(1017, 400, 'The time to live of a user token is a duration from 1 minute to 14 days', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidParameter extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1;\n /** What the request breaks of the specification, one entry per rule, e.g. /limit must be <= 100 */\n declare readonly details: Array<string>;\n constructor(serviceError: Record<string, unknown>) {\n super(1, 400, 'Invalid parameter', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class MemberAccessesDiffer extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1020;\n declare readonly member_ids: Array<string>;\n constructor(serviceError: Record<string, unknown>) {\n super(1020, 422, \"A member's group and folder accesses differ, while it holds a single role\", serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidMaterial extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1013;\n declare readonly material_ids: Array<AssetId>;\n constructor(serviceError: Record<string, unknown>) {\n super(1013, 400, 'Some of the asset ids are not materials', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidRequest extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1014;\n declare readonly reason: string;\n constructor(serviceError: Record<string, unknown>) {\n super(1014, 400, 'Invalid request', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class UploadedPayloadTooLarge extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1007;\n /** The maximum upload size of the environment, in bytes */\n declare readonly max_size: number;\n constructor(serviceError: Record<string, unknown>) {\n super(1007, 413, 'Upload payload size exceeds the maximum allowed', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class NoFileUploaded extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1008;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1008, 422, 'No file uploaded', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class UploadAborted extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1009;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1009, 422, 'Upload aborted', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class ImportNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1022;\n declare readonly import_id: ImportId;\n constructor(serviceError: Record<string, unknown>) {\n super(1022, 404, 'Import not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class ConversionNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1023;\n declare readonly conversion_id: ConversionId;\n constructor(serviceError: Record<string, unknown>) {\n super(1023, 404, 'Conversion not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class LogsUnavailable extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1019;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1019, 502, 'Logs unavailable', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class UploadTaskNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1010;\n declare readonly upload_task_id: UploadTaskId;\n constructor(serviceError: Record<string, unknown>) {\n super(1010, 404, 'Upload task not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class ConversionTaskNotFound extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1015;\n declare readonly conversion_task_id: ConversionTaskId;\n constructor(serviceError: Record<string, unknown>) {\n super(1015, 404, 'Conversion task not found', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidGuestToken extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1016;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1016, 403, 'You are not allowed to use this guest token for this session', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class Unauthorized extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1005;\n declare readonly session_type: SessionType;\n constructor(serviceError: Record<string, unknown>) {\n super(1005, 401, 'Invalid or expired token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class MissingAuthorizationHeader extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1011;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1011, 401, 'Missing api key or user token', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class InvalidApiKey extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1012;\n\n constructor(serviceError: Record<string, unknown>) {\n super(1012, 401, 'Invalid api key', serviceError);\n Object.assign(this, serviceError);\n }\n}\nexport class TooManyRequests extends ServiceErrorResponse {\n static readonly ERROR_CODE = 1021;\n /** The class of requests whose budget the caller or its environment spent, e.g. read or job */\n declare readonly rate_limit_class: string;\n /** The seconds to wait before the request would be accepted, as Retry-After tells it */\n declare readonly retry_after: number;\n constructor(serviceError: Record<string, unknown>) {\n super(1021, 429, 'Too many requests', serviceError);\n Object.assign(this, serviceError);\n }\n}\n/** The errors the spec declares. */\nexport type DeclaredError =\n | InvalidAuthorization\n | InsufficientSecurityScope\n | InsufficientPermissions\n | InvalidTokenTtl\n | InvalidParameter\n | MemberAccessesDiffer\n | InvalidMaterial\n | InvalidRequest\n | UploadedPayloadTooLarge\n | NoFileUploaded\n | UploadAborted\n | ImportNotFound\n | ConversionNotFound\n | LogsUnavailable\n | UploadTaskNotFound\n | ConversionTaskNotFound\n | InvalidGuestToken\n | Unauthorized\n | MissingAuthorizationHeader\n | InvalidApiKey\n | TooManyRequests;\nconst declaredErrors: Record<number, new (serviceError: Record<string, unknown>) => DeclaredError> = {\n 1003: InvalidAuthorization,\n 1004: InsufficientSecurityScope,\n 1002: InsufficientPermissions,\n 1017: InvalidTokenTtl,\n 1: InvalidParameter,\n 1020: MemberAccessesDiffer,\n 1013: InvalidMaterial,\n 1014: InvalidRequest,\n 1007: UploadedPayloadTooLarge,\n 1008: NoFileUploaded,\n 1009: UploadAborted,\n 1022: ImportNotFound,\n 1023: ConversionNotFound,\n 1019: LogsUnavailable,\n 1010: UploadTaskNotFound,\n 1015: ConversionTaskNotFound,\n 1016: InvalidGuestToken,\n 1005: Unauthorized,\n 1011: MissingAuthorizationHeader,\n 1012: InvalidApiKey,\n 1021: TooManyRequests,\n};\n/**\n * The error declared in the spec that a request failed with, or undefined: read from the error a function of this\n * client rejected with, e.g. `if (errorOf(error) instanceof FolderNotFound)`.\n */\nexport function errorOf(error: unknown): DeclaredError | undefined {\n if (Object.values(declaredErrors).some(declared => error instanceof declared)) {\n return error as DeclaredError;\n }\n const failure = error as { serviceError?: unknown; response?: { data?: { error?: unknown } } } | null | undefined;\n const serviceError = (failure?.serviceError ?? failure?.response?.data?.error) as\n Record<string, unknown> | undefined;\n const errorCode = serviceError?.errorCode;\n const declared = typeof errorCode === 'number' ? declaredErrors[errorCode] : undefined;\n return declared ? new declared(serviceError!) : undefined;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieve a list of all users in the current application.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listUsers(\n {\n offset = 0,\n limit = 10,\n }: {\n offset?: number;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<User>, { link?: string; 'x-total-count'?: number }>> {\n return axiosInstance({\n method: 'get',\n url: '/users',\n params: {\n offset: offset,\n limit: limit,\n },\n headers: headers,\n }).then(response => {\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<ResponseWithHeaders<Array<User>, { link?: string; 'x-total-count'?: number }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Registers the target user in the current application.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function registerUser(\n {\n username,\n }: {\n /** Used only for debug purposes */\n username: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<User> {\n return axiosInstance({\n method: 'post',\n url: '/users',\n data: {\n username: username,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the current user.\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getCurrentUser(headers?: RawAxiosRequestHeaders | AxiosRequestHeaders): AxiosPromise<User> {\n return axiosInstance({\n method: 'get',\n url: '/users/me',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the target user.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getUser(\n {\n user_id,\n }: {\n user_id: UserId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<User> {\n return axiosInstance({\n method: 'get',\n url: '/users/' + encodeURIComponent(user_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates the details of the target user.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateUser(\n {\n user_id,\n username,\n }: {\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<User> {\n return axiosInstance({\n method: 'patch',\n url: '/users/' + encodeURIComponent(user_id) + '',\n data: {\n username: username,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes a registered user of the environment. What it created stays, naming it under a placeholder username; its\n * accesses and the public access tokens impersonating it are deleted, and its user tokens are refused from then on.\n * A user cannot delete itself, nor an API key's user or an account user be deleted.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteUser(\n {\n user_id,\n }: {\n user_id: UserId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/users/' + encodeURIComponent(user_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Generates a user token. This user token identifies the user when making a request, with the scope it was generated\n * with, until it expires. It cannot be revoked.\n * @throws {InvalidTokenTtl}\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function generateUserToken(\n {\n user_id,\n scope,\n ttl = '1h',\n }: {\n user_id: UserId;\n /** Token permission scope */\n scope: 'read' | 'write' | 'manage';\n /**\n * Time to live, from 1 minute to 14 days, e.g. `30m`, `1h`, `7d` or `1h 30m`, a number alone counting\n * seconds\n */\n ttl?: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Token> {\n return axiosInstance({\n method: 'post',\n url: '/users/' + encodeURIComponent(user_id) + '/tokens',\n data: {\n scope: scope,\n ttl: ttl,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all user groups.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listUserGroups(\n {\n user_id,\n }: {\n user_id: UserId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Array<Group>> {\n return axiosInstance({\n method: 'get',\n url: '/users/' + encodeURIComponent(user_id) + '/groups',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a new user group.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {MemberAccessesDiffer}\n * @throws {TooManyRequests}\n */\nexport function createGroup(\n {\n name,\n description,\n members,\n }: {\n name: string;\n description?: string;\n members: Array<GroupMemberInput>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Group> {\n return axiosInstance({\n method: 'post',\n url: '/groups',\n data: {\n name: name,\n description: description,\n members: members,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets a group details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getGroup(\n {\n group_id,\n }: {\n group_id: GroupId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Group> {\n return axiosInstance({\n method: 'get',\n url: '/groups/' + encodeURIComponent(group_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates a group details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateGroup(\n {\n group_id,\n name,\n description,\n }: {\n group_id: GroupId;\n name: string;\n description: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Group> {\n return axiosInstance({\n method: 'patch',\n url: '/groups/' + encodeURIComponent(group_id) + '',\n data: {\n name: name,\n description: description,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes a group and all its access rights.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteGroup(\n {\n group_id,\n }: {\n group_id: GroupId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/groups/' + encodeURIComponent(group_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Grants member access to the group.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {MemberAccessesDiffer}\n * @throws {TooManyRequests}\n */\nexport function grantMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id,\n group_access,\n folder_access,\n }: {\n group_id: GroupId;\n member_type: 'users' | 'groups';\n member_id: string;\n group_access: 'read' | 'write' | 'manage';\n folder_access: 'read' | 'write' | 'manage';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url:\n '/groups/' +\n encodeURIComponent(group_id) +\n '/members/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n data: {\n group_access: group_access,\n folder_access: folder_access,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Revoke requested user access to group.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function revokeMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id,\n }: {\n group_id: GroupId;\n member_type: 'users' | 'groups';\n member_id: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url:\n '/groups/' +\n encodeURIComponent(group_id) +\n '/members/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the folders the caller can read, at every depth, those in the trash left out.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolders(\n {\n offset = 0,\n limit = 10,\n }: {\n offset?: number;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<FolderList, { link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/folders',\n params: {\n offset: offset,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<FolderList, { link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createFolder(\n {\n name,\n subfolders,\n }: {\n /** Folder name */\n name: string;\n subfolders?: Array<FolderInput>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'post',\n url: '/folders',\n data: {\n name: name,\n subfolders: subfolders,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the requested folder details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getFolder(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates the folder details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateFolder(\n {\n folder_id,\n name,\n }: {\n folder_id: FolderId;\n /** Folder name */\n name: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '',\n data: {\n name: name,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes the requested folder. The target folder must be empty.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteFolder(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/folders/' + encodeURIComponent(folder_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * List member access to the targeted folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderAccesses(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n users?: Array<{\n user_id: UserId;\n /** Used only for debug purposes */\n username: string;\n access: 'read' | 'write' | 'manage';\n }>;\n groups?: Array<{\n group_id: GroupId;\n name: string;\n access: 'read' | 'write' | 'manage';\n }>;\n}> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/access',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Grants member access to the targeted folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function grantMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id,\n access,\n }: {\n folder_id: FolderId;\n member_type: 'users' | 'groups';\n member_id: string;\n access: 'read' | 'write' | 'manage';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url:\n '/folders/' +\n encodeURIComponent(folder_id) +\n '/access/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n data: {\n access: access,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Revokes member access to a target folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function revokeMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id,\n }: {\n folder_id: FolderId;\n member_type: 'users' | 'groups';\n member_id: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url:\n '/folders/' +\n encodeURIComponent(folder_id) +\n '/access/' +\n encodeURIComponent(member_type) +\n '/' +\n encodeURIComponent(member_id) +\n '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a subfolder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createSubfolder(\n {\n folder_id,\n name,\n subfolders,\n }: {\n folder_id: FolderId;\n /** Folder name */\n name: string;\n subfolders?: Array<FolderInput>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Folder> {\n return axiosInstance({\n method: 'post',\n url: '/folders/' + encodeURIComponent(folder_id) + '/folders',\n data: {\n name: name,\n subfolders: subfolders,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all subfolders of requested folder. This request can be recursive.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderSubfolders(\n {\n folder_id,\n }: {\n folder_id: FolderId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Array<Folder>> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/folders',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Moves folders, with their subtrees, into the specified folder, adding them to its subfolders. Moving them under a\n * folder the caller manages needs the caller to manage them too: a folder's permissions carry down, so the move would\n * otherwise give the caller more than it holds.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function moveFolders(\n {\n folder_id,\n folder_ids,\n }: {\n folder_id: FolderId;\n /** The folders to move */\n folder_ids: Array<FolderId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '/folders',\n data: {\n folder_ids: folder_ids,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `createImport` (`POST /imports?folder_id=\u2026`), which takes the same body, its `source_files`\n * named `remote_files`, and answers the import's `import_id`.\n * Uploads the specified source file(s). The accepted extensions, their conversion type and\n * per-converter options are listed by `GET /source-files/supported-formats` and documented at\n * https://docs.3dverse.com/references/supported-file-formats.\n * ### Importing an asset package\n * With the `package` conversion pipeline, the source files are already converted assets, imported as they are,\n * submitted as zip archives (asset packages) or as the asset files themselves. The asset files are named\n * `<part>.<asset_type>[.<sub resource>].<uuid>`, where the part is `desc` (the asset description, in JSON),\n * `payload`, `graph` or `layout`, for example `desc.mesh.<uuid>`, `payload.mesh.<uuid>` or\n * `payload.texture.mip0.<uuid>`. The assets they reference must be submitted along with them, unless they already\n * exist. The submitted assets that already exist are overwritten only if they are listed in an `overwrite.json`\n * file, a JSON array of asset ids submitted along with them, the others being left as they are; without it, the\n * import fails if one of them already exists. Overwriting an asset requires the `update-asset` and `delete-asset`\n * permissions on it, referencing one the `read-asset` permission. A file named as an asset file but which is not a valid one fails the\n * import, the files named otherwise being ignored. The payloads of shaders, scripts, animation sequences and\n * animation graphs, compiled code which only a library builds, are ignored.\n * The import runs asynchronously, as a data pipeline, the returned `upload_task_id` being its id. It is rejected\n * (`quota_exceeded`) once its files are unpacked if it would convert more source files than the plan of the\n * environment's organization has left this month, or store more than its storage has left, the organization's\n * conversions and assets counted as activity-monitor measures them.\n * @throws {InvalidMaterial}\n * @throws {InvalidRequest}\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {UploadedPayloadTooLarge}\n * @throws {NoFileUploaded}\n * @throws {UploadAborted}\n * @throws {TooManyRequests}\n */\nexport function uploadSourceFiles(\n {\n folder_id,\n files,\n conversion_pipeline = 'auto-detect',\n source_files,\n options,\n }: {\n folder_id: FolderId;\n /** The source files to upload, each with its file name. Files are accepted under any field name. */\n files?: Array<Blob>;\n conversion_pipeline: ConversionPipeline;\n /**\n * Instead of submitting a source file as a multipart/form-data field, you can also submit a URL to a source file.\n * This is useful if you want to upload a source file that is already available on a storage service,\n * or upload a source file that is too large to upload via the API.\n */\n source_files?: Array<{\n /** The name of the source file. */\n name: string;\n /** The URL of the source file, it must be publicly accessible, unless an Authorization header is provided. */\n url: string;\n /** Optional Authorization header value used for the download request. */\n authorization?: string;\n }>;\n /** Options for the conversion pipeline. For future use. */\n options?: {\n [_additionalproperties_: string]: any;\n };\n },\n onUploadProgress?: (progressEvent: AxiosProgressEvent) => void,\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<\n {\n upload_task_id?: UploadTaskId;\n },\n { deprecation?: string; link?: string }\n >\n> {\n return axiosInstance({\n method: 'post',\n url: '/folders/' + encodeURIComponent(folder_id) + '/source-files',\n data: multipartBody(\n {\n conversion_pipeline: conversion_pipeline,\n source_files: source_files,\n options: options,\n },\n {\n files: files,\n },\n ),\n onUploadProgress: onUploadProgress,\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...plainHeaders(headers),\n },\n }) as Promise<\n ResponseWithHeaders<\n {\n upload_task_id?: UploadTaskId;\n },\n { deprecation?: string; link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all source files in a folder.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderSourceFiles(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filters,\n }: {\n folder_id: FolderId;\n offset?: number;\n limit?: number;\n filters?: {\n source_file_name?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<Array<SourceFile>, { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }>\n> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/source-files',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(\n response.headers['x-source-files-count'] as string,\n ) as number;\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<\n ResponseWithHeaders<\n Array<SourceFile>,\n { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Moves source files into the specified folder, adding them to its source files.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function moveSourceFiles(\n {\n folder_id,\n source_file_ids,\n }: {\n folder_id: FolderId;\n /** The source files to move */\n source_file_ids: Array<SourceFileId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '/source-files',\n data: {\n source_file_ids: source_file_ids,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**, with no replacement: an import names the folder it stored its assets into, which they may have\n * left since. `listImports` lists the environment's imports, or a user's.\n * Lists the upload tasks importing into a folder. The caller needs to be able to list the folder's upload tasks\n * only: a user granted the folder lists them, without the environment's permission `listUploadTasks` needs.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderUploadTasks(\n {\n folder_id,\n offset = 0,\n limit = 10,\n }: {\n folder_id: FolderId;\n offset?: number;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/upload-tasks',\n params: {\n offset: offset,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists assets.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listFolderAssets(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filters,\n recursive = false,\n }: {\n folder_id: FolderId;\n offset?: number;\n limit?: number;\n filters?: AssetListFilters;\n recursive?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<AssetsByContainer, { 'x-assets-count': AssetsCount; link?: string; 'x-total-count'?: number }>\n> {\n return axiosInstance({\n method: 'get',\n url: '/folders/' + encodeURIComponent(folder_id) + '/assets',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n recursive: recursive,\n },\n headers: headers,\n }).then(response => {\n response.headers['x-assets-count'] = JSON.parse(response.headers['x-assets-count'] as string) as AssetsCount;\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<\n ResponseWithHeaders<\n AssetsByContainer,\n { 'x-assets-count': AssetsCount; link?: string; 'x-total-count'?: number }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a new asset: empty, of a type and a name, or from its description, of a type asset-store creates from\n * one (a material, a cubemap, a script...), or as a copy of another asset, with its dependencies up to a depth.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createAsset(\n {\n folder_id,\n asset_creation_options,\n }: {\n folder_id: FolderId;\n asset_creation_options: StrictUnion<\n | {\n asset_type: AssetTypeCreatable;\n /** The asset's metadata, as its type declares them, none by default */\n meta?: AssetMeta;\n name: string;\n }\n | AssetCreationFromDescriptionInput\n | {\n asset_type: AssetType;\n copy_from_asset_id: AssetId;\n new_asset_name?: string;\n /** Provide options to recursively duplicate asset dependencies. */\n options?: {\n /** Limits the duplication to the specified asset types */\n asset_types?: Array<AssetType>;\n /** Limits the depth level of the duplication process. */\n max_depth?: number;\n };\n }\n >;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<\n | {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n /** Map of source asset ids to copied asset ids */\n source_to_copy_asset_id_map?: {\n [source_asset_id: string]: AssetId;\n };\n }\n | {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n asset_id: string;\n name: string;\n source_to_copy_asset_id_map?: {\n [_additionalproperties_: string]: AssetId;\n };\n duplication_request_id: DuplicationRequestId;\n }\n> {\n return axiosInstance({\n method: 'post',\n url: '/folders/' + encodeURIComponent(folder_id) + '/assets',\n data: asset_creation_options,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Moves assets into the specified folder, adding them to its assets. Moving them into a folder the caller manages\n * needs the caller to manage them too: an asset has its folder's permissions, so the move would otherwise give the\n * caller more than it holds.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function moveAssets(\n {\n folder_id,\n asset_ids,\n }: {\n folder_id: FolderId;\n /** The assets to move */\n asset_ids: Array<AssetId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/folders/' + encodeURIComponent(folder_id) + '/assets',\n data: {\n asset_ids: asset_ids,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * A duplication request of the caller, with its copies. A duplication answered with a 202 is done once its request\n * is `completed`, or `failed` with its error. A completed request stays readable for 10 minutes, a failed one for 3\n * hours: then it answers 404.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getDuplicationRequest(\n {\n duplication_request_id,\n }: {\n duplication_request_id: DuplicationRequestId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<DuplicationRequest> {\n return axiosInstance({\n method: 'get',\n url: '/duplication-requests/' + encodeURIComponent(duplication_request_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the source files of the caller's environment, at every depth. The caller needs to be able to list them on\n * the environment's root folder: one granted some folders only lists theirs with\n * `GET /folders/{folder_id}/source-files`.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listSourceFiles(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: {\n source_file_name?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<Array<SourceFile>, { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }>\n> {\n return axiosInstance({\n method: 'get',\n url: '/source-files',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(\n response.headers['x-source-files-count'] as string,\n ) as number;\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<\n ResponseWithHeaders<\n Array<SourceFile>,\n { 'x-source-files-count': number; link?: string; 'x-total-count'?: number }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes the target source files. Deleting a source file is permanent.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteSourceFiles(\n {\n source_file_ids,\n delete_assets = false,\n }: {\n /** List of source files to delete */\n source_file_ids: Array<SourceFileId>;\n /** If true, delete the assets associated with the source files as well. */\n delete_assets?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/source-files',\n data: {\n source_file_ids: source_file_ids,\n delete_assets: delete_assets,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Returns the source file formats accepted for conversion, grouped by conversion type, with the per-converter breakdown and each converter's options schema.\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSupportedSourceFileFormats(\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SupportedSourceFileFormats> {\n return axiosInstance({\n method: 'get',\n url: '/source-files/supported-formats',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get source file details.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSourceFile(\n {\n source_file_id,\n }: {\n source_file_id: SourceFileId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SourceFile> {\n return axiosInstance({\n method: 'get',\n url: '/source-files/' + encodeURIComponent(source_file_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates details for a specific source file.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateSourceFile(\n {\n source_file_id,\n name,\n }: {\n source_file_id: SourceFileId;\n /** Source file display name */\n name: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SourceFile> {\n return axiosInstance({\n method: 'patch',\n url: '/source-files/' + encodeURIComponent(source_file_id) + '',\n data: {\n name: name,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all assets generated from the requested source file.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listSourceFileAssets(\n {\n source_file_id,\n }: {\n source_file_id: SourceFileId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetsByContainer> {\n return axiosInstance({\n method: 'get',\n url: '/source-files/' + encodeURIComponent(source_file_id) + '/assets',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Imports files into a folder: source files, converted into assets, or asset packages, imported as they are. The\n * files are sent in a multipart body, or given by URL, for the import to download them: in a JSON body when none is\n * sent. An import may also generate an asset from others, or synchronize a library, in a JSON body (below). The accepted extensions, their\n * conversion type and per-converter options are listed by `GET /source-files/supported-formats` and documented at\n * https://docs.3dverse.com/references/supported-file-formats.\n * The folder is given in the query, so that a request the folder's permission refuses is refused before any of its\n * files is received. The import stores its assets into it.\n * ### Importing an asset package\n * With the `package` conversion pipeline, the files are already converted assets, imported as they are, submitted\n * as zip archives (asset packages) or as the asset files themselves. The asset files are named\n * `<part>.<asset_type>[.<sub resource>].<uuid>`, where the part is `desc` (the asset description, in JSON),\n * `payload`, `graph` or `layout`, for example `desc.mesh.<uuid>`, `payload.mesh.<uuid>` or\n * `payload.texture.mip0.<uuid>`. The assets they reference must be submitted along with them, unless they already\n * exist. The submitted assets that already exist are overwritten only if they are listed in an `overwrite.json`\n * file, a JSON array of asset ids submitted along with them, the others being left as they are; without it, the\n * import fails if one of them already exists. Overwriting an asset requires the `update-asset` and `delete-asset`\n * permissions on it, referencing one the `read-asset` permission. A file named as an asset file but which is not a\n * valid one fails the import, the files named otherwise being ignored. The payloads of shaders, scripts, animation\n * sequences and animation graphs, compiled code which only a library builds, are ignored.\n * ### Generating an asset\n * A collision geometry or a navmesh is generated from meshes by a data pipeline of its type, which the JSON body\n * names along with the asset's type and name, and the options of the data pipeline's baker: the meshes, by\n * `mesh_ids`, with the submeshes of each, and what is baked, e.g. the shape of the collision geometry, or the Recast\n * settings of the navmesh, each left out taking its default. The meshes must exist and be readable by the caller.\n * ### Synchronizing a library\n * A library is synchronized from its repository by the `library-synchronization` data pipeline, which the JSON body\n * names along with the library, as its `source`, the folder being the library's. Its one conversion fetches the\n * repository at `options.ref` (a branch, tag or commit, the library's branch when left out) and builds it with\n * `options.conversion_options`, such as `rebuild` and `debug`. Once built, the import waits up to an hour to be\n * confirmed or cancelled (`updateImport`) before its assets are stored: its status is `pending-confirmation`\n * meanwhile, and the build's report is its conversion's metadata file `report.json`\n * (`getConversionMetadata`). A single import synchronizes a library at a time.\n * The import runs asynchronously, as a data pipeline, `getImport` telling its progress. It is rejected\n * (`quota_exceeded`) once its files are unpacked if it would convert more source files than the plan of the\n * environment's organization has left this month, or store more than its storage has left, the organization's\n * conversions and assets counted as activity-monitor measures them.\n * @throws {InvalidMaterial}\n * @throws {InvalidRequest}\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {UploadedPayloadTooLarge}\n * @throws {NoFileUploaded}\n * @throws {UploadAborted}\n * @throws {TooManyRequests}\n */\nexport function createImport(\n {\n folder_id,\n body,\n }: {\n folder_id: FolderId;\n body:\n | StrictUnion<\n | {\n conversion_pipeline: ConversionPipeline;\n /** The files the import downloads */\n remote_files: Array<RemoteFile>;\n /** Options for the conversion pipeline. For future use. */\n options?: {\n [_additionalproperties_: string]: any;\n };\n }\n | ((\n | {\n asset_type: 'collision_geometry';\n data_pipeline: 'collision-geometry-baker';\n /** What a collision geometry is baked from: submeshes of meshes, merged into one geometry. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** The shape baked */\n collision_geometry_type: 0 | 1;\n /** The meshes the geometry is baked from */\n mesh_ids: Array<string>;\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n };\n }\n | {\n asset_type: 'navmesh';\n data_pipeline: 'navmesh-baker';\n /** What a navmesh is baked from, submeshes of meshes, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. */\n options: {\n /** Traversal cost multiplier of each area, by area id: 1 for an area left out */\n area_costs?: Array<number>;\n /** Border around a tile, in voxels */\n border_size?: number;\n /** Build a bounding volume tree for each tile */\n build_bv_tree?: boolean;\n /** Build the detail mesh of each tile */\n build_detail_mesh?: boolean;\n /** Height of a voxel */\n cell_height?: number;\n /** Size of a voxel on the xz-plane */\n cell_size?: number;\n /** Distance between the samples of the detail mesh */\n detail_sample_dist?: number;\n /** Furthest the detail mesh strays from the heightfield */\n detail_sample_max_error?: number;\n /** Longest edge along the mesh border, in voxels, 0 for none */\n max_edge_len?: number;\n /** Furthest a simplified contour strays from the raw one, in voxels */\n max_simplification_error?: number;\n /** Most vertices a polygon has */\n max_verts_per_poly?: number;\n /** Area under which a region is merged into a larger one, in voxels */\n merge_region_area?: number;\n /** The meshes the navmesh is baked from */\n mesh_ids: Array<string>;\n /** Area of the smallest region kept, in voxels */\n min_region_area?: number;\n /** How the walkable area is partitioned into regions */\n partition_type?: 'watershed' | 'monotone' | 'layers';\n /** For each mesh of mesh_ids, at the same index, the submeshes baked */\n submesh_indices_per_mesh: Array<Array<number>>;\n /** Size of a tile, in voxels */\n tile_size?: number;\n /** Height of a step an agent climbs, in voxels */\n walkable_climb?: number;\n /** Height an agent needs, in voxels */\n walkable_height?: number;\n /** Radius of an agent, in voxels */\n walkable_radius?: number;\n /** Steepest slope an agent walks, in degrees */\n walkable_slope_angle?: number;\n };\n }\n ) & {\n /** The name of the asset generated */\n name: string;\n })\n | {\n data_pipeline: 'library-synchronization';\n source: ImportSource;\n /** How the library is built */\n options?: {\n /** The branch, tag or commit of the library's repository built, its branch when left out */\n ref?: string;\n /** The build's options, such as `rebuild` and `debug` */\n conversion_options?: {\n [_additionalproperties_: string]: any;\n };\n };\n }\n >\n | {\n files?: Array<Blob>;\n conversion_pipeline: ConversionPipeline;\n remote_files?: Array<RemoteFile>;\n options?: {\n [_additionalproperties_: string]: any;\n };\n };\n },\n onUploadProgress?: (progressEvent: AxiosProgressEvent) => void,\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n import_id: ImportId;\n}> {\n return axiosInstance({\n method: 'post',\n url: '/imports',\n params: {\n folder_id: folder_id,\n },\n data: jsonOrMultipartBodyOf(body),\n onUploadProgress: onUploadProgress,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the imports of the caller's environment, or those of a user, with `filters`. The caller needs to be able to\n * list the environment's imports, and those of the user filtered on.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listImports(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: {\n /** Only the imports of this user */\n user_id?: UserId;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<Import>, { link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/imports',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<Import>, { link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets an import, with its progress and each of its conversions.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ImportNotFound}\n * @throws {TooManyRequests}\n */\nexport function getImport(\n {\n import_id,\n }: {\n import_id: ImportId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Import> {\n return axiosInstance({\n method: 'get',\n url: '/imports/' + encodeURIComponent(import_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Confirms or cancels a library synchronization. Once built, it waits up to an hour to be confirmed before its\n * assets are stored, its status `pending-confirmation`, past which it is cancelled: `confirmed`, its assets are\n * stored as built; `cancelled`, nothing is, its build stopped if it still runs. Given again, the same state is\n * accepted. The caller also needs to be able to synchronize the library: deciding what it stores is as much as\n * starting it.\n * It answers once data-pipeline-scheduler took the change, without the import: its status follows asynchronously,\n * as `getImport` tells it. Cancelling an import other than a library synchronization is not supported yet.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ImportNotFound}\n * @throws {TooManyRequests}\n */\nexport function updateImport(\n {\n import_id,\n state,\n }: {\n import_id: ImportId;\n state: 'confirmed' | 'cancelled';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/imports/' + encodeURIComponent(import_id) + '',\n data: {\n state: state,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the lines a conversion logged, the oldest first, while they are kept: those logged from its creation until a\n * minute after it finished, or until now while it runs, unless asked otherwise. When there are more lines than\n * answered, the `link` header gives the next ones (`rel=\"next\"`). To follow a conversion still running, ask again\n * with `from` just after the timestamp of the last line received.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionNotFound}\n * @throws {TooManyRequests}\n * @throws {LogsUnavailable}\n */\nexport function getConversionLogs(\n {\n conversion_id,\n from,\n to,\n limit,\n }: {\n conversion_id: ConversionId;\n from?: string;\n to?: string;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/conversions/' + encodeURIComponent(conversion_id) + '/logs',\n params: {\n from: from,\n to: to,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets a metadata file a conversion produced, along with its assets, such as the properties an IFC file's elements\n * carry. The files are kept for 24 hours after the conversion, then deleted.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionNotFound}\n * @throws {TooManyRequests}\n */\nexport function getConversionMetadata<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n conversion_id,\n filename,\n }: {\n conversion_id: ConversionId;\n filename: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url: '/conversions/' + encodeURIComponent(conversion_id) + '/metadata/' + encodeURIComponent(filename) + '',\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `listImports` (`GET /imports`), which takes the same filters.\n * Lists the upload tasks of the caller's environment, or those of a user, with `filters`. These upload tasks relate\n * to uploaded source files. The caller needs to be able to list the environment's upload tasks, and those of the\n * user filtered on. Those of a folder are listed with `listFolderUploadTasks`.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listUploadTasks(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: {\n /** Only the upload tasks of this user */\n user_id?: UserId;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/upload-tasks',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<UploadTask>, { link?: string; deprecation?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `getImport` (`GET /imports/{import_id}`), the import's id being the upload task's.\n * Gets information related to an upload task. This upload task relates to uploaded source files.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {UploadTaskNotFound}\n * @throws {TooManyRequests}\n */\nexport function getUploadTask(\n {\n upload_task_id,\n }: {\n upload_task_id: UploadTaskId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<UploadTask, { deprecation?: string; link?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/upload-tasks/' + encodeURIComponent(upload_task_id) + '',\n headers: headers,\n }) as Promise<ResponseWithHeaders<UploadTask, { deprecation?: string; link?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `getConversionMetadata` (`GET /conversions/{conversion_id}/metadata/{filename}`), the\n * conversion's id being the conversion task's.\n * Gets metadata related to a conversion task. This metadata is produced by the conversion task, and kept for 24\n * hours.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionTaskNotFound}\n * @throws {TooManyRequests}\n */\nexport function getConversionTaskMetadata<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n conversion_task_id,\n filename,\n }: {\n conversion_task_id: ConversionTaskId;\n filename: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): Promise<\n ResponseWithHeaders<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never,\n { deprecation?: string; link?: string }\n >\n> {\n return axiosInstance({\n method: 'get',\n url:\n '/conversion-tasks/' +\n encodeURIComponent(conversion_task_id) +\n '/metadata/' +\n encodeURIComponent(filename) +\n '',\n headers: headers,\n responseType: responseType || 'arraybuffer',\n }) as Promise<\n ResponseWithHeaders<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never,\n { deprecation?: string; link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * **Deprecated**: use `getConversionLogs` (`GET /conversions/{conversion_id}/logs`), the conversion's id being the\n * conversion task's.\n * Gets the lines a conversion task logged, the oldest first, while they are kept: those logged from its creation until\n * a minute after it finished, or until now while it runs, unless asked otherwise. When there are more lines than\n * answered, the `link` header gives the next ones (`rel=\"next\"`). To follow a conversion task still running, ask\n * again with `from` just after the timestamp of the last line received.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {ConversionTaskNotFound}\n * @throws {TooManyRequests}\n * @throws {LogsUnavailable}\n */\nexport function getConversionTaskLogs(\n {\n conversion_task_id,\n from,\n to,\n limit,\n }: {\n conversion_task_id: ConversionTaskId;\n from?: string;\n to?: string;\n limit?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string; deprecation?: string }>> {\n return axiosInstance({\n method: 'get',\n url: '/conversion-tasks/' + encodeURIComponent(conversion_task_id) + '/logs',\n params: {\n from: from,\n to: to,\n limit: limit,\n },\n headers: headers,\n }) as Promise<ResponseWithHeaders<Array<ConversionLogLine>, { link?: string; deprecation?: string }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists the assets of the caller's environment, at every depth, grouped by type, and with\n * `filters[include_public_assets]` those shared with the platform from any environment too, as asset pickers list\n * them. Filters by types and by name (a uuid, or a case-insensitive substring).\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listAssets(\n {\n offset = 0,\n limit = 10,\n filters,\n }: {\n offset?: number;\n limit?: number;\n filters?: EnvironmentAssetListFilters;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<ResponseWithHeaders<AssetsByContainer, { link?: string; 'x-total-count'?: number }>> {\n return axiosInstance({\n method: 'get',\n url: '/assets',\n params: {\n offset: offset,\n limit: limit,\n filters: filters,\n },\n headers: headers,\n }).then(response => {\n if ('x-total-count' in response.headers) {\n response.headers['x-total-count'] = JSON.parse(response.headers['x-total-count'] as string) as number;\n }\n return response;\n }) as Promise<ResponseWithHeaders<AssetsByContainer, { link?: string; 'x-total-count'?: number }>>;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Batch delete assets. You **MUST NOT** reference assets.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteAssets(\n {\n asset_ids,\n }: {\n asset_ids: Array<AssetId>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/assets',\n data: asset_ids,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes the asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteAsset(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Renames the asset, or changes its metadata, what the tools made of it, e.g. a shader's or a script's kind: merged\n * into them, a key set to null removed, the others kept, as its type declares them. What the body leaves out is kept.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateAsset(\n {\n asset_container,\n asset_id,\n name,\n meta,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n name?: string;\n meta?: AssetMetaChange;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '',\n data: {\n name: name,\n meta: meta,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset details from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetDetails(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetDetails> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/details',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset dependencies from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listAssetDependencies(\n {\n asset_container,\n asset_id,\n offset = 0,\n limit = 10,\n depth = 'all',\n filters,\n properties,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n offset?: number;\n limit?: number;\n depth?: 'all' | 'direct' | 'all-until-self-dependent' | number;\n filters?: {\n /** Filter dependencies by types */\n with_asset_types?: Array<AssetType>;\n /** Exclude dependencies by types */\n without_asset_types?: Array<AssetType>;\n /** Filter assets by public status */\n public?: 'include' | 'exclude' | 'restrict-to';\n };\n properties?: Array<'name' | 'dependencies' | 'count' | 'public' | 'accessible' | 'payload_info'>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Number of time that the dependency is needed as indirect dependency */\n indirect_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n /** Whether the asset is accessible to the user */\n is_accessible?: boolean;\n /** Information about the asset payload */\n payload_info?: {\n /** Hash of the asset payload if it exists */\n hash?: string;\n /** The payload storage the asset's payload is on */\n storage_id?: string;\n };\n /** Direct dependencies of the asset */\n dependencies?: Array<{\n asset_id: AssetId;\n /** Number of time that the dependency is needed */\n count: number;\n }>;\n };\n }>,\n { link?: string }\n >\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/dependencies',\n params: {\n offset: offset,\n limit: limit,\n depth: depth,\n filters: filters,\n properties: properties,\n },\n headers: headers,\n }) as Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Number of time that the dependency is needed as indirect dependency */\n indirect_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n /** Whether the asset is accessible to the user */\n is_accessible?: boolean;\n /** Information about the asset payload */\n payload_info?: {\n /** Hash of the asset payload if it exists */\n hash?: string;\n /** The payload storage the asset's payload is on */\n storage_id?: string;\n };\n /** Direct dependencies of the asset */\n dependencies?: Array<{\n asset_id: AssetId;\n /** Number of time that the dependency is needed */\n count: number;\n }>;\n };\n }>,\n { link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset references from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listAssetReferences(\n {\n asset_container,\n asset_id,\n offset = 0,\n limit = 10,\n properties,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n offset?: number;\n limit?: number;\n properties?: Array<'name' | 'count' | 'public'>;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n };\n }>,\n { link?: string }\n >\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/references',\n params: {\n offset: offset,\n limit: limit,\n properties: properties,\n },\n headers: headers,\n }) as Promise<\n ResponseWithHeaders<\n Array<{\n asset_id: AssetId;\n asset_type: AssetType;\n /** Additional properties of the asset */\n properties?: {\n name?: string;\n /** Number of time that the dependency is needed as direct dependency */\n direct_count?: number;\n /** Whether the asset is public */\n is_public?: boolean;\n };\n }>,\n { link?: string }\n >\n >;\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset description from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetDescription(\n {\n asset_id,\n asset_container,\n }: {\n asset_id: AssetId;\n asset_container: AssetContainer;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetDescription> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/description',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Updates the description of the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateAssetDescription(\n {\n asset_id,\n asset_container,\n asset_description,\n }: {\n asset_id: AssetId;\n asset_container: AssetContainerEditable;\n asset_description: EditableAssetDescriptionInput;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/description',\n data: asset_description,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset payload from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetPayload<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container_with_payload,\n asset_id,\n sub_resource,\n }: {\n asset_container_with_payload: AssetContainerWithPayload;\n asset_id: AssetId;\n sub_resource?: string | 'histogram' | 'position' | 'color';\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url:\n '/assets/' +\n encodeURIComponent(asset_container_with_payload) +\n '/' +\n encodeURIComponent(asset_id) +\n '/payload',\n params: {\n sub_resource: sub_resource,\n },\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset graph from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetGraph(\n {\n asset_container_with_graph,\n asset_id,\n }: {\n asset_container_with_graph: AssetContainerWithGraph;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Unique identifier for the asset graph. */\n uuid: string;\n [_additionalproperties_: string]: any;\n}> {\n return axiosInstance({\n method: 'get',\n url:\n '/assets/' + encodeURIComponent(asset_container_with_graph) + '/' + encodeURIComponent(asset_id) + '/graph',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates or replaces asset graph for the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateAssetGraph(\n {\n asset_container_with_graph,\n asset_id,\n asset_graph,\n }: {\n asset_container_with_graph: AssetContainerWithGraph;\n asset_id: AssetId;\n asset_graph: {\n [_additionalproperties_: string]: any;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url:\n '/assets/' + encodeURIComponent(asset_container_with_graph) + '/' + encodeURIComponent(asset_id) + '/graph',\n data: asset_graph,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * The tools keeping a document of the asset, by id, each with when it last wrote it.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listAssetDocuments(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Array<AssetDocumentSummary>> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/documents',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * The document a tool keeps of the asset, as it wrote it, with the asset each of its references stands for.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetDocument(\n {\n asset_container,\n asset_id,\n tool_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n tool_id: ToolId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetDocument> {\n return axiosInstance({\n method: 'get',\n url:\n '/assets/' +\n encodeURIComponent(asset_container) +\n '/' +\n encodeURIComponent(asset_id) +\n '/documents/' +\n encodeURIComponent(tool_id) +\n '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates or replaces the document a tool keeps of the asset, in a format of its own, which names the assets it uses\n * by references of its own, with the asset each stands for (`dependencies`): each must exist, be within the asset's\n * environment or shared with it, and be readable by the caller. They cannot be deleted while the document names\n * them, though they are neither dependencies of the asset, which its description alone gives, nor references.\n * Nothing is written when one is refused. A copy of the asset takes the document as it is, its references standing\n * for the copies of the assets duplicated with it.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function putAssetDocument(\n {\n asset_container,\n asset_id,\n tool_id,\n dependencies,\n document,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n tool_id: ToolId;\n /** The asset each reference of the document stands for */\n dependencies: {\n /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */\n [_additionalproperties_: string]: string;\n };\n /** The tool's document, as it wrote it, holding no asset id but its own references */\n document: {\n [_additionalproperties_: string]: any;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetDocument> {\n return axiosInstance({\n method: 'put',\n url:\n '/assets/' +\n encodeURIComponent(asset_container) +\n '/' +\n encodeURIComponent(asset_id) +\n '/documents/' +\n encodeURIComponent(tool_id) +\n '',\n data: {\n dependencies: dependencies,\n document: document,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Deletes the document a tool keeps of the asset, and releases the assets it used for it. Deleting it again, or one\n * never written, answers the same.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteAssetDocument(\n {\n asset_container,\n asset_id,\n tool_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n tool_id: ToolId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url:\n '/assets/' +\n encodeURIComponent(asset_container) +\n '/' +\n encodeURIComponent(asset_id) +\n '/documents/' +\n encodeURIComponent(tool_id) +\n '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the edit history of the specified asset: the distinct `contributors` (so a consumer can resolve them to display names) and the chronological `timeline` of modifications.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetHistory(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Distinct contributors to the asset, with their edit counts. */\n contributors: Array<{\n user_id: string;\n contribution_count: number;\n }>;\n /** Chronological list of modifications, oldest first. */\n timeline: Array<{\n user_id: string;\n timestamp: string;\n /** The kind of modification. */\n type?: string;\n /** Modification-specific payload. */\n data?: {\n [_additionalproperties_: string]: any;\n };\n }>;\n}> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/history',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the code of the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetCode(\n {\n asset_container_with_code,\n asset_id,\n }: {\n asset_container_with_code: AssetContainerWithCode;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<string> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container_with_code) + '/' + encodeURIComponent(asset_id) + '/code',\n headers: headers,\n responseType: 'text',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Replaces the C++ code of a script, animation sequence or animation graph, once asset-compiler built it: code which\n * fails to build replaces nothing, and answers its diagnostics. A script's description is read from its code, and the\n * answer tells whether it changed; the caller must be able to read the assets it references. The build takes a few\n * seconds.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function replaceAssetCode(\n {\n asset_container_with_code,\n asset_id,\n code,\n debug = false,\n }: {\n asset_container_with_code: AssetContainerWithCode;\n asset_id: AssetId;\n /** The C++ code, built against the asset type's precompiled header, which it needs not include */\n code: string;\n /** Whether to build its debug library too, with its symbols, for the engine's developers */\n debug?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<AssetCodeBuild> {\n return axiosInstance({\n method: 'put',\n url: '/assets/' + encodeURIComponent(asset_container_with_code) + '/' + encodeURIComponent(asset_id) + '/code',\n data: {\n code: code,\n debug: debug,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Gets the asset thumbnail from the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getAssetThumbnail<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container,\n asset_id,\n size,\n default_url,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n size: 'large' | 'medium' | 'small' | 'tiny';\n default_url?: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/thumbnail',\n params: {\n size: size,\n default_url: default_url,\n },\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Assigns a thumbnail to the specified asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function setAssetThumbnail(\n {\n asset_container,\n asset_id,\n body,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n body: ArrayBuffer | ReadableStream;\n },\n contentType: 'image/jpeg' | 'image/jpg' | 'image/png',\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'put',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/thumbnail',\n data: body,\n maxRedirects: 0,\n headers: {\n 'Content-Type': contentType,\n ...plainHeaders(headers),\n },\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Packages and downloads the target asset.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function packageAsset<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container,\n asset_id,\n }: {\n asset_container: AssetContainer;\n asset_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url: '/assets/' + encodeURIComponent(asset_container) + '/' + encodeURIComponent(asset_id) + '/package',\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Downloads an asset payload in a given format. Only mesh is supported for the moment. This endpoint requires special export permission.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function exportAsset<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>(\n {\n asset_container_exportable,\n asset_id,\n format,\n scale = 1,\n sub_mesh_index,\n }: {\n asset_container_exportable: AssetContainerExportable;\n asset_id: AssetId;\n format: 'obj' | 'stl';\n scale?: number;\n sub_mesh_index?: number;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n responseType?: T,\n): AxiosPromise<\n T extends 'arraybuffer'\n ? ArrayBuffer\n : T extends 'json'\n ? object\n : T extends 'text'\n ? string\n : T extends 'stream'\n ? ReadableStream\n : never\n> {\n return axiosInstance({\n method: 'get',\n url:\n '/assets/' +\n encodeURIComponent(asset_container_exportable) +\n '/' +\n encodeURIComponent(asset_id) +\n '/exports/' +\n encodeURIComponent(format) +\n '',\n params: {\n scale: scale,\n sub_mesh_index: sub_mesh_index,\n },\n headers: headers,\n responseType: responseType || 'arraybuffer',\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get the axis aligned bounding box of the specified scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSceneAABB(\n {\n scene_id,\n }: {\n scene_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Vector3 representing the upper (x, y, z) boundary of the box. */\n max: Vector3;\n /** Vector3 representing the lower (x, y, z) boundary of the box. */\n min: Vector3;\n}> {\n return axiosInstance({\n method: 'get',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/aabb',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Create a new entity in a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createEntity(\n {\n scene_id,\n animation_controller,\n animation_sequence_controller,\n bone,\n box_geometry,\n camera,\n capsule_geometry,\n character_controller,\n collision_geometry_ref,\n constraint,\n constraint_actuator,\n culling_geometry,\n custom_lens,\n cylinder_geometry,\n debug_name,\n decal_projector,\n environment,\n joint,\n label,\n lineage,\n local_aabb,\n local_transform,\n material,\n material_ref,\n measure,\n mesh_ref,\n morph_targets,\n navmesh_ref,\n orthographic_lens,\n overrider,\n perspective_lens,\n physics_material,\n plane_geometry,\n point_cloud_ref,\n point_light,\n reflection_probe,\n rigid_body,\n scene_ref,\n script_element,\n script_map,\n shadow_caster,\n skeleton_ref,\n sound_ref,\n sphere_geometry,\n spline,\n spot_light,\n tags,\n vehicle_controller,\n volume_filter,\n volume_material_ref,\n volume_ref,\n }: {\n scene_id: AssetId;\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n /** Entity unique identifier */\n entity_id: string;\n}> {\n return axiosInstance({\n method: 'post',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities',\n data: {\n animation_controller: animation_controller,\n animation_sequence_controller: animation_sequence_controller,\n bone: bone,\n box_geometry: box_geometry,\n camera: camera,\n capsule_geometry: capsule_geometry,\n character_controller: character_controller,\n collision_geometry_ref: collision_geometry_ref,\n constraint: constraint,\n constraint_actuator: constraint_actuator,\n culling_geometry: culling_geometry,\n custom_lens: custom_lens,\n cylinder_geometry: cylinder_geometry,\n debug_name: debug_name,\n decal_projector: decal_projector,\n environment: environment,\n joint: joint,\n label: label,\n lineage: lineage,\n local_aabb: local_aabb,\n local_transform: local_transform,\n material: material,\n material_ref: material_ref,\n measure: measure,\n mesh_ref: mesh_ref,\n morph_targets: morph_targets,\n navmesh_ref: navmesh_ref,\n orthographic_lens: orthographic_lens,\n overrider: overrider,\n perspective_lens: perspective_lens,\n physics_material: physics_material,\n plane_geometry: plane_geometry,\n point_cloud_ref: point_cloud_ref,\n point_light: point_light,\n reflection_probe: reflection_probe,\n rigid_body: rigid_body,\n scene_ref: scene_ref,\n script_element: script_element,\n script_map: script_map,\n shadow_caster: shadow_caster,\n skeleton_ref: skeleton_ref,\n sound_ref: sound_ref,\n sphere_geometry: sphere_geometry,\n spline: spline,\n spot_light: spot_light,\n tags: tags,\n vehicle_controller: vehicle_controller,\n volume_filter: volume_filter,\n volume_material_ref: volume_material_ref,\n volume_ref: volume_ref,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get a specific entity from a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getEntity(\n {\n scene_id,\n entity_id,\n compute_global_transform = false,\n }: {\n scene_id: AssetId;\n entity_id: string;\n compute_global_transform?: boolean;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SceneEntity> {\n return axiosInstance({\n method: 'get',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities/' + encodeURIComponent(entity_id) + '',\n params: {\n compute_global_transform: compute_global_transform,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Update a specific entity from a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateEntity(\n {\n scene_id,\n entity_id,\n animation_controller,\n animation_sequence_controller,\n bone,\n box_geometry,\n camera,\n capsule_geometry,\n character_controller,\n collision_geometry_ref,\n constraint,\n constraint_actuator,\n culling_geometry,\n custom_lens,\n cylinder_geometry,\n debug_name,\n decal_projector,\n environment,\n joint,\n label,\n lineage,\n local_aabb,\n local_transform,\n material,\n material_ref,\n measure,\n mesh_ref,\n morph_targets,\n navmesh_ref,\n orthographic_lens,\n overrider,\n perspective_lens,\n physics_material,\n plane_geometry,\n point_cloud_ref,\n point_light,\n reflection_probe,\n rigid_body,\n scene_ref,\n script_element,\n script_map,\n shadow_caster,\n skeleton_ref,\n sound_ref,\n sphere_geometry,\n spline,\n spot_light,\n tags,\n vehicle_controller,\n volume_filter,\n volume_material_ref,\n volume_ref,\n }: {\n scene_id: AssetId;\n entity_id: string;\n /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */\n animation_controller?: {\n /** Referenced Animation Graph (UUID). */\n animationGraphRef?: string;\n /** Referenced Animation Set (UUID). */\n animationSetRef?: string;\n /** Autoplay when the session starts. */\n autoPlay?: boolean;\n /** Animation Graph input parameters in JSON format. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Entity containing the Bone component for the skeleton's root bone. */\n rootBoneEntityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable root motion extraction and application to the entity transform. */\n rootMotionEnabled?: boolean;\n };\n /** Controls playback of an Animation Sequence; assigns tracks to entities. */\n animation_sequence_controller?: {\n /** Referenced Animation Sequence (UUID). */\n animationSequenceRef?: string;\n /** Map from track UUID to assigned entity. */\n entities?: {\n /** A reference to an entity: the uuid it was created with, and the uuids of the linkers it was instanced through. */\n [_additionalproperties_: string]: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Loop playback when reaching the stop offset. */\n loop?: boolean;\n /** Playback speed multiplier. Negative values play in reverse. */\n playbackSpeed?: number;\n /** Normalized start offset [0, 1]. */\n startOffset?: number;\n /** Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point. */\n stopOffset?: number;\n };\n /** Associates this entity with a bone in a skeleton (for attachments and transforms). */\n bone?: {\n /** Zero-based index of this bone within the bound skeleton. */\n boneIndex?: number;\n };\n /** Box geometry. */\n box_geometry?: {\n /** Box dimensions (width, height, depth) in meters. */\n dimension?: Array<number>;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n };\n /** Virtual camera. */\n camera?: {\n /** Render Graph input parameters in JSON; schema defined by renderGraphRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced render graph to use for rendering from this camera. */\n renderGraphRef?: string;\n /** Index of the render target to blit/output to. -1 indicates the default target. */\n renderTargetIndex?: number;\n };\n /** Capsule geometry. */\n capsule_geometry?: {\n /** Alignment axis of the capsule: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylindrical mid-section (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the hemispherical ends (meters). */\n radius?: number;\n };\n /** Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control. */\n character_controller?: {\n /** Collision skin width (meters). */\n skinWidth?: number;\n /** Maximum walkable slope (degrees). Slopes steeper than this are not walkable. */\n slopeLimit?: number;\n /** Maximum climbable step height. Steps higher than this cannot be climbed automatically. */\n stepOffset?: number;\n };\n /** Reference to a collision geometry asset used by physics. */\n collision_geometry_ref?: {\n /** Referenced collision geometry (UUID). */\n collisionGeometryRef?: string;\n };\n /** 6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs. */\n constraint?: {\n /** Linear limit spring damping per axis (N\u00B7s/m). */\n motionLimitSpringDamping?: Array<number>;\n /** Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like). */\n motionLimitSpringStiffness?: Array<number>;\n /** Lower linear limit per axis (meters). */\n motionLowerLimit?: Array<number>;\n /** Upper linear limit per axis (meters). */\n motionUpperLimit?: Array<number>;\n /** Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited. */\n swingLimitAngle?: Array<number>;\n /** Swing limit spring damping (N\u00B7m\u00B7s/rad). */\n swingSpringDamping?: number;\n /** Swing limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n swingSpringStiffness?: number;\n /** Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360). */\n twistLimitAngle?: Array<number>;\n /** Twist limit spring damping (N\u00B7m\u00B7s/rad). */\n twistSpringDamping?: number;\n /** Twist limit spring stiffness (N\u00B7m/rad). >0 makes the limit soft. */\n twistSpringStiffness?: number;\n /** Unlock motion along/around the specified axes. */\n unlockedMotion?: number;\n };\n /** Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits. */\n constraint_actuator?: {\n /** Angular drive damping per axis (N\u00B7m\u00B7s/rad). */\n angularDamping?: Array<number>;\n /** Max angular drive torque/impulse per axis (N\u00B7m). \u22121 = unlimited. */\n angularForceLimit?: Array<number>;\n /** Angular drive stiffness per axis (N\u00B7m/rad). >0 applies spring torque toward the goal. */\n angularStiffness?: Array<number>;\n /** Target angular velocity (rad/s). */\n angularVelocity?: Array<number>;\n /** Target angular orientation. */\n goalOrientation?: Array<number>;\n /** Target linear position offset (meters). */\n goalPosition?: Array<number>;\n /** Linear drive damping per axis (N\u00B7s/m). */\n linearDamping?: Array<number>;\n /** Max linear drive force/impulse per axis (N). \u22121 = unlimited. */\n linearForceLimit?: Array<number>;\n /** Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal. */\n linearStiffness?: Array<number>;\n /** Target linear velocity (m/s). */\n linearVelocity?: Array<number>;\n /** Drive type: apply as force or as acceleration. */\n type?: (0 | 1) & number;\n };\n /** Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere). */\n culling_geometry?: {\n /** Additive: show elements inside the geometry. Subtractive: show elements outside the geometry. */\n isAdditive?: boolean;\n };\n /** Custom projection lens using an explicit projection matrix. */\n custom_lens?: {\n /** Projection matrix mapping view-space to clip-space (cs_from_vs). */\n cs_from_vs?: Array<number>;\n };\n /** Cylinder geometry. */\n cylinder_geometry?: {\n /** Alignment axis of the cylinder: 0=X, 1=Y, 2=Z. */\n axis?: (0 | 1 | 2) & number;\n /** Height of the cylinder (meters). */\n height?: number;\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the cylinder (meters). */\n radius?: number;\n };\n /** Human-readable name of the entity. */\n debug_name?: {\n /** Entity name. */\n value?: string;\n };\n /** Projects a material onto scene surfaces within the projector's box volume. */\n decal_projector?: {\n /** Z-index ordering for decal rendering; higher values render on top of lower ones. */\n zIndex?: number;\n };\n /** Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes. */\n environment?: {\n /** Diffuse irradiance cubemap used for ambient PBR lighting. */\n irradianceUUID?: string;\n /** Specular radiance cubemap (prefiltered) used for PBR reflections. */\n radianceUUID?: string;\n /** Skybox cubemap used as the scene background (no lighting effect). */\n skyboxUUID?: string;\n };\n /** Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee. */\n joint?: {\n /** Break force threshold (Newtons). */\n breakForce?: number;\n /** Break torque threshold (N\u00B7m). */\n breakTorque?: number;\n /** Entity with a Rigid Body to be constrained. */\n constrainee?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Entity acting as constrainer (rigid/static) or null to constrain to world origin. */\n constrainer?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** Enable collision between constrainer and constrainee bodies. */\n enableCollision?: boolean;\n };\n /** Displays an editor-only label in the 3D view. */\n label?: {\n /** Camera framing parameters for navigating to the label. */\n camera?: Array<number>;\n /** Label description text. */\n description?: string;\n /** Camera travel speed (meters/second). */\n speed?: number;\n /** Label title text. */\n title?: string;\n };\n /** Records the entity's lineage through linkers and parentage. */\n lineage?: {\n /** Ordinal index among siblings (editor-only). */\n ordinal?: number;\n /** UUID of this entity's parent (default is root). */\n parentUUID?: string;\n };\n /** Local-space axis-aligned bounding box. */\n local_aabb?: {\n /** Local AABB maximum corner (x,y,z). */\n max?: Array<number>;\n /** Local AABB minimum corner (x,y,z). */\n min?: Array<number>;\n };\n /** Local transform of the entity (position, orientation, scale). */\n local_transform?: {\n /** Local orientation as Euler angles (editor-only). */\n eulerOrientation?: Array<number>;\n /** Last global orientation entered by a user as Euler angles (may be invalid; editor-only). */\n globalEulerOrientation?: Array<number>;\n /** Local orientation as a quaternion. */\n orientation?: Array<number>;\n /** Local position (x, y, z) in meters. */\n position?: Array<number>;\n /** Local non-uniform scale (x, y, z). */\n scale?: Array<number>;\n };\n /** Assigns a shader to the entity's mesh and provides its input values and specialization constants. */\n material?: {\n /** Specialization constants (JSON); schema defined by shaderRef. */\n constantsJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Shader input values (JSON); schema defined by shaderRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Render both front and back faces (double-sided). */\n isDoubleSided?: boolean;\n /** Referenced shader (UUID). */\n shaderRef?: string;\n };\n /** Reference to a material to use for rendering. */\n material_ref?: {\n /** Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided. */\n faceCulling?: (0 | 1 | 2) & number;\n /** Referenced material (UUID). */\n value?: string;\n };\n /** Displays editor-only measurement annotations in the 3D view. */\n measure?: {\n /** Display color for the measurement. */\n color?: Array<number>;\n /** Measurement type to display. */\n type?: (0 | 1 | 2 | 3) & number;\n };\n /** Reference to a mesh to render (with submesh selection). */\n mesh_ref?: {\n /** Shadow casting mode for this mesh. */\n shadowCastingMode?: (0 | 1) & number;\n /** Index of the submesh within the mesh's submesh array. */\n submeshIndex?: number;\n /** Referenced mesh (UUID). */\n value?: string;\n };\n /** Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref. */\n morph_targets?: {\n /** Map from morph target name to weight (commonly 0..1). */\n weights?: {\n [_additionalproperties_: string]: number;\n };\n };\n /** Reference to a navigation mesh asset. */\n navmesh_ref?: {\n /** Referenced navmesh (UUID). */\n value?: string;\n };\n /** Orthographic projection lens with configurable zoom and depth range. */\n orthographic_lens?: {\n /** Far clipping plane distance (meters). */\n zFar?: number;\n /** Near clipping plane distance (meters). */\n zNear?: number;\n /** Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom. */\n zoomFactor?: Array<number>;\n };\n /** Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components. */\n overrider?: {\n /** Hashes of components to detach from the overridden entity. */\n componentsToDetach?: Array<number>;\n /** Mark the overridden entity as deleted in the composed scene. */\n deleter?: boolean;\n /** Target entity to override. */\n entityRef?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** Perspective projection lens with vertical field of view and near/far clipping planes. */\n perspective_lens?: {\n /** Far clipping plane distance (meters). Set to 0 for an infinite far plane. */\n farPlane?: number;\n /** Vertical field of view angle in degrees. */\n fovy?: number;\n /** Near clipping plane distance (meters). */\n nearPlane?: number;\n /** Projection center offset for stereoscopic rendering (meters). */\n offset?: Array<number>;\n };\n /** Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode. */\n physics_material?: {\n /** Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true. */\n contactVelocity?: Array<number>;\n /** Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface. */\n dynamicFriction?: number;\n /** Treat associated geometry as a trigger (generates events but no physical response). */\n isTrigger?: boolean;\n /** Enable contact modification (applies contactVelocity on collisions). */\n modifyContact?: boolean;\n /** Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface. */\n restitution?: number;\n /** Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface. */\n staticFriction?: number;\n };\n /** Infinite plane geometry. */\n plane_geometry?: {\n /** Signed distance from the origin along the plane normal (meters). */\n distance?: number;\n /** Unit normal vector of the plane (in local space). */\n normal?: Array<number>;\n };\n /** Reference to a point cloud. */\n point_cloud_ref?: {\n /** Referenced point cloud (UUID). */\n value?: string;\n };\n /** Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction. */\n point_light?: {\n /** RGB light color in linear space [0-1]. Multiplies intensity. */\n color?: Array<number>;\n /** Luminous intensity in candela (cd) for point and spot lights. Illuminance in lux (lx) when isDirectional, above the atmosphere when isSun. */\n intensity?: number;\n /** Treat this as a directional light using the entity's orientation; position is ignored. */\n isDirectional?: boolean;\n /** Use this light's direction to control the atmosphere sun direction. */\n isSun?: boolean;\n /** Distance in meters at which the inverse-square falloff is windowed to zero. 0 for no cutoff. */\n range?: number;\n };\n /** Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL). */\n reflection_probe?: {\n /** Capture far clip distance (meters). */\n farDist?: number;\n /** Capture near clip distance (meters). */\n nearDist?: number;\n /** Offset of the probe capture origin relative to the entity position (meters). */\n offset?: Array<number>;\n /** Reflection cubemap resolution (pixels per face). Higher values increase detail and cost. */\n quality?: number;\n };\n /** Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior). */\n rigid_body?: {\n /** Angular damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n angularDamping?: number;\n /** Center of mass relative to the entity's local transform (meters). */\n centerOfMass?: Array<number>;\n /** Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD. */\n collisionDetection?: (0 | 1 | 2 | 3) & number;\n /** Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic). */\n isKinematic?: boolean;\n /** Linear damping coefficient (s^-1). 0 = no damping; must be non-negative. */\n linearDamping?: number;\n /** Lock motion along/around the specified axes. */\n lockedAxis?: number;\n /** Mass (kg). A value of 0 is treated as infinite mass (static). */\n mass?: number;\n /** Maximum angular velocity (rad/s). Must be non-negative. */\n maxAngularVelocity?: number;\n /** Maximum linear velocity (m/s). Must be non-negative. */\n maxLinearVelocity?: number;\n /** Whether the rigid body is affected by gravity. */\n useGravity?: boolean;\n };\n /** Reference to a subscene (linker); used to compose scenes. */\n scene_ref?: {\n /** Maximum recursion depth when a scene references itself. */\n maxRecursionCount?: number;\n /** Referenced scene (UUID). */\n value?: string;\n };\n /** References a script and supplies its input values. */\n script_element?: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n /** Holds a set of script elements keyed by UUID. */\n script_map?: {\n /** Map of script UUID to script element. */\n elements?: {\n /** References a script and supplies its input values. */\n [_additionalproperties_: string]: {\n /** Script input values in JSON; schema defined by scriptRef. */\n dataJSON?: {\n [_additionalproperties_: string]: any;\n };\n /** Referenced script (UUID). */\n scriptRef?: string;\n };\n };\n };\n /** Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades. */\n shadow_caster?: {\n /** Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits. */\n accumulateShadowCascades?: boolean;\n /** Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning. */\n bias?: number;\n /** Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count. */\n cascadeCount?: (0 | 1 | 2 | 3 | 4) & number;\n /** Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two. */\n cascadeSplitLambda?: number;\n /** Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers. */\n farDist?: number;\n /** Shadow camera near clip distance (meters). Tighten to improve depth precision. */\n nearDist?: number;\n /** Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance. */\n quality?: (256 | 512 | 1024 | 2048 | 3072 | 4096 | 6144 | 8192) & number;\n };\n /** Reference to a skeleton asset for skinning and animation. */\n skeleton_ref?: {\n /** Referenced skeleton (UUID). */\n value?: string;\n };\n /** Reference to a sound asset with playback and spatialization controls. */\n sound_ref?: {\n /** Distance attenuation model. */\n attenuationModel?: (0 | 1 | 2 | 3) & number;\n /** Rolloff factor for distance attenuation. */\n attenuationRolloffFactor?: number;\n /** Autoplay when the simulation starts. */\n autoPlayOnStart?: boolean;\n /** Scale factor for the Doppler effect. */\n dopplerFactor?: number;\n /** Behavior when the sound becomes inaudible. */\n inaudibleBehavior?: (0 | 1 | 2) & number;\n /** Whether the sound loops. */\n looping?: boolean;\n /** Distance beyond which the sound is inaudible (meters). */\n maxDistance?: number;\n /** Distance at which the sound stays at max volume (meters). */\n minDistance?: number;\n /** Stereo pan. \u22121 = left, 1 = right. */\n pan?: number;\n /** Playback speed multiplier (1.0 = normal). */\n playSpeed?: number;\n /** Referenced sound (UUID). */\n value?: string;\n /** Playback volume [0..1]. */\n volume?: number;\n };\n /** Sphere geometry. */\n sphere_geometry?: {\n /** Local offset of the geometry origin (meters). */\n offset?: Array<number>;\n /** Radius of the sphere (meters). */\n radius?: number;\n };\n /** Displays an editor-only spline in the 3D view. */\n spline?: {\n /** Display color of the curve. */\n color?: Array<number>;\n /** Catmull-Rom tension (only when type is Catmull-Rom). */\n tension?: number;\n /** Spline interpolation type. */\n type?: (0 | 1 | 2) & number;\n };\n /** Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff. */\n spot_light?: {\n /** Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution. */\n IESProfile?: string;\n /** Cone half-angle in degrees, from the axis to the edge. Light falls to zero at the cone edge. */\n cutoff?: number;\n };\n /** Free-form tags used to group and filter entities. */\n tags?: {\n /** List of tags applied to this entity. */\n value?: Array<string>;\n };\n /** Vehicle Controller parameters. */\n vehicle_controller?: {\n /** The chassis. */\n chassis?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front left wheel. */\n frontLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The front right wheel. */\n frontRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear left wheel. */\n rearLeftWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n /** The rear right wheel. */\n rearRightWheel?: {\n linkage: Array<string>;\n /** A unique identifier, such as an entity's, or the nil uuid for none. */\n originalEUID: string;\n };\n };\n /** View filtering and display controls applied to the referenced volume. */\n volume_filter?: {\n /** Apply Gaussian smoothing when sampling voxels. */\n applyGaussianFiltering?: boolean;\n /** Whether this volume is visible in the 3D view. */\n enable3D?: boolean;\n /** Whether this volume is visible in the MPR (multi-planar reconstruction) view. */\n enableMPR?: boolean;\n /** Tint applied to this volume's MPR/projection output. */\n mprColor?: Array<number>;\n /** Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored. */\n range?: Array<number>;\n /** Sample texels without hardware filtering (nearest). */\n sampleUnfiltered?: boolean;\n };\n /** Reference to the volume material used for shading and transfer functions. */\n volume_material_ref?: {\n /** Referenced volume material (UUID). */\n value?: string;\n };\n /** Reference to a volumetric dataset stored as a 3D texture (voxels). */\n volume_ref?: {\n /** Referenced 3D texture (UUID) containing the volume voxels. */\n texture3dRef?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities/' + encodeURIComponent(entity_id) + '',\n data: {\n animation_controller: animation_controller,\n animation_sequence_controller: animation_sequence_controller,\n bone: bone,\n box_geometry: box_geometry,\n camera: camera,\n capsule_geometry: capsule_geometry,\n character_controller: character_controller,\n collision_geometry_ref: collision_geometry_ref,\n constraint: constraint,\n constraint_actuator: constraint_actuator,\n culling_geometry: culling_geometry,\n custom_lens: custom_lens,\n cylinder_geometry: cylinder_geometry,\n debug_name: debug_name,\n decal_projector: decal_projector,\n environment: environment,\n joint: joint,\n label: label,\n lineage: lineage,\n local_aabb: local_aabb,\n local_transform: local_transform,\n material: material,\n material_ref: material_ref,\n measure: measure,\n mesh_ref: mesh_ref,\n morph_targets: morph_targets,\n navmesh_ref: navmesh_ref,\n orthographic_lens: orthographic_lens,\n overrider: overrider,\n perspective_lens: perspective_lens,\n physics_material: physics_material,\n plane_geometry: plane_geometry,\n point_cloud_ref: point_cloud_ref,\n point_light: point_light,\n reflection_probe: reflection_probe,\n rigid_body: rigid_body,\n scene_ref: scene_ref,\n script_element: script_element,\n script_map: script_map,\n shadow_caster: shadow_caster,\n skeleton_ref: skeleton_ref,\n sound_ref: sound_ref,\n sphere_geometry: sphere_geometry,\n spline: spline,\n spot_light: spot_light,\n tags: tags,\n vehicle_controller: vehicle_controller,\n volume_filter: volume_filter,\n volume_material_ref: volume_material_ref,\n volume_ref: volume_ref,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Delete a specific entity from a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function deleteEntity(\n {\n scene_id,\n entity_id,\n }: {\n scene_id: AssetId;\n entity_id: string;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/entities/' + encodeURIComponent(entity_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Get the settings of a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSceneSettings(\n {\n scene_id,\n }: {\n scene_id: AssetId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SceneSettings> {\n return axiosInstance({\n method: 'get',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/settings',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Update the settings of a scene.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function updateSceneSettings(\n {\n scene_id,\n body,\n }: {\n scene_id: AssetId;\n body: SceneSettings;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'patch',\n url: '/assets/scenes/' + encodeURIComponent(scene_id) + '/settings',\n data: body,\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Lists all running rendering sessions.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function listRunningSessions(\n {\n filters,\n }: {\n filters?: {\n /** Filter sessions created by the specified user. Only available while using an api key. */\n user_id?: string;\n /** Filter sessions running a specified scene. */\n scene_id?: string;\n /** Filter sessions running scenes located in the specified folder. */\n folder_id?: string;\n };\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Array<Session>> {\n return axiosInstance({\n method: 'get',\n url: '/sessions',\n params: {\n filters: filters,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Create a new rendering session.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function createSession(\n {\n scene_id,\n renderer_version,\n is_transient = false,\n options,\n metadata,\n }: {\n /** The unique identifier of the scene to launch. */\n scene_id: AssetId;\n /** The version of the renderer to use. */\n renderer_version?: string;\n /** Whether the session should be created as transient or not. */\n is_transient?: boolean;\n /** Additional options for the session. For internal use. */\n options?: {\n [_additionalproperties_: string]: any;\n };\n /** What the application attaches to the session, returned with it. */\n metadata?: Metadata;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<{\n session_id: SessionId;\n}> {\n return axiosInstance({\n method: 'post',\n url: '/sessions',\n data: {\n scene_id: scene_id,\n renderer_version: renderer_version,\n is_transient: is_transient,\n options: options,\n metadata: metadata,\n },\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the target session.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function getSession(\n {\n session_id,\n }: {\n session_id: SessionId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Session> {\n return axiosInstance({\n method: 'get',\n url: '/sessions/' + encodeURIComponent(session_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Terminates a session: its renderer is stopped, its clients disconnected. Only the session's creator can terminate\n * it. The session is closing until its renderer stopped, joined no more.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function killSession(\n {\n session_id,\n }: {\n session_id: SessionId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/sessions/' + encodeURIComponent(session_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Creates a new client for the user and returns a token to join the session.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {InvalidGuestToken}\n * @throws {TooManyRequests}\n */\nexport function joinSession(\n {\n session_id,\n is_headless = false,\n metadata,\n }: {\n session_id: SessionId;\n /** Declare that the client is headless and will not receive any frames. Useful for clients running on servers or in the background. */\n is_headless?: boolean;\n /** What the application attaches to the client the token creates, returned with it. */\n metadata?: Metadata;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SessionToken> {\n return axiosInstance({\n method: 'post',\n url: '/sessions/' + encodeURIComponent(session_id) + '/clients',\n data: optionalBody({\n is_headless: is_headless,\n metadata: metadata,\n }),\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Retrieves details about the target client.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {InvalidGuestToken}\n * @throws {TooManyRequests}\n */\nexport function getClient(\n {\n session_id,\n client_id,\n }: {\n session_id: SessionId;\n client_id: ClientId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<Client> {\n return axiosInstance({\n method: 'get',\n url: '/sessions/' + encodeURIComponent(session_id) + '/clients/' + encodeURIComponent(client_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Kicks a client from a running session: it is disconnected, and leaves the session. Only the session's creator can\n * kick a client.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function kickClientFromSession(\n {\n session_id,\n client_id,\n }: {\n session_id: SessionId;\n client_id: ClientId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n) {\n return axiosInstance({\n method: 'delete',\n url: '/sessions/' + encodeURIComponent(session_id) + '/clients/' + encodeURIComponent(client_id) + '',\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Join a session as guest.\n * @throws {InvalidParameter}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function joinSessionAsGuest(\n {\n metadata,\n }: {\n /** What the application attaches to the client the token creates, returned with it. */\n metadata?: Metadata;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<SessionToken> {\n return axiosInstance({\n method: 'post',\n url: '/sessions/guests',\n data: optionalBody({\n metadata: metadata,\n }),\n headers: headers,\n });\n}\n\n//--------------------------------------------------------------------------\n/**\n * Generates a token to join the session as a guest.\n * @throws {InvalidParameter}\n * @throws {MissingAuthorizationHeader}\n * @throws {InvalidApiKey}\n * @throws {Unauthorized}\n * @throws {InvalidAuthorization}\n * @throws {InsufficientSecurityScope}\n * @throws {InsufficientPermissions}\n * @throws {TooManyRequests}\n */\nexport function generateGuestToken(\n {\n session_id,\n }: {\n session_id: SessionId;\n },\n headers?: RawAxiosRequestHeaders | AxiosRequestHeaders,\n): AxiosPromise<GuestToken> {\n return axiosInstance({\n method: 'post',\n url: '/sessions/' + encodeURIComponent(session_id) + '/guests',\n headers: headers,\n });\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": ["declared"]
|
|
7
7
|
}
|