@rtsdk/topia 0.3.5 → 0.3.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/index.cjs CHANGED
@@ -41056,6 +41056,25 @@ class Visitor extends User {
41056
41056
  }
41057
41057
  });
41058
41058
  }
41059
+ /**
41060
+ * @summary
41061
+ * Mute and turn video off for a visitor currently in a world.
41062
+ *
41063
+ * @usage
41064
+ * ```ts
41065
+ * await visitor.turnAVOff();
41066
+ * ```
41067
+ */
41068
+ turnAVOff() {
41069
+ return __awaiter(this, void 0, void 0, function* () {
41070
+ try {
41071
+ yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/turn-av-off`, this.requestOptions);
41072
+ }
41073
+ catch (error) {
41074
+ throw this.errorHandler({ error });
41075
+ }
41076
+ });
41077
+ }
41059
41078
  /**
41060
41079
  * @summary
41061
41080
  * Retrieves the data object for a visitor.
package/dist/index.d.ts CHANGED
@@ -829,6 +829,16 @@ declare class Visitor extends User implements VisitorInterface {
829
829
  * ```
830
830
  */
831
831
  openIframe({ link, shouldOpenInDrawer, title }: OpenIframeInterface): Promise<void | ResponseType>;
832
+ /**
833
+ * @summary
834
+ * Mute and turn video off for a visitor currently in a world.
835
+ *
836
+ * @usage
837
+ * ```ts
838
+ * await visitor.turnAVOff();
839
+ * ```
840
+ */
841
+ turnAVOff(): Promise<void | ResponseType>;
832
842
  /**
833
843
  * @summary
834
844
  * Retrieves the data object for a visitor.
package/dist/index.js CHANGED
@@ -41054,6 +41054,25 @@ class Visitor extends User {
41054
41054
  }
41055
41055
  });
41056
41056
  }
41057
+ /**
41058
+ * @summary
41059
+ * Mute and turn video off for a visitor currently in a world.
41060
+ *
41061
+ * @usage
41062
+ * ```ts
41063
+ * await visitor.turnAVOff();
41064
+ * ```
41065
+ */
41066
+ turnAVOff() {
41067
+ return __awaiter(this, void 0, void 0, function* () {
41068
+ try {
41069
+ yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/turn-av-off`, this.requestOptions);
41070
+ }
41071
+ catch (error) {
41072
+ throw this.errorHandler({ error });
41073
+ }
41074
+ });
41075
+ }
41057
41076
  /**
41058
41077
  * @summary
41059
41078
  * Retrieves the data object for a visitor.
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.3.5"
62
+ "version": "0.3.6"
63
63
  }