@stream-io/node-sdk 0.8.5 → 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 +15 -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 +188 -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 +268 -9
- package/src/gen/moderation/ModerationApi.ts +1 -0
package/dist/index.es.mjs
CHANGED
|
@@ -8755,11 +8755,12 @@ var CommonApi = class {
|
|
|
8755
8755
|
};
|
|
8756
8756
|
}
|
|
8757
8757
|
async getPollOption(request) {
|
|
8758
|
+
const queryParams = { user_id: request?.user_id };
|
|
8758
8759
|
const pathParams = {
|
|
8759
8760
|
poll_id: request?.poll_id,
|
|
8760
8761
|
option_id: request?.option_id
|
|
8761
8762
|
};
|
|
8762
|
-
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams,
|
|
8763
|
+
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams, queryParams);
|
|
8763
8764
|
decoders["PollOptionResponse"]?.(response.body);
|
|
8764
8765
|
return {
|
|
8765
8766
|
...response.body,
|
|
@@ -8855,6 +8856,8 @@ var CommonApi = class {
|
|
|
8855
8856
|
ios: request?.ios,
|
|
8856
8857
|
web: request?.web,
|
|
8857
8858
|
unity: request?.unity,
|
|
8859
|
+
unity_desktop: request?.unity_desktop,
|
|
8860
|
+
unity_console: request?.unity_console,
|
|
8858
8861
|
endpoints: request?.endpoints
|
|
8859
8862
|
};
|
|
8860
8863
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/rate_limits", void 0, queryParams);
|
|
@@ -10774,6 +10777,8 @@ var ChatApi = class {
|
|
|
10774
10777
|
const body = {
|
|
10775
10778
|
operation: request?.operation,
|
|
10776
10779
|
filter: request?.filter,
|
|
10780
|
+
hide_history_before: request?.hide_history_before,
|
|
10781
|
+
synchronous: request?.synchronous,
|
|
10777
10782
|
custom_unset: request?.custom_unset,
|
|
10778
10783
|
members: request?.members,
|
|
10779
10784
|
custom_set: request?.custom_set,
|
|
@@ -10789,7 +10794,8 @@ var ChatApi = class {
|
|
|
10789
10794
|
async deleteChannels(request) {
|
|
10790
10795
|
const body = {
|
|
10791
10796
|
cids: request?.cids,
|
|
10792
|
-
hard_delete: request?.hard_delete
|
|
10797
|
+
hard_delete: request?.hard_delete,
|
|
10798
|
+
skip_truncate: request?.skip_truncate
|
|
10793
10799
|
};
|
|
10794
10800
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/chat/channels/delete", void 0, void 0, body, "application/json");
|
|
10795
10801
|
decoders["DeleteChannelsResponse"]?.(response.body);
|
|
@@ -10855,7 +10861,10 @@ var ChatApi = class {
|
|
|
10855
10861
|
};
|
|
10856
10862
|
}
|
|
10857
10863
|
async deleteChannel(request) {
|
|
10858
|
-
const queryParams = {
|
|
10864
|
+
const queryParams = {
|
|
10865
|
+
hard_delete: request?.hard_delete,
|
|
10866
|
+
skip_truncate: request?.skip_truncate
|
|
10867
|
+
};
|
|
10859
10868
|
const pathParams = {
|
|
10860
10869
|
type: request?.type,
|
|
10861
10870
|
id: request?.id
|
|
@@ -12461,6 +12470,7 @@ var ModerationApi = class {
|
|
|
12461
12470
|
appeal_reason: request?.appeal_reason,
|
|
12462
12471
|
entity_id: request?.entity_id,
|
|
12463
12472
|
entity_type: request?.entity_type,
|
|
12473
|
+
channel_cid: request?.channel_cid,
|
|
12464
12474
|
review_queue_item_id: request?.review_queue_item_id,
|
|
12465
12475
|
user_id: request?.user_id,
|
|
12466
12476
|
attachments: request?.attachments,
|
|
@@ -13205,7 +13215,7 @@ var ApiClient = class {
|
|
|
13205
13215
|
const headers = {
|
|
13206
13216
|
Authorization: this.apiConfig.token,
|
|
13207
13217
|
"stream-auth-type": "jwt",
|
|
13208
|
-
"X-Stream-Client": "stream-node-0.8.
|
|
13218
|
+
"X-Stream-Client": "stream-node-0.8.7",
|
|
13209
13219
|
"Accept-Encoding": "gzip",
|
|
13210
13220
|
"x-client-request-id": clientRequestId
|
|
13211
13221
|
};
|
|
@@ -13592,6 +13602,7 @@ var FeedsApi = class {
|
|
|
13592
13602
|
const queryParams = {
|
|
13593
13603
|
comment_sort: request?.comment_sort,
|
|
13594
13604
|
comment_limit: request?.comment_limit,
|
|
13605
|
+
skip_own_followings: request?.skip_own_followings,
|
|
13595
13606
|
user_id: request?.user_id,
|
|
13596
13607
|
language: request?.language,
|
|
13597
13608
|
translate_text: request?.translate_text
|
|
@@ -14140,6 +14151,7 @@ var FeedsApi = class {
|
|
|
14140
14151
|
activity_processors: request?.activity_processors,
|
|
14141
14152
|
activity_selectors: request?.activity_selectors,
|
|
14142
14153
|
activity_filter: request?.activity_filter,
|
|
14154
|
+
activity_marks: request?.activity_marks,
|
|
14143
14155
|
activity_processing: request?.activity_processing,
|
|
14144
14156
|
aggregation: request?.aggregation,
|
|
14145
14157
|
custom: request?.custom,
|
|
@@ -14457,6 +14469,7 @@ var FeedsApi = class {
|
|
|
14457
14469
|
activity_processors: request?.activity_processors,
|
|
14458
14470
|
activity_selectors: request?.activity_selectors,
|
|
14459
14471
|
activity_filter: request?.activity_filter,
|
|
14472
|
+
activity_marks: request?.activity_marks,
|
|
14460
14473
|
activity_processing: request?.activity_processing,
|
|
14461
14474
|
aggregation: request?.aggregation,
|
|
14462
14475
|
custom: request?.custom,
|
|
@@ -14480,6 +14493,7 @@ var FeedsApi = class {
|
|
|
14480
14493
|
activity_processors: request?.activity_processors,
|
|
14481
14494
|
activity_selectors: request?.activity_selectors,
|
|
14482
14495
|
activity_filter: request?.activity_filter,
|
|
14496
|
+
activity_marks: request?.activity_marks,
|
|
14483
14497
|
activity_processing: request?.activity_processing,
|
|
14484
14498
|
aggregation: request?.aggregation,
|
|
14485
14499
|
custom: request?.custom,
|
|
@@ -14654,6 +14668,8 @@ var FeedsApi = class {
|
|
|
14654
14668
|
ios: request?.ios,
|
|
14655
14669
|
web: request?.web,
|
|
14656
14670
|
unity: request?.unity,
|
|
14671
|
+
unity_desktop: request?.unity_desktop,
|
|
14672
|
+
unity_console: request?.unity_console,
|
|
14657
14673
|
server_side: request?.server_side
|
|
14658
14674
|
};
|
|
14659
14675
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/feeds/feeds/rate_limits", void 0, queryParams);
|
|
@@ -14953,6 +14969,16 @@ var FeedsApi = class {
|
|
|
14953
14969
|
metadata: response.metadata
|
|
14954
14970
|
};
|
|
14955
14971
|
}
|
|
14972
|
+
async deleteUserInterests(request) {
|
|
14973
|
+
const queryParams = { tags: request?.tags };
|
|
14974
|
+
const pathParams = { user_id: request?.user_id };
|
|
14975
|
+
const response = await this.apiClient.sendRequest("DELETE", "/api/v2/feeds/users/{user_id}/interests", pathParams, queryParams);
|
|
14976
|
+
decoders["DeleteUserInterestsResponse"]?.(response.body);
|
|
14977
|
+
return {
|
|
14978
|
+
...response.body,
|
|
14979
|
+
metadata: response.metadata
|
|
14980
|
+
};
|
|
14981
|
+
}
|
|
14956
14982
|
async getUserInterests(request) {
|
|
14957
14983
|
const queryParams = { limit: request?.limit };
|
|
14958
14984
|
const pathParams = { user_id: request?.user_id };
|
|
@@ -14963,6 +14989,16 @@ var FeedsApi = class {
|
|
|
14963
14989
|
metadata: response.metadata
|
|
14964
14990
|
};
|
|
14965
14991
|
}
|
|
14992
|
+
async upsertUserInterests(request) {
|
|
14993
|
+
const pathParams = { user_id: request?.user_id };
|
|
14994
|
+
const body = { interests: request?.interests };
|
|
14995
|
+
const response = await this.apiClient.sendRequest("PUT", "/api/v2/feeds/users/{user_id}/interests", pathParams, void 0, body, "application/json");
|
|
14996
|
+
decoders["UpsertUserInterestsResponse"]?.(response.body);
|
|
14997
|
+
return {
|
|
14998
|
+
...response.body,
|
|
14999
|
+
metadata: response.metadata
|
|
15000
|
+
};
|
|
15001
|
+
}
|
|
14966
15002
|
};
|
|
14967
15003
|
//#endregion
|
|
14968
15004
|
//#region src/gen/feeds/FeedApi.ts
|