@stream-io/node-sdk 0.4.17 → 0.4.18

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.
@@ -2,7 +2,7 @@ import { VideoApi } from './gen/video/VideoApi';
2
2
  import { StreamCall } from './StreamCall';
3
3
  import type { StreamClient } from './StreamClient';
4
4
  import type { ApiConfig } from './types';
5
- import type { RealtimeClient } from '@stream-io/openai-realtime-api';
5
+ import type { RealtimeAPIModel, RealtimeClient } from '@stream-io/openai-realtime-api';
6
6
  export declare class StreamVideoClient extends VideoApi {
7
7
  private readonly streamClient;
8
8
  constructor({ streamClient, ...apiConfig }: ApiConfig & {
@@ -13,6 +13,7 @@ export declare class StreamVideoClient extends VideoApi {
13
13
  call: StreamCall;
14
14
  agentUserId: string;
15
15
  openAiApiKey: string;
16
- validityInSeconds: number;
16
+ model?: RealtimeAPIModel;
17
+ validityInSeconds?: number;
17
18
  }) => Promise<RealtimeClient>;
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -49,7 +49,7 @@
49
49
  "@openapitools/openapi-generator-cli": "^2.7.0",
50
50
  "@rollup/plugin-replace": "^5.0.2",
51
51
  "@rollup/plugin-typescript": "^11.1.4",
52
- "@stream-io/openai-realtime-api": "~0.1.0",
52
+ "@stream-io/openai-realtime-api": "~0.1.3",
53
53
  "@types/uuid": "^9.0.4",
54
54
  "@typescript-eslint/eslint-plugin": "^6.4.0",
55
55
  "dotenv": "^16.3.1",
@@ -76,7 +76,7 @@
76
76
  "uuid": "^9.0.1"
77
77
  },
78
78
  "peerDependencies": {
79
- "@stream-io/openai-realtime-api": "~0.1.0"
79
+ "@stream-io/openai-realtime-api": "~0.1.3"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "@stream-io/openai-realtime-api": {
@@ -3,8 +3,9 @@ import { StreamCall } from './StreamCall';
3
3
  import type { StreamClient } from './StreamClient';
4
4
  import type { ApiConfig } from './types';
5
5
  import type {
6
- RealtimeClient,
7
6
  createRealtimeClient,
7
+ RealtimeAPIModel,
8
+ RealtimeClient,
8
9
  } from '@stream-io/openai-realtime-api';
9
10
 
10
11
  export class StreamVideoClient extends VideoApi {
@@ -26,7 +27,8 @@ export class StreamVideoClient extends VideoApi {
26
27
  call: StreamCall;
27
28
  agentUserId: string;
28
29
  openAiApiKey: string;
29
- validityInSeconds: number;
30
+ model?: RealtimeAPIModel;
31
+ validityInSeconds?: number;
30
32
  }): Promise<RealtimeClient> => {
31
33
  let doCreateRealtimeClient: typeof createRealtimeClient;
32
34
 
@@ -55,6 +57,7 @@ export class StreamVideoClient extends VideoApi {
55
57
  streamApiKey: this.apiConfig.apiKey,
56
58
  streamUserToken: token,
57
59
  openAiApiKey: options.openAiApiKey,
60
+ model: options.model,
58
61
  });
59
62
 
60
63
  await realtimeClient.connect();