@stream-io/node-sdk 0.8.6 → 0.8.8
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 +16 -0
- package/dist/index.cjs.js +46 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +46 -17
- 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 +223 -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 +10 -1
- package/src/gen/feeds/FeedsApi.ts +64 -0
- package/src/gen/model-decoders/decoders.ts +0 -9
- package/src/gen/models/index.ts +229 -6882
- package/src/gen/moderation/ModerationApi.ts +3 -0
- package/src/gen/video/VideoApi.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.8](https://github.com/GetStream/stream-node/compare/v0.8.7...v0.8.8) (2026-09-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add include_soft_deleted_comments ([#355](https://github.com/GetStream/stream-node/issues/355)) ([2b5287f](https://github.com/GetStream/stream-node/commit/2b5287f46842aa79cf16b1e84cccdbf4e4fda6e5))
|
|
9
|
+
* update to latest API spec ([#353](https://github.com/GetStream/stream-node/issues/353)) ([0897638](https://github.com/GetStream/stream-node/commit/08976387a19ad7d12988db5f8c3e99a6415492f7))
|
|
10
|
+
|
|
11
|
+
## [0.8.7](https://github.com/GetStream/stream-node/compare/v0.8.6...v0.8.7) (2026-09-21)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **feeds:** add reaction write outcome fields ([#350](https://github.com/GetStream/stream-node/issues/350)) ([70d6cbb](https://github.com/GetStream/stream-node/commit/70d6cbb6428c1b6e48cd5571b03c244f4250e0ec))
|
|
17
|
+
* 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))
|
|
18
|
+
|
|
3
19
|
## [0.8.6](https://github.com/GetStream/stream-node/compare/v0.8.5...v0.8.6) (2026-09-07)
|
|
4
20
|
|
|
5
21
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -2729,18 +2729,6 @@ decoders["CheckResponse"] = (input) => {
|
|
|
2729
2729
|
isSingle: true
|
|
2730
2730
|
} }, input);
|
|
2731
2731
|
};
|
|
2732
|
-
decoders["ClientEvent"] = (input) => {
|
|
2733
|
-
return decode({
|
|
2734
|
-
previously_connected_timestamp: {
|
|
2735
|
-
type: "DatetimeType",
|
|
2736
|
-
isSingle: true
|
|
2737
|
-
},
|
|
2738
|
-
timestamp: {
|
|
2739
|
-
type: "DatetimeType",
|
|
2740
|
-
isSingle: true
|
|
2741
|
-
}
|
|
2742
|
-
}, input);
|
|
2743
|
-
};
|
|
2744
2732
|
decoders["ClosedCaptionEvent"] = (input) => {
|
|
2745
2733
|
return decode({ created_at: {
|
|
2746
2734
|
type: "DatetimeType",
|
|
@@ -8649,6 +8637,7 @@ var CommonApi = class {
|
|
|
8649
8637
|
id: request?.id,
|
|
8650
8638
|
is_closed: request?.is_closed,
|
|
8651
8639
|
max_votes_allowed: request?.max_votes_allowed,
|
|
8640
|
+
team: request?.team,
|
|
8652
8641
|
user_id: request?.user_id,
|
|
8653
8642
|
voting_visibility: request?.voting_visibility,
|
|
8654
8643
|
options: request?.options,
|
|
@@ -8781,11 +8770,12 @@ var CommonApi = class {
|
|
|
8781
8770
|
};
|
|
8782
8771
|
}
|
|
8783
8772
|
async getPollOption(request) {
|
|
8773
|
+
const queryParams = { user_id: request?.user_id };
|
|
8784
8774
|
const pathParams = {
|
|
8785
8775
|
poll_id: request?.poll_id,
|
|
8786
8776
|
option_id: request?.option_id
|
|
8787
8777
|
};
|
|
8788
|
-
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams,
|
|
8778
|
+
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams, queryParams);
|
|
8789
8779
|
decoders["PollOptionResponse"]?.(response.body);
|
|
8790
8780
|
return {
|
|
8791
8781
|
...response.body,
|
|
@@ -8881,6 +8871,8 @@ var CommonApi = class {
|
|
|
8881
8871
|
ios: request?.ios,
|
|
8882
8872
|
web: request?.web,
|
|
8883
8873
|
unity: request?.unity,
|
|
8874
|
+
unity_desktop: request?.unity_desktop,
|
|
8875
|
+
unity_console: request?.unity_console,
|
|
8884
8876
|
endpoints: request?.endpoints
|
|
8885
8877
|
};
|
|
8886
8878
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/rate_limits", void 0, queryParams);
|
|
@@ -9649,7 +9641,8 @@ var VideoApi = class {
|
|
|
9649
9641
|
};
|
|
9650
9642
|
const body = {
|
|
9651
9643
|
video: request?.video,
|
|
9652
|
-
members_ids: request?.members_ids
|
|
9644
|
+
members_ids: request?.members_ids,
|
|
9645
|
+
custom: request?.custom
|
|
9653
9646
|
};
|
|
9654
9647
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/video/call/{type}/{id}/ring", pathParams, void 0, body, "application/json");
|
|
9655
9648
|
decoders["RingCallResponse"]?.(response.body);
|
|
@@ -10800,6 +10793,8 @@ var ChatApi = class {
|
|
|
10800
10793
|
const body = {
|
|
10801
10794
|
operation: request?.operation,
|
|
10802
10795
|
filter: request?.filter,
|
|
10796
|
+
hide_history_before: request?.hide_history_before,
|
|
10797
|
+
synchronous: request?.synchronous,
|
|
10803
10798
|
custom_unset: request?.custom_unset,
|
|
10804
10799
|
members: request?.members,
|
|
10805
10800
|
custom_set: request?.custom_set,
|
|
@@ -10815,7 +10810,8 @@ var ChatApi = class {
|
|
|
10815
10810
|
async deleteChannels(request) {
|
|
10816
10811
|
const body = {
|
|
10817
10812
|
cids: request?.cids,
|
|
10818
|
-
hard_delete: request?.hard_delete
|
|
10813
|
+
hard_delete: request?.hard_delete,
|
|
10814
|
+
skip_truncate: request?.skip_truncate
|
|
10819
10815
|
};
|
|
10820
10816
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/chat/channels/delete", void 0, void 0, body, "application/json");
|
|
10821
10817
|
decoders["DeleteChannelsResponse"]?.(response.body);
|
|
@@ -10881,7 +10877,10 @@ var ChatApi = class {
|
|
|
10881
10877
|
};
|
|
10882
10878
|
}
|
|
10883
10879
|
async deleteChannel(request) {
|
|
10884
|
-
const queryParams = {
|
|
10880
|
+
const queryParams = {
|
|
10881
|
+
hard_delete: request?.hard_delete,
|
|
10882
|
+
skip_truncate: request?.skip_truncate
|
|
10883
|
+
};
|
|
10885
10884
|
const pathParams = {
|
|
10886
10885
|
type: request?.type,
|
|
10887
10886
|
id: request?.id
|
|
@@ -12466,6 +12465,7 @@ var ModerationApi = class {
|
|
|
12466
12465
|
async_response: request?.async_response,
|
|
12467
12466
|
config_key: request?.config_key,
|
|
12468
12467
|
content_published_at: request?.content_published_at,
|
|
12468
|
+
country_code: request?.country_code,
|
|
12469
12469
|
entity_creator_id: request?.entity_creator_id,
|
|
12470
12470
|
entity_id: request?.entity_id,
|
|
12471
12471
|
entity_type: request?.entity_type,
|
|
@@ -12487,6 +12487,7 @@ var ModerationApi = class {
|
|
|
12487
12487
|
appeal_reason: request?.appeal_reason,
|
|
12488
12488
|
entity_id: request?.entity_id,
|
|
12489
12489
|
entity_type: request?.entity_type,
|
|
12490
|
+
channel_cid: request?.channel_cid,
|
|
12490
12491
|
review_queue_item_id: request?.review_queue_item_id,
|
|
12491
12492
|
user_id: request?.user_id,
|
|
12492
12493
|
attachments: request?.attachments,
|
|
@@ -12592,6 +12593,7 @@ var ModerationApi = class {
|
|
|
12592
12593
|
config_key: request?.config_key,
|
|
12593
12594
|
config_team: request?.config_team,
|
|
12594
12595
|
content_published_at: request?.content_published_at,
|
|
12596
|
+
country_code: request?.country_code,
|
|
12595
12597
|
test_mode: request?.test_mode,
|
|
12596
12598
|
user_id: request?.user_id,
|
|
12597
12599
|
config: request?.config,
|
|
@@ -13231,7 +13233,7 @@ var ApiClient = class {
|
|
|
13231
13233
|
const headers = {
|
|
13232
13234
|
Authorization: this.apiConfig.token,
|
|
13233
13235
|
"stream-auth-type": "jwt",
|
|
13234
|
-
"X-Stream-Client": "stream-node-0.8.
|
|
13236
|
+
"X-Stream-Client": "stream-node-0.8.8",
|
|
13235
13237
|
"Accept-Encoding": "gzip",
|
|
13236
13238
|
"x-client-request-id": clientRequestId
|
|
13237
13239
|
};
|
|
@@ -13618,6 +13620,7 @@ var FeedsApi = class {
|
|
|
13618
13620
|
const queryParams = {
|
|
13619
13621
|
comment_sort: request?.comment_sort,
|
|
13620
13622
|
comment_limit: request?.comment_limit,
|
|
13623
|
+
skip_own_followings: request?.skip_own_followings,
|
|
13621
13624
|
user_id: request?.user_id,
|
|
13622
13625
|
language: request?.language,
|
|
13623
13626
|
translate_text: request?.translate_text
|
|
@@ -13906,6 +13909,7 @@ var FeedsApi = class {
|
|
|
13906
13909
|
const body = {
|
|
13907
13910
|
filter: request?.filter,
|
|
13908
13911
|
id_around: request?.id_around,
|
|
13912
|
+
include_soft_deleted_comments: request?.include_soft_deleted_comments,
|
|
13909
13913
|
limit: request?.limit,
|
|
13910
13914
|
next: request?.next,
|
|
13911
13915
|
prev: request?.prev,
|
|
@@ -14166,6 +14170,7 @@ var FeedsApi = class {
|
|
|
14166
14170
|
activity_processors: request?.activity_processors,
|
|
14167
14171
|
activity_selectors: request?.activity_selectors,
|
|
14168
14172
|
activity_filter: request?.activity_filter,
|
|
14173
|
+
activity_marks: request?.activity_marks,
|
|
14169
14174
|
activity_processing: request?.activity_processing,
|
|
14170
14175
|
aggregation: request?.aggregation,
|
|
14171
14176
|
custom: request?.custom,
|
|
@@ -14483,6 +14488,7 @@ var FeedsApi = class {
|
|
|
14483
14488
|
activity_processors: request?.activity_processors,
|
|
14484
14489
|
activity_selectors: request?.activity_selectors,
|
|
14485
14490
|
activity_filter: request?.activity_filter,
|
|
14491
|
+
activity_marks: request?.activity_marks,
|
|
14486
14492
|
activity_processing: request?.activity_processing,
|
|
14487
14493
|
aggregation: request?.aggregation,
|
|
14488
14494
|
custom: request?.custom,
|
|
@@ -14506,6 +14512,7 @@ var FeedsApi = class {
|
|
|
14506
14512
|
activity_processors: request?.activity_processors,
|
|
14507
14513
|
activity_selectors: request?.activity_selectors,
|
|
14508
14514
|
activity_filter: request?.activity_filter,
|
|
14515
|
+
activity_marks: request?.activity_marks,
|
|
14509
14516
|
activity_processing: request?.activity_processing,
|
|
14510
14517
|
aggregation: request?.aggregation,
|
|
14511
14518
|
custom: request?.custom,
|
|
@@ -14680,6 +14687,8 @@ var FeedsApi = class {
|
|
|
14680
14687
|
ios: request?.ios,
|
|
14681
14688
|
web: request?.web,
|
|
14682
14689
|
unity: request?.unity,
|
|
14690
|
+
unity_desktop: request?.unity_desktop,
|
|
14691
|
+
unity_console: request?.unity_console,
|
|
14683
14692
|
server_side: request?.server_side
|
|
14684
14693
|
};
|
|
14685
14694
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/feeds/feeds/rate_limits", void 0, queryParams);
|
|
@@ -14979,6 +14988,16 @@ var FeedsApi = class {
|
|
|
14979
14988
|
metadata: response.metadata
|
|
14980
14989
|
};
|
|
14981
14990
|
}
|
|
14991
|
+
async deleteUserInterests(request) {
|
|
14992
|
+
const queryParams = { tags: request?.tags };
|
|
14993
|
+
const pathParams = { user_id: request?.user_id };
|
|
14994
|
+
const response = await this.apiClient.sendRequest("DELETE", "/api/v2/feeds/users/{user_id}/interests", pathParams, queryParams);
|
|
14995
|
+
decoders["DeleteUserInterestsResponse"]?.(response.body);
|
|
14996
|
+
return {
|
|
14997
|
+
...response.body,
|
|
14998
|
+
metadata: response.metadata
|
|
14999
|
+
};
|
|
15000
|
+
}
|
|
14982
15001
|
async getUserInterests(request) {
|
|
14983
15002
|
const queryParams = { limit: request?.limit };
|
|
14984
15003
|
const pathParams = { user_id: request?.user_id };
|
|
@@ -14989,6 +15008,16 @@ var FeedsApi = class {
|
|
|
14989
15008
|
metadata: response.metadata
|
|
14990
15009
|
};
|
|
14991
15010
|
}
|
|
15011
|
+
async upsertUserInterests(request) {
|
|
15012
|
+
const pathParams = { user_id: request?.user_id };
|
|
15013
|
+
const body = { interests: request?.interests };
|
|
15014
|
+
const response = await this.apiClient.sendRequest("PUT", "/api/v2/feeds/users/{user_id}/interests", pathParams, void 0, body, "application/json");
|
|
15015
|
+
decoders["UpsertUserInterestsResponse"]?.(response.body);
|
|
15016
|
+
return {
|
|
15017
|
+
...response.body,
|
|
15018
|
+
metadata: response.metadata
|
|
15019
|
+
};
|
|
15020
|
+
}
|
|
14992
15021
|
};
|
|
14993
15022
|
//#endregion
|
|
14994
15023
|
//#region src/gen/feeds/FeedApi.ts
|