Skip to content

Commit 7dac2ae

Browse files
committed
Merge branch 'main' into ring-individial-members
# Conflicts: # src/gen/video/VideoApi.ts
2 parents d79d25c + 3123e5c commit 7dac2ae

File tree

11 files changed

+387
-384
lines changed

11 files changed

+387
-384
lines changed

CHANGELOG.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,58 @@
11
# Changelog
22

3-
## [0.4.22](https://github.com/GetStream/stream-node/compare/v0.4.21...v0.4.22) (2025-04-09)
3+
## [0.4.24](https://github.com/GetStream/stream-node/compare/v0.4.23...v0.4.24) (2025-05-06)
4+
5+
### Features
6+
7+
- empty commit to trigger release ([c0890a8](https://github.com/GetStream/stream-node/commit/c0890a8d8b7adc96d4d81717220159321e924480))
48

9+
## [0.4.23](https://github.com/GetStream/stream-node/compare/v0.4.22...v0.4.23) (2025-04-30)
10+
11+
### Features
12+
13+
- update to v171.1.7 ([#107](https://github.com/GetStream/stream-node/issues/107)) ([dd442f0](https://github.com/GetStream/stream-node/commit/dd442f0e6b9acc465781cb748e5c5a03dd51624c))
14+
15+
## [0.4.22](https://github.com/GetStream/stream-node/compare/v0.4.21...v0.4.22) (2025-04-09)
516

617
### Bug Fixes
718

8-
* handle missing optional dependency in declarations ([#103](https://github.com/GetStream/stream-node/issues/103)) ([eb271c5](https://github.com/GetStream/stream-node/commit/eb271c5f3bfb6002d341323af25beabd15516ef2))
19+
- handle missing optional dependency in declarations ([#103](https://github.com/GetStream/stream-node/issues/103)) ([eb271c5](https://github.com/GetStream/stream-node/commit/eb271c5f3bfb6002d341323af25beabd15516ef2))
920

1021
## [0.4.21](https://github.com/GetStream/stream-node/compare/v0.4.20...v0.4.21) (2025-04-08)
1122

12-
1323
### Bug Fixes
1424

15-
* remove undici dependency ([#101](https://github.com/GetStream/stream-node/issues/101)) ([c943be1](https://github.com/GetStream/stream-node/commit/c943be1b2871b2b010dd4b29d690c46ecacda23b))
25+
- remove undici dependency ([#101](https://github.com/GetStream/stream-node/issues/101)) ([c943be1](https://github.com/GetStream/stream-node/commit/c943be1b2871b2b010dd4b29d690c46ecacda23b))
1626

1727
## [0.4.20](https://github.com/GetStream/stream-node/compare/v0.4.19...v0.4.20) (2025-04-07)
1828

19-
2029
### Features
2130

22-
* set max connections to 100, allow integrators to configure Fetch API ([#98](https://github.com/GetStream/stream-node/issues/98)) ([b044b59](https://github.com/GetStream/stream-node/commit/b044b599867a69b33b3aa9d989d1c1e3277dc92f))
31+
- set max connections to 100, allow integrators to configure Fetch API ([#98](https://github.com/GetStream/stream-node/issues/98)) ([b044b59](https://github.com/GetStream/stream-node/commit/b044b599867a69b33b3aa9d989d1c1e3277dc92f))
2332

2433
## [0.4.19](https://github.com/GetStream/stream-node/compare/v0.4.18...v0.4.19) (2025-03-17)
2534

26-
2735
### Features
2836

29-
* update to API spec v163.0.0 ([#96](https://github.com/GetStream/stream-node/issues/96)) ([dcdfea8](https://github.com/GetStream/stream-node/commit/dcdfea8cfbf83b0ef3426426909c844424f682ab))
37+
- update to API spec v163.0.0 ([#96](https://github.com/GetStream/stream-node/issues/96)) ([dcdfea8](https://github.com/GetStream/stream-node/commit/dcdfea8cfbf83b0ef3426426909c844424f682ab))
3038

3139
## [0.4.18](https://github.com/GetStream/stream-node/compare/v0.4.17...v0.4.18) (2025-03-10)
3240

33-
3441
### Bug Fixes
3542

36-
* support realtime AI model overrides ([#94](https://github.com/GetStream/stream-node/issues/94)) ([1071f75](https://github.com/GetStream/stream-node/commit/1071f75aaf7ffb029f8c3c4c06465e81abf341d6))
43+
- support realtime AI model overrides ([#94](https://github.com/GetStream/stream-node/issues/94)) ([1071f75](https://github.com/GetStream/stream-node/commit/1071f75aaf7ffb029f8c3c4c06465e81abf341d6))
3744

3845
## [0.4.17](https://github.com/GetStream/stream-node/compare/v0.4.16...v0.4.17) (2025-03-06)
3946

40-
4147
### Bug Fixes
4248

43-
* use an exact version of @stream-io/openai-realtime-api ([#92](https://github.com/GetStream/stream-node/issues/92)) ([d6f0419](https://github.com/GetStream/stream-node/commit/d6f0419f924bfdadbb44d2b12b44a664bb4b39a6))
49+
- use an exact version of @stream-io/openai-realtime-api ([#92](https://github.com/GetStream/stream-node/issues/92)) ([d6f0419](https://github.com/GetStream/stream-node/commit/d6f0419f924bfdadbb44d2b12b44a664bb4b39a6))
4450

4551
## [0.4.16](https://github.com/GetStream/stream-node/compare/v0.4.15...v0.4.16) (2025-02-25)
4652

47-
4853
### Bug Fixes
4954

50-
* update changelog ([#89](https://github.com/GetStream/stream-node/issues/89)) ([1b46c91](https://github.com/GetStream/stream-node/commit/1b46c919ccc5a98414ca441b833020743217e95d))
55+
- update changelog ([#89](https://github.com/GetStream/stream-node/issues/89)) ([1b46c91](https://github.com/GetStream/stream-node/commit/1b46c919ccc5a98414ca441b833020743217e95d))
5156

5257
## [0.4.15](https://github.com/GetStream/stream-node/compare/v0.4.14...v0.4.15) (2025-02-25)
5358

__tests__/call.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,6 @@ describe('call API', () => {
134134
expect(response.calls).toBeDefined();
135135
});
136136

137-
it('query call stats', async () => {
138-
const response = await client.video.queryCallStats();
139-
140-
expect(response.reports.length).toBeGreaterThan(0);
141-
142-
await expect(() =>
143-
call.getCallStats({
144-
session: '<session id>',
145-
}),
146-
).rejects.toThrowError(
147-
`Stream error code 16: GetCallStats failed with error: "call session not found"`,
148-
);
149-
});
150-
151137
it('query call stats - single call', async () => {
152138
const response = await client.video.queryCallStats({
153139
filter_conditions: { call_cid: call.cid },

__tests__/external-storage.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('external storage CRUD API', () => {
6767
name: gcsName,
6868
storage_type: 'gcs',
6969
path: 'directory_name/',
70-
gcs_credentials: 'content of the service account file',
70+
gcs_credentials: '{"type": "service_account"}',
7171
});
7272

7373
await client.deleteExternalStorage({ name: gcsName });

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stream-io/node-sdk",
3-
"version": "0.4.22",
3+
"version": "0.4.24",
44
"description": "",
55
"exports": {
66
".": {

src/gen/chat/ChannelApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export class ChannelApi {
199199
};
200200

201201
updateMemberPartial = (
202-
request: UpdateMemberPartialRequest & { user_id: string },
202+
request?: UpdateMemberPartialRequest & { user_id?: string },
203203
): Promise<StreamResponse<UpdateMemberPartialResponse>> => {
204204
if (!this.id) {
205205
throw new Error(

src/gen/chat/ChatApi.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,13 +601,15 @@ export class ChatApi extends BaseApi {
601601

602602
updateMemberPartial = async (
603603
request: UpdateMemberPartialRequest & {
604-
user_id: string;
605604
type: string;
606605
id: string;
606+
user_id?: string;
607607
},
608608
): Promise<StreamResponse<UpdateMemberPartialResponse>> => {
609-
const pathParams = {
609+
const queryParams = {
610610
user_id: request?.user_id,
611+
};
612+
const pathParams = {
611613
type: request?.type,
612614
id: request?.id,
613615
};
@@ -620,9 +622,9 @@ export class ChatApi extends BaseApi {
620622
StreamResponse<UpdateMemberPartialResponse>
621623
>(
622624
'PATCH',
623-
'/api/v2/chat/channels/{type}/{id}/member/{user_id}',
625+
'/api/v2/chat/channels/{type}/{id}/member',
624626
pathParams,
625-
undefined,
627+
queryParams,
626628
body,
627629
);
628630

@@ -2083,6 +2085,8 @@ export class ChatApi extends BaseApi {
20832085
prev: request?.prev,
20842086
reply_limit: request?.reply_limit,
20852087
user_id: request?.user_id,
2088+
sort: request?.sort,
2089+
filter: request?.filter,
20862090
user: request?.user,
20872091
};
20882092

src/gen/model-decoders/index.ts

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,13 @@ decoders.ChannelTypeConfig = (input?: Record<string, any>) => {
486486
return decode(typeMappings, input);
487487
};
488488

489+
decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
490+
const typeMappings: TypeMapping = {
491+
messages: { type: 'MessageStatsResponse', isSingle: true },
492+
};
493+
return decode(typeMappings, input);
494+
};
495+
489496
decoders.CheckResponse = (input?: Record<string, any>) => {
490497
const typeMappings: TypeMapping = {
491498
item: { type: 'ReviewQueueItem', isSingle: true },
@@ -511,6 +518,13 @@ decoders.ConfigResponse = (input?: Record<string, any>) => {
511518
return decode(typeMappings, input);
512519
};
513520

521+
decoders.CountByMinuteResponse = (input?: Record<string, any>) => {
522+
const typeMappings: TypeMapping = {
523+
start_ts: { type: 'DatetimeType', isSingle: true },
524+
};
525+
return decode(typeMappings, input);
526+
};
527+
514528
decoders.CreateBlockListResponse = (input?: Record<string, any>) => {
515529
const typeMappings: TypeMapping = {
516530
blocklist: { type: 'BlockListResponse', isSingle: true },
@@ -787,6 +801,13 @@ decoders.GetBlockedUsersResponse = (input?: Record<string, any>) => {
787801
return decode(typeMappings, input);
788802
};
789803

804+
decoders.GetCallReportResponse = (input?: Record<string, any>) => {
805+
const typeMappings: TypeMapping = {
806+
chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true },
807+
};
808+
return decode(typeMappings, input);
809+
};
810+
790811
decoders.GetCallResponse = (input?: Record<string, any>) => {
791812
const typeMappings: TypeMapping = {
792813
members: { type: 'MemberResponse', isSingle: false },
@@ -885,8 +906,6 @@ decoders.GetRepliesResponse = (input?: Record<string, any>) => {
885906

886907
decoders.GetReviewQueueItemResponse = (input?: Record<string, any>) => {
887908
const typeMappings: TypeMapping = {
888-
history: { type: 'ReviewQueueItemResponse', isSingle: false },
889-
890909
item: { type: 'ReviewQueueItemResponse', isSingle: true },
891910
};
892911
return decode(typeMappings, input);
@@ -1165,6 +1184,13 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
11651184
return decode(typeMappings, input);
11661185
};
11671186

1187+
decoders.MessageStatsResponse = (input?: Record<string, any>) => {
1188+
const typeMappings: TypeMapping = {
1189+
count_over_time: { type: 'CountByMinuteResponse', isSingle: false },
1190+
};
1191+
return decode(typeMappings, input);
1192+
};
1193+
11681194
decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
11691195
const typeMappings: TypeMapping = {
11701196
created_at: { type: 'DatetimeType', isSingle: true },
@@ -1274,6 +1300,20 @@ decoders.OwnUserResponse = (input?: Record<string, any>) => {
12741300
return decode(typeMappings, input);
12751301
};
12761302

1303+
decoders.ParticipantCountByMinuteResponse = (input?: Record<string, any>) => {
1304+
const typeMappings: TypeMapping = {
1305+
start_ts: { type: 'DatetimeType', isSingle: true },
1306+
};
1307+
return decode(typeMappings, input);
1308+
};
1309+
1310+
decoders.ParticipantCountOverTimeResponse = (input?: Record<string, any>) => {
1311+
const typeMappings: TypeMapping = {
1312+
by_minute: { type: 'ParticipantCountByMinuteResponse', isSingle: false },
1313+
};
1314+
return decode(typeMappings, input);
1315+
};
1316+
12771317
decoders.PendingMessageResponse = (input?: Record<string, any>) => {
12781318
const typeMappings: TypeMapping = {
12791319
channel: { type: 'ChannelResponse', isSingle: true },
@@ -1415,6 +1455,17 @@ decoders.QueryCallMembersResponse = (input?: Record<string, any>) => {
14151455
return decode(typeMappings, input);
14161456
};
14171457

1458+
decoders.QueryCallParticipantsResponse = (input?: Record<string, any>) => {
1459+
const typeMappings: TypeMapping = {
1460+
members: { type: 'MemberResponse', isSingle: false },
1461+
1462+
participants: { type: 'CallParticipantResponse', isSingle: false },
1463+
1464+
call: { type: 'CallResponse', isSingle: true },
1465+
};
1466+
return decode(typeMappings, input);
1467+
};
1468+
14181469
decoders.QueryCallStatsResponse = (input?: Record<string, any>) => {
14191470
const typeMappings: TypeMapping = {
14201471
reports: { type: 'CallStatsReportSummaryResponse', isSingle: false },

0 commit comments

Comments
 (0)