@3dverse/api 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +35 -34
- package/dist/index.js +4 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
@@ -316,11 +316,11 @@ export declare function uploadSourceFiles({ folder_id, body }: {
|
|
316
316
|
body: FormData;
|
317
317
|
}): AxiosPromise<UploadSourceFiles_Object>;
|
318
318
|
export type GetSourceFilesInFolder_SourceFile = {
|
319
|
-
source_file_id
|
320
|
-
upload_task_id
|
321
|
-
source_file_original_name
|
322
|
-
name
|
323
|
-
size
|
319
|
+
source_file_id: string;
|
320
|
+
upload_task_id: string;
|
321
|
+
source_file_original_name: string;
|
322
|
+
name: string;
|
323
|
+
size: number;
|
324
324
|
};
|
325
325
|
export declare function getSourceFilesInFolder({ folder_id, offset, limit }: {
|
326
326
|
folder_id: string;
|
@@ -443,11 +443,11 @@ export declare function getSessionsInFolder({ folder_id }: {
|
|
443
443
|
folder_id: string;
|
444
444
|
}): AxiosPromise<Array<GetSessionsInFolder_Session>>;
|
445
445
|
export type ListSourceFiles_SourceFile = {
|
446
|
-
source_file_id
|
447
|
-
upload_task_id
|
448
|
-
source_file_original_name
|
449
|
-
name
|
450
|
-
size
|
446
|
+
source_file_id: string;
|
447
|
+
upload_task_id: string;
|
448
|
+
source_file_original_name: string;
|
449
|
+
name: string;
|
450
|
+
size: number;
|
451
451
|
};
|
452
452
|
export declare function listSourceFiles({ offset, limit }: {
|
453
453
|
offset?: number;
|
@@ -460,18 +460,18 @@ export declare function downloadSourceFile({ source_file_id }: {
|
|
460
460
|
source_file_id: string;
|
461
461
|
}): AxiosPromise<ArrayBuffer>;
|
462
462
|
export type GetSourceFileDetails_SourceFile = {
|
463
|
-
source_file_id
|
464
|
-
upload_task_id
|
465
|
-
source_file_original_name
|
466
|
-
name
|
467
|
-
size
|
463
|
+
source_file_id: string;
|
464
|
+
upload_task_id: string;
|
465
|
+
source_file_original_name: string;
|
466
|
+
name: string;
|
467
|
+
size: number;
|
468
468
|
};
|
469
469
|
export declare function getSourceFileDetails({ source_file_id }: {
|
470
470
|
source_file_id: string;
|
471
471
|
}): AxiosPromise<GetSourceFileDetails_SourceFile>;
|
472
472
|
export declare function updateSourceFileDetails({ source_file_id, name }: {
|
473
473
|
source_file_id: string;
|
474
|
-
name
|
474
|
+
name: string;
|
475
475
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
476
476
|
export type GetSourceFileAssets__index_AssetList_AssetList = {
|
477
477
|
action_maps?: Array<GetSourceFileAssets_Object>;
|
@@ -566,11 +566,11 @@ export declare function deleteAsset({ asset_container, asset_id }: {
|
|
566
566
|
asset_id: string;
|
567
567
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
568
568
|
export type GetAssetSourceFile_SourceFile = {
|
569
|
-
source_file_id
|
570
|
-
upload_task_id
|
571
|
-
source_file_original_name
|
572
|
-
name
|
573
|
-
size
|
569
|
+
source_file_id: string;
|
570
|
+
upload_task_id: string;
|
571
|
+
source_file_original_name: string;
|
572
|
+
name: string;
|
573
|
+
size: number;
|
574
574
|
};
|
575
575
|
export declare function getAssetSourceFile({ asset_container, asset_id }: {
|
576
576
|
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";
|
@@ -1591,10 +1591,11 @@ export declare function deleteEntity({ scene_id, entity_id }: {
|
|
1591
1591
|
entity_id: string;
|
1592
1592
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
1593
1593
|
export type CreateSession_Object = {
|
1594
|
-
session_id
|
1594
|
+
session_id: string;
|
1595
1595
|
};
|
1596
|
-
export declare function createSession({ scene_id }: {
|
1597
|
-
scene_id
|
1596
|
+
export declare function createSession({ scene_id, renderer_version }: {
|
1597
|
+
scene_id: string;
|
1598
|
+
renderer_version?: string;
|
1598
1599
|
}): AxiosPromise<CreateSession_Object>;
|
1599
1600
|
export type GetSession_Session = {
|
1600
1601
|
session_id: string;
|
@@ -1621,13 +1622,13 @@ export declare function killSession({ session_id }: {
|
|
1621
1622
|
session_id: string;
|
1622
1623
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
1623
1624
|
export type JoinSession_SessionToken = {
|
1624
|
-
session_token
|
1625
|
-
endpoint_info
|
1625
|
+
session_token: string;
|
1626
|
+
endpoint_info: JoinSession_Object;
|
1626
1627
|
};
|
1627
1628
|
export type JoinSession_Object = {
|
1628
|
-
ip
|
1629
|
-
port
|
1630
|
-
ssl_port
|
1629
|
+
ip: string;
|
1630
|
+
port: number;
|
1631
|
+
ssl_port: number;
|
1631
1632
|
};
|
1632
1633
|
export declare function joinSession({ session_id }: {
|
1633
1634
|
session_id: string;
|
@@ -1637,13 +1638,13 @@ export declare function kickClientFromSession({ session_id, client_id }: {
|
|
1637
1638
|
client_id: string;
|
1638
1639
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
1639
1640
|
export type JoinSessionAsGuest_SessionToken = {
|
1640
|
-
session_token
|
1641
|
-
endpoint_info
|
1641
|
+
session_token: string;
|
1642
|
+
endpoint_info: JoinSessionAsGuest_Object;
|
1642
1643
|
};
|
1643
1644
|
export type JoinSessionAsGuest_Object = {
|
1644
|
-
ip
|
1645
|
-
port
|
1646
|
-
ssl_port
|
1645
|
+
ip: string;
|
1646
|
+
port: number;
|
1647
|
+
ssl_port: number;
|
1647
1648
|
};
|
1648
1649
|
export declare function joinSessionAsGuest(): AxiosPromise<JoinSessionAsGuest_SessionToken>;
|
1649
1650
|
export type GenerateGuestToken_GuestToken = {
|
package/dist/index.js
CHANGED
@@ -884,14 +884,16 @@ function deleteEntity({
|
|
884
884
|
});
|
885
885
|
}
|
886
886
|
function createSession({
|
887
|
-
scene_id
|
887
|
+
scene_id,
|
888
|
+
renderer_version
|
888
889
|
}) {
|
889
890
|
return axiosInstance({
|
890
891
|
operationId: "createSession",
|
891
892
|
method: "post",
|
892
893
|
url: "/sessions",
|
893
894
|
data: {
|
894
|
-
scene_id
|
895
|
+
scene_id,
|
896
|
+
renderer_version
|
895
897
|
}
|
896
898
|
});
|
897
899
|
}
|