@stream-io/feeds-client 0.3.35 → 0.3.37
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 +13 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-BRK49aQb.mjs → feeds-client-CExHb6GS.mjs} +102 -9
- package/dist/feeds-client-CExHb6GS.mjs.map +1 -0
- package/dist/{feeds-client-F087iP6p.js → feeds-client-DEV6_pkH.js} +102 -9
- package/dist/feeds-client-DEV6_pkH.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +5 -0
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +107 -3
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/dist/types/gen/moderation/ModerationApi.d.ts +6 -1
- package/dist/types/gen/moderation/ModerationApi.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +28 -3
- package/src/gen/model-decoders/decoders.ts +33 -0
- package/src/gen/models/index.ts +187 -6
- package/src/gen/moderation/ModerationApi.ts +78 -0
- package/dist/feeds-client-BRK49aQb.mjs.map +0 -1
- package/dist/feeds-client-F087iP6p.js.map +0 -1
|
@@ -311,12 +311,14 @@ export class FeedsApi {
|
|
|
311
311
|
const body = {
|
|
312
312
|
type: request?.type,
|
|
313
313
|
feeds: request?.feeds,
|
|
314
|
+
create_notification_activity: request?.create_notification_activity,
|
|
314
315
|
expires_at: request?.expires_at,
|
|
315
316
|
id: request?.id,
|
|
316
317
|
parent_id: request?.parent_id,
|
|
317
318
|
poll_id: request?.poll_id,
|
|
318
319
|
restrict_replies: request?.restrict_replies,
|
|
319
320
|
skip_enrich_url: request?.skip_enrich_url,
|
|
321
|
+
skip_push: request?.skip_push,
|
|
320
322
|
text: request?.text,
|
|
321
323
|
visibility: request?.visibility,
|
|
322
324
|
visibility_tag: request?.visibility_tag,
|
|
@@ -374,6 +376,7 @@ export class FeedsApi {
|
|
|
374
376
|
): Promise<StreamResponse<DeleteActivitiesResponse>> {
|
|
375
377
|
const body = {
|
|
376
378
|
ids: request?.ids,
|
|
379
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
377
380
|
hard_delete: request?.hard_delete,
|
|
378
381
|
};
|
|
379
382
|
|
|
@@ -649,7 +652,11 @@ export class FeedsApi {
|
|
|
649
652
|
async deleteActivityReaction(request: {
|
|
650
653
|
activity_id: string;
|
|
651
654
|
type: string;
|
|
655
|
+
delete_notification_activity?: boolean;
|
|
652
656
|
}): Promise<StreamResponse<DeleteActivityReactionResponse>> {
|
|
657
|
+
const queryParams = {
|
|
658
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
659
|
+
};
|
|
653
660
|
const pathParams = {
|
|
654
661
|
activity_id: request?.activity_id,
|
|
655
662
|
type: request?.type,
|
|
@@ -661,7 +668,7 @@ export class FeedsApi {
|
|
|
661
668
|
'DELETE',
|
|
662
669
|
'/api/v2/feeds/activities/{activity_id}/reactions/{type}',
|
|
663
670
|
pathParams,
|
|
664
|
-
|
|
671
|
+
queryParams,
|
|
665
672
|
);
|
|
666
673
|
|
|
667
674
|
decoders.DeleteActivityReactionResponse?.(response.body);
|
|
@@ -672,9 +679,11 @@ export class FeedsApi {
|
|
|
672
679
|
async deleteActivity(request: {
|
|
673
680
|
id: string;
|
|
674
681
|
hard_delete?: boolean;
|
|
682
|
+
delete_notification_activity?: boolean;
|
|
675
683
|
}): Promise<StreamResponse<DeleteActivityResponse>> {
|
|
676
684
|
const queryParams = {
|
|
677
685
|
hard_delete: request?.hard_delete,
|
|
686
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
678
687
|
};
|
|
679
688
|
const pathParams = {
|
|
680
689
|
id: request?.id,
|
|
@@ -712,6 +721,7 @@ export class FeedsApi {
|
|
|
712
721
|
id: request?.id,
|
|
713
722
|
};
|
|
714
723
|
const body = {
|
|
724
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
715
725
|
unset: request?.unset,
|
|
716
726
|
set: request?.set,
|
|
717
727
|
};
|
|
@@ -740,11 +750,13 @@ export class FeedsApi {
|
|
|
740
750
|
};
|
|
741
751
|
const body = {
|
|
742
752
|
expires_at: request?.expires_at,
|
|
753
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
743
754
|
poll_id: request?.poll_id,
|
|
744
755
|
restrict_replies: request?.restrict_replies,
|
|
745
756
|
skip_enrich_url: request?.skip_enrich_url,
|
|
746
757
|
text: request?.text,
|
|
747
758
|
visibility: request?.visibility,
|
|
759
|
+
visibility_tag: request?.visibility_tag,
|
|
748
760
|
attachments: request?.attachments,
|
|
749
761
|
collection_refs: request?.collection_refs,
|
|
750
762
|
feeds: request?.feeds,
|
|
@@ -1067,9 +1079,11 @@ export class FeedsApi {
|
|
|
1067
1079
|
async deleteComment(request: {
|
|
1068
1080
|
id: string;
|
|
1069
1081
|
hard_delete?: boolean;
|
|
1082
|
+
delete_notification_activity?: boolean;
|
|
1070
1083
|
}): Promise<StreamResponse<DeleteCommentResponse>> {
|
|
1071
1084
|
const queryParams = {
|
|
1072
1085
|
hard_delete: request?.hard_delete,
|
|
1086
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
1073
1087
|
};
|
|
1074
1088
|
const pathParams = {
|
|
1075
1089
|
id: request?.id,
|
|
@@ -1108,9 +1122,11 @@ export class FeedsApi {
|
|
|
1108
1122
|
};
|
|
1109
1123
|
const body = {
|
|
1110
1124
|
comment: request?.comment,
|
|
1125
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
1111
1126
|
skip_enrich_url: request?.skip_enrich_url,
|
|
1112
1127
|
skip_push: request?.skip_push,
|
|
1113
1128
|
attachments: request?.attachments,
|
|
1129
|
+
mentioned_user_ids: request?.mentioned_user_ids,
|
|
1114
1130
|
custom: request?.custom,
|
|
1115
1131
|
};
|
|
1116
1132
|
|
|
@@ -1193,7 +1209,11 @@ export class FeedsApi {
|
|
|
1193
1209
|
async deleteCommentReaction(request: {
|
|
1194
1210
|
id: string;
|
|
1195
1211
|
type: string;
|
|
1212
|
+
delete_notification_activity?: boolean;
|
|
1196
1213
|
}): Promise<StreamResponse<DeleteCommentReactionResponse>> {
|
|
1214
|
+
const queryParams = {
|
|
1215
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
1216
|
+
};
|
|
1197
1217
|
const pathParams = {
|
|
1198
1218
|
id: request?.id,
|
|
1199
1219
|
type: request?.type,
|
|
@@ -1205,7 +1225,7 @@ export class FeedsApi {
|
|
|
1205
1225
|
'DELETE',
|
|
1206
1226
|
'/api/v2/feeds/comments/{id}/reactions/{type}',
|
|
1207
1227
|
pathParams,
|
|
1208
|
-
|
|
1228
|
+
queryParams,
|
|
1209
1229
|
);
|
|
1210
1230
|
|
|
1211
1231
|
decoders.DeleteCommentReactionResponse?.(response.body);
|
|
@@ -1868,7 +1888,11 @@ export class FeedsApi {
|
|
|
1868
1888
|
async unfollow(request: {
|
|
1869
1889
|
source: string;
|
|
1870
1890
|
target: string;
|
|
1891
|
+
delete_notification_activity?: boolean;
|
|
1871
1892
|
}): Promise<StreamResponse<UnfollowResponse>> {
|
|
1893
|
+
const queryParams = {
|
|
1894
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
1895
|
+
};
|
|
1872
1896
|
const pathParams = {
|
|
1873
1897
|
source: request?.source,
|
|
1874
1898
|
target: request?.target,
|
|
@@ -1880,7 +1904,7 @@ export class FeedsApi {
|
|
|
1880
1904
|
'DELETE',
|
|
1881
1905
|
'/api/v2/feeds/follows/{source}/{target}',
|
|
1882
1906
|
pathParams,
|
|
1883
|
-
|
|
1907
|
+
queryParams,
|
|
1884
1908
|
);
|
|
1885
1909
|
|
|
1886
1910
|
decoders.UnfollowResponse?.(response.body);
|
|
@@ -1893,6 +1917,7 @@ export class FeedsApi {
|
|
|
1893
1917
|
): Promise<StreamResponse<UnfollowBatchResponse>> {
|
|
1894
1918
|
const body = {
|
|
1895
1919
|
follows: request?.follows,
|
|
1920
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
1896
1921
|
};
|
|
1897
1922
|
|
|
1898
1923
|
const response = await this.apiClient.sendRequest<
|
|
@@ -300,6 +300,17 @@ decoders.AppUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
300
300
|
return decode(typeMappings, input);
|
|
301
301
|
};
|
|
302
302
|
|
|
303
|
+
decoders.AppealItemResponse = (input?: Record<string, any>) => {
|
|
304
|
+
const typeMappings: TypeMapping = {
|
|
305
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
306
|
+
|
|
307
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
308
|
+
|
|
309
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
310
|
+
};
|
|
311
|
+
return decode(typeMappings, input);
|
|
312
|
+
};
|
|
313
|
+
|
|
303
314
|
decoders.Ban = (input?: Record<string, any>) => {
|
|
304
315
|
const typeMappings: TypeMapping = {
|
|
305
316
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -719,6 +730,8 @@ decoders.CommentResponse = (input?: Record<string, any>) => {
|
|
|
719
730
|
|
|
720
731
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
721
732
|
|
|
733
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
734
|
+
|
|
722
735
|
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
723
736
|
|
|
724
737
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
@@ -1127,6 +1140,13 @@ decoders.GetActivityResponse = (input?: Record<string, any>) => {
|
|
|
1127
1140
|
return decode(typeMappings, input);
|
|
1128
1141
|
};
|
|
1129
1142
|
|
|
1143
|
+
decoders.GetAppealResponse = (input?: Record<string, any>) => {
|
|
1144
|
+
const typeMappings: TypeMapping = {
|
|
1145
|
+
item: { type: 'AppealItemResponse', isSingle: true },
|
|
1146
|
+
};
|
|
1147
|
+
return decode(typeMappings, input);
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1130
1150
|
decoders.GetBlockedUsersResponse = (input?: Record<string, any>) => {
|
|
1131
1151
|
const typeMappings: TypeMapping = {
|
|
1132
1152
|
blocks: { type: 'BlockedUserResponse', isSingle: false },
|
|
@@ -1617,6 +1637,13 @@ decoders.QueryActivityReactionsResponse = (input?: Record<string, any>) => {
|
|
|
1617
1637
|
return decode(typeMappings, input);
|
|
1618
1638
|
};
|
|
1619
1639
|
|
|
1640
|
+
decoders.QueryAppealsResponse = (input?: Record<string, any>) => {
|
|
1641
|
+
const typeMappings: TypeMapping = {
|
|
1642
|
+
items: { type: 'AppealItemResponse', isSingle: false },
|
|
1643
|
+
};
|
|
1644
|
+
return decode(typeMappings, input);
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1620
1647
|
decoders.QueryBookmarkFoldersResponse = (input?: Record<string, any>) => {
|
|
1621
1648
|
const typeMappings: TypeMapping = {
|
|
1622
1649
|
bookmark_folders: { type: 'BookmarkFolderResponse', isSingle: false },
|
|
@@ -1774,6 +1801,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
1774
1801
|
|
|
1775
1802
|
reviewed_at: { type: 'DatetimeType', isSingle: true },
|
|
1776
1803
|
|
|
1804
|
+
appeal: { type: 'AppealItemResponse', isSingle: true },
|
|
1805
|
+
|
|
1777
1806
|
assigned_to: { type: 'UserResponse', isSingle: true },
|
|
1778
1807
|
|
|
1779
1808
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -1873,6 +1902,8 @@ decoders.StoriesFeedUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
1873
1902
|
|
|
1874
1903
|
decoders.SubmitActionResponse = (input?: Record<string, any>) => {
|
|
1875
1904
|
const typeMappings: TypeMapping = {
|
|
1905
|
+
appeal_item: { type: 'AppealItemResponse', isSingle: true },
|
|
1906
|
+
|
|
1876
1907
|
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1877
1908
|
};
|
|
1878
1909
|
return decode(typeMappings, input);
|
|
@@ -1892,6 +1923,8 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
|
|
|
1892
1923
|
|
|
1893
1924
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1894
1925
|
|
|
1926
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
1927
|
+
|
|
1895
1928
|
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
1896
1929
|
|
|
1897
1930
|
replies: { type: 'ThreadedCommentResponse', isSingle: false },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -365,6 +365,8 @@ export interface ActivityRequest {
|
|
|
365
365
|
|
|
366
366
|
feeds: string[];
|
|
367
367
|
|
|
368
|
+
create_notification_activity?: boolean;
|
|
369
|
+
|
|
368
370
|
expires_at?: string;
|
|
369
371
|
|
|
370
372
|
id?: string;
|
|
@@ -377,6 +379,8 @@ export interface ActivityRequest {
|
|
|
377
379
|
|
|
378
380
|
skip_enrich_url?: boolean;
|
|
379
381
|
|
|
382
|
+
skip_push?: boolean;
|
|
383
|
+
|
|
380
384
|
text?: string;
|
|
381
385
|
|
|
382
386
|
visibility?: 'public' | 'private' | 'tag';
|
|
@@ -543,6 +547,8 @@ export interface AddActivityRequest {
|
|
|
543
547
|
|
|
544
548
|
feeds: string[];
|
|
545
549
|
|
|
550
|
+
create_notification_activity?: boolean;
|
|
551
|
+
|
|
546
552
|
expires_at?: string;
|
|
547
553
|
|
|
548
554
|
id?: string;
|
|
@@ -555,6 +561,8 @@ export interface AddActivityRequest {
|
|
|
555
561
|
|
|
556
562
|
skip_enrich_url?: boolean;
|
|
557
563
|
|
|
564
|
+
skip_push?: boolean;
|
|
565
|
+
|
|
558
566
|
text?: string;
|
|
559
567
|
|
|
560
568
|
visibility?: 'public' | 'private' | 'tag';
|
|
@@ -582,6 +590,8 @@ export interface AddActivityResponse {
|
|
|
582
590
|
duration: string;
|
|
583
591
|
|
|
584
592
|
activity: ActivityResponse;
|
|
593
|
+
|
|
594
|
+
mention_notifications_created?: number;
|
|
585
595
|
}
|
|
586
596
|
|
|
587
597
|
export interface AddBookmarkRequest {
|
|
@@ -649,6 +659,8 @@ export interface AddCommentResponse {
|
|
|
649
659
|
|
|
650
660
|
comment: CommentResponse;
|
|
651
661
|
|
|
662
|
+
mention_notifications_created?: number;
|
|
663
|
+
|
|
652
664
|
notification_created?: boolean;
|
|
653
665
|
}
|
|
654
666
|
|
|
@@ -756,6 +768,46 @@ export interface AppUpdatedEvent {
|
|
|
756
768
|
received_at?: Date;
|
|
757
769
|
}
|
|
758
770
|
|
|
771
|
+
export interface AppealItemResponse {
|
|
772
|
+
appeal_reason: string;
|
|
773
|
+
|
|
774
|
+
created_at: Date;
|
|
775
|
+
|
|
776
|
+
entity_id: string;
|
|
777
|
+
|
|
778
|
+
entity_type: string;
|
|
779
|
+
|
|
780
|
+
id: string;
|
|
781
|
+
|
|
782
|
+
status: string;
|
|
783
|
+
|
|
784
|
+
updated_at: Date;
|
|
785
|
+
|
|
786
|
+
decision_reason?: string;
|
|
787
|
+
|
|
788
|
+
attachments?: string[];
|
|
789
|
+
|
|
790
|
+
entity_content?: ModerationPayload;
|
|
791
|
+
|
|
792
|
+
user?: UserResponse;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export interface AppealRequest {
|
|
796
|
+
appeal_reason: string;
|
|
797
|
+
|
|
798
|
+
entity_id: string;
|
|
799
|
+
|
|
800
|
+
entity_type: string;
|
|
801
|
+
|
|
802
|
+
attachments?: string[];
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export interface AppealResponse {
|
|
806
|
+
appeal_id: string;
|
|
807
|
+
|
|
808
|
+
duration: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
759
811
|
export interface Attachment {
|
|
760
812
|
custom: Record<string, any>;
|
|
761
813
|
|
|
@@ -1208,6 +1260,8 @@ export interface CallResponse {
|
|
|
1208
1260
|
|
|
1209
1261
|
join_ahead_time_seconds?: number;
|
|
1210
1262
|
|
|
1263
|
+
routing_number?: string;
|
|
1264
|
+
|
|
1211
1265
|
starts_at?: Date;
|
|
1212
1266
|
|
|
1213
1267
|
team?: string;
|
|
@@ -1254,8 +1308,12 @@ export interface CallSettingsResponse {
|
|
|
1254
1308
|
|
|
1255
1309
|
geofencing: GeofenceSettingsResponse;
|
|
1256
1310
|
|
|
1311
|
+
individual_recording: IndividualRecordingSettingsResponse;
|
|
1312
|
+
|
|
1257
1313
|
limits: LimitsSettingsResponse;
|
|
1258
1314
|
|
|
1315
|
+
raw_recording: RawRecordingSettingsResponse;
|
|
1316
|
+
|
|
1259
1317
|
recording: RecordSettingsResponse;
|
|
1260
1318
|
|
|
1261
1319
|
ring: RingSettingsResponse;
|
|
@@ -1873,6 +1931,8 @@ export interface CommentResponse {
|
|
|
1873
1931
|
|
|
1874
1932
|
deleted_at?: Date;
|
|
1875
1933
|
|
|
1934
|
+
edited_at?: Date;
|
|
1935
|
+
|
|
1876
1936
|
parent_id?: string;
|
|
1877
1937
|
|
|
1878
1938
|
text?: string;
|
|
@@ -1906,6 +1966,10 @@ export interface CommentUpdatedEvent {
|
|
|
1906
1966
|
user?: UserResponseCommonFields;
|
|
1907
1967
|
}
|
|
1908
1968
|
|
|
1969
|
+
export interface CompositeRecordingResponse {
|
|
1970
|
+
status: string;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1909
1973
|
export interface ConfigOverrides {
|
|
1910
1974
|
commands: string[];
|
|
1911
1975
|
|
|
@@ -2117,6 +2181,8 @@ export interface DecayFunctionConfig {
|
|
|
2117
2181
|
export interface DeleteActivitiesRequest {
|
|
2118
2182
|
ids: string[];
|
|
2119
2183
|
|
|
2184
|
+
delete_notification_activity?: boolean;
|
|
2185
|
+
|
|
2120
2186
|
hard_delete?: boolean;
|
|
2121
2187
|
}
|
|
2122
2188
|
|
|
@@ -2347,9 +2413,15 @@ export interface EgressResponse {
|
|
|
2347
2413
|
|
|
2348
2414
|
rtmps: EgressRTMPResponse[];
|
|
2349
2415
|
|
|
2416
|
+
composite_recording?: CompositeRecordingResponse;
|
|
2417
|
+
|
|
2350
2418
|
frame_recording?: FrameRecordingResponse;
|
|
2351
2419
|
|
|
2352
2420
|
hls?: EgressHLSResponse;
|
|
2421
|
+
|
|
2422
|
+
individual_recording?: IndividualRecordingResponse;
|
|
2423
|
+
|
|
2424
|
+
raw_recording?: RawRecordingResponse;
|
|
2353
2425
|
}
|
|
2354
2426
|
|
|
2355
2427
|
export interface EnrichedActivity {
|
|
@@ -3185,6 +3257,12 @@ export interface GetActivityResponse {
|
|
|
3185
3257
|
activity: ActivityResponse;
|
|
3186
3258
|
}
|
|
3187
3259
|
|
|
3260
|
+
export interface GetAppealResponse {
|
|
3261
|
+
duration: string;
|
|
3262
|
+
|
|
3263
|
+
item?: AppealItemResponse;
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3188
3266
|
export interface GetApplicationResponse {
|
|
3189
3267
|
duration: string;
|
|
3190
3268
|
|
|
@@ -3455,6 +3533,14 @@ export interface Images {
|
|
|
3455
3533
|
original: ImageData;
|
|
3456
3534
|
}
|
|
3457
3535
|
|
|
3536
|
+
export interface IndividualRecordingResponse {
|
|
3537
|
+
status: string;
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
export interface IndividualRecordingSettingsResponse {
|
|
3541
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3458
3544
|
export interface IngressAudioEncodingResponse {
|
|
3459
3545
|
bitrate: number;
|
|
3460
3546
|
|
|
@@ -3569,6 +3655,8 @@ export interface MarkActivityRequest {
|
|
|
3569
3655
|
export interface MarkReviewedRequest {
|
|
3570
3656
|
content_to_mark_as_reviewed_limit?: number;
|
|
3571
3657
|
|
|
3658
|
+
decision_reason?: string;
|
|
3659
|
+
|
|
3572
3660
|
disable_marking_content_as_reviewed?: boolean;
|
|
3573
3661
|
}
|
|
3574
3662
|
|
|
@@ -4584,6 +4672,28 @@ export interface QueryActivityReactionsResponse {
|
|
|
4584
4672
|
prev?: string;
|
|
4585
4673
|
}
|
|
4586
4674
|
|
|
4675
|
+
export interface QueryAppealsRequest {
|
|
4676
|
+
limit?: number;
|
|
4677
|
+
|
|
4678
|
+
next?: string;
|
|
4679
|
+
|
|
4680
|
+
prev?: string;
|
|
4681
|
+
|
|
4682
|
+
sort?: SortParamRequest[];
|
|
4683
|
+
|
|
4684
|
+
filter?: Record<string, any>;
|
|
4685
|
+
}
|
|
4686
|
+
|
|
4687
|
+
export interface QueryAppealsResponse {
|
|
4688
|
+
duration: string;
|
|
4689
|
+
|
|
4690
|
+
items: AppealItemResponse[];
|
|
4691
|
+
|
|
4692
|
+
next?: string;
|
|
4693
|
+
|
|
4694
|
+
prev?: string;
|
|
4695
|
+
}
|
|
4696
|
+
|
|
4587
4697
|
export interface QueryBookmarkFoldersRequest {
|
|
4588
4698
|
limit?: number;
|
|
4589
4699
|
|
|
@@ -4872,6 +4982,14 @@ export interface RankingConfig {
|
|
|
4872
4982
|
functions?: Record<string, DecayFunctionConfig>;
|
|
4873
4983
|
}
|
|
4874
4984
|
|
|
4985
|
+
export interface RawRecordingResponse {
|
|
4986
|
+
status: string;
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4989
|
+
export interface RawRecordingSettingsResponse {
|
|
4990
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
4991
|
+
}
|
|
4992
|
+
|
|
4875
4993
|
export interface Reaction {
|
|
4876
4994
|
activity_id: string;
|
|
4877
4995
|
|
|
@@ -4958,6 +5076,10 @@ export interface RecordSettingsResponse {
|
|
|
4958
5076
|
quality: string;
|
|
4959
5077
|
}
|
|
4960
5078
|
|
|
5079
|
+
export interface RejectAppealRequest {
|
|
5080
|
+
decision_reason: string;
|
|
5081
|
+
}
|
|
5082
|
+
|
|
4961
5083
|
export interface RejectFeedMemberInviteRequest {}
|
|
4962
5084
|
|
|
4963
5085
|
export interface RejectFeedMemberInviteResponse {
|
|
@@ -5012,7 +5134,9 @@ export interface Response {
|
|
|
5012
5134
|
duration: string;
|
|
5013
5135
|
}
|
|
5014
5136
|
|
|
5015
|
-
export interface RestoreActionRequest {
|
|
5137
|
+
export interface RestoreActionRequest {
|
|
5138
|
+
decision_reason?: string;
|
|
5139
|
+
}
|
|
5016
5140
|
|
|
5017
5141
|
export interface ReviewQueueItemResponse {
|
|
5018
5142
|
ai_text_severity: string;
|
|
@@ -5059,6 +5183,8 @@ export interface ReviewQueueItemResponse {
|
|
|
5059
5183
|
|
|
5060
5184
|
activity?: EnrichedActivity;
|
|
5061
5185
|
|
|
5186
|
+
appeal?: AppealItemResponse;
|
|
5187
|
+
|
|
5062
5188
|
assigned_to?: UserResponse;
|
|
5063
5189
|
|
|
5064
5190
|
call?: CallResponse;
|
|
@@ -5127,6 +5253,10 @@ export interface RuleBuilderCondition {
|
|
|
5127
5253
|
|
|
5128
5254
|
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
5129
5255
|
|
|
5256
|
+
user_identical_content_count_params?: UserIdenticalContentCountParameters;
|
|
5257
|
+
|
|
5258
|
+
user_role_params?: UserRoleParameters;
|
|
5259
|
+
|
|
5130
5260
|
user_rule_params?: UserRuleParameters;
|
|
5131
5261
|
|
|
5132
5262
|
video_content_params?: VideoContentParameters;
|
|
@@ -5274,12 +5404,16 @@ export interface SortParam {
|
|
|
5274
5404
|
direction: number;
|
|
5275
5405
|
|
|
5276
5406
|
field: string;
|
|
5407
|
+
|
|
5408
|
+
type: string;
|
|
5277
5409
|
}
|
|
5278
5410
|
|
|
5279
5411
|
export interface SortParamRequest {
|
|
5280
5412
|
direction?: number;
|
|
5281
5413
|
|
|
5282
5414
|
field?: string;
|
|
5415
|
+
|
|
5416
|
+
type?: '' | 'number' | 'boolean';
|
|
5283
5417
|
}
|
|
5284
5418
|
|
|
5285
5419
|
export interface SpeechSegmentConfig {
|
|
@@ -5331,9 +5465,12 @@ export interface SubmitActionRequest {
|
|
|
5331
5465
|
| 'shadow_block'
|
|
5332
5466
|
| 'unmask'
|
|
5333
5467
|
| 'kick_user'
|
|
5334
|
-
| 'end_call'
|
|
5468
|
+
| 'end_call'
|
|
5469
|
+
| 'reject_appeal';
|
|
5335
5470
|
|
|
5336
|
-
|
|
5471
|
+
appeal_id?: string;
|
|
5472
|
+
|
|
5473
|
+
item_id?: string;
|
|
5337
5474
|
|
|
5338
5475
|
ban?: BanActionRequest;
|
|
5339
5476
|
|
|
@@ -5353,14 +5490,22 @@ export interface SubmitActionRequest {
|
|
|
5353
5490
|
|
|
5354
5491
|
mark_reviewed?: MarkReviewedRequest;
|
|
5355
5492
|
|
|
5493
|
+
reject_appeal?: RejectAppealRequest;
|
|
5494
|
+
|
|
5495
|
+
restore?: RestoreActionRequest;
|
|
5496
|
+
|
|
5356
5497
|
shadow_block?: ShadowBlockActionRequest;
|
|
5357
5498
|
|
|
5358
5499
|
unban?: UnbanActionRequest;
|
|
5500
|
+
|
|
5501
|
+
unblock?: UnblockActionRequest;
|
|
5359
5502
|
}
|
|
5360
5503
|
|
|
5361
5504
|
export interface SubmitActionResponse {
|
|
5362
5505
|
duration: string;
|
|
5363
5506
|
|
|
5507
|
+
appeal_item?: AppealItemResponse;
|
|
5508
|
+
|
|
5364
5509
|
item?: ReviewQueueItemResponse;
|
|
5365
5510
|
}
|
|
5366
5511
|
|
|
@@ -5387,6 +5532,8 @@ export interface TextContentParameters {
|
|
|
5387
5532
|
export interface TextRuleParameters {
|
|
5388
5533
|
contains_url?: boolean;
|
|
5389
5534
|
|
|
5535
|
+
semantic_filter_min_threshold?: number;
|
|
5536
|
+
|
|
5390
5537
|
severity?: string;
|
|
5391
5538
|
|
|
5392
5539
|
threshold?: number;
|
|
@@ -5397,6 +5544,8 @@ export interface TextRuleParameters {
|
|
|
5397
5544
|
|
|
5398
5545
|
harm_labels?: string[];
|
|
5399
5546
|
|
|
5547
|
+
semantic_filter_names?: string[];
|
|
5548
|
+
|
|
5400
5549
|
llm_harm_labels?: Record<string, string>;
|
|
5401
5550
|
}
|
|
5402
5551
|
|
|
@@ -5435,6 +5584,8 @@ export interface ThreadedCommentResponse {
|
|
|
5435
5584
|
|
|
5436
5585
|
deleted_at?: Date;
|
|
5437
5586
|
|
|
5587
|
+
edited_at?: Date;
|
|
5588
|
+
|
|
5438
5589
|
parent_id?: string;
|
|
5439
5590
|
|
|
5440
5591
|
text?: string;
|
|
@@ -5535,9 +5686,13 @@ export interface TypingIndicatorsResponse {
|
|
|
5535
5686
|
enabled: boolean;
|
|
5536
5687
|
}
|
|
5537
5688
|
|
|
5538
|
-
export interface UnbanActionRequest {
|
|
5689
|
+
export interface UnbanActionRequest {
|
|
5690
|
+
decision_reason?: string;
|
|
5691
|
+
}
|
|
5539
5692
|
|
|
5540
|
-
export interface UnblockActionRequest {
|
|
5693
|
+
export interface UnblockActionRequest {
|
|
5694
|
+
decision_reason?: string;
|
|
5695
|
+
}
|
|
5541
5696
|
|
|
5542
5697
|
export interface UnblockUsersRequest {
|
|
5543
5698
|
blocked_user_id: string;
|
|
@@ -5549,6 +5704,8 @@ export interface UnblockUsersResponse {
|
|
|
5549
5704
|
|
|
5550
5705
|
export interface UnfollowBatchRequest {
|
|
5551
5706
|
follows: FollowPair[];
|
|
5707
|
+
|
|
5708
|
+
delete_notification_activity?: boolean;
|
|
5552
5709
|
}
|
|
5553
5710
|
|
|
5554
5711
|
export interface UnfollowBatchResponse {
|
|
@@ -5574,6 +5731,8 @@ export interface UnpinActivityResponse {
|
|
|
5574
5731
|
}
|
|
5575
5732
|
|
|
5576
5733
|
export interface UpdateActivityPartialRequest {
|
|
5734
|
+
handle_mention_notifications?: boolean;
|
|
5735
|
+
|
|
5577
5736
|
unset?: string[];
|
|
5578
5737
|
|
|
5579
5738
|
set?: Record<string, any>;
|
|
@@ -5588,6 +5747,8 @@ export interface UpdateActivityPartialResponse {
|
|
|
5588
5747
|
export interface UpdateActivityRequest {
|
|
5589
5748
|
expires_at?: Date;
|
|
5590
5749
|
|
|
5750
|
+
handle_mention_notifications?: boolean;
|
|
5751
|
+
|
|
5591
5752
|
poll_id?: string;
|
|
5592
5753
|
|
|
5593
5754
|
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
@@ -5596,7 +5757,9 @@ export interface UpdateActivityRequest {
|
|
|
5596
5757
|
|
|
5597
5758
|
text?: string;
|
|
5598
5759
|
|
|
5599
|
-
visibility?:
|
|
5760
|
+
visibility?: 'public' | 'private' | 'tag';
|
|
5761
|
+
|
|
5762
|
+
visibility_tag?: string;
|
|
5600
5763
|
|
|
5601
5764
|
attachments?: Attachment[];
|
|
5602
5765
|
|
|
@@ -5686,12 +5849,16 @@ export interface UpdateCollectionsResponse {
|
|
|
5686
5849
|
export interface UpdateCommentRequest {
|
|
5687
5850
|
comment?: string;
|
|
5688
5851
|
|
|
5852
|
+
handle_mention_notifications?: boolean;
|
|
5853
|
+
|
|
5689
5854
|
skip_enrich_url?: boolean;
|
|
5690
5855
|
|
|
5691
5856
|
skip_push?: boolean;
|
|
5692
5857
|
|
|
5693
5858
|
attachments?: Attachment[];
|
|
5694
5859
|
|
|
5860
|
+
mentioned_user_ids?: string[];
|
|
5861
|
+
|
|
5695
5862
|
custom?: Record<string, any>;
|
|
5696
5863
|
}
|
|
5697
5864
|
|
|
@@ -5841,6 +6008,8 @@ export interface UpsertActivitiesResponse {
|
|
|
5841
6008
|
duration: string;
|
|
5842
6009
|
|
|
5843
6010
|
activities: ActivityResponse[];
|
|
6011
|
+
|
|
6012
|
+
mention_notifications_created?: number;
|
|
5844
6013
|
}
|
|
5845
6014
|
|
|
5846
6015
|
export interface UpsertConfigRequest {
|
|
@@ -5984,6 +6153,12 @@ export interface UserDeactivatedEvent {
|
|
|
5984
6153
|
user?: User;
|
|
5985
6154
|
}
|
|
5986
6155
|
|
|
6156
|
+
export interface UserIdenticalContentCountParameters {
|
|
6157
|
+
threshold?: number;
|
|
6158
|
+
|
|
6159
|
+
time_window?: string;
|
|
6160
|
+
}
|
|
6161
|
+
|
|
5987
6162
|
export interface UserMute {
|
|
5988
6163
|
created_at: Date;
|
|
5989
6164
|
|
|
@@ -6162,6 +6337,12 @@ export interface UserResponsePrivacyFields {
|
|
|
6162
6337
|
teams_role?: Record<string, string>;
|
|
6163
6338
|
}
|
|
6164
6339
|
|
|
6340
|
+
export interface UserRoleParameters {
|
|
6341
|
+
operator?: string;
|
|
6342
|
+
|
|
6343
|
+
role?: string;
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6165
6346
|
export interface UserRuleParameters {
|
|
6166
6347
|
max_age?: string;
|
|
6167
6348
|
}
|