Skip to content

Commit 0b765cc

Browse files
Merge branch 'main' into FEEDS-849
2 parents bbd8333 + 94e45da commit 0b765cc

File tree

7 files changed

+371
-60
lines changed

7 files changed

+371
-60
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.7.15"
2+
".": "0.7.18"
33
}

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## [0.7.18](https://github.com/GetStream/stream-node/compare/v0.7.17...v0.7.18) (2025-11-10)
4+
5+
6+
### Features
7+
8+
* [FEEDS-947] add support for querying private activities ([#205](https://github.com/GetStream/stream-node/issues/205)) ([b3c2ddc](https://github.com/GetStream/stream-node/commit/b3c2ddc85686e15bee6bc97262fb1c3ee6e1dc17))
9+
10+
## [0.7.17](https://github.com/GetStream/stream-node/compare/v0.7.16...v0.7.17) (2025-10-30)
11+
12+
13+
### Features
14+
15+
* [FEEDS-702] Gen new openapi spec to include the `restrict_replies` field ([#200](https://github.com/GetStream/stream-node/issues/200)) ([950bfb0](https://github.com/GetStream/stream-node/commit/950bfb0f1d818e876ec07550bbd654f672a2b059))
16+
17+
## [0.7.16](https://github.com/GetStream/stream-node/compare/v0.7.15...v0.7.16) (2025-10-30)
18+
19+
20+
### Features
21+
22+
* update to latest open api spec ([#201](https://github.com/GetStream/stream-node/issues/201)) ([1b587e3](https://github.com/GetStream/stream-node/commit/1b587e3ad8f6cd29b14755de9ad07bbc27fe38d5))
23+
324
## [0.7.15](https://github.com/GetStream/stream-node/compare/v0.7.14...v0.7.15) (2025-10-22)
425

526

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.7.15",
3+
"version": "0.7.18",
44
"description": "",
55
"exports": {
66
".": {

src/gen/feeds/FeedsApi.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export class FeedsApi {
149149
id: request?.id,
150150
parent_id: request?.parent_id,
151151
poll_id: request?.poll_id,
152+
restrict_replies: request?.restrict_replies,
152153
text: request?.text,
153154
user_id: request?.user_id,
154155
visibility: request?.visibility,
@@ -232,11 +233,14 @@ export class FeedsApi {
232233
request?: QueryActivitiesRequest,
233234
): Promise<StreamResponse<QueryActivitiesResponse>> {
234235
const body = {
236+
include_private_activities: request?.include_private_activities,
235237
limit: request?.limit,
236238
next: request?.next,
237239
prev: request?.prev,
240+
user_id: request?.user_id,
238241
sort: request?.sort,
239242
filter: request?.filter,
243+
user: request?.user,
240244
};
241245

242246
const response = await this.apiClient.sendRequest<
@@ -351,9 +355,6 @@ export class FeedsApi {
351355
};
352356
const body = {
353357
hide: request?.hide,
354-
mute_user: request?.mute_user,
355-
reason: request?.reason,
356-
report: request?.report,
357358
show_less: request?.show_less,
358359
show_more: request?.show_more,
359360
user_id: request?.user_id,
@@ -597,6 +598,7 @@ export class FeedsApi {
597598
const body = {
598599
expires_at: request?.expires_at,
599600
poll_id: request?.poll_id,
601+
restrict_replies: request?.restrict_replies,
600602
text: request?.text,
601603
user_id: request?.user_id,
602604
visibility: request?.visibility,
@@ -875,6 +877,7 @@ export class FeedsApi {
875877
object_type: request?.object_type,
876878
comment: request?.comment,
877879
create_notification_activity: request?.create_notification_activity,
880+
id: request?.id,
878881
parent_id: request?.parent_id,
879882
skip_push: request?.skip_push,
880883
user_id: request?.user_id,
@@ -1227,7 +1230,6 @@ export class FeedsApi {
12271230
user_id: request?.user_id,
12281231
view: request?.view,
12291232
watch: request?.watch,
1230-
activity_selector_options: request?.activity_selector_options,
12311233
data: request?.data,
12321234
external_ranking: request?.external_ranking,
12331235
filter: request?.filter,
@@ -1655,7 +1657,6 @@ export class FeedsApi {
16551657
): Promise<StreamResponse<CreateFeedViewResponse>> {
16561658
const body = {
16571659
id: request?.id,
1658-
activity_processors: request?.activity_processors,
16591660
activity_selectors: request?.activity_selectors,
16601661
aggregation: request?.aggregation,
16611662
ranking: request?.ranking,
@@ -1716,7 +1717,6 @@ export class FeedsApi {
17161717
id: request?.id,
17171718
};
17181719
const body = {
1719-
activity_processors: request?.activity_processors,
17201720
activity_selectors: request?.activity_selectors,
17211721
aggregation: request?.aggregation,
17221722
ranking: request?.ranking,
@@ -1745,7 +1745,6 @@ export class FeedsApi {
17451745
id: request?.id,
17461746
};
17471747
const body = {
1748-
activity_processors: request?.activity_processors,
17491748
activity_selectors: request?.activity_selectors,
17501749
aggregation: request?.aggregation,
17511750
ranking: request?.ranking,

src/gen/model-decoders/decoders.ts

Lines changed: 80 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ decoders.ActivityDeletedEvent = (input?: Record<string, any>) => {
8787
return decode(typeMappings, input);
8888
};
8989

90+
decoders.ActivityFeedbackEvent = (input?: Record<string, any>) => {
91+
const typeMappings: TypeMapping = {
92+
created_at: { type: 'DatetimeType', isSingle: true },
93+
94+
received_at: { type: 'DatetimeType', isSingle: true },
95+
96+
user: { type: 'UserResponseCommonFields', isSingle: true },
97+
};
98+
return decode(typeMappings, input);
99+
};
100+
90101
decoders.ActivityMarkEvent = (input?: Record<string, any>) => {
91102
const typeMappings: TypeMapping = {
92103
created_at: { type: 'DatetimeType', isSingle: true },
@@ -1263,7 +1274,7 @@ decoders.ChannelMember = (input?: Record<string, any>) => {
12631274

12641275
pinned_at: { type: 'DatetimeType', isSingle: true },
12651276

1266-
user: { type: 'UserResponse', isSingle: true },
1277+
user: { type: 'User', isSingle: true },
12671278
};
12681279
return decode(typeMappings, input);
12691280
};
@@ -1279,6 +1290,29 @@ decoders.ChannelMemberLookup = (input?: Record<string, any>) => {
12791290
return decode(typeMappings, input);
12801291
};
12811292

1293+
decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
1294+
const typeMappings: TypeMapping = {
1295+
created_at: { type: 'DatetimeType', isSingle: true },
1296+
1297+
updated_at: { type: 'DatetimeType', isSingle: true },
1298+
1299+
archived_at: { type: 'DatetimeType', isSingle: true },
1300+
1301+
ban_expires: { type: 'DatetimeType', isSingle: true },
1302+
1303+
deleted_at: { type: 'DatetimeType', isSingle: true },
1304+
1305+
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
1306+
1307+
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
1308+
1309+
pinned_at: { type: 'DatetimeType', isSingle: true },
1310+
1311+
user: { type: 'UserResponse', isSingle: true },
1312+
};
1313+
return decode(typeMappings, input);
1314+
};
1315+
12821316
decoders.ChannelMute = (input?: Record<string, any>) => {
12831317
const typeMappings: TypeMapping = {
12841318
created_at: { type: 'DatetimeType', isSingle: true },
@@ -1324,7 +1358,7 @@ decoders.ChannelResponse = (input?: Record<string, any>) => {
13241358

13251359
truncated_at: { type: 'DatetimeType', isSingle: true },
13261360

1327-
members: { type: 'ChannelMember', isSingle: false },
1361+
members: { type: 'ChannelMemberResponse', isSingle: false },
13281362

13291363
config: { type: 'ChannelConfigWithInfo', isSingle: true },
13301364

@@ -1337,7 +1371,7 @@ decoders.ChannelResponse = (input?: Record<string, any>) => {
13371371

13381372
decoders.ChannelStateResponse = (input?: Record<string, any>) => {
13391373
const typeMappings: TypeMapping = {
1340-
members: { type: 'ChannelMember', isSingle: false },
1374+
members: { type: 'ChannelMemberResponse', isSingle: false },
13411375

13421376
messages: { type: 'MessageResponse', isSingle: false },
13431377

@@ -1362,7 +1396,7 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
13621396

13631397
draft: { type: 'DraftResponse', isSingle: true },
13641398

1365-
membership: { type: 'ChannelMember', isSingle: true },
1399+
membership: { type: 'ChannelMemberResponse', isSingle: true },
13661400

13671401
push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
13681402
};
@@ -1371,7 +1405,7 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
13711405

13721406
decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
13731407
const typeMappings: TypeMapping = {
1374-
members: { type: 'ChannelMember', isSingle: false },
1408+
members: { type: 'ChannelMemberResponse', isSingle: false },
13751409

13761410
messages: { type: 'MessageResponse', isSingle: false },
13771411

@@ -1396,7 +1430,7 @@ decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
13961430

13971431
draft: { type: 'DraftResponse', isSingle: true },
13981432

1399-
membership: { type: 'ChannelMember', isSingle: true },
1433+
membership: { type: 'ChannelMemberResponse', isSingle: true },
14001434

14011435
push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
14021436
};
@@ -2036,6 +2070,23 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
20362070
return decode(typeMappings, input);
20372071
};
20382072

2073+
decoders.FeedSuggestionResponse = (input?: Record<string, any>) => {
2074+
const typeMappings: TypeMapping = {
2075+
created_at: { type: 'DatetimeType', isSingle: true },
2076+
2077+
updated_at: { type: 'DatetimeType', isSingle: true },
2078+
2079+
created_by: { type: 'UserResponse', isSingle: true },
2080+
2081+
deleted_at: { type: 'DatetimeType', isSingle: true },
2082+
2083+
own_follows: { type: 'FollowResponse', isSingle: false },
2084+
2085+
own_membership: { type: 'FeedMemberResponse', isSingle: true },
2086+
};
2087+
return decode(typeMappings, input);
2088+
};
2089+
20392090
decoders.FeedUpdatedEvent = (input?: Record<string, any>) => {
20402091
const typeMappings: TypeMapping = {
20412092
created_at: { type: 'DatetimeType', isSingle: true },
@@ -2320,7 +2371,7 @@ decoders.GetFeedViewResponse = (input?: Record<string, any>) => {
23202371

23212372
decoders.GetFollowSuggestionsResponse = (input?: Record<string, any>) => {
23222373
const typeMappings: TypeMapping = {
2323-
suggestions: { type: 'FeedResponse', isSingle: false },
2374+
suggestions: { type: 'FeedSuggestionResponse', isSingle: false },
23242375
};
23252376
return decode(typeMappings, input);
23262377
};
@@ -2626,7 +2677,7 @@ decoders.MemberUpdatedEvent = (input?: Record<string, any>) => {
26262677

26272678
decoders.MembersResponse = (input?: Record<string, any>) => {
26282679
const typeMappings: TypeMapping = {
2629-
members: { type: 'ChannelMember', isSingle: false },
2680+
members: { type: 'ChannelMemberResponse', isSingle: false },
26302681
};
26312682
return decode(typeMappings, input);
26322683
};
@@ -2821,6 +2872,8 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
28212872

28222873
draft: { type: 'DraftResponse', isSingle: true },
28232874

2875+
member: { type: 'ChannelMemberResponse', isSingle: true },
2876+
28242877
pinned_by: { type: 'UserResponse', isSingle: true },
28252878

28262879
poll: { type: 'PollResponseData', isSingle: true },
@@ -2910,6 +2963,8 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
29102963

29112964
draft: { type: 'DraftResponse', isSingle: true },
29122965

2966+
member: { type: 'ChannelMemberResponse', isSingle: true },
2967+
29132968
pinned_by: { type: 'UserResponse', isSingle: true },
29142969

29152970
poll: { type: 'PollResponseData', isSingle: true },
@@ -3776,6 +3831,10 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
37763831

37773832
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
37783833

3834+
feeds_v3_activity: { type: 'ActivityResponse', isSingle: true },
3835+
3836+
feeds_v3_comment: { type: 'CommentResponse', isSingle: true },
3837+
37793838
message: { type: 'MessageResponse', isSingle: true },
37803839

37813840
reaction: { type: 'Reaction', isSingle: true },
@@ -3842,6 +3901,8 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
38423901

38433902
draft: { type: 'DraftResponse', isSingle: true },
38443903

3904+
member: { type: 'ChannelMemberResponse', isSingle: true },
3905+
38453906
pinned_by: { type: 'UserResponse', isSingle: true },
38463907

38473908
poll: { type: 'PollResponseData', isSingle: true },
@@ -4224,14 +4285,16 @@ decoders.UpdateCallTypeResponse = (input?: Record<string, any>) => {
42244285

42254286
decoders.UpdateChannelPartialResponse = (input?: Record<string, any>) => {
42264287
const typeMappings: TypeMapping = {
4288+
members: { type: 'ChannelMemberResponse', isSingle: false },
4289+
42274290
channel: { type: 'ChannelResponse', isSingle: true },
42284291
};
42294292
return decode(typeMappings, input);
42304293
};
42314294

42324295
decoders.UpdateChannelResponse = (input?: Record<string, any>) => {
42334296
const typeMappings: TypeMapping = {
4234-
members: { type: 'ChannelMember', isSingle: false },
4297+
members: { type: 'ChannelMemberResponse', isSingle: false },
42354298

42364299
channel: { type: 'ChannelResponse', isSingle: true },
42374300

@@ -4307,6 +4370,13 @@ decoders.UpdateFollowResponse = (input?: Record<string, any>) => {
43074370
return decode(typeMappings, input);
43084371
};
43094372

4373+
decoders.UpdateMemberPartialResponse = (input?: Record<string, any>) => {
4374+
const typeMappings: TypeMapping = {
4375+
channel_member: { type: 'ChannelMemberResponse', isSingle: true },
4376+
};
4377+
return decode(typeMappings, input);
4378+
};
4379+
43104380
decoders.UpdateMembershipLevelResponse = (input?: Record<string, any>) => {
43114381
const typeMappings: TypeMapping = {
43124382
membership_level: { type: 'MembershipLevelResponse', isSingle: true },
@@ -4643,7 +4713,7 @@ decoders.WSEvent = (input?: Record<string, any>) => {
46434713

46444714
me: { type: 'OwnUserResponse', isSingle: true },
46454715

4646-
member: { type: 'ChannelMember', isSingle: true },
4716+
member: { type: 'ChannelMemberResponse', isSingle: true },
46474717

46484718
message: { type: 'MessageResponse', isSingle: true },
46494719

0 commit comments

Comments
 (0)