@stream-io/node-sdk 0.9.0 → 0.9.1

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.1](https://github.com/GetStream/stream-node/compare/v0.9.0...v0.9.1) (2026-11-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * deprecate connectOpenAi in favour of Vision Agents ([#381](https://github.com/GetStream/stream-node/issues/381)) ([bdae28d](https://github.com/GetStream/stream-node/commit/bdae28d3c3b69f57196b12c519ae71038c36153b))
9
+ * expose the parsed API error on StreamError ([#388](https://github.com/GetStream/stream-node/issues/388)) ([13770c8](https://github.com/GetStream/stream-node/commit/13770c82dd505bf97bb55315625bdae6a378270e))
10
+
3
11
  ## [0.9.0](https://github.com/GetStream/stream-node/compare/v0.8.15...v0.9.0) (2026-11-06)
4
12
 
5
13
 
package/dist/index.cjs.js CHANGED
@@ -2335,6 +2335,13 @@ var StreamVideoClient = class extends VideoApi {
2335
2335
  call = (type, id) => {
2336
2336
  return new StreamCall(this, type, id, this.streamClient);
2337
2337
  };
2338
+ /**
2339
+ * Connects an OpenAI Realtime agent to a call through Stream's `/video/connect_agent` proxy.
2340
+ *
2341
+ * @deprecated The OpenAI Realtime proxy is deprecated and will be removed in a
2342
+ * future major release. Build voice and video AI agents with Vision Agents
2343
+ * instead: https://visionagents.ai/integrations/llm/openai
2344
+ */
2338
2345
  connectOpenAi = async (options) => {
2339
2346
  let doCreateRealtimeClient;
2340
2347
  try {
@@ -4662,10 +4669,12 @@ var StreamModerationClient = class extends ModerationApi {};
4662
4669
  var StreamError = class extends Error {
4663
4670
  metadata;
4664
4671
  code;
4665
- constructor(message, metadata, code, errorOptions) {
4672
+ apiError;
4673
+ constructor(message, metadata, code, errorOptions, apiError) {
4666
4674
  super(message, errorOptions);
4667
4675
  this.metadata = metadata;
4668
4676
  this.code = code;
4677
+ this.apiError = apiError;
4669
4678
  }
4670
4679
  };
4671
4680
  //#endregion
@@ -4723,7 +4732,7 @@ var ApiClient = class {
4723
4732
  const headers = {
4724
4733
  Authorization: this.apiConfig.token,
4725
4734
  "stream-auth-type": "jwt",
4726
- "X-Stream-Client": "stream-node-0.9.0",
4735
+ "X-Stream-Client": "stream-node-0.9.1",
4727
4736
  "Accept-Encoding": "gzip",
4728
4737
  "x-client-request-id": clientRequestId
4729
4738
  };
@@ -4752,7 +4761,7 @@ var ApiClient = class {
4752
4761
  } catch {
4753
4762
  throw new StreamError(`Stream error: ${response.status} - ${response.statusText}`, metadata, response.status);
4754
4763
  }
4755
- throw new StreamError(`Stream error code ${error.code}: ${error.message}`, metadata, error.code, void 0);
4764
+ throw new StreamError(`Stream error code ${error.code}: ${error.message}`, metadata, error.code, void 0, error);
4756
4765
  }
4757
4766
  return {
4758
4767
  ...await response.json(),