@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.es.mjs
CHANGED
|
@@ -230,6 +230,12 @@ decoders.AddBookmarkResponse = (input) => {
|
|
|
230
230
|
};
|
|
231
231
|
return decode(typeMappings, input);
|
|
232
232
|
};
|
|
233
|
+
decoders.AddCommentBookmarkResponse = (input) => {
|
|
234
|
+
const typeMappings = {
|
|
235
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
236
|
+
};
|
|
237
|
+
return decode(typeMappings, input);
|
|
238
|
+
};
|
|
233
239
|
decoders.AddCommentReactionResponse = (input) => {
|
|
234
240
|
const typeMappings = {
|
|
235
241
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
@@ -461,6 +467,7 @@ decoders.BookmarkResponse = (input) => {
|
|
|
461
467
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
462
468
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
463
469
|
user: { type: 'UserResponse', isSingle: true },
|
|
470
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
464
471
|
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
465
472
|
};
|
|
466
473
|
return decode(typeMappings, input);
|
|
@@ -719,6 +726,7 @@ decoders.CallResponse = (input) => {
|
|
|
719
726
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
720
727
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
721
728
|
created_by: { type: 'UserResponse', isSingle: true },
|
|
729
|
+
egress: { type: 'EgressResponse', isSingle: true },
|
|
722
730
|
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
723
731
|
starts_at: { type: 'DatetimeType', isSingle: true },
|
|
724
732
|
session: { type: 'CallSessionResponse', isSingle: true },
|
|
@@ -835,6 +843,14 @@ decoders.CallStatsReportSummaryResponse = (input) => {
|
|
|
835
843
|
};
|
|
836
844
|
return decode(typeMappings, input);
|
|
837
845
|
};
|
|
846
|
+
decoders.CallStatsSessionResponse = (input) => {
|
|
847
|
+
const typeMappings = {
|
|
848
|
+
generated_at: { type: 'DatetimeType', isSingle: true },
|
|
849
|
+
call_ended_at: { type: 'DatetimeType', isSingle: true },
|
|
850
|
+
call_started_at: { type: 'DatetimeType', isSingle: true },
|
|
851
|
+
};
|
|
852
|
+
return decode(typeMappings, input);
|
|
853
|
+
};
|
|
838
854
|
decoders.CallTranscription = (input) => {
|
|
839
855
|
const typeMappings = {
|
|
840
856
|
end_time: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1168,6 +1184,12 @@ decoders.ChatActivityStatsResponse = (input) => {
|
|
|
1168
1184
|
};
|
|
1169
1185
|
return decode(typeMappings, input);
|
|
1170
1186
|
};
|
|
1187
|
+
decoders.CheckResponse = (input) => {
|
|
1188
|
+
const typeMappings = {
|
|
1189
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1190
|
+
};
|
|
1191
|
+
return decode(typeMappings, input);
|
|
1192
|
+
};
|
|
1171
1193
|
decoders.ClosedCaptionEvent = (input) => {
|
|
1172
1194
|
const typeMappings = {
|
|
1173
1195
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1427,6 +1449,12 @@ decoders.DeleteChannelResponse = (input) => {
|
|
|
1427
1449
|
};
|
|
1428
1450
|
return decode(typeMappings, input);
|
|
1429
1451
|
};
|
|
1452
|
+
decoders.DeleteCommentBookmarkResponse = (input) => {
|
|
1453
|
+
const typeMappings = {
|
|
1454
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
1455
|
+
};
|
|
1456
|
+
return decode(typeMappings, input);
|
|
1457
|
+
};
|
|
1430
1458
|
decoders.DeleteCommentReactionResponse = (input) => {
|
|
1431
1459
|
const typeMappings = {
|
|
1432
1460
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
@@ -1482,6 +1510,12 @@ decoders.EgressRTMPResponse = (input) => {
|
|
|
1482
1510
|
};
|
|
1483
1511
|
return decode(typeMappings, input);
|
|
1484
1512
|
};
|
|
1513
|
+
decoders.EgressResponse = (input) => {
|
|
1514
|
+
const typeMappings = {
|
|
1515
|
+
rtmps: { type: 'EgressRTMPResponse', isSingle: false },
|
|
1516
|
+
};
|
|
1517
|
+
return decode(typeMappings, input);
|
|
1518
|
+
};
|
|
1485
1519
|
decoders.EnrichedCollection = (input) => {
|
|
1486
1520
|
const typeMappings = {
|
|
1487
1521
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1850,11 +1884,13 @@ decoders.GetBlockedUsersResponse = (input) => {
|
|
|
1850
1884
|
decoders.GetCallParticipantSessionMetricsResponse = (input) => {
|
|
1851
1885
|
const typeMappings = {
|
|
1852
1886
|
joined_at: { type: 'DatetimeType', isSingle: true },
|
|
1887
|
+
published_tracks: { type: 'PublishedTrackMetrics', isSingle: false },
|
|
1853
1888
|
};
|
|
1854
1889
|
return decode(typeMappings, input);
|
|
1855
1890
|
};
|
|
1856
1891
|
decoders.GetCallReportResponse = (input) => {
|
|
1857
1892
|
const typeMappings = {
|
|
1893
|
+
report: { type: 'ReportResponse', isSingle: true },
|
|
1858
1894
|
video_reactions: { type: 'VideoReactionsResponse', isSingle: false },
|
|
1859
1895
|
chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true },
|
|
1860
1896
|
session: { type: 'CallSessionResponse', isSingle: true },
|
|
@@ -1868,6 +1904,12 @@ decoders.GetCallResponse = (input) => {
|
|
|
1868
1904
|
};
|
|
1869
1905
|
return decode(typeMappings, input);
|
|
1870
1906
|
};
|
|
1907
|
+
decoders.GetCallSessionParticipantStatsDetailsResponse = (input) => {
|
|
1908
|
+
const typeMappings = {
|
|
1909
|
+
timeframe: { type: 'ParticipantSeriesTimeframe', isSingle: true },
|
|
1910
|
+
};
|
|
1911
|
+
return decode(typeMappings, input);
|
|
1912
|
+
};
|
|
1871
1913
|
decoders.GetCallTypeResponse = (input) => {
|
|
1872
1914
|
const typeMappings = {
|
|
1873
1915
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1875,6 +1917,12 @@ decoders.GetCallTypeResponse = (input) => {
|
|
|
1875
1917
|
};
|
|
1876
1918
|
return decode(typeMappings, input);
|
|
1877
1919
|
};
|
|
1920
|
+
decoders.GetCampaignResponse = (input) => {
|
|
1921
|
+
const typeMappings = {
|
|
1922
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
1923
|
+
};
|
|
1924
|
+
return decode(typeMappings, input);
|
|
1925
|
+
};
|
|
1878
1926
|
decoders.GetChannelTypeResponse = (input) => {
|
|
1879
1927
|
const typeMappings = {
|
|
1880
1928
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2592,6 +2640,15 @@ decoders.ParticipantCountOverTimeResponse = (input) => {
|
|
|
2592
2640
|
};
|
|
2593
2641
|
return decode(typeMappings, input);
|
|
2594
2642
|
};
|
|
2643
|
+
decoders.ParticipantReportResponse = (input) => {
|
|
2644
|
+
const typeMappings = {
|
|
2645
|
+
count_over_time: {
|
|
2646
|
+
type: 'ParticipantCountOverTimeResponse',
|
|
2647
|
+
isSingle: true,
|
|
2648
|
+
},
|
|
2649
|
+
};
|
|
2650
|
+
return decode(typeMappings, input);
|
|
2651
|
+
};
|
|
2595
2652
|
decoders.ParticipantSeriesTimeframe = (input) => {
|
|
2596
2653
|
const typeMappings = {
|
|
2597
2654
|
since: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2675,6 +2732,12 @@ decoders.PollVotesResponse = (input) => {
|
|
|
2675
2732
|
};
|
|
2676
2733
|
return decode(typeMappings, input);
|
|
2677
2734
|
};
|
|
2735
|
+
decoders.PublishedTrackMetrics = (input) => {
|
|
2736
|
+
const typeMappings = {
|
|
2737
|
+
warnings: { type: 'SessionWarningResponse', isSingle: false },
|
|
2738
|
+
};
|
|
2739
|
+
return decode(typeMappings, input);
|
|
2740
|
+
};
|
|
2678
2741
|
decoders.PushNotificationFields = (input) => {
|
|
2679
2742
|
const typeMappings = {
|
|
2680
2743
|
providers: { type: 'PushProvider', isSingle: false },
|
|
@@ -2798,6 +2861,12 @@ decoders.QueryCallSessionParticipantStatsTimelineResponse = (input) => {
|
|
|
2798
2861
|
};
|
|
2799
2862
|
return decode(typeMappings, input);
|
|
2800
2863
|
};
|
|
2864
|
+
decoders.QueryCallSessionStatsResponse = (input) => {
|
|
2865
|
+
const typeMappings = {
|
|
2866
|
+
call_stats: { type: 'CallStatsSessionResponse', isSingle: false },
|
|
2867
|
+
};
|
|
2868
|
+
return decode(typeMappings, input);
|
|
2869
|
+
};
|
|
2801
2870
|
decoders.QueryCallStatsMapResponse = (input) => {
|
|
2802
2871
|
const typeMappings = {
|
|
2803
2872
|
call_ended_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2826,6 +2895,12 @@ decoders.QueryCampaignsResponse = (input) => {
|
|
|
2826
2895
|
};
|
|
2827
2896
|
return decode(typeMappings, input);
|
|
2828
2897
|
};
|
|
2898
|
+
decoders.QueryChannelsResponse = (input) => {
|
|
2899
|
+
const typeMappings = {
|
|
2900
|
+
channels: { type: 'ChannelStateResponseFields', isSingle: false },
|
|
2901
|
+
};
|
|
2902
|
+
return decode(typeMappings, input);
|
|
2903
|
+
};
|
|
2829
2904
|
decoders.QueryCollectionsResponse = (input) => {
|
|
2830
2905
|
const typeMappings = {
|
|
2831
2906
|
collections: { type: 'CollectionResponse', isSingle: false },
|
|
@@ -2953,6 +3028,12 @@ decoders.QueryRemindersResponse = (input) => {
|
|
|
2953
3028
|
};
|
|
2954
3029
|
return decode(typeMappings, input);
|
|
2955
3030
|
};
|
|
3031
|
+
decoders.QueryReviewQueueResponse = (input) => {
|
|
3032
|
+
const typeMappings = {
|
|
3033
|
+
items: { type: 'ReviewQueueItemResponse', isSingle: false },
|
|
3034
|
+
};
|
|
3035
|
+
return decode(typeMappings, input);
|
|
3036
|
+
};
|
|
2956
3037
|
decoders.QuerySegmentTargetsResponse = (input) => {
|
|
2957
3038
|
const typeMappings = {
|
|
2958
3039
|
targets: { type: 'SegmentTargetResponse', isSingle: false },
|
|
@@ -3124,6 +3205,13 @@ decoders.RemoveUserGroupMembersResponse = (input) => {
|
|
|
3124
3205
|
};
|
|
3125
3206
|
return decode(typeMappings, input);
|
|
3126
3207
|
};
|
|
3208
|
+
decoders.ReportResponse = (input) => {
|
|
3209
|
+
const typeMappings = {
|
|
3210
|
+
call: { type: 'CallReportResponse', isSingle: true },
|
|
3211
|
+
participants: { type: 'ParticipantReportResponse', isSingle: true },
|
|
3212
|
+
};
|
|
3213
|
+
return decode(typeMappings, input);
|
|
3214
|
+
};
|
|
3127
3215
|
decoders.ResolveSipInboundResponse = (input) => {
|
|
3128
3216
|
const typeMappings = {
|
|
3129
3217
|
sip_routing_rule: { type: 'SIPInboundRoutingRuleResponse', isSingle: true },
|
|
@@ -3219,6 +3307,12 @@ decoders.SIPTrunkResponse = (input) => {
|
|
|
3219
3307
|
};
|
|
3220
3308
|
return decode(typeMappings, input);
|
|
3221
3309
|
};
|
|
3310
|
+
decoders.SearchResponse = (input) => {
|
|
3311
|
+
const typeMappings = {
|
|
3312
|
+
results: { type: 'SearchResult', isSingle: false },
|
|
3313
|
+
};
|
|
3314
|
+
return decode(typeMappings, input);
|
|
3315
|
+
};
|
|
3222
3316
|
decoders.SearchResult = (input) => {
|
|
3223
3317
|
const typeMappings = {
|
|
3224
3318
|
message: { type: 'SearchResultMessage', isSingle: true },
|
|
@@ -3338,6 +3432,12 @@ decoders.SingleFollowResponse = (input) => {
|
|
|
3338
3432
|
};
|
|
3339
3433
|
return decode(typeMappings, input);
|
|
3340
3434
|
};
|
|
3435
|
+
decoders.StartCampaignResponse = (input) => {
|
|
3436
|
+
const typeMappings = {
|
|
3437
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
3438
|
+
};
|
|
3439
|
+
return decode(typeMappings, input);
|
|
3440
|
+
};
|
|
3341
3441
|
decoders.StopLiveResponse = (input) => {
|
|
3342
3442
|
const typeMappings = {
|
|
3343
3443
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -3579,6 +3679,12 @@ decoders.UpdateCommandResponse = (input) => {
|
|
|
3579
3679
|
};
|
|
3580
3680
|
return decode(typeMappings, input);
|
|
3581
3681
|
};
|
|
3682
|
+
decoders.UpdateCommentBookmarkResponse = (input) => {
|
|
3683
|
+
const typeMappings = {
|
|
3684
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
3685
|
+
};
|
|
3686
|
+
return decode(typeMappings, input);
|
|
3687
|
+
};
|
|
3582
3688
|
decoders.UpdateCommentPartialResponse = (input) => {
|
|
3583
3689
|
const typeMappings = {
|
|
3584
3690
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
@@ -5450,6 +5556,18 @@ class VideoApi {
|
|
|
5450
5556
|
decoders.DeleteTranscriptionResponse?.(response.body);
|
|
5451
5557
|
return { ...response.body, metadata: response.metadata };
|
|
5452
5558
|
}
|
|
5559
|
+
async queryCallSessionStats(request) {
|
|
5560
|
+
const body = {
|
|
5561
|
+
limit: request?.limit,
|
|
5562
|
+
next: request?.next,
|
|
5563
|
+
prev: request?.prev,
|
|
5564
|
+
sort: request?.sort,
|
|
5565
|
+
filter_conditions: request?.filter_conditions,
|
|
5566
|
+
};
|
|
5567
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call_stats', undefined, undefined, body, 'application/json');
|
|
5568
|
+
decoders.QueryCallSessionStatsResponse?.(response.body);
|
|
5569
|
+
return { ...response.body, metadata: response.metadata };
|
|
5570
|
+
}
|
|
5453
5571
|
async getCallStatsMap(request) {
|
|
5454
5572
|
const queryParams = {
|
|
5455
5573
|
start_time: request?.start_time,
|
|
@@ -7446,6 +7564,15 @@ class ModerationApi {
|
|
|
7446
7564
|
decoders.BulkImageModerationResponse?.(response.body);
|
|
7447
7565
|
return { ...response.body, metadata: response.metadata };
|
|
7448
7566
|
}
|
|
7567
|
+
async bypass(request) {
|
|
7568
|
+
const body = {
|
|
7569
|
+
enabled: request?.enabled,
|
|
7570
|
+
target_user_id: request?.target_user_id,
|
|
7571
|
+
};
|
|
7572
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/bypass', undefined, undefined, body, 'application/json');
|
|
7573
|
+
decoders.BypassResponse?.(response.body);
|
|
7574
|
+
return { ...response.body, metadata: response.metadata };
|
|
7575
|
+
}
|
|
7449
7576
|
async check(request) {
|
|
7450
7577
|
const body = {
|
|
7451
7578
|
entity_creator_id: request?.entity_creator_id,
|
|
@@ -7502,6 +7629,7 @@ class ModerationApi {
|
|
|
7502
7629
|
async deleteConfig(request) {
|
|
7503
7630
|
const queryParams = {
|
|
7504
7631
|
team: request?.team,
|
|
7632
|
+
user_id: request?.user_id,
|
|
7505
7633
|
};
|
|
7506
7634
|
const pathParams = {
|
|
7507
7635
|
key: request?.key,
|
|
@@ -7627,18 +7755,23 @@ class ModerationApi {
|
|
|
7627
7755
|
enabled: request?.enabled,
|
|
7628
7756
|
logic: request?.logic,
|
|
7629
7757
|
team: request?.team,
|
|
7758
|
+
user_id: request?.user_id,
|
|
7630
7759
|
action_sequences: request?.action_sequences,
|
|
7631
7760
|
conditions: request?.conditions,
|
|
7632
7761
|
config_keys: request?.config_keys,
|
|
7633
7762
|
groups: request?.groups,
|
|
7634
7763
|
action: request?.action,
|
|
7764
|
+
user: request?.user,
|
|
7635
7765
|
};
|
|
7636
7766
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/moderation_rule', undefined, undefined, body, 'application/json');
|
|
7637
7767
|
decoders.UpsertModerationRuleResponse?.(response.body);
|
|
7638
7768
|
return { ...response.body, metadata: response.metadata };
|
|
7639
7769
|
}
|
|
7640
|
-
async deleteModerationRule() {
|
|
7641
|
-
const
|
|
7770
|
+
async deleteModerationRule(request) {
|
|
7771
|
+
const queryParams = {
|
|
7772
|
+
user_id: request?.user_id,
|
|
7773
|
+
};
|
|
7774
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/moderation/moderation_rule/{id}', undefined, queryParams);
|
|
7642
7775
|
decoders.DeleteModerationRuleResponse?.(response.body);
|
|
7643
7776
|
return { ...response.body, metadata: response.metadata };
|
|
7644
7777
|
}
|
|
@@ -7706,6 +7839,7 @@ class ModerationApi {
|
|
|
7706
7839
|
user_id: request?.user_id,
|
|
7707
7840
|
ban: request?.ban,
|
|
7708
7841
|
block: request?.block,
|
|
7842
|
+
bypass: request?.bypass,
|
|
7709
7843
|
custom: request?.custom,
|
|
7710
7844
|
delete_activity: request?.delete_activity,
|
|
7711
7845
|
delete_comment: request?.delete_comment,
|
|
@@ -7802,7 +7936,7 @@ class ApiClient {
|
|
|
7802
7936
|
const headers = {
|
|
7803
7937
|
Authorization: this.apiConfig.token,
|
|
7804
7938
|
'stream-auth-type': 'jwt',
|
|
7805
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
7939
|
+
'X-Stream-Client': 'stream-node-' + "0.7.53",
|
|
7806
7940
|
'Accept-Encoding': 'gzip',
|
|
7807
7941
|
'x-client-request-id': clientRequestId,
|
|
7808
7942
|
};
|
|
@@ -7902,6 +8036,7 @@ class FeedsApi {
|
|
|
7902
8036
|
create_notification_activity: request?.create_notification_activity,
|
|
7903
8037
|
enrich_own_fields: request?.enrich_own_fields,
|
|
7904
8038
|
expires_at: request?.expires_at,
|
|
8039
|
+
force_moderation: request?.force_moderation,
|
|
7905
8040
|
id: request?.id,
|
|
7906
8041
|
parent_id: request?.parent_id,
|
|
7907
8042
|
poll_id: request?.poll_id,
|
|
@@ -7929,6 +8064,7 @@ class FeedsApi {
|
|
|
7929
8064
|
const body = {
|
|
7930
8065
|
activities: request?.activities,
|
|
7931
8066
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8067
|
+
force_moderation: request?.force_moderation,
|
|
7932
8068
|
};
|
|
7933
8069
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/batch', undefined, undefined, body, 'application/json');
|
|
7934
8070
|
decoders.UpsertActivitiesResponse?.(response.body);
|
|
@@ -7937,6 +8073,7 @@ class FeedsApi {
|
|
|
7937
8073
|
async updateActivitiesPartialBatch(request) {
|
|
7938
8074
|
const body = {
|
|
7939
8075
|
changes: request?.changes,
|
|
8076
|
+
force_moderation: request?.force_moderation,
|
|
7940
8077
|
};
|
|
7941
8078
|
const response = await this.apiClient.sendRequest('PATCH', '/api/v2/feeds/activities/batch/partial', undefined, undefined, body, 'application/json');
|
|
7942
8079
|
decoders.UpdateActivitiesPartialBatchResponse?.(response.body);
|
|
@@ -8126,10 +8263,15 @@ class FeedsApi {
|
|
|
8126
8263
|
return { ...response.body, metadata: response.metadata };
|
|
8127
8264
|
}
|
|
8128
8265
|
async getActivity(request) {
|
|
8266
|
+
const queryParams = {
|
|
8267
|
+
comment_sort: request?.comment_sort,
|
|
8268
|
+
comment_limit: request?.comment_limit,
|
|
8269
|
+
user_id: request?.user_id,
|
|
8270
|
+
};
|
|
8129
8271
|
const pathParams = {
|
|
8130
8272
|
id: request?.id,
|
|
8131
8273
|
};
|
|
8132
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/activities/{id}', pathParams,
|
|
8274
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/activities/{id}', pathParams, queryParams);
|
|
8133
8275
|
decoders.GetActivityResponse?.(response.body);
|
|
8134
8276
|
return { ...response.body, metadata: response.metadata };
|
|
8135
8277
|
}
|
|
@@ -8140,6 +8282,7 @@ class FeedsApi {
|
|
|
8140
8282
|
const body = {
|
|
8141
8283
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8142
8284
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8285
|
+
force_moderation: request?.force_moderation,
|
|
8143
8286
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8144
8287
|
run_activity_processors: request?.run_activity_processors,
|
|
8145
8288
|
user_id: request?.user_id,
|
|
@@ -8159,6 +8302,7 @@ class FeedsApi {
|
|
|
8159
8302
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8160
8303
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8161
8304
|
expires_at: request?.expires_at,
|
|
8305
|
+
force_moderation: request?.force_moderation,
|
|
8162
8306
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8163
8307
|
poll_id: request?.poll_id,
|
|
8164
8308
|
restrict_replies: request?.restrict_replies,
|
|
@@ -8326,6 +8470,7 @@ class FeedsApi {
|
|
|
8326
8470
|
comment: request?.comment,
|
|
8327
8471
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8328
8472
|
create_notification_activity: request?.create_notification_activity,
|
|
8473
|
+
force_moderation: request?.force_moderation,
|
|
8329
8474
|
id: request?.id,
|
|
8330
8475
|
object_id: request?.object_id,
|
|
8331
8476
|
object_type: request?.object_type,
|
|
@@ -8365,6 +8510,49 @@ class FeedsApi {
|
|
|
8365
8510
|
decoders.QueryCommentsResponse?.(response.body);
|
|
8366
8511
|
return { ...response.body, metadata: response.metadata };
|
|
8367
8512
|
}
|
|
8513
|
+
async deleteCommentBookmark(request) {
|
|
8514
|
+
const queryParams = {
|
|
8515
|
+
folder_id: request?.folder_id,
|
|
8516
|
+
user_id: request?.user_id,
|
|
8517
|
+
};
|
|
8518
|
+
const pathParams = {
|
|
8519
|
+
comment_id: request?.comment_id,
|
|
8520
|
+
};
|
|
8521
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/comments/{comment_id}/bookmarks', pathParams, queryParams);
|
|
8522
|
+
decoders.DeleteCommentBookmarkResponse?.(response.body);
|
|
8523
|
+
return { ...response.body, metadata: response.metadata };
|
|
8524
|
+
}
|
|
8525
|
+
async updateCommentBookmark(request) {
|
|
8526
|
+
const pathParams = {
|
|
8527
|
+
comment_id: request?.comment_id,
|
|
8528
|
+
};
|
|
8529
|
+
const body = {
|
|
8530
|
+
folder_id: request?.folder_id,
|
|
8531
|
+
new_folder_id: request?.new_folder_id,
|
|
8532
|
+
user_id: request?.user_id,
|
|
8533
|
+
custom: request?.custom,
|
|
8534
|
+
new_folder: request?.new_folder,
|
|
8535
|
+
user: request?.user,
|
|
8536
|
+
};
|
|
8537
|
+
const response = await this.apiClient.sendRequest('PATCH', '/api/v2/feeds/comments/{comment_id}/bookmarks', pathParams, undefined, body, 'application/json');
|
|
8538
|
+
decoders.UpdateCommentBookmarkResponse?.(response.body);
|
|
8539
|
+
return { ...response.body, metadata: response.metadata };
|
|
8540
|
+
}
|
|
8541
|
+
async addCommentBookmark(request) {
|
|
8542
|
+
const pathParams = {
|
|
8543
|
+
comment_id: request?.comment_id,
|
|
8544
|
+
};
|
|
8545
|
+
const body = {
|
|
8546
|
+
folder_id: request?.folder_id,
|
|
8547
|
+
user_id: request?.user_id,
|
|
8548
|
+
custom: request?.custom,
|
|
8549
|
+
new_folder: request?.new_folder,
|
|
8550
|
+
user: request?.user,
|
|
8551
|
+
};
|
|
8552
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/comments/{comment_id}/bookmarks', pathParams, undefined, body, 'application/json');
|
|
8553
|
+
decoders.AddCommentBookmarkResponse?.(response.body);
|
|
8554
|
+
return { ...response.body, metadata: response.metadata };
|
|
8555
|
+
}
|
|
8368
8556
|
async deleteComment(request) {
|
|
8369
8557
|
const queryParams = {
|
|
8370
8558
|
hard_delete: request?.hard_delete,
|
|
@@ -8378,10 +8566,13 @@ class FeedsApi {
|
|
|
8378
8566
|
return { ...response.body, metadata: response.metadata };
|
|
8379
8567
|
}
|
|
8380
8568
|
async getComment(request) {
|
|
8569
|
+
const queryParams = {
|
|
8570
|
+
user_id: request?.user_id,
|
|
8571
|
+
};
|
|
8381
8572
|
const pathParams = {
|
|
8382
8573
|
id: request?.id,
|
|
8383
8574
|
};
|
|
8384
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/comments/{id}', pathParams,
|
|
8575
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/comments/{id}', pathParams, queryParams);
|
|
8385
8576
|
decoders.GetCommentResponse?.(response.body);
|
|
8386
8577
|
return { ...response.body, metadata: response.metadata };
|
|
8387
8578
|
}
|
|
@@ -8392,6 +8583,7 @@ class FeedsApi {
|
|
|
8392
8583
|
const body = {
|
|
8393
8584
|
comment: request?.comment,
|
|
8394
8585
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8586
|
+
force_moderation: request?.force_moderation,
|
|
8395
8587
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8396
8588
|
skip_enrich_url: request?.skip_enrich_url,
|
|
8397
8589
|
skip_push: request?.skip_push,
|
|
@@ -8411,6 +8603,7 @@ class FeedsApi {
|
|
|
8411
8603
|
};
|
|
8412
8604
|
const body = {
|
|
8413
8605
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8606
|
+
force_moderation: request?.force_moderation,
|
|
8414
8607
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
8415
8608
|
skip_enrich_url: request?.skip_enrich_url,
|
|
8416
8609
|
skip_push: request?.skip_push,
|
|
@@ -8570,12 +8763,14 @@ class FeedsApi {
|
|
|
8570
8763
|
feed_id: request?.feed_id,
|
|
8571
8764
|
};
|
|
8572
8765
|
const body = {
|
|
8766
|
+
clear_location: request?.clear_location,
|
|
8573
8767
|
created_by_id: request?.created_by_id,
|
|
8574
8768
|
description: request?.description,
|
|
8575
8769
|
enrich_own_fields: request?.enrich_own_fields,
|
|
8576
8770
|
name: request?.name,
|
|
8577
8771
|
filter_tags: request?.filter_tags,
|
|
8578
8772
|
custom: request?.custom,
|
|
8773
|
+
location: request?.location,
|
|
8579
8774
|
};
|
|
8580
8775
|
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}', pathParams, undefined, body, 'application/json');
|
|
8581
8776
|
decoders.UpdateFeedResponse?.(response.body);
|