@stream-io/node-sdk 0.7.52 → 0.7.53
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/dist/index.cjs.js +200 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +200 -5
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +16 -1
- package/dist/src/gen/models/index.d.ts +241 -22
- package/dist/src/gen/moderation/ModerationApi.d.ts +6 -2
- package/dist/src/gen/video/VideoApi.d.ts +2 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +117 -2
- package/src/gen/model-decoders/decoders.ts +131 -0
- package/src/gen/models/index.ts +327 -25
- package/src/gen/moderation/ModerationApi.ts +39 -4
- package/src/gen/video/VideoApi.ts +29 -0
package/dist/index.cjs.js
CHANGED
|
@@ -249,6 +249,12 @@ decoders.AddBookmarkResponse = (input) => {
|
|
|
249
249
|
};
|
|
250
250
|
return decode(typeMappings, input);
|
|
251
251
|
};
|
|
252
|
+
decoders.AddCommentBookmarkResponse = (input) => {
|
|
253
|
+
const typeMappings = {
|
|
254
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
255
|
+
};
|
|
256
|
+
return decode(typeMappings, input);
|
|
257
|
+
};
|
|
252
258
|
decoders.AddCommentReactionResponse = (input) => {
|
|
253
259
|
const typeMappings = {
|
|
254
260
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
@@ -480,6 +486,7 @@ decoders.BookmarkResponse = (input) => {
|
|
|
480
486
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
481
487
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
482
488
|
user: { type: 'UserResponse', isSingle: true },
|
|
489
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
483
490
|
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
484
491
|
};
|
|
485
492
|
return decode(typeMappings, input);
|
|
@@ -738,6 +745,7 @@ decoders.CallResponse = (input) => {
|
|
|
738
745
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
739
746
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
740
747
|
created_by: { type: 'UserResponse', isSingle: true },
|
|
748
|
+
egress: { type: 'EgressResponse', isSingle: true },
|
|
741
749
|
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
742
750
|
starts_at: { type: 'DatetimeType', isSingle: true },
|
|
743
751
|
session: { type: 'CallSessionResponse', isSingle: true },
|
|
@@ -854,6 +862,14 @@ decoders.CallStatsReportSummaryResponse = (input) => {
|
|
|
854
862
|
};
|
|
855
863
|
return decode(typeMappings, input);
|
|
856
864
|
};
|
|
865
|
+
decoders.CallStatsSessionResponse = (input) => {
|
|
866
|
+
const typeMappings = {
|
|
867
|
+
generated_at: { type: 'DatetimeType', isSingle: true },
|
|
868
|
+
call_ended_at: { type: 'DatetimeType', isSingle: true },
|
|
869
|
+
call_started_at: { type: 'DatetimeType', isSingle: true },
|
|
870
|
+
};
|
|
871
|
+
return decode(typeMappings, input);
|
|
872
|
+
};
|
|
857
873
|
decoders.CallTranscription = (input) => {
|
|
858
874
|
const typeMappings = {
|
|
859
875
|
end_time: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1187,6 +1203,12 @@ decoders.ChatActivityStatsResponse = (input) => {
|
|
|
1187
1203
|
};
|
|
1188
1204
|
return decode(typeMappings, input);
|
|
1189
1205
|
};
|
|
1206
|
+
decoders.CheckResponse = (input) => {
|
|
1207
|
+
const typeMappings = {
|
|
1208
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1209
|
+
};
|
|
1210
|
+
return decode(typeMappings, input);
|
|
1211
|
+
};
|
|
1190
1212
|
decoders.ClosedCaptionEvent = (input) => {
|
|
1191
1213
|
const typeMappings = {
|
|
1192
1214
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1446,6 +1468,12 @@ decoders.DeleteChannelResponse = (input) => {
|
|
|
1446
1468
|
};
|
|
1447
1469
|
return decode(typeMappings, input);
|
|
1448
1470
|
};
|
|
1471
|
+
decoders.DeleteCommentBookmarkResponse = (input) => {
|
|
1472
|
+
const typeMappings = {
|
|
1473
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
1474
|
+
};
|
|
1475
|
+
return decode(typeMappings, input);
|
|
1476
|
+
};
|
|
1449
1477
|
decoders.DeleteCommentReactionResponse = (input) => {
|
|
1450
1478
|
const typeMappings = {
|
|
1451
1479
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
@@ -1501,6 +1529,12 @@ decoders.EgressRTMPResponse = (input) => {
|
|
|
1501
1529
|
};
|
|
1502
1530
|
return decode(typeMappings, input);
|
|
1503
1531
|
};
|
|
1532
|
+
decoders.EgressResponse = (input) => {
|
|
1533
|
+
const typeMappings = {
|
|
1534
|
+
rtmps: { type: 'EgressRTMPResponse', isSingle: false },
|
|
1535
|
+
};
|
|
1536
|
+
return decode(typeMappings, input);
|
|
1537
|
+
};
|
|
1504
1538
|
decoders.EnrichedCollection = (input) => {
|
|
1505
1539
|
const typeMappings = {
|
|
1506
1540
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1869,11 +1903,13 @@ decoders.GetBlockedUsersResponse = (input) => {
|
|
|
1869
1903
|
decoders.GetCallParticipantSessionMetricsResponse = (input) => {
|
|
1870
1904
|
const typeMappings = {
|
|
1871
1905
|
joined_at: { type: 'DatetimeType', isSingle: true },
|
|
1906
|
+
published_tracks: { type: 'PublishedTrackMetrics', isSingle: false },
|
|
1872
1907
|
};
|
|
1873
1908
|
return decode(typeMappings, input);
|
|
1874
1909
|
};
|
|
1875
1910
|
decoders.GetCallReportResponse = (input) => {
|
|
1876
1911
|
const typeMappings = {
|
|
1912
|
+
report: { type: 'ReportResponse', isSingle: true },
|
|
1877
1913
|
video_reactions: { type: 'VideoReactionsResponse', isSingle: false },
|
|
1878
1914
|
chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true },
|
|
1879
1915
|
session: { type: 'CallSessionResponse', isSingle: true },
|
|
@@ -1887,6 +1923,12 @@ decoders.GetCallResponse = (input) => {
|
|
|
1887
1923
|
};
|
|
1888
1924
|
return decode(typeMappings, input);
|
|
1889
1925
|
};
|
|
1926
|
+
decoders.GetCallSessionParticipantStatsDetailsResponse = (input) => {
|
|
1927
|
+
const typeMappings = {
|
|
1928
|
+
timeframe: { type: 'ParticipantSeriesTimeframe', isSingle: true },
|
|
1929
|
+
};
|
|
1930
|
+
return decode(typeMappings, input);
|
|
1931
|
+
};
|
|
1890
1932
|
decoders.GetCallTypeResponse = (input) => {
|
|
1891
1933
|
const typeMappings = {
|
|
1892
1934
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1894,6 +1936,12 @@ decoders.GetCallTypeResponse = (input) => {
|
|
|
1894
1936
|
};
|
|
1895
1937
|
return decode(typeMappings, input);
|
|
1896
1938
|
};
|
|
1939
|
+
decoders.GetCampaignResponse = (input) => {
|
|
1940
|
+
const typeMappings = {
|
|
1941
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
1942
|
+
};
|
|
1943
|
+
return decode(typeMappings, input);
|
|
1944
|
+
};
|
|
1897
1945
|
decoders.GetChannelTypeResponse = (input) => {
|
|
1898
1946
|
const typeMappings = {
|
|
1899
1947
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2611,6 +2659,15 @@ decoders.ParticipantCountOverTimeResponse = (input) => {
|
|
|
2611
2659
|
};
|
|
2612
2660
|
return decode(typeMappings, input);
|
|
2613
2661
|
};
|
|
2662
|
+
decoders.ParticipantReportResponse = (input) => {
|
|
2663
|
+
const typeMappings = {
|
|
2664
|
+
count_over_time: {
|
|
2665
|
+
type: 'ParticipantCountOverTimeResponse',
|
|
2666
|
+
isSingle: true,
|
|
2667
|
+
},
|
|
2668
|
+
};
|
|
2669
|
+
return decode(typeMappings, input);
|
|
2670
|
+
};
|
|
2614
2671
|
decoders.ParticipantSeriesTimeframe = (input) => {
|
|
2615
2672
|
const typeMappings = {
|
|
2616
2673
|
since: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2694,6 +2751,12 @@ decoders.PollVotesResponse = (input) => {
|
|
|
2694
2751
|
};
|
|
2695
2752
|
return decode(typeMappings, input);
|
|
2696
2753
|
};
|
|
2754
|
+
decoders.PublishedTrackMetrics = (input) => {
|
|
2755
|
+
const typeMappings = {
|
|
2756
|
+
warnings: { type: 'SessionWarningResponse', isSingle: false },
|
|
2757
|
+
};
|
|
2758
|
+
return decode(typeMappings, input);
|
|
2759
|
+
};
|
|
2697
2760
|
decoders.PushNotificationFields = (input) => {
|
|
2698
2761
|
const typeMappings = {
|
|
2699
2762
|
providers: { type: 'PushProvider', isSingle: false },
|
|
@@ -2817,6 +2880,12 @@ decoders.QueryCallSessionParticipantStatsTimelineResponse = (input) => {
|
|
|
2817
2880
|
};
|
|
2818
2881
|
return decode(typeMappings, input);
|
|
2819
2882
|
};
|
|
2883
|
+
decoders.QueryCallSessionStatsResponse = (input) => {
|
|
2884
|
+
const typeMappings = {
|
|
2885
|
+
call_stats: { type: 'CallStatsSessionResponse', isSingle: false },
|
|
2886
|
+
};
|
|
2887
|
+
return decode(typeMappings, input);
|
|
2888
|
+
};
|
|
2820
2889
|
decoders.QueryCallStatsMapResponse = (input) => {
|
|
2821
2890
|
const typeMappings = {
|
|
2822
2891
|
call_ended_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2845,6 +2914,12 @@ decoders.QueryCampaignsResponse = (input) => {
|
|
|
2845
2914
|
};
|
|
2846
2915
|
return decode(typeMappings, input);
|
|
2847
2916
|
};
|
|
2917
|
+
decoders.QueryChannelsResponse = (input) => {
|
|
2918
|
+
const typeMappings = {
|
|
2919
|
+
channels: { type: 'ChannelStateResponseFields', isSingle: false },
|
|
2920
|
+
};
|
|
2921
|
+
return decode(typeMappings, input);
|
|
2922
|
+
};
|
|
2848
2923
|
decoders.QueryCollectionsResponse = (input) => {
|
|
2849
2924
|
const typeMappings = {
|
|
2850
2925
|
collections: { type: 'CollectionResponse', isSingle: false },
|
|
@@ -2972,6 +3047,12 @@ decoders.QueryRemindersResponse = (input) => {
|
|
|
2972
3047
|
};
|
|
2973
3048
|
return decode(typeMappings, input);
|
|
2974
3049
|
};
|
|
3050
|
+
decoders.QueryReviewQueueResponse = (input) => {
|
|
3051
|
+
const typeMappings = {
|
|
3052
|
+
items: { type: 'ReviewQueueItemResponse', isSingle: false },
|
|
3053
|
+
};
|
|
3054
|
+
return decode(typeMappings, input);
|
|
3055
|
+
};
|
|
2975
3056
|
decoders.QuerySegmentTargetsResponse = (input) => {
|
|
2976
3057
|
const typeMappings = {
|
|
2977
3058
|
targets: { type: 'SegmentTargetResponse', isSingle: false },
|
|
@@ -3143,6 +3224,13 @@ decoders.RemoveUserGroupMembersResponse = (input) => {
|
|
|
3143
3224
|
};
|
|
3144
3225
|
return decode(typeMappings, input);
|
|
3145
3226
|
};
|
|
3227
|
+
decoders.ReportResponse = (input) => {
|
|
3228
|
+
const typeMappings = {
|
|
3229
|
+
call: { type: 'CallReportResponse', isSingle: true },
|
|
3230
|
+
participants: { type: 'ParticipantReportResponse', isSingle: true },
|
|
3231
|
+
};
|
|
3232
|
+
return decode(typeMappings, input);
|
|
3233
|
+
};
|
|
3146
3234
|
decoders.ResolveSipInboundResponse = (input) => {
|
|
3147
3235
|
const typeMappings = {
|
|
3148
3236
|
sip_routing_rule: { type: 'SIPInboundRoutingRuleResponse', isSingle: true },
|
|
@@ -3238,6 +3326,12 @@ decoders.SIPTrunkResponse = (input) => {
|
|
|
3238
3326
|
};
|
|
3239
3327
|
return decode(typeMappings, input);
|
|
3240
3328
|
};
|
|
3329
|
+
decoders.SearchResponse = (input) => {
|
|
3330
|
+
const typeMappings = {
|
|
3331
|
+
results: { type: 'SearchResult', isSingle: false },
|
|
3332
|
+
};
|
|
3333
|
+
return decode(typeMappings, input);
|
|
3334
|
+
};
|
|
3241
3335
|
decoders.SearchResult = (input) => {
|
|
3242
3336
|
const typeMappings = {
|
|
3243
3337
|
message: { type: 'SearchResultMessage', isSingle: true },
|
|
@@ -3357,6 +3451,12 @@ decoders.SingleFollowResponse = (input) => {
|
|
|
3357
3451
|
};
|
|
3358
3452
|
return decode(typeMappings, input);
|
|
3359
3453
|
};
|
|
3454
|
+
decoders.StartCampaignResponse = (input) => {
|
|
3455
|
+
const typeMappings = {
|
|
3456
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
3457
|
+
};
|
|
3458
|
+
return decode(typeMappings, input);
|
|
3459
|
+
};
|
|
3360
3460
|
decoders.StopLiveResponse = (input) => {
|
|
3361
3461
|
const typeMappings = {
|
|
3362
3462
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -3598,6 +3698,12 @@ decoders.UpdateCommandResponse = (input) => {
|
|
|
3598
3698
|
};
|
|
3599
3699
|
return decode(typeMappings, input);
|
|
3600
3700
|
};
|
|
3701
|
+
decoders.UpdateCommentBookmarkResponse = (input) => {
|
|
3702
|
+
const typeMappings = {
|
|
3703
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
3704
|
+
};
|
|
3705
|
+
return decode(typeMappings, input);
|
|
3706
|
+
};
|
|
3601
3707
|
decoders.UpdateCommentPartialResponse = (input) => {
|
|
3602
3708
|
const typeMappings = {
|
|
3603
3709
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
@@ -5469,6 +5575,18 @@ class VideoApi {
|
|
|
5469
5575
|
decoders.DeleteTranscriptionResponse?.(response.body);
|
|
5470
5576
|
return { ...response.body, metadata: response.metadata };
|
|
5471
5577
|
}
|
|
5578
|
+
async queryCallSessionStats(request) {
|
|
5579
|
+
const body = {
|
|
5580
|
+
limit: request?.limit,
|
|
5581
|
+
next: request?.next,
|
|
5582
|
+
prev: request?.prev,
|
|
5583
|
+
sort: request?.sort,
|
|
5584
|
+
filter_conditions: request?.filter_conditions,
|
|
5585
|
+
};
|
|
5586
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call_stats', undefined, undefined, body, 'application/json');
|
|
5587
|
+
decoders.QueryCallSessionStatsResponse?.(response.body);
|
|
5588
|
+
return { ...response.body, metadata: response.metadata };
|
|
5589
|
+
}
|
|
5472
5590
|
async getCallStatsMap(request) {
|
|
5473
5591
|
const queryParams = {
|
|
5474
5592
|
start_time: request?.start_time,
|
|
@@ -7465,6 +7583,15 @@ class ModerationApi {
|
|
|
7465
7583
|
decoders.BulkImageModerationResponse?.(response.body);
|
|
7466
7584
|
return { ...response.body, metadata: response.metadata };
|
|
7467
7585
|
}
|
|
7586
|
+
async bypass(request) {
|
|
7587
|
+
const body = {
|
|
7588
|
+
enabled: request?.enabled,
|
|
7589
|
+
target_user_id: request?.target_user_id,
|
|
7590
|
+
};
|
|
7591
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/bypass', undefined, undefined, body, 'application/json');
|
|
7592
|
+
decoders.BypassResponse?.(response.body);
|
|
7593
|
+
return { ...response.body, metadata: response.metadata };
|
|
7594
|
+
}
|
|
7468
7595
|
async check(request) {
|
|
7469
7596
|
const body = {
|
|
7470
7597
|
entity_creator_id: request?.entity_creator_id,
|
|
@@ -7521,6 +7648,7 @@ class ModerationApi {
|
|
|
7521
7648
|
async deleteConfig(request) {
|
|
7522
7649
|
const queryParams = {
|
|
7523
7650
|
team: request?.team,
|
|
7651
|
+
user_id: request?.user_id,
|
|
7524
7652
|
};
|
|
7525
7653
|
const pathParams = {
|
|
7526
7654
|
key: request?.key,
|
|
@@ -7646,18 +7774,23 @@ class ModerationApi {
|
|
|
7646
7774
|
enabled: request?.enabled,
|
|
7647
7775
|
logic: request?.logic,
|
|
7648
7776
|
team: request?.team,
|
|
7777
|
+
user_id: request?.user_id,
|
|
7649
7778
|
action_sequences: request?.action_sequences,
|
|
7650
7779
|
conditions: request?.conditions,
|
|
7651
7780
|
config_keys: request?.config_keys,
|
|
7652
7781
|
groups: request?.groups,
|
|
7653
7782
|
action: request?.action,
|
|
7783
|
+
user: request?.user,
|
|
7654
7784
|
};
|
|
7655
7785
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/moderation_rule', undefined, undefined, body, 'application/json');
|
|
7656
7786
|
decoders.UpsertModerationRuleResponse?.(response.body);
|
|
7657
7787
|
return { ...response.body, metadata: response.metadata };
|
|
7658
7788
|
}
|
|
7659
|
-
async deleteModerationRule() {
|
|
7660
|
-
const
|
|
7789
|
+
async deleteModerationRule(request) {
|
|
7790
|
+
const queryParams = {
|
|
7791
|
+
user_id: request?.user_id,
|
|
7792
|
+
};
|
|
7793
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/moderation/moderation_rule/{id}', undefined, queryParams);
|
|
7661
7794
|
decoders.DeleteModerationRuleResponse?.(response.body);
|
|
7662
7795
|
return { ...response.body, metadata: response.metadata };
|
|
7663
7796
|
}
|
|
@@ -7725,6 +7858,7 @@ class ModerationApi {
|
|
|
7725
7858
|
user_id: request?.user_id,
|
|
7726
7859
|
ban: request?.ban,
|
|
7727
7860
|
block: request?.block,
|
|
7861
|
+
bypass: request?.bypass,
|
|
7728
7862
|
custom: request?.custom,
|
|
7729
7863
|
delete_activity: request?.delete_activity,
|
|
7730
7864
|
delete_comment: request?.delete_comment,
|
|
@@ -7821,7 +7955,7 @@ class ApiClient {
|
|
|
7821
7955
|
const headers = {
|
|
7822
7956
|
Authorization: this.apiConfig.token,
|
|
7823
7957
|
'stream-auth-type': 'jwt',
|
|
7824
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
7958
|
+
'X-Stream-Client': 'stream-node-' + "0.7.53",
|
|
7825
7959
|
'Accept-Encoding': 'gzip',
|
|
7826
7960
|
'x-client-request-id': clientRequestId,
|
|
7827
7961
|
};
|
|
@@ -7921,6 +8055,7 @@ class FeedsApi {
|
|
|
7921
8055
|
create_notification_activity: request?.create_notification_activity,
|
|
7922
8056
|
enrich_own_fields: request?.enrich_own_fields,
|
|
7923
8057
|
expires_at: request?.expires_at,
|
|
8058
|
+
force_moderation: request?.force_moderation,
|
|
7924
8059
|
id: request?.id,
|
|
7925
8060
|
parent_id: request?.parent_id,
|
|
7926
8061
|
poll_id: request?.poll_id,
|
|
@@ -7948,6 +8083,7 @@ class FeedsApi {
|
|
|
7948
8083
|
const body = {
|
|
7949
8084
|
activities: request?.activities,
|
|
7950
8085
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8086
|
+
force_moderation: request?.force_moderation,
|
|
7951
8087
|
};
|
|
7952
8088
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/batch', undefined, undefined, body, 'application/json');
|
|
7953
8089
|
decoders.UpsertActivitiesResponse?.(response.body);
|
|
@@ -7956,6 +8092,7 @@ class FeedsApi {
|
|
|
7956
8092
|
async updateActivitiesPartialBatch(request) {
|
|
7957
8093
|
const body = {
|
|
7958
8094
|
changes: request?.changes,
|
|
8095
|
+
force_moderation: request?.force_moderation,
|
|
7959
8096
|
};
|
|
7960
8097
|
const response = await this.apiClient.sendRequest('PATCH', '/api/v2/feeds/activities/batch/partial', undefined, undefined, body, 'application/json');
|
|
7961
8098
|
decoders.UpdateActivitiesPartialBatchResponse?.(response.body);
|
|
@@ -8145,10 +8282,15 @@ class FeedsApi {
|
|
|
8145
8282
|
return { ...response.body, metadata: response.metadata };
|
|
8146
8283
|
}
|
|
8147
8284
|
async getActivity(request) {
|
|
8285
|
+
const queryParams = {
|
|
8286
|
+
comment_sort: request?.comment_sort,
|
|
8287
|
+
comment_limit: request?.comment_limit,
|
|
8288
|
+
user_id: request?.user_id,
|
|
8289
|
+
};
|
|
8148
8290
|
const pathParams = {
|
|
8149
8291
|
id: request?.id,
|
|
8150
8292
|
};
|
|
8151
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/activities/{id}', pathParams,
|
|
8293
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/activities/{id}', pathParams, queryParams);
|
|
8152
8294
|
decoders.GetActivityResponse?.(response.body);
|
|
8153
8295
|
return { ...response.body, metadata: response.metadata };
|
|
8154
8296
|
}
|
|
@@ -8159,6 +8301,7 @@ class FeedsApi {
|
|
|
8159
8301
|
const body = {
|
|
8160
8302
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8161
8303
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8304
|
+
force_moderation: request?.force_moderation,
|
|
8162
8305
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8163
8306
|
run_activity_processors: request?.run_activity_processors,
|
|
8164
8307
|
user_id: request?.user_id,
|
|
@@ -8178,6 +8321,7 @@ class FeedsApi {
|
|
|
8178
8321
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8179
8322
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8180
8323
|
expires_at: request?.expires_at,
|
|
8324
|
+
force_moderation: request?.force_moderation,
|
|
8181
8325
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8182
8326
|
poll_id: request?.poll_id,
|
|
8183
8327
|
restrict_replies: request?.restrict_replies,
|
|
@@ -8345,6 +8489,7 @@ class FeedsApi {
|
|
|
8345
8489
|
comment: request?.comment,
|
|
8346
8490
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8347
8491
|
create_notification_activity: request?.create_notification_activity,
|
|
8492
|
+
force_moderation: request?.force_moderation,
|
|
8348
8493
|
id: request?.id,
|
|
8349
8494
|
object_id: request?.object_id,
|
|
8350
8495
|
object_type: request?.object_type,
|
|
@@ -8384,6 +8529,49 @@ class FeedsApi {
|
|
|
8384
8529
|
decoders.QueryCommentsResponse?.(response.body);
|
|
8385
8530
|
return { ...response.body, metadata: response.metadata };
|
|
8386
8531
|
}
|
|
8532
|
+
async deleteCommentBookmark(request) {
|
|
8533
|
+
const queryParams = {
|
|
8534
|
+
folder_id: request?.folder_id,
|
|
8535
|
+
user_id: request?.user_id,
|
|
8536
|
+
};
|
|
8537
|
+
const pathParams = {
|
|
8538
|
+
comment_id: request?.comment_id,
|
|
8539
|
+
};
|
|
8540
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/comments/{comment_id}/bookmarks', pathParams, queryParams);
|
|
8541
|
+
decoders.DeleteCommentBookmarkResponse?.(response.body);
|
|
8542
|
+
return { ...response.body, metadata: response.metadata };
|
|
8543
|
+
}
|
|
8544
|
+
async updateCommentBookmark(request) {
|
|
8545
|
+
const pathParams = {
|
|
8546
|
+
comment_id: request?.comment_id,
|
|
8547
|
+
};
|
|
8548
|
+
const body = {
|
|
8549
|
+
folder_id: request?.folder_id,
|
|
8550
|
+
new_folder_id: request?.new_folder_id,
|
|
8551
|
+
user_id: request?.user_id,
|
|
8552
|
+
custom: request?.custom,
|
|
8553
|
+
new_folder: request?.new_folder,
|
|
8554
|
+
user: request?.user,
|
|
8555
|
+
};
|
|
8556
|
+
const response = await this.apiClient.sendRequest('PATCH', '/api/v2/feeds/comments/{comment_id}/bookmarks', pathParams, undefined, body, 'application/json');
|
|
8557
|
+
decoders.UpdateCommentBookmarkResponse?.(response.body);
|
|
8558
|
+
return { ...response.body, metadata: response.metadata };
|
|
8559
|
+
}
|
|
8560
|
+
async addCommentBookmark(request) {
|
|
8561
|
+
const pathParams = {
|
|
8562
|
+
comment_id: request?.comment_id,
|
|
8563
|
+
};
|
|
8564
|
+
const body = {
|
|
8565
|
+
folder_id: request?.folder_id,
|
|
8566
|
+
user_id: request?.user_id,
|
|
8567
|
+
custom: request?.custom,
|
|
8568
|
+
new_folder: request?.new_folder,
|
|
8569
|
+
user: request?.user,
|
|
8570
|
+
};
|
|
8571
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/comments/{comment_id}/bookmarks', pathParams, undefined, body, 'application/json');
|
|
8572
|
+
decoders.AddCommentBookmarkResponse?.(response.body);
|
|
8573
|
+
return { ...response.body, metadata: response.metadata };
|
|
8574
|
+
}
|
|
8387
8575
|
async deleteComment(request) {
|
|
8388
8576
|
const queryParams = {
|
|
8389
8577
|
hard_delete: request?.hard_delete,
|
|
@@ -8397,10 +8585,13 @@ class FeedsApi {
|
|
|
8397
8585
|
return { ...response.body, metadata: response.metadata };
|
|
8398
8586
|
}
|
|
8399
8587
|
async getComment(request) {
|
|
8588
|
+
const queryParams = {
|
|
8589
|
+
user_id: request?.user_id,
|
|
8590
|
+
};
|
|
8400
8591
|
const pathParams = {
|
|
8401
8592
|
id: request?.id,
|
|
8402
8593
|
};
|
|
8403
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/comments/{id}', pathParams,
|
|
8594
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/comments/{id}', pathParams, queryParams);
|
|
8404
8595
|
decoders.GetCommentResponse?.(response.body);
|
|
8405
8596
|
return { ...response.body, metadata: response.metadata };
|
|
8406
8597
|
}
|
|
@@ -8411,6 +8602,7 @@ class FeedsApi {
|
|
|
8411
8602
|
const body = {
|
|
8412
8603
|
comment: request?.comment,
|
|
8413
8604
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8605
|
+
force_moderation: request?.force_moderation,
|
|
8414
8606
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8415
8607
|
skip_enrich_url: request?.skip_enrich_url,
|
|
8416
8608
|
skip_push: request?.skip_push,
|
|
@@ -8430,6 +8622,7 @@ class FeedsApi {
|
|
|
8430
8622
|
};
|
|
8431
8623
|
const body = {
|
|
8432
8624
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8625
|
+
force_moderation: request?.force_moderation,
|
|
8433
8626
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8434
8627
|
skip_enrich_url: request?.skip_enrich_url,
|
|
8435
8628
|
skip_push: request?.skip_push,
|
|
@@ -8589,12 +8782,14 @@ class FeedsApi {
|
|
|
8589
8782
|
feed_id: request?.feed_id,
|
|
8590
8783
|
};
|
|
8591
8784
|
const body = {
|
|
8785
|
+
clear_location: request?.clear_location,
|
|
8592
8786
|
created_by_id: request?.created_by_id,
|
|
8593
8787
|
description: request?.description,
|
|
8594
8788
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8595
8789
|
name: request?.name,
|
|
8596
8790
|
filter_tags: request?.filter_tags,
|
|
8597
8791
|
custom: request?.custom,
|
|
8792
|
+
location: request?.location,
|
|
8598
8793
|
};
|
|
8599
8794
|
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}', pathParams, undefined, body, 'application/json');
|
|
8600
8795
|
decoders.UpdateFeedResponse?.(response.body);
|