@rtsdk/topia 0.7.1 → 0.7.2
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/README.md +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Javascript RTSDK - Topia Client Library
|
|
2
2
|
|
|
3
|
-
The Topia Client Library leverages the Topia Public API and allows users to interact with the topia systems and modify their world programmatically. With the SDK you can now build new features to be used in Topia! Check out a list of examples [here](https://github.com/metaversecloud-com/sdk-examples).
|
|
3
|
+
The Topia Client Library leverages the Topia Public API and allows users to interact with the topia systems and modify their world programmatically. With the SDK you can now build new features to be used in Topia! Check out a list of examples [here](https://github.com/metaversecloud-com/sdk-examples). Questions, comments, or have something exciting to share with the Topia team? Reach out to [developers@topia.io](mailto:developers@topia.io)!
|
|
4
4
|
|
|
5
5
|
<br>
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -39758,7 +39758,7 @@ var _DroppedAsset_updateDroppedAsset;
|
|
|
39758
39758
|
class DroppedAsset extends Asset {
|
|
39759
39759
|
constructor(topia, id, urlSlug, options = { attributes: { text: "" }, credentials: {} }) {
|
|
39760
39760
|
var _a;
|
|
39761
|
-
super(topia, id, { attributes: options.attributes, credentials: Object.assign(
|
|
39761
|
+
super(topia, id, { attributes: options.attributes, credentials: Object.assign({ assetId: id, urlSlug }, options.credentials) });
|
|
39762
39762
|
// private methods
|
|
39763
39763
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
39764
39764
|
try {
|
|
@@ -40353,12 +40353,12 @@ var _World_droppedAssetsMap;
|
|
|
40353
40353
|
*/
|
|
40354
40354
|
class World extends SDKController {
|
|
40355
40355
|
constructor(topia, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
40356
|
-
var _a, _b, _c;
|
|
40356
|
+
var _a, _b, _c, _d;
|
|
40357
40357
|
super(topia, {
|
|
40358
40358
|
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40359
40359
|
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40360
|
-
urlSlug,
|
|
40361
|
-
visitorId: (
|
|
40360
|
+
urlSlug: ((_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug) || urlSlug,
|
|
40361
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
40362
40362
|
});
|
|
40363
40363
|
_World_droppedAssetsMap.set(this, void 0);
|
|
40364
40364
|
////////// data objects
|
|
@@ -41149,7 +41149,7 @@ _User_adminWorldsMap = new WeakMap(), _User_assetsMap = new WeakMap(), _User_sce
|
|
|
41149
41149
|
*/
|
|
41150
41150
|
class Visitor extends User {
|
|
41151
41151
|
constructor(topia, id, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
41152
|
-
super(topia, { credentials: Object.assign(
|
|
41152
|
+
super(topia, { credentials: Object.assign({ urlSlug }, options.credentials) });
|
|
41153
41153
|
Object.assign(this, options.attributes);
|
|
41154
41154
|
this.id = id;
|
|
41155
41155
|
this.urlSlug = urlSlug;
|
|
@@ -41480,12 +41480,12 @@ var _WorldActivity_visitorsMap;
|
|
|
41480
41480
|
*/
|
|
41481
41481
|
class WorldActivity extends SDKController {
|
|
41482
41482
|
constructor(topia, urlSlug, options = { credentials: {} }) {
|
|
41483
|
-
var _a, _b, _c;
|
|
41483
|
+
var _a, _b, _c, _d;
|
|
41484
41484
|
super(topia, {
|
|
41485
41485
|
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
41486
41486
|
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
41487
|
-
urlSlug,
|
|
41488
|
-
visitorId: (
|
|
41487
|
+
urlSlug: ((_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug) || urlSlug,
|
|
41488
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
41489
41489
|
});
|
|
41490
41490
|
_WorldActivity_visitorsMap.set(this, void 0);
|
|
41491
41491
|
this.urlSlug = urlSlug;
|
package/dist/index.js
CHANGED
|
@@ -39756,7 +39756,7 @@ var _DroppedAsset_updateDroppedAsset;
|
|
|
39756
39756
|
class DroppedAsset extends Asset {
|
|
39757
39757
|
constructor(topia, id, urlSlug, options = { attributes: { text: "" }, credentials: {} }) {
|
|
39758
39758
|
var _a;
|
|
39759
|
-
super(topia, id, { attributes: options.attributes, credentials: Object.assign(
|
|
39759
|
+
super(topia, id, { attributes: options.attributes, credentials: Object.assign({ assetId: id, urlSlug }, options.credentials) });
|
|
39760
39760
|
// private methods
|
|
39761
39761
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
39762
39762
|
try {
|
|
@@ -40351,12 +40351,12 @@ var _World_droppedAssetsMap;
|
|
|
40351
40351
|
*/
|
|
40352
40352
|
class World extends SDKController {
|
|
40353
40353
|
constructor(topia, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
40354
|
-
var _a, _b, _c;
|
|
40354
|
+
var _a, _b, _c, _d;
|
|
40355
40355
|
super(topia, {
|
|
40356
40356
|
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40357
40357
|
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40358
|
-
urlSlug,
|
|
40359
|
-
visitorId: (
|
|
40358
|
+
urlSlug: ((_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug) || urlSlug,
|
|
40359
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
40360
40360
|
});
|
|
40361
40361
|
_World_droppedAssetsMap.set(this, void 0);
|
|
40362
40362
|
////////// data objects
|
|
@@ -41147,7 +41147,7 @@ _User_adminWorldsMap = new WeakMap(), _User_assetsMap = new WeakMap(), _User_sce
|
|
|
41147
41147
|
*/
|
|
41148
41148
|
class Visitor extends User {
|
|
41149
41149
|
constructor(topia, id, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
41150
|
-
super(topia, { credentials: Object.assign(
|
|
41150
|
+
super(topia, { credentials: Object.assign({ urlSlug }, options.credentials) });
|
|
41151
41151
|
Object.assign(this, options.attributes);
|
|
41152
41152
|
this.id = id;
|
|
41153
41153
|
this.urlSlug = urlSlug;
|
|
@@ -41478,12 +41478,12 @@ var _WorldActivity_visitorsMap;
|
|
|
41478
41478
|
*/
|
|
41479
41479
|
class WorldActivity extends SDKController {
|
|
41480
41480
|
constructor(topia, urlSlug, options = { credentials: {} }) {
|
|
41481
|
-
var _a, _b, _c;
|
|
41481
|
+
var _a, _b, _c, _d;
|
|
41482
41482
|
super(topia, {
|
|
41483
41483
|
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
41484
41484
|
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
41485
|
-
urlSlug,
|
|
41486
|
-
visitorId: (
|
|
41485
|
+
urlSlug: ((_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug) || urlSlug,
|
|
41486
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
41487
41487
|
});
|
|
41488
41488
|
_WorldActivity_visitorsMap.set(this, void 0);
|
|
41489
41489
|
this.urlSlug = urlSlug;
|
package/package.json
CHANGED