@stream-io/node-sdk 0.7.52 → 0.7.54
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 +204 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +204 -5
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +16 -1
- package/dist/src/gen/models/index.d.ts +253 -22
- package/dist/src/gen/moderation/ModerationApi.d.ts +6 -2
- package/dist/src/gen/video/VideoApi.d.ts +2 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +121 -2
- package/src/gen/model-decoders/decoders.ts +131 -0
- package/src/gen/models/index.ts +342 -25
- package/src/gen/moderation/ModerationApi.ts +39 -4
- package/src/gen/video/VideoApi.ts +29 -0
package/src/gen/models/index.ts
CHANGED
|
@@ -450,18 +450,6 @@ export interface ActivityFeedbackResponse {
|
|
|
450
450
|
duration: string;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
export interface ActivityLocation {
|
|
454
|
-
/**
|
|
455
|
-
* Latitude coordinate
|
|
456
|
-
*/
|
|
457
|
-
lat: number;
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Longitude coordinate
|
|
461
|
-
*/
|
|
462
|
-
lng: number;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
453
|
export interface ActivityMarkEvent {
|
|
466
454
|
/**
|
|
467
455
|
* Date/time of creation
|
|
@@ -775,7 +763,7 @@ export interface ActivityRequest {
|
|
|
775
763
|
*/
|
|
776
764
|
custom?: Record<string, any>;
|
|
777
765
|
|
|
778
|
-
location?:
|
|
766
|
+
location?: Location;
|
|
779
767
|
|
|
780
768
|
/**
|
|
781
769
|
* Additional data for search indexing
|
|
@@ -979,7 +967,7 @@ export interface ActivityResponse {
|
|
|
979
967
|
|
|
980
968
|
current_feed?: FeedResponse;
|
|
981
969
|
|
|
982
|
-
location?:
|
|
970
|
+
location?: Location;
|
|
983
971
|
|
|
984
972
|
metrics?: Record<string, number>;
|
|
985
973
|
|
|
@@ -1188,6 +1176,8 @@ export interface AddActivityRequest {
|
|
|
1188
1176
|
*/
|
|
1189
1177
|
expires_at?: string;
|
|
1190
1178
|
|
|
1179
|
+
force_moderation?: boolean;
|
|
1180
|
+
|
|
1191
1181
|
/**
|
|
1192
1182
|
* Optional ID for the activity
|
|
1193
1183
|
*/
|
|
@@ -1270,7 +1260,7 @@ export interface AddActivityRequest {
|
|
|
1270
1260
|
*/
|
|
1271
1261
|
custom?: Record<string, any>;
|
|
1272
1262
|
|
|
1273
|
-
location?:
|
|
1263
|
+
location?: Location;
|
|
1274
1264
|
|
|
1275
1265
|
/**
|
|
1276
1266
|
* Additional data for search indexing
|
|
@@ -1313,6 +1303,30 @@ export interface AddBookmarkResponse {
|
|
|
1313
1303
|
bookmark: BookmarkResponse;
|
|
1314
1304
|
}
|
|
1315
1305
|
|
|
1306
|
+
export interface AddCommentBookmarkRequest {
|
|
1307
|
+
/**
|
|
1308
|
+
* ID of the folder to add the bookmark to
|
|
1309
|
+
*/
|
|
1310
|
+
folder_id?: string;
|
|
1311
|
+
|
|
1312
|
+
user_id?: string;
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Custom data for the bookmark
|
|
1316
|
+
*/
|
|
1317
|
+
custom?: Record<string, any>;
|
|
1318
|
+
|
|
1319
|
+
new_folder?: AddFolderRequest;
|
|
1320
|
+
|
|
1321
|
+
user?: UserRequest;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
export interface AddCommentBookmarkResponse {
|
|
1325
|
+
duration: string;
|
|
1326
|
+
|
|
1327
|
+
bookmark: BookmarkResponse;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1316
1330
|
export interface AddCommentReactionRequest {
|
|
1317
1331
|
/**
|
|
1318
1332
|
* The type of reaction, eg upvote, like, ...
|
|
@@ -1380,6 +1394,11 @@ export interface AddCommentRequest {
|
|
|
1380
1394
|
*/
|
|
1381
1395
|
create_notification_activity?: boolean;
|
|
1382
1396
|
|
|
1397
|
+
/**
|
|
1398
|
+
* If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
1399
|
+
*/
|
|
1400
|
+
force_moderation?: boolean;
|
|
1401
|
+
|
|
1383
1402
|
/**
|
|
1384
1403
|
* Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated.
|
|
1385
1404
|
*/
|
|
@@ -1593,6 +1612,12 @@ export interface AggregatedActivityResponse {
|
|
|
1593
1612
|
}
|
|
1594
1613
|
|
|
1595
1614
|
export interface AggregationConfig {
|
|
1615
|
+
/**
|
|
1616
|
+
* Order of member activities inside each aggregated group for non-stories feeds: created_at_desc (newest first, default) or created_at_asc (oldest first). Stories feeds ignore this and always use oldest first.
|
|
1617
|
+
*/
|
|
1618
|
+
|
|
1619
|
+
activities_sort?: 'created_at_asc' | 'created_at_desc';
|
|
1620
|
+
|
|
1596
1621
|
/**
|
|
1597
1622
|
* Format for activity aggregation
|
|
1598
1623
|
*/
|
|
@@ -2590,6 +2615,16 @@ export interface BookmarkResponse {
|
|
|
2590
2615
|
*/
|
|
2591
2616
|
created_at: Date;
|
|
2592
2617
|
|
|
2618
|
+
/**
|
|
2619
|
+
* ID of the bookmarked object
|
|
2620
|
+
*/
|
|
2621
|
+
object_id: string;
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
* Type of the bookmarked object (activity or comment)
|
|
2625
|
+
*/
|
|
2626
|
+
object_type: string;
|
|
2627
|
+
|
|
2593
2628
|
/**
|
|
2594
2629
|
* When the bookmark was last updated
|
|
2595
2630
|
*/
|
|
@@ -2599,6 +2634,10 @@ export interface BookmarkResponse {
|
|
|
2599
2634
|
|
|
2600
2635
|
user: UserResponse;
|
|
2601
2636
|
|
|
2637
|
+
activity_id?: string;
|
|
2638
|
+
|
|
2639
|
+
comment?: CommentResponse;
|
|
2640
|
+
|
|
2602
2641
|
/**
|
|
2603
2642
|
* Custom data for the bookmark
|
|
2604
2643
|
*/
|
|
@@ -2679,6 +2718,26 @@ export interface BulkImageModerationResponse {
|
|
|
2679
2718
|
task_id: string;
|
|
2680
2719
|
}
|
|
2681
2720
|
|
|
2721
|
+
export interface BypassActionRequest {
|
|
2722
|
+
enabled?: boolean;
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
export interface BypassRequest {
|
|
2726
|
+
/**
|
|
2727
|
+
* Whether to enable moderation bypass for this user
|
|
2728
|
+
*/
|
|
2729
|
+
enabled: boolean;
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* ID of the user to update
|
|
2733
|
+
*/
|
|
2734
|
+
target_user_id: string;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
export interface BypassResponse {
|
|
2738
|
+
duration: string;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2682
2741
|
export interface CallAcceptedEvent {
|
|
2683
2742
|
call_cid: string;
|
|
2684
2743
|
|
|
@@ -3888,10 +3947,18 @@ export interface CallStatsParticipantCounts {
|
|
|
3888
3947
|
|
|
3889
3948
|
sessions: number;
|
|
3890
3949
|
|
|
3950
|
+
sfus_used: number;
|
|
3951
|
+
|
|
3952
|
+
average_jitter_ms?: number;
|
|
3953
|
+
|
|
3954
|
+
average_latency_ms?: number;
|
|
3955
|
+
|
|
3891
3956
|
call_event_count?: number;
|
|
3892
3957
|
|
|
3893
3958
|
cq_score?: number;
|
|
3894
3959
|
|
|
3960
|
+
max_freezes_duration_ms?: number;
|
|
3961
|
+
|
|
3895
3962
|
total_participant_duration?: number;
|
|
3896
3963
|
}
|
|
3897
3964
|
|
|
@@ -3916,6 +3983,12 @@ export interface CallStatsParticipantSession {
|
|
|
3916
3983
|
|
|
3917
3984
|
ended_at?: Date;
|
|
3918
3985
|
|
|
3986
|
+
freezes_duration_ms?: number;
|
|
3987
|
+
|
|
3988
|
+
jitter_ms?: number;
|
|
3989
|
+
|
|
3990
|
+
latency_ms?: number;
|
|
3991
|
+
|
|
3919
3992
|
os?: string;
|
|
3920
3993
|
|
|
3921
3994
|
publisher_type?: string;
|
|
@@ -3943,6 +4016,8 @@ export interface CallStatsReportReadyEvent {
|
|
|
3943
4016
|
*/
|
|
3944
4017
|
session_id: string;
|
|
3945
4018
|
|
|
4019
|
+
counts: CallStatsParticipantCounts;
|
|
4020
|
+
|
|
3946
4021
|
/**
|
|
3947
4022
|
* The type of event, "call.report_ready" in this case
|
|
3948
4023
|
*/
|
|
@@ -3977,6 +4052,22 @@ export interface CallStatsReportSummaryResponse {
|
|
|
3977
4052
|
quality_score?: number;
|
|
3978
4053
|
}
|
|
3979
4054
|
|
|
4055
|
+
export interface CallStatsSessionResponse {
|
|
4056
|
+
call_id: string;
|
|
4057
|
+
|
|
4058
|
+
call_session_id: string;
|
|
4059
|
+
|
|
4060
|
+
call_type: string;
|
|
4061
|
+
|
|
4062
|
+
generated_at: Date;
|
|
4063
|
+
|
|
4064
|
+
counts: CallStatsParticipantCounts;
|
|
4065
|
+
|
|
4066
|
+
call_ended_at?: Date;
|
|
4067
|
+
|
|
4068
|
+
call_started_at?: Date;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
3980
4071
|
export interface CallTranscription {
|
|
3981
4072
|
end_time: Date;
|
|
3982
4073
|
|
|
@@ -6150,6 +6241,8 @@ export interface CommentReactionUpdatedEvent {
|
|
|
6150
6241
|
}
|
|
6151
6242
|
|
|
6152
6243
|
export interface CommentResponse {
|
|
6244
|
+
bookmark_count: number;
|
|
6245
|
+
|
|
6153
6246
|
/**
|
|
6154
6247
|
* Confidence score of the comment
|
|
6155
6248
|
*/
|
|
@@ -7697,6 +7790,12 @@ export interface DeleteCommandResponse {
|
|
|
7697
7790
|
name: string;
|
|
7698
7791
|
}
|
|
7699
7792
|
|
|
7793
|
+
export interface DeleteCommentBookmarkResponse {
|
|
7794
|
+
duration: string;
|
|
7795
|
+
|
|
7796
|
+
bookmark: BookmarkResponse;
|
|
7797
|
+
}
|
|
7798
|
+
|
|
7700
7799
|
export interface DeleteCommentReactionResponse {
|
|
7701
7800
|
duration: string;
|
|
7702
7801
|
|
|
@@ -8181,6 +8280,23 @@ export interface DraftResponse {
|
|
|
8181
8280
|
quoted_message?: MessageResponse;
|
|
8182
8281
|
}
|
|
8183
8282
|
|
|
8283
|
+
export interface EMAUStatsResponse {
|
|
8284
|
+
/**
|
|
8285
|
+
* Per-day unique engaged user counts
|
|
8286
|
+
*/
|
|
8287
|
+
daily: DailyMetricResponse[];
|
|
8288
|
+
|
|
8289
|
+
/**
|
|
8290
|
+
* Rolling 30-day engaged user count snapshots
|
|
8291
|
+
*/
|
|
8292
|
+
last_30_days: DailyMetricResponse[];
|
|
8293
|
+
|
|
8294
|
+
/**
|
|
8295
|
+
* Calendar month-to-date engaged user count snapshots
|
|
8296
|
+
*/
|
|
8297
|
+
month_to_date: DailyMetricResponse[];
|
|
8298
|
+
}
|
|
8299
|
+
|
|
8184
8300
|
export interface EdgeResponse {
|
|
8185
8301
|
continent_code: string;
|
|
8186
8302
|
|
|
@@ -8358,11 +8474,6 @@ export interface EnrichmentOptions {
|
|
|
8358
8474
|
*/
|
|
8359
8475
|
enrich_own_followings?: boolean;
|
|
8360
8476
|
|
|
8361
|
-
/**
|
|
8362
|
-
* Default: false. When true, includes the top-level flat 'activities' array in responses for aggregated feeds. By default, aggregated feeds only return 'aggregated_activities'.
|
|
8363
|
-
*/
|
|
8364
|
-
include_flat_activities?: boolean;
|
|
8365
|
-
|
|
8366
8477
|
/**
|
|
8367
8478
|
* Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.
|
|
8368
8479
|
*/
|
|
@@ -8498,6 +8609,8 @@ export interface EntityCreatorResponse {
|
|
|
8498
8609
|
|
|
8499
8610
|
ban_expires?: Date;
|
|
8500
8611
|
|
|
8612
|
+
bypass_moderation?: boolean;
|
|
8613
|
+
|
|
8501
8614
|
deactivated_at?: Date;
|
|
8502
8615
|
|
|
8503
8616
|
deleted_at?: Date;
|
|
@@ -8978,6 +9091,8 @@ export interface FeedInput {
|
|
|
8978
9091
|
members?: FeedMemberRequest[];
|
|
8979
9092
|
|
|
8980
9093
|
custom?: Record<string, any>;
|
|
9094
|
+
|
|
9095
|
+
location?: Location;
|
|
8981
9096
|
}
|
|
8982
9097
|
|
|
8983
9098
|
export interface FeedMemberAddedEvent {
|
|
@@ -9222,6 +9337,8 @@ export interface FeedRequest {
|
|
|
9222
9337
|
* Custom data for the feed
|
|
9223
9338
|
*/
|
|
9224
9339
|
custom?: Record<string, any>;
|
|
9340
|
+
|
|
9341
|
+
location?: Location;
|
|
9225
9342
|
}
|
|
9226
9343
|
|
|
9227
9344
|
export interface FeedResponse {
|
|
@@ -9320,6 +9437,8 @@ export interface FeedResponse {
|
|
|
9320
9437
|
*/
|
|
9321
9438
|
custom?: Record<string, any>;
|
|
9322
9439
|
|
|
9440
|
+
location?: Location;
|
|
9441
|
+
|
|
9323
9442
|
own_membership?: FeedMemberResponse;
|
|
9324
9443
|
}
|
|
9325
9444
|
|
|
@@ -9425,6 +9544,8 @@ export interface FeedSuggestionResponse {
|
|
|
9425
9544
|
*/
|
|
9426
9545
|
custom?: Record<string, any>;
|
|
9427
9546
|
|
|
9547
|
+
location?: Location;
|
|
9548
|
+
|
|
9428
9549
|
own_membership?: FeedMemberResponse;
|
|
9429
9550
|
}
|
|
9430
9551
|
|
|
@@ -9927,6 +10048,11 @@ export interface FollowBatchRequest {
|
|
|
9927
10048
|
*/
|
|
9928
10049
|
follows: FollowRequest[];
|
|
9929
10050
|
|
|
10051
|
+
/**
|
|
10052
|
+
* If true, auto-creates users referenced by source/target FIDs in the batch when they don't already exist. Server-side only. Defaults to false. This top-level field is the only supported batch/upsert create_users control.
|
|
10053
|
+
*/
|
|
10054
|
+
create_users?: boolean;
|
|
10055
|
+
|
|
9930
10056
|
/**
|
|
9931
10057
|
* If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
9932
10058
|
*/
|
|
@@ -10018,6 +10144,11 @@ export interface FollowRequest {
|
|
|
10018
10144
|
*/
|
|
10019
10145
|
create_notification_activity?: boolean;
|
|
10020
10146
|
|
|
10147
|
+
/**
|
|
10148
|
+
* If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
|
|
10149
|
+
*/
|
|
10150
|
+
create_users?: boolean;
|
|
10151
|
+
|
|
10021
10152
|
/**
|
|
10022
10153
|
* If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
10023
10154
|
*/
|
|
@@ -10205,6 +10336,8 @@ export interface FullUserResponse {
|
|
|
10205
10336
|
|
|
10206
10337
|
ban_expires?: Date;
|
|
10207
10338
|
|
|
10339
|
+
bypass_moderation?: boolean;
|
|
10340
|
+
|
|
10208
10341
|
deactivated_at?: Date;
|
|
10209
10342
|
|
|
10210
10343
|
deleted_at?: Date;
|
|
@@ -10722,6 +10855,8 @@ export interface GetImportV2TaskResponse {
|
|
|
10722
10855
|
updated_at: Date;
|
|
10723
10856
|
|
|
10724
10857
|
settings: ImportV2TaskSettings;
|
|
10858
|
+
|
|
10859
|
+
result?: Record<string, any>;
|
|
10725
10860
|
}
|
|
10726
10861
|
|
|
10727
10862
|
export interface GetManyMessagesResponse {
|
|
@@ -11405,6 +11540,8 @@ export interface ImportV2TaskItem {
|
|
|
11405
11540
|
updated_at: Date;
|
|
11406
11541
|
|
|
11407
11542
|
settings: ImportV2TaskSettings;
|
|
11543
|
+
|
|
11544
|
+
result?: Record<string, any>;
|
|
11408
11545
|
}
|
|
11409
11546
|
|
|
11410
11547
|
export interface ImportV2TaskSettings {
|
|
@@ -11416,6 +11553,8 @@ export interface ImportV2TaskSettings {
|
|
|
11416
11553
|
|
|
11417
11554
|
skip_references_check?: boolean;
|
|
11418
11555
|
|
|
11556
|
+
source?: string;
|
|
11557
|
+
|
|
11419
11558
|
s3?: ImportV2TaskSettingsS3;
|
|
11420
11559
|
}
|
|
11421
11560
|
|
|
@@ -12069,6 +12208,18 @@ export interface ListUserGroupsResponse {
|
|
|
12069
12208
|
user_groups: UserGroupResponse[];
|
|
12070
12209
|
}
|
|
12071
12210
|
|
|
12211
|
+
export interface Location {
|
|
12212
|
+
/**
|
|
12213
|
+
* Latitude coordinate
|
|
12214
|
+
*/
|
|
12215
|
+
lat: number;
|
|
12216
|
+
|
|
12217
|
+
/**
|
|
12218
|
+
* Longitude coordinate
|
|
12219
|
+
*/
|
|
12220
|
+
lng: number;
|
|
12221
|
+
}
|
|
12222
|
+
|
|
12072
12223
|
export interface LocationResponse {
|
|
12073
12224
|
/**
|
|
12074
12225
|
* Continent code
|
|
@@ -15964,6 +16115,37 @@ export interface QueryCallSessionParticipantStatsTimelineResponse {
|
|
|
15964
16115
|
events: CallParticipantTimeline[];
|
|
15965
16116
|
}
|
|
15966
16117
|
|
|
16118
|
+
export interface QueryCallSessionStatsRequest {
|
|
16119
|
+
limit?: number;
|
|
16120
|
+
|
|
16121
|
+
next?: string;
|
|
16122
|
+
|
|
16123
|
+
prev?: string;
|
|
16124
|
+
|
|
16125
|
+
/**
|
|
16126
|
+
* Array of sort parameters
|
|
16127
|
+
*/
|
|
16128
|
+
sort?: SortParamRequest[];
|
|
16129
|
+
|
|
16130
|
+
/**
|
|
16131
|
+
* Filter conditions to apply to the query
|
|
16132
|
+
*/
|
|
16133
|
+
filter_conditions?: Record<string, any>;
|
|
16134
|
+
}
|
|
16135
|
+
|
|
16136
|
+
export interface QueryCallSessionStatsResponse {
|
|
16137
|
+
/**
|
|
16138
|
+
* Duration of the request in milliseconds
|
|
16139
|
+
*/
|
|
16140
|
+
duration: string;
|
|
16141
|
+
|
|
16142
|
+
call_stats: CallStatsSessionResponse[];
|
|
16143
|
+
|
|
16144
|
+
next?: string;
|
|
16145
|
+
|
|
16146
|
+
prev?: string;
|
|
16147
|
+
}
|
|
16148
|
+
|
|
15967
16149
|
export interface QueryCallStatsMapResponse {
|
|
15968
16150
|
call_id: string;
|
|
15969
16151
|
|
|
@@ -16221,7 +16403,7 @@ export interface QueryCommentReactionsResponse {
|
|
|
16221
16403
|
|
|
16222
16404
|
export interface QueryCommentsRequest {
|
|
16223
16405
|
/**
|
|
16224
|
-
*
|
|
16406
|
+
* Filter to apply to the query
|
|
16225
16407
|
*/
|
|
16226
16408
|
filter: Record<string, any>;
|
|
16227
16409
|
|
|
@@ -16240,7 +16422,7 @@ export interface QueryCommentsRequest {
|
|
|
16240
16422
|
prev?: string;
|
|
16241
16423
|
|
|
16242
16424
|
/**
|
|
16243
|
-
*
|
|
16425
|
+
* Array of sort parameters
|
|
16244
16426
|
*/
|
|
16245
16427
|
|
|
16246
16428
|
sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
|
|
@@ -16438,6 +16620,8 @@ export interface QueryFeedsUsageStatsResponse {
|
|
|
16438
16620
|
follows: DailyMetricStatsResponse;
|
|
16439
16621
|
|
|
16440
16622
|
openai_requests: DailyMetricStatsResponse;
|
|
16623
|
+
|
|
16624
|
+
emau?: EMAUStatsResponse;
|
|
16441
16625
|
}
|
|
16442
16626
|
|
|
16443
16627
|
export interface QueryFollowsRequest {
|
|
@@ -17384,6 +17568,8 @@ export interface RankingConfig {
|
|
|
17384
17568
|
|
|
17385
17569
|
export interface RawRecordSettings {
|
|
17386
17570
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
17571
|
+
|
|
17572
|
+
audio_only?: boolean;
|
|
17387
17573
|
}
|
|
17388
17574
|
|
|
17389
17575
|
export interface RawRecordingResponse {
|
|
@@ -17396,10 +17582,17 @@ export interface RawRecordingSettingsRequest {
|
|
|
17396
17582
|
*/
|
|
17397
17583
|
|
|
17398
17584
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
17585
|
+
|
|
17586
|
+
/**
|
|
17587
|
+
* If true, only audio tracks will be recorded
|
|
17588
|
+
*/
|
|
17589
|
+
audio_only?: boolean;
|
|
17399
17590
|
}
|
|
17400
17591
|
|
|
17401
17592
|
export interface RawRecordingSettingsResponse {
|
|
17402
17593
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
17594
|
+
|
|
17595
|
+
audio_only?: boolean;
|
|
17403
17596
|
}
|
|
17404
17597
|
|
|
17405
17598
|
export interface Reaction {
|
|
@@ -20042,7 +20235,8 @@ export interface SubmitActionRequest {
|
|
|
20042
20235
|
| 'end_call'
|
|
20043
20236
|
| 'reject_appeal'
|
|
20044
20237
|
| 'escalate'
|
|
20045
|
-
| 'de_escalate'
|
|
20238
|
+
| 'de_escalate'
|
|
20239
|
+
| 'bypass';
|
|
20046
20240
|
|
|
20047
20241
|
/**
|
|
20048
20242
|
* UUID of the appeal to act on (required for reject_appeal, optional for other actions)
|
|
@@ -20060,6 +20254,8 @@ export interface SubmitActionRequest {
|
|
|
20060
20254
|
|
|
20061
20255
|
block?: BlockActionRequestPayload;
|
|
20062
20256
|
|
|
20257
|
+
bypass?: BypassActionRequest;
|
|
20258
|
+
|
|
20063
20259
|
custom?: CustomActionRequestPayload;
|
|
20064
20260
|
|
|
20065
20261
|
delete_activity?: DeleteActivityRequestPayload;
|
|
@@ -20421,6 +20617,8 @@ export interface ThreadUpdatedEvent {
|
|
|
20421
20617
|
}
|
|
20422
20618
|
|
|
20423
20619
|
export interface ThreadedCommentResponse {
|
|
20620
|
+
bookmark_count: number;
|
|
20621
|
+
|
|
20424
20622
|
confidence_score: number;
|
|
20425
20623
|
|
|
20426
20624
|
created_at: Date;
|
|
@@ -21140,6 +21338,11 @@ export interface UpdateActivitiesPartialBatchRequest {
|
|
|
21140
21338
|
* List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset
|
|
21141
21339
|
*/
|
|
21142
21340
|
changes: UpdateActivityPartialChangeRequest[];
|
|
21341
|
+
|
|
21342
|
+
/**
|
|
21343
|
+
* If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
21344
|
+
*/
|
|
21345
|
+
force_moderation?: boolean;
|
|
21143
21346
|
}
|
|
21144
21347
|
|
|
21145
21348
|
export interface UpdateActivitiesPartialBatchResponse {
|
|
@@ -21191,6 +21394,11 @@ export interface UpdateActivityPartialRequest {
|
|
|
21191
21394
|
*/
|
|
21192
21395
|
enrich_own_fields?: boolean;
|
|
21193
21396
|
|
|
21397
|
+
/**
|
|
21398
|
+
* If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
21399
|
+
*/
|
|
21400
|
+
force_moderation?: boolean;
|
|
21401
|
+
|
|
21194
21402
|
/**
|
|
21195
21403
|
* If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
|
|
21196
21404
|
*/
|
|
@@ -21239,6 +21447,11 @@ export interface UpdateActivityRequest {
|
|
|
21239
21447
|
*/
|
|
21240
21448
|
expires_at?: Date;
|
|
21241
21449
|
|
|
21450
|
+
/**
|
|
21451
|
+
* If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
21452
|
+
*/
|
|
21453
|
+
force_moderation?: boolean;
|
|
21454
|
+
|
|
21242
21455
|
/**
|
|
21243
21456
|
* If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
|
|
21244
21457
|
*/
|
|
@@ -21318,7 +21531,7 @@ export interface UpdateActivityRequest {
|
|
|
21318
21531
|
*/
|
|
21319
21532
|
custom?: Record<string, any>;
|
|
21320
21533
|
|
|
21321
|
-
location?:
|
|
21534
|
+
location?: Location;
|
|
21322
21535
|
|
|
21323
21536
|
/**
|
|
21324
21537
|
* Additional data for search indexing
|
|
@@ -21482,10 +21695,13 @@ export interface UpdateBookmarkFolderResponse {
|
|
|
21482
21695
|
|
|
21483
21696
|
export interface UpdateBookmarkRequest {
|
|
21484
21697
|
/**
|
|
21485
|
-
* ID of the folder
|
|
21698
|
+
* ID of the folder containing the bookmark
|
|
21486
21699
|
*/
|
|
21487
21700
|
folder_id?: string;
|
|
21488
21701
|
|
|
21702
|
+
/**
|
|
21703
|
+
* Move the bookmark to this folder (empty string removes the folder)
|
|
21704
|
+
*/
|
|
21489
21705
|
new_folder_id?: string;
|
|
21490
21706
|
|
|
21491
21707
|
user_id?: string;
|
|
@@ -21929,6 +22145,35 @@ export interface UpdateCommandResponse {
|
|
|
21929
22145
|
command?: Command;
|
|
21930
22146
|
}
|
|
21931
22147
|
|
|
22148
|
+
export interface UpdateCommentBookmarkRequest {
|
|
22149
|
+
/**
|
|
22150
|
+
* ID of the folder containing the bookmark
|
|
22151
|
+
*/
|
|
22152
|
+
folder_id?: string;
|
|
22153
|
+
|
|
22154
|
+
/**
|
|
22155
|
+
* Move the bookmark to this folder (empty string removes the folder)
|
|
22156
|
+
*/
|
|
22157
|
+
new_folder_id?: string;
|
|
22158
|
+
|
|
22159
|
+
user_id?: string;
|
|
22160
|
+
|
|
22161
|
+
/**
|
|
22162
|
+
* Custom data for the bookmark
|
|
22163
|
+
*/
|
|
22164
|
+
custom?: Record<string, any>;
|
|
22165
|
+
|
|
22166
|
+
new_folder?: AddFolderRequest;
|
|
22167
|
+
|
|
22168
|
+
user?: UserRequest;
|
|
22169
|
+
}
|
|
22170
|
+
|
|
22171
|
+
export interface UpdateCommentBookmarkResponse {
|
|
22172
|
+
duration: string;
|
|
22173
|
+
|
|
22174
|
+
bookmark: BookmarkResponse;
|
|
22175
|
+
}
|
|
22176
|
+
|
|
21932
22177
|
export interface UpdateCommentPartialRequest {
|
|
21933
22178
|
/**
|
|
21934
22179
|
* @deprecated
|
|
@@ -21936,6 +22181,11 @@ export interface UpdateCommentPartialRequest {
|
|
|
21936
22181
|
*/
|
|
21937
22182
|
copy_custom_to_notification?: boolean;
|
|
21938
22183
|
|
|
22184
|
+
/**
|
|
22185
|
+
* If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
22186
|
+
*/
|
|
22187
|
+
force_moderation?: boolean;
|
|
22188
|
+
|
|
21939
22189
|
/**
|
|
21940
22190
|
* Whether to handle mention notification changes
|
|
21941
22191
|
*/
|
|
@@ -21984,6 +22234,11 @@ export interface UpdateCommentRequest {
|
|
|
21984
22234
|
*/
|
|
21985
22235
|
copy_custom_to_notification?: boolean;
|
|
21986
22236
|
|
|
22237
|
+
/**
|
|
22238
|
+
* If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
22239
|
+
*/
|
|
22240
|
+
force_moderation?: boolean;
|
|
22241
|
+
|
|
21987
22242
|
/**
|
|
21988
22243
|
* If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
|
|
21989
22244
|
*/
|
|
@@ -22134,6 +22389,11 @@ export interface UpdateFeedMembersResponse {
|
|
|
22134
22389
|
}
|
|
22135
22390
|
|
|
22136
22391
|
export interface UpdateFeedRequest {
|
|
22392
|
+
/**
|
|
22393
|
+
* If true, removes the geographic location from the feed
|
|
22394
|
+
*/
|
|
22395
|
+
clear_location?: boolean;
|
|
22396
|
+
|
|
22137
22397
|
/**
|
|
22138
22398
|
* ID of the new feed creator (owner)
|
|
22139
22399
|
*/
|
|
@@ -22163,6 +22423,8 @@ export interface UpdateFeedRequest {
|
|
|
22163
22423
|
* Custom data for the feed
|
|
22164
22424
|
*/
|
|
22165
22425
|
custom?: Record<string, any>;
|
|
22426
|
+
|
|
22427
|
+
location?: Location;
|
|
22166
22428
|
}
|
|
22167
22429
|
|
|
22168
22430
|
export interface UpdateFeedResponse {
|
|
@@ -22228,6 +22490,11 @@ export interface UpdateFollowRequest {
|
|
|
22228
22490
|
*/
|
|
22229
22491
|
create_notification_activity?: boolean;
|
|
22230
22492
|
|
|
22493
|
+
/**
|
|
22494
|
+
* If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
|
|
22495
|
+
*/
|
|
22496
|
+
create_users?: boolean;
|
|
22497
|
+
|
|
22231
22498
|
/**
|
|
22232
22499
|
* If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
22233
22500
|
*/
|
|
@@ -22750,6 +23017,11 @@ export interface UpsertActivitiesRequest {
|
|
|
22750
23017
|
* If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
22751
23018
|
*/
|
|
22752
23019
|
enrich_own_fields?: boolean;
|
|
23020
|
+
|
|
23021
|
+
/**
|
|
23022
|
+
* If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
23023
|
+
*/
|
|
23024
|
+
force_moderation?: boolean;
|
|
22753
23025
|
}
|
|
22754
23026
|
|
|
22755
23027
|
export interface UpsertActivitiesResponse {
|
|
@@ -22798,6 +23070,9 @@ export interface UpsertConfigRequest {
|
|
|
22798
23070
|
*/
|
|
22799
23071
|
team?: string;
|
|
22800
23072
|
|
|
23073
|
+
/**
|
|
23074
|
+
* Optional user ID to associate with the audit log entry
|
|
23075
|
+
*/
|
|
22801
23076
|
user_id?: string;
|
|
22802
23077
|
|
|
22803
23078
|
ai_image_config?: AIImageConfig;
|
|
@@ -22861,29 +23136,69 @@ export interface UpsertExternalStorageResponse {
|
|
|
22861
23136
|
}
|
|
22862
23137
|
|
|
22863
23138
|
export interface UpsertModerationRuleRequest {
|
|
23139
|
+
/**
|
|
23140
|
+
* Unique rule name
|
|
23141
|
+
*/
|
|
22864
23142
|
name: string;
|
|
22865
23143
|
|
|
23144
|
+
/**
|
|
23145
|
+
* Type of rule: user, content, or call
|
|
23146
|
+
*/
|
|
22866
23147
|
rule_type: string;
|
|
22867
23148
|
|
|
23149
|
+
/**
|
|
23150
|
+
* Duration before rule can trigger again (e.g. 24h, 7d)
|
|
23151
|
+
*/
|
|
22868
23152
|
cooldown_period?: string;
|
|
22869
23153
|
|
|
23154
|
+
/**
|
|
23155
|
+
* Optional description of the rule
|
|
23156
|
+
*/
|
|
22870
23157
|
description?: string;
|
|
22871
23158
|
|
|
23159
|
+
/**
|
|
23160
|
+
* Whether the rule is active
|
|
23161
|
+
*/
|
|
22872
23162
|
enabled?: boolean;
|
|
22873
23163
|
|
|
23164
|
+
/**
|
|
23165
|
+
* Logical operator between conditions/groups: AND or OR
|
|
23166
|
+
*/
|
|
22874
23167
|
logic?: string;
|
|
22875
23168
|
|
|
23169
|
+
/**
|
|
23170
|
+
* Team scope for the rule
|
|
23171
|
+
*/
|
|
22876
23172
|
team?: string;
|
|
22877
23173
|
|
|
23174
|
+
/**
|
|
23175
|
+
* Optional user ID to associate with the audit log entry
|
|
23176
|
+
*/
|
|
23177
|
+
user_id?: string;
|
|
23178
|
+
|
|
23179
|
+
/**
|
|
23180
|
+
* Escalation sequences for call rules
|
|
23181
|
+
*/
|
|
22878
23182
|
action_sequences?: CallRuleActionSequence[];
|
|
22879
23183
|
|
|
23184
|
+
/**
|
|
23185
|
+
* Flat list of conditions (legacy)
|
|
23186
|
+
*/
|
|
22880
23187
|
conditions?: RuleBuilderCondition[];
|
|
22881
23188
|
|
|
23189
|
+
/**
|
|
23190
|
+
* List of config keys this rule applies to
|
|
23191
|
+
*/
|
|
22882
23192
|
config_keys?: string[];
|
|
22883
23193
|
|
|
23194
|
+
/**
|
|
23195
|
+
* Nested condition groups
|
|
23196
|
+
*/
|
|
22884
23197
|
groups?: RuleBuilderConditionGroup[];
|
|
22885
23198
|
|
|
22886
23199
|
action?: RuleBuilderAction;
|
|
23200
|
+
|
|
23201
|
+
user?: UserRequest;
|
|
22887
23202
|
}
|
|
22888
23203
|
|
|
22889
23204
|
export interface UpsertModerationRuleResponse {
|
|
@@ -23612,6 +23927,8 @@ export interface UserResponse {
|
|
|
23612
23927
|
*/
|
|
23613
23928
|
ban_expires?: Date;
|
|
23614
23929
|
|
|
23930
|
+
bypass_moderation?: boolean;
|
|
23931
|
+
|
|
23615
23932
|
/**
|
|
23616
23933
|
* Date of deactivation
|
|
23617
23934
|
*/
|