@camstack/types 1.2.580 → 1.2.581
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/CHANGELOG.md +6 -0
- package/dist/capabilities/webrtc-session.cap.d.ts +12 -0
- package/dist/index.js +9 -1
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.581] - 2026-11-15
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The WebRTC session hints accept an optional intent (live or clip).
|
|
15
|
+
|
|
10
16
|
## [1.2.580] - 2026-11-15
|
|
11
17
|
|
|
12
18
|
### Fixed
|
|
@@ -13,6 +13,10 @@ export declare const webrtcClientHintsSchema: z.ZodObject<{
|
|
|
13
13
|
devicePixelRatio: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
14
14
|
downlinkMbps: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
15
15
|
prefersTier: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
intent: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
clip: "clip";
|
|
18
|
+
live: "live";
|
|
19
|
+
}>>>;
|
|
16
20
|
}, z.core.$strip>;
|
|
17
21
|
export type WebrtcClientHints = z.infer<typeof webrtcClientHintsSchema>;
|
|
18
22
|
/**
|
|
@@ -365,6 +369,10 @@ export declare const webrtcSessionCapability: {
|
|
|
365
369
|
devicePixelRatio: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
366
370
|
downlinkMbps: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
367
371
|
prefersTier: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
372
|
+
intent: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
clip: "clip";
|
|
374
|
+
live: "live";
|
|
375
|
+
}>>>;
|
|
368
376
|
}, z.core.$strip>>;
|
|
369
377
|
relayOnly: z.ZodOptional<z.ZodBoolean>;
|
|
370
378
|
consumerAttribution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
@@ -477,6 +485,10 @@ export declare const webrtcSessionCapability: {
|
|
|
477
485
|
devicePixelRatio: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
478
486
|
downlinkMbps: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
479
487
|
prefersTier: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
488
|
+
intent: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
489
|
+
clip: "clip";
|
|
490
|
+
live: "live";
|
|
491
|
+
}>>>;
|
|
480
492
|
}, z.core.$strip>>;
|
|
481
493
|
talkback: z.ZodOptional<z.ZodBoolean>;
|
|
482
494
|
}, z.core.$strip>, z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -101544,7 +101544,15 @@ var webrtcClientHintsSchema = zod.z.object({
|
|
|
101544
101544
|
/** navigator.connection.downlink — Mbps the browser estimates. */
|
|
101545
101545
|
downlinkMbps: zod.z.number().nonnegative().optional(),
|
|
101546
101546
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
101547
|
-
prefersTier: zod.z.string().optional()
|
|
101547
|
+
prefersTier: zod.z.string().optional(),
|
|
101548
|
+
/**
|
|
101549
|
+
* What the session is opened FOR. `clip` = the client opens it to play a
|
|
101550
|
+
* stored clip (`playClip` on the control channel): the server negotiates
|
|
101551
|
+
* without dialling the camera and attaches live only when the client
|
|
101552
|
+
* sends `goLive` — a sleeping battery camera is never woken to watch our
|
|
101553
|
+
* own footage (#566). Absent or `live` = today's live-first session.
|
|
101554
|
+
*/
|
|
101555
|
+
intent: zod.z.enum(["live", "clip"]).optional()
|
|
101548
101556
|
}).partial();
|
|
101549
101557
|
/**
|
|
101550
101558
|
* Discriminated target for a WebRTC session. The client sends this
|
package/dist/index.mjs
CHANGED
|
@@ -101543,7 +101543,15 @@ var webrtcClientHintsSchema = z.object({
|
|
|
101543
101543
|
/** navigator.connection.downlink — Mbps the browser estimates. */
|
|
101544
101544
|
downlinkMbps: z.number().nonnegative().optional(),
|
|
101545
101545
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
101546
|
-
prefersTier: z.string().optional()
|
|
101546
|
+
prefersTier: z.string().optional(),
|
|
101547
|
+
/**
|
|
101548
|
+
* What the session is opened FOR. `clip` = the client opens it to play a
|
|
101549
|
+
* stored clip (`playClip` on the control channel): the server negotiates
|
|
101550
|
+
* without dialling the camera and attaches live only when the client
|
|
101551
|
+
* sends `goLive` — a sleeping battery camera is never woken to watch our
|
|
101552
|
+
* own footage (#566). Absent or `live` = today's live-first session.
|
|
101553
|
+
*/
|
|
101554
|
+
intent: z.enum(["live", "clip"]).optional()
|
|
101547
101555
|
}).partial();
|
|
101548
101556
|
/**
|
|
101549
101557
|
* Discriminated target for a WebRTC session. The client sends this
|