@rtsdk/topia 0.5.4 → 0.6.0

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 CHANGED
@@ -41204,15 +41204,17 @@ class Visitor extends User {
41204
41204
  * @usage
41205
41205
  * ```ts
41206
41206
  * await visitor.openIframe({
41207
+ * droppedAssetId: "droppedAssetId",
41207
41208
  * link: "https://topia.io",
41208
41209
  * shouldOpenInDrawer: true,
41209
41210
  * title: "Hello World",
41210
41211
  * });
41211
41212
  * ```
41212
41213
  */
41213
- openIframe({ link, shouldOpenInDrawer, title }) {
41214
+ openIframe({ droppedAssetId, link, shouldOpenInDrawer, title, }) {
41214
41215
  return __awaiter(this, void 0, void 0, function* () {
41215
41216
  const params = {
41217
+ droppedAssetId,
41216
41218
  link,
41217
41219
  shouldOpenInDrawer,
41218
41220
  title,
@@ -41225,6 +41227,44 @@ class Visitor extends User {
41225
41227
  }
41226
41228
  });
41227
41229
  }
41230
+ /**
41231
+ * @summary
41232
+ * Reload an iframe for a visitor currently in a world.
41233
+ *
41234
+ * @usage
41235
+ * ```ts
41236
+ * await visitor.reloadIframe("droppedAssetId");
41237
+ * ```
41238
+ */
41239
+ reloadIframe(droppedAssetId) {
41240
+ return __awaiter(this, void 0, void 0, function* () {
41241
+ try {
41242
+ yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/reload-iframe`, { droppedAssetId }, this.requestOptions);
41243
+ }
41244
+ catch (error) {
41245
+ throw this.errorHandler({ error, params: { droppedAssetId }, sdkMethod: "Visitor.reloadIframe" });
41246
+ }
41247
+ });
41248
+ }
41249
+ /**
41250
+ * @summary
41251
+ * Close an iframe for a visitor currently in a world.
41252
+ *
41253
+ * @usage
41254
+ * ```ts
41255
+ * await visitor.closeIframe("droppedAssetId");
41256
+ * ```
41257
+ */
41258
+ closeIframe(droppedAssetId) {
41259
+ return __awaiter(this, void 0, void 0, function* () {
41260
+ try {
41261
+ yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/close-iframe`, { droppedAssetId }, this.requestOptions);
41262
+ }
41263
+ catch (error) {
41264
+ throw this.errorHandler({ error, params: { droppedAssetId }, sdkMethod: "Visitor.closeIframe" });
41265
+ }
41266
+ });
41267
+ }
41228
41268
  /**
41229
41269
  * @summary
41230
41270
  * Mute and turn video off for a visitor currently in a world.
package/dist/index.d.ts CHANGED
@@ -902,13 +902,34 @@ declare class Visitor extends User implements VisitorInterface {
902
902
  * @usage
903
903
  * ```ts
904
904
  * await visitor.openIframe({
905
+ * droppedAssetId: "droppedAssetId",
905
906
  * link: "https://topia.io",
906
907
  * shouldOpenInDrawer: true,
907
908
  * title: "Hello World",
908
909
  * });
909
910
  * ```
910
911
  */
911
- openIframe({ link, shouldOpenInDrawer, title }: OpenIframeInterface): Promise<void | ResponseType>;
912
+ openIframe({ droppedAssetId, link, shouldOpenInDrawer, title, }: OpenIframeInterface): Promise<void | ResponseType>;
913
+ /**
914
+ * @summary
915
+ * Reload an iframe for a visitor currently in a world.
916
+ *
917
+ * @usage
918
+ * ```ts
919
+ * await visitor.reloadIframe("droppedAssetId");
920
+ * ```
921
+ */
922
+ reloadIframe(droppedAssetId: string): Promise<void | ResponseType>;
923
+ /**
924
+ * @summary
925
+ * Close an iframe for a visitor currently in a world.
926
+ *
927
+ * @usage
928
+ * ```ts
929
+ * await visitor.closeIframe("droppedAssetId");
930
+ * ```
931
+ */
932
+ closeIframe(droppedAssetId: string): Promise<void | ResponseType>;
912
933
  /**
913
934
  * @summary
914
935
  * Mute and turn video off for a visitor currently in a world.
@@ -1303,6 +1324,7 @@ interface FireToastInterface {
1303
1324
  text?: string;
1304
1325
  }
1305
1326
  interface OpenIframeInterface {
1327
+ droppedAssetId: string;
1306
1328
  link: string;
1307
1329
  shouldOpenInDrawer?: boolean;
1308
1330
  title?: string;
package/dist/index.js CHANGED
@@ -41202,15 +41202,17 @@ class Visitor extends User {
41202
41202
  * @usage
41203
41203
  * ```ts
41204
41204
  * await visitor.openIframe({
41205
+ * droppedAssetId: "droppedAssetId",
41205
41206
  * link: "https://topia.io",
41206
41207
  * shouldOpenInDrawer: true,
41207
41208
  * title: "Hello World",
41208
41209
  * });
41209
41210
  * ```
41210
41211
  */
41211
- openIframe({ link, shouldOpenInDrawer, title }) {
41212
+ openIframe({ droppedAssetId, link, shouldOpenInDrawer, title, }) {
41212
41213
  return __awaiter(this, void 0, void 0, function* () {
41213
41214
  const params = {
41215
+ droppedAssetId,
41214
41216
  link,
41215
41217
  shouldOpenInDrawer,
41216
41218
  title,
@@ -41223,6 +41225,44 @@ class Visitor extends User {
41223
41225
  }
41224
41226
  });
41225
41227
  }
41228
+ /**
41229
+ * @summary
41230
+ * Reload an iframe for a visitor currently in a world.
41231
+ *
41232
+ * @usage
41233
+ * ```ts
41234
+ * await visitor.reloadIframe("droppedAssetId");
41235
+ * ```
41236
+ */
41237
+ reloadIframe(droppedAssetId) {
41238
+ return __awaiter(this, void 0, void 0, function* () {
41239
+ try {
41240
+ yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/reload-iframe`, { droppedAssetId }, this.requestOptions);
41241
+ }
41242
+ catch (error) {
41243
+ throw this.errorHandler({ error, params: { droppedAssetId }, sdkMethod: "Visitor.reloadIframe" });
41244
+ }
41245
+ });
41246
+ }
41247
+ /**
41248
+ * @summary
41249
+ * Close an iframe for a visitor currently in a world.
41250
+ *
41251
+ * @usage
41252
+ * ```ts
41253
+ * await visitor.closeIframe("droppedAssetId");
41254
+ * ```
41255
+ */
41256
+ closeIframe(droppedAssetId) {
41257
+ return __awaiter(this, void 0, void 0, function* () {
41258
+ try {
41259
+ yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/close-iframe`, { droppedAssetId }, this.requestOptions);
41260
+ }
41261
+ catch (error) {
41262
+ throw this.errorHandler({ error, params: { droppedAssetId }, sdkMethod: "Visitor.closeIframe" });
41263
+ }
41264
+ });
41265
+ }
41226
41266
  /**
41227
41267
  * @summary
41228
41268
  * Mute and turn video off for a visitor currently in a world.
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "local-publish": "yarn build && yalc publish --push --no-scripts"
60
60
  },
61
61
  "type": "module",
62
- "version": "0.5.4"
62
+ "version": "0.6.0"
63
63
  }