@rtsdk/topia 0.6.0 → 0.6.1
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 +36 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +36 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39714,7 +39714,12 @@ class SDKController {
|
|
|
39714
39714
|
*/
|
|
39715
39715
|
class Asset extends SDKController {
|
|
39716
39716
|
constructor(topia, id, options = { attributes: {}, credentials: {} }) {
|
|
39717
|
-
|
|
39717
|
+
var _a, _b, _c;
|
|
39718
|
+
super(topia, {
|
|
39719
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
39720
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
39721
|
+
visitorId: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.visitorId,
|
|
39722
|
+
});
|
|
39718
39723
|
this.id = id;
|
|
39719
39724
|
Object.assign(this, options.attributes);
|
|
39720
39725
|
}
|
|
@@ -39744,7 +39749,7 @@ var _DroppedAsset_updateDroppedAsset;
|
|
|
39744
39749
|
class DroppedAsset extends Asset {
|
|
39745
39750
|
constructor(topia, id, urlSlug, options = { attributes: { text: "" }, credentials: {} }) {
|
|
39746
39751
|
var _a;
|
|
39747
|
-
super(topia, id, { attributes: options.attributes, credentials: Object.assign(Object.assign({}, options.credentials), { urlSlug }) });
|
|
39752
|
+
super(topia, id, { attributes: options.attributes, credentials: Object.assign(Object.assign({}, options.credentials), { assetId: id, urlSlug }) });
|
|
39748
39753
|
// private methods
|
|
39749
39754
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
39750
39755
|
try {
|
|
@@ -40262,7 +40267,13 @@ _DroppedAsset_updateDroppedAsset = new WeakMap();
|
|
|
40262
40267
|
*/
|
|
40263
40268
|
class Scene extends SDKController {
|
|
40264
40269
|
constructor(topia, id, options = { attributes: {}, credentials: {} }) {
|
|
40265
|
-
|
|
40270
|
+
var _a, _b, _c, _d;
|
|
40271
|
+
super(topia, {
|
|
40272
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40273
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40274
|
+
urlSlug: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug,
|
|
40275
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
40276
|
+
});
|
|
40266
40277
|
this.id = id;
|
|
40267
40278
|
Object.assign(this, options.attributes);
|
|
40268
40279
|
}
|
|
@@ -40318,7 +40329,13 @@ var _World_droppedAssetsMap;
|
|
|
40318
40329
|
*/
|
|
40319
40330
|
class World extends SDKController {
|
|
40320
40331
|
constructor(topia, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
40321
|
-
|
|
40332
|
+
var _a, _b, _c;
|
|
40333
|
+
super(topia, {
|
|
40334
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40335
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40336
|
+
urlSlug,
|
|
40337
|
+
visitorId: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.visitorId,
|
|
40338
|
+
});
|
|
40322
40339
|
_World_droppedAssetsMap.set(this, void 0);
|
|
40323
40340
|
////////// data objects
|
|
40324
40341
|
/**
|
|
@@ -40824,7 +40841,14 @@ var _User_adminWorldsMap, _User_assetsMap, _User_scenesMap, _User_worldsMap;
|
|
|
40824
40841
|
*/
|
|
40825
40842
|
class User extends SDKController {
|
|
40826
40843
|
constructor(topia, options = { profileId: null, credentials: {} }) {
|
|
40827
|
-
|
|
40844
|
+
var _a, _b, _c, _d;
|
|
40845
|
+
super(topia, {
|
|
40846
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40847
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40848
|
+
profileId: options.profileId,
|
|
40849
|
+
urlSlug: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug,
|
|
40850
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
40851
|
+
});
|
|
40828
40852
|
_User_adminWorldsMap.set(this, void 0);
|
|
40829
40853
|
_User_assetsMap.set(this, void 0);
|
|
40830
40854
|
_User_scenesMap.set(this, void 0);
|
|
@@ -41426,7 +41450,13 @@ var _WorldActivity_visitorsMap;
|
|
|
41426
41450
|
*/
|
|
41427
41451
|
class WorldActivity extends SDKController {
|
|
41428
41452
|
constructor(topia, urlSlug, options = { credentials: {} }) {
|
|
41429
|
-
|
|
41453
|
+
var _a, _b, _c;
|
|
41454
|
+
super(topia, {
|
|
41455
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
41456
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
41457
|
+
urlSlug,
|
|
41458
|
+
visitorId: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.visitorId,
|
|
41459
|
+
});
|
|
41430
41460
|
_WorldActivity_visitorsMap.set(this, void 0);
|
|
41431
41461
|
this.urlSlug = urlSlug;
|
|
41432
41462
|
__classPrivateFieldSet(this, _WorldActivity_visitorsMap, {}, "f");
|
package/dist/index.d.ts
CHANGED
|
@@ -1085,7 +1085,7 @@ interface AssetInterface extends SDKInterface {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
type AssetOptionalInterface = {
|
|
1087
1087
|
attributes?: AssetInterface | object;
|
|
1088
|
-
credentials?: InteractiveCredentials
|
|
1088
|
+
credentials?: InteractiveCredentials;
|
|
1089
1089
|
};
|
|
1090
1090
|
|
|
1091
1091
|
interface DroppedAssetInterface extends AssetInterface {
|
|
@@ -1246,7 +1246,7 @@ interface SceneInterface {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
type SceneOptionalInterface = {
|
|
1248
1248
|
attributes?: SceneInterface | object;
|
|
1249
|
-
credentials?: InteractiveCredentials
|
|
1249
|
+
credentials?: InteractiveCredentials;
|
|
1250
1250
|
};
|
|
1251
1251
|
|
|
1252
1252
|
interface TopiaInterface {
|
|
@@ -1268,7 +1268,7 @@ interface UserInterface {
|
|
|
1268
1268
|
dataObject?: object | null;
|
|
1269
1269
|
}
|
|
1270
1270
|
interface UserOptionalInterface {
|
|
1271
|
-
credentials?: InteractiveCredentials
|
|
1271
|
+
credentials?: InteractiveCredentials;
|
|
1272
1272
|
profileId?: string | null;
|
|
1273
1273
|
visitorId?: number | null;
|
|
1274
1274
|
urlSlug?: string;
|
|
@@ -1311,7 +1311,7 @@ interface VisitorInterface extends SDKInterface {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
interface VisitorOptionalInterface {
|
|
1313
1313
|
attributes?: VisitorInterface | object;
|
|
1314
|
-
credentials?: InteractiveCredentials
|
|
1314
|
+
credentials?: InteractiveCredentials;
|
|
1315
1315
|
}
|
|
1316
1316
|
interface MoveVisitorInterface {
|
|
1317
1317
|
shouldTeleportVisitor: boolean;
|
|
@@ -1346,7 +1346,7 @@ interface WebhookInterface {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
1348
|
interface WorldActivityOptionalInterface {
|
|
1349
|
-
credentials?: InteractiveCredentials
|
|
1349
|
+
credentials?: InteractiveCredentials;
|
|
1350
1350
|
}
|
|
1351
1351
|
interface MoveAllVisitorsInterface {
|
|
1352
1352
|
shouldFetchVisitors?: boolean;
|
|
@@ -1405,7 +1405,7 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
interface WorldOptionalInterface {
|
|
1407
1407
|
attributes?: WorldDetailsInterface | object;
|
|
1408
|
-
credentials?: InteractiveCredentials
|
|
1408
|
+
credentials?: InteractiveCredentials;
|
|
1409
1409
|
}
|
|
1410
1410
|
interface WorldWebhooksInterface {
|
|
1411
1411
|
webhooks: Array<WebhookInterface>;
|
package/dist/index.js
CHANGED
|
@@ -39712,7 +39712,12 @@ class SDKController {
|
|
|
39712
39712
|
*/
|
|
39713
39713
|
class Asset extends SDKController {
|
|
39714
39714
|
constructor(topia, id, options = { attributes: {}, credentials: {} }) {
|
|
39715
|
-
|
|
39715
|
+
var _a, _b, _c;
|
|
39716
|
+
super(topia, {
|
|
39717
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
39718
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
39719
|
+
visitorId: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.visitorId,
|
|
39720
|
+
});
|
|
39716
39721
|
this.id = id;
|
|
39717
39722
|
Object.assign(this, options.attributes);
|
|
39718
39723
|
}
|
|
@@ -39742,7 +39747,7 @@ var _DroppedAsset_updateDroppedAsset;
|
|
|
39742
39747
|
class DroppedAsset extends Asset {
|
|
39743
39748
|
constructor(topia, id, urlSlug, options = { attributes: { text: "" }, credentials: {} }) {
|
|
39744
39749
|
var _a;
|
|
39745
|
-
super(topia, id, { attributes: options.attributes, credentials: Object.assign(Object.assign({}, options.credentials), { urlSlug }) });
|
|
39750
|
+
super(topia, id, { attributes: options.attributes, credentials: Object.assign(Object.assign({}, options.credentials), { assetId: id, urlSlug }) });
|
|
39746
39751
|
// private methods
|
|
39747
39752
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
39748
39753
|
try {
|
|
@@ -40260,7 +40265,13 @@ _DroppedAsset_updateDroppedAsset = new WeakMap();
|
|
|
40260
40265
|
*/
|
|
40261
40266
|
class Scene extends SDKController {
|
|
40262
40267
|
constructor(topia, id, options = { attributes: {}, credentials: {} }) {
|
|
40263
|
-
|
|
40268
|
+
var _a, _b, _c, _d;
|
|
40269
|
+
super(topia, {
|
|
40270
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40271
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40272
|
+
urlSlug: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug,
|
|
40273
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
40274
|
+
});
|
|
40264
40275
|
this.id = id;
|
|
40265
40276
|
Object.assign(this, options.attributes);
|
|
40266
40277
|
}
|
|
@@ -40316,7 +40327,13 @@ var _World_droppedAssetsMap;
|
|
|
40316
40327
|
*/
|
|
40317
40328
|
class World extends SDKController {
|
|
40318
40329
|
constructor(topia, urlSlug, options = { attributes: {}, credentials: {} }) {
|
|
40319
|
-
|
|
40330
|
+
var _a, _b, _c;
|
|
40331
|
+
super(topia, {
|
|
40332
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40333
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40334
|
+
urlSlug,
|
|
40335
|
+
visitorId: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.visitorId,
|
|
40336
|
+
});
|
|
40320
40337
|
_World_droppedAssetsMap.set(this, void 0);
|
|
40321
40338
|
////////// data objects
|
|
40322
40339
|
/**
|
|
@@ -40822,7 +40839,14 @@ var _User_adminWorldsMap, _User_assetsMap, _User_scenesMap, _User_worldsMap;
|
|
|
40822
40839
|
*/
|
|
40823
40840
|
class User extends SDKController {
|
|
40824
40841
|
constructor(topia, options = { profileId: null, credentials: {} }) {
|
|
40825
|
-
|
|
40842
|
+
var _a, _b, _c, _d;
|
|
40843
|
+
super(topia, {
|
|
40844
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
40845
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
40846
|
+
profileId: options.profileId,
|
|
40847
|
+
urlSlug: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.urlSlug,
|
|
40848
|
+
visitorId: (_d = options === null || options === void 0 ? void 0 : options.credentials) === null || _d === void 0 ? void 0 : _d.visitorId,
|
|
40849
|
+
});
|
|
40826
40850
|
_User_adminWorldsMap.set(this, void 0);
|
|
40827
40851
|
_User_assetsMap.set(this, void 0);
|
|
40828
40852
|
_User_scenesMap.set(this, void 0);
|
|
@@ -41424,7 +41448,13 @@ var _WorldActivity_visitorsMap;
|
|
|
41424
41448
|
*/
|
|
41425
41449
|
class WorldActivity extends SDKController {
|
|
41426
41450
|
constructor(topia, urlSlug, options = { credentials: {} }) {
|
|
41427
|
-
|
|
41451
|
+
var _a, _b, _c;
|
|
41452
|
+
super(topia, {
|
|
41453
|
+
apiKey: (_a = options === null || options === void 0 ? void 0 : options.credentials) === null || _a === void 0 ? void 0 : _a.apiKey,
|
|
41454
|
+
interactiveNonce: (_b = options === null || options === void 0 ? void 0 : options.credentials) === null || _b === void 0 ? void 0 : _b.interactiveNonce,
|
|
41455
|
+
urlSlug,
|
|
41456
|
+
visitorId: (_c = options === null || options === void 0 ? void 0 : options.credentials) === null || _c === void 0 ? void 0 : _c.visitorId,
|
|
41457
|
+
});
|
|
41428
41458
|
_WorldActivity_visitorsMap.set(this, void 0);
|
|
41429
41459
|
this.urlSlug = urlSlug;
|
|
41430
41460
|
__classPrivateFieldSet(this, _WorldActivity_visitorsMap, {}, "f");
|
package/package.json
CHANGED