@3dverse/api 0.6.4 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +32 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.js.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../index.ts", "../_prebuild/wrapper.ts"],
|
4
|
-
"sourcesContent": ["//--------------------------------------------------------------------------\nimport { AxiosError, AxiosProgressEvent } from 'axios';\nimport axiosRetry, { isNetworkError, isIdempotentRequestError } from 'axios-retry';\n\n//--------------------------------------------------------------------------\nimport { axiosInstance, uploadSourceFiles as _uploadSourceFiles } 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//------------------------------------------------------------------------------\nfunction shouldRetryRequest(error: AxiosError) {\n const status = error.response?.status;\n\n switch (status) {\n case 403:\n case 404:\n return true;\n\n default:\n return isNetworkError(error) || isIdempotentRequestError(error);\n }\n}\n\n//------------------------------------------------------------------------------\ninstallInterceptors();\n\n//------------------------------------------------------------------------------\nexport * from './_prebuild/wrapper';\n\n//------------------------------------------------------------------------------\ntype UploadSourceFiles = typeof _uploadSourceFiles;\nexport function uploadSourceFiles({\n folder_id,\n body,\n onUploadProgress,\n}: Parameters<UploadSourceFiles>[0] & {\n onUploadProgress?: (e: AxiosProgressEvent) => void;\n}): ReturnType<UploadSourceFiles> {\n return axiosInstance({\n method: 'post',\n url: `/folders/${folder_id}/source-files`,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n data: body,\n onUploadProgress,\n });\n}\n", "/**\n * 3dverse Asset API v1.0\n * # Getting Started\n * \n * Welcome to the 3dverse Asset API. 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 * \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, { AxiosPromise, AxiosError } from 'axios';\n\n//--------------------------------------------------------------------------\ntype UnionKeys<T> = T extends T ? keyof T : never;\ntype StrictUnionHelper<T, TAll> =\n T extends any\n ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never;\ntype StrictUnion<T> = StrictUnionHelper<T, T>;\n\n//--------------------------------------------------------------------------\nexport const axiosInstance = axios.create({\n baseURL: \"https://api.3dverse.com/app/v1\"\n});\n\n//------------------------------------------------------------------------------\nexport function setBaseURL(baseURL: string) {\n axiosInstance.defaults.baseURL = baseURL;\n}\n\n\n//--------------------------------------------------------------------------\n// Retrieve a list of all users in the current application.\nexport type ListUsers_User_UserInfo = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function listUsers(\n {\n offset = 0,\n limit = 10\n } : {\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<ListUsers_User_UserInfo>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Registers the target user in the current application.\nexport type RegisterUser_User_UserInfo = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function registerUser(\n {\n username\n } : {\n username : string;\n }\n) : AxiosPromise<RegisterUser_User_UserInfo>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/users\",\n data: {\n username: username\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Retrieves details about the target user.\nexport type GetUser_User_UserInfo = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function getUser(\n {\n user_id\n } : {\n user_id : string;\n }\n) : AxiosPromise<GetUser_User_UserInfo>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users/\" + user_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates the details of the target user.\nexport function updateUser(\n {\n user_id,\n username\n } : {\n user_id : string;\n username : string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/users/\" + user_id + \"\",\n data: {\n username: username\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the target user.\nexport type DeleteUser_Object = {\n deleted_assets ?: DeleteUser_Object\n};\nexport function deleteUser(\n {\n user_id\n } : {\n user_id : string;\n }\n) : AxiosPromise<DeleteUser_Object>\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/users/\" + user_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Generates a user token. This user token identifies the user when making a request.\nexport type GenerateUserToken_Token = {\n user_token ?: string,\n expires_in ?: number,\n expires_on ?: number\n};\nexport function generateUserToken(\n {\n user_id,\n scope,\n ttl = '1h'\n } : {\n user_id : string;\n scope : \"read\" | \"write\" | \"manage\";\n ttl ?: string;\n }\n) : AxiosPromise<GenerateUserToken_Token>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/users/\" + user_id + \"/tokens\",\n data: {\n scope: scope,\n ttl: ttl\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all user groups.\nexport type GetUserGroups_Group_GroupInfo = {\n group_id : string,\n name : string,\n description ?: string,\n created_at : string,\n members : Array<GetUserGroups_GroupMember_GroupAccess>\n};\nexport type GetUserGroups_GroupMember_GroupAccess = {\n user_id : string,\n joined_at ?: string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport function getUserGroups(\n {\n user_id\n } : {\n user_id : string;\n }\n) : AxiosPromise<Array<GetUserGroups_Group_GroupInfo>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users/\" + user_id + \"/groups\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all upload tasks of the target user.\nexport type GetUserUploadTasks_UploadTask = {\n upload_task_id : string,\n folder_id : string,\n uploaded_at : string,\n uploaded_by : GetUserUploadTasks_Object,\n progress : number,\n download_progress ?: number,\n status : StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string,\n conversion_tasks : Array<GetUserUploadTasks_ConversionTask>\n};\nexport type GetUserUploadTasks_Object = {\n user_id : string,\n username : string\n};\nexport type GetUserUploadTasks_ConversionTask = {\n asset_id : string,\n source_file_id : string,\n source_file_name : string,\n conversion_pipeline : \"auto-detect\" | \"volume\" | \"scene\" | \"texture\" | \"animation\",\n progress : number,\n status : StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string\n};\nexport function getUserUploadTasks(\n {\n user_id,\n offset = 0,\n limit = 10\n } : {\n user_id : string;\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<GetUserUploadTasks_UploadTask>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users/\" + user_id + \"/upload-tasks\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a new user group.\nexport type CreateGroup_GroupMember_GroupAccess = {\n user_id : string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport type CreateGroup_Group_GroupInfo = {\n group_id : string,\n name : string,\n description ?: string,\n created_at : string,\n members : Array<CreateGroup_GroupMember_GroupAccess_Writable>\n};\nexport type CreateGroup_GroupMember_GroupAccess_Writable = {\n user_id : string,\n joined_at ?: string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport function createGroup(\n {\n name,\n description,\n members\n } : {\n name : string;\n description ?: string;\n members : Array<CreateGroup_GroupMember_GroupAccess>;\n }\n) : AxiosPromise<CreateGroup_Group_GroupInfo>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/groups\",\n data: {\n name: name,\n description: description,\n members: members\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets a group details.\nexport type GetGroup_Group_GroupInfo = {\n group_id : string,\n name : string,\n description ?: string,\n created_at : string,\n members : Array<GetGroup_GroupMember_GroupAccess>\n};\nexport type GetGroup_GroupMember_GroupAccess = {\n user_id : string,\n joined_at ?: string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport function getGroup(\n {\n group_id\n } : {\n group_id : string;\n }\n) : AxiosPromise<GetGroup_Group_GroupInfo>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/groups/\" + group_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates a group details.\nexport function updateGroupDescription(\n {\n group_id,\n name,\n description\n } : {\n group_id : string;\n name : string;\n description : string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/groups/\" + group_id + \"\",\n data: {\n name: name,\n description: description\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes a group and all its access rights.\nexport function deleteGroup(\n {\n group_id\n } : {\n group_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/groups/\" + group_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Grants member access to the group.\nexport function grantMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id,\n group_access,\n folder_access\n } : {\n group_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n group_access : \"read\" | \"write\" | \"manage\";\n folder_access : \"read\" | \"write\" | \"manage\";\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/groups/\" + group_id + \"/members/\" + member_type + \"/\" + member_id + \"\",\n data: {\n group_access: group_access,\n folder_access: folder_access\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Revoke requested user access to group.\nexport function revokeMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id\n } : {\n group_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/groups/\" + group_id + \"/members/\" + member_type + \"/\" + member_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all folders\nexport type ListFolders_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: ListFolders_Object,\n subfolders ?: Array<ListFolders_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type ListFolders_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function listFolders(\n {\n offset = 0,\n limit = 10\n } : {\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<ListFolders_Folder>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a folder.\nexport type CreateFolder_Folder = {\n name : string,\n subfolders ?: Array<CreateFolder_Folder>\n};\nexport type CreateFolder_Folder_Writable = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: CreateFolder_Object,\n subfolders ?: Array<CreateFolder_Folder_Writable>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type CreateFolder_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function createFolder(\n {\n name,\n subfolders\n } : {\n name : string;\n subfolders ?: Array<CreateFolder_Folder>;\n }\n) : AxiosPromise<CreateFolder_Folder_Writable>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders\",\n data: {\n name: name,\n subfolders: subfolders\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the requested folder details.\nexport type GetFolderInfo_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: GetFolderInfo_Object,\n subfolders ?: Array<GetFolderInfo_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type GetFolderInfo_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function getFolderInfo(\n {\n folder_id\n } : {\n folder_id : string;\n }\n) : AxiosPromise<GetFolderInfo_Folder>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Move folders inside the specified folder.\nexport function moveFolders(\n {\n folder_id,\n folder_ids\n } : {\n folder_id : string;\n folder_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"\",\n data: folder_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates the folder details.\nexport function updateFolder(\n {\n folder_id,\n name\n } : {\n folder_id : string;\n name ?: string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/folders/\" + folder_id + \"\",\n data: {\n name: name\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the requested folder. The target folder must be empty.\nexport function deleteFolder(\n {\n folder_id\n } : {\n folder_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/folders/\" + folder_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// List member access to the targeted folder.\nexport type ListFolderAccesses_Object = {\n users ?: Array<ListFolderAccesses_UserInfo_FolderAccess>,\n groups ?: Array<ListFolderAccesses_GroupInfo_FolderAccess>\n};\nexport type ListFolderAccesses_UserInfo_FolderAccess = {\n user_id : string,\n username : string,\n access : \"read\" | \"write\" | \"manage\"\n};\nexport type ListFolderAccesses_GroupInfo_FolderAccess = {\n group_id : string,\n name : string,\n access : \"read\" | \"write\" | \"manage\"\n};\nexport function listFolderAccesses(\n {\n folder_id\n } : {\n folder_id : string;\n }\n) : AxiosPromise<ListFolderAccesses_Object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/access\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Grants member access to the targeted folder.\nexport function grantMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id,\n access\n } : {\n folder_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n access : \"read\" | \"write\" | \"manage\";\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"/access/\" + member_type + \"/\" + member_id + \"\",\n data: {\n access: access\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Revokes member access to a target folder.\nexport function revokeMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id\n } : {\n folder_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/folders/\" + folder_id + \"/access/\" + member_type + \"/\" + member_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a subfolder.\nexport type CreateSubfolder_Folder = {\n name : string,\n subfolders ?: Array<CreateSubfolder_Folder>\n};\nexport type CreateSubfolder_Folder_Writable = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: CreateSubfolder_Object,\n subfolders ?: Array<CreateSubfolder_Folder_Writable>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type CreateSubfolder_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function createSubfolder(\n {\n folder_id,\n name,\n subfolders\n } : {\n folder_id : string;\n name : string;\n subfolders ?: Array<CreateSubfolder_Folder>;\n }\n) : AxiosPromise<CreateSubfolder_Folder_Writable>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders/\" + folder_id + \"/folders\",\n data: {\n name: name,\n subfolders: subfolders\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all subfolders of requested folder. This request can be recursive.\nexport type ListFolderSubFolders_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: ListFolderSubFolders_Object,\n subfolders ?: Array<ListFolderSubFolders_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type ListFolderSubFolders_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function listFolderSubFolders(\n {\n folder_id,\n depth = 0\n } : {\n folder_id : string;\n depth ?: number;\n }\n) : AxiosPromise<Array<ListFolderSubFolders_Folder>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/folders\",\n params: {\n depth: depth\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Uploads the specified source file(s).\nexport type UploadSourceFiles_Object = {\n upload_task_id ?: string\n};\nexport function uploadSourceFiles(\n {\n folder_id,\n body\n } : {\n folder_id : string;\n body : FormData;\n }\n) : AxiosPromise<UploadSourceFiles_Object>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders/\" + folder_id + \"/source-files\",\n headers: {\n \"Content-Type\": \"multipart/form-data\"\n },\n data: body\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all source files in a folder.\nexport type GetSourceFilesInFolder_Filters = {\n source_file_name ?: string\n};\nexport type GetSourceFilesInFolder_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function getSourceFilesInFolder(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filters\n } : {\n folder_id : string;\n offset ?: number;\n limit ?: number;\n filters ?: GetSourceFilesInFolder_Filters;\n }\n) : AxiosPromise<Array<GetSourceFilesInFolder_SourceFile>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/source-files\",\n params: {\n offset: offset,\n limit: limit,\n filters: filters\n }\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(response.headers['x-source-files-count']) as number;\n return response;\n });\n}\n\n//--------------------------------------------------------------------------\n// Move source files inside the specified folder.\nexport function moveSourceFiles(\n {\n folder_id,\n source_file_ids\n } : {\n folder_id : string;\n source_file_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"/source-files\",\n data: source_file_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all upload tasks in a folder.\nexport type GetUploadTasksInFolder_UploadTask = {\n upload_task_id : string,\n folder_id : string,\n uploaded_at : string,\n uploaded_by : GetUploadTasksInFolder_Object,\n progress : number,\n download_progress ?: number,\n status : StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string,\n conversion_tasks : Array<GetUploadTasksInFolder_ConversionTask>\n};\nexport type GetUploadTasksInFolder_Object = {\n user_id : string,\n username : string\n};\nexport type GetUploadTasksInFolder_ConversionTask = {\n asset_id : string,\n source_file_id : string,\n source_file_name : string,\n conversion_pipeline : \"auto-detect\" | \"volume\" | \"scene\" | \"texture\" | \"animation\",\n progress : number,\n status : StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string\n};\nexport function getUploadTasksInFolder(\n {\n folder_id,\n offset = 0,\n limit = 10\n } : {\n folder_id : string;\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<GetUploadTasksInFolder_UploadTask>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/upload-tasks\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists assets.\nexport type GetFolderAssets_Filter = {\n asset_type ?: (Array<\"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"> | \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"),\n asset_name ?: string,\n include_public_assets ?: boolean\n};\nexport type GetFolderAssets__index_AssetList_AssetList = {\n action_maps ?: Array<GetFolderAssets_Object>,\n algorithms ?: Array<GetFolderAssets_Object>,\n animation_graphs ?: Array<GetFolderAssets_Object>,\n animation_sequences ?: Array<GetFolderAssets_Object>,\n animation_sets ?: Array<GetFolderAssets_Object>,\n animations ?: Array<GetFolderAssets_Object>,\n collision_geometries ?: Array<GetFolderAssets_Object>,\n cubemaps ?: Array<GetFolderAssets_Object>,\n event_maps ?: Array<GetFolderAssets_Object>,\n materials ?: Array<GetFolderAssets_Object>,\n meshes ?: Array<GetFolderAssets_Object>,\n modules ?: Array<GetFolderAssets_Object>,\n point_clouds ?: Array<GetFolderAssets_Object>,\n render_graphs ?: Array<GetFolderAssets_Object>,\n scenes ?: Array<GetFolderAssets_Object>,\n scripts ?: Array<GetFolderAssets_Object>,\n shaders ?: Array<GetFolderAssets_Object>,\n skeletons ?: Array<GetFolderAssets_Object>,\n sounds ?: Array<GetFolderAssets_Object>,\n textures ?: Array<GetFolderAssets_Object>,\n textures_1d ?: Array<GetFolderAssets_Object>,\n textures_3d ?: Array<GetFolderAssets_Object>,\n volume_materials ?: Array<GetFolderAssets_Object>\n};\nexport type GetFolderAssets_Object = {\n asset_id : string,\n name : string\n};\nexport function getFolderAssets(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filter\n } : {\n folder_id : string;\n offset ?: number;\n limit ?: number;\n filter ?: GetFolderAssets_Filter;\n }\n) : AxiosPromise<GetFolderAssets__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/assets\",\n params: {\n offset: offset,\n limit: limit,\n filter: filter\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a new asset.\nexport type CreateAsset_NewAsset = {\n asset_type : \"action_map\" | \"algorithm\" | \"animation_graph\" | \"animation_sequence\" | \"cubemap\" | \"event_map\" | \"material\" | \"module\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"volume_material\",\n name : string\n};\nexport type CreateAsset_AssetDuplication = {\n asset_type : \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\",\n copy_from_asset_id : string,\n new_asset_name ?: string,\n options ?: CreateAsset_DuplicationOptions\n};\nexport type CreateAsset_DuplicationOptions = {\n asset_types ?: Array<\"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\">,\n max_depth ?: number\n};\nexport type CreateAsset_AssetDuplicationResult = {\n asset_id : string,\n name : string,\n source_to_copy_asset_id_map ?: CreateAsset_SourceToCopyAssetIdMap\n};\nexport type CreateAsset_SourceToCopyAssetIdMap = {\n [source_asset_id: string] : string\n};\nexport function createAsset(\n {\n folder_id,\n asset_creation_options\n } : {\n folder_id : string;\n asset_creation_options : StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication>;\n }\n) : AxiosPromise<CreateAsset_AssetDuplicationResult>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders/\" + folder_id + \"/assets\",\n data: asset_creation_options\n });\n}\n\n//--------------------------------------------------------------------------\n// Move assets inside the specified folder.\nexport function moveAssets(\n {\n folder_id,\n asset_ids\n } : {\n folder_id : string;\n asset_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"/assets\",\n data: asset_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all sessions running on scenes contained in a specified folder.\nexport type GetSessionsInFolder_Session = {\n session_id : string,\n scene_id : string,\n scene_name : string,\n folder_id : string,\n max_users : number,\n creator_user_id : string,\n created_at : string,\n country_code : string,\n continent_code : string,\n clients : Array<GetSessionsInFolder_UserInfo>\n};\nexport type GetSessionsInFolder_UserInfo = {\n client_id ?: string,\n client_type ?: StrictUnion<'user' | 'guest'>,\n user_id : string,\n username : string\n};\nexport function getSessionsInFolder(\n {\n folder_id\n } : {\n folder_id : string;\n }\n) : AxiosPromise<Array<GetSessionsInFolder_Session>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/sessions\"\n });\n}\n\n//--------------------------------------------------------------------------\n// List source files.\nexport type ListSourceFiles_Filters = {\n source_file_name ?: string\n};\nexport type ListSourceFiles_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function listSourceFiles(\n {\n offset = 0,\n limit = 10,\n filters\n } : {\n offset ?: number;\n limit ?: number;\n filters ?: ListSourceFiles_Filters;\n }\n) : AxiosPromise<Array<ListSourceFiles_SourceFile>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files\",\n params: {\n offset: offset,\n limit: limit,\n filters: filters\n }\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(response.headers['x-source-files-count']) as number;\n return response;\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the target source files. Deleting a source file is permanent.\nexport function deleteSourceFiles(\n {\n source_file_ids\n } : {\n source_file_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/source-files\",\n data: source_file_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Downloads the target source file.\nexport function downloadSourceFile(\n {\n source_file_id\n } : {\n source_file_id : string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files/\" + source_file_id + \"\",\n responseType: \"arraybuffer\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Get source file details.\nexport type GetSourceFileDetails_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function getSourceFileDetails(\n {\n source_file_id\n } : {\n source_file_id : string;\n }\n) : AxiosPromise<GetSourceFileDetails_SourceFile>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files/\" + source_file_id + \"/details\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates details for a specific source file.\nexport function updateSourceFileDetails(\n {\n source_file_id,\n name\n } : {\n source_file_id : string;\n name : string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/source-files/\" + source_file_id + \"/details\",\n data: {\n name: name\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all assets generated from the requested source file.\nexport type GetSourceFileAssets__index_AssetList_AssetList = {\n action_maps ?: Array<GetSourceFileAssets_Object>,\n algorithms ?: Array<GetSourceFileAssets_Object>,\n animation_graphs ?: Array<GetSourceFileAssets_Object>,\n animation_sequences ?: Array<GetSourceFileAssets_Object>,\n animation_sets ?: Array<GetSourceFileAssets_Object>,\n animations ?: Array<GetSourceFileAssets_Object>,\n collision_geometries ?: Array<GetSourceFileAssets_Object>,\n cubemaps ?: Array<GetSourceFileAssets_Object>,\n event_maps ?: Array<GetSourceFileAssets_Object>,\n materials ?: Array<GetSourceFileAssets_Object>,\n meshes ?: Array<GetSourceFileAssets_Object>,\n modules ?: Array<GetSourceFileAssets_Object>,\n point_clouds ?: Array<GetSourceFileAssets_Object>,\n render_graphs ?: Array<GetSourceFileAssets_Object>,\n scenes ?: Array<GetSourceFileAssets_Object>,\n scripts ?: Array<GetSourceFileAssets_Object>,\n shaders ?: Array<GetSourceFileAssets_Object>,\n skeletons ?: Array<GetSourceFileAssets_Object>,\n sounds ?: Array<GetSourceFileAssets_Object>,\n textures ?: Array<GetSourceFileAssets_Object>,\n textures_1d ?: Array<GetSourceFileAssets_Object>,\n textures_3d ?: Array<GetSourceFileAssets_Object>,\n volume_materials ?: Array<GetSourceFileAssets_Object>\n};\nexport type GetSourceFileAssets_Object = {\n asset_id : string,\n name : string\n};\nexport function getSourceFileAssets(\n {\n source_file_id\n } : {\n source_file_id : string;\n }\n) : AxiosPromise<GetSourceFileAssets__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files/\" + source_file_id + \"/assets\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all upload tasks. These upload tasks relate to uploaded source files.\nexport function getUploadTasks(\n {\n offset = 0,\n limit = 10\n } : {\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<any>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/upload-tasks\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets information related to an upload task. This upload task relates to uploaded source files.\nexport type GetUploadTask_UploadTask = {\n upload_task_id : string,\n folder_id : string,\n uploaded_at : string,\n uploaded_by : GetUploadTask_Object,\n progress : number,\n download_progress ?: number,\n status : StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string,\n conversion_tasks : Array<GetUploadTask_ConversionTask>\n};\nexport type GetUploadTask_Object = {\n user_id : string,\n username : string\n};\nexport type GetUploadTask_ConversionTask = {\n asset_id : string,\n source_file_id : string,\n source_file_name : string,\n conversion_pipeline : \"auto-detect\" | \"volume\" | \"scene\" | \"texture\" | \"animation\",\n progress : number,\n status : StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string\n};\nexport function getUploadTask(\n {\n upload_task_id\n } : {\n upload_task_id : string;\n }\n) : AxiosPromise<GetUploadTask_UploadTask>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/upload-tasks/\" + upload_task_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Returns a list of all assets.\nexport type ListAssets_Filter = {\n asset_type ?: (Array<\"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"> | \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"),\n asset_name ?: string,\n include_public_assets ?: boolean\n};\nexport type ListAssets__index_AssetList_AssetList = {\n action_maps ?: Array<ListAssets_Object>,\n algorithms ?: Array<ListAssets_Object>,\n animation_graphs ?: Array<ListAssets_Object>,\n animation_sequences ?: Array<ListAssets_Object>,\n animation_sets ?: Array<ListAssets_Object>,\n animations ?: Array<ListAssets_Object>,\n collision_geometries ?: Array<ListAssets_Object>,\n cubemaps ?: Array<ListAssets_Object>,\n event_maps ?: Array<ListAssets_Object>,\n materials ?: Array<ListAssets_Object>,\n meshes ?: Array<ListAssets_Object>,\n modules ?: Array<ListAssets_Object>,\n point_clouds ?: Array<ListAssets_Object>,\n render_graphs ?: Array<ListAssets_Object>,\n scenes ?: Array<ListAssets_Object>,\n scripts ?: Array<ListAssets_Object>,\n shaders ?: Array<ListAssets_Object>,\n skeletons ?: Array<ListAssets_Object>,\n sounds ?: Array<ListAssets_Object>,\n textures ?: Array<ListAssets_Object>,\n textures_1d ?: Array<ListAssets_Object>,\n textures_3d ?: Array<ListAssets_Object>,\n volume_materials ?: Array<ListAssets_Object>\n};\nexport type ListAssets_Object = {\n asset_id : string,\n name : string\n};\nexport function listAssets(\n {\n offset = 0,\n limit = 10,\n filter\n } : {\n offset ?: number;\n limit ?: number;\n filter ?: ListAssets_Filter;\n }\n) : AxiosPromise<ListAssets__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets\",\n params: {\n offset: offset,\n limit: limit,\n filter: filter\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Batch delete assets. You **MUST NOT** reference assets.\nexport function deleteAssets(\n {\n asset_ids\n } : {\n asset_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/assets\",\n data: asset_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the asset.\nexport function deleteAsset(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the source file of the specified asset.\nexport type GetAssetSourceFile_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function getAssetSourceFile(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetSourceFile_SourceFile>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/source-file\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset details from the specified asset.\nexport type GetAssetDetails__index_AssetDetails_AssetDetails = {\n asset_id : string,\n contributors ?: Array<GetAssetDetails_Contributor>,\n created_at ?: string,\n created_by ?: GetAssetDetails_Object,\n last_edited_at ?: string,\n last_edited_by ?: GetAssetDetails_Object,\n name : string,\n type : \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"\n};\nexport type GetAssetDetails_Contributor = {\n contribution_count : number,\n user : GetAssetDetails_Object\n};\nexport type GetAssetDetails_Object = {\n registered_at : string,\n user_id : string,\n username : string\n};\nexport function getAssetDetails(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetDetails__index_AssetDetails_AssetDetails>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/details\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset folder from the specified asset.\nexport type GetAssetFolder_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: GetAssetFolder_Object,\n subfolders ?: Array<GetAssetFolder_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type GetAssetFolder_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function getAssetFolder(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetFolder_Folder>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/folder\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset dependencies from the specified asset.\nexport type GetAssetDependencies_Filter = {\n asset_type ?: \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"\n};\nexport type GetAssetDependencies_Flat = {\n action_maps ?: Array<GetAssetDependencies_Object>,\n algorithms ?: Array<GetAssetDependencies_Object>,\n animation_graphs ?: Array<GetAssetDependencies_Object>,\n animation_sequences ?: Array<GetAssetDependencies_Object>,\n animation_sets ?: Array<GetAssetDependencies_Object>,\n animations ?: Array<GetAssetDependencies_Object>,\n collision_geometries ?: Array<GetAssetDependencies_Object>,\n cubemaps ?: Array<GetAssetDependencies_Object>,\n event_maps ?: Array<GetAssetDependencies_Object>,\n materials ?: Array<GetAssetDependencies_Object>,\n meshes ?: Array<GetAssetDependencies_Object>,\n modules ?: Array<GetAssetDependencies_Object>,\n point_clouds ?: Array<GetAssetDependencies_Object>,\n render_graphs ?: Array<GetAssetDependencies_Object>,\n scenes ?: Array<GetAssetDependencies_Object>,\n scripts ?: Array<GetAssetDependencies_Object>,\n shaders ?: Array<GetAssetDependencies_Object>,\n skeletons ?: Array<GetAssetDependencies_Object>,\n sounds ?: Array<GetAssetDependencies_Object>,\n textures ?: Array<GetAssetDependencies_Object>,\n textures_1d ?: Array<GetAssetDependencies_Object>,\n textures_3d ?: Array<GetAssetDependencies_Object>,\n volume_materials ?: Array<GetAssetDependencies_Object>\n};\nexport type GetAssetDependencies_Object = {\n asset_id : string,\n name : string\n};\nexport type GetAssetDependencies__index_AssetItem_AssetItem = {\n asset_id : string,\n name : string,\n asset_type : \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"\n};\nexport function getAssetDependencies(\n {\n asset_container,\n asset_id,\n format = 'flat',\n depth = 'all',\n filter\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n format ?: StrictUnion<'flat' | 'graph'>;\n depth ?: StrictUnion<'all' | 'direct'>;\n filter ?: GetAssetDependencies_Filter;\n }\n) : AxiosPromise<(GetAssetDependencies_Flat | Array<Array<GetAssetDependencies__index_AssetItem_AssetItem>>)>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/dependencies\",\n params: {\n format: format,\n depth: depth,\n filter: filter\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset references from the specified asset.\nexport type GetAssetReferences__index_AssetList_AssetList = {\n action_maps ?: Array<GetAssetReferences_Object>,\n algorithms ?: Array<GetAssetReferences_Object>,\n animation_graphs ?: Array<GetAssetReferences_Object>,\n animation_sequences ?: Array<GetAssetReferences_Object>,\n animation_sets ?: Array<GetAssetReferences_Object>,\n animations ?: Array<GetAssetReferences_Object>,\n collision_geometries ?: Array<GetAssetReferences_Object>,\n cubemaps ?: Array<GetAssetReferences_Object>,\n event_maps ?: Array<GetAssetReferences_Object>,\n materials ?: Array<GetAssetReferences_Object>,\n meshes ?: Array<GetAssetReferences_Object>,\n modules ?: Array<GetAssetReferences_Object>,\n point_clouds ?: Array<GetAssetReferences_Object>,\n render_graphs ?: Array<GetAssetReferences_Object>,\n scenes ?: Array<GetAssetReferences_Object>,\n scripts ?: Array<GetAssetReferences_Object>,\n shaders ?: Array<GetAssetReferences_Object>,\n skeletons ?: Array<GetAssetReferences_Object>,\n sounds ?: Array<GetAssetReferences_Object>,\n textures ?: Array<GetAssetReferences_Object>,\n textures_1d ?: Array<GetAssetReferences_Object>,\n textures_3d ?: Array<GetAssetReferences_Object>,\n volume_materials ?: Array<GetAssetReferences_Object>\n};\nexport type GetAssetReferences_Object = {\n asset_id : string,\n name : string\n};\nexport function getAssetReferences(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetReferences__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/references\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset description from the specified asset.\nexport type GetAssetDescription_ActionMap = {\n actions : GetAssetDescription_Object\n};\nexport type GetAssetDescription_Object = {\n [action_name: string] : object\n};\nexport type GetAssetDescription_Algorithm = {\n inputDescriptor : Array<object>,\n outputDescriptor : Array<object>\n};\nexport type GetAssetDescription_Animation = {\n animationEventTrack : GetAssetDescription_Object,\n durationInMs : number,\n payloadSize : number,\n skeletonRef ?: string\n};\nexport type GetAssetDescription_AnimationGraph = {\n inputDescriptor : object,\n stateMachines : Array<GetAssetDescription_Object>\n};\nexport type GetAssetDescription_AnimationSequence = {\n inputDescriptor : object\n};\nexport type GetAssetDescription_AnimationSet = {\n animationGraphUUID : string,\n animationSet : GetAssetDescription_Object\n};\nexport type GetAssetDescription_CollisionGeometry = {\n geometryType : StrictUnion<0 | 1>,\n payloadSize : number\n};\nexport type GetAssetDescription_Cubemap = {\n faces : Array<string>\n};\nexport type GetAssetDescription_EventMap = {\n eventDescriptors : GetAssetDescription_Object\n};\nexport type GetAssetDescription_Material = {\n dataJson : object,\n isDoubleSided : boolean,\n shaderRef : string,\n skinnedShaderRef : string\n};\nexport type GetAssetDescription_Mesh = {\n payloadSize : number,\n submeshes : Array<GetAssetDescription_Submesh>\n};\nexport type GetAssetDescription_Submesh = {\n boundingBox : GetAssetDescription_BoundingBox,\n channels : Array<GetAssetDescription_Channel>,\n indexCount : number,\n payloadSize : number,\n vertexCount : number\n};\nexport type GetAssetDescription_BoundingBox = {\n max : Array<number>,\n min : Array<number>\n};\nexport type GetAssetDescription_Channel = {\n dataOffset : number,\n dataSize : number,\n elementCount : number,\n elementSize : number,\n elementType : StrictUnion<0 | 1 | 2> & number,\n semantic : \"invalid\" | \"index\" | \"position\" | \"normal\" | \"uv\" | \"color\" | \"bone_id\" | \"weight\"\n};\nexport type GetAssetDescription_Module = {\n functions : GetAssetDescription_Object\n};\nexport type GetAssetDescription_PointCloud = {\n format : \"invalid\" | \"xyz32\" | \"xyz32_rgb8\",\n payloadTotalSize : number,\n pointCount : number,\n scale ?: Array<number>,\n translation ?: Array<number>\n};\nexport type GetAssetDescription_Scene = {\n aabb : GetAssetDescription_Aabb,\n animationSequenceInstances ?: Array<GetAssetDescription_Object>,\n entities : Array<object>,\n settings ?: object,\n triangleCount : number\n};\nexport type GetAssetDescription_Aabb = {\n max : Array<number>,\n min : Array<number>\n};\nexport type GetAssetDescription_Script = {\n eventNames : Array<string>,\n inputDescriptor ?: object,\n subScripts ?: Array<string>\n};\nexport type GetAssetDescription_Shader = {\n blendMode ?: \"invalid\" | \"opaque\" | \"alpha_blended\" | \"masked\",\n localGroupCount ?: Array<number>,\n materialDescriptor ?: object,\n moduleDescriptions ?: Array<GetAssetDescription_Object>,\n nodeDataDescriptor ?: object,\n optGlobalGroupMultiplier ?: Array<number>,\n optGlobalGroupReference ?: \"render_target_automatic_split\" | \"render_target_exact\" | \"output_render_target_exact\" | \"instances_buffer\" | \"point_cloud_input_buffer\",\n payloadSize : number,\n shaderStages ?: number,\n vertexDescriptor ?: Array<GetAssetDescription_Object>\n};\nexport type GetAssetDescription_Skeleton = {\n bones : Array<GetAssetDescription_Object>,\n payloadSize : number\n};\nexport type GetAssetDescription_Sound = {\n bitDepth : number,\n channelCount : number,\n durationInMs : number,\n payloadSize : number,\n sampleCount : number,\n sampleFrequencyInHz : number\n};\nexport type GetAssetDescription_Texture = {\n format : \"invalid\" | \"r8s\" | \"r8u\" | \"r16s\" | \"r16u\" | \"bc1\" | \"bc1a\" | \"bc2\" | \"bc3\" | \"bc3n\" | \"bc4\" | \"bc5\" | \"bc6\" | \"bc7\" | \"rgba8\",\n mips : Array<GetAssetDescription_Object>,\n payloadTotalSize : number\n};\nexport type GetAssetDescription_Texture_1D = {\n format : \"invalid\" | \"r8s\" | \"r8u\" | \"r16s\" | \"r16u\" | \"bc1\" | \"bc1a\" | \"bc2\" | \"bc3\" | \"bc3n\" | \"bc4\" | \"bc5\" | \"bc6\" | \"bc7\" | \"rgba8\",\n mips : Array<GetAssetDescription_Object>,\n payloadTotalSize : number\n};\nexport type GetAssetDescription_Texture_3D = {\n format : \"invalid\" | \"r8s\" | \"r8u\" | \"r16s\" | \"r16u\" | \"bc1\" | \"bc1a\" | \"bc2\" | \"bc3\" | \"bc3n\" | \"bc4\" | \"bc5\" | \"bc6\" | \"bc7\" | \"rgba8\",\n mips : Array<GetAssetDescription_Object>,\n payloadTotalSize : number,\n voxelDimensions ?: Array<number>\n};\nexport type GetAssetDescription_VolumeMaterial = {\n albedoLUT ?: Array<GetAssetDescription_Object>,\n metallicLUT ?: Array<GetAssetDescription_Object>,\n opacityLUT ?: Array<GetAssetDescription_Object>,\n rangeMax : number,\n rangeMin : number,\n roughnessLUT ?: Array<GetAssetDescription_Object>\n};\nexport type GetAssetDescription__index_AssetDescription_AssetDescription = {\n name : string,\n uuid : string\n};\nexport function getAssetDescription(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<StrictUnion<GetAssetDescription_ActionMap | GetAssetDescription_Algorithm | GetAssetDescription_Animation | GetAssetDescription_AnimationGraph | GetAssetDescription_AnimationSequence | GetAssetDescription_AnimationSet | GetAssetDescription_CollisionGeometry | GetAssetDescription_Cubemap | GetAssetDescription_EventMap | GetAssetDescription_Material | GetAssetDescription_Mesh | GetAssetDescription_Module | GetAssetDescription_PointCloud | GetAssetDescription_Scene | GetAssetDescription_Script | GetAssetDescription_Shader | GetAssetDescription_Skeleton | GetAssetDescription_Sound | GetAssetDescription_Texture | GetAssetDescription_Texture_1D | GetAssetDescription_Texture_3D | GetAssetDescription_VolumeMaterial> & GetAssetDescription__index_AssetDescription_AssetDescription>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/description\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates asset description. Supports only updating name.\nexport function renameAsset(\n {\n asset_container,\n asset_id,\n name\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n name ?: string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/description\",\n data: {\n name: name\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset payload from the specified asset.\nexport function getAssetPayload(\n {\n asset_container_with_payload,\n asset_id\n } : {\n asset_container_with_payload : \"animations\" | \"animation_sequences\" | \"collision_geometries\" | \"meshes\" | \"point_clouds\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\";\n asset_id : string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_with_payload + \"/\" + asset_id + \"/payload\",\n responseType: \"arraybuffer\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset history from the specified asset.\nexport function getAssetHistory(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/history\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset metadata from the specified asset.\nexport function getAssetMeta(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/meta\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the code of the specified asset.\nexport function getAssetCode(\n {\n asset_container_with_code,\n asset_id\n } : {\n asset_container_with_code : \"algorithms\" | \"animation_sequences\" | \"modules\" | \"scripts\" | \"shaders\";\n asset_id : string;\n }\n) : AxiosPromise<string>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_with_code + \"/\" + asset_id + \"/code\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset thumbnail from the specified asset.\nexport function getAssetThumbnail(\n {\n asset_container,\n asset_id,\n size,\n default_url\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n size : \"large\" | \"medium\" | \"small\" | \"tiny\";\n default_url ?: string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/thumbnail\",\n responseType: \"arraybuffer\",\n params: {\n size: size,\n default_url: default_url\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Assigns a thumbnail to the specified asset.\nexport function setAssetThumbnail(\n {\n asset_container,\n asset_id,\n body\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n body : ArrayBuffer;\n },\n contentType : 'image/jpg' | 'image/png'\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/thumbnail\",\n headers: {\n \"Content-Type\": contentType\n },\n data: body\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset custom types from the specified asset recursively.\nexport function getAssetCustomTypes(\n {\n asset_container_with_custom_types,\n asset_id\n } : {\n asset_container_with_custom_types : \"modules\";\n asset_id : string;\n }\n) : AxiosPromise<object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_with_custom_types + \"/\" + asset_id + \"/custom-types\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Packages and downloads the target asset.\nexport function packageAsset(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/package\",\n responseType: \"arraybuffer\"\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.\nexport function exportAsset(\n {\n asset_container_exportable,\n asset_id,\n format,\n scale = 1\n } : {\n asset_container_exportable : \"meshes\" | \"sounds\";\n asset_id : string;\n format : \"obj\" | \"stl\";\n scale ?: number;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_exportable + \"/\" + asset_id + \"/exports/\" + format + \"\",\n responseType: \"arraybuffer\",\n params: {\n scale: scale\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all sessions running a specified scene.\nexport type GetSceneSessions_Session = {\n session_id : string,\n scene_id : string,\n scene_name : string,\n folder_id : string,\n max_users : number,\n creator_user_id : string,\n created_at : string,\n country_code : string,\n continent_code : string,\n clients : Array<GetSceneSessions_UserInfo>\n};\nexport type GetSceneSessions_UserInfo = {\n client_id ?: string,\n client_type ?: StrictUnion<'user' | 'guest'>,\n user_id : string,\n username : string\n};\nexport function getSceneSessions(\n {\n scene_id\n } : {\n scene_id : string;\n }\n) : AxiosPromise<Array<GetSceneSessions_Session>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/scenes/\" + scene_id + \"/sessions\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Get the axis aligned bounding box of the specified scene.\nexport type GetSceneAabb_Object = {\n max : Array<number>,\n min : Array<number>\n};\nexport function getSceneAABB(\n {\n scene_id\n } : {\n scene_id : string;\n }\n) : AxiosPromise<GetSceneAabb_Object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/scenes/\" + scene_id + \"/aabb\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Get a specific entity from a scene\nexport type GetEntity_animation_controller = {\n animation_controller : GetEntity_AnimationController\n};\nexport type GetEntity_AnimationController = {\n animationGraphRef : string,\n animationSetRef : string,\n dataJSON : object,\n rootBoneEntityRef : GetEntity_EntityReference,\n rootMotionEnabled : boolean\n};\nexport type GetEntity_EntityReference = {\n originalEUID : string,\n linkage : Array<string>\n};\nexport type GetEntity_bone = {\n bone : GetEntity_Bone\n};\nexport type GetEntity_Bone = {\n boneIndex : number\n};\nexport type GetEntity_box_geometry = {\n box_geometry : GetEntity_BoxGeometry\n};\nexport type GetEntity_BoxGeometry = {\n dimension ?: Array<number>,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_camera = {\n camera : GetEntity_Camera\n};\nexport type GetEntity_Camera = {\n renderGraphRef : string,\n renderTargetIndex ?: number,\n dataJSON : object\n};\nexport type GetEntity_capsule_geometry = {\n capsule_geometry : GetEntity_CapsuleGeometry\n};\nexport type GetEntity_CapsuleGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_character_controller = {\n character_controller : GetEntity_CharacterController\n};\nexport type GetEntity_CharacterController = {\n stepOffset ?: number,\n slopeLimit ?: number,\n skinWidth ?: number,\n velocity ?: Array<number>\n};\nexport type GetEntity_collision_geometry_ref = {\n collision_geometry_ref : GetEntity_CollisionGeometryRef\n};\nexport type GetEntity_CollisionGeometryRef = {\n collisionGeometryRef : string\n};\nexport type GetEntity_cylinder_geometry = {\n cylinder_geometry : GetEntity_CylinderGeometry\n};\nexport type GetEntity_CylinderGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_debug_name = {\n debug_name : GetEntity_Name\n};\nexport type GetEntity_Name = {\n value : string\n};\nexport type GetEntity_decal_projector = {\n decal_projector : GetEntity_DecalProjector\n};\nexport type GetEntity_DecalProjector = {\n zIndex ?: number\n};\nexport type GetEntity_environment = {\n environment : GetEntity_Environment\n};\nexport type GetEntity_Environment = {\n skyboxUUID : string,\n radianceUUID : string,\n irradianceUUID : string\n};\nexport type GetEntity_joint = {\n joint : GetEntity_Joint\n};\nexport type GetEntity_Joint = {\n constrainee : GetEntity_EntityReference,\n constrainer : GetEntity_EntityReference,\n breakForce ?: number,\n breakTorque ?: number\n};\nexport type GetEntity_lineage = {\n lineage : GetEntity_Lineage\n};\nexport type GetEntity_Lineage = {\n parentUUID : string,\n ordinal ?: number\n};\nexport type GetEntity_local_aabb = {\n local_aabb : GetEntity_LocalAxisAlignedBoundingBox\n};\nexport type GetEntity_LocalAxisAlignedBoundingBox = {\n min : Array<number>,\n max : Array<number>\n};\nexport type GetEntity_local_transform = {\n local_transform : GetEntity_Transform\n};\nexport type GetEntity_Transform = {\n position ?: Array<number>,\n orientation ?: Array<number>,\n scale ?: Array<number>,\n eulerOrientation ?: Array<number>,\n globalEulerOrientation ?: Array<number>\n};\nexport type GetEntity_material = {\n material : GetEntity_Material\n};\nexport type GetEntity_Material = {\n shaderRef : string,\n transparencyMode : number,\n isDoubleSided : boolean,\n dataJSON : object\n};\nexport type GetEntity_material_ref = {\n material_ref : GetEntity_MaterialReference\n};\nexport type GetEntity_MaterialReference = {\n value : string,\n faceCulling ?: number\n};\nexport type GetEntity_mesh_ref = {\n mesh_ref : GetEntity_MeshReference\n};\nexport type GetEntity_MeshReference = {\n value : string,\n submeshIndex ?: number\n};\nexport type GetEntity_orthographic_lens = {\n orthographic_lens : GetEntity_OrthographicLens\n};\nexport type GetEntity_OrthographicLens = {\n left ?: number,\n right ?: number,\n top ?: number,\n bottom ?: number,\n zNear ?: number,\n zFar ?: number\n};\nexport type GetEntity_overrider = {\n overrider : GetEntity_Overrider\n};\nexport type GetEntity_Overrider = {\n deleter ?: boolean,\n entityRef : GetEntity_EntityReference,\n componentsToDetach : Array<number>\n};\nexport type GetEntity_perspective_lens = {\n perspective_lens : GetEntity_PerspectiveLens\n};\nexport type GetEntity_PerspectiveLens = {\n aspectRatio ?: number,\n fovy ?: number,\n nearPlane ?: number,\n farPlane ?: number\n};\nexport type GetEntity_physics_material = {\n physics_material : GetEntity_PhysicsMaterial\n};\nexport type GetEntity_PhysicsMaterial = {\n staticFriction ?: number,\n dynamicFriction ?: number,\n restitution ?: number,\n isTrigger ?: boolean\n};\nexport type GetEntity_plane_geometry = {\n plane_geometry : GetEntity_PlaneGeometry\n};\nexport type GetEntity_PlaneGeometry = {\n distance ?: number,\n normal ?: Array<number>\n};\nexport type GetEntity_point_cloud_ref = {\n point_cloud_ref : GetEntity_PointCloudReference\n};\nexport type GetEntity_PointCloudReference = {\n value : string\n};\nexport type GetEntity_point_light = {\n point_light : GetEntity_Light\n};\nexport type GetEntity_Light = {\n color ?: Array<number>,\n intensity ?: number,\n range ?: number,\n isDirectional ?: boolean,\n isSun ?: boolean\n};\nexport type GetEntity_reflection_probe = {\n reflection_probe : GetEntity_ReflectionProbe\n};\nexport type GetEntity_ReflectionProbe = {\n offset ?: Array<number>,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number\n};\nexport type GetEntity_revolute_joint = {\n revolute_joint : GetEntity_RevoluteJoint\n};\nexport type GetEntity_RevoluteJoint = {\n axis ?: Array<number>,\n anchor ?: Array<number>\n};\nexport type GetEntity_rigid_body = {\n rigid_body : GetEntity_RigidBody\n};\nexport type GetEntity_RigidBody = {\n mass ?: number,\n linearDamping ?: number,\n angularDamping ?: number,\n friction ?: number,\n rollingFriction ?: number,\n spinningFriction ?: number,\n restitution ?: number,\n linearSleepingThreshold ?: number,\n angularSleepingThreshold ?: number,\n isKinematic ?: boolean\n};\nexport type GetEntity_scene_ref = {\n scene_ref : GetEntity_SceneReference\n};\nexport type GetEntity_SceneReference = {\n value : string,\n maxRecursionCount ?: number\n};\nexport type GetEntity_script_element = {\n script_element : GetEntity_ScriptElement\n};\nexport type GetEntity_ScriptElement = {\n scriptRef : string,\n dataJSON : object\n};\nexport type GetEntity_script_map = {\n script_map : GetEntity_ScriptMap\n};\nexport type GetEntity_ScriptMap = {\n elements : object\n};\nexport type GetEntity_shadow_caster = {\n shadow_caster : GetEntity_ShadowCaster\n};\nexport type GetEntity_ShadowCaster = {\n bias ?: number,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number,\n cascadeSplitLambda ?: number,\n cascadeMaxZ ?: number,\n accumulateShadowCascades ?: boolean\n};\nexport type GetEntity_skeleton_ref = {\n skeleton_ref : GetEntity_SkeletonReference\n};\nexport type GetEntity_SkeletonReference = {\n value : string\n};\nexport type GetEntity_sound_ref = {\n sound_ref : GetEntity_SoundReference\n};\nexport type GetEntity_SoundReference = {\n value : string,\n volume ?: number,\n pan ?: number,\n playSpeed ?: number,\n looping ?: boolean\n};\nexport type GetEntity_sphere_geometry = {\n sphere_geometry : GetEntity_SphereGeometry\n};\nexport type GetEntity_SphereGeometry = {\n radius ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_spot_light = {\n spot_light : GetEntity_SpotLight\n};\nexport type GetEntity_SpotLight = {\n cutoff ?: number,\n IESProfile : string\n};\nexport type GetEntity_stereoscopic_lens = {\n stereoscopic_lens : GetEntity_StereoscopicPerspectiveLens\n};\nexport type GetEntity_StereoscopicPerspectiveLens = {\n angleLeft ?: number,\n angleRight ?: number,\n angleUp ?: number,\n angleDown ?: number,\n nearPlane ?: number,\n farPlane ?: number,\n aspectRatio ?: number\n};\nexport type GetEntity_tags = {\n tags : GetEntity_Tags\n};\nexport type GetEntity_Tags = {\n value : Array<string>\n};\nexport type GetEntity_volume_filter = {\n volume_filter : GetEntity_VolumeFilter\n};\nexport type GetEntity_VolumeFilter = {\n range ?: Array<number>,\n applyGaussianFiltering ?: boolean,\n sampleUnfiltered ?: boolean,\n enableMPR ?: boolean,\n enable3D ?: boolean\n};\nexport type GetEntity_volume_material_ref = {\n volume_material_ref : GetEntity_VolumeMaterialReference\n};\nexport type GetEntity_VolumeMaterialReference = {\n value : string\n};\nexport type GetEntity_volume_ref = {\n volume_ref : GetEntity_VolumeReference\n};\nexport type GetEntity_VolumeReference = {\n texture3dRef : string\n};\nexport type GetEntity_Entity = {\n euid : GetEntity_EntityUid\n};\nexport type GetEntity_EntityUid = {\n value : string\n};\nexport function getEntity(\n {\n scene_id,\n entity_id,\n compute_global_transform = false\n } : {\n scene_id : string;\n entity_id : string;\n compute_global_transform ?: boolean;\n }\n) : AxiosPromise<(GetEntity_animation_controller | GetEntity_bone | GetEntity_box_geometry | GetEntity_camera | GetEntity_capsule_geometry | GetEntity_character_controller | GetEntity_collision_geometry_ref | GetEntity_cylinder_geometry | GetEntity_debug_name | GetEntity_decal_projector | GetEntity_environment | GetEntity_joint | GetEntity_lineage | GetEntity_local_aabb | GetEntity_local_transform | GetEntity_material | GetEntity_material_ref | GetEntity_mesh_ref | GetEntity_orthographic_lens | GetEntity_overrider | GetEntity_perspective_lens | GetEntity_physics_material | GetEntity_plane_geometry | GetEntity_point_cloud_ref | GetEntity_point_light | GetEntity_reflection_probe | GetEntity_revolute_joint | GetEntity_rigid_body | GetEntity_scene_ref | GetEntity_script_element | GetEntity_script_map | GetEntity_shadow_caster | GetEntity_skeleton_ref | GetEntity_sound_ref | GetEntity_sphere_geometry | GetEntity_spot_light | GetEntity_stereoscopic_lens | GetEntity_tags | GetEntity_volume_filter | GetEntity_volume_material_ref | GetEntity_volume_ref) & GetEntity_Entity>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/scenes/\" + scene_id + \"/entities/\" + entity_id + \"\",\n params: {\n compute_global_transform: compute_global_transform\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Update a specific entity from a scene\nexport type UpdateEntity_animation_controller = {\n animation_controller : UpdateEntity_AnimationController\n};\nexport type UpdateEntity_AnimationController = {\n animationGraphRef : string,\n animationSetRef : string,\n dataJSON : object,\n rootBoneEntityRef : UpdateEntity_EntityReference,\n rootMotionEnabled : boolean\n};\nexport type UpdateEntity_EntityReference = {\n originalEUID : string,\n linkage : Array<string>\n};\nexport type UpdateEntity_bone = {\n bone : UpdateEntity_Bone\n};\nexport type UpdateEntity_Bone = {\n boneIndex : number\n};\nexport type UpdateEntity_box_geometry = {\n box_geometry : UpdateEntity_BoxGeometry\n};\nexport type UpdateEntity_BoxGeometry = {\n dimension ?: Array<number>,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_camera = {\n camera : UpdateEntity_Camera\n};\nexport type UpdateEntity_Camera = {\n renderGraphRef : string,\n renderTargetIndex ?: number,\n dataJSON : object\n};\nexport type UpdateEntity_capsule_geometry = {\n capsule_geometry : UpdateEntity_CapsuleGeometry\n};\nexport type UpdateEntity_CapsuleGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_character_controller = {\n character_controller : UpdateEntity_CharacterController\n};\nexport type UpdateEntity_CharacterController = {\n stepOffset ?: number,\n slopeLimit ?: number,\n skinWidth ?: number,\n velocity ?: Array<number>\n};\nexport type UpdateEntity_collision_geometry_ref = {\n collision_geometry_ref : UpdateEntity_CollisionGeometryRef\n};\nexport type UpdateEntity_CollisionGeometryRef = {\n collisionGeometryRef : string\n};\nexport type UpdateEntity_cylinder_geometry = {\n cylinder_geometry : UpdateEntity_CylinderGeometry\n};\nexport type UpdateEntity_CylinderGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_debug_name = {\n debug_name : UpdateEntity_Name\n};\nexport type UpdateEntity_Name = {\n value : string\n};\nexport type UpdateEntity_decal_projector = {\n decal_projector : UpdateEntity_DecalProjector\n};\nexport type UpdateEntity_DecalProjector = {\n zIndex ?: number\n};\nexport type UpdateEntity_environment = {\n environment : UpdateEntity_Environment\n};\nexport type UpdateEntity_Environment = {\n skyboxUUID : string,\n radianceUUID : string,\n irradianceUUID : string\n};\nexport type UpdateEntity_joint = {\n joint : UpdateEntity_Joint\n};\nexport type UpdateEntity_Joint = {\n constrainee : UpdateEntity_EntityReference,\n constrainer : UpdateEntity_EntityReference,\n breakForce ?: number,\n breakTorque ?: number\n};\nexport type UpdateEntity_lineage = {\n lineage : UpdateEntity_Lineage\n};\nexport type UpdateEntity_Lineage = {\n parentUUID : string,\n ordinal ?: number\n};\nexport type UpdateEntity_local_aabb = {\n local_aabb : UpdateEntity_LocalAxisAlignedBoundingBox\n};\nexport type UpdateEntity_LocalAxisAlignedBoundingBox = {\n min : Array<number>,\n max : Array<number>\n};\nexport type UpdateEntity_local_transform = {\n local_transform : UpdateEntity_Transform\n};\nexport type UpdateEntity_Transform = {\n position ?: Array<number>,\n orientation ?: Array<number>,\n scale ?: Array<number>,\n eulerOrientation ?: Array<number>,\n globalEulerOrientation ?: Array<number>\n};\nexport type UpdateEntity_material = {\n material : UpdateEntity_Material\n};\nexport type UpdateEntity_Material = {\n shaderRef : string,\n transparencyMode : number,\n isDoubleSided : boolean,\n dataJSON : object\n};\nexport type UpdateEntity_material_ref = {\n material_ref : UpdateEntity_MaterialReference\n};\nexport type UpdateEntity_MaterialReference = {\n value : string,\n faceCulling ?: number\n};\nexport type UpdateEntity_mesh_ref = {\n mesh_ref : UpdateEntity_MeshReference\n};\nexport type UpdateEntity_MeshReference = {\n value : string,\n submeshIndex ?: number\n};\nexport type UpdateEntity_orthographic_lens = {\n orthographic_lens : UpdateEntity_OrthographicLens\n};\nexport type UpdateEntity_OrthographicLens = {\n left ?: number,\n right ?: number,\n top ?: number,\n bottom ?: number,\n zNear ?: number,\n zFar ?: number\n};\nexport type UpdateEntity_overrider = {\n overrider : UpdateEntity_Overrider\n};\nexport type UpdateEntity_Overrider = {\n deleter ?: boolean,\n entityRef : UpdateEntity_EntityReference,\n componentsToDetach : Array<number>\n};\nexport type UpdateEntity_perspective_lens = {\n perspective_lens : UpdateEntity_PerspectiveLens\n};\nexport type UpdateEntity_PerspectiveLens = {\n aspectRatio ?: number,\n fovy ?: number,\n nearPlane ?: number,\n farPlane ?: number\n};\nexport type UpdateEntity_physics_material = {\n physics_material : UpdateEntity_PhysicsMaterial\n};\nexport type UpdateEntity_PhysicsMaterial = {\n staticFriction ?: number,\n dynamicFriction ?: number,\n restitution ?: number,\n isTrigger ?: boolean\n};\nexport type UpdateEntity_plane_geometry = {\n plane_geometry : UpdateEntity_PlaneGeometry\n};\nexport type UpdateEntity_PlaneGeometry = {\n distance ?: number,\n normal ?: Array<number>\n};\nexport type UpdateEntity_point_cloud_ref = {\n point_cloud_ref : UpdateEntity_PointCloudReference\n};\nexport type UpdateEntity_PointCloudReference = {\n value : string\n};\nexport type UpdateEntity_point_light = {\n point_light : UpdateEntity_Light\n};\nexport type UpdateEntity_Light = {\n color ?: Array<number>,\n intensity ?: number,\n range ?: number,\n isDirectional ?: boolean,\n isSun ?: boolean\n};\nexport type UpdateEntity_reflection_probe = {\n reflection_probe : UpdateEntity_ReflectionProbe\n};\nexport type UpdateEntity_ReflectionProbe = {\n offset ?: Array<number>,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number\n};\nexport type UpdateEntity_revolute_joint = {\n revolute_joint : UpdateEntity_RevoluteJoint\n};\nexport type UpdateEntity_RevoluteJoint = {\n axis ?: Array<number>,\n anchor ?: Array<number>\n};\nexport type UpdateEntity_rigid_body = {\n rigid_body : UpdateEntity_RigidBody\n};\nexport type UpdateEntity_RigidBody = {\n mass ?: number,\n linearDamping ?: number,\n angularDamping ?: number,\n friction ?: number,\n rollingFriction ?: number,\n spinningFriction ?: number,\n restitution ?: number,\n linearSleepingThreshold ?: number,\n angularSleepingThreshold ?: number,\n isKinematic ?: boolean\n};\nexport type UpdateEntity_scene_ref = {\n scene_ref : UpdateEntity_SceneReference\n};\nexport type UpdateEntity_SceneReference = {\n value : string,\n maxRecursionCount ?: number\n};\nexport type UpdateEntity_script_element = {\n script_element : UpdateEntity_ScriptElement\n};\nexport type UpdateEntity_ScriptElement = {\n scriptRef : string,\n dataJSON : object\n};\nexport type UpdateEntity_script_map = {\n script_map : UpdateEntity_ScriptMap\n};\nexport type UpdateEntity_ScriptMap = {\n elements : object\n};\nexport type UpdateEntity_shadow_caster = {\n shadow_caster : UpdateEntity_ShadowCaster\n};\nexport type UpdateEntity_ShadowCaster = {\n bias ?: number,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number,\n cascadeSplitLambda ?: number,\n cascadeMaxZ ?: number,\n accumulateShadowCascades ?: boolean\n};\nexport type UpdateEntity_skeleton_ref = {\n skeleton_ref : UpdateEntity_SkeletonReference\n};\nexport type UpdateEntity_SkeletonReference = {\n value : string\n};\nexport type UpdateEntity_sound_ref = {\n sound_ref : UpdateEntity_SoundReference\n};\nexport type UpdateEntity_SoundReference = {\n value : string,\n volume ?: number,\n pan ?: number,\n playSpeed ?: number,\n looping ?: boolean\n};\nexport type UpdateEntity_sphere_geometry = {\n sphere_geometry : UpdateEntity_SphereGeometry\n};\nexport type UpdateEntity_SphereGeometry = {\n radius ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_spot_light = {\n spot_light : UpdateEntity_SpotLight\n};\nexport type UpdateEntity_SpotLight = {\n cutoff ?: number,\n IESProfile : string\n};\nexport type UpdateEntity_stereoscopic_lens = {\n stereoscopic_lens : UpdateEntity_StereoscopicPerspectiveLens\n};\nexport type UpdateEntity_StereoscopicPerspectiveLens = {\n angleLeft ?: number,\n angleRight ?: number,\n angleUp ?: number,\n angleDown ?: number,\n nearPlane ?: number,\n farPlane ?: number,\n aspectRatio ?: number\n};\nexport type UpdateEntity_tags = {\n tags : UpdateEntity_Tags\n};\nexport type UpdateEntity_Tags = {\n value : Array<string>\n};\nexport type UpdateEntity_volume_filter = {\n volume_filter : UpdateEntity_VolumeFilter\n};\nexport type UpdateEntity_VolumeFilter = {\n range ?: Array<number>,\n applyGaussianFiltering ?: boolean,\n sampleUnfiltered ?: boolean,\n enableMPR ?: boolean,\n enable3D ?: boolean\n};\nexport type UpdateEntity_volume_material_ref = {\n volume_material_ref : UpdateEntity_VolumeMaterialReference\n};\nexport type UpdateEntity_VolumeMaterialReference = {\n value : string\n};\nexport type UpdateEntity_volume_ref = {\n volume_ref : UpdateEntity_VolumeReference\n};\nexport type UpdateEntity_VolumeReference = {\n texture3dRef : string\n};\nexport function updateEntity(\n {\n scene_id,\n entity_id,\n entity_components\n } : {\n scene_id : string;\n entity_id : string;\n entity_components : (UpdateEntity_animation_controller | UpdateEntity_bone | UpdateEntity_box_geometry | UpdateEntity_camera | UpdateEntity_capsule_geometry | UpdateEntity_character_controller | UpdateEntity_collision_geometry_ref | UpdateEntity_cylinder_geometry | UpdateEntity_debug_name | UpdateEntity_decal_projector | UpdateEntity_environment | UpdateEntity_joint | UpdateEntity_lineage | UpdateEntity_local_aabb | UpdateEntity_local_transform | UpdateEntity_material | UpdateEntity_material_ref | UpdateEntity_mesh_ref | UpdateEntity_orthographic_lens | UpdateEntity_overrider | UpdateEntity_perspective_lens | UpdateEntity_physics_material | UpdateEntity_plane_geometry | UpdateEntity_point_cloud_ref | UpdateEntity_point_light | UpdateEntity_reflection_probe | UpdateEntity_revolute_joint | UpdateEntity_rigid_body | UpdateEntity_scene_ref | UpdateEntity_script_element | UpdateEntity_script_map | UpdateEntity_shadow_caster | UpdateEntity_skeleton_ref | UpdateEntity_sound_ref | UpdateEntity_sphere_geometry | UpdateEntity_spot_light | UpdateEntity_stereoscopic_lens | UpdateEntity_tags | UpdateEntity_volume_filter | UpdateEntity_volume_material_ref | UpdateEntity_volume_ref);\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/assets/scenes/\" + scene_id + \"/entities/\" + entity_id + \"\",\n data: entity_components\n });\n}\n\n//--------------------------------------------------------------------------\n// Delete a specific entity from a scene\nexport function deleteEntity(\n {\n scene_id,\n entity_id\n } : {\n scene_id : string;\n entity_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/assets/scenes/\" + scene_id + \"/entities/\" + entity_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Create a new rendering session\nexport type CreateSession_Object = {\n session_id : string\n};\nexport function createSession(\n {\n scene_id,\n renderer_version\n } : {\n scene_id : string;\n renderer_version ?: string;\n }\n) : AxiosPromise<CreateSession_Object>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/sessions\",\n data: {\n scene_id: scene_id,\n renderer_version: renderer_version\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Retrieves details about the target session.\nexport type GetSession_Session = {\n session_id : string,\n scene_id : string,\n scene_name : string,\n folder_id : string,\n max_users : number,\n creator_user_id : string,\n created_at : string,\n country_code : string,\n continent_code : string,\n clients : Array<GetSession_UserInfo>\n};\nexport type GetSession_UserInfo = {\n client_id ?: string,\n client_type ?: StrictUnion<'user' | 'guest'>,\n user_id : string,\n username : string\n};\nexport function getSession(\n {\n session_id\n } : {\n session_id : string;\n }\n) : AxiosPromise<GetSession_Session>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/sessions/\" + session_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Forcefully terminates a session.\nexport function killSession(\n {\n session_id\n } : {\n session_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/sessions/\" + session_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a new client for the user and returns a token to join the session.\nexport type JoinSession_SessionToken = {\n session_token : string,\n endpoint_info : JoinSession_Object\n};\nexport type JoinSession_Object = {\n ip : string,\n port : number,\n ssl_port : number\n};\nexport function joinSession(\n {\n session_id\n } : {\n session_id : string;\n }\n) : AxiosPromise<JoinSession_SessionToken>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/sessions/\" + session_id + \"/clients\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Kick a client from a running session.\nexport function kickClientFromSession(\n {\n session_id,\n client_id\n } : {\n session_id : string;\n client_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/sessions/\" + session_id + \"/clients/\" + client_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Join a session as guest. The guest token is required in the `guest_token` header.\nexport type JoinSessionAsGuest_SessionToken = {\n session_token : string,\n endpoint_info : JoinSessionAsGuest_Object\n};\nexport type JoinSessionAsGuest_Object = {\n ip : string,\n port : number,\n ssl_port : number\n};\nexport function joinSessionAsGuest(\n\n) : AxiosPromise<JoinSessionAsGuest_SessionToken>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/sessions/guests\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Generates a token to join the session as a guest.\nexport type GenerateGuestToken_GuestToken = {\n guest_token ?: string\n};\nexport function generateGuestToken(\n {\n session_id\n } : {\n session_id : string;\n }\n) : AxiosPromise<GenerateGuestToken_GuestToken>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/sessions/\" + session_id + \"/guests\"\n });\n}"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAAqE;;;ACyBrE,mBAAgD;AAUzC,IAAM,gBAAgB,aAAAA,QAAM,OAAO;AAAA,EACtC,SAAS;AACb,CAAC;AAGM,SAAS,WAAW,SAAiB;AACxC,gBAAc,SAAS,UAAU;A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,WAAW,UAAU,UAAU;AAC9C,YAAM,YAAY,WAAW,UAAU;AAEvC,UACI,CAAC,aACD,WAAW,QAAQ,WAAW,UAC9B,UAAU,gBACV,SAAS,uBACX;AACE,eAAO,WAAW;AAAA,MACtB;AAEA,UAAI,CAAC,aAAa,OAAO,cAAc,UAAU;AAC7C,eAAO,QAAQ,OAAO,IAAI,uBAAuB,QAAQ,SAAS,CAAC;AAAA,MACvE;AAEA,YAAM,eAAe;AACrB,aAAO,QAAQ,OAAO,IAAI,SAAS,aAAa,WAAW,QAAQ,aAAa,SAAS,YAAY,CAAC;AAAA,IAC1G;AAAA,EACJ;AACJ;AAGA,SAAS,mBAAmB,OAAmB;AAC3C,QAAM,SAAS,MAAM,UAAU;AAE/B,UAAQ,QAAQ;AAAA,IACZ,KAAK;AAAA,IACL,KAAK;AACD,aAAO;AAAA,IAEX;AACI,iBAAO,mCAAe,KAAK,SAAK,6CAAyB,KAAK;AAAA,EACtE;AACJ;AAGA,oBAAoB;AAOb,SAAS,kBAAkB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AACJ,GAEkC;AAC9B,SAAO,cAAc;AAAA,IACjB,QAAQ;AAAA,IACR,KAAK,YAAY;AAAA,IACjB,SAAS;AAAA,MACL,gBAAgB;AAAA,IACpB;AAAA,IACA,MAAM;AAAA,IACN;AAAA,EACJ,CAAC;AACL;",
|
4
|
+
"sourcesContent": ["//--------------------------------------------------------------------------\nimport { AxiosError, AxiosProgressEvent } from 'axios';\nimport axiosRetry, { isNetworkError, isIdempotentRequestError } from 'axios-retry';\n\n//--------------------------------------------------------------------------\nimport { axiosInstance, uploadSourceFiles as _uploadSourceFiles } 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//------------------------------------------------------------------------------\nfunction shouldRetryRequest(error: AxiosError) {\n const status = error.response?.status;\n\n switch (status) {\n case 403:\n case 404:\n return true;\n\n default:\n return isNetworkError(error) || isIdempotentRequestError(error);\n }\n}\n\n//------------------------------------------------------------------------------\ninstallInterceptors();\n\n//------------------------------------------------------------------------------\nexport * from './_prebuild/wrapper';\n\n//------------------------------------------------------------------------------\ntype UploadSourceFiles = typeof _uploadSourceFiles;\nexport function uploadSourceFiles({\n folder_id,\n body,\n onUploadProgress,\n}: Parameters<UploadSourceFiles>[0] & {\n onUploadProgress?: (e: AxiosProgressEvent) => void;\n}): ReturnType<UploadSourceFiles> {\n return axiosInstance({\n method: 'post',\n url: `/folders/${folder_id}/source-files`,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n data: body,\n onUploadProgress,\n });\n}\n", "/**\n * 3dverse Asset API v1.0\n * # Getting Started\n * \n * Welcome to the 3dverse Asset API. 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 * \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, { AxiosPromise, AxiosError } from 'axios';\n\n//--------------------------------------------------------------------------\ntype UnionKeys<T> = T extends T ? keyof T : never;\ntype StrictUnionHelper<T, TAll> =\n T extends any\n ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never;\ntype StrictUnion<T> = StrictUnionHelper<T, T>;\n\n//--------------------------------------------------------------------------\nexport const axiosInstance = axios.create({\n baseURL: \"https://api.3dverse.com/app/v1\"\n});\n\n//------------------------------------------------------------------------------\nexport function setBaseURL(baseURL: string) {\n axiosInstance.defaults.baseURL = baseURL;\n}\n\n\n//--------------------------------------------------------------------------\n// Retrieve a list of all users in the current application.\nexport type ListUsers_User_UserInfo = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function listUsers(\n {\n offset = 0,\n limit = 10\n } : {\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<ListUsers_User_UserInfo>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Registers the target user in the current application.\nexport type RegisterUser_User_UserInfo = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function registerUser(\n {\n username\n } : {\n username : string;\n }\n) : AxiosPromise<RegisterUser_User_UserInfo>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/users\",\n data: {\n username: username\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Retrieves details about the target user.\nexport type GetUser_User_UserInfo = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function getUser(\n {\n user_id\n } : {\n user_id : string;\n }\n) : AxiosPromise<GetUser_User_UserInfo>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users/\" + user_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates the details of the target user.\nexport function updateUser(\n {\n user_id,\n username\n } : {\n user_id : string;\n username : string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/users/\" + user_id + \"\",\n data: {\n username: username\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the target user.\nexport type DeleteUser_Object = {\n deleted_assets ?: DeleteUser_Object\n};\nexport function deleteUser(\n {\n user_id\n } : {\n user_id : string;\n }\n) : AxiosPromise<DeleteUser_Object>\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/users/\" + user_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Generates a user token. This user token identifies the user when making a request.\nexport type GenerateUserToken_Token = {\n user_token ?: string,\n expires_in ?: number,\n expires_on ?: number\n};\nexport function generateUserToken(\n {\n user_id,\n scope,\n ttl = '1h'\n } : {\n user_id : string;\n scope : \"read\" | \"write\" | \"manage\";\n ttl ?: string;\n }\n) : AxiosPromise<GenerateUserToken_Token>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/users/\" + user_id + \"/tokens\",\n data: {\n scope: scope,\n ttl: ttl\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all user groups.\nexport type GetUserGroups_Group_GroupInfo = {\n group_id : string,\n name : string,\n description ?: string,\n created_at : string,\n members : Array<GetUserGroups_GroupMember_GroupAccess>\n};\nexport type GetUserGroups_GroupMember_GroupAccess = {\n user_id : string,\n joined_at ?: string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport function getUserGroups(\n {\n user_id\n } : {\n user_id : string;\n }\n) : AxiosPromise<Array<GetUserGroups_Group_GroupInfo>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users/\" + user_id + \"/groups\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all upload tasks of the target user.\nexport type GetUserUploadTasks_UploadTask = {\n upload_task_id : string,\n folder_id : string,\n uploaded_at : string,\n uploaded_by : GetUserUploadTasks_Object,\n progress : number,\n download_progress ?: number,\n status : StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string,\n conversion_tasks : Array<GetUserUploadTasks_ConversionTask>\n};\nexport type GetUserUploadTasks_Object = {\n user_id : string,\n username : string\n};\nexport type GetUserUploadTasks_ConversionTask = {\n asset_id : string,\n source_file_id : string,\n source_file_name : string,\n conversion_pipeline : \"auto-detect\" | \"volume\" | \"scene\" | \"texture\" | \"animation\",\n progress : number,\n status : StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string\n};\nexport function getUserUploadTasks(\n {\n user_id,\n offset = 0,\n limit = 10\n } : {\n user_id : string;\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<GetUserUploadTasks_UploadTask>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/users/\" + user_id + \"/upload-tasks\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a new user group.\nexport type CreateGroup_GroupMember_GroupAccess = {\n user_id : string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport type CreateGroup_Group_GroupInfo = {\n group_id : string,\n name : string,\n description ?: string,\n created_at : string,\n members : Array<CreateGroup_GroupMember_GroupAccess_Writable>\n};\nexport type CreateGroup_GroupMember_GroupAccess_Writable = {\n user_id : string,\n joined_at ?: string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport function createGroup(\n {\n name,\n description,\n members\n } : {\n name : string;\n description ?: string;\n members : Array<CreateGroup_GroupMember_GroupAccess>;\n }\n) : AxiosPromise<CreateGroup_Group_GroupInfo>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/groups\",\n data: {\n name: name,\n description: description,\n members: members\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets a group details.\nexport type GetGroup_Group_GroupInfo = {\n group_id : string,\n name : string,\n description ?: string,\n created_at : string,\n members : Array<GetGroup_GroupMember_GroupAccess>\n};\nexport type GetGroup_GroupMember_GroupAccess = {\n user_id : string,\n joined_at ?: string,\n group_access : \"read\" | \"write\" | \"manage\",\n folder_access : \"read\" | \"write\" | \"manage\"\n};\nexport function getGroup(\n {\n group_id\n } : {\n group_id : string;\n }\n) : AxiosPromise<GetGroup_Group_GroupInfo>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/groups/\" + group_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates a group details.\nexport function updateGroupDescription(\n {\n group_id,\n name,\n description\n } : {\n group_id : string;\n name : string;\n description : string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/groups/\" + group_id + \"\",\n data: {\n name: name,\n description: description\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes a group and all its access rights.\nexport function deleteGroup(\n {\n group_id\n } : {\n group_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/groups/\" + group_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Grants member access to the group.\nexport function grantMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id,\n group_access,\n folder_access\n } : {\n group_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n group_access : \"read\" | \"write\" | \"manage\";\n folder_access : \"read\" | \"write\" | \"manage\";\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/groups/\" + group_id + \"/members/\" + member_type + \"/\" + member_id + \"\",\n data: {\n group_access: group_access,\n folder_access: folder_access\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Revoke requested user access to group.\nexport function revokeMemberAccessToGroup(\n {\n group_id,\n member_type,\n member_id\n } : {\n group_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/groups/\" + group_id + \"/members/\" + member_type + \"/\" + member_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all accessible folders\nexport type ListFolders_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: ListFolders_Object,\n subfolders ?: Array<ListFolders_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type ListFolders_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function listFolders(\n {\n offset = 0,\n limit = 10\n } : {\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<ListFolders_Folder>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a folder.\nexport type CreateFolder_Folder = {\n name : string,\n subfolders ?: Array<CreateFolder_Folder>\n};\nexport type CreateFolder_Folder_Writable = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: CreateFolder_Object,\n subfolders ?: Array<CreateFolder_Folder_Writable>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type CreateFolder_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function createFolder(\n {\n name,\n subfolders\n } : {\n name : string;\n subfolders ?: Array<CreateFolder_Folder>;\n }\n) : AxiosPromise<CreateFolder_Folder_Writable>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders\",\n data: {\n name: name,\n subfolders: subfolders\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the requested folder details.\nexport type GetFolderInfo_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: GetFolderInfo_Object,\n subfolders ?: Array<GetFolderInfo_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type GetFolderInfo_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function getFolderInfo(\n {\n folder_id\n } : {\n folder_id : string;\n }\n) : AxiosPromise<GetFolderInfo_Folder>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Move folders inside the specified folder.\nexport function moveFolders(\n {\n folder_id,\n folder_ids\n } : {\n folder_id : string;\n folder_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"\",\n data: folder_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates the folder details.\nexport function updateFolder(\n {\n folder_id,\n name\n } : {\n folder_id : string;\n name ?: string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/folders/\" + folder_id + \"\",\n data: {\n name: name\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the requested folder. The target folder must be empty.\nexport function deleteFolder(\n {\n folder_id\n } : {\n folder_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/folders/\" + folder_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// List member access to the targeted folder.\nexport type ListFolderAccesses_Object = {\n users ?: Array<ListFolderAccesses_UserInfo_FolderAccess>,\n groups ?: Array<ListFolderAccesses_GroupInfo_FolderAccess>\n};\nexport type ListFolderAccesses_UserInfo_FolderAccess = {\n user_id : string,\n username : string,\n access : \"read\" | \"write\" | \"manage\"\n};\nexport type ListFolderAccesses_GroupInfo_FolderAccess = {\n group_id : string,\n name : string,\n access : \"read\" | \"write\" | \"manage\"\n};\nexport function listFolderAccesses(\n {\n folder_id\n } : {\n folder_id : string;\n }\n) : AxiosPromise<ListFolderAccesses_Object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/access\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Grants member access to the targeted folder.\nexport function grantMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id,\n access\n } : {\n folder_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n access : \"read\" | \"write\" | \"manage\";\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"/access/\" + member_type + \"/\" + member_id + \"\",\n data: {\n access: access\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Revokes member access to a target folder.\nexport function revokeMemberAccessToFolder(\n {\n folder_id,\n member_type,\n member_id\n } : {\n folder_id : string;\n member_type : \"users\" | \"groups\";\n member_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/folders/\" + folder_id + \"/access/\" + member_type + \"/\" + member_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a subfolder.\nexport type CreateSubfolder_Folder = {\n name : string,\n subfolders ?: Array<CreateSubfolder_Folder>\n};\nexport type CreateSubfolder_Folder_Writable = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: CreateSubfolder_Object,\n subfolders ?: Array<CreateSubfolder_Folder_Writable>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type CreateSubfolder_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function createSubfolder(\n {\n folder_id,\n name,\n subfolders\n } : {\n folder_id : string;\n name : string;\n subfolders ?: Array<CreateSubfolder_Folder>;\n }\n) : AxiosPromise<CreateSubfolder_Folder_Writable>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders/\" + folder_id + \"/folders\",\n data: {\n name: name,\n subfolders: subfolders\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all subfolders of requested folder. This request can be recursive.\nexport type ListFolderSubFolders_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: ListFolderSubFolders_Object,\n subfolders ?: Array<ListFolderSubFolders_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type ListFolderSubFolders_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function listFolderSubFolders(\n {\n folder_id,\n depth = 0\n } : {\n folder_id : string;\n depth ?: number;\n }\n) : AxiosPromise<Array<ListFolderSubFolders_Folder>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/folders\",\n params: {\n depth: depth\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Uploads the specified source file(s).\nexport type UploadSourceFiles_Object = {\n upload_task_id ?: string\n};\nexport function uploadSourceFiles(\n {\n folder_id,\n body\n } : {\n folder_id : string;\n body : FormData;\n }\n) : AxiosPromise<UploadSourceFiles_Object>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders/\" + folder_id + \"/source-files\",\n headers: {\n \"Content-Type\": \"multipart/form-data\"\n },\n data: body\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all source files in a folder.\nexport type GetSourceFilesInFolder_Filters = {\n source_file_name ?: string\n};\nexport type GetSourceFilesInFolder_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function getSourceFilesInFolder(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filters\n } : {\n folder_id : string;\n offset ?: number;\n limit ?: number;\n filters ?: GetSourceFilesInFolder_Filters;\n }\n) : AxiosPromise<Array<GetSourceFilesInFolder_SourceFile>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/source-files\",\n params: {\n offset: offset,\n limit: limit,\n filters: filters\n }\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(response.headers['x-source-files-count']) as number;\n return response;\n });\n}\n\n//--------------------------------------------------------------------------\n// Move source files inside the specified folder.\nexport function moveSourceFiles(\n {\n folder_id,\n source_file_ids\n } : {\n folder_id : string;\n source_file_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"/source-files\",\n data: source_file_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all upload tasks in a folder.\nexport type GetUploadTasksInFolder_UploadTask = {\n upload_task_id : string,\n folder_id : string,\n uploaded_at : string,\n uploaded_by : GetUploadTasksInFolder_Object,\n progress : number,\n download_progress ?: number,\n status : StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string,\n conversion_tasks : Array<GetUploadTasksInFolder_ConversionTask>\n};\nexport type GetUploadTasksInFolder_Object = {\n user_id : string,\n username : string\n};\nexport type GetUploadTasksInFolder_ConversionTask = {\n asset_id : string,\n source_file_id : string,\n source_file_name : string,\n conversion_pipeline : \"auto-detect\" | \"volume\" | \"scene\" | \"texture\" | \"animation\",\n progress : number,\n status : StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string\n};\nexport function getUploadTasksInFolder(\n {\n folder_id,\n offset = 0,\n limit = 10\n } : {\n folder_id : string;\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<Array<GetUploadTasksInFolder_UploadTask>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/upload-tasks\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists assets.\nexport type GetFolderAssets_Filter = {\n asset_type ?: (Array<\"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"> | \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"),\n asset_name ?: string,\n include_public_assets ?: boolean\n};\nexport type GetFolderAssets__index_AssetList_AssetList = {\n action_maps ?: Array<GetFolderAssets_Object>,\n algorithms ?: Array<GetFolderAssets_Object>,\n animation_graphs ?: Array<GetFolderAssets_Object>,\n animation_sequences ?: Array<GetFolderAssets_Object>,\n animation_sets ?: Array<GetFolderAssets_Object>,\n animations ?: Array<GetFolderAssets_Object>,\n collision_geometries ?: Array<GetFolderAssets_Object>,\n cubemaps ?: Array<GetFolderAssets_Object>,\n event_maps ?: Array<GetFolderAssets_Object>,\n materials ?: Array<GetFolderAssets_Object>,\n meshes ?: Array<GetFolderAssets_Object>,\n modules ?: Array<GetFolderAssets_Object>,\n point_clouds ?: Array<GetFolderAssets_Object>,\n render_graphs ?: Array<GetFolderAssets_Object>,\n scenes ?: Array<GetFolderAssets_Object>,\n scripts ?: Array<GetFolderAssets_Object>,\n shaders ?: Array<GetFolderAssets_Object>,\n skeletons ?: Array<GetFolderAssets_Object>,\n sounds ?: Array<GetFolderAssets_Object>,\n textures ?: Array<GetFolderAssets_Object>,\n textures_1d ?: Array<GetFolderAssets_Object>,\n textures_3d ?: Array<GetFolderAssets_Object>,\n volume_materials ?: Array<GetFolderAssets_Object>\n};\nexport type GetFolderAssets_Object = {\n asset_id : string,\n name : string\n};\nexport function getFolderAssets(\n {\n folder_id,\n offset = 0,\n limit = 10,\n filter\n } : {\n folder_id : string;\n offset ?: number;\n limit ?: number;\n filter ?: GetFolderAssets_Filter;\n }\n) : AxiosPromise<GetFolderAssets__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/assets\",\n params: {\n offset: offset,\n limit: limit,\n filter: filter\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a new asset.\nexport type CreateAsset_NewAsset = {\n asset_type : \"action_map\" | \"algorithm\" | \"animation_graph\" | \"animation_sequence\" | \"cubemap\" | \"event_map\" | \"material\" | \"module\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"volume_material\",\n name : string\n};\nexport type CreateAsset_AssetDuplication = {\n asset_type : \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\",\n copy_from_asset_id : string,\n new_asset_name ?: string,\n options ?: CreateAsset_DuplicationOptions\n};\nexport type CreateAsset_DuplicationOptions = {\n asset_types ?: Array<\"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\">,\n max_depth ?: number\n};\nexport type CreateAsset_AssetDuplicationResult = {\n asset_id : string,\n name : string,\n source_to_copy_asset_id_map ?: CreateAsset_SourceToCopyAssetIdMap\n};\nexport type CreateAsset_SourceToCopyAssetIdMap = {\n [source_asset_id: string] : string\n};\nexport function createAsset(\n {\n folder_id,\n asset_creation_options\n } : {\n folder_id : string;\n asset_creation_options : StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication>;\n }\n) : AxiosPromise<CreateAsset_AssetDuplicationResult>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/folders/\" + folder_id + \"/assets\",\n data: asset_creation_options\n });\n}\n\n//--------------------------------------------------------------------------\n// Move assets inside the specified folder.\nexport function moveAssets(\n {\n folder_id,\n asset_ids\n } : {\n folder_id : string;\n asset_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/folders/\" + folder_id + \"/assets\",\n data: asset_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all sessions running on scenes contained in a specified folder.\nexport type GetSessionsInFolder_Session = {\n session_id : string,\n scene_id : string,\n scene_name : string,\n folder_id : string,\n max_users : number,\n creator_user_id : string,\n created_at : string,\n country_code : string,\n continent_code : string,\n is_transient_session : boolean,\n clients : Array<GetSessionsInFolder_UserInfo>\n};\nexport type GetSessionsInFolder_UserInfo = {\n client_id ?: string,\n client_type ?: StrictUnion<'user' | 'guest'>,\n user_id : string,\n username : string\n};\nexport function getSessionsInFolder(\n {\n folder_id\n } : {\n folder_id : string;\n }\n) : AxiosPromise<Array<GetSessionsInFolder_Session>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/folders/\" + folder_id + \"/sessions\"\n });\n}\n\n//--------------------------------------------------------------------------\n// List source files.\nexport type ListSourceFiles_Filters = {\n source_file_name ?: string\n};\nexport type ListSourceFiles_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function listSourceFiles(\n {\n offset = 0,\n limit = 10,\n filters\n } : {\n offset ?: number;\n limit ?: number;\n filters ?: ListSourceFiles_Filters;\n }\n) : AxiosPromise<Array<ListSourceFiles_SourceFile>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files\",\n params: {\n offset: offset,\n limit: limit,\n filters: filters\n }\n }).then(response => {\n response.headers['x-source-files-count'] = JSON.parse(response.headers['x-source-files-count']) as number;\n return response;\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the target source files. Deleting a source file is permanent.\nexport function deleteSourceFiles(\n {\n source_file_ids\n } : {\n source_file_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/source-files\",\n data: source_file_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Downloads the target source file.\nexport function downloadSourceFile(\n {\n source_file_id\n } : {\n source_file_id : string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files/\" + source_file_id + \"\",\n responseType: \"arraybuffer\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Get source file details.\nexport type GetSourceFileDetails_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function getSourceFileDetails(\n {\n source_file_id\n } : {\n source_file_id : string;\n }\n) : AxiosPromise<GetSourceFileDetails_SourceFile>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files/\" + source_file_id + \"/details\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates details for a specific source file.\nexport function updateSourceFileDetails(\n {\n source_file_id,\n name\n } : {\n source_file_id : string;\n name : string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/source-files/\" + source_file_id + \"/details\",\n data: {\n name: name\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all assets generated from the requested source file.\nexport type GetSourceFileAssets__index_AssetList_AssetList = {\n action_maps ?: Array<GetSourceFileAssets_Object>,\n algorithms ?: Array<GetSourceFileAssets_Object>,\n animation_graphs ?: Array<GetSourceFileAssets_Object>,\n animation_sequences ?: Array<GetSourceFileAssets_Object>,\n animation_sets ?: Array<GetSourceFileAssets_Object>,\n animations ?: Array<GetSourceFileAssets_Object>,\n collision_geometries ?: Array<GetSourceFileAssets_Object>,\n cubemaps ?: Array<GetSourceFileAssets_Object>,\n event_maps ?: Array<GetSourceFileAssets_Object>,\n materials ?: Array<GetSourceFileAssets_Object>,\n meshes ?: Array<GetSourceFileAssets_Object>,\n modules ?: Array<GetSourceFileAssets_Object>,\n point_clouds ?: Array<GetSourceFileAssets_Object>,\n render_graphs ?: Array<GetSourceFileAssets_Object>,\n scenes ?: Array<GetSourceFileAssets_Object>,\n scripts ?: Array<GetSourceFileAssets_Object>,\n shaders ?: Array<GetSourceFileAssets_Object>,\n skeletons ?: Array<GetSourceFileAssets_Object>,\n sounds ?: Array<GetSourceFileAssets_Object>,\n textures ?: Array<GetSourceFileAssets_Object>,\n textures_1d ?: Array<GetSourceFileAssets_Object>,\n textures_3d ?: Array<GetSourceFileAssets_Object>,\n volume_materials ?: Array<GetSourceFileAssets_Object>\n};\nexport type GetSourceFileAssets_Object = {\n asset_id : string,\n name : string\n};\nexport function getSourceFileAssets(\n {\n source_file_id\n } : {\n source_file_id : string;\n }\n) : AxiosPromise<GetSourceFileAssets__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/source-files/\" + source_file_id + \"/assets\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all upload tasks. These upload tasks relate to uploaded source files.\nexport function getUploadTasks(\n {\n offset = 0,\n limit = 10\n } : {\n offset ?: number;\n limit ?: number;\n }\n) : AxiosPromise<any>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/upload-tasks\",\n params: {\n offset: offset,\n limit: limit\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets information related to an upload task. This upload task relates to uploaded source files.\nexport type GetUploadTask_UploadTask = {\n upload_task_id : string,\n folder_id : string,\n uploaded_at : string,\n uploaded_by : GetUploadTask_Object,\n progress : number,\n download_progress ?: number,\n status : StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string,\n conversion_tasks : Array<GetUploadTask_ConversionTask>\n};\nexport type GetUploadTask_Object = {\n user_id : string,\n username : string\n};\nexport type GetUploadTask_ConversionTask = {\n asset_id : string,\n source_file_id : string,\n source_file_name : string,\n conversion_pipeline : \"auto-detect\" | \"volume\" | \"scene\" | \"texture\" | \"animation\",\n progress : number,\n status : StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string\n};\nexport function getUploadTask(\n {\n upload_task_id\n } : {\n upload_task_id : string;\n }\n) : AxiosPromise<GetUploadTask_UploadTask>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/upload-tasks/\" + upload_task_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Returns a list of all assets.\nexport type ListAssets_Filter = {\n asset_type ?: (Array<\"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"> | \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"),\n asset_name ?: string,\n include_public_assets ?: boolean\n};\nexport type ListAssets__index_AssetList_AssetList = {\n action_maps ?: Array<ListAssets_Object>,\n algorithms ?: Array<ListAssets_Object>,\n animation_graphs ?: Array<ListAssets_Object>,\n animation_sequences ?: Array<ListAssets_Object>,\n animation_sets ?: Array<ListAssets_Object>,\n animations ?: Array<ListAssets_Object>,\n collision_geometries ?: Array<ListAssets_Object>,\n cubemaps ?: Array<ListAssets_Object>,\n event_maps ?: Array<ListAssets_Object>,\n materials ?: Array<ListAssets_Object>,\n meshes ?: Array<ListAssets_Object>,\n modules ?: Array<ListAssets_Object>,\n point_clouds ?: Array<ListAssets_Object>,\n render_graphs ?: Array<ListAssets_Object>,\n scenes ?: Array<ListAssets_Object>,\n scripts ?: Array<ListAssets_Object>,\n shaders ?: Array<ListAssets_Object>,\n skeletons ?: Array<ListAssets_Object>,\n sounds ?: Array<ListAssets_Object>,\n textures ?: Array<ListAssets_Object>,\n textures_1d ?: Array<ListAssets_Object>,\n textures_3d ?: Array<ListAssets_Object>,\n volume_materials ?: Array<ListAssets_Object>\n};\nexport type ListAssets_Object = {\n asset_id : string,\n name : string\n};\nexport function listAssets(\n {\n offset = 0,\n limit = 10,\n filter\n } : {\n offset ?: number;\n limit ?: number;\n filter ?: ListAssets_Filter;\n }\n) : AxiosPromise<ListAssets__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets\",\n params: {\n offset: offset,\n limit: limit,\n filter: filter\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Batch delete assets. You **MUST NOT** reference assets.\nexport function deleteAssets(\n {\n asset_ids\n } : {\n asset_ids : Array<string>;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/assets\",\n data: asset_ids\n });\n}\n\n//--------------------------------------------------------------------------\n// Deletes the asset.\nexport function deleteAsset(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the source file of the specified asset.\nexport type GetAssetSourceFile_SourceFile = {\n source_file_id : string,\n source_file_original_name : string,\n name : string,\n size : number\n};\nexport function getAssetSourceFile(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetSourceFile_SourceFile>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/source-file\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset details from the specified asset.\nexport type GetAssetDetails__index_AssetDetails_AssetDetails = {\n asset_id : string,\n contributors ?: Array<GetAssetDetails_Contributor>,\n created_at ?: string,\n created_by ?: GetAssetDetails_Object,\n last_edited_at ?: string,\n last_edited_by ?: GetAssetDetails_Object,\n name : string,\n type : \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"\n};\nexport type GetAssetDetails_Contributor = {\n contribution_count : number,\n user : GetAssetDetails_Object\n};\nexport type GetAssetDetails_Object = {\n registered_at : string,\n user_id : string,\n username : string\n};\nexport function getAssetDetails(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetDetails__index_AssetDetails_AssetDetails>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/details\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset folder from the specified asset.\nexport type GetAssetFolder_Folder = {\n folder_id : string,\n parent_folder_id ?: string,\n name : string,\n created_at ?: string,\n created_by ?: GetAssetFolder_Object,\n subfolders ?: Array<GetAssetFolder_Folder>,\n source_file_count ?: number,\n asset_count ?: number\n};\nexport type GetAssetFolder_Object = {\n user_id : string,\n username : string,\n registered_at ?: string\n};\nexport function getAssetFolder(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetFolder_Folder>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/folder\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset dependencies from the specified asset.\nexport type GetAssetDependencies_Filter = {\n asset_type ?: \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"\n};\nexport type GetAssetDependencies_Flat = {\n action_maps ?: Array<GetAssetDependencies_Object>,\n algorithms ?: Array<GetAssetDependencies_Object>,\n animation_graphs ?: Array<GetAssetDependencies_Object>,\n animation_sequences ?: Array<GetAssetDependencies_Object>,\n animation_sets ?: Array<GetAssetDependencies_Object>,\n animations ?: Array<GetAssetDependencies_Object>,\n collision_geometries ?: Array<GetAssetDependencies_Object>,\n cubemaps ?: Array<GetAssetDependencies_Object>,\n event_maps ?: Array<GetAssetDependencies_Object>,\n materials ?: Array<GetAssetDependencies_Object>,\n meshes ?: Array<GetAssetDependencies_Object>,\n modules ?: Array<GetAssetDependencies_Object>,\n point_clouds ?: Array<GetAssetDependencies_Object>,\n render_graphs ?: Array<GetAssetDependencies_Object>,\n scenes ?: Array<GetAssetDependencies_Object>,\n scripts ?: Array<GetAssetDependencies_Object>,\n shaders ?: Array<GetAssetDependencies_Object>,\n skeletons ?: Array<GetAssetDependencies_Object>,\n sounds ?: Array<GetAssetDependencies_Object>,\n textures ?: Array<GetAssetDependencies_Object>,\n textures_1d ?: Array<GetAssetDependencies_Object>,\n textures_3d ?: Array<GetAssetDependencies_Object>,\n volume_materials ?: Array<GetAssetDependencies_Object>\n};\nexport type GetAssetDependencies_Object = {\n asset_id : string,\n name : string\n};\nexport type GetAssetDependencies__index_AssetItem_AssetItem = {\n asset_id : string,\n name : string,\n asset_type : \"action_map\" | \"algorithm\" | \"animation\" | \"animation_graph\" | \"animation_sequence\" | \"animation_set\" | \"collision_geometry\" | \"cubemap\" | \"event_map\" | \"material\" | \"mesh\" | \"module\" | \"point_cloud\" | \"render_graph\" | \"scene\" | \"script\" | \"shader\" | \"skeleton\" | \"sound\" | \"texture\" | \"texture_1d\" | \"texture_3d\" | \"volume_material\"\n};\nexport function getAssetDependencies(\n {\n asset_container,\n asset_id,\n format = 'flat',\n depth = 'all',\n filter\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n format ?: StrictUnion<'flat' | 'graph'>;\n depth ?: StrictUnion<'all' | 'direct'>;\n filter ?: GetAssetDependencies_Filter;\n }\n) : AxiosPromise<(GetAssetDependencies_Flat | Array<Array<GetAssetDependencies__index_AssetItem_AssetItem>>)>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/dependencies\",\n params: {\n format: format,\n depth: depth,\n filter: filter\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset references from the specified asset.\nexport type GetAssetReferences__index_AssetList_AssetList = {\n action_maps ?: Array<GetAssetReferences_Object>,\n algorithms ?: Array<GetAssetReferences_Object>,\n animation_graphs ?: Array<GetAssetReferences_Object>,\n animation_sequences ?: Array<GetAssetReferences_Object>,\n animation_sets ?: Array<GetAssetReferences_Object>,\n animations ?: Array<GetAssetReferences_Object>,\n collision_geometries ?: Array<GetAssetReferences_Object>,\n cubemaps ?: Array<GetAssetReferences_Object>,\n event_maps ?: Array<GetAssetReferences_Object>,\n materials ?: Array<GetAssetReferences_Object>,\n meshes ?: Array<GetAssetReferences_Object>,\n modules ?: Array<GetAssetReferences_Object>,\n point_clouds ?: Array<GetAssetReferences_Object>,\n render_graphs ?: Array<GetAssetReferences_Object>,\n scenes ?: Array<GetAssetReferences_Object>,\n scripts ?: Array<GetAssetReferences_Object>,\n shaders ?: Array<GetAssetReferences_Object>,\n skeletons ?: Array<GetAssetReferences_Object>,\n sounds ?: Array<GetAssetReferences_Object>,\n textures ?: Array<GetAssetReferences_Object>,\n textures_1d ?: Array<GetAssetReferences_Object>,\n textures_3d ?: Array<GetAssetReferences_Object>,\n volume_materials ?: Array<GetAssetReferences_Object>\n};\nexport type GetAssetReferences_Object = {\n asset_id : string,\n name : string\n};\nexport function getAssetReferences(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<GetAssetReferences__index_AssetList_AssetList>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/references\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset description from the specified asset.\nexport type GetAssetDescription_ActionMap = {\n actions : GetAssetDescription_Object\n};\nexport type GetAssetDescription_Object = {\n [action_name: string] : object\n};\nexport type GetAssetDescription_Algorithm = {\n inputDescriptor : Array<object>,\n outputDescriptor : Array<object>\n};\nexport type GetAssetDescription_Animation = {\n animationEventTrack : GetAssetDescription_Object,\n durationInMs : number,\n payloadSize : number,\n skeletonRef ?: string\n};\nexport type GetAssetDescription_AnimationGraph = {\n inputDescriptor : object,\n stateMachines : Array<GetAssetDescription_Object>\n};\nexport type GetAssetDescription_AnimationSequence = {\n inputDescriptor : object\n};\nexport type GetAssetDescription_AnimationSet = {\n animationGraphUUID : string,\n animationSet : GetAssetDescription_Object\n};\nexport type GetAssetDescription_CollisionGeometry = {\n geometryType : StrictUnion<0 | 1>,\n payloadSize : number\n};\nexport type GetAssetDescription_Cubemap = {\n faces : Array<string>\n};\nexport type GetAssetDescription_EventMap = {\n eventDescriptors : GetAssetDescription_Object\n};\nexport type GetAssetDescription_Material = {\n dataJson : object,\n isDoubleSided : boolean,\n shaderRef : string,\n skinnedShaderRef : string\n};\nexport type GetAssetDescription_Mesh = {\n payloadSize : number,\n submeshes : Array<GetAssetDescription_Submesh>\n};\nexport type GetAssetDescription_Submesh = {\n boundingBox : GetAssetDescription_BoundingBox,\n channels : Array<GetAssetDescription_Channel>,\n indexCount : number,\n payloadSize : number,\n vertexCount : number\n};\nexport type GetAssetDescription_BoundingBox = {\n max : Array<number>,\n min : Array<number>\n};\nexport type GetAssetDescription_Channel = {\n dataOffset : number,\n dataSize : number,\n elementCount : number,\n elementSize : number,\n elementType : StrictUnion<0 | 1 | 2> & number,\n semantic : \"invalid\" | \"index\" | \"position\" | \"normal\" | \"uv\" | \"color\" | \"bone_id\" | \"weight\"\n};\nexport type GetAssetDescription_Module = {\n functions : GetAssetDescription_Object\n};\nexport type GetAssetDescription_PointCloud = {\n format : \"invalid\" | \"xyz32\" | \"xyz32_rgb8\",\n payloadTotalSize : number,\n pointCount : number,\n scale ?: Array<number>,\n translation ?: Array<number>\n};\nexport type GetAssetDescription_Scene = {\n aabb : GetAssetDescription_Aabb,\n animationSequenceInstances ?: Array<GetAssetDescription_Object>,\n entities : Array<object>,\n settings ?: object,\n triangleCount : number\n};\nexport type GetAssetDescription_Aabb = {\n max : Array<number>,\n min : Array<number>\n};\nexport type GetAssetDescription_Script = {\n eventNames : Array<string>,\n inputDescriptor ?: object,\n subScripts ?: Array<string>\n};\nexport type GetAssetDescription_Shader = {\n blendMode ?: \"invalid\" | \"opaque\" | \"alpha_blended\" | \"masked\",\n localGroupCount ?: Array<number>,\n materialDescriptor ?: object,\n moduleDescriptions ?: Array<GetAssetDescription_Object>,\n nodeDataDescriptor ?: object,\n optGlobalGroupMultiplier ?: Array<number>,\n optGlobalGroupReference ?: \"render_target_automatic_split\" | \"render_target_exact\" | \"output_render_target_exact\" | \"instances_buffer\" | \"point_cloud_input_buffer\",\n payloadSize : number,\n shaderStages ?: number,\n vertexDescriptor ?: Array<GetAssetDescription_Object>\n};\nexport type GetAssetDescription_Skeleton = {\n bones : Array<GetAssetDescription_Object>,\n payloadSize : number\n};\nexport type GetAssetDescription_Sound = {\n bitDepth : number,\n channelCount : number,\n durationInMs : number,\n payloadSize : number,\n sampleCount : number,\n sampleFrequencyInHz : number\n};\nexport type GetAssetDescription_Texture = {\n format : \"invalid\" | \"r8s\" | \"r8u\" | \"r16s\" | \"r16u\" | \"bc1\" | \"bc1a\" | \"bc2\" | \"bc3\" | \"bc3n\" | \"bc4\" | \"bc5\" | \"bc6\" | \"bc7\" | \"rgba8\",\n mips : Array<GetAssetDescription_Object>,\n payloadTotalSize : number\n};\nexport type GetAssetDescription_Texture_1D = {\n format : \"invalid\" | \"r8s\" | \"r8u\" | \"r16s\" | \"r16u\" | \"bc1\" | \"bc1a\" | \"bc2\" | \"bc3\" | \"bc3n\" | \"bc4\" | \"bc5\" | \"bc6\" | \"bc7\" | \"rgba8\",\n mips : Array<GetAssetDescription_Object>,\n payloadTotalSize : number\n};\nexport type GetAssetDescription_Texture_3D = {\n format : \"invalid\" | \"r8s\" | \"r8u\" | \"r16s\" | \"r16u\" | \"bc1\" | \"bc1a\" | \"bc2\" | \"bc3\" | \"bc3n\" | \"bc4\" | \"bc5\" | \"bc6\" | \"bc7\" | \"rgba8\",\n mips : Array<GetAssetDescription_Object>,\n payloadTotalSize : number,\n voxelDimensions ?: Array<number>\n};\nexport type GetAssetDescription_VolumeMaterial = {\n albedoLUT ?: Array<GetAssetDescription_Object>,\n metallicLUT ?: Array<GetAssetDescription_Object>,\n opacityLUT ?: Array<GetAssetDescription_Object>,\n rangeMax : number,\n rangeMin : number,\n roughnessLUT ?: Array<GetAssetDescription_Object>\n};\nexport type GetAssetDescription__index_AssetDescription_AssetDescription = {\n name : string,\n uuid : string\n};\nexport function getAssetDescription(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<StrictUnion<GetAssetDescription_ActionMap | GetAssetDescription_Algorithm | GetAssetDescription_Animation | GetAssetDescription_AnimationGraph | GetAssetDescription_AnimationSequence | GetAssetDescription_AnimationSet | GetAssetDescription_CollisionGeometry | GetAssetDescription_Cubemap | GetAssetDescription_EventMap | GetAssetDescription_Material | GetAssetDescription_Mesh | GetAssetDescription_Module | GetAssetDescription_PointCloud | GetAssetDescription_Scene | GetAssetDescription_Script | GetAssetDescription_Shader | GetAssetDescription_Skeleton | GetAssetDescription_Sound | GetAssetDescription_Texture | GetAssetDescription_Texture_1D | GetAssetDescription_Texture_3D | GetAssetDescription_VolumeMaterial> & GetAssetDescription__index_AssetDescription_AssetDescription>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/description\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Updates asset description. Supports only updating name.\nexport function renameAsset(\n {\n asset_container,\n asset_id,\n name\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n name ?: string;\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/description\",\n data: {\n name: name\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset payload from the specified asset.\nexport function getAssetPayload(\n {\n asset_container_with_payload,\n asset_id\n } : {\n asset_container_with_payload : \"animations\" | \"animation_sequences\" | \"collision_geometries\" | \"meshes\" | \"point_clouds\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\";\n asset_id : string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_with_payload + \"/\" + asset_id + \"/payload\",\n responseType: \"arraybuffer\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset history from the specified asset.\nexport function getAssetHistory(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/history\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset metadata from the specified asset.\nexport function getAssetMeta(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/meta\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the code of the specified asset.\nexport function getAssetCode(\n {\n asset_container_with_code,\n asset_id\n } : {\n asset_container_with_code : \"algorithms\" | \"animation_sequences\" | \"modules\" | \"scripts\" | \"shaders\";\n asset_id : string;\n }\n) : AxiosPromise<string>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_with_code + \"/\" + asset_id + \"/code\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset thumbnail from the specified asset.\nexport function getAssetThumbnail(\n {\n asset_container,\n asset_id,\n size,\n default_url\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n size : \"large\" | \"medium\" | \"small\" | \"tiny\";\n default_url ?: string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/thumbnail\",\n responseType: \"arraybuffer\",\n params: {\n size: size,\n default_url: default_url\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Assigns a thumbnail to the specified asset.\nexport function setAssetThumbnail(\n {\n asset_container,\n asset_id,\n body\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n body : ArrayBuffer;\n },\n contentType : 'image/jpg' | 'image/png'\n)\n{\n return axiosInstance({\n method: \"put\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/thumbnail\",\n headers: {\n \"Content-Type\": contentType\n },\n data: body\n });\n}\n\n//--------------------------------------------------------------------------\n// Gets the asset custom types from the specified asset recursively.\nexport function getAssetCustomTypes(\n {\n asset_container_with_custom_types,\n asset_id\n } : {\n asset_container_with_custom_types : \"modules\";\n asset_id : string;\n }\n) : AxiosPromise<object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_with_custom_types + \"/\" + asset_id + \"/custom-types\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Packages and downloads the target asset.\nexport function packageAsset(\n {\n asset_container,\n asset_id\n } : {\n asset_container : \"action_maps\" | \"algorithms\" | \"animations\" | \"animation_graphs\" | \"animation_sequences\" | \"animation_sets\" | \"collision_geometries\" | \"cubemaps\" | \"event_maps\" | \"materials\" | \"meshes\" | \"modules\" | \"point_clouds\" | \"render_graphs\" | \"scenes\" | \"scripts\" | \"shaders\" | \"skeletons\" | \"sounds\" | \"textures\" | \"textures_1d\" | \"textures_3d\" | \"volume_materials\";\n asset_id : string;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container + \"/\" + asset_id + \"/package\",\n responseType: \"arraybuffer\"\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.\nexport function exportAsset(\n {\n asset_container_exportable,\n asset_id,\n format,\n scale = 1\n } : {\n asset_container_exportable : \"meshes\" | \"sounds\";\n asset_id : string;\n format : \"obj\" | \"stl\";\n scale ?: number;\n }\n) : AxiosPromise<ArrayBuffer>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/\" + asset_container_exportable + \"/\" + asset_id + \"/exports/\" + format + \"\",\n responseType: \"arraybuffer\",\n params: {\n scale: scale\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all sessions running a specified scene.\nexport type GetSceneSessions_Session = {\n session_id : string,\n scene_id : string,\n scene_name : string,\n folder_id : string,\n max_users : number,\n creator_user_id : string,\n created_at : string,\n country_code : string,\n continent_code : string,\n is_transient_session : boolean,\n clients : Array<GetSceneSessions_UserInfo>\n};\nexport type GetSceneSessions_UserInfo = {\n client_id ?: string,\n client_type ?: StrictUnion<'user' | 'guest'>,\n user_id : string,\n username : string\n};\nexport function getSceneSessions(\n {\n scene_id\n } : {\n scene_id : string;\n }\n) : AxiosPromise<Array<GetSceneSessions_Session>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/scenes/\" + scene_id + \"/sessions\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Get the axis aligned bounding box of the specified scene.\nexport type GetSceneAabb_Object = {\n max : Array<number>,\n min : Array<number>\n};\nexport function getSceneAABB(\n {\n scene_id\n } : {\n scene_id : string;\n }\n) : AxiosPromise<GetSceneAabb_Object>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/scenes/\" + scene_id + \"/aabb\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Get a specific entity from a scene\nexport type GetEntity_animation_controller = {\n animation_controller : GetEntity_AnimationController\n};\nexport type GetEntity_AnimationController = {\n animationGraphRef : string,\n animationSetRef : string,\n dataJSON : object,\n rootBoneEntityRef : GetEntity_EntityReference,\n rootMotionEnabled : boolean\n};\nexport type GetEntity_EntityReference = {\n originalEUID : string,\n linkage : Array<string>\n};\nexport type GetEntity_bone = {\n bone : GetEntity_Bone\n};\nexport type GetEntity_Bone = {\n boneIndex : number\n};\nexport type GetEntity_box_geometry = {\n box_geometry : GetEntity_BoxGeometry\n};\nexport type GetEntity_BoxGeometry = {\n dimension ?: Array<number>,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_camera = {\n camera : GetEntity_Camera\n};\nexport type GetEntity_Camera = {\n renderGraphRef : string,\n renderTargetIndex ?: number,\n dataJSON : object\n};\nexport type GetEntity_capsule_geometry = {\n capsule_geometry : GetEntity_CapsuleGeometry\n};\nexport type GetEntity_CapsuleGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_character_controller = {\n character_controller : GetEntity_CharacterController\n};\nexport type GetEntity_CharacterController = {\n stepOffset ?: number,\n slopeLimit ?: number,\n skinWidth ?: number,\n velocity ?: Array<number>\n};\nexport type GetEntity_collision_geometry_ref = {\n collision_geometry_ref : GetEntity_CollisionGeometryRef\n};\nexport type GetEntity_CollisionGeometryRef = {\n collisionGeometryRef : string\n};\nexport type GetEntity_cylinder_geometry = {\n cylinder_geometry : GetEntity_CylinderGeometry\n};\nexport type GetEntity_CylinderGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_debug_name = {\n debug_name : GetEntity_Name\n};\nexport type GetEntity_Name = {\n value : string\n};\nexport type GetEntity_decal_projector = {\n decal_projector : GetEntity_DecalProjector\n};\nexport type GetEntity_DecalProjector = {\n zIndex ?: number\n};\nexport type GetEntity_environment = {\n environment : GetEntity_Environment\n};\nexport type GetEntity_Environment = {\n skyboxUUID : string,\n radianceUUID : string,\n irradianceUUID : string\n};\nexport type GetEntity_joint = {\n joint : GetEntity_Joint\n};\nexport type GetEntity_Joint = {\n constrainee : GetEntity_EntityReference,\n constrainer : GetEntity_EntityReference,\n breakForce ?: number,\n breakTorque ?: number\n};\nexport type GetEntity_lineage = {\n lineage : GetEntity_Lineage\n};\nexport type GetEntity_Lineage = {\n parentUUID : string,\n ordinal ?: number\n};\nexport type GetEntity_local_aabb = {\n local_aabb : GetEntity_LocalAxisAlignedBoundingBox\n};\nexport type GetEntity_LocalAxisAlignedBoundingBox = {\n min : Array<number>,\n max : Array<number>\n};\nexport type GetEntity_local_transform = {\n local_transform : GetEntity_Transform\n};\nexport type GetEntity_Transform = {\n position ?: Array<number>,\n orientation ?: Array<number>,\n scale ?: Array<number>,\n eulerOrientation ?: Array<number>,\n globalEulerOrientation ?: Array<number>\n};\nexport type GetEntity_material = {\n material : GetEntity_Material\n};\nexport type GetEntity_Material = {\n shaderRef : string,\n transparencyMode : number,\n isDoubleSided : boolean,\n dataJSON : object\n};\nexport type GetEntity_material_ref = {\n material_ref : GetEntity_MaterialReference\n};\nexport type GetEntity_MaterialReference = {\n value : string,\n faceCulling ?: number\n};\nexport type GetEntity_mesh_ref = {\n mesh_ref : GetEntity_MeshReference\n};\nexport type GetEntity_MeshReference = {\n value : string,\n submeshIndex ?: number\n};\nexport type GetEntity_orthographic_lens = {\n orthographic_lens : GetEntity_OrthographicLens\n};\nexport type GetEntity_OrthographicLens = {\n left ?: number,\n right ?: number,\n top ?: number,\n bottom ?: number,\n zNear ?: number,\n zFar ?: number\n};\nexport type GetEntity_overrider = {\n overrider : GetEntity_Overrider\n};\nexport type GetEntity_Overrider = {\n deleter ?: boolean,\n entityRef : GetEntity_EntityReference,\n componentsToDetach : Array<number>\n};\nexport type GetEntity_perspective_lens = {\n perspective_lens : GetEntity_PerspectiveLens\n};\nexport type GetEntity_PerspectiveLens = {\n aspectRatio ?: number,\n fovy ?: number,\n nearPlane ?: number,\n farPlane ?: number\n};\nexport type GetEntity_physics_material = {\n physics_material : GetEntity_PhysicsMaterial\n};\nexport type GetEntity_PhysicsMaterial = {\n staticFriction ?: number,\n dynamicFriction ?: number,\n restitution ?: number,\n isTrigger ?: boolean\n};\nexport type GetEntity_plane_geometry = {\n plane_geometry : GetEntity_PlaneGeometry\n};\nexport type GetEntity_PlaneGeometry = {\n distance ?: number,\n normal ?: Array<number>\n};\nexport type GetEntity_point_cloud_ref = {\n point_cloud_ref : GetEntity_PointCloudReference\n};\nexport type GetEntity_PointCloudReference = {\n value : string\n};\nexport type GetEntity_point_light = {\n point_light : GetEntity_Light\n};\nexport type GetEntity_Light = {\n color ?: Array<number>,\n intensity ?: number,\n range ?: number,\n isDirectional ?: boolean,\n isSun ?: boolean\n};\nexport type GetEntity_reflection_probe = {\n reflection_probe : GetEntity_ReflectionProbe\n};\nexport type GetEntity_ReflectionProbe = {\n offset ?: Array<number>,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number\n};\nexport type GetEntity_revolute_joint = {\n revolute_joint : GetEntity_RevoluteJoint\n};\nexport type GetEntity_RevoluteJoint = {\n axis ?: Array<number>,\n anchor ?: Array<number>\n};\nexport type GetEntity_rigid_body = {\n rigid_body : GetEntity_RigidBody\n};\nexport type GetEntity_RigidBody = {\n mass ?: number,\n linearDamping ?: number,\n angularDamping ?: number,\n friction ?: number,\n rollingFriction ?: number,\n spinningFriction ?: number,\n restitution ?: number,\n linearSleepingThreshold ?: number,\n angularSleepingThreshold ?: number,\n isKinematic ?: boolean\n};\nexport type GetEntity_scene_ref = {\n scene_ref : GetEntity_SceneReference\n};\nexport type GetEntity_SceneReference = {\n value : string,\n maxRecursionCount ?: number\n};\nexport type GetEntity_script_element = {\n script_element : GetEntity_ScriptElement\n};\nexport type GetEntity_ScriptElement = {\n scriptRef : string,\n dataJSON : object\n};\nexport type GetEntity_script_map = {\n script_map : GetEntity_ScriptMap\n};\nexport type GetEntity_ScriptMap = {\n elements : object\n};\nexport type GetEntity_shadow_caster = {\n shadow_caster : GetEntity_ShadowCaster\n};\nexport type GetEntity_ShadowCaster = {\n bias ?: number,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number,\n cascadeSplitLambda ?: number,\n cascadeMaxZ ?: number,\n accumulateShadowCascades ?: boolean\n};\nexport type GetEntity_skeleton_ref = {\n skeleton_ref : GetEntity_SkeletonReference\n};\nexport type GetEntity_SkeletonReference = {\n value : string\n};\nexport type GetEntity_sound_ref = {\n sound_ref : GetEntity_SoundReference\n};\nexport type GetEntity_SoundReference = {\n value : string,\n volume ?: number,\n pan ?: number,\n playSpeed ?: number,\n looping ?: boolean\n};\nexport type GetEntity_sphere_geometry = {\n sphere_geometry : GetEntity_SphereGeometry\n};\nexport type GetEntity_SphereGeometry = {\n radius ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type GetEntity_spot_light = {\n spot_light : GetEntity_SpotLight\n};\nexport type GetEntity_SpotLight = {\n cutoff ?: number,\n IESProfile : string\n};\nexport type GetEntity_stereoscopic_lens = {\n stereoscopic_lens : GetEntity_StereoscopicPerspectiveLens\n};\nexport type GetEntity_StereoscopicPerspectiveLens = {\n angleLeft ?: number,\n angleRight ?: number,\n angleUp ?: number,\n angleDown ?: number,\n nearPlane ?: number,\n farPlane ?: number,\n aspectRatio ?: number\n};\nexport type GetEntity_tags = {\n tags : GetEntity_Tags\n};\nexport type GetEntity_Tags = {\n value : Array<string>\n};\nexport type GetEntity_volume_filter = {\n volume_filter : GetEntity_VolumeFilter\n};\nexport type GetEntity_VolumeFilter = {\n range ?: Array<number>,\n applyGaussianFiltering ?: boolean,\n sampleUnfiltered ?: boolean,\n enableMPR ?: boolean,\n enable3D ?: boolean\n};\nexport type GetEntity_volume_material_ref = {\n volume_material_ref : GetEntity_VolumeMaterialReference\n};\nexport type GetEntity_VolumeMaterialReference = {\n value : string\n};\nexport type GetEntity_volume_ref = {\n volume_ref : GetEntity_VolumeReference\n};\nexport type GetEntity_VolumeReference = {\n texture3dRef : string\n};\nexport type GetEntity_Entity = {\n euid : GetEntity_EntityUid\n};\nexport type GetEntity_EntityUid = {\n value : string\n};\nexport function getEntity(\n {\n scene_id,\n entity_id,\n compute_global_transform = false\n } : {\n scene_id : string;\n entity_id : string;\n compute_global_transform ?: boolean;\n }\n) : AxiosPromise<(GetEntity_animation_controller | GetEntity_bone | GetEntity_box_geometry | GetEntity_camera | GetEntity_capsule_geometry | GetEntity_character_controller | GetEntity_collision_geometry_ref | GetEntity_cylinder_geometry | GetEntity_debug_name | GetEntity_decal_projector | GetEntity_environment | GetEntity_joint | GetEntity_lineage | GetEntity_local_aabb | GetEntity_local_transform | GetEntity_material | GetEntity_material_ref | GetEntity_mesh_ref | GetEntity_orthographic_lens | GetEntity_overrider | GetEntity_perspective_lens | GetEntity_physics_material | GetEntity_plane_geometry | GetEntity_point_cloud_ref | GetEntity_point_light | GetEntity_reflection_probe | GetEntity_revolute_joint | GetEntity_rigid_body | GetEntity_scene_ref | GetEntity_script_element | GetEntity_script_map | GetEntity_shadow_caster | GetEntity_skeleton_ref | GetEntity_sound_ref | GetEntity_sphere_geometry | GetEntity_spot_light | GetEntity_stereoscopic_lens | GetEntity_tags | GetEntity_volume_filter | GetEntity_volume_material_ref | GetEntity_volume_ref) & GetEntity_Entity>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/assets/scenes/\" + scene_id + \"/entities/\" + entity_id + \"\",\n params: {\n compute_global_transform: compute_global_transform\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Update a specific entity from a scene\nexport type UpdateEntity_animation_controller = {\n animation_controller : UpdateEntity_AnimationController\n};\nexport type UpdateEntity_AnimationController = {\n animationGraphRef : string,\n animationSetRef : string,\n dataJSON : object,\n rootBoneEntityRef : UpdateEntity_EntityReference,\n rootMotionEnabled : boolean\n};\nexport type UpdateEntity_EntityReference = {\n originalEUID : string,\n linkage : Array<string>\n};\nexport type UpdateEntity_bone = {\n bone : UpdateEntity_Bone\n};\nexport type UpdateEntity_Bone = {\n boneIndex : number\n};\nexport type UpdateEntity_box_geometry = {\n box_geometry : UpdateEntity_BoxGeometry\n};\nexport type UpdateEntity_BoxGeometry = {\n dimension ?: Array<number>,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_camera = {\n camera : UpdateEntity_Camera\n};\nexport type UpdateEntity_Camera = {\n renderGraphRef : string,\n renderTargetIndex ?: number,\n dataJSON : object\n};\nexport type UpdateEntity_capsule_geometry = {\n capsule_geometry : UpdateEntity_CapsuleGeometry\n};\nexport type UpdateEntity_CapsuleGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_character_controller = {\n character_controller : UpdateEntity_CharacterController\n};\nexport type UpdateEntity_CharacterController = {\n stepOffset ?: number,\n slopeLimit ?: number,\n skinWidth ?: number,\n velocity ?: Array<number>\n};\nexport type UpdateEntity_collision_geometry_ref = {\n collision_geometry_ref : UpdateEntity_CollisionGeometryRef\n};\nexport type UpdateEntity_CollisionGeometryRef = {\n collisionGeometryRef : string\n};\nexport type UpdateEntity_cylinder_geometry = {\n cylinder_geometry : UpdateEntity_CylinderGeometry\n};\nexport type UpdateEntity_CylinderGeometry = {\n radius ?: number,\n height ?: number,\n axis ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_debug_name = {\n debug_name : UpdateEntity_Name\n};\nexport type UpdateEntity_Name = {\n value : string\n};\nexport type UpdateEntity_decal_projector = {\n decal_projector : UpdateEntity_DecalProjector\n};\nexport type UpdateEntity_DecalProjector = {\n zIndex ?: number\n};\nexport type UpdateEntity_environment = {\n environment : UpdateEntity_Environment\n};\nexport type UpdateEntity_Environment = {\n skyboxUUID : string,\n radianceUUID : string,\n irradianceUUID : string\n};\nexport type UpdateEntity_joint = {\n joint : UpdateEntity_Joint\n};\nexport type UpdateEntity_Joint = {\n constrainee : UpdateEntity_EntityReference,\n constrainer : UpdateEntity_EntityReference,\n breakForce ?: number,\n breakTorque ?: number\n};\nexport type UpdateEntity_lineage = {\n lineage : UpdateEntity_Lineage\n};\nexport type UpdateEntity_Lineage = {\n parentUUID : string,\n ordinal ?: number\n};\nexport type UpdateEntity_local_aabb = {\n local_aabb : UpdateEntity_LocalAxisAlignedBoundingBox\n};\nexport type UpdateEntity_LocalAxisAlignedBoundingBox = {\n min : Array<number>,\n max : Array<number>\n};\nexport type UpdateEntity_local_transform = {\n local_transform : UpdateEntity_Transform\n};\nexport type UpdateEntity_Transform = {\n position ?: Array<number>,\n orientation ?: Array<number>,\n scale ?: Array<number>,\n eulerOrientation ?: Array<number>,\n globalEulerOrientation ?: Array<number>\n};\nexport type UpdateEntity_material = {\n material : UpdateEntity_Material\n};\nexport type UpdateEntity_Material = {\n shaderRef : string,\n transparencyMode : number,\n isDoubleSided : boolean,\n dataJSON : object\n};\nexport type UpdateEntity_material_ref = {\n material_ref : UpdateEntity_MaterialReference\n};\nexport type UpdateEntity_MaterialReference = {\n value : string,\n faceCulling ?: number\n};\nexport type UpdateEntity_mesh_ref = {\n mesh_ref : UpdateEntity_MeshReference\n};\nexport type UpdateEntity_MeshReference = {\n value : string,\n submeshIndex ?: number\n};\nexport type UpdateEntity_orthographic_lens = {\n orthographic_lens : UpdateEntity_OrthographicLens\n};\nexport type UpdateEntity_OrthographicLens = {\n left ?: number,\n right ?: number,\n top ?: number,\n bottom ?: number,\n zNear ?: number,\n zFar ?: number\n};\nexport type UpdateEntity_overrider = {\n overrider : UpdateEntity_Overrider\n};\nexport type UpdateEntity_Overrider = {\n deleter ?: boolean,\n entityRef : UpdateEntity_EntityReference,\n componentsToDetach : Array<number>\n};\nexport type UpdateEntity_perspective_lens = {\n perspective_lens : UpdateEntity_PerspectiveLens\n};\nexport type UpdateEntity_PerspectiveLens = {\n aspectRatio ?: number,\n fovy ?: number,\n nearPlane ?: number,\n farPlane ?: number\n};\nexport type UpdateEntity_physics_material = {\n physics_material : UpdateEntity_PhysicsMaterial\n};\nexport type UpdateEntity_PhysicsMaterial = {\n staticFriction ?: number,\n dynamicFriction ?: number,\n restitution ?: number,\n isTrigger ?: boolean\n};\nexport type UpdateEntity_plane_geometry = {\n plane_geometry : UpdateEntity_PlaneGeometry\n};\nexport type UpdateEntity_PlaneGeometry = {\n distance ?: number,\n normal ?: Array<number>\n};\nexport type UpdateEntity_point_cloud_ref = {\n point_cloud_ref : UpdateEntity_PointCloudReference\n};\nexport type UpdateEntity_PointCloudReference = {\n value : string\n};\nexport type UpdateEntity_point_light = {\n point_light : UpdateEntity_Light\n};\nexport type UpdateEntity_Light = {\n color ?: Array<number>,\n intensity ?: number,\n range ?: number,\n isDirectional ?: boolean,\n isSun ?: boolean\n};\nexport type UpdateEntity_reflection_probe = {\n reflection_probe : UpdateEntity_ReflectionProbe\n};\nexport type UpdateEntity_ReflectionProbe = {\n offset ?: Array<number>,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number\n};\nexport type UpdateEntity_revolute_joint = {\n revolute_joint : UpdateEntity_RevoluteJoint\n};\nexport type UpdateEntity_RevoluteJoint = {\n axis ?: Array<number>,\n anchor ?: Array<number>\n};\nexport type UpdateEntity_rigid_body = {\n rigid_body : UpdateEntity_RigidBody\n};\nexport type UpdateEntity_RigidBody = {\n mass ?: number,\n linearDamping ?: number,\n angularDamping ?: number,\n friction ?: number,\n rollingFriction ?: number,\n spinningFriction ?: number,\n restitution ?: number,\n linearSleepingThreshold ?: number,\n angularSleepingThreshold ?: number,\n isKinematic ?: boolean\n};\nexport type UpdateEntity_scene_ref = {\n scene_ref : UpdateEntity_SceneReference\n};\nexport type UpdateEntity_SceneReference = {\n value : string,\n maxRecursionCount ?: number\n};\nexport type UpdateEntity_script_element = {\n script_element : UpdateEntity_ScriptElement\n};\nexport type UpdateEntity_ScriptElement = {\n scriptRef : string,\n dataJSON : object\n};\nexport type UpdateEntity_script_map = {\n script_map : UpdateEntity_ScriptMap\n};\nexport type UpdateEntity_ScriptMap = {\n elements : object\n};\nexport type UpdateEntity_shadow_caster = {\n shadow_caster : UpdateEntity_ShadowCaster\n};\nexport type UpdateEntity_ShadowCaster = {\n bias ?: number,\n nearDist ?: number,\n farDist ?: number,\n quality ?: number,\n cascadeSplitLambda ?: number,\n cascadeMaxZ ?: number,\n accumulateShadowCascades ?: boolean\n};\nexport type UpdateEntity_skeleton_ref = {\n skeleton_ref : UpdateEntity_SkeletonReference\n};\nexport type UpdateEntity_SkeletonReference = {\n value : string\n};\nexport type UpdateEntity_sound_ref = {\n sound_ref : UpdateEntity_SoundReference\n};\nexport type UpdateEntity_SoundReference = {\n value : string,\n volume ?: number,\n pan ?: number,\n playSpeed ?: number,\n looping ?: boolean\n};\nexport type UpdateEntity_sphere_geometry = {\n sphere_geometry : UpdateEntity_SphereGeometry\n};\nexport type UpdateEntity_SphereGeometry = {\n radius ?: number,\n isAdditive ?: boolean,\n offset ?: Array<number>\n};\nexport type UpdateEntity_spot_light = {\n spot_light : UpdateEntity_SpotLight\n};\nexport type UpdateEntity_SpotLight = {\n cutoff ?: number,\n IESProfile : string\n};\nexport type UpdateEntity_stereoscopic_lens = {\n stereoscopic_lens : UpdateEntity_StereoscopicPerspectiveLens\n};\nexport type UpdateEntity_StereoscopicPerspectiveLens = {\n angleLeft ?: number,\n angleRight ?: number,\n angleUp ?: number,\n angleDown ?: number,\n nearPlane ?: number,\n farPlane ?: number,\n aspectRatio ?: number\n};\nexport type UpdateEntity_tags = {\n tags : UpdateEntity_Tags\n};\nexport type UpdateEntity_Tags = {\n value : Array<string>\n};\nexport type UpdateEntity_volume_filter = {\n volume_filter : UpdateEntity_VolumeFilter\n};\nexport type UpdateEntity_VolumeFilter = {\n range ?: Array<number>,\n applyGaussianFiltering ?: boolean,\n sampleUnfiltered ?: boolean,\n enableMPR ?: boolean,\n enable3D ?: boolean\n};\nexport type UpdateEntity_volume_material_ref = {\n volume_material_ref : UpdateEntity_VolumeMaterialReference\n};\nexport type UpdateEntity_VolumeMaterialReference = {\n value : string\n};\nexport type UpdateEntity_volume_ref = {\n volume_ref : UpdateEntity_VolumeReference\n};\nexport type UpdateEntity_VolumeReference = {\n texture3dRef : string\n};\nexport function updateEntity(\n {\n scene_id,\n entity_id,\n entity_components\n } : {\n scene_id : string;\n entity_id : string;\n entity_components : (UpdateEntity_animation_controller | UpdateEntity_bone | UpdateEntity_box_geometry | UpdateEntity_camera | UpdateEntity_capsule_geometry | UpdateEntity_character_controller | UpdateEntity_collision_geometry_ref | UpdateEntity_cylinder_geometry | UpdateEntity_debug_name | UpdateEntity_decal_projector | UpdateEntity_environment | UpdateEntity_joint | UpdateEntity_lineage | UpdateEntity_local_aabb | UpdateEntity_local_transform | UpdateEntity_material | UpdateEntity_material_ref | UpdateEntity_mesh_ref | UpdateEntity_orthographic_lens | UpdateEntity_overrider | UpdateEntity_perspective_lens | UpdateEntity_physics_material | UpdateEntity_plane_geometry | UpdateEntity_point_cloud_ref | UpdateEntity_point_light | UpdateEntity_reflection_probe | UpdateEntity_revolute_joint | UpdateEntity_rigid_body | UpdateEntity_scene_ref | UpdateEntity_script_element | UpdateEntity_script_map | UpdateEntity_shadow_caster | UpdateEntity_skeleton_ref | UpdateEntity_sound_ref | UpdateEntity_sphere_geometry | UpdateEntity_spot_light | UpdateEntity_stereoscopic_lens | UpdateEntity_tags | UpdateEntity_volume_filter | UpdateEntity_volume_material_ref | UpdateEntity_volume_ref);\n }\n)\n{\n return axiosInstance({\n method: \"patch\",\n url: \"/assets/scenes/\" + scene_id + \"/entities/\" + entity_id + \"\",\n data: entity_components\n });\n}\n\n//--------------------------------------------------------------------------\n// Delete a specific entity from a scene\nexport function deleteEntity(\n {\n scene_id,\n entity_id\n } : {\n scene_id : string;\n entity_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/assets/scenes/\" + scene_id + \"/entities/\" + entity_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Lists all running rendering sessions.\nexport type GetRunningSessions_Filter = {\n user_id ?: string,\n scene_id ?: string,\n folder_id ?: string\n};\nexport type GetRunningSessions_Session = {\n session_id : string,\n scene_id : string,\n scene_name : string,\n folder_id : string,\n max_users : number,\n creator_user_id : string,\n created_at : string,\n country_code : string,\n continent_code : string,\n is_transient_session : boolean,\n clients : Array<GetRunningSessions_UserInfo>\n};\nexport type GetRunningSessions_UserInfo = {\n client_id ?: string,\n client_type ?: StrictUnion<'user' | 'guest'>,\n user_id : string,\n username : string\n};\nexport function getRunningSessions(\n {\n filters\n } : {\n filters ?: GetRunningSessions_Filter;\n }\n) : AxiosPromise<Array<GetRunningSessions_Session>>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/sessions\",\n params: {\n filters: filters\n }\n });\n}\n\n//--------------------------------------------------------------------------\n// Create a new rendering session\nexport type CreateSession_Object = {\n session_id : string\n};\nexport function createSession(\n {\n scene_id,\n renderer_version,\n is_transient = false\n } : {\n scene_id : string;\n renderer_version ?: string;\n is_transient ?: boolean;\n }\n) : AxiosPromise<CreateSession_Object>\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 }\n });\n}\n\n//--------------------------------------------------------------------------\n// Retrieves details about the target session.\nexport type GetSession_Session = {\n session_id : string,\n scene_id : string,\n scene_name : string,\n folder_id : string,\n max_users : number,\n creator_user_id : string,\n created_at : string,\n country_code : string,\n continent_code : string,\n is_transient_session : boolean,\n clients : Array<GetSession_UserInfo>\n};\nexport type GetSession_UserInfo = {\n client_id ?: string,\n client_type ?: StrictUnion<'user' | 'guest'>,\n user_id : string,\n username : string\n};\nexport function getSession(\n {\n session_id\n } : {\n session_id : string;\n }\n) : AxiosPromise<GetSession_Session>\n{\n return axiosInstance({\n method: \"get\",\n url: \"/sessions/\" + session_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Forcefully terminates a session.\nexport function killSession(\n {\n session_id\n } : {\n session_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/sessions/\" + session_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Creates a new client for the user and returns a token to join the session.\nexport type JoinSession_SessionToken = {\n session_token : string,\n endpoint_info : JoinSession_Object\n};\nexport type JoinSession_Object = {\n ip : string,\n port : number,\n ssl_port : number\n};\nexport function joinSession(\n {\n session_id\n } : {\n session_id : string;\n }\n) : AxiosPromise<JoinSession_SessionToken>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/sessions/\" + session_id + \"/clients\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Kick a client from a running session.\nexport function kickClientFromSession(\n {\n session_id,\n client_id\n } : {\n session_id : string;\n client_id : string;\n }\n)\n{\n return axiosInstance({\n method: \"delete\",\n url: \"/sessions/\" + session_id + \"/clients/\" + client_id + \"\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Join a session as guest. The guest token is required in the `guest_token` header.\nexport type JoinSessionAsGuest_SessionToken = {\n session_token : string,\n endpoint_info : JoinSessionAsGuest_Object\n};\nexport type JoinSessionAsGuest_Object = {\n ip : string,\n port : number,\n ssl_port : number\n};\nexport function joinSessionAsGuest(\n\n) : AxiosPromise<JoinSessionAsGuest_SessionToken>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/sessions/guests\"\n });\n}\n\n//--------------------------------------------------------------------------\n// Generates a token to join the session as a guest.\nexport type GenerateGuestToken_GuestToken = {\n guest_token ?: string\n};\nexport function generateGuestToken(\n {\n session_id\n } : {\n session_id : string;\n }\n) : AxiosPromise<GenerateGuestToken_GuestToken>\n{\n return axiosInstance({\n method: \"post\",\n url: \"/sessions/\" + session_id + \"/guests\"\n });\n}"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,yBAAqE;;;ACyBrE,mBAAgD;AAUzC,IAAM,gBAAgB,aAAAA,QAAM,OAAO;AAAA,EACtC,SAAS;AACb,CAAC;AAGM,SAAS,WAAW,SAAiB;AACxC,gBAAc,SAAS,UAAU;AACrC;AAUO,SAAS,UACZ;AAAA,EACI,SAAS;AAAA,EACT,QAAQ;AACZ,GAKJ;AACI,S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