@midsummer-ai/sdk 0.1.0-staging.4749 → 0.1.0-staging.4910

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.
@@ -1,4 +1,4 @@
1
- import { a as CallToken } from "../protocol-eCEy2GzD.mjs";
1
+ import { a as CallToken } from "../protocol-d_NS2wT_.mjs";
2
2
  import { CallTokenInput } from "./index.mjs";
3
3
  //#region src/calls/contract.d.ts
4
4
  interface CallsWorld {
package/calls/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { s as Json } from "../index-c616Dbux.mjs";
2
- import { a as CallToken, c as Layer, d as TrackName, r as CallErrorCode } from "../protocol-eCEy2GzD.mjs";
2
+ import { a as CallToken, c as Layer, d as TrackName, r as CallErrorCode } from "../protocol-d_NS2wT_.mjs";
3
3
  //#region src/calls/index.d.ts
4
4
  /** The most a message sent with `send` carries, as JSON. */
5
5
  declare const MAX_MESSAGE_BYTES: number;
@@ -134,6 +134,15 @@ interface JoinOptions {
134
134
  readonly rtc?: Rtc;
135
135
  /** Receive others' videos as they publish them, up to 9 at the half layer: true unless you choose them with `receive`. */
136
136
  readonly autoVideo?: boolean;
137
+ /**
138
+ * What to publish as the call joins, as `publish` takes it: the devices start while the join is on its way, and they
139
+ * go out with its first answer, a trip sooner than a `publish` after it. A device that won't start is said as an
140
+ * `error` event, and the call joins without it.
141
+ */
142
+ readonly publish?: {
143
+ readonly mic?: boolean | MediaStreamTrack;
144
+ readonly camera?: boolean | MediaStreamTrack;
145
+ };
137
146
  }
138
147
  /** A call joined with `join`. */
139
148
  interface Call {