@rtsdk/topia 0.11.8 → 0.11.10
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/index.cjs +7 -7
- package/dist/index.d.ts +11 -10
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -40853,9 +40853,9 @@ class World extends SDKController {
|
|
|
40853
40853
|
* { sceneDropId: sceneId-timestamp, success: true }
|
|
40854
40854
|
* ```
|
|
40855
40855
|
*/
|
|
40856
|
-
dropScene({ assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40856
|
+
dropScene({ allowNonAdmins, assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40857
40857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40858
|
-
const params = { assetSuffix, position, sceneDropId, sceneId };
|
|
40858
|
+
const params = { allowNonAdmins, assetSuffix, position, sceneDropId, sceneId };
|
|
40859
40859
|
try {
|
|
40860
40860
|
const result = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, params, this.requestOptions);
|
|
40861
40861
|
return result;
|
|
@@ -41111,7 +41111,7 @@ class User extends SDKController {
|
|
|
41111
41111
|
fetchAvatars() {
|
|
41112
41112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41113
41113
|
try {
|
|
41114
|
-
const response = yield this.topiaPublicApi().get(`/avatars`, this.requestOptions);
|
|
41114
|
+
const response = yield this.topiaPublicApi().get(`/avatars/${this.profileId}`, this.requestOptions);
|
|
41115
41115
|
return response.data;
|
|
41116
41116
|
}
|
|
41117
41117
|
catch (error) {
|
|
@@ -41192,7 +41192,7 @@ class User extends SDKController {
|
|
|
41192
41192
|
addAvatar(formData) {
|
|
41193
41193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41194
41194
|
try {
|
|
41195
|
-
const response = yield this.topiaPublicApi().post(`/avatars`, formData, this.requestOptions);
|
|
41195
|
+
const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}`, formData, this.requestOptions);
|
|
41196
41196
|
return response.data;
|
|
41197
41197
|
}
|
|
41198
41198
|
catch (error) {
|
|
@@ -41273,7 +41273,7 @@ class User extends SDKController {
|
|
|
41273
41273
|
updateAvatar(avatarId, formData) {
|
|
41274
41274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41275
41275
|
try {
|
|
41276
|
-
const response = yield this.topiaPublicApi().post(`/avatars/${avatarId}`, formData, this.requestOptions);
|
|
41276
|
+
const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}/${avatarId}`, formData, this.requestOptions);
|
|
41277
41277
|
return response.data;
|
|
41278
41278
|
}
|
|
41279
41279
|
catch (error) {
|
|
@@ -41293,7 +41293,7 @@ class User extends SDKController {
|
|
|
41293
41293
|
deleteAvatar(avatarId) {
|
|
41294
41294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41295
41295
|
try {
|
|
41296
|
-
const response = yield this.topiaPublicApi().delete(`/avatars/${avatarId}`, this.requestOptions);
|
|
41296
|
+
const response = yield this.topiaPublicApi().delete(`/avatars/${this.profileId}/${avatarId}`, this.requestOptions);
|
|
41297
41297
|
return response.data;
|
|
41298
41298
|
}
|
|
41299
41299
|
catch (error) {
|
|
@@ -42041,7 +42041,7 @@ class WorldActivity extends SDKController {
|
|
|
42041
42041
|
*
|
|
42042
42042
|
* @usage
|
|
42043
42043
|
* ```ts
|
|
42044
|
-
* const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
|
|
42044
|
+
* const visitors = await worldActivity.fetchVisitorsInZone({ droppedAssetId: "exampleDroppedAssetId" });
|
|
42045
42045
|
* ```
|
|
42046
42046
|
*/
|
|
42047
42047
|
fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }) {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,14 @@ import * as axios from 'axios';
|
|
|
2
2
|
import { AxiosResponse, AxiosInstance, AxiosError } from 'axios';
|
|
3
3
|
import jwt from 'jsonwebtoken';
|
|
4
4
|
|
|
5
|
+
type AnalyticType = {
|
|
6
|
+
analyticName: string;
|
|
7
|
+
incrementBy?: number;
|
|
8
|
+
profileId?: string;
|
|
9
|
+
uniqueKey?: string;
|
|
10
|
+
urlSlug?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
5
13
|
declare enum DroppedAssetClickType {
|
|
6
14
|
NONE = "none",
|
|
7
15
|
LINK = "link",
|
|
@@ -77,14 +85,6 @@ declare class Scene extends SDKController implements SceneInterface {
|
|
|
77
85
|
fetchSceneById(): Promise<void | ResponseType$1>;
|
|
78
86
|
}
|
|
79
87
|
|
|
80
|
-
type AnalyticType = {
|
|
81
|
-
analyticName: string;
|
|
82
|
-
incrementBy?: number;
|
|
83
|
-
profileId?: string;
|
|
84
|
-
uniqueKey?: string;
|
|
85
|
-
urlSlug?: string;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
88
|
/**
|
|
89
89
|
* @summary
|
|
90
90
|
* Create an instance of Dropped Asset class with a given dropped asset id, url slug, and optional attributes and session credentials.
|
|
@@ -659,7 +659,8 @@ declare class World extends SDKController implements WorldInterface {
|
|
|
659
659
|
* { sceneDropId: sceneId-timestamp, success: true }
|
|
660
660
|
* ```
|
|
661
661
|
*/
|
|
662
|
-
dropScene({ assetSuffix, position, sceneDropId, sceneId, }: {
|
|
662
|
+
dropScene({ allowNonAdmins, assetSuffix, position, sceneDropId, sceneId, }: {
|
|
663
|
+
allowNonAdmins?: boolean;
|
|
663
664
|
assetSuffix?: string;
|
|
664
665
|
position: object;
|
|
665
666
|
sceneDropId?: string;
|
|
@@ -1915,7 +1916,7 @@ declare class WorldActivity extends SDKController {
|
|
|
1915
1916
|
*
|
|
1916
1917
|
* @usage
|
|
1917
1918
|
* ```ts
|
|
1918
|
-
* const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
|
|
1919
|
+
* const visitors = await worldActivity.fetchVisitorsInZone({ droppedAssetId: "exampleDroppedAssetId" });
|
|
1919
1920
|
* ```
|
|
1920
1921
|
*/
|
|
1921
1922
|
fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }: {
|
package/dist/index.js
CHANGED
|
@@ -40851,9 +40851,9 @@ class World extends SDKController {
|
|
|
40851
40851
|
* { sceneDropId: sceneId-timestamp, success: true }
|
|
40852
40852
|
* ```
|
|
40853
40853
|
*/
|
|
40854
|
-
dropScene({ assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40854
|
+
dropScene({ allowNonAdmins, assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40855
40855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40856
|
-
const params = { assetSuffix, position, sceneDropId, sceneId };
|
|
40856
|
+
const params = { allowNonAdmins, assetSuffix, position, sceneDropId, sceneId };
|
|
40857
40857
|
try {
|
|
40858
40858
|
const result = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, params, this.requestOptions);
|
|
40859
40859
|
return result;
|
|
@@ -41109,7 +41109,7 @@ class User extends SDKController {
|
|
|
41109
41109
|
fetchAvatars() {
|
|
41110
41110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41111
41111
|
try {
|
|
41112
|
-
const response = yield this.topiaPublicApi().get(`/avatars`, this.requestOptions);
|
|
41112
|
+
const response = yield this.topiaPublicApi().get(`/avatars/${this.profileId}`, this.requestOptions);
|
|
41113
41113
|
return response.data;
|
|
41114
41114
|
}
|
|
41115
41115
|
catch (error) {
|
|
@@ -41190,7 +41190,7 @@ class User extends SDKController {
|
|
|
41190
41190
|
addAvatar(formData) {
|
|
41191
41191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41192
41192
|
try {
|
|
41193
|
-
const response = yield this.topiaPublicApi().post(`/avatars`, formData, this.requestOptions);
|
|
41193
|
+
const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}`, formData, this.requestOptions);
|
|
41194
41194
|
return response.data;
|
|
41195
41195
|
}
|
|
41196
41196
|
catch (error) {
|
|
@@ -41271,7 +41271,7 @@ class User extends SDKController {
|
|
|
41271
41271
|
updateAvatar(avatarId, formData) {
|
|
41272
41272
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41273
41273
|
try {
|
|
41274
|
-
const response = yield this.topiaPublicApi().post(`/avatars/${avatarId}`, formData, this.requestOptions);
|
|
41274
|
+
const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}/${avatarId}`, formData, this.requestOptions);
|
|
41275
41275
|
return response.data;
|
|
41276
41276
|
}
|
|
41277
41277
|
catch (error) {
|
|
@@ -41291,7 +41291,7 @@ class User extends SDKController {
|
|
|
41291
41291
|
deleteAvatar(avatarId) {
|
|
41292
41292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41293
41293
|
try {
|
|
41294
|
-
const response = yield this.topiaPublicApi().delete(`/avatars/${avatarId}`, this.requestOptions);
|
|
41294
|
+
const response = yield this.topiaPublicApi().delete(`/avatars/${this.profileId}/${avatarId}`, this.requestOptions);
|
|
41295
41295
|
return response.data;
|
|
41296
41296
|
}
|
|
41297
41297
|
catch (error) {
|
|
@@ -42039,7 +42039,7 @@ class WorldActivity extends SDKController {
|
|
|
42039
42039
|
*
|
|
42040
42040
|
* @usage
|
|
42041
42041
|
* ```ts
|
|
42042
|
-
* const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
|
|
42042
|
+
* const visitors = await worldActivity.fetchVisitorsInZone({ droppedAssetId: "exampleDroppedAssetId" });
|
|
42043
42043
|
* ```
|
|
42044
42044
|
*/
|
|
42045
42045
|
fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }) {
|
package/package.json
CHANGED