@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/dist/index.es.mjs
CHANGED
|
@@ -2703,18 +2703,6 @@ decoders["CheckResponse"] = (input) => {
|
|
|
2703
2703
|
isSingle: true
|
|
2704
2704
|
} }, input);
|
|
2705
2705
|
};
|
|
2706
|
-
decoders["ClientEvent"] = (input) => {
|
|
2707
|
-
return decode({
|
|
2708
|
-
previously_connected_timestamp: {
|
|
2709
|
-
type: "DatetimeType",
|
|
2710
|
-
isSingle: true
|
|
2711
|
-
},
|
|
2712
|
-
timestamp: {
|
|
2713
|
-
type: "DatetimeType",
|
|
2714
|
-
isSingle: true
|
|
2715
|
-
}
|
|
2716
|
-
}, input);
|
|
2717
|
-
};
|
|
2718
2706
|
decoders["ClosedCaptionEvent"] = (input) => {
|
|
2719
2707
|
return decode({ created_at: {
|
|
2720
2708
|
type: "DatetimeType",
|
|
@@ -8623,6 +8611,7 @@ var CommonApi = class {
|
|
|
8623
8611
|
id: request?.id,
|
|
8624
8612
|
is_closed: request?.is_closed,
|
|
8625
8613
|
max_votes_allowed: request?.max_votes_allowed,
|
|
8614
|
+
team: request?.team,
|
|
8626
8615
|
user_id: request?.user_id,
|
|
8627
8616
|
voting_visibility: request?.voting_visibility,
|
|
8628
8617
|
options: request?.options,
|
|
@@ -8755,11 +8744,12 @@ var CommonApi = class {
|
|
|
8755
8744
|
};
|
|
8756
8745
|
}
|
|
8757
8746
|
async getPollOption(request) {
|
|
8747
|
+
const queryParams = { user_id: request?.user_id };
|
|
8758
8748
|
const pathParams = {
|
|
8759
8749
|
poll_id: request?.poll_id,
|
|
8760
8750
|
option_id: request?.option_id
|
|
8761
8751
|
};
|
|
8762
|
-
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams,
|
|
8752
|
+
const response = await this.apiClient.sendRequest("GET", "/api/v2/polls/{poll_id}/options/{option_id}", pathParams, queryParams);
|
|
8763
8753
|
decoders["PollOptionResponse"]?.(response.body);
|
|
8764
8754
|
return {
|
|
8765
8755
|
...response.body,
|
|
@@ -8855,6 +8845,8 @@ var CommonApi = class {
|
|
|
8855
8845
|
ios: request?.ios,
|
|
8856
8846
|
web: request?.web,
|
|
8857
8847
|
unity: request?.unity,
|
|
8848
|
+
unity_desktop: request?.unity_desktop,
|
|
8849
|
+
unity_console: request?.unity_console,
|
|
8858
8850
|
endpoints: request?.endpoints
|
|
8859
8851
|
};
|
|
8860
8852
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/rate_limits", void 0, queryParams);
|
|
@@ -9623,7 +9615,8 @@ var VideoApi = class {
|
|
|
9623
9615
|
};
|
|
9624
9616
|
const body = {
|
|
9625
9617
|
video: request?.video,
|
|
9626
|
-
members_ids: request?.members_ids
|
|
9618
|
+
members_ids: request?.members_ids,
|
|
9619
|
+
custom: request?.custom
|
|
9627
9620
|
};
|
|
9628
9621
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/video/call/{type}/{id}/ring", pathParams, void 0, body, "application/json");
|
|
9629
9622
|
decoders["RingCallResponse"]?.(response.body);
|
|
@@ -10774,6 +10767,8 @@ var ChatApi = class {
|
|
|
10774
10767
|
const body = {
|
|
10775
10768
|
operation: request?.operation,
|
|
10776
10769
|
filter: request?.filter,
|
|
10770
|
+
hide_history_before: request?.hide_history_before,
|
|
10771
|
+
synchronous: request?.synchronous,
|
|
10777
10772
|
custom_unset: request?.custom_unset,
|
|
10778
10773
|
members: request?.members,
|
|
10779
10774
|
custom_set: request?.custom_set,
|
|
@@ -10789,7 +10784,8 @@ var ChatApi = class {
|
|
|
10789
10784
|
async deleteChannels(request) {
|
|
10790
10785
|
const body = {
|
|
10791
10786
|
cids: request?.cids,
|
|
10792
|
-
hard_delete: request?.hard_delete
|
|
10787
|
+
hard_delete: request?.hard_delete,
|
|
10788
|
+
skip_truncate: request?.skip_truncate
|
|
10793
10789
|
};
|
|
10794
10790
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/chat/channels/delete", void 0, void 0, body, "application/json");
|
|
10795
10791
|
decoders["DeleteChannelsResponse"]?.(response.body);
|
|
@@ -10855,7 +10851,10 @@ var ChatApi = class {
|
|
|
10855
10851
|
};
|
|
10856
10852
|
}
|
|
10857
10853
|
async deleteChannel(request) {
|
|
10858
|
-
const queryParams = {
|
|
10854
|
+
const queryParams = {
|
|
10855
|
+
hard_delete: request?.hard_delete,
|
|
10856
|
+
skip_truncate: request?.skip_truncate
|
|
10857
|
+
};
|
|
10859
10858
|
const pathParams = {
|
|
10860
10859
|
type: request?.type,
|
|
10861
10860
|
id: request?.id
|
|
@@ -12440,6 +12439,7 @@ var ModerationApi = class {
|
|
|
12440
12439
|
async_response: request?.async_response,
|
|
12441
12440
|
config_key: request?.config_key,
|
|
12442
12441
|
content_published_at: request?.content_published_at,
|
|
12442
|
+
country_code: request?.country_code,
|
|
12443
12443
|
entity_creator_id: request?.entity_creator_id,
|
|
12444
12444
|
entity_id: request?.entity_id,
|
|
12445
12445
|
entity_type: request?.entity_type,
|
|
@@ -12461,6 +12461,7 @@ var ModerationApi = class {
|
|
|
12461
12461
|
appeal_reason: request?.appeal_reason,
|
|
12462
12462
|
entity_id: request?.entity_id,
|
|
12463
12463
|
entity_type: request?.entity_type,
|
|
12464
|
+
channel_cid: request?.channel_cid,
|
|
12464
12465
|
review_queue_item_id: request?.review_queue_item_id,
|
|
12465
12466
|
user_id: request?.user_id,
|
|
12466
12467
|
attachments: request?.attachments,
|
|
@@ -12566,6 +12567,7 @@ var ModerationApi = class {
|
|
|
12566
12567
|
config_key: request?.config_key,
|
|
12567
12568
|
config_team: request?.config_team,
|
|
12568
12569
|
content_published_at: request?.content_published_at,
|
|
12570
|
+
country_code: request?.country_code,
|
|
12569
12571
|
test_mode: request?.test_mode,
|
|
12570
12572
|
user_id: request?.user_id,
|
|
12571
12573
|
config: request?.config,
|
|
@@ -13205,7 +13207,7 @@ var ApiClient = class {
|
|
|
13205
13207
|
const headers = {
|
|
13206
13208
|
Authorization: this.apiConfig.token,
|
|
13207
13209
|
"stream-auth-type": "jwt",
|
|
13208
|
-
"X-Stream-Client": "stream-node-0.8.
|
|
13210
|
+
"X-Stream-Client": "stream-node-0.8.8",
|
|
13209
13211
|
"Accept-Encoding": "gzip",
|
|
13210
13212
|
"x-client-request-id": clientRequestId
|
|
13211
13213
|
};
|
|
@@ -13592,6 +13594,7 @@ var FeedsApi = class {
|
|
|
13592
13594
|
const queryParams = {
|
|
13593
13595
|
comment_sort: request?.comment_sort,
|
|
13594
13596
|
comment_limit: request?.comment_limit,
|
|
13597
|
+
skip_own_followings: request?.skip_own_followings,
|
|
13595
13598
|
user_id: request?.user_id,
|
|
13596
13599
|
language: request?.language,
|
|
13597
13600
|
translate_text: request?.translate_text
|
|
@@ -13880,6 +13883,7 @@ var FeedsApi = class {
|
|
|
13880
13883
|
const body = {
|
|
13881
13884
|
filter: request?.filter,
|
|
13882
13885
|
id_around: request?.id_around,
|
|
13886
|
+
include_soft_deleted_comments: request?.include_soft_deleted_comments,
|
|
13883
13887
|
limit: request?.limit,
|
|
13884
13888
|
next: request?.next,
|
|
13885
13889
|
prev: request?.prev,
|
|
@@ -14140,6 +14144,7 @@ var FeedsApi = class {
|
|
|
14140
14144
|
activity_processors: request?.activity_processors,
|
|
14141
14145
|
activity_selectors: request?.activity_selectors,
|
|
14142
14146
|
activity_filter: request?.activity_filter,
|
|
14147
|
+
activity_marks: request?.activity_marks,
|
|
14143
14148
|
activity_processing: request?.activity_processing,
|
|
14144
14149
|
aggregation: request?.aggregation,
|
|
14145
14150
|
custom: request?.custom,
|
|
@@ -14457,6 +14462,7 @@ var FeedsApi = class {
|
|
|
14457
14462
|
activity_processors: request?.activity_processors,
|
|
14458
14463
|
activity_selectors: request?.activity_selectors,
|
|
14459
14464
|
activity_filter: request?.activity_filter,
|
|
14465
|
+
activity_marks: request?.activity_marks,
|
|
14460
14466
|
activity_processing: request?.activity_processing,
|
|
14461
14467
|
aggregation: request?.aggregation,
|
|
14462
14468
|
custom: request?.custom,
|
|
@@ -14480,6 +14486,7 @@ var FeedsApi = class {
|
|
|
14480
14486
|
activity_processors: request?.activity_processors,
|
|
14481
14487
|
activity_selectors: request?.activity_selectors,
|
|
14482
14488
|
activity_filter: request?.activity_filter,
|
|
14489
|
+
activity_marks: request?.activity_marks,
|
|
14483
14490
|
activity_processing: request?.activity_processing,
|
|
14484
14491
|
aggregation: request?.aggregation,
|
|
14485
14492
|
custom: request?.custom,
|
|
@@ -14654,6 +14661,8 @@ var FeedsApi = class {
|
|
|
14654
14661
|
ios: request?.ios,
|
|
14655
14662
|
web: request?.web,
|
|
14656
14663
|
unity: request?.unity,
|
|
14664
|
+
unity_desktop: request?.unity_desktop,
|
|
14665
|
+
unity_console: request?.unity_console,
|
|
14657
14666
|
server_side: request?.server_side
|
|
14658
14667
|
};
|
|
14659
14668
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/feeds/feeds/rate_limits", void 0, queryParams);
|
|
@@ -14953,6 +14962,16 @@ var FeedsApi = class {
|
|
|
14953
14962
|
metadata: response.metadata
|
|
14954
14963
|
};
|
|
14955
14964
|
}
|
|
14965
|
+
async deleteUserInterests(request) {
|
|
14966
|
+
const queryParams = { tags: request?.tags };
|
|
14967
|
+
const pathParams = { user_id: request?.user_id };
|
|
14968
|
+
const response = await this.apiClient.sendRequest("DELETE", "/api/v2/feeds/users/{user_id}/interests", pathParams, queryParams);
|
|
14969
|
+
decoders["DeleteUserInterestsResponse"]?.(response.body);
|
|
14970
|
+
return {
|
|
14971
|
+
...response.body,
|
|
14972
|
+
metadata: response.metadata
|
|
14973
|
+
};
|
|
14974
|
+
}
|
|
14956
14975
|
async getUserInterests(request) {
|
|
14957
14976
|
const queryParams = { limit: request?.limit };
|
|
14958
14977
|
const pathParams = { user_id: request?.user_id };
|
|
@@ -14963,6 +14982,16 @@ var FeedsApi = class {
|
|
|
14963
14982
|
metadata: response.metadata
|
|
14964
14983
|
};
|
|
14965
14984
|
}
|
|
14985
|
+
async upsertUserInterests(request) {
|
|
14986
|
+
const pathParams = { user_id: request?.user_id };
|
|
14987
|
+
const body = { interests: request?.interests };
|
|
14988
|
+
const response = await this.apiClient.sendRequest("PUT", "/api/v2/feeds/users/{user_id}/interests", pathParams, void 0, body, "application/json");
|
|
14989
|
+
decoders["UpsertUserInterestsResponse"]?.(response.body);
|
|
14990
|
+
return {
|
|
14991
|
+
...response.body,
|
|
14992
|
+
metadata: response.metadata
|
|
14993
|
+
};
|
|
14994
|
+
}
|
|
14966
14995
|
};
|
|
14967
14996
|
//#endregion
|
|
14968
14997
|
//#region src/gen/feeds/FeedApi.ts
|