@stream-io/node-sdk 0.8.6 → 0.8.7
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 +8 -0
- package/dist/index.cjs.js +40 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +40 -4
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChannelApi.d.ts +1 -0
- package/dist/src/gen/chat/ChatApi.d.ts +1 -0
- package/dist/src/gen/common/CommonApi.d.ts +3 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +11 -1
- package/dist/src/gen/models/index.d.ts +176 -9
- package/package.json +1 -1
- package/src/gen/chat/ChannelApi.ts +1 -0
- package/src/gen/chat/ChatApi.ts +5 -0
- package/src/gen/common/CommonApi.ts +9 -1
- package/src/gen/feeds/FeedsApi.ts +63 -0
- package/src/gen/models/index.ts +252 -9
- package/src/gen/moderation/ModerationApi.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.7](https://github.com/GetStream/stream-node/compare/v0.8.6...v0.8.7) (2026-09-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **feeds:** add reaction write outcome fields ([#350](https://github.com/GetStream/stream-node/issues/350)) ([70d6cbb](https://github.com/GetStream/stream-node/commit/70d6cbb6428c1b6e48cd5571b03c244f4250e0ec))
|
|
9
|
+
* update to API spec v238.16.2 ([#348](https://github.com/GetStream/stream-node/issues/348)) ([11ceeda](https://github.com/GetStream/stream-node/commit/11ceedad5fcfb7564436a3efd9a39425c1d91697))
|
|
10
|
+
|
|
3
11
|
## [0.8.6](https://github.com/GetStream/stream-node/compare/v0.8.5...v0.8.6) (2026-09-07)
|
|
4
12
|
|
|
5
13
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -8781,11 +8781,12 @@ var CommonApi = class {
|
|
|
8781
8781
|
};
|
|
8782
8782
|
}
|
|
8783
8783
|
async getPollOption(request) {
|
|
8784
|
+
const queryParams = { user_id: request?.user_id };
|
|
8784
8785
|
const pathParams = {
|
|
8785
8786
|
poll_id: request?.poll_id,
|
|
8786
8787
|
option_id: request?.option_id
|
|
8787
8788
|
};
|
|
8788
|
-
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams,
|
|
8789
|
+
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams, queryParams);
|
|
8789
8790
|
decoders["PollOptionResponse"]?.(response.body);
|
|
8790
8791
|
return {
|
|
8791
8792
|
...response.body,
|
|
@@ -8881,6 +8882,8 @@ var CommonApi = class {
|
|
|
8881
8882
|
ios: request?.ios,
|
|
8882
8883
|
web: request?.web,
|
|
8883
8884
|
unity: request?.unity,
|
|
8885
|
+
unity_desktop: request?.unity_desktop,
|
|
8886
|
+
unity_console: request?.unity_console,
|
|
8884
8887
|
endpoints: request?.endpoints
|
|
8885
8888
|
};
|
|
8886
8889
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/rate_limits", void 0, queryParams);
|
|
@@ -10800,6 +10803,8 @@ var ChatApi = class {
|
|
|
10800
10803
|
const body = {
|
|
10801
10804
|
operation: request?.operation,
|
|
10802
10805
|
filter: request?.filter,
|
|
10806
|
+
hide_history_before: request?.hide_history_before,
|
|
10807
|
+
synchronous: request?.synchronous,
|
|
10803
10808
|
custom_unset: request?.custom_unset,
|
|
10804
10809
|
members: request?.members,
|
|
10805
10810
|
custom_set: request?.custom_set,
|
|
@@ -10815,7 +10820,8 @@ var ChatApi = class {
|
|
|
10815
10820
|
async deleteChannels(request) {
|
|
10816
10821
|
const body = {
|
|
10817
10822
|
cids: request?.cids,
|
|
10818
|
-
hard_delete: request?.hard_delete
|
|
10823
|
+
hard_delete: request?.hard_delete,
|
|
10824
|
+
skip_truncate: request?.skip_truncate
|
|
10819
10825
|
};
|
|
10820
10826
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/chat/channels/delete", void 0, void 0, body, "application/json");
|
|
10821
10827
|
decoders["DeleteChannelsResponse"]?.(response.body);
|
|
@@ -10881,7 +10887,10 @@ var ChatApi = class {
|
|
|
10881
10887
|
};
|
|
10882
10888
|
}
|
|
10883
10889
|
async deleteChannel(request) {
|
|
10884
|
-
const queryParams = {
|
|
10890
|
+
const queryParams = {
|
|
10891
|
+
hard_delete: request?.hard_delete,
|
|
10892
|
+
skip_truncate: request?.skip_truncate
|
|
10893
|
+
};
|
|
10885
10894
|
const pathParams = {
|
|
10886
10895
|
type: request?.type,
|
|
10887
10896
|
id: request?.id
|
|
@@ -12487,6 +12496,7 @@ var ModerationApi = class {
|
|
|
12487
12496
|
appeal_reason: request?.appeal_reason,
|
|
12488
12497
|
entity_id: request?.entity_id,
|
|
12489
12498
|
entity_type: request?.entity_type,
|
|
12499
|
+
channel_cid: request?.channel_cid,
|
|
12490
12500
|
review_queue_item_id: request?.review_queue_item_id,
|
|
12491
12501
|
user_id: request?.user_id,
|
|
12492
12502
|
attachments: request?.attachments,
|
|
@@ -13231,7 +13241,7 @@ var ApiClient = class {
|
|
|
13231
13241
|
const headers = {
|
|
13232
13242
|
Authorization: this.apiConfig.token,
|
|
13233
13243
|
"stream-auth-type": "jwt",
|
|
13234
|
-
"X-Stream-Client": "stream-node-0.8.
|
|
13244
|
+
"X-Stream-Client": "stream-node-0.8.7",
|
|
13235
13245
|
"Accept-Encoding": "gzip",
|
|
13236
13246
|
"x-client-request-id": clientRequestId
|
|
13237
13247
|
};
|
|
@@ -13618,6 +13628,7 @@ var FeedsApi = class {
|
|
|
13618
13628
|
const queryParams = {
|
|
13619
13629
|
comment_sort: request?.comment_sort,
|
|
13620
13630
|
comment_limit: request?.comment_limit,
|
|
13631
|
+
skip_own_followings: request?.skip_own_followings,
|
|
13621
13632
|
user_id: request?.user_id,
|
|
13622
13633
|
language: request?.language,
|
|
13623
13634
|
translate_text: request?.translate_text
|
|
@@ -14166,6 +14177,7 @@ var FeedsApi = class {
|
|
|
14166
14177
|
activity_processors: request?.activity_processors,
|
|
14167
14178
|
activity_selectors: request?.activity_selectors,
|
|
14168
14179
|
activity_filter: request?.activity_filter,
|
|
14180
|
+
activity_marks: request?.activity_marks,
|
|
14169
14181
|
activity_processing: request?.activity_processing,
|
|
14170
14182
|
aggregation: request?.aggregation,
|
|
14171
14183
|
custom: request?.custom,
|
|
@@ -14483,6 +14495,7 @@ var FeedsApi = class {
|
|
|
14483
14495
|
activity_processors: request?.activity_processors,
|
|
14484
14496
|
activity_selectors: request?.activity_selectors,
|
|
14485
14497
|
activity_filter: request?.activity_filter,
|
|
14498
|
+
activity_marks: request?.activity_marks,
|
|
14486
14499
|
activity_processing: request?.activity_processing,
|
|
14487
14500
|
aggregation: request?.aggregation,
|
|
14488
14501
|
custom: request?.custom,
|
|
@@ -14506,6 +14519,7 @@ var FeedsApi = class {
|
|
|
14506
14519
|
activity_processors: request?.activity_processors,
|
|
14507
14520
|
activity_selectors: request?.activity_selectors,
|
|
14508
14521
|
activity_filter: request?.activity_filter,
|
|
14522
|
+
activity_marks: request?.activity_marks,
|
|
14509
14523
|
activity_processing: request?.activity_processing,
|
|
14510
14524
|
aggregation: request?.aggregation,
|
|
14511
14525
|
custom: request?.custom,
|
|
@@ -14680,6 +14694,8 @@ var FeedsApi = class {
|
|
|
14680
14694
|
ios: request?.ios,
|
|
14681
14695
|
web: request?.web,
|
|
14682
14696
|
unity: request?.unity,
|
|
14697
|
+
unity_desktop: request?.unity_desktop,
|
|
14698
|
+
unity_console: request?.unity_console,
|
|
14683
14699
|
server_side: request?.server_side
|
|
14684
14700
|
};
|
|
14685
14701
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/feeds/feeds/rate_limits", void 0, queryParams);
|
|
@@ -14979,6 +14995,16 @@ var FeedsApi = class {
|
|
|
14979
14995
|
metadata: response.metadata
|
|
14980
14996
|
};
|
|
14981
14997
|
}
|
|
14998
|
+
async deleteUserInterests(request) {
|
|
14999
|
+
const queryParams = { tags: request?.tags };
|
|
15000
|
+
const pathParams = { user_id: request?.user_id };
|
|
15001
|
+
const response = await this.apiClient.sendRequest("DELETE", "/api/v2/feeds/users/{user_id}/interests", pathParams, queryParams);
|
|
15002
|
+
decoders["DeleteUserInterestsResponse"]?.(response.body);
|
|
15003
|
+
return {
|
|
15004
|
+
...response.body,
|
|
15005
|
+
metadata: response.metadata
|
|
15006
|
+
};
|
|
15007
|
+
}
|
|
14982
15008
|
async getUserInterests(request) {
|
|
14983
15009
|
const queryParams = { limit: request?.limit };
|
|
14984
15010
|
const pathParams = { user_id: request?.user_id };
|
|
@@ -14989,6 +15015,16 @@ var FeedsApi = class {
|
|
|
14989
15015
|
metadata: response.metadata
|
|
14990
15016
|
};
|
|
14991
15017
|
}
|
|
15018
|
+
async upsertUserInterests(request) {
|
|
15019
|
+
const pathParams = { user_id: request?.user_id };
|
|
15020
|
+
const body = { interests: request?.interests };
|
|
15021
|
+
const response = await this.apiClient.sendRequest("PUT", "/api/v2/feeds/users/{user_id}/interests", pathParams, void 0, body, "application/json");
|
|
15022
|
+
decoders["UpsertUserInterestsResponse"]?.(response.body);
|
|
15023
|
+
return {
|
|
15024
|
+
...response.body,
|
|
15025
|
+
metadata: response.metadata
|
|
15026
|
+
};
|
|
15027
|
+
}
|
|
14992
15028
|
};
|
|
14993
15029
|
//#endregion
|
|
14994
15030
|
//#region src/gen/feeds/FeedApi.ts
|