@camera.ui/sdk 0.0.15 → 0.0.16

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.d.ts CHANGED
@@ -3436,20 +3436,6 @@ interface SnapshotSettings {
3436
3436
  interval: number;
3437
3437
  }
3438
3438
 
3439
- /**
3440
- * Subscription management interface for sessions.
3441
- */
3442
- interface Subscribed {
3443
- /** Add subscriptions to be cleaned up on unsubscribe */
3444
- addSubscriptions(...subscriptions: Disposable[]): void;
3445
- /** Add additional subscriptions (separate cleanup) */
3446
- addAdditionalSubscriptions(...subscriptions: Disposable[]): void;
3447
- /** Unsubscribe all main subscriptions */
3448
- unsubscribe(): void;
3449
- /** Unsubscribe additional subscriptions only */
3450
- unsubscribeAdditional(): void;
3451
- }
3452
-
3453
3439
  type Extension = {
3454
3440
  id: number;
3455
3441
  payload: Buffer;
@@ -3494,6 +3480,20 @@ declare class RtpPacket {
3494
3480
  clear(): void;
3495
3481
  }
3496
3482
 
3483
+ /**
3484
+ * Subscription management interface for sessions.
3485
+ */
3486
+ interface Subscribed {
3487
+ /** Add subscriptions to be cleaned up on unsubscribe */
3488
+ addSubscriptions(...subscriptions: Disposable[]): void;
3489
+ /** Add additional subscriptions (separate cleanup) */
3490
+ addAdditionalSubscriptions(...subscriptions: Disposable[]): void;
3491
+ /** Unsubscribe all main subscriptions */
3492
+ unsubscribe(): void;
3493
+ /** Unsubscribe additional subscriptions only */
3494
+ unsubscribeAdditional(): void;
3495
+ }
3496
+
3497
3497
  /**
3498
3498
  * WebSocket streaming URLs from go2rtc.
3499
3499
  */
@@ -3806,7 +3806,7 @@ interface Fmp4SessionOptions {
3806
3806
  };
3807
3807
  /** Use box mode for streaming */
3808
3808
  boxMode?: boolean;
3809
- /** Fragment duration in ms */
3809
+ /** Fragment duration in microseconds */
3810
3810
  fragDuration?: number;
3811
3811
  /** Supported audio codecs (skip transcode if match) */
3812
3812
  supportedAudioCodecs?: ('aac' | 'opus' | 'flac')[];
@@ -4204,6 +4204,12 @@ interface DetectionEvent {
4204
4204
  * plugin persists it and clients fetch it on demand via getEventThumbnails.
4205
4205
  */
4206
4206
  thumbnail?: Buffer;
4207
+ /**
4208
+ * Whether recorded footage overlaps this event's time window. Populated only
4209
+ * when the events query explicitly requests it (e.g. the recordings browser);
4210
+ * undefined otherwise.
4211
+ */
4212
+ hasRecording?: boolean;
4207
4213
  }
4208
4214
 
4209
4215
  /**
@@ -818,6 +818,12 @@ interface DetectionEvent {
818
818
  * plugin persists it and clients fetch it on demand via getEventThumbnails.
819
819
  */
820
820
  thumbnail?: Buffer;
821
+ /**
822
+ * Whether recorded footage overlaps this event's time window. Populated only
823
+ * when the events query explicitly requests it (e.g. the recordings browser);
824
+ * undefined otherwise.
825
+ */
826
+ hasRecording?: boolean;
821
827
  }
822
828
 
823
829
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/sdk",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "camera.ui sdk",
5
5
  "exports": {
6
6
  ".": {