@3dverse/api 0.8.15 → 0.8.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_prebuild/wrapper.d.ts +225 -17
- package/dist/index.js +13 -0
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -1064,21 +1064,19 @@ export type GetAssetDescription_Material = {
|
|
|
1064
1064
|
uuid: string;
|
|
1065
1065
|
};
|
|
1066
1066
|
export type GetAssetDescription_Mesh = {
|
|
1067
|
+
morphTargets?: Array<GetAssetDescription_MorphTargets>;
|
|
1067
1068
|
name: string;
|
|
1068
1069
|
payloadSize: number;
|
|
1069
1070
|
submeshes: Array<GetAssetDescription_Submesh>;
|
|
1070
1071
|
uuid: string;
|
|
1071
1072
|
};
|
|
1072
|
-
export type
|
|
1073
|
-
|
|
1073
|
+
export type GetAssetDescription_MorphTargets = {
|
|
1074
|
+
batches: Array<GetAssetDescription_MorphTargetBatchDescription>;
|
|
1074
1075
|
channels: Array<GetAssetDescription_Channel>;
|
|
1075
|
-
indexCount: number;
|
|
1076
|
-
morphTargets?: Array<GetAssetDescription_MorphTarget>;
|
|
1077
|
-
vertexCount: number;
|
|
1078
1076
|
};
|
|
1079
|
-
export type
|
|
1080
|
-
|
|
1081
|
-
|
|
1077
|
+
export type GetAssetDescription_MorphTargetBatchDescription = {
|
|
1078
|
+
indexChannelIndex: number;
|
|
1079
|
+
morphTargets: GetAssetDescription_Object;
|
|
1082
1080
|
};
|
|
1083
1081
|
export type GetAssetDescription_Channel = {
|
|
1084
1082
|
dataOffset: number;
|
|
@@ -1088,11 +1086,14 @@ export type GetAssetDescription_Channel = {
|
|
|
1088
1086
|
elementType: StrictUnion<0 | 1 | 2> & number;
|
|
1089
1087
|
semantic: StrictUnion<'index' | 'position' | 'normal' | 'uv' | 'color' | 'bone_id' | 'weight'>;
|
|
1090
1088
|
};
|
|
1091
|
-
export type
|
|
1092
|
-
aabb:
|
|
1089
|
+
export type GetAssetDescription_Submesh = {
|
|
1090
|
+
aabb: GetAssetDescription_BoundingBox;
|
|
1093
1091
|
channels: Array<GetAssetDescription_Channel>;
|
|
1092
|
+
indexCount: number;
|
|
1093
|
+
morphTargetsIndex?: number;
|
|
1094
|
+
vertexCount: number;
|
|
1094
1095
|
};
|
|
1095
|
-
export type
|
|
1096
|
+
export type GetAssetDescription_BoundingBox = {
|
|
1096
1097
|
max: Array<number>;
|
|
1097
1098
|
min: Array<number>;
|
|
1098
1099
|
};
|
|
@@ -1131,6 +1132,10 @@ export type GetAssetDescription_Scene = {
|
|
|
1131
1132
|
triangleCount?: number;
|
|
1132
1133
|
uuid: string;
|
|
1133
1134
|
};
|
|
1135
|
+
export type GetAssetDescription_Aabb = {
|
|
1136
|
+
max: Array<number>;
|
|
1137
|
+
min: Array<number>;
|
|
1138
|
+
};
|
|
1134
1139
|
export type GetAssetDescription_Script = {
|
|
1135
1140
|
eventNames: Array<string>;
|
|
1136
1141
|
inputDescriptor?: Array<GetAssetDescription_Object>;
|
|
@@ -1140,17 +1145,15 @@ export type GetAssetDescription_Script = {
|
|
|
1140
1145
|
};
|
|
1141
1146
|
export type GetAssetDescription_Shader = {
|
|
1142
1147
|
blendMode?: StrictUnion<0 | 1 | 2 | 3>;
|
|
1143
|
-
localGroupCount?: Array<number>;
|
|
1144
1148
|
materialDescriptor?: Array<GetAssetDescription_Object>;
|
|
1145
|
-
moduleDescriptions
|
|
1149
|
+
moduleDescriptions: Array<GetAssetDescription_Object>;
|
|
1146
1150
|
name: string;
|
|
1147
1151
|
nodeDataDescriptor?: Array<GetAssetDescription_Object>;
|
|
1148
|
-
|
|
1149
|
-
|
|
1152
|
+
optComputeSettings?: GetAssetDescription_Object;
|
|
1153
|
+
optVertexDescriptor?: Array<GetAssetDescription_Object>;
|
|
1150
1154
|
payloadSize: number;
|
|
1151
1155
|
shaderStages?: number;
|
|
1152
1156
|
uuid: string;
|
|
1153
|
-
vertexDescriptor?: Array<GetAssetDescription_Object>;
|
|
1154
1157
|
};
|
|
1155
1158
|
export type GetAssetDescription_Skeleton = {
|
|
1156
1159
|
bones: Array<GetAssetDescription_Object>;
|
|
@@ -2382,12 +2385,217 @@ export declare function deleteEntity({ scene_id, entity_id, }: {
|
|
|
2382
2385
|
scene_id: string;
|
|
2383
2386
|
entity_id: string;
|
|
2384
2387
|
}, headers?: AxiosRequestHeaders): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2388
|
+
export type GetSceneSettings__index_SceneSettings_SceneSettings = {
|
|
2389
|
+
debug_lines?: GetSceneSettings_DebugLines;
|
|
2390
|
+
default_camera_component?: GetSceneSettings_DefaultCameraComponent;
|
|
2391
|
+
default_camera_transform?: GetSceneSettings_DefaultCameraTransform;
|
|
2392
|
+
display?: GetSceneSettings_Display;
|
|
2393
|
+
environment?: GetSceneSettings_Environment;
|
|
2394
|
+
misc?: GetSceneSettings_Miscellaneous;
|
|
2395
|
+
network?: GetSceneSettings_Network;
|
|
2396
|
+
physics?: GetSceneSettings_Physics;
|
|
2397
|
+
renderer?: GetSceneSettings_Renderer;
|
|
2398
|
+
simulation?: GetSceneSettings_Simulation;
|
|
2399
|
+
sound?: GetSceneSettings_Sound;
|
|
2400
|
+
streaming?: GetSceneSettings_Streaming;
|
|
2401
|
+
voxel?: GetSceneSettings_Voxel;
|
|
2402
|
+
};
|
|
2403
|
+
export type GetSceneSettings_DebugLines = {
|
|
2404
|
+
drawBoundingBoxes?: boolean;
|
|
2405
|
+
drawCameraFrustums?: boolean;
|
|
2406
|
+
drawCenterOfMass?: boolean;
|
|
2407
|
+
drawContacts?: boolean;
|
|
2408
|
+
drawDebugLines?: boolean;
|
|
2409
|
+
drawIK?: boolean;
|
|
2410
|
+
drawJoints?: boolean;
|
|
2411
|
+
drawLights?: boolean;
|
|
2412
|
+
drawPhysicsBodies?: boolean;
|
|
2413
|
+
drawPhysicsBodyAxes?: boolean;
|
|
2414
|
+
drawReflectionProbes?: boolean;
|
|
2415
|
+
drawSkeletons?: boolean;
|
|
2416
|
+
};
|
|
2417
|
+
export type GetSceneSettings_DefaultCameraComponent = {
|
|
2418
|
+
dataJSON?: object;
|
|
2419
|
+
renderGraphRef?: string;
|
|
2420
|
+
renderTargetIndex?: number;
|
|
2421
|
+
};
|
|
2422
|
+
export type GetSceneSettings_DefaultCameraTransform = {
|
|
2423
|
+
orientation?: Array<number>;
|
|
2424
|
+
position?: Array<number>;
|
|
2425
|
+
};
|
|
2426
|
+
export type GetSceneSettings_Display = {
|
|
2427
|
+
forceRedraw?: boolean;
|
|
2428
|
+
framePersistence?: number;
|
|
2429
|
+
maxFPS?: StrictUnion<15 | 30 | 60 | 90> & number;
|
|
2430
|
+
maxTextureSize?: StrictUnion<4294967295 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192> & number;
|
|
2431
|
+
};
|
|
2432
|
+
export type GetSceneSettings_Environment = {
|
|
2433
|
+
ambientColorBottom?: Array<number>;
|
|
2434
|
+
ambientColorTop?: Array<number>;
|
|
2435
|
+
clearColor?: Array<number>;
|
|
2436
|
+
};
|
|
2437
|
+
export type GetSceneSettings_Miscellaneous = {
|
|
2438
|
+
maxLinkersRecursionCount?: number;
|
|
2439
|
+
maxScriptExecutionTimeInMs?: number;
|
|
2440
|
+
plugins?: Array<string>;
|
|
2441
|
+
};
|
|
2442
|
+
export type GetSceneSettings_Network = {
|
|
2443
|
+
clientConnectionTimeout?: number;
|
|
2444
|
+
sendSimulationUpdates?: boolean;
|
|
2445
|
+
timeToLiveWithInactiveUsersInSeconds?: number;
|
|
2446
|
+
waitForDefaultAssetsTimeoutInSeconds?: number;
|
|
2447
|
+
};
|
|
2448
|
+
export type GetSceneSettings_Physics = {
|
|
2449
|
+
engine?: StrictUnion<'physx' | 'xde'>;
|
|
2450
|
+
epsilon?: number;
|
|
2451
|
+
gravity?: Array<number>;
|
|
2452
|
+
lmdMax?: number;
|
|
2453
|
+
timestepInS?: number;
|
|
2454
|
+
toleranceLength?: number;
|
|
2455
|
+
toleranceSpeed?: number;
|
|
2456
|
+
};
|
|
2457
|
+
export type GetSceneSettings_Renderer = {
|
|
2458
|
+
cpuOcclusionCulling?: boolean;
|
|
2459
|
+
enableFrustumCulling?: boolean;
|
|
2460
|
+
enableGeometryCulling?: boolean;
|
|
2461
|
+
enableRayTracing?: boolean;
|
|
2462
|
+
enableTextureStreaming?: boolean;
|
|
2463
|
+
endFrameTimeoutInMilliseconds?: number;
|
|
2464
|
+
};
|
|
2465
|
+
export type GetSceneSettings_Simulation = {
|
|
2466
|
+
clientScripts?: Array<GetSceneSettings_Object>;
|
|
2467
|
+
mainCamera?: GetSceneSettings_MainCamera;
|
|
2468
|
+
};
|
|
2469
|
+
export type GetSceneSettings_Object = {
|
|
2470
|
+
linkage: Array<string>;
|
|
2471
|
+
originalEUID: string;
|
|
2472
|
+
};
|
|
2473
|
+
export type GetSceneSettings_MainCamera = {
|
|
2474
|
+
linkage: Array<string>;
|
|
2475
|
+
originalEUID: string;
|
|
2476
|
+
};
|
|
2477
|
+
export type GetSceneSettings_Sound = {
|
|
2478
|
+
enabled?: boolean;
|
|
2479
|
+
};
|
|
2480
|
+
export type GetSceneSettings_Streaming = {
|
|
2481
|
+
streamingLoadingRadius?: number;
|
|
2482
|
+
streamingUnloadingRadius?: number;
|
|
2483
|
+
};
|
|
2484
|
+
export type GetSceneSettings_Voxel = {
|
|
2485
|
+
maxNumberAlbedoValues?: number;
|
|
2486
|
+
};
|
|
2385
2487
|
/**
|
|
2386
2488
|
* Get the settings of a scene.
|
|
2387
2489
|
*/
|
|
2388
2490
|
export declare function getSceneSettings({ scene_id, }: {
|
|
2389
2491
|
scene_id: string;
|
|
2390
|
-
}, headers?: AxiosRequestHeaders): AxiosPromise<
|
|
2492
|
+
}, headers?: AxiosRequestHeaders): AxiosPromise<GetSceneSettings__index_SceneSettings_SceneSettings>;
|
|
2493
|
+
export type UpdateSceneSettings_SceneSettings = {
|
|
2494
|
+
debug_lines?: UpdateSceneSettings_DebugLines;
|
|
2495
|
+
default_camera_component?: UpdateSceneSettings_DefaultCameraComponent;
|
|
2496
|
+
default_camera_transform?: UpdateSceneSettings_DefaultCameraTransform;
|
|
2497
|
+
display?: UpdateSceneSettings_Display;
|
|
2498
|
+
environment?: UpdateSceneSettings_Environment;
|
|
2499
|
+
misc?: UpdateSceneSettings_Miscellaneous;
|
|
2500
|
+
network?: UpdateSceneSettings_Network;
|
|
2501
|
+
physics?: UpdateSceneSettings_Physics;
|
|
2502
|
+
renderer?: UpdateSceneSettings_Renderer;
|
|
2503
|
+
simulation?: UpdateSceneSettings_Simulation;
|
|
2504
|
+
sound?: UpdateSceneSettings_Sound;
|
|
2505
|
+
streaming?: UpdateSceneSettings_Streaming;
|
|
2506
|
+
voxel?: UpdateSceneSettings_Voxel;
|
|
2507
|
+
};
|
|
2508
|
+
export type UpdateSceneSettings_DebugLines = {
|
|
2509
|
+
drawBoundingBoxes?: boolean;
|
|
2510
|
+
drawCameraFrustums?: boolean;
|
|
2511
|
+
drawCenterOfMass?: boolean;
|
|
2512
|
+
drawContacts?: boolean;
|
|
2513
|
+
drawDebugLines?: boolean;
|
|
2514
|
+
drawIK?: boolean;
|
|
2515
|
+
drawJoints?: boolean;
|
|
2516
|
+
drawLights?: boolean;
|
|
2517
|
+
drawPhysicsBodies?: boolean;
|
|
2518
|
+
drawPhysicsBodyAxes?: boolean;
|
|
2519
|
+
drawReflectionProbes?: boolean;
|
|
2520
|
+
drawSkeletons?: boolean;
|
|
2521
|
+
};
|
|
2522
|
+
export type UpdateSceneSettings_DefaultCameraComponent = {
|
|
2523
|
+
dataJSON?: object;
|
|
2524
|
+
renderGraphRef?: string;
|
|
2525
|
+
renderTargetIndex?: number;
|
|
2526
|
+
};
|
|
2527
|
+
export type UpdateSceneSettings_DefaultCameraTransform = {
|
|
2528
|
+
orientation?: Array<number>;
|
|
2529
|
+
position?: Array<number>;
|
|
2530
|
+
};
|
|
2531
|
+
export type UpdateSceneSettings_Display = {
|
|
2532
|
+
forceRedraw?: boolean;
|
|
2533
|
+
framePersistence?: number;
|
|
2534
|
+
maxFPS?: StrictUnion<15 | 30 | 60 | 90> & number;
|
|
2535
|
+
maxTextureSize?: StrictUnion<4294967295 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192> & number;
|
|
2536
|
+
};
|
|
2537
|
+
export type UpdateSceneSettings_Environment = {
|
|
2538
|
+
ambientColorBottom?: Array<number>;
|
|
2539
|
+
ambientColorTop?: Array<number>;
|
|
2540
|
+
clearColor?: Array<number>;
|
|
2541
|
+
};
|
|
2542
|
+
export type UpdateSceneSettings_Miscellaneous = {
|
|
2543
|
+
maxLinkersRecursionCount?: number;
|
|
2544
|
+
maxScriptExecutionTimeInMs?: number;
|
|
2545
|
+
plugins?: Array<string>;
|
|
2546
|
+
};
|
|
2547
|
+
export type UpdateSceneSettings_Network = {
|
|
2548
|
+
clientConnectionTimeout?: number;
|
|
2549
|
+
sendSimulationUpdates?: boolean;
|
|
2550
|
+
timeToLiveWithInactiveUsersInSeconds?: number;
|
|
2551
|
+
waitForDefaultAssetsTimeoutInSeconds?: number;
|
|
2552
|
+
};
|
|
2553
|
+
export type UpdateSceneSettings_Physics = {
|
|
2554
|
+
engine?: StrictUnion<'physx' | 'xde'>;
|
|
2555
|
+
epsilon?: number;
|
|
2556
|
+
gravity?: Array<number>;
|
|
2557
|
+
lmdMax?: number;
|
|
2558
|
+
timestepInS?: number;
|
|
2559
|
+
toleranceLength?: number;
|
|
2560
|
+
toleranceSpeed?: number;
|
|
2561
|
+
};
|
|
2562
|
+
export type UpdateSceneSettings_Renderer = {
|
|
2563
|
+
cpuOcclusionCulling?: boolean;
|
|
2564
|
+
enableFrustumCulling?: boolean;
|
|
2565
|
+
enableGeometryCulling?: boolean;
|
|
2566
|
+
enableRayTracing?: boolean;
|
|
2567
|
+
enableTextureStreaming?: boolean;
|
|
2568
|
+
endFrameTimeoutInMilliseconds?: number;
|
|
2569
|
+
};
|
|
2570
|
+
export type UpdateSceneSettings_Simulation = {
|
|
2571
|
+
clientScripts?: Array<UpdateSceneSettings_Object>;
|
|
2572
|
+
mainCamera?: UpdateSceneSettings_MainCamera;
|
|
2573
|
+
};
|
|
2574
|
+
export type UpdateSceneSettings_Object = {
|
|
2575
|
+
linkage: Array<string>;
|
|
2576
|
+
originalEUID: string;
|
|
2577
|
+
};
|
|
2578
|
+
export type UpdateSceneSettings_MainCamera = {
|
|
2579
|
+
linkage: Array<string>;
|
|
2580
|
+
originalEUID: string;
|
|
2581
|
+
};
|
|
2582
|
+
export type UpdateSceneSettings_Sound = {
|
|
2583
|
+
enabled?: boolean;
|
|
2584
|
+
};
|
|
2585
|
+
export type UpdateSceneSettings_Streaming = {
|
|
2586
|
+
streamingLoadingRadius?: number;
|
|
2587
|
+
streamingUnloadingRadius?: number;
|
|
2588
|
+
};
|
|
2589
|
+
export type UpdateSceneSettings_Voxel = {
|
|
2590
|
+
maxNumberAlbedoValues?: number;
|
|
2591
|
+
};
|
|
2592
|
+
/**
|
|
2593
|
+
* Update the settings of a scene.
|
|
2594
|
+
*/
|
|
2595
|
+
export declare function updateSceneSettings({ scene_id, body, }: {
|
|
2596
|
+
scene_id: string;
|
|
2597
|
+
body: UpdateSceneSettings_SceneSettings;
|
|
2598
|
+
}, headers?: AxiosRequestHeaders): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2391
2599
|
export type GetRunningSessions_Filter = {
|
|
2392
2600
|
user_id?: string;
|
|
2393
2601
|
scene_id?: string;
|
package/dist/index.js
CHANGED
|
@@ -114,6 +114,7 @@ __export(index_exports, {
|
|
|
114
114
|
updateEntity: () => updateEntity,
|
|
115
115
|
updateFolder: () => updateFolder,
|
|
116
116
|
updateGroupDescription: () => updateGroupDescription,
|
|
117
|
+
updateSceneSettings: () => updateSceneSettings,
|
|
117
118
|
updateSourceFileDetails: () => updateSourceFileDetails,
|
|
118
119
|
updateUser: () => updateUser,
|
|
119
120
|
uploadSourceFiles: () => uploadSourceFiles
|
|
@@ -1060,6 +1061,17 @@ function getSceneSettings({
|
|
|
1060
1061
|
headers
|
|
1061
1062
|
});
|
|
1062
1063
|
}
|
|
1064
|
+
function updateSceneSettings({
|
|
1065
|
+
scene_id,
|
|
1066
|
+
body
|
|
1067
|
+
}, headers) {
|
|
1068
|
+
return axiosInstance({
|
|
1069
|
+
method: "patch",
|
|
1070
|
+
url: "/assets/scenes/" + scene_id + "/settings",
|
|
1071
|
+
data: body,
|
|
1072
|
+
headers
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1063
1075
|
function getRunningSessions({
|
|
1064
1076
|
filters
|
|
1065
1077
|
}, headers) {
|
|
@@ -1324,6 +1336,7 @@ installInterceptors();
|
|
|
1324
1336
|
updateEntity,
|
|
1325
1337
|
updateFolder,
|
|
1326
1338
|
updateGroupDescription,
|
|
1339
|
+
updateSceneSettings,
|
|
1327
1340
|
updateSourceFileDetails,
|
|
1328
1341
|
updateUser,
|
|
1329
1342
|
uploadSourceFiles
|