@pixelverse/strichjs-sdk 1.5.1 → 1.5.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/dist/strich.d.ts CHANGED
@@ -410,8 +410,8 @@ export declare interface OverlayConfiguration {
410
410
  /**
411
411
  * Override the STRICH logo displayed in the bottom-right corner with a custom image.
412
412
  *
413
- * The image is supplied as a URL (e.g. https://example.com/assets/overlay.png) or inline as a data URL. The image
414
- * should have a transparent background (WebP or PNG format). The recommended size is 140x30 pixels.
413
+ * The image is supplied as an absolute URL or inline as a data URL. The image should have a transparent background
414
+ * (WebP or PNG format). The recommended size is 140x30 pixels.
415
415
  *
416
416
  * @remarks This is a capability that is only available as a paid add-on for Enterprise licenses.
417
417
  */
@@ -580,6 +580,20 @@ export declare class StrichSDK {
580
580
  * if the check fails for any reason (including missing/denied permissions).
581
581
  */
582
582
  static hasCameraDevice(): Promise<boolean>;
583
+ /**
584
+ * Return the current state of the camera permission.
585
+ *
586
+ * Uses the Permissions API (https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API) to determine
587
+ * if the user has granted or denied camera permission or if a prompt will occur when the camera is accessed.
588
+ * In all other cases, the value 'unknown' is returned.
589
+ *
590
+ * @remarks
591
+ * The Permissions API is currently not available on Firefox: 'unknown' will be returned.
592
+ *
593
+ * @returns The current state of the camera permission: 'granted' if it is granted, 'denied' if it is denied,
594
+ * 'prompt' if a prompt will occur, and 'unknown' if it could not be determined for any reason.
595
+ */
596
+ static getCameraPermissionState(): Promise<'denied' | 'granted' | 'prompt' | 'unknown'>;
583
597
  }
584
598
 
585
599
  /**