@stream-io/feeds-client 0.1.11 → 0.2.1
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 +25 -0
- package/dist/index-react-bindings.browser.cjs +537 -331
- package/dist/index-react-bindings.browser.cjs.map +1 -1
- package/dist/index-react-bindings.browser.js +537 -331
- package/dist/index-react-bindings.browser.js.map +1 -1
- package/dist/index-react-bindings.node.cjs +537 -331
- package/dist/index-react-bindings.node.cjs.map +1 -1
- package/dist/index-react-bindings.node.js +537 -331
- package/dist/index-react-bindings.node.js.map +1 -1
- package/dist/index.browser.cjs +536 -329
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +536 -330
- package/dist/index.browser.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.node.cjs +536 -329
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +536 -330
- package/dist/index.node.js.map +1 -1
- package/dist/src/feed/event-handlers/activity/handle-activity-deleted.d.ts +12 -3
- package/dist/src/feed/event-handlers/activity/handle-activity-pinned.d.ts +3 -0
- package/dist/src/feed/event-handlers/activity/handle-activity-reaction-added.d.ts +10 -6
- package/dist/src/feed/event-handlers/activity/handle-activity-reaction-deleted.d.ts +10 -6
- package/dist/src/feed/event-handlers/activity/handle-activity-unpinned.d.ts +3 -0
- package/dist/src/feed/event-handlers/activity/handle-activity-updated.d.ts +7 -3
- package/dist/src/feed/event-handlers/bookmark/handle-bookmark-added.d.ts +10 -6
- package/dist/src/feed/event-handlers/bookmark/handle-bookmark-deleted.d.ts +10 -6
- package/dist/src/feed/event-handlers/bookmark/handle-bookmark-updated.d.ts +10 -6
- package/dist/src/feed/event-handlers/index.d.ts +1 -0
- package/dist/src/feed/event-handlers/watch/handle-watch-started.d.ts +2 -0
- package/dist/src/feed/event-handlers/watch/handle-watch-stopped.d.ts +2 -0
- package/dist/src/feed/event-handlers/watch/index.d.ts +2 -0
- package/dist/src/feed/feed.d.ts +4 -12
- package/dist/src/feeds-client/event-handlers/index.d.ts +1 -0
- package/dist/src/feeds-client/event-handlers/user/handle-user-updated.d.ts +3 -0
- package/dist/src/{feeds-client.d.ts → feeds-client/feeds-client.d.ts} +16 -16
- package/dist/src/feeds-client/index.d.ts +2 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +27 -23
- package/dist/src/gen/models/index.d.ts +198 -23
- package/dist/src/test-utils/response-generators.d.ts +46 -1
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/update-entity-in-array.d.ts +27 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/index.ts +1 -1
- package/package.json +2 -2
- package/src/feed/event-handlers/activity/activity-reaction-utils.test.ts +108 -96
- package/src/feed/event-handlers/activity/activity-utils.test.ts +84 -122
- package/src/feed/event-handlers/activity/handle-activity-deleted.ts +43 -10
- package/src/feed/event-handlers/activity/handle-activity-pinned.test.ts +60 -0
- package/src/feed/event-handlers/activity/handle-activity-pinned.ts +30 -0
- package/src/feed/event-handlers/activity/handle-activity-reaction-added.test.ts +157 -0
- package/src/feed/event-handlers/activity/handle-activity-reaction-added.ts +82 -40
- package/src/feed/event-handlers/activity/handle-activity-reaction-deleted.test.ts +200 -0
- package/src/feed/event-handlers/activity/handle-activity-reaction-deleted.ts +89 -51
- package/src/feed/event-handlers/activity/handle-activity-unpinned.test.ts +94 -0
- package/src/feed/event-handlers/activity/handle-activity-unpinned.ts +30 -0
- package/src/feed/event-handlers/activity/handle-activity-updated.test.ts +115 -0
- package/src/feed/event-handlers/activity/handle-activity-updated.ts +73 -35
- package/src/feed/event-handlers/bookmark/bookmark-utils.test.ts +121 -109
- package/src/feed/event-handlers/bookmark/handle-bookmark-added.test.ts +178 -0
- package/src/feed/event-handlers/bookmark/handle-bookmark-added.ts +82 -39
- package/src/feed/event-handlers/bookmark/handle-bookmark-deleted.test.ts +188 -0
- package/src/feed/event-handlers/bookmark/handle-bookmark-deleted.ts +86 -48
- package/src/feed/event-handlers/bookmark/handle-bookmark-updated.test.ts +196 -0
- package/src/feed/event-handlers/bookmark/handle-bookmark-updated.ts +83 -44
- package/src/feed/event-handlers/follow/handle-follow-created.test.ts +16 -12
- package/src/feed/event-handlers/follow/handle-follow-created.ts +4 -7
- package/src/feed/event-handlers/follow/handle-follow-deleted.test.ts +19 -15
- package/src/feed/event-handlers/follow/handle-follow-deleted.ts +6 -6
- package/src/feed/event-handlers/follow/handle-follow-updated.ts +7 -10
- package/src/feed/event-handlers/index.ts +2 -1
- package/src/feed/event-handlers/watch/handle-watch-started.ts +5 -0
- package/src/feed/event-handlers/watch/handle-watch-stopped.ts +5 -0
- package/src/feed/event-handlers/watch/index.ts +2 -0
- package/src/feed/feed.ts +15 -33
- package/src/feeds-client/event-handlers/index.ts +1 -0
- package/src/feeds-client/event-handlers/user/handle-user-updated.test.ts +53 -0
- package/src/feeds-client/event-handlers/user/handle-user-updated.ts +28 -0
- package/src/{feeds-client.ts → feeds-client/feeds-client.ts} +48 -39
- package/src/feeds-client/index.ts +2 -0
- package/src/gen/feeds/FeedsApi.ts +164 -138
- package/src/gen/model-decoders/decoders.ts +28 -0
- package/src/gen/models/index.ts +349 -29
- package/src/gen/moderation/ModerationApi.ts +1 -0
- package/src/test-utils/response-generators.ts +270 -11
- package/src/utils/index.ts +1 -0
- package/src/utils/state-update-queue.ts +1 -1
- package/src/utils/update-entity-in-array.ts +51 -0
|
@@ -46,8 +46,8 @@ export interface AcceptFeedMemberInviteResponse {
|
|
|
46
46
|
member: FeedMemberResponse;
|
|
47
47
|
}
|
|
48
48
|
export interface AcceptFollowRequest {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
source: string;
|
|
50
|
+
target: string;
|
|
51
51
|
follower_role?: string;
|
|
52
52
|
}
|
|
53
53
|
export interface AcceptFollowResponse {
|
|
@@ -101,6 +101,7 @@ export interface ActivityAddedEvent {
|
|
|
101
101
|
activity: ActivityResponse;
|
|
102
102
|
custom: Record<string, any>;
|
|
103
103
|
type: string;
|
|
104
|
+
feed_visibility?: string;
|
|
104
105
|
received_at?: Date;
|
|
105
106
|
user?: UserResponseCommonFields;
|
|
106
107
|
}
|
|
@@ -110,9 +111,21 @@ export interface ActivityDeletedEvent {
|
|
|
110
111
|
activity: ActivityResponse;
|
|
111
112
|
custom: Record<string, any>;
|
|
112
113
|
type: string;
|
|
114
|
+
feed_visibility?: string;
|
|
113
115
|
received_at?: Date;
|
|
114
116
|
user?: UserResponseCommonFields;
|
|
115
117
|
}
|
|
118
|
+
export interface ActivityFeedbackRequest {
|
|
119
|
+
hide?: boolean;
|
|
120
|
+
mute_user?: boolean;
|
|
121
|
+
reason?: string;
|
|
122
|
+
report?: boolean;
|
|
123
|
+
show_less?: boolean;
|
|
124
|
+
}
|
|
125
|
+
export interface ActivityFeedbackResponse {
|
|
126
|
+
activity_id: string;
|
|
127
|
+
duration: string;
|
|
128
|
+
}
|
|
116
129
|
export interface ActivityLocation {
|
|
117
130
|
lat: number;
|
|
118
131
|
lng: number;
|
|
@@ -122,10 +135,12 @@ export interface ActivityMarkEvent {
|
|
|
122
135
|
fid: string;
|
|
123
136
|
custom: Record<string, any>;
|
|
124
137
|
type: string;
|
|
138
|
+
feed_visibility?: string;
|
|
125
139
|
mark_all_read?: boolean;
|
|
126
140
|
mark_all_seen?: boolean;
|
|
127
141
|
received_at?: Date;
|
|
128
142
|
mark_read?: string[];
|
|
143
|
+
mark_seen?: string[];
|
|
129
144
|
mark_watched?: string[];
|
|
130
145
|
user?: UserResponseCommonFields;
|
|
131
146
|
}
|
|
@@ -142,9 +157,15 @@ export interface ActivityPinnedEvent {
|
|
|
142
157
|
custom: Record<string, any>;
|
|
143
158
|
pinned_activity: PinActivityResponse;
|
|
144
159
|
type: string;
|
|
160
|
+
feed_visibility?: string;
|
|
145
161
|
received_at?: Date;
|
|
146
162
|
user?: UserResponseCommonFields;
|
|
147
163
|
}
|
|
164
|
+
export interface ActivityProcessorConfig {
|
|
165
|
+
type: string;
|
|
166
|
+
openai_key?: string;
|
|
167
|
+
config?: Record<string, any>;
|
|
168
|
+
}
|
|
148
169
|
export interface ActivityReactionAddedEvent {
|
|
149
170
|
created_at: Date;
|
|
150
171
|
fid: string;
|
|
@@ -152,6 +173,7 @@ export interface ActivityReactionAddedEvent {
|
|
|
152
173
|
custom: Record<string, any>;
|
|
153
174
|
reaction: FeedsReactionResponse;
|
|
154
175
|
type: string;
|
|
176
|
+
feed_visibility?: string;
|
|
155
177
|
received_at?: Date;
|
|
156
178
|
user?: UserResponseCommonFields;
|
|
157
179
|
}
|
|
@@ -162,6 +184,7 @@ export interface ActivityReactionDeletedEvent {
|
|
|
162
184
|
custom: Record<string, any>;
|
|
163
185
|
reaction: FeedsReactionResponse;
|
|
164
186
|
type: string;
|
|
187
|
+
feed_visibility?: string;
|
|
165
188
|
received_at?: Date;
|
|
166
189
|
user?: UserResponseCommonFields;
|
|
167
190
|
}
|
|
@@ -172,6 +195,7 @@ export interface ActivityReactionUpdatedEvent {
|
|
|
172
195
|
custom: Record<string, any>;
|
|
173
196
|
reaction: FeedsReactionResponse;
|
|
174
197
|
type: string;
|
|
198
|
+
feed_visibility?: string;
|
|
175
199
|
received_at?: Date;
|
|
176
200
|
user?: UserResponseCommonFields;
|
|
177
201
|
}
|
|
@@ -181,12 +205,13 @@ export interface ActivityRemovedFromFeedEvent {
|
|
|
181
205
|
activity: ActivityResponse;
|
|
182
206
|
custom: Record<string, any>;
|
|
183
207
|
type: string;
|
|
208
|
+
feed_visibility?: string;
|
|
184
209
|
received_at?: Date;
|
|
185
210
|
user?: UserResponseCommonFields;
|
|
186
211
|
}
|
|
187
212
|
export interface ActivityRequest {
|
|
188
213
|
type: string;
|
|
189
|
-
|
|
214
|
+
feeds: string[];
|
|
190
215
|
expires_at?: string;
|
|
191
216
|
id?: string;
|
|
192
217
|
parent_id?: string;
|
|
@@ -230,21 +255,30 @@ export interface ActivityResponse {
|
|
|
230
255
|
deleted_at?: Date;
|
|
231
256
|
edited_at?: Date;
|
|
232
257
|
expires_at?: Date;
|
|
258
|
+
hidden?: boolean;
|
|
233
259
|
text?: string;
|
|
234
260
|
visibility_tag?: string;
|
|
235
261
|
current_feed?: FeedResponse;
|
|
236
262
|
location?: ActivityLocation;
|
|
237
263
|
moderation?: ModerationV2Response;
|
|
238
|
-
|
|
264
|
+
notification_context?: Record<string, any>;
|
|
239
265
|
parent?: ActivityResponse;
|
|
240
266
|
poll?: PollResponseData;
|
|
241
267
|
}
|
|
268
|
+
export interface ActivitySelectorConfig {
|
|
269
|
+
cutoff_time: Date;
|
|
270
|
+
min_popularity?: number;
|
|
271
|
+
type?: string;
|
|
272
|
+
sort?: SortParam[];
|
|
273
|
+
filter?: Record<string, any>;
|
|
274
|
+
}
|
|
242
275
|
export interface ActivityUnpinnedEvent {
|
|
243
276
|
created_at: Date;
|
|
244
277
|
fid: string;
|
|
245
278
|
custom: Record<string, any>;
|
|
246
279
|
pinned_activity: PinActivityResponse;
|
|
247
280
|
type: string;
|
|
281
|
+
feed_visibility?: string;
|
|
248
282
|
received_at?: Date;
|
|
249
283
|
user?: UserResponseCommonFields;
|
|
250
284
|
}
|
|
@@ -254,12 +288,13 @@ export interface ActivityUpdatedEvent {
|
|
|
254
288
|
activity: ActivityResponse;
|
|
255
289
|
custom: Record<string, any>;
|
|
256
290
|
type: string;
|
|
291
|
+
feed_visibility?: string;
|
|
257
292
|
received_at?: Date;
|
|
258
293
|
user?: UserResponseCommonFields;
|
|
259
294
|
}
|
|
260
295
|
export interface AddActivityRequest {
|
|
261
296
|
type: string;
|
|
262
|
-
|
|
297
|
+
feeds: string[];
|
|
263
298
|
expires_at?: string;
|
|
264
299
|
id?: string;
|
|
265
300
|
parent_id?: string;
|
|
@@ -342,6 +377,10 @@ export interface AggregatedActivityResponse {
|
|
|
342
377
|
user_count: number;
|
|
343
378
|
activities: ActivityResponse[];
|
|
344
379
|
}
|
|
380
|
+
export interface AggregationConfig {
|
|
381
|
+
format?: string;
|
|
382
|
+
group_size?: number;
|
|
383
|
+
}
|
|
345
384
|
export interface AppEventResponse {
|
|
346
385
|
auto_translation_enabled: boolean;
|
|
347
386
|
name: string;
|
|
@@ -746,6 +785,7 @@ export interface CallSettings {
|
|
|
746
785
|
broadcasting?: BroadcastSettings;
|
|
747
786
|
frame_recording?: FrameRecordSettings;
|
|
748
787
|
geofencing?: GeofenceSettings;
|
|
788
|
+
ingress?: IngressSettings;
|
|
749
789
|
limits?: LimitsSettings;
|
|
750
790
|
recording?: RecordSettings;
|
|
751
791
|
ring?: RingSettings;
|
|
@@ -769,6 +809,7 @@ export interface CallSettingsResponse {
|
|
|
769
809
|
thumbnails: ThumbnailsSettingsResponse;
|
|
770
810
|
transcription: TranscriptionSettingsResponse;
|
|
771
811
|
video: VideoSettingsResponse;
|
|
812
|
+
ingress?: IngressSettingsResponse;
|
|
772
813
|
}
|
|
773
814
|
export interface CallType {
|
|
774
815
|
app_pk: number;
|
|
@@ -799,6 +840,8 @@ export interface Channel {
|
|
|
799
840
|
last_campaigns?: string;
|
|
800
841
|
last_message_at?: Date;
|
|
801
842
|
member_count?: number;
|
|
843
|
+
message_count?: number;
|
|
844
|
+
message_count_updated_at?: Date;
|
|
802
845
|
team?: string;
|
|
803
846
|
active_live_locations?: SharedLocation[];
|
|
804
847
|
invites?: ChannelMember[];
|
|
@@ -812,6 +855,7 @@ export interface ChannelConfig {
|
|
|
812
855
|
automod: 'disabled' | 'simple' | 'AI';
|
|
813
856
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
814
857
|
connect_events: boolean;
|
|
858
|
+
count_messages: boolean;
|
|
815
859
|
created_at: Date;
|
|
816
860
|
custom_events: boolean;
|
|
817
861
|
mark_messages_pending: boolean;
|
|
@@ -846,6 +890,7 @@ export interface ChannelConfigWithInfo {
|
|
|
846
890
|
automod: 'disabled' | 'simple' | 'AI';
|
|
847
891
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
848
892
|
connect_events: boolean;
|
|
893
|
+
count_messages: boolean;
|
|
849
894
|
created_at: Date;
|
|
850
895
|
custom_events: boolean;
|
|
851
896
|
mark_messages_pending: boolean;
|
|
@@ -896,6 +941,7 @@ export interface ChannelMember {
|
|
|
896
941
|
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
897
942
|
status?: string;
|
|
898
943
|
user_id?: string;
|
|
944
|
+
deleted_messages?: string[];
|
|
899
945
|
user?: UserResponse;
|
|
900
946
|
}
|
|
901
947
|
export interface ChannelMute {
|
|
@@ -962,6 +1008,7 @@ export interface ChannelResponse {
|
|
|
962
1008
|
hide_messages_before?: Date;
|
|
963
1009
|
last_message_at?: Date;
|
|
964
1010
|
member_count?: number;
|
|
1011
|
+
message_count?: number;
|
|
965
1012
|
mute_expires_at?: Date;
|
|
966
1013
|
muted?: boolean;
|
|
967
1014
|
team?: string;
|
|
@@ -986,6 +1033,7 @@ export interface CommentAddedEvent {
|
|
|
986
1033
|
comment: CommentResponse;
|
|
987
1034
|
custom: Record<string, any>;
|
|
988
1035
|
type: string;
|
|
1036
|
+
feed_visibility?: string;
|
|
989
1037
|
received_at?: Date;
|
|
990
1038
|
user?: UserResponseCommonFields;
|
|
991
1039
|
}
|
|
@@ -995,6 +1043,7 @@ export interface CommentDeletedEvent {
|
|
|
995
1043
|
comment: CommentResponse;
|
|
996
1044
|
custom: Record<string, any>;
|
|
997
1045
|
type: string;
|
|
1046
|
+
feed_visibility?: string;
|
|
998
1047
|
received_at?: Date;
|
|
999
1048
|
user?: UserResponseCommonFields;
|
|
1000
1049
|
}
|
|
@@ -1005,6 +1054,7 @@ export interface CommentReactionAddedEvent {
|
|
|
1005
1054
|
custom: Record<string, any>;
|
|
1006
1055
|
reaction: FeedsReactionResponse;
|
|
1007
1056
|
type: string;
|
|
1057
|
+
feed_visibility?: string;
|
|
1008
1058
|
received_at?: Date;
|
|
1009
1059
|
user?: UserResponseCommonFields;
|
|
1010
1060
|
}
|
|
@@ -1015,6 +1065,7 @@ export interface CommentReactionDeletedEvent {
|
|
|
1015
1065
|
custom: Record<string, any>;
|
|
1016
1066
|
reaction: FeedsReactionResponse;
|
|
1017
1067
|
type: string;
|
|
1068
|
+
feed_visibility?: string;
|
|
1018
1069
|
received_at?: Date;
|
|
1019
1070
|
}
|
|
1020
1071
|
export interface CommentReactionUpdatedEvent {
|
|
@@ -1024,6 +1075,7 @@ export interface CommentReactionUpdatedEvent {
|
|
|
1024
1075
|
custom: Record<string, any>;
|
|
1025
1076
|
reaction: FeedsReactionResponse;
|
|
1026
1077
|
type: string;
|
|
1078
|
+
feed_visibility?: string;
|
|
1027
1079
|
received_at?: Date;
|
|
1028
1080
|
user?: UserResponseCommonFields;
|
|
1029
1081
|
}
|
|
@@ -1059,6 +1111,7 @@ export interface CommentUpdatedEvent {
|
|
|
1059
1111
|
comment: CommentResponse;
|
|
1060
1112
|
custom: Record<string, any>;
|
|
1061
1113
|
type: string;
|
|
1114
|
+
feed_visibility?: string;
|
|
1062
1115
|
received_at?: Date;
|
|
1063
1116
|
user?: UserResponseCommonFields;
|
|
1064
1117
|
}
|
|
@@ -1071,6 +1124,7 @@ export interface ConfigOverrides {
|
|
|
1071
1124
|
grants: Record<string, string[]>;
|
|
1072
1125
|
blocklist?: string;
|
|
1073
1126
|
blocklist_behavior?: 'flag' | 'block';
|
|
1127
|
+
count_messages?: boolean;
|
|
1074
1128
|
max_message_length?: number;
|
|
1075
1129
|
quotes?: boolean;
|
|
1076
1130
|
reactions?: boolean;
|
|
@@ -1094,6 +1148,7 @@ export interface ConfigResponse {
|
|
|
1094
1148
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
1095
1149
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
1096
1150
|
block_list_config?: BlockListConfig;
|
|
1151
|
+
llm_config?: LLMConfig;
|
|
1097
1152
|
rule_builder_config?: RuleBuilderConfig;
|
|
1098
1153
|
velocity_filter_config?: VelocityFilterConfig;
|
|
1099
1154
|
video_call_rule_config?: VideoCallRuleConfig;
|
|
@@ -1166,13 +1221,21 @@ export interface CustomActionRequest {
|
|
|
1166
1221
|
export interface Data {
|
|
1167
1222
|
id: string;
|
|
1168
1223
|
}
|
|
1224
|
+
export interface DecayFunctionConfig {
|
|
1225
|
+
base?: string;
|
|
1226
|
+
decay?: string;
|
|
1227
|
+
direction?: string;
|
|
1228
|
+
offset?: string;
|
|
1229
|
+
origin?: string;
|
|
1230
|
+
scale?: string;
|
|
1231
|
+
}
|
|
1169
1232
|
export interface DeleteActivitiesRequest {
|
|
1170
|
-
|
|
1233
|
+
ids: string[];
|
|
1171
1234
|
hard_delete?: boolean;
|
|
1172
1235
|
}
|
|
1173
1236
|
export interface DeleteActivitiesResponse {
|
|
1174
1237
|
duration: string;
|
|
1175
|
-
|
|
1238
|
+
deleted_ids: string[];
|
|
1176
1239
|
}
|
|
1177
1240
|
export interface DeleteActivityReactionResponse {
|
|
1178
1241
|
duration: string;
|
|
@@ -1395,6 +1458,7 @@ export interface FeedCreatedEvent {
|
|
|
1395
1458
|
feed: FeedResponse;
|
|
1396
1459
|
user: UserResponseCommonFields;
|
|
1397
1460
|
type: string;
|
|
1461
|
+
feed_visibility?: string;
|
|
1398
1462
|
received_at?: Date;
|
|
1399
1463
|
}
|
|
1400
1464
|
export interface FeedDeletedEvent {
|
|
@@ -1402,20 +1466,25 @@ export interface FeedDeletedEvent {
|
|
|
1402
1466
|
fid: string;
|
|
1403
1467
|
custom: Record<string, any>;
|
|
1404
1468
|
type: string;
|
|
1469
|
+
feed_visibility?: string;
|
|
1405
1470
|
received_at?: Date;
|
|
1406
1471
|
user?: UserResponseCommonFields;
|
|
1407
1472
|
}
|
|
1408
1473
|
export interface FeedGroup {
|
|
1474
|
+
aggregation_version: number;
|
|
1409
1475
|
app_pk: number;
|
|
1410
1476
|
created_at: Date;
|
|
1411
|
-
default_view_id: string;
|
|
1412
1477
|
default_visibility: string;
|
|
1413
1478
|
id: string;
|
|
1414
1479
|
updated_at: Date;
|
|
1480
|
+
activity_processors: ActivityProcessorConfig[];
|
|
1481
|
+
activity_selectors: ActivitySelectorConfig[];
|
|
1415
1482
|
custom: Record<string, any>;
|
|
1416
1483
|
deleted_at?: Date;
|
|
1417
1484
|
last_feed_get_at?: Date;
|
|
1485
|
+
aggregation?: AggregationConfig;
|
|
1418
1486
|
notification?: NotificationConfig;
|
|
1487
|
+
ranking?: RankingConfig;
|
|
1419
1488
|
stories?: StoriesConfig;
|
|
1420
1489
|
}
|
|
1421
1490
|
export interface FeedGroupChangedEvent {
|
|
@@ -1423,6 +1492,7 @@ export interface FeedGroupChangedEvent {
|
|
|
1423
1492
|
fid: string;
|
|
1424
1493
|
custom: Record<string, any>;
|
|
1425
1494
|
type: string;
|
|
1495
|
+
feed_visibility?: string;
|
|
1426
1496
|
received_at?: Date;
|
|
1427
1497
|
feed_group?: FeedGroup;
|
|
1428
1498
|
user?: UserResponseCommonFields;
|
|
@@ -1433,6 +1503,7 @@ export interface FeedGroupDeletedEvent {
|
|
|
1433
1503
|
group_id: string;
|
|
1434
1504
|
custom: Record<string, any>;
|
|
1435
1505
|
type: string;
|
|
1506
|
+
feed_visibility?: string;
|
|
1436
1507
|
received_at?: Date;
|
|
1437
1508
|
}
|
|
1438
1509
|
export interface FeedInput {
|
|
@@ -1449,6 +1520,7 @@ export interface FeedMemberAddedEvent {
|
|
|
1449
1520
|
custom: Record<string, any>;
|
|
1450
1521
|
member: FeedMemberResponse;
|
|
1451
1522
|
type: string;
|
|
1523
|
+
feed_visibility?: string;
|
|
1452
1524
|
received_at?: Date;
|
|
1453
1525
|
user?: UserResponseCommonFields;
|
|
1454
1526
|
}
|
|
@@ -1458,12 +1530,14 @@ export interface FeedMemberRemovedEvent {
|
|
|
1458
1530
|
member_id: string;
|
|
1459
1531
|
custom: Record<string, any>;
|
|
1460
1532
|
type: string;
|
|
1533
|
+
feed_visibility?: string;
|
|
1461
1534
|
received_at?: Date;
|
|
1462
1535
|
user?: UserResponseCommonFields;
|
|
1463
1536
|
}
|
|
1464
1537
|
export interface FeedMemberRequest {
|
|
1465
1538
|
user_id: string;
|
|
1466
1539
|
invite?: boolean;
|
|
1540
|
+
membership_level?: string;
|
|
1467
1541
|
role?: string;
|
|
1468
1542
|
custom?: Record<string, any>;
|
|
1469
1543
|
}
|
|
@@ -1476,6 +1550,7 @@ export interface FeedMemberResponse {
|
|
|
1476
1550
|
invite_accepted_at?: Date;
|
|
1477
1551
|
invite_rejected_at?: Date;
|
|
1478
1552
|
custom?: Record<string, any>;
|
|
1553
|
+
membership_level?: MembershipLevelResponse;
|
|
1479
1554
|
}
|
|
1480
1555
|
export interface FeedMemberUpdatedEvent {
|
|
1481
1556
|
created_at: Date;
|
|
@@ -1483,6 +1558,7 @@ export interface FeedMemberUpdatedEvent {
|
|
|
1483
1558
|
custom: Record<string, any>;
|
|
1484
1559
|
member: FeedMemberResponse;
|
|
1485
1560
|
type: string;
|
|
1561
|
+
feed_visibility?: string;
|
|
1486
1562
|
received_at?: Date;
|
|
1487
1563
|
user?: UserResponseCommonFields;
|
|
1488
1564
|
}
|
|
@@ -1533,7 +1609,7 @@ export interface FeedRequest {
|
|
|
1533
1609
|
export interface FeedResponse {
|
|
1534
1610
|
created_at: Date;
|
|
1535
1611
|
description: string;
|
|
1536
|
-
|
|
1612
|
+
feed: string;
|
|
1537
1613
|
follower_count: number;
|
|
1538
1614
|
following_count: number;
|
|
1539
1615
|
group_id: string;
|
|
@@ -1546,6 +1622,7 @@ export interface FeedResponse {
|
|
|
1546
1622
|
deleted_at?: Date;
|
|
1547
1623
|
visibility?: string;
|
|
1548
1624
|
filter_tags?: string[];
|
|
1625
|
+
own_follows?: FollowResponse[];
|
|
1549
1626
|
custom?: Record<string, any>;
|
|
1550
1627
|
}
|
|
1551
1628
|
export interface FeedUpdatedEvent {
|
|
@@ -1554,6 +1631,7 @@ export interface FeedUpdatedEvent {
|
|
|
1554
1631
|
custom: Record<string, any>;
|
|
1555
1632
|
feed: FeedResponse;
|
|
1556
1633
|
type: string;
|
|
1634
|
+
feed_visibility?: string;
|
|
1557
1635
|
received_at?: Date;
|
|
1558
1636
|
user?: UserResponseCommonFields;
|
|
1559
1637
|
}
|
|
@@ -1636,6 +1714,7 @@ export interface FollowCreatedEvent {
|
|
|
1636
1714
|
custom: Record<string, any>;
|
|
1637
1715
|
follow: FollowResponse;
|
|
1638
1716
|
type: string;
|
|
1717
|
+
feed_visibility?: string;
|
|
1639
1718
|
received_at?: Date;
|
|
1640
1719
|
}
|
|
1641
1720
|
export interface FollowDeletedEvent {
|
|
@@ -1644,6 +1723,7 @@ export interface FollowDeletedEvent {
|
|
|
1644
1723
|
custom: Record<string, any>;
|
|
1645
1724
|
follow: FollowResponse;
|
|
1646
1725
|
type: string;
|
|
1726
|
+
feed_visibility?: string;
|
|
1647
1727
|
received_at?: Date;
|
|
1648
1728
|
}
|
|
1649
1729
|
export interface FollowRequest {
|
|
@@ -1671,6 +1751,7 @@ export interface FollowUpdatedEvent {
|
|
|
1671
1751
|
custom: Record<string, any>;
|
|
1672
1752
|
follow: FollowResponse;
|
|
1673
1753
|
type: string;
|
|
1754
|
+
feed_visibility?: string;
|
|
1674
1755
|
received_at?: Date;
|
|
1675
1756
|
}
|
|
1676
1757
|
export interface FrameRecordSettings {
|
|
@@ -1900,6 +1981,58 @@ export interface Images {
|
|
|
1900
1981
|
fixed_width_still: ImageData;
|
|
1901
1982
|
original: ImageData;
|
|
1902
1983
|
}
|
|
1984
|
+
export interface IngressAudioEncodingOptions {
|
|
1985
|
+
bitrate: number;
|
|
1986
|
+
channels: '1' | '2';
|
|
1987
|
+
enable_dtx: boolean;
|
|
1988
|
+
}
|
|
1989
|
+
export interface IngressAudioEncodingResponse {
|
|
1990
|
+
bitrate: number;
|
|
1991
|
+
channels: number;
|
|
1992
|
+
enable_dtx: boolean;
|
|
1993
|
+
}
|
|
1994
|
+
export interface IngressSettings {
|
|
1995
|
+
enabled: boolean;
|
|
1996
|
+
audio_encoding_options?: IngressAudioEncodingOptions;
|
|
1997
|
+
video_encoding_options?: Record<string, IngressVideoEncodingOptions>;
|
|
1998
|
+
}
|
|
1999
|
+
export interface IngressSettingsResponse {
|
|
2000
|
+
enabled: boolean;
|
|
2001
|
+
audio_encoding_options?: IngressAudioEncodingResponse;
|
|
2002
|
+
video_encoding_options?: Record<string, IngressVideoEncodingResponse>;
|
|
2003
|
+
}
|
|
2004
|
+
export interface IngressVideoEncodingOptions {
|
|
2005
|
+
layers: IngressVideoLayer[];
|
|
2006
|
+
}
|
|
2007
|
+
export interface IngressVideoEncodingResponse {
|
|
2008
|
+
layers: IngressVideoLayerResponse[];
|
|
2009
|
+
}
|
|
2010
|
+
export interface IngressVideoLayer {
|
|
2011
|
+
bitrate: number;
|
|
2012
|
+
codec: 'h264' | 'vp8';
|
|
2013
|
+
frame_rate: number;
|
|
2014
|
+
max_dimension: number;
|
|
2015
|
+
min_dimension: number;
|
|
2016
|
+
}
|
|
2017
|
+
export interface IngressVideoLayerResponse {
|
|
2018
|
+
bitrate: number;
|
|
2019
|
+
codec: string;
|
|
2020
|
+
frame_rate_limit: number;
|
|
2021
|
+
max_dimension: number;
|
|
2022
|
+
min_dimension: number;
|
|
2023
|
+
}
|
|
2024
|
+
export interface LLMConfig {
|
|
2025
|
+
enabled: boolean;
|
|
2026
|
+
rules: LLMRule[];
|
|
2027
|
+
async?: boolean;
|
|
2028
|
+
severity_descriptions?: Record<string, string>;
|
|
2029
|
+
}
|
|
2030
|
+
export interface LLMRule {
|
|
2031
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'keep';
|
|
2032
|
+
description: string;
|
|
2033
|
+
label: string;
|
|
2034
|
+
severity_rules: BodyguardSeverityRule[];
|
|
2035
|
+
}
|
|
1903
2036
|
export interface LabelThresholds {
|
|
1904
2037
|
block?: number;
|
|
1905
2038
|
flag?: number;
|
|
@@ -1935,6 +2068,7 @@ export interface MarkActivityRequest {
|
|
|
1935
2068
|
mark_all_read?: boolean;
|
|
1936
2069
|
mark_all_seen?: boolean;
|
|
1937
2070
|
mark_read?: string[];
|
|
2071
|
+
mark_seen?: string[];
|
|
1938
2072
|
mark_watched?: string[];
|
|
1939
2073
|
}
|
|
1940
2074
|
export interface MarkReviewedRequest {
|
|
@@ -1944,6 +2078,16 @@ export interface MarkReviewedRequest {
|
|
|
1944
2078
|
export interface MemberLookup {
|
|
1945
2079
|
limit: number;
|
|
1946
2080
|
}
|
|
2081
|
+
export interface MembershipLevelResponse {
|
|
2082
|
+
created_at: Date;
|
|
2083
|
+
id: string;
|
|
2084
|
+
name: string;
|
|
2085
|
+
priority: number;
|
|
2086
|
+
updated_at: Date;
|
|
2087
|
+
tags: string[];
|
|
2088
|
+
description?: string;
|
|
2089
|
+
custom?: Record<string, any>;
|
|
2090
|
+
}
|
|
1947
2091
|
export interface Message {
|
|
1948
2092
|
cid: string;
|
|
1949
2093
|
created_at: Date;
|
|
@@ -1969,6 +2113,7 @@ export interface Message {
|
|
|
1969
2113
|
before_message_send_failed?: boolean;
|
|
1970
2114
|
command?: string;
|
|
1971
2115
|
deleted_at?: Date;
|
|
2116
|
+
deleted_for_me?: boolean;
|
|
1972
2117
|
message_text_updated_at?: Date;
|
|
1973
2118
|
mml?: string;
|
|
1974
2119
|
parent_id?: string;
|
|
@@ -2024,6 +2169,7 @@ export interface MessageResponse {
|
|
|
2024
2169
|
user: UserResponse;
|
|
2025
2170
|
command?: string;
|
|
2026
2171
|
deleted_at?: Date;
|
|
2172
|
+
deleted_for_me?: boolean;
|
|
2027
2173
|
message_text_updated_at?: Date;
|
|
2028
2174
|
mml?: string;
|
|
2029
2175
|
parent_id?: string;
|
|
@@ -2059,6 +2205,23 @@ export interface ModerationCustomActionEvent {
|
|
|
2059
2205
|
message?: Message;
|
|
2060
2206
|
user?: User;
|
|
2061
2207
|
}
|
|
2208
|
+
export interface ModerationFlagResponse {
|
|
2209
|
+
created_at: string;
|
|
2210
|
+
entity_id: string;
|
|
2211
|
+
entity_type: string;
|
|
2212
|
+
type: string;
|
|
2213
|
+
updated_at: string;
|
|
2214
|
+
user_id: string;
|
|
2215
|
+
result: Array<Record<string, any>>;
|
|
2216
|
+
entity_creator_id?: string;
|
|
2217
|
+
reason?: string;
|
|
2218
|
+
review_queue_item_id?: string;
|
|
2219
|
+
labels?: string[];
|
|
2220
|
+
custom?: Record<string, any>;
|
|
2221
|
+
moderation_payload?: ModerationPayload;
|
|
2222
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
2223
|
+
user?: UserResponse;
|
|
2224
|
+
}
|
|
2062
2225
|
export interface ModerationFlaggedEvent {
|
|
2063
2226
|
created_at: Date;
|
|
2064
2227
|
type: string;
|
|
@@ -2110,6 +2273,7 @@ export interface NotificationFeedUpdatedEvent {
|
|
|
2110
2273
|
fid: string;
|
|
2111
2274
|
custom: Record<string, any>;
|
|
2112
2275
|
type: string;
|
|
2276
|
+
feed_visibility?: string;
|
|
2113
2277
|
received_at?: Date;
|
|
2114
2278
|
aggregated_activities?: AggregatedActivityResponse[];
|
|
2115
2279
|
notification_status?: NotificationStatusResponse;
|
|
@@ -2126,8 +2290,10 @@ export interface NotificationSettings {
|
|
|
2126
2290
|
export interface NotificationStatusResponse {
|
|
2127
2291
|
unread: number;
|
|
2128
2292
|
unseen: number;
|
|
2293
|
+
last_read_at?: Date;
|
|
2129
2294
|
last_seen_at?: Date;
|
|
2130
2295
|
read_activities?: string[];
|
|
2296
|
+
seen_activities?: string[];
|
|
2131
2297
|
}
|
|
2132
2298
|
export interface NullTime {
|
|
2133
2299
|
}
|
|
@@ -2214,7 +2380,7 @@ export interface PinActivityRequest {
|
|
|
2214
2380
|
export interface PinActivityResponse {
|
|
2215
2381
|
created_at: Date;
|
|
2216
2382
|
duration: string;
|
|
2217
|
-
|
|
2383
|
+
feed: string;
|
|
2218
2384
|
user_id: string;
|
|
2219
2385
|
activity: ActivityResponse;
|
|
2220
2386
|
}
|
|
@@ -2247,6 +2413,7 @@ export interface PollClosedFeedEvent {
|
|
|
2247
2413
|
custom: Record<string, any>;
|
|
2248
2414
|
poll: PollResponseData;
|
|
2249
2415
|
type: string;
|
|
2416
|
+
feed_visibility?: string;
|
|
2250
2417
|
received_at?: Date;
|
|
2251
2418
|
}
|
|
2252
2419
|
export interface PollDeletedFeedEvent {
|
|
@@ -2255,6 +2422,7 @@ export interface PollDeletedFeedEvent {
|
|
|
2255
2422
|
custom: Record<string, any>;
|
|
2256
2423
|
poll: PollResponseData;
|
|
2257
2424
|
type: string;
|
|
2425
|
+
feed_visibility?: string;
|
|
2258
2426
|
received_at?: Date;
|
|
2259
2427
|
}
|
|
2260
2428
|
export interface PollOption {
|
|
@@ -2313,6 +2481,7 @@ export interface PollUpdatedFeedEvent {
|
|
|
2313
2481
|
custom: Record<string, any>;
|
|
2314
2482
|
poll: PollResponseData;
|
|
2315
2483
|
type: string;
|
|
2484
|
+
feed_visibility?: string;
|
|
2316
2485
|
received_at?: Date;
|
|
2317
2486
|
}
|
|
2318
2487
|
export interface PollVote {
|
|
@@ -2333,6 +2502,7 @@ export interface PollVoteCastedFeedEvent {
|
|
|
2333
2502
|
poll: PollResponseData;
|
|
2334
2503
|
poll_vote: PollVoteResponseData;
|
|
2335
2504
|
type: string;
|
|
2505
|
+
feed_visibility?: string;
|
|
2336
2506
|
received_at?: Date;
|
|
2337
2507
|
}
|
|
2338
2508
|
export interface PollVoteChangedFeedEvent {
|
|
@@ -2342,6 +2512,7 @@ export interface PollVoteChangedFeedEvent {
|
|
|
2342
2512
|
poll: PollResponseData;
|
|
2343
2513
|
poll_vote: PollVoteResponseData;
|
|
2344
2514
|
type: string;
|
|
2515
|
+
feed_visibility?: string;
|
|
2345
2516
|
received_at?: Date;
|
|
2346
2517
|
}
|
|
2347
2518
|
export interface PollVoteRemovedFeedEvent {
|
|
@@ -2351,6 +2522,7 @@ export interface PollVoteRemovedFeedEvent {
|
|
|
2351
2522
|
poll: PollResponseData;
|
|
2352
2523
|
poll_vote: PollVoteResponseData;
|
|
2353
2524
|
type: string;
|
|
2525
|
+
feed_visibility?: string;
|
|
2354
2526
|
received_at?: Date;
|
|
2355
2527
|
}
|
|
2356
2528
|
export interface PollVoteResponse {
|
|
@@ -2600,6 +2772,12 @@ export interface RTMPSettingsResponse {
|
|
|
2600
2772
|
enabled: boolean;
|
|
2601
2773
|
quality: string;
|
|
2602
2774
|
}
|
|
2775
|
+
export interface RankingConfig {
|
|
2776
|
+
score?: string;
|
|
2777
|
+
type?: string;
|
|
2778
|
+
defaults?: Record<string, any>;
|
|
2779
|
+
functions?: Record<string, DecayFunctionConfig>;
|
|
2780
|
+
}
|
|
2603
2781
|
export interface Reaction {
|
|
2604
2782
|
created_at: Date;
|
|
2605
2783
|
message_id: string;
|
|
@@ -2658,8 +2836,8 @@ export interface RejectFeedMemberInviteResponse {
|
|
|
2658
2836
|
member: FeedMemberResponse;
|
|
2659
2837
|
}
|
|
2660
2838
|
export interface RejectFollowRequest {
|
|
2661
|
-
|
|
2662
|
-
|
|
2839
|
+
source: string;
|
|
2840
|
+
target: string;
|
|
2663
2841
|
}
|
|
2664
2842
|
export interface RejectFollowResponse {
|
|
2665
2843
|
duration: string;
|
|
@@ -2741,7 +2919,7 @@ export interface ReviewQueueItemResponse {
|
|
|
2741
2919
|
updated_at: Date;
|
|
2742
2920
|
actions: ActionLogResponse[];
|
|
2743
2921
|
bans: Ban[];
|
|
2744
|
-
flags:
|
|
2922
|
+
flags: ModerationFlagResponse[];
|
|
2745
2923
|
languages: string[];
|
|
2746
2924
|
completed_at?: Date;
|
|
2747
2925
|
config_key?: string;
|
|
@@ -2884,17 +3062,14 @@ export interface SharedLocationsResponse {
|
|
|
2884
3062
|
duration: string;
|
|
2885
3063
|
active_live_locations: SharedLocationResponseData[];
|
|
2886
3064
|
}
|
|
2887
|
-
export interface SingleFollowRequest {
|
|
2888
|
-
source: string;
|
|
2889
|
-
target: string;
|
|
2890
|
-
create_notification_activity?: boolean;
|
|
2891
|
-
push_preference?: 'all' | 'none';
|
|
2892
|
-
custom?: Record<string, any>;
|
|
2893
|
-
}
|
|
2894
3065
|
export interface SingleFollowResponse {
|
|
2895
3066
|
duration: string;
|
|
2896
3067
|
follow: FollowResponse;
|
|
2897
3068
|
}
|
|
3069
|
+
export interface SortParam {
|
|
3070
|
+
direction: number;
|
|
3071
|
+
field: string;
|
|
3072
|
+
}
|
|
2898
3073
|
export interface SortParamRequest {
|
|
2899
3074
|
direction?: number;
|
|
2900
3075
|
field?: string;
|
|
@@ -2904,7 +3079,7 @@ export interface StoriesConfig {
|
|
|
2904
3079
|
skip_watched?: boolean;
|
|
2905
3080
|
}
|
|
2906
3081
|
export interface SubmitActionRequest {
|
|
2907
|
-
action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'kick_user' | 'end_call';
|
|
3082
|
+
action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call';
|
|
2908
3083
|
item_id: string;
|
|
2909
3084
|
ban?: BanActionRequest;
|
|
2910
3085
|
custom?: CustomActionRequest;
|
|
@@ -3014,7 +3189,7 @@ export interface UnfollowResponse {
|
|
|
3014
3189
|
}
|
|
3015
3190
|
export interface UnpinActivityResponse {
|
|
3016
3191
|
duration: string;
|
|
3017
|
-
|
|
3192
|
+
feed: string;
|
|
3018
3193
|
user_id: string;
|
|
3019
3194
|
activity: ActivityResponse;
|
|
3020
3195
|
}
|
|
@@ -3089,7 +3264,6 @@ export interface UpdateFeedMembersResponse {
|
|
|
3089
3264
|
updated: FeedMemberResponse[];
|
|
3090
3265
|
}
|
|
3091
3266
|
export interface UpdateFeedRequest {
|
|
3092
|
-
created_by_id?: string;
|
|
3093
3267
|
custom?: Record<string, any>;
|
|
3094
3268
|
}
|
|
3095
3269
|
export interface UpdateFeedResponse {
|
|
@@ -3173,6 +3347,7 @@ export interface UpsertConfigRequest {
|
|
|
3173
3347
|
block_list_config?: BlockListConfig;
|
|
3174
3348
|
bodyguard_config?: AITextConfig;
|
|
3175
3349
|
google_vision_config?: GoogleVisionConfig;
|
|
3350
|
+
llm_config?: LLMConfig;
|
|
3176
3351
|
rule_builder_config?: RuleBuilderConfig;
|
|
3177
3352
|
velocity_filter_config?: VelocityFilterConfig;
|
|
3178
3353
|
video_call_rule_config?: VideoCallRuleConfig;
|