@3dverse/api 0.8.5 → 0.8.6
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 +21 -8
- package/dist/index.js +12 -0
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
@@ -624,9 +624,9 @@ export type GetSessionsInFolder_Session = {
|
|
624
624
|
country_code: string;
|
625
625
|
continent_code: string;
|
626
626
|
is_transient_session: boolean;
|
627
|
-
clients: Array<
|
627
|
+
clients: Array<GetSessionsInFolder_Client_UserInfo>;
|
628
628
|
};
|
629
|
-
export type
|
629
|
+
export type GetSessionsInFolder_Client_UserInfo = {
|
630
630
|
client_id?: string;
|
631
631
|
client_type?: StrictUnion<'user' | 'guest'>;
|
632
632
|
user_id: string;
|
@@ -1234,9 +1234,9 @@ export type GetSceneSessions_Session = {
|
|
1234
1234
|
country_code: string;
|
1235
1235
|
continent_code: string;
|
1236
1236
|
is_transient_session: boolean;
|
1237
|
-
clients: Array<
|
1237
|
+
clients: Array<GetSceneSessions_Client_UserInfo>;
|
1238
1238
|
};
|
1239
|
-
export type
|
1239
|
+
export type GetSceneSessions_Client_UserInfo = {
|
1240
1240
|
client_id?: string;
|
1241
1241
|
client_type?: StrictUnion<'user' | 'guest'>;
|
1242
1242
|
user_id: string;
|
@@ -2477,9 +2477,9 @@ export type GetRunningSessions_Session = {
|
|
2477
2477
|
country_code: string;
|
2478
2478
|
continent_code: string;
|
2479
2479
|
is_transient_session: boolean;
|
2480
|
-
clients: Array<
|
2480
|
+
clients: Array<GetRunningSessions_Client_UserInfo>;
|
2481
2481
|
};
|
2482
|
-
export type
|
2482
|
+
export type GetRunningSessions_Client_UserInfo = {
|
2483
2483
|
client_id?: string;
|
2484
2484
|
client_type?: StrictUnion<'user' | 'guest'>;
|
2485
2485
|
user_id: string;
|
@@ -2513,9 +2513,9 @@ export type GetSession_Session = {
|
|
2513
2513
|
country_code: string;
|
2514
2514
|
continent_code: string;
|
2515
2515
|
is_transient_session: boolean;
|
2516
|
-
clients: Array<
|
2516
|
+
clients: Array<GetSession_Client_UserInfo>;
|
2517
2517
|
};
|
2518
|
-
export type
|
2518
|
+
export type GetSession_Client_UserInfo = {
|
2519
2519
|
client_id?: string;
|
2520
2520
|
client_type?: StrictUnion<'user' | 'guest'>;
|
2521
2521
|
user_id: string;
|
@@ -2548,6 +2548,19 @@ export type JoinSession_Object = {
|
|
2548
2548
|
export declare function joinSession({ session_id, }: {
|
2549
2549
|
session_id: string;
|
2550
2550
|
}, headers?: AxiosHeaders): AxiosPromise<JoinSession_SessionToken>;
|
2551
|
+
export type GetClient_Client_UserInfo = {
|
2552
|
+
client_id?: string;
|
2553
|
+
client_type?: StrictUnion<'user' | 'guest'>;
|
2554
|
+
user_id: string;
|
2555
|
+
username: string;
|
2556
|
+
};
|
2557
|
+
/**
|
2558
|
+
* Retrieves details about the target client.
|
2559
|
+
*/
|
2560
|
+
export declare function getClient({ session_id, client_id, }: {
|
2561
|
+
session_id: string;
|
2562
|
+
client_id: string;
|
2563
|
+
}, headers?: AxiosHeaders): AxiosPromise<GetClient_Client_UserInfo>;
|
2551
2564
|
/**
|
2552
2565
|
* Kick a client from a running session.
|
2553
2566
|
*/
|
package/dist/index.js
CHANGED
@@ -63,6 +63,7 @@ __export(library_exports, {
|
|
63
63
|
getAssetReferences: () => getAssetReferences,
|
64
64
|
getAssetSourceFile: () => getAssetSourceFile,
|
65
65
|
getAssetThumbnail: () => getAssetThumbnail,
|
66
|
+
getClient: () => getClient,
|
66
67
|
getConversionTaskMetadata: () => getConversionTaskMetadata,
|
67
68
|
getEntity: () => getEntity,
|
68
69
|
getFolderAssets: () => getFolderAssets,
|
@@ -1067,6 +1068,16 @@ function joinSession({
|
|
1067
1068
|
headers
|
1068
1069
|
});
|
1069
1070
|
}
|
1071
|
+
function getClient({
|
1072
|
+
session_id,
|
1073
|
+
client_id
|
1074
|
+
}, headers) {
|
1075
|
+
return axiosInstance({
|
1076
|
+
method: "get",
|
1077
|
+
url: "/sessions/" + session_id + "/clients/" + client_id,
|
1078
|
+
headers
|
1079
|
+
});
|
1080
|
+
}
|
1070
1081
|
function kickClientFromSession({
|
1071
1082
|
session_id,
|
1072
1083
|
client_id
|
@@ -1224,6 +1235,7 @@ function uploadSourceFiles({
|
|
1224
1235
|
getAssetReferences,
|
1225
1236
|
getAssetSourceFile,
|
1226
1237
|
getAssetThumbnail,
|
1238
|
+
getClient,
|
1227
1239
|
getConversionTaskMetadata,
|
1228
1240
|
getEntity,
|
1229
1241
|
getFolderAssets,
|