@stream-io/node-sdk 0.7.34 → 0.7.36
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 +294 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +294 -26
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +4 -1
- package/dist/src/gen/common/CommonApi.d.ts +11 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +7 -0
- package/dist/src/gen/models/index.d.ts +295 -7
- package/dist/src/gen/moderation/ModerationApi.d.ts +6 -1
- package/dist/src/gen/video/CallApi.d.ts +9 -2
- package/dist/src/gen/video/VideoApi.d.ts +12 -3
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +21 -0
- package/src/gen/common/CommonApi.ts +79 -0
- package/src/gen/feeds/FeedsApi.ts +27 -1
- package/src/gen/model-decoders/decoders.ts +166 -2
- package/src/gen/models/index.ts +499 -12
- package/src/gen/moderation/ModerationApi.ts +82 -0
- package/src/gen/video/CallApi.ts +24 -2
- package/src/gen/video/VideoApi.ts +89 -38
package/dist/index.es.mjs
CHANGED
|
@@ -276,6 +276,38 @@ decoders.AppResponseFields = (input) => {
|
|
|
276
276
|
};
|
|
277
277
|
return decode(typeMappings, input);
|
|
278
278
|
};
|
|
279
|
+
decoders.AppealAcceptedEvent = (input) => {
|
|
280
|
+
const typeMappings = {
|
|
281
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
282
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
283
|
+
appeal: { type: 'AppealItemResponse', isSingle: true },
|
|
284
|
+
};
|
|
285
|
+
return decode(typeMappings, input);
|
|
286
|
+
};
|
|
287
|
+
decoders.AppealCreatedEvent = (input) => {
|
|
288
|
+
const typeMappings = {
|
|
289
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
290
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
291
|
+
appeal: { type: 'AppealItemResponse', isSingle: true },
|
|
292
|
+
};
|
|
293
|
+
return decode(typeMappings, input);
|
|
294
|
+
};
|
|
295
|
+
decoders.AppealItemResponse = (input) => {
|
|
296
|
+
const typeMappings = {
|
|
297
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
298
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
299
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
300
|
+
};
|
|
301
|
+
return decode(typeMappings, input);
|
|
302
|
+
};
|
|
303
|
+
decoders.AppealRejectedEvent = (input) => {
|
|
304
|
+
const typeMappings = {
|
|
305
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
306
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
307
|
+
appeal: { type: 'AppealItemResponse', isSingle: true },
|
|
308
|
+
};
|
|
309
|
+
return decode(typeMappings, input);
|
|
310
|
+
};
|
|
279
311
|
decoders.AsyncBulkImageModerationEvent = (input) => {
|
|
280
312
|
const typeMappings = {
|
|
281
313
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -910,7 +942,7 @@ decoders.Channel = (input) => {
|
|
|
910
942
|
};
|
|
911
943
|
return decode(typeMappings, input);
|
|
912
944
|
};
|
|
913
|
-
decoders.
|
|
945
|
+
decoders.ChannelBatchCompletedEvent = (input) => {
|
|
914
946
|
const typeMappings = {
|
|
915
947
|
batch_created_at: { type: 'DatetimeType', isSingle: true },
|
|
916
948
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -919,7 +951,7 @@ decoders.ChannelBatchUpdatedCompletedEvent = (input) => {
|
|
|
919
951
|
};
|
|
920
952
|
return decode(typeMappings, input);
|
|
921
953
|
};
|
|
922
|
-
decoders.
|
|
954
|
+
decoders.ChannelBatchStartedEvent = (input) => {
|
|
923
955
|
const typeMappings = {
|
|
924
956
|
batch_created_at: { type: 'DatetimeType', isSingle: true },
|
|
925
957
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1225,6 +1257,7 @@ decoders.CommentResponse = (input) => {
|
|
|
1225
1257
|
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
1226
1258
|
user: { type: 'UserResponse', isSingle: true },
|
|
1227
1259
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1260
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
1228
1261
|
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
1229
1262
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1230
1263
|
};
|
|
@@ -1314,6 +1347,13 @@ decoders.CreateImportResponse = (input) => {
|
|
|
1314
1347
|
};
|
|
1315
1348
|
return decode(typeMappings, input);
|
|
1316
1349
|
};
|
|
1350
|
+
decoders.CreateImportV2TaskResponse = (input) => {
|
|
1351
|
+
const typeMappings = {
|
|
1352
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1353
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1354
|
+
};
|
|
1355
|
+
return decode(typeMappings, input);
|
|
1356
|
+
};
|
|
1317
1357
|
decoders.CreateMembershipLevelResponse = (input) => {
|
|
1318
1358
|
const typeMappings = {
|
|
1319
1359
|
membership_level: { type: 'MembershipLevelResponse', isSingle: true },
|
|
@@ -1702,6 +1742,15 @@ decoders.FullUserResponse = (input) => {
|
|
|
1702
1742
|
};
|
|
1703
1743
|
return decode(typeMappings, input);
|
|
1704
1744
|
};
|
|
1745
|
+
decoders.FutureChannelBanResponse = (input) => {
|
|
1746
|
+
const typeMappings = {
|
|
1747
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1748
|
+
expires: { type: 'DatetimeType', isSingle: true },
|
|
1749
|
+
banned_by: { type: 'UserResponse', isSingle: true },
|
|
1750
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1751
|
+
};
|
|
1752
|
+
return decode(typeMappings, input);
|
|
1753
|
+
};
|
|
1705
1754
|
decoders.GetActiveCallsStatusResponse = (input) => {
|
|
1706
1755
|
const typeMappings = {
|
|
1707
1756
|
end_time: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1715,6 +1764,12 @@ decoders.GetActivityResponse = (input) => {
|
|
|
1715
1764
|
};
|
|
1716
1765
|
return decode(typeMappings, input);
|
|
1717
1766
|
};
|
|
1767
|
+
decoders.GetAppealResponse = (input) => {
|
|
1768
|
+
const typeMappings = {
|
|
1769
|
+
item: { type: 'AppealItemResponse', isSingle: true },
|
|
1770
|
+
};
|
|
1771
|
+
return decode(typeMappings, input);
|
|
1772
|
+
};
|
|
1718
1773
|
decoders.GetApplicationResponse = (input) => {
|
|
1719
1774
|
const typeMappings = {
|
|
1720
1775
|
app: { type: 'AppResponseFields', isSingle: true },
|
|
@@ -1824,6 +1879,13 @@ decoders.GetImportResponse = (input) => {
|
|
|
1824
1879
|
};
|
|
1825
1880
|
return decode(typeMappings, input);
|
|
1826
1881
|
};
|
|
1882
|
+
decoders.GetImportV2TaskResponse = (input) => {
|
|
1883
|
+
const typeMappings = {
|
|
1884
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1885
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1886
|
+
};
|
|
1887
|
+
return decode(typeMappings, input);
|
|
1888
|
+
};
|
|
1827
1889
|
decoders.GetManyMessagesResponse = (input) => {
|
|
1828
1890
|
const typeMappings = {
|
|
1829
1891
|
messages: { type: 'MessageResponse', isSingle: false },
|
|
@@ -1940,6 +2002,31 @@ decoders.ImportTaskHistory = (input) => {
|
|
|
1940
2002
|
};
|
|
1941
2003
|
return decode(typeMappings, input);
|
|
1942
2004
|
};
|
|
2005
|
+
decoders.ImportV2TaskItem = (input) => {
|
|
2006
|
+
const typeMappings = {
|
|
2007
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2008
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2009
|
+
};
|
|
2010
|
+
return decode(typeMappings, input);
|
|
2011
|
+
};
|
|
2012
|
+
decoders.IngressErrorEvent = (input) => {
|
|
2013
|
+
const typeMappings = {
|
|
2014
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2015
|
+
};
|
|
2016
|
+
return decode(typeMappings, input);
|
|
2017
|
+
};
|
|
2018
|
+
decoders.IngressStartedEvent = (input) => {
|
|
2019
|
+
const typeMappings = {
|
|
2020
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2021
|
+
};
|
|
2022
|
+
return decode(typeMappings, input);
|
|
2023
|
+
};
|
|
2024
|
+
decoders.IngressStoppedEvent = (input) => {
|
|
2025
|
+
const typeMappings = {
|
|
2026
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2027
|
+
};
|
|
2028
|
+
return decode(typeMappings, input);
|
|
2029
|
+
};
|
|
1943
2030
|
decoders.KickedUserEvent = (input) => {
|
|
1944
2031
|
const typeMappings = {
|
|
1945
2032
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1990,6 +2077,12 @@ decoders.ListFeedViewsResponse = (input) => {
|
|
|
1990
2077
|
};
|
|
1991
2078
|
return decode(typeMappings, input);
|
|
1992
2079
|
};
|
|
2080
|
+
decoders.ListImportV2TasksResponse = (input) => {
|
|
2081
|
+
const typeMappings = {
|
|
2082
|
+
import_tasks: { type: 'ImportV2TaskItem', isSingle: false },
|
|
2083
|
+
};
|
|
2084
|
+
return decode(typeMappings, input);
|
|
2085
|
+
};
|
|
1993
2086
|
decoders.ListImportsResponse = (input) => {
|
|
1994
2087
|
const typeMappings = {
|
|
1995
2088
|
import_tasks: { type: 'ImportTask', isSingle: false },
|
|
@@ -2416,6 +2509,13 @@ decoders.ParticipantSeriesTimeframe = (input) => {
|
|
|
2416
2509
|
};
|
|
2417
2510
|
return decode(typeMappings, input);
|
|
2418
2511
|
};
|
|
2512
|
+
decoders.ParticipantSessionDetails = (input) => {
|
|
2513
|
+
const typeMappings = {
|
|
2514
|
+
joined_at: { type: 'DatetimeType', isSingle: true },
|
|
2515
|
+
left_at: { type: 'DatetimeType', isSingle: true },
|
|
2516
|
+
};
|
|
2517
|
+
return decode(typeMappings, input);
|
|
2518
|
+
};
|
|
2419
2519
|
decoders.PendingMessageEvent = (input) => {
|
|
2420
2520
|
const typeMappings = {
|
|
2421
2521
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2563,6 +2663,12 @@ decoders.QueryActivityReactionsResponse = (input) => {
|
|
|
2563
2663
|
};
|
|
2564
2664
|
return decode(typeMappings, input);
|
|
2565
2665
|
};
|
|
2666
|
+
decoders.QueryAppealsResponse = (input) => {
|
|
2667
|
+
const typeMappings = {
|
|
2668
|
+
items: { type: 'AppealItemResponse', isSingle: false },
|
|
2669
|
+
};
|
|
2670
|
+
return decode(typeMappings, input);
|
|
2671
|
+
};
|
|
2566
2672
|
decoders.QueryBannedUsersResponse = (input) => {
|
|
2567
2673
|
const typeMappings = {
|
|
2568
2674
|
bans: { type: 'BanResponse', isSingle: false },
|
|
@@ -2587,6 +2693,16 @@ decoders.QueryCallMembersResponse = (input) => {
|
|
|
2587
2693
|
};
|
|
2588
2694
|
return decode(typeMappings, input);
|
|
2589
2695
|
};
|
|
2696
|
+
decoders.QueryCallParticipantSessionsResponse = (input) => {
|
|
2697
|
+
const typeMappings = {
|
|
2698
|
+
participants_sessions: {
|
|
2699
|
+
type: 'ParticipantSessionDetails',
|
|
2700
|
+
isSingle: false,
|
|
2701
|
+
},
|
|
2702
|
+
session: { type: 'CallSessionResponse', isSingle: true },
|
|
2703
|
+
};
|
|
2704
|
+
return decode(typeMappings, input);
|
|
2705
|
+
};
|
|
2590
2706
|
decoders.QueryCallParticipantsResponse = (input) => {
|
|
2591
2707
|
const typeMappings = {
|
|
2592
2708
|
members: { type: 'MemberResponse', isSingle: false },
|
|
@@ -2692,6 +2808,12 @@ decoders.QueryFollowsResponse = (input) => {
|
|
|
2692
2808
|
};
|
|
2693
2809
|
return decode(typeMappings, input);
|
|
2694
2810
|
};
|
|
2811
|
+
decoders.QueryFutureChannelBansResponse = (input) => {
|
|
2812
|
+
const typeMappings = {
|
|
2813
|
+
bans: { type: 'FutureChannelBanResponse', isSingle: false },
|
|
2814
|
+
};
|
|
2815
|
+
return decode(typeMappings, input);
|
|
2816
|
+
};
|
|
2695
2817
|
decoders.QueryMembershipLevelsResponse = (input) => {
|
|
2696
2818
|
const typeMappings = {
|
|
2697
2819
|
membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
|
|
@@ -2929,6 +3051,7 @@ decoders.ReviewQueueItemResponse = (input) => {
|
|
|
2929
3051
|
flags: { type: 'ModerationFlagResponse', isSingle: false },
|
|
2930
3052
|
completed_at: { type: 'DatetimeType', isSingle: true },
|
|
2931
3053
|
reviewed_at: { type: 'DatetimeType', isSingle: true },
|
|
3054
|
+
appeal: { type: 'AppealItemResponse', isSingle: true },
|
|
2932
3055
|
assigned_to: { type: 'UserResponse', isSingle: true },
|
|
2933
3056
|
call: { type: 'CallResponse', isSingle: true },
|
|
2934
3057
|
entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
|
|
@@ -3099,6 +3222,7 @@ decoders.StoriesFeedUpdatedEvent = (input) => {
|
|
|
3099
3222
|
};
|
|
3100
3223
|
decoders.SubmitActionResponse = (input) => {
|
|
3101
3224
|
const typeMappings = {
|
|
3225
|
+
appeal_item: { type: 'AppealItemResponse', isSingle: true },
|
|
3102
3226
|
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
3103
3227
|
};
|
|
3104
3228
|
return decode(typeMappings, input);
|
|
@@ -3158,6 +3282,7 @@ decoders.ThreadedCommentResponse = (input) => {
|
|
|
3158
3282
|
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
3159
3283
|
user: { type: 'UserResponse', isSingle: true },
|
|
3160
3284
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
3285
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
3161
3286
|
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
3162
3287
|
replies: { type: 'ThreadedCommentResponse', isSingle: false },
|
|
3163
3288
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
@@ -3904,6 +4029,41 @@ class CommonApi {
|
|
|
3904
4029
|
decoders.CreateImportResponse?.(response.body);
|
|
3905
4030
|
return { ...response.body, metadata: response.metadata };
|
|
3906
4031
|
}
|
|
4032
|
+
async listImportV2Tasks(request) {
|
|
4033
|
+
const queryParams = {
|
|
4034
|
+
state: request?.state,
|
|
4035
|
+
};
|
|
4036
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/imports/v2', undefined, queryParams);
|
|
4037
|
+
decoders.ListImportV2TasksResponse?.(response.body);
|
|
4038
|
+
return { ...response.body, metadata: response.metadata };
|
|
4039
|
+
}
|
|
4040
|
+
async createImportV2Task(request) {
|
|
4041
|
+
const body = {
|
|
4042
|
+
product: request?.product,
|
|
4043
|
+
settings: request?.settings,
|
|
4044
|
+
user_id: request?.user_id,
|
|
4045
|
+
user: request?.user,
|
|
4046
|
+
};
|
|
4047
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/imports/v2', undefined, undefined, body, 'application/json');
|
|
4048
|
+
decoders.CreateImportV2TaskResponse?.(response.body);
|
|
4049
|
+
return { ...response.body, metadata: response.metadata };
|
|
4050
|
+
}
|
|
4051
|
+
async deleteImportV2Task(request) {
|
|
4052
|
+
const pathParams = {
|
|
4053
|
+
id: request?.id,
|
|
4054
|
+
};
|
|
4055
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/imports/v2/{id}', pathParams, undefined);
|
|
4056
|
+
decoders.DeleteImportV2TaskResponse?.(response.body);
|
|
4057
|
+
return { ...response.body, metadata: response.metadata };
|
|
4058
|
+
}
|
|
4059
|
+
async getImportV2Task(request) {
|
|
4060
|
+
const pathParams = {
|
|
4061
|
+
id: request?.id,
|
|
4062
|
+
};
|
|
4063
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/imports/v2/{id}', pathParams, undefined);
|
|
4064
|
+
decoders.GetImportV2TaskResponse?.(response.body);
|
|
4065
|
+
return { ...response.body, metadata: response.metadata };
|
|
4066
|
+
}
|
|
3907
4067
|
async getImport(request) {
|
|
3908
4068
|
const pathParams = {
|
|
3909
4069
|
id: request?.id,
|
|
@@ -4554,7 +4714,10 @@ class VideoApi {
|
|
|
4554
4714
|
const body = {
|
|
4555
4715
|
recording_storage_name: request?.recording_storage_name,
|
|
4556
4716
|
start_closed_caption: request?.start_closed_caption,
|
|
4717
|
+
start_composite_recording: request?.start_composite_recording,
|
|
4557
4718
|
start_hls: request?.start_hls,
|
|
4719
|
+
start_individual_recording: request?.start_individual_recording,
|
|
4720
|
+
start_raw_recording: request?.start_raw_recording,
|
|
4558
4721
|
start_recording: request?.start_recording,
|
|
4559
4722
|
start_transcription: request?.start_transcription,
|
|
4560
4723
|
transcription_storage_name: request?.transcription_storage_name,
|
|
@@ -4713,6 +4876,22 @@ class VideoApi {
|
|
|
4713
4876
|
decoders.StopRTMPBroadcastsResponse?.(response.body);
|
|
4714
4877
|
return { ...response.body, metadata: response.metadata };
|
|
4715
4878
|
}
|
|
4879
|
+
async queryCallParticipantSessions(request) {
|
|
4880
|
+
const queryParams = {
|
|
4881
|
+
limit: request?.limit,
|
|
4882
|
+
prev: request?.prev,
|
|
4883
|
+
next: request?.next,
|
|
4884
|
+
filter_conditions: request?.filter_conditions,
|
|
4885
|
+
};
|
|
4886
|
+
const pathParams = {
|
|
4887
|
+
type: request?.type,
|
|
4888
|
+
id: request?.id,
|
|
4889
|
+
session: request?.session,
|
|
4890
|
+
};
|
|
4891
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/video/call/{type}/{id}/session/{session}/participant_sessions', pathParams, queryParams);
|
|
4892
|
+
decoders.QueryCallParticipantSessionsResponse?.(response.body);
|
|
4893
|
+
return { ...response.body, metadata: response.metadata };
|
|
4894
|
+
}
|
|
4716
4895
|
async startHLSBroadcasting(request) {
|
|
4717
4896
|
const pathParams = {
|
|
4718
4897
|
type: request?.type,
|
|
@@ -4812,7 +4991,10 @@ class VideoApi {
|
|
|
4812
4991
|
};
|
|
4813
4992
|
const body = {
|
|
4814
4993
|
continue_closed_caption: request?.continue_closed_caption,
|
|
4994
|
+
continue_composite_recording: request?.continue_composite_recording,
|
|
4815
4995
|
continue_hls: request?.continue_hls,
|
|
4996
|
+
continue_individual_recording: request?.continue_individual_recording,
|
|
4997
|
+
continue_raw_recording: request?.continue_raw_recording,
|
|
4816
4998
|
continue_recording: request?.continue_recording,
|
|
4817
4999
|
continue_rtmp_broadcasts: request?.continue_rtmp_broadcasts,
|
|
4818
5000
|
continue_transcription: request?.continue_transcription,
|
|
@@ -4826,7 +5008,8 @@ class VideoApi {
|
|
|
4826
5008
|
type: request?.type,
|
|
4827
5009
|
id: request?.id,
|
|
4828
5010
|
};
|
|
4829
|
-
const
|
|
5011
|
+
const body = {};
|
|
5012
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call/{type}/{id}/stop_recording', pathParams, undefined, body, 'application/json');
|
|
4830
5013
|
decoders.StopRecordingResponse?.(response.body);
|
|
4831
5014
|
return { ...response.body, metadata: response.metadata };
|
|
4832
5015
|
}
|
|
@@ -5044,19 +5227,8 @@ class VideoApi {
|
|
|
5044
5227
|
decoders.GetEdgesResponse?.(response.body);
|
|
5045
5228
|
return { ...response.body, metadata: response.metadata };
|
|
5046
5229
|
}
|
|
5047
|
-
async resolveSipInbound(request) {
|
|
5048
|
-
const body = {
|
|
5049
|
-
sip_caller_number: request?.sip_caller_number,
|
|
5050
|
-
sip_trunk_number: request?.sip_trunk_number,
|
|
5051
|
-
challenge: request?.challenge,
|
|
5052
|
-
sip_headers: request?.sip_headers,
|
|
5053
|
-
};
|
|
5054
|
-
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/resolve', undefined, undefined, body, 'application/json');
|
|
5055
|
-
decoders.ResolveSipInboundResponse?.(response.body);
|
|
5056
|
-
return { ...response.body, metadata: response.metadata };
|
|
5057
|
-
}
|
|
5058
5230
|
async listSIPInboundRoutingRule() {
|
|
5059
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/
|
|
5231
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/inbound_routing_rules', undefined, undefined);
|
|
5060
5232
|
decoders.ListSIPInboundRoutingRuleResponse?.(response.body);
|
|
5061
5233
|
return { ...response.body, metadata: response.metadata };
|
|
5062
5234
|
}
|
|
@@ -5072,7 +5244,7 @@ class VideoApi {
|
|
|
5072
5244
|
pin_protection_configs: request?.pin_protection_configs,
|
|
5073
5245
|
pin_routing_configs: request?.pin_routing_configs,
|
|
5074
5246
|
};
|
|
5075
|
-
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/
|
|
5247
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/inbound_routing_rules', undefined, undefined, body, 'application/json');
|
|
5076
5248
|
decoders.SIPInboundRoutingRuleResponse?.(response.body);
|
|
5077
5249
|
return { ...response.body, metadata: response.metadata };
|
|
5078
5250
|
}
|
|
@@ -5080,7 +5252,7 @@ class VideoApi {
|
|
|
5080
5252
|
const pathParams = {
|
|
5081
5253
|
id: request?.id,
|
|
5082
5254
|
};
|
|
5083
|
-
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/
|
|
5255
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/inbound_routing_rules/{id}', pathParams, undefined);
|
|
5084
5256
|
decoders.DeleteSIPInboundRoutingRuleResponse?.(response.body);
|
|
5085
5257
|
return { ...response.body, metadata: response.metadata };
|
|
5086
5258
|
}
|
|
@@ -5099,12 +5271,12 @@ class VideoApi {
|
|
|
5099
5271
|
pin_protection_configs: request?.pin_protection_configs,
|
|
5100
5272
|
pin_routing_configs: request?.pin_routing_configs,
|
|
5101
5273
|
};
|
|
5102
|
-
const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/
|
|
5274
|
+
const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/inbound_routing_rules/{id}', pathParams, undefined, body, 'application/json');
|
|
5103
5275
|
decoders.UpdateSIPInboundRoutingRuleResponse?.(response.body);
|
|
5104
5276
|
return { ...response.body, metadata: response.metadata };
|
|
5105
5277
|
}
|
|
5106
5278
|
async listSIPTrunks() {
|
|
5107
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/
|
|
5279
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/inbound_trunks', undefined, undefined);
|
|
5108
5280
|
decoders.ListSIPTrunksResponse?.(response.body);
|
|
5109
5281
|
return { ...response.body, metadata: response.metadata };
|
|
5110
5282
|
}
|
|
@@ -5113,7 +5285,7 @@ class VideoApi {
|
|
|
5113
5285
|
name: request?.name,
|
|
5114
5286
|
numbers: request?.numbers,
|
|
5115
5287
|
};
|
|
5116
|
-
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/
|
|
5288
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/inbound_trunks', undefined, undefined, body, 'application/json');
|
|
5117
5289
|
decoders.CreateSIPTrunkResponse?.(response.body);
|
|
5118
5290
|
return { ...response.body, metadata: response.metadata };
|
|
5119
5291
|
}
|
|
@@ -5121,7 +5293,7 @@ class VideoApi {
|
|
|
5121
5293
|
const pathParams = {
|
|
5122
5294
|
id: request?.id,
|
|
5123
5295
|
};
|
|
5124
|
-
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/
|
|
5296
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/inbound_trunks/{id}', pathParams, undefined);
|
|
5125
5297
|
decoders.DeleteSIPTrunkResponse?.(response.body);
|
|
5126
5298
|
return { ...response.body, metadata: response.metadata };
|
|
5127
5299
|
}
|
|
@@ -5133,10 +5305,22 @@ class VideoApi {
|
|
|
5133
5305
|
name: request?.name,
|
|
5134
5306
|
numbers: request?.numbers,
|
|
5135
5307
|
};
|
|
5136
|
-
const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/
|
|
5308
|
+
const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/inbound_trunks/{id}', pathParams, undefined, body, 'application/json');
|
|
5137
5309
|
decoders.UpdateSIPTrunkResponse?.(response.body);
|
|
5138
5310
|
return { ...response.body, metadata: response.metadata };
|
|
5139
5311
|
}
|
|
5312
|
+
async resolveSipInbound(request) {
|
|
5313
|
+
const body = {
|
|
5314
|
+
sip_caller_number: request?.sip_caller_number,
|
|
5315
|
+
sip_trunk_number: request?.sip_trunk_number,
|
|
5316
|
+
challenge: request?.challenge,
|
|
5317
|
+
routing_number: request?.routing_number,
|
|
5318
|
+
sip_headers: request?.sip_headers,
|
|
5319
|
+
};
|
|
5320
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/resolve', undefined, undefined, body, 'application/json');
|
|
5321
|
+
decoders.ResolveSipInboundResponse?.(response.body);
|
|
5322
|
+
return { ...response.body, metadata: response.metadata };
|
|
5323
|
+
}
|
|
5140
5324
|
async queryAggregateCallStats(request) {
|
|
5141
5325
|
const body = {
|
|
5142
5326
|
from: request?.from,
|
|
@@ -5273,6 +5457,13 @@ class CallApi {
|
|
|
5273
5457
|
...request,
|
|
5274
5458
|
});
|
|
5275
5459
|
}
|
|
5460
|
+
queryCallParticipantSessions(request) {
|
|
5461
|
+
return this.videoApi.queryCallParticipantSessions({
|
|
5462
|
+
id: this.id,
|
|
5463
|
+
type: this.type,
|
|
5464
|
+
...request,
|
|
5465
|
+
});
|
|
5466
|
+
}
|
|
5276
5467
|
startHLSBroadcasting() {
|
|
5277
5468
|
return this.videoApi.startHLSBroadcasting({ id: this.id, type: this.type });
|
|
5278
5469
|
}
|
|
@@ -5320,8 +5511,12 @@ class CallApi {
|
|
|
5320
5511
|
stopLive(request) {
|
|
5321
5512
|
return this.videoApi.stopLive({ id: this.id, type: this.type, ...request });
|
|
5322
5513
|
}
|
|
5323
|
-
stopRecording() {
|
|
5324
|
-
return this.videoApi.stopRecording({
|
|
5514
|
+
stopRecording(request) {
|
|
5515
|
+
return this.videoApi.stopRecording({
|
|
5516
|
+
id: this.id,
|
|
5517
|
+
type: this.type,
|
|
5518
|
+
...request,
|
|
5519
|
+
});
|
|
5325
5520
|
}
|
|
5326
5521
|
stopTranscription(request) {
|
|
5327
5522
|
return this.videoApi.stopTranscription({
|
|
@@ -5512,10 +5707,13 @@ class ChatApi {
|
|
|
5512
5707
|
member_limit: request?.member_limit,
|
|
5513
5708
|
message_limit: request?.message_limit,
|
|
5514
5709
|
offset: request?.offset,
|
|
5710
|
+
predefined_filter: request?.predefined_filter,
|
|
5515
5711
|
state: request?.state,
|
|
5516
5712
|
user_id: request?.user_id,
|
|
5517
5713
|
sort: request?.sort,
|
|
5518
5714
|
filter_conditions: request?.filter_conditions,
|
|
5715
|
+
filter_values: request?.filter_values,
|
|
5716
|
+
sort_values: request?.sort_values,
|
|
5519
5717
|
user: request?.user,
|
|
5520
5718
|
};
|
|
5521
5719
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/chat/channels', undefined, undefined, body, 'application/json');
|
|
@@ -6334,6 +6532,14 @@ class ChatApi {
|
|
|
6334
6532
|
decoders.QueryBannedUsersResponse?.(response.body);
|
|
6335
6533
|
return { ...response.body, metadata: response.metadata };
|
|
6336
6534
|
}
|
|
6535
|
+
async queryFutureChannelBans(request) {
|
|
6536
|
+
const queryParams = {
|
|
6537
|
+
payload: request?.payload,
|
|
6538
|
+
};
|
|
6539
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/chat/query_future_channel_bans', undefined, queryParams);
|
|
6540
|
+
decoders.QueryFutureChannelBansResponse?.(response.body);
|
|
6541
|
+
return { ...response.body, metadata: response.metadata };
|
|
6542
|
+
}
|
|
6337
6543
|
async queryReminders(request) {
|
|
6338
6544
|
const body = {
|
|
6339
6545
|
limit: request?.limit,
|
|
@@ -6729,6 +6935,41 @@ class ModerationApi {
|
|
|
6729
6935
|
constructor(apiClient) {
|
|
6730
6936
|
this.apiClient = apiClient;
|
|
6731
6937
|
}
|
|
6938
|
+
async appeal(request) {
|
|
6939
|
+
const body = {
|
|
6940
|
+
appeal_reason: request?.appeal_reason,
|
|
6941
|
+
entity_id: request?.entity_id,
|
|
6942
|
+
entity_type: request?.entity_type,
|
|
6943
|
+
user_id: request?.user_id,
|
|
6944
|
+
attachments: request?.attachments,
|
|
6945
|
+
user: request?.user,
|
|
6946
|
+
};
|
|
6947
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/appeal', undefined, undefined, body, 'application/json');
|
|
6948
|
+
decoders.AppealResponse?.(response.body);
|
|
6949
|
+
return { ...response.body, metadata: response.metadata };
|
|
6950
|
+
}
|
|
6951
|
+
async getAppeal(request) {
|
|
6952
|
+
const pathParams = {
|
|
6953
|
+
id: request?.id,
|
|
6954
|
+
};
|
|
6955
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/moderation/appeal/{id}', pathParams, undefined);
|
|
6956
|
+
decoders.GetAppealResponse?.(response.body);
|
|
6957
|
+
return { ...response.body, metadata: response.metadata };
|
|
6958
|
+
}
|
|
6959
|
+
async queryAppeals(request) {
|
|
6960
|
+
const body = {
|
|
6961
|
+
limit: request?.limit,
|
|
6962
|
+
next: request?.next,
|
|
6963
|
+
prev: request?.prev,
|
|
6964
|
+
user_id: request?.user_id,
|
|
6965
|
+
sort: request?.sort,
|
|
6966
|
+
filter: request?.filter,
|
|
6967
|
+
user: request?.user,
|
|
6968
|
+
};
|
|
6969
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/appeals', undefined, undefined, body, 'application/json');
|
|
6970
|
+
decoders.QueryAppealsResponse?.(response.body);
|
|
6971
|
+
return { ...response.body, metadata: response.metadata };
|
|
6972
|
+
}
|
|
6732
6973
|
async ban(request) {
|
|
6733
6974
|
const body = {
|
|
6734
6975
|
target_user_id: request?.target_user_id,
|
|
@@ -6989,6 +7230,7 @@ class ModerationApi {
|
|
|
6989
7230
|
async submitAction(request) {
|
|
6990
7231
|
const body = {
|
|
6991
7232
|
action_type: request?.action_type,
|
|
7233
|
+
appeal_id: request?.appeal_id,
|
|
6992
7234
|
item_id: request?.item_id,
|
|
6993
7235
|
user_id: request?.user_id,
|
|
6994
7236
|
ban: request?.ban,
|
|
@@ -7000,8 +7242,11 @@ class ModerationApi {
|
|
|
7000
7242
|
delete_reaction: request?.delete_reaction,
|
|
7001
7243
|
delete_user: request?.delete_user,
|
|
7002
7244
|
mark_reviewed: request?.mark_reviewed,
|
|
7245
|
+
reject_appeal: request?.reject_appeal,
|
|
7246
|
+
restore: request?.restore,
|
|
7003
7247
|
shadow_block: request?.shadow_block,
|
|
7004
7248
|
unban: request?.unban,
|
|
7249
|
+
unblock: request?.unblock,
|
|
7005
7250
|
user: request?.user,
|
|
7006
7251
|
};
|
|
7007
7252
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/submit_action', undefined, undefined, body, 'application/json');
|
|
@@ -7084,7 +7329,7 @@ class ApiClient {
|
|
|
7084
7329
|
const headers = {
|
|
7085
7330
|
Authorization: this.apiConfig.token,
|
|
7086
7331
|
'stream-auth-type': 'jwt',
|
|
7087
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
7332
|
+
'X-Stream-Client': 'stream-node-' + "0.7.36",
|
|
7088
7333
|
'Accept-Encoding': 'gzip',
|
|
7089
7334
|
'x-client-request-id': clientRequestId,
|
|
7090
7335
|
};
|
|
@@ -7180,12 +7425,14 @@ class FeedsApi {
|
|
|
7180
7425
|
const body = {
|
|
7181
7426
|
type: request?.type,
|
|
7182
7427
|
feeds: request?.feeds,
|
|
7428
|
+
create_notification_activity: request?.create_notification_activity,
|
|
7183
7429
|
expires_at: request?.expires_at,
|
|
7184
7430
|
id: request?.id,
|
|
7185
7431
|
parent_id: request?.parent_id,
|
|
7186
7432
|
poll_id: request?.poll_id,
|
|
7187
7433
|
restrict_replies: request?.restrict_replies,
|
|
7188
7434
|
skip_enrich_url: request?.skip_enrich_url,
|
|
7435
|
+
skip_push: request?.skip_push,
|
|
7189
7436
|
text: request?.text,
|
|
7190
7437
|
user_id: request?.user_id,
|
|
7191
7438
|
visibility: request?.visibility,
|
|
@@ -7214,6 +7461,7 @@ class FeedsApi {
|
|
|
7214
7461
|
async deleteActivities(request) {
|
|
7215
7462
|
const body = {
|
|
7216
7463
|
ids: request?.ids,
|
|
7464
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
7217
7465
|
hard_delete: request?.hard_delete,
|
|
7218
7466
|
user_id: request?.user_id,
|
|
7219
7467
|
user: request?.user,
|
|
@@ -7356,6 +7604,7 @@ class FeedsApi {
|
|
|
7356
7604
|
}
|
|
7357
7605
|
async deleteActivityReaction(request) {
|
|
7358
7606
|
const queryParams = {
|
|
7607
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
7359
7608
|
user_id: request?.user_id,
|
|
7360
7609
|
};
|
|
7361
7610
|
const pathParams = {
|
|
@@ -7369,6 +7618,7 @@ class FeedsApi {
|
|
|
7369
7618
|
async deleteActivity(request) {
|
|
7370
7619
|
const queryParams = {
|
|
7371
7620
|
hard_delete: request?.hard_delete,
|
|
7621
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
7372
7622
|
};
|
|
7373
7623
|
const pathParams = {
|
|
7374
7624
|
id: request?.id,
|
|
@@ -7390,6 +7640,7 @@ class FeedsApi {
|
|
|
7390
7640
|
id: request?.id,
|
|
7391
7641
|
};
|
|
7392
7642
|
const body = {
|
|
7643
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
7393
7644
|
user_id: request?.user_id,
|
|
7394
7645
|
unset: request?.unset,
|
|
7395
7646
|
set: request?.set,
|
|
@@ -7405,12 +7656,14 @@ class FeedsApi {
|
|
|
7405
7656
|
};
|
|
7406
7657
|
const body = {
|
|
7407
7658
|
expires_at: request?.expires_at,
|
|
7659
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
7408
7660
|
poll_id: request?.poll_id,
|
|
7409
7661
|
restrict_replies: request?.restrict_replies,
|
|
7410
7662
|
skip_enrich_url: request?.skip_enrich_url,
|
|
7411
7663
|
text: request?.text,
|
|
7412
7664
|
user_id: request?.user_id,
|
|
7413
7665
|
visibility: request?.visibility,
|
|
7666
|
+
visibility_tag: request?.visibility_tag,
|
|
7414
7667
|
attachments: request?.attachments,
|
|
7415
7668
|
collection_refs: request?.collection_refs,
|
|
7416
7669
|
feeds: request?.feeds,
|
|
@@ -7523,6 +7776,7 @@ class FeedsApi {
|
|
|
7523
7776
|
depth: request?.depth,
|
|
7524
7777
|
sort: request?.sort,
|
|
7525
7778
|
replies_limit: request?.replies_limit,
|
|
7779
|
+
user_id: request?.user_id,
|
|
7526
7780
|
limit: request?.limit,
|
|
7527
7781
|
prev: request?.prev,
|
|
7528
7782
|
next: request?.next,
|
|
@@ -7574,6 +7828,7 @@ class FeedsApi {
|
|
|
7574
7828
|
async deleteComment(request) {
|
|
7575
7829
|
const queryParams = {
|
|
7576
7830
|
hard_delete: request?.hard_delete,
|
|
7831
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
7577
7832
|
};
|
|
7578
7833
|
const pathParams = {
|
|
7579
7834
|
id: request?.id,
|
|
@@ -7596,10 +7851,12 @@ class FeedsApi {
|
|
|
7596
7851
|
};
|
|
7597
7852
|
const body = {
|
|
7598
7853
|
comment: request?.comment,
|
|
7854
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
7599
7855
|
skip_enrich_url: request?.skip_enrich_url,
|
|
7600
7856
|
skip_push: request?.skip_push,
|
|
7601
7857
|
user_id: request?.user_id,
|
|
7602
7858
|
attachments: request?.attachments,
|
|
7859
|
+
mentioned_user_ids: request?.mentioned_user_ids,
|
|
7603
7860
|
custom: request?.custom,
|
|
7604
7861
|
user: request?.user,
|
|
7605
7862
|
};
|
|
@@ -7641,6 +7898,7 @@ class FeedsApi {
|
|
|
7641
7898
|
}
|
|
7642
7899
|
async deleteCommentReaction(request) {
|
|
7643
7900
|
const queryParams = {
|
|
7901
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
7644
7902
|
user_id: request?.user_id,
|
|
7645
7903
|
};
|
|
7646
7904
|
const pathParams = {
|
|
@@ -7656,6 +7914,7 @@ class FeedsApi {
|
|
|
7656
7914
|
depth: request?.depth,
|
|
7657
7915
|
sort: request?.sort,
|
|
7658
7916
|
replies_limit: request?.replies_limit,
|
|
7917
|
+
user_id: request?.user_id,
|
|
7659
7918
|
limit: request?.limit,
|
|
7660
7919
|
prev: request?.prev,
|
|
7661
7920
|
next: request?.next,
|
|
@@ -8132,11 +8391,14 @@ class FeedsApi {
|
|
|
8132
8391
|
return { ...response.body, metadata: response.metadata };
|
|
8133
8392
|
}
|
|
8134
8393
|
async unfollow(request) {
|
|
8394
|
+
const queryParams = {
|
|
8395
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
8396
|
+
};
|
|
8135
8397
|
const pathParams = {
|
|
8136
8398
|
source: request?.source,
|
|
8137
8399
|
target: request?.target,
|
|
8138
8400
|
};
|
|
8139
|
-
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/follows/{source}/{target}', pathParams,
|
|
8401
|
+
const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/follows/{source}/{target}', pathParams, queryParams);
|
|
8140
8402
|
decoders.UnfollowResponse?.(response.body);
|
|
8141
8403
|
return { ...response.body, metadata: response.metadata };
|
|
8142
8404
|
}
|
|
@@ -8200,6 +8462,7 @@ class FeedsApi {
|
|
|
8200
8462
|
async unfollowBatch(request) {
|
|
8201
8463
|
const body = {
|
|
8202
8464
|
follows: request?.follows,
|
|
8465
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
8203
8466
|
};
|
|
8204
8467
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch', undefined, undefined, body, 'application/json');
|
|
8205
8468
|
decoders.UnfollowBatchResponse?.(response.body);
|
|
@@ -8208,6 +8471,7 @@ class FeedsApi {
|
|
|
8208
8471
|
async getOrCreateUnfollows(request) {
|
|
8209
8472
|
const body = {
|
|
8210
8473
|
follows: request?.follows,
|
|
8474
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
8211
8475
|
};
|
|
8212
8476
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch/upsert', undefined, undefined, body, 'application/json');
|
|
8213
8477
|
decoders.UnfollowBatchResponse?.(response.body);
|
|
@@ -8611,11 +8875,15 @@ const OwnCapability = {
|
|
|
8611
8875
|
START_BROADCAST_CALL: 'start-broadcast-call',
|
|
8612
8876
|
START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
|
|
8613
8877
|
START_FRAME_RECORD_CALL: 'start-frame-record-call',
|
|
8878
|
+
START_INDIVIDUAL_RECORD_CALL: 'start-individual-record-call',
|
|
8879
|
+
START_RAW_RECORD_CALL: 'start-raw-record-call',
|
|
8614
8880
|
START_RECORD_CALL: 'start-record-call',
|
|
8615
8881
|
START_TRANSCRIPTION_CALL: 'start-transcription-call',
|
|
8616
8882
|
STOP_BROADCAST_CALL: 'stop-broadcast-call',
|
|
8617
8883
|
STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
|
|
8618
8884
|
STOP_FRAME_RECORD_CALL: 'stop-frame-record-call',
|
|
8885
|
+
STOP_INDIVIDUAL_RECORD_CALL: 'stop-individual-record-call',
|
|
8886
|
+
STOP_RAW_RECORD_CALL: 'stop-raw-record-call',
|
|
8619
8887
|
STOP_RECORD_CALL: 'stop-record-call',
|
|
8620
8888
|
STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
|
|
8621
8889
|
UPDATE_CALL: 'update-call',
|