@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.
package/here-C2jhTheQ.mjs CHANGED
@@ -12,7 +12,7 @@ function processEnv() {
12
12
  * This package's version: `0.0.0-dev` here, and in a published package the version it was published at, which the
13
13
  * release writes in its place as it stages the package (`stampSdk` in `scripts/release/packages.ts`).
14
14
  */
15
- const SDK_VERSION = "0.1.0-staging.4749";
15
+ const SDK_VERSION = "0.1.0-staging.4910";
16
16
  /**
17
17
  * The header that tells Midsummer which client made each of this package's calls: `Midsummer-Client: sdk/<version>
18
18
  * <part>`, `part` the product whose client it is (`database`, `storage`, `queues`, ...), so the platform counts which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midsummer-ai/sdk",
3
- "version": "0.1.0-staging.4749",
3
+ "version": "0.1.0-staging.4910",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Midsummer's handles for an app's code: its Database, Storage, Queues, Vector DB, AI, Email and Agents, with stand-ins for tests.",
@@ -110,6 +110,7 @@ interface CallWire {
110
110
  };
111
111
  };
112
112
  /** With `pull`, the tracks are received as `pull` does once the answer is applied: the next offer and their mids, in one trip. A platform from before it returns neither, and the tracks are asked for with `pull`. */
113
+ /** With `publish`, the first tracks go with the answer to the join's offer, published once it is applied: `published`. */
113
114
  answer: {
114
115
  body: {
115
116
  participant: string;
@@ -119,6 +120,14 @@ interface CallWire {
119
120
  name: TrackName;
120
121
  layer?: Layer;
121
122
  }>;
123
+ publish?: {
124
+ offer: Sdp;
125
+ tracks: ReadonlyArray<{
126
+ mid: string;
127
+ name: TrackName;
128
+ layers?: number;
129
+ }>;
130
+ };
122
131
  };
123
132
  answer: {
124
133
  offer?: Sdp;
@@ -127,6 +136,7 @@ interface CallWire {
127
136
  name: TrackName;
128
137
  mid: string;
129
138
  }>;
139
+ published?: CallWire["publish"]["answer"];
130
140
  };
131
141
  };
132
142
  /** New relays once the token was renewed, asked for what is left of the token that asks; none where the call gives none. */