@stream-io/node-sdk 0.7.43 → 0.7.45
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 +137 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +137 -16
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +2 -1
- package/dist/src/gen/common/CommonApi.d.ts +4 -4
- package/dist/src/gen/feeds/FeedApi.d.ts +1 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +9 -1
- package/dist/src/gen/models/index.d.ts +205 -5
- package/dist/src/gen/moderation/ModerationApi.d.ts +2 -1
- package/dist/src/gen/video/VideoApi.d.ts +2 -1
- package/package.json +26 -26
- package/src/ApiClient.ts +3 -3
- package/src/gen/chat/ChatApi.ts +30 -0
- package/src/gen/common/CommonApi.ts +27 -12
- package/src/gen/feeds/FeedApi.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +119 -2
- package/src/gen/model-decoders/decoders.ts +31 -7
- package/src/gen/models/index.ts +372 -9
- package/src/gen/moderation/ModerationApi.ts +25 -0
- package/src/gen/video/VideoApi.ts +35 -2
package/src/gen/models/index.ts
CHANGED
|
@@ -8,6 +8,16 @@ export interface AIImageConfig {
|
|
|
8
8
|
rules?: AWSRekognitionRule[];
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export interface AIImageLabelDefinition {
|
|
12
|
+
description: string;
|
|
13
|
+
|
|
14
|
+
group: string;
|
|
15
|
+
|
|
16
|
+
key: string;
|
|
17
|
+
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
11
21
|
export interface AITextConfig {
|
|
12
22
|
async?: boolean;
|
|
13
23
|
|
|
@@ -131,7 +141,7 @@ export interface AWSRekognitionRule {
|
|
|
131
141
|
|
|
132
142
|
min_confidence: number;
|
|
133
143
|
|
|
134
|
-
subclassifications?: Record<string,
|
|
144
|
+
subclassifications?: Record<string, any>;
|
|
135
145
|
}
|
|
136
146
|
|
|
137
147
|
export interface AcceptFeedMemberInviteRequest {
|
|
@@ -617,6 +627,8 @@ export interface ActivityResponse {
|
|
|
617
627
|
|
|
618
628
|
location?: ActivityLocation;
|
|
619
629
|
|
|
630
|
+
metrics?: Record<string, number>;
|
|
631
|
+
|
|
620
632
|
moderation?: ModerationV2Response;
|
|
621
633
|
|
|
622
634
|
notification_context?: NotificationContext;
|
|
@@ -735,6 +747,8 @@ export interface AddActivityRequest {
|
|
|
735
747
|
|
|
736
748
|
create_notification_activity?: boolean;
|
|
737
749
|
|
|
750
|
+
enrich_own_fields?: boolean;
|
|
751
|
+
|
|
738
752
|
expires_at?: string;
|
|
739
753
|
|
|
740
754
|
id?: string;
|
|
@@ -1047,6 +1061,8 @@ export interface AppResponseFields {
|
|
|
1047
1061
|
|
|
1048
1062
|
before_message_send_hook_url?: string;
|
|
1049
1063
|
|
|
1064
|
+
moderation_s3_image_access_role_arn?: string;
|
|
1065
|
+
|
|
1050
1066
|
revoke_tokens_issued_before?: Date;
|
|
1051
1067
|
|
|
1052
1068
|
allowed_flag_reasons?: string[];
|
|
@@ -1055,6 +1071,8 @@ export interface AppResponseFields {
|
|
|
1055
1071
|
|
|
1056
1072
|
image_moderation_labels?: string[];
|
|
1057
1073
|
|
|
1074
|
+
activity_metrics_config?: Record<string, number>;
|
|
1075
|
+
|
|
1058
1076
|
datadog_info?: DataDogInfo;
|
|
1059
1077
|
|
|
1060
1078
|
moderation_dashboard_preferences?: ModerationDashboardPreferences;
|
|
@@ -1431,6 +1449,8 @@ export interface BackstageSettingsResponse {
|
|
|
1431
1449
|
export interface BanActionRequestPayload {
|
|
1432
1450
|
channel_ban_only?: boolean;
|
|
1433
1451
|
|
|
1452
|
+
channel_cid?: string;
|
|
1453
|
+
|
|
1434
1454
|
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
1435
1455
|
|
|
1436
1456
|
ip_ban?: boolean;
|
|
@@ -1515,6 +1535,8 @@ export interface BlockListConfig {
|
|
|
1515
1535
|
|
|
1516
1536
|
enabled?: boolean;
|
|
1517
1537
|
|
|
1538
|
+
match_substring?: boolean;
|
|
1539
|
+
|
|
1518
1540
|
rules?: BlockListRule[];
|
|
1519
1541
|
}
|
|
1520
1542
|
|
|
@@ -1920,6 +1942,8 @@ export interface CallEndedEvent {
|
|
|
1920
1942
|
|
|
1921
1943
|
reason?: string;
|
|
1922
1944
|
|
|
1945
|
+
members?: MemberResponse[];
|
|
1946
|
+
|
|
1923
1947
|
user?: UserResponse;
|
|
1924
1948
|
}
|
|
1925
1949
|
|
|
@@ -3065,6 +3089,12 @@ export interface ChannelBatchCompletedEvent {
|
|
|
3065
3089
|
received_at?: Date;
|
|
3066
3090
|
}
|
|
3067
3091
|
|
|
3092
|
+
export interface ChannelBatchMemberRequest {
|
|
3093
|
+
user_id: string;
|
|
3094
|
+
|
|
3095
|
+
channel_role?: string;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3068
3098
|
export interface ChannelBatchStartedEvent {
|
|
3069
3099
|
batch_created_at: Date;
|
|
3070
3100
|
|
|
@@ -3089,6 +3119,34 @@ export interface ChannelBatchStartedEvent {
|
|
|
3089
3119
|
received_at?: Date;
|
|
3090
3120
|
}
|
|
3091
3121
|
|
|
3122
|
+
export interface ChannelBatchUpdateRequest {
|
|
3123
|
+
operation:
|
|
3124
|
+
| 'addMembers'
|
|
3125
|
+
| 'removeMembers'
|
|
3126
|
+
| 'inviteMembers'
|
|
3127
|
+
| 'invites'
|
|
3128
|
+
| 'assignRoles'
|
|
3129
|
+
| 'addModerators'
|
|
3130
|
+
| 'demoteModerators'
|
|
3131
|
+
| 'hide'
|
|
3132
|
+
| 'show'
|
|
3133
|
+
| 'archive'
|
|
3134
|
+
| 'unarchive'
|
|
3135
|
+
| 'updateData';
|
|
3136
|
+
|
|
3137
|
+
filter: Record<string, any>;
|
|
3138
|
+
|
|
3139
|
+
members?: ChannelBatchMemberRequest[];
|
|
3140
|
+
|
|
3141
|
+
data?: ChannelDataUpdate;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
export interface ChannelBatchUpdateResponse {
|
|
3145
|
+
duration: string;
|
|
3146
|
+
|
|
3147
|
+
task_id?: string;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3092
3150
|
export interface ChannelConfig {
|
|
3093
3151
|
automod: 'disabled' | 'simple' | 'AI';
|
|
3094
3152
|
|
|
@@ -3159,6 +3217,8 @@ export interface ChannelConfig {
|
|
|
3159
3217
|
blocklists?: BlockListOptions[];
|
|
3160
3218
|
|
|
3161
3219
|
automod_thresholds?: Thresholds;
|
|
3220
|
+
|
|
3221
|
+
chat_preferences?: ChatPreferences;
|
|
3162
3222
|
}
|
|
3163
3223
|
|
|
3164
3224
|
export interface ChannelConfigWithInfo {
|
|
@@ -3232,6 +3292,8 @@ export interface ChannelConfigWithInfo {
|
|
|
3232
3292
|
|
|
3233
3293
|
automod_thresholds?: Thresholds;
|
|
3234
3294
|
|
|
3295
|
+
chat_preferences?: ChatPreferences;
|
|
3296
|
+
|
|
3235
3297
|
grants?: Record<string, string[]>;
|
|
3236
3298
|
}
|
|
3237
3299
|
|
|
@@ -3263,6 +3325,22 @@ export interface ChannelCreatedEvent {
|
|
|
3263
3325
|
user?: UserResponseCommonFields;
|
|
3264
3326
|
}
|
|
3265
3327
|
|
|
3328
|
+
export interface ChannelDataUpdate {
|
|
3329
|
+
auto_translation_enabled?: boolean;
|
|
3330
|
+
|
|
3331
|
+
auto_translation_language?: string;
|
|
3332
|
+
|
|
3333
|
+
disabled?: boolean;
|
|
3334
|
+
|
|
3335
|
+
frozen?: boolean;
|
|
3336
|
+
|
|
3337
|
+
team?: string;
|
|
3338
|
+
|
|
3339
|
+
config_overrides?: ChannelConfig;
|
|
3340
|
+
|
|
3341
|
+
custom?: Record<string, any>;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3266
3344
|
export interface ChannelDeletedEvent {
|
|
3267
3345
|
created_at: Date;
|
|
3268
3346
|
|
|
@@ -3549,6 +3627,8 @@ export interface ChannelPushPreferencesResponse {
|
|
|
3549
3627
|
chat_level?: string;
|
|
3550
3628
|
|
|
3551
3629
|
disabled_until?: Date;
|
|
3630
|
+
|
|
3631
|
+
chat_preferences?: ChatPreferencesResponse;
|
|
3552
3632
|
}
|
|
3553
3633
|
|
|
3554
3634
|
export interface ChannelResponse {
|
|
@@ -3781,6 +3861,8 @@ export interface ChannelTypeConfig {
|
|
|
3781
3861
|
blocklists?: BlockListOptions[];
|
|
3782
3862
|
|
|
3783
3863
|
automod_thresholds?: Thresholds;
|
|
3864
|
+
|
|
3865
|
+
chat_preferences?: ChatPreferences;
|
|
3784
3866
|
}
|
|
3785
3867
|
|
|
3786
3868
|
export interface ChannelUnFrozenEvent {
|
|
@@ -3879,6 +3961,56 @@ export interface ChatActivityStatsResponse {
|
|
|
3879
3961
|
messages?: MessageStatsResponse;
|
|
3880
3962
|
}
|
|
3881
3963
|
|
|
3964
|
+
export interface ChatPreferences {
|
|
3965
|
+
channel_mentions?: string;
|
|
3966
|
+
|
|
3967
|
+
default_preference?: string;
|
|
3968
|
+
|
|
3969
|
+
direct_mentions?: string;
|
|
3970
|
+
|
|
3971
|
+
distinct_channel_messages?: string;
|
|
3972
|
+
|
|
3973
|
+
group_mentions?: string;
|
|
3974
|
+
|
|
3975
|
+
here_mentions?: string;
|
|
3976
|
+
|
|
3977
|
+
role_mentions?: string;
|
|
3978
|
+
|
|
3979
|
+
thread_replies?: string;
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3982
|
+
export interface ChatPreferencesInput {
|
|
3983
|
+
channel_mentions?: 'all' | 'none';
|
|
3984
|
+
|
|
3985
|
+
default_preference?: 'all' | 'none';
|
|
3986
|
+
|
|
3987
|
+
direct_mentions?: 'all' | 'none';
|
|
3988
|
+
|
|
3989
|
+
group_mentions?: 'all' | 'none';
|
|
3990
|
+
|
|
3991
|
+
here_mentions?: 'all' | 'none';
|
|
3992
|
+
|
|
3993
|
+
role_mentions?: 'all' | 'none';
|
|
3994
|
+
|
|
3995
|
+
thread_replies?: 'all' | 'none';
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
export interface ChatPreferencesResponse {
|
|
3999
|
+
channel_mentions?: string;
|
|
4000
|
+
|
|
4001
|
+
default_preference?: string;
|
|
4002
|
+
|
|
4003
|
+
direct_mentions?: string;
|
|
4004
|
+
|
|
4005
|
+
group_mentions?: string;
|
|
4006
|
+
|
|
4007
|
+
here_mentions?: string;
|
|
4008
|
+
|
|
4009
|
+
role_mentions?: string;
|
|
4010
|
+
|
|
4011
|
+
thread_replies?: string;
|
|
4012
|
+
}
|
|
4013
|
+
|
|
3882
4014
|
export interface CheckExternalStorageResponse {
|
|
3883
4015
|
duration: string;
|
|
3884
4016
|
|
|
@@ -3964,6 +4096,20 @@ export interface CheckResponse {
|
|
|
3964
4096
|
task_id?: string;
|
|
3965
4097
|
|
|
3966
4098
|
item?: ReviewQueueItemResponse;
|
|
4099
|
+
|
|
4100
|
+
triggered_rule?: TriggeredRuleResponse;
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
export interface CheckS3AccessRequest {
|
|
4104
|
+
s3_url?: string;
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
export interface CheckS3AccessResponse {
|
|
4108
|
+
duration: string;
|
|
4109
|
+
|
|
4110
|
+
success: boolean;
|
|
4111
|
+
|
|
4112
|
+
message?: string;
|
|
3967
4113
|
}
|
|
3968
4114
|
|
|
3969
4115
|
export interface CheckSNSRequest {
|
|
@@ -4236,6 +4382,24 @@ export interface CommentResponse {
|
|
|
4236
4382
|
reaction_groups?: Record<string, FeedsReactionGroupResponse>;
|
|
4237
4383
|
}
|
|
4238
4384
|
|
|
4385
|
+
export interface CommentRestoredEvent {
|
|
4386
|
+
created_at: Date;
|
|
4387
|
+
|
|
4388
|
+
fid: string;
|
|
4389
|
+
|
|
4390
|
+
comment: CommentResponse;
|
|
4391
|
+
|
|
4392
|
+
custom: Record<string, any>;
|
|
4393
|
+
|
|
4394
|
+
type: string;
|
|
4395
|
+
|
|
4396
|
+
feed_visibility?: string;
|
|
4397
|
+
|
|
4398
|
+
received_at?: Date;
|
|
4399
|
+
|
|
4400
|
+
user?: UserResponseCommonFields;
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4239
4403
|
export interface CommentUpdatedEvent {
|
|
4240
4404
|
created_at: Date;
|
|
4241
4405
|
|
|
@@ -4269,6 +4433,8 @@ export interface ConfigOverridesRequest {
|
|
|
4269
4433
|
|
|
4270
4434
|
max_message_length?: number;
|
|
4271
4435
|
|
|
4436
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
4437
|
+
|
|
4272
4438
|
quotes?: boolean;
|
|
4273
4439
|
|
|
4274
4440
|
reactions?: boolean;
|
|
@@ -4287,6 +4453,8 @@ export interface ConfigOverridesRequest {
|
|
|
4287
4453
|
|
|
4288
4454
|
commands?: string[];
|
|
4289
4455
|
|
|
4456
|
+
chat_preferences?: ChatPreferences;
|
|
4457
|
+
|
|
4290
4458
|
grants?: Record<string, string[]>;
|
|
4291
4459
|
}
|
|
4292
4460
|
|
|
@@ -4303,6 +4471,8 @@ export interface ConfigResponse {
|
|
|
4303
4471
|
|
|
4304
4472
|
supported_video_call_harm_types: string[];
|
|
4305
4473
|
|
|
4474
|
+
ai_image_label_definitions?: AIImageLabelDefinition[];
|
|
4475
|
+
|
|
4306
4476
|
ai_image_config?: AIImageConfig;
|
|
4307
4477
|
|
|
4308
4478
|
ai_image_subclassifications?: Record<string, string[]>;
|
|
@@ -4463,6 +4633,8 @@ export interface CreateChannelTypeRequest {
|
|
|
4463
4633
|
|
|
4464
4634
|
permissions?: PolicyRequest[];
|
|
4465
4635
|
|
|
4636
|
+
chat_preferences?: ChatPreferences;
|
|
4637
|
+
|
|
4466
4638
|
grants?: Record<string, string[]>;
|
|
4467
4639
|
}
|
|
4468
4640
|
|
|
@@ -4542,6 +4714,8 @@ export interface CreateChannelTypeResponse {
|
|
|
4542
4714
|
blocklists?: BlockListOptions[];
|
|
4543
4715
|
|
|
4544
4716
|
automod_thresholds?: Thresholds;
|
|
4717
|
+
|
|
4718
|
+
chat_preferences?: ChatPreferences;
|
|
4545
4719
|
}
|
|
4546
4720
|
|
|
4547
4721
|
export interface CreateCollectionsRequest {
|
|
@@ -4659,6 +4833,8 @@ export interface CreateFeedViewResponse {
|
|
|
4659
4833
|
|
|
4660
4834
|
export interface CreateFeedsBatchRequest {
|
|
4661
4835
|
feeds: FeedRequest[];
|
|
4836
|
+
|
|
4837
|
+
enrich_own_fields?: boolean;
|
|
4662
4838
|
}
|
|
4663
4839
|
|
|
4664
4840
|
export interface CreateFeedsBatchResponse {
|
|
@@ -4813,6 +4989,10 @@ export interface CreateSIPTrunkRequest {
|
|
|
4813
4989
|
name: string;
|
|
4814
4990
|
|
|
4815
4991
|
numbers: string[];
|
|
4992
|
+
|
|
4993
|
+
password?: string;
|
|
4994
|
+
|
|
4995
|
+
allowed_ips?: string[];
|
|
4816
4996
|
}
|
|
4817
4997
|
|
|
4818
4998
|
export interface CreateSIPTrunkResponse {
|
|
@@ -6322,6 +6502,8 @@ export interface FilterConfigResponse {
|
|
|
6322
6502
|
llm_labels: string[];
|
|
6323
6503
|
|
|
6324
6504
|
ai_text_labels?: string[];
|
|
6505
|
+
|
|
6506
|
+
config_keys?: string[];
|
|
6325
6507
|
}
|
|
6326
6508
|
|
|
6327
6509
|
export interface FirebaseConfig {
|
|
@@ -6428,6 +6610,8 @@ export interface FlagUserOptions {
|
|
|
6428
6610
|
|
|
6429
6611
|
export interface FollowBatchRequest {
|
|
6430
6612
|
follows: FollowRequest[];
|
|
6613
|
+
|
|
6614
|
+
enrich_own_fields?: boolean;
|
|
6431
6615
|
}
|
|
6432
6616
|
|
|
6433
6617
|
export interface FollowBatchResponse {
|
|
@@ -6485,6 +6669,8 @@ export interface FollowRequest {
|
|
|
6485
6669
|
|
|
6486
6670
|
create_notification_activity?: boolean;
|
|
6487
6671
|
|
|
6672
|
+
enrich_own_fields?: boolean;
|
|
6673
|
+
|
|
6488
6674
|
push_preference?: 'all' | 'none';
|
|
6489
6675
|
|
|
6490
6676
|
skip_push?: boolean;
|
|
@@ -6876,6 +7062,8 @@ export interface GetChannelTypeResponse {
|
|
|
6876
7062
|
blocklists?: BlockListOptions[];
|
|
6877
7063
|
|
|
6878
7064
|
automod_thresholds?: Thresholds;
|
|
7065
|
+
|
|
7066
|
+
chat_preferences?: ChatPreferences;
|
|
6879
7067
|
}
|
|
6880
7068
|
|
|
6881
7069
|
export interface GetCommandResponse {
|
|
@@ -8561,6 +8749,8 @@ export interface MessageRequest {
|
|
|
8561
8749
|
|
|
8562
8750
|
attachments?: Attachment[];
|
|
8563
8751
|
|
|
8752
|
+
mentioned_group_ids?: string[];
|
|
8753
|
+
|
|
8564
8754
|
mentioned_roles?: string[];
|
|
8565
8755
|
|
|
8566
8756
|
mentioned_users?: string[];
|
|
@@ -8643,6 +8833,8 @@ export interface MessageResponse {
|
|
|
8643
8833
|
|
|
8644
8834
|
show_in_channel?: boolean;
|
|
8645
8835
|
|
|
8836
|
+
mentioned_group_ids?: string[];
|
|
8837
|
+
|
|
8646
8838
|
mentioned_roles?: string[];
|
|
8647
8839
|
|
|
8648
8840
|
thread_participants?: UserResponse[];
|
|
@@ -8829,6 +9021,8 @@ export interface MessageWithChannelResponse {
|
|
|
8829
9021
|
|
|
8830
9022
|
show_in_channel?: boolean;
|
|
8831
9023
|
|
|
9024
|
+
mentioned_group_ids?: string[];
|
|
9025
|
+
|
|
8832
9026
|
mentioned_roles?: string[];
|
|
8833
9027
|
|
|
8834
9028
|
thread_participants?: UserResponse[];
|
|
@@ -8987,6 +9181,8 @@ export interface ModerationDashboardPreferences {
|
|
|
8987
9181
|
|
|
8988
9182
|
allowed_moderation_action_reasons?: string[];
|
|
8989
9183
|
|
|
9184
|
+
keyframe_classifications_map?: Record<string, Record<string, boolean>>;
|
|
9185
|
+
|
|
8990
9186
|
overview_dashboard?: OverviewDashboardConfig;
|
|
8991
9187
|
}
|
|
8992
9188
|
|
|
@@ -9847,6 +10043,8 @@ export interface PermissionRequestEvent {
|
|
|
9847
10043
|
}
|
|
9848
10044
|
|
|
9849
10045
|
export interface PinActivityRequest {
|
|
10046
|
+
enrich_own_fields?: boolean;
|
|
10047
|
+
|
|
9850
10048
|
user_id?: string;
|
|
9851
10049
|
|
|
9852
10050
|
user?: UserRequest;
|
|
@@ -10155,6 +10353,8 @@ export interface PushPreferenceInput {
|
|
|
10155
10353
|
|
|
10156
10354
|
user_id?: string;
|
|
10157
10355
|
|
|
10356
|
+
chat_preferences?: ChatPreferencesInput;
|
|
10357
|
+
|
|
10158
10358
|
feeds_preferences?: FeedsPreferences;
|
|
10159
10359
|
}
|
|
10160
10360
|
|
|
@@ -10167,6 +10367,8 @@ export interface PushPreferencesResponse {
|
|
|
10167
10367
|
|
|
10168
10368
|
feeds_level?: string;
|
|
10169
10369
|
|
|
10370
|
+
chat_preferences?: ChatPreferencesResponse;
|
|
10371
|
+
|
|
10170
10372
|
feeds_preferences?: FeedsPreferencesResponse;
|
|
10171
10373
|
}
|
|
10172
10374
|
|
|
@@ -10381,6 +10583,8 @@ export interface QualityScoreReportResponse {
|
|
|
10381
10583
|
}
|
|
10382
10584
|
|
|
10383
10585
|
export interface QueryActivitiesRequest {
|
|
10586
|
+
enrich_own_fields?: boolean;
|
|
10587
|
+
|
|
10384
10588
|
include_expired_activities?: boolean;
|
|
10385
10589
|
|
|
10386
10590
|
include_private_activities?: boolean;
|
|
@@ -10529,6 +10733,8 @@ export interface QueryBookmarkFoldersResponse {
|
|
|
10529
10733
|
}
|
|
10530
10734
|
|
|
10531
10735
|
export interface QueryBookmarksRequest {
|
|
10736
|
+
enrich_own_fields?: boolean;
|
|
10737
|
+
|
|
10532
10738
|
limit?: number;
|
|
10533
10739
|
|
|
10534
10740
|
next?: string;
|
|
@@ -10788,6 +10994,32 @@ export interface QueryChannelsResponse {
|
|
|
10788
10994
|
predefined_filter?: ParsedPredefinedFilterResponse;
|
|
10789
10995
|
}
|
|
10790
10996
|
|
|
10997
|
+
export interface QueryCollectionsRequest {
|
|
10998
|
+
limit?: number;
|
|
10999
|
+
|
|
11000
|
+
next?: string;
|
|
11001
|
+
|
|
11002
|
+
prev?: string;
|
|
11003
|
+
|
|
11004
|
+
user_id?: string;
|
|
11005
|
+
|
|
11006
|
+
sort?: SortParamRequest[];
|
|
11007
|
+
|
|
11008
|
+
filter?: Record<string, any>;
|
|
11009
|
+
|
|
11010
|
+
user?: UserRequest;
|
|
11011
|
+
}
|
|
11012
|
+
|
|
11013
|
+
export interface QueryCollectionsResponse {
|
|
11014
|
+
duration: string;
|
|
11015
|
+
|
|
11016
|
+
collections: CollectionResponse[];
|
|
11017
|
+
|
|
11018
|
+
next?: string;
|
|
11019
|
+
|
|
11020
|
+
prev?: string;
|
|
11021
|
+
}
|
|
11022
|
+
|
|
10791
11023
|
export interface QueryCommentReactionsRequest {
|
|
10792
11024
|
limit?: number;
|
|
10793
11025
|
|
|
@@ -10813,6 +11045,8 @@ export interface QueryCommentReactionsResponse {
|
|
|
10813
11045
|
export interface QueryCommentsRequest {
|
|
10814
11046
|
filter: Record<string, any>;
|
|
10815
11047
|
|
|
11048
|
+
id_around?: string;
|
|
11049
|
+
|
|
10816
11050
|
limit?: number;
|
|
10817
11051
|
|
|
10818
11052
|
next?: string;
|
|
@@ -10820,6 +11054,10 @@ export interface QueryCommentsRequest {
|
|
|
10820
11054
|
prev?: string;
|
|
10821
11055
|
|
|
10822
11056
|
sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
|
|
11057
|
+
|
|
11058
|
+
user_id?: string;
|
|
11059
|
+
|
|
11060
|
+
user?: UserRequest;
|
|
10823
11061
|
}
|
|
10824
11062
|
|
|
10825
11063
|
export interface QueryCommentsResponse {
|
|
@@ -10897,6 +11135,8 @@ export interface QueryFeedModerationTemplatesResponse {
|
|
|
10897
11135
|
}
|
|
10898
11136
|
|
|
10899
11137
|
export interface QueryFeedsRequest {
|
|
11138
|
+
enrich_own_fields?: boolean;
|
|
11139
|
+
|
|
10900
11140
|
limit?: number;
|
|
10901
11141
|
|
|
10902
11142
|
next?: string;
|
|
@@ -11159,20 +11399,28 @@ export interface QueryModerationRulesRequest {
|
|
|
11159
11399
|
export interface QueryModerationRulesResponse {
|
|
11160
11400
|
duration: string;
|
|
11161
11401
|
|
|
11402
|
+
ai_image_label_definitions: AIImageLabelDefinition[];
|
|
11403
|
+
|
|
11162
11404
|
closed_caption_labels: string[];
|
|
11163
11405
|
|
|
11164
11406
|
keyframe_labels: string[];
|
|
11165
11407
|
|
|
11166
11408
|
rules: ModerationRuleV2Response[];
|
|
11167
11409
|
|
|
11410
|
+
ai_image_subclassifications: Record<string, string[]>;
|
|
11411
|
+
|
|
11168
11412
|
default_llm_labels: Record<string, string>;
|
|
11169
11413
|
|
|
11414
|
+
keyframe_label_classifications: Record<string, string[]>;
|
|
11415
|
+
|
|
11170
11416
|
next?: string;
|
|
11171
11417
|
|
|
11172
11418
|
prev?: string;
|
|
11173
11419
|
}
|
|
11174
11420
|
|
|
11175
11421
|
export interface QueryPinnedActivitiesRequest {
|
|
11422
|
+
enrich_own_fields?: boolean;
|
|
11423
|
+
|
|
11176
11424
|
limit?: number;
|
|
11177
11425
|
|
|
11178
11426
|
next?: string;
|
|
@@ -11778,10 +12026,6 @@ export interface ReadCollectionsResponse {
|
|
|
11778
12026
|
duration: string;
|
|
11779
12027
|
|
|
11780
12028
|
collections: CollectionResponse[];
|
|
11781
|
-
|
|
11782
|
-
next?: string;
|
|
11783
|
-
|
|
11784
|
-
prev?: string;
|
|
11785
12029
|
}
|
|
11786
12030
|
|
|
11787
12031
|
export interface ReadReceiptsResponse {
|
|
@@ -11970,6 +12214,12 @@ export interface ReminderUpdatedEvent {
|
|
|
11970
12214
|
reminder?: ReminderResponseData;
|
|
11971
12215
|
}
|
|
11972
12216
|
|
|
12217
|
+
export interface RemoveUserGroupMembersRequest {
|
|
12218
|
+
member_ids: string[];
|
|
12219
|
+
|
|
12220
|
+
team_id?: string;
|
|
12221
|
+
}
|
|
12222
|
+
|
|
11973
12223
|
export interface RemoveUserGroupMembersResponse {
|
|
11974
12224
|
duration: string;
|
|
11975
12225
|
|
|
@@ -12012,15 +12262,39 @@ export interface ResolutionMetricsTimeSeries {
|
|
|
12012
12262
|
width?: MetricTimeSeries;
|
|
12013
12263
|
}
|
|
12014
12264
|
|
|
12015
|
-
export interface
|
|
12265
|
+
export interface ResolveSipAuthRequest {
|
|
12016
12266
|
sip_caller_number: string;
|
|
12017
12267
|
|
|
12018
12268
|
sip_trunk_number: string;
|
|
12019
12269
|
|
|
12020
|
-
|
|
12270
|
+
from_host?: string;
|
|
12271
|
+
|
|
12272
|
+
source_ip?: string;
|
|
12273
|
+
}
|
|
12274
|
+
|
|
12275
|
+
export interface ResolveSipAuthResponse {
|
|
12276
|
+
auth_result: string;
|
|
12277
|
+
|
|
12278
|
+
duration: string;
|
|
12279
|
+
|
|
12280
|
+
password?: string;
|
|
12281
|
+
|
|
12282
|
+
trunk_id?: string;
|
|
12283
|
+
|
|
12284
|
+
username?: string;
|
|
12285
|
+
}
|
|
12286
|
+
|
|
12287
|
+
export interface ResolveSipInboundRequest {
|
|
12288
|
+
sip_caller_number: string;
|
|
12289
|
+
|
|
12290
|
+
sip_trunk_number: string;
|
|
12021
12291
|
|
|
12022
12292
|
routing_number?: string;
|
|
12023
12293
|
|
|
12294
|
+
trunk_id?: string;
|
|
12295
|
+
|
|
12296
|
+
challenge?: SIPChallengeRequest;
|
|
12297
|
+
|
|
12024
12298
|
sip_headers?: Record<string, string>;
|
|
12025
12299
|
}
|
|
12026
12300
|
|
|
@@ -12054,6 +12328,20 @@ export interface RestoreActivityResponse {
|
|
|
12054
12328
|
activity: ActivityResponse;
|
|
12055
12329
|
}
|
|
12056
12330
|
|
|
12331
|
+
export interface RestoreCommentRequest {
|
|
12332
|
+
user_id?: string;
|
|
12333
|
+
|
|
12334
|
+
user?: UserRequest;
|
|
12335
|
+
}
|
|
12336
|
+
|
|
12337
|
+
export interface RestoreCommentResponse {
|
|
12338
|
+
duration: string;
|
|
12339
|
+
|
|
12340
|
+
activity: ActivityResponse;
|
|
12341
|
+
|
|
12342
|
+
comment: CommentResponse;
|
|
12343
|
+
}
|
|
12344
|
+
|
|
12057
12345
|
export interface RestoreFeedGroupRequest {}
|
|
12058
12346
|
|
|
12059
12347
|
export interface RestoreFeedGroupResponse {
|
|
@@ -12215,6 +12503,8 @@ export interface Role {
|
|
|
12215
12503
|
}
|
|
12216
12504
|
|
|
12217
12505
|
export interface RuleBuilderAction {
|
|
12506
|
+
skip_inbox?: boolean;
|
|
12507
|
+
|
|
12218
12508
|
type?:
|
|
12219
12509
|
| 'ban_user'
|
|
12220
12510
|
| 'flag_user'
|
|
@@ -12518,6 +12808,8 @@ export interface SIPTrunkResponse {
|
|
|
12518
12808
|
|
|
12519
12809
|
username: string;
|
|
12520
12810
|
|
|
12811
|
+
allowed_ips: string[];
|
|
12812
|
+
|
|
12521
12813
|
numbers: string[];
|
|
12522
12814
|
}
|
|
12523
12815
|
|
|
@@ -12656,6 +12948,8 @@ export interface SearchResultMessage {
|
|
|
12656
12948
|
|
|
12657
12949
|
show_in_channel?: boolean;
|
|
12658
12950
|
|
|
12951
|
+
mentioned_group_ids?: string[];
|
|
12952
|
+
|
|
12659
12953
|
mentioned_roles?: string[];
|
|
12660
12954
|
|
|
12661
12955
|
thread_participants?: UserResponse[];
|
|
@@ -13615,6 +13909,38 @@ export interface ThumbnailsSettingsResponse {
|
|
|
13615
13909
|
|
|
13616
13910
|
export interface Time {}
|
|
13617
13911
|
|
|
13912
|
+
export interface TrackActivityMetricsEvent {
|
|
13913
|
+
activity_id: string;
|
|
13914
|
+
|
|
13915
|
+
metric: string;
|
|
13916
|
+
|
|
13917
|
+
delta?: number;
|
|
13918
|
+
}
|
|
13919
|
+
|
|
13920
|
+
export interface TrackActivityMetricsEventResult {
|
|
13921
|
+
activity_id: string;
|
|
13922
|
+
|
|
13923
|
+
allowed: boolean;
|
|
13924
|
+
|
|
13925
|
+
metric: string;
|
|
13926
|
+
|
|
13927
|
+
error?: string;
|
|
13928
|
+
}
|
|
13929
|
+
|
|
13930
|
+
export interface TrackActivityMetricsRequest {
|
|
13931
|
+
events: TrackActivityMetricsEvent[];
|
|
13932
|
+
|
|
13933
|
+
user_id?: string;
|
|
13934
|
+
|
|
13935
|
+
user?: UserRequest;
|
|
13936
|
+
}
|
|
13937
|
+
|
|
13938
|
+
export interface TrackActivityMetricsResponse {
|
|
13939
|
+
duration: string;
|
|
13940
|
+
|
|
13941
|
+
results: TrackActivityMetricsEventResult[];
|
|
13942
|
+
}
|
|
13943
|
+
|
|
13618
13944
|
export interface TrackStatsResponse {
|
|
13619
13945
|
duration_seconds: number;
|
|
13620
13946
|
|
|
@@ -13835,6 +14161,18 @@ export interface TranslationSettings {
|
|
|
13835
14161
|
languages: string[];
|
|
13836
14162
|
}
|
|
13837
14163
|
|
|
14164
|
+
export interface TriggeredRuleResponse {
|
|
14165
|
+
rule_id: string;
|
|
14166
|
+
|
|
14167
|
+
actions: string[];
|
|
14168
|
+
|
|
14169
|
+
rule_name?: string;
|
|
14170
|
+
|
|
14171
|
+
violation_number?: number;
|
|
14172
|
+
|
|
14173
|
+
call_options?: CallActionOptions;
|
|
14174
|
+
}
|
|
14175
|
+
|
|
13838
14176
|
export interface TruncateChannelRequest {
|
|
13839
14177
|
hard_delete?: boolean;
|
|
13840
14178
|
|
|
@@ -13927,6 +14265,8 @@ export interface UnfollowBatchRequest {
|
|
|
13927
14265
|
follows: FollowPair[];
|
|
13928
14266
|
|
|
13929
14267
|
delete_notification_activity?: boolean;
|
|
14268
|
+
|
|
14269
|
+
enrich_own_fields?: boolean;
|
|
13930
14270
|
}
|
|
13931
14271
|
|
|
13932
14272
|
export interface UnfollowBatchResponse {
|
|
@@ -14060,6 +14400,8 @@ export interface UpdateActivityPartialChangeRequest {
|
|
|
14060
14400
|
export interface UpdateActivityPartialRequest {
|
|
14061
14401
|
copy_custom_to_notification?: boolean;
|
|
14062
14402
|
|
|
14403
|
+
enrich_own_fields?: boolean;
|
|
14404
|
+
|
|
14063
14405
|
handle_mention_notifications?: boolean;
|
|
14064
14406
|
|
|
14065
14407
|
run_activity_processors?: boolean;
|
|
@@ -14082,6 +14424,8 @@ export interface UpdateActivityPartialResponse {
|
|
|
14082
14424
|
export interface UpdateActivityRequest {
|
|
14083
14425
|
copy_custom_to_notification?: boolean;
|
|
14084
14426
|
|
|
14427
|
+
enrich_own_fields?: boolean;
|
|
14428
|
+
|
|
14085
14429
|
expires_at?: Date;
|
|
14086
14430
|
|
|
14087
14431
|
handle_mention_notifications?: boolean;
|
|
@@ -14164,6 +14508,8 @@ export interface UpdateAppRequest {
|
|
|
14164
14508
|
|
|
14165
14509
|
moderation_enabled?: boolean;
|
|
14166
14510
|
|
|
14511
|
+
moderation_s3_image_access_role_arn?: string;
|
|
14512
|
+
|
|
14167
14513
|
moderation_webhook_url?: string;
|
|
14168
14514
|
|
|
14169
14515
|
multi_tenant_enabled?: boolean;
|
|
@@ -14204,6 +14550,8 @@ export interface UpdateAppRequest {
|
|
|
14204
14550
|
|
|
14205
14551
|
webhook_events?: string[];
|
|
14206
14552
|
|
|
14553
|
+
activity_metrics_config?: Record<string, number>;
|
|
14554
|
+
|
|
14207
14555
|
apn_config?: APNConfig;
|
|
14208
14556
|
|
|
14209
14557
|
async_moderation_config?: AsyncModerationConfiguration;
|
|
@@ -14470,6 +14818,8 @@ export interface UpdateChannelTypeRequest {
|
|
|
14470
14818
|
|
|
14471
14819
|
automod_thresholds?: Thresholds;
|
|
14472
14820
|
|
|
14821
|
+
chat_preferences?: ChatPreferences;
|
|
14822
|
+
|
|
14473
14823
|
grants?: Record<string, string[]>;
|
|
14474
14824
|
}
|
|
14475
14825
|
|
|
@@ -14549,6 +14899,8 @@ export interface UpdateChannelTypeResponse {
|
|
|
14549
14899
|
blocklists?: BlockListOptions[];
|
|
14550
14900
|
|
|
14551
14901
|
automod_thresholds?: Thresholds;
|
|
14902
|
+
|
|
14903
|
+
chat_preferences?: ChatPreferences;
|
|
14552
14904
|
}
|
|
14553
14905
|
|
|
14554
14906
|
export interface UpdateCollectionRequest {
|
|
@@ -14699,6 +15051,8 @@ export interface UpdateFeedRequest {
|
|
|
14699
15051
|
|
|
14700
15052
|
description?: string;
|
|
14701
15053
|
|
|
15054
|
+
enrich_own_fields?: boolean;
|
|
15055
|
+
|
|
14702
15056
|
name?: string;
|
|
14703
15057
|
|
|
14704
15058
|
filter_tags?: string[];
|
|
@@ -14745,6 +15099,8 @@ export interface UpdateFollowRequest {
|
|
|
14745
15099
|
|
|
14746
15100
|
create_notification_activity?: boolean;
|
|
14747
15101
|
|
|
15102
|
+
enrich_own_fields?: boolean;
|
|
15103
|
+
|
|
14748
15104
|
follower_role?: string;
|
|
14749
15105
|
|
|
14750
15106
|
push_preference?: 'all' | 'none';
|
|
@@ -14907,12 +15263,12 @@ export interface UpdateReminderResponse {
|
|
|
14907
15263
|
export interface UpdateSIPInboundRoutingRuleRequest {
|
|
14908
15264
|
name: string;
|
|
14909
15265
|
|
|
14910
|
-
called_numbers: string[];
|
|
14911
|
-
|
|
14912
15266
|
trunk_ids: string[];
|
|
14913
15267
|
|
|
14914
15268
|
caller_configs: SIPCallerConfigsRequest;
|
|
14915
15269
|
|
|
15270
|
+
called_numbers?: string[];
|
|
15271
|
+
|
|
14916
15272
|
caller_numbers?: string[];
|
|
14917
15273
|
|
|
14918
15274
|
call_configs?: SIPCallConfigsRequest;
|
|
@@ -14934,6 +15290,10 @@ export interface UpdateSIPTrunkRequest {
|
|
|
14934
15290
|
name: string;
|
|
14935
15291
|
|
|
14936
15292
|
numbers: string[];
|
|
15293
|
+
|
|
15294
|
+
password?: string;
|
|
15295
|
+
|
|
15296
|
+
allowed_ips?: string[];
|
|
14937
15297
|
}
|
|
14938
15298
|
|
|
14939
15299
|
export interface UpdateSIPTrunkResponse {
|
|
@@ -15058,6 +15418,8 @@ export interface UploadChannelResponse {
|
|
|
15058
15418
|
|
|
15059
15419
|
export interface UpsertActivitiesRequest {
|
|
15060
15420
|
activities: ActivityRequest[];
|
|
15421
|
+
|
|
15422
|
+
enrich_own_fields?: boolean;
|
|
15061
15423
|
}
|
|
15062
15424
|
|
|
15063
15425
|
export interface UpsertActivitiesResponse {
|
|
@@ -16065,6 +16427,7 @@ export type WHEvent =
|
|
|
16065
16427
|
| ({ type: 'feeds.comment.reaction.added' } & CommentReactionAddedEvent)
|
|
16066
16428
|
| ({ type: 'feeds.comment.reaction.deleted' } & CommentReactionDeletedEvent)
|
|
16067
16429
|
| ({ type: 'feeds.comment.reaction.updated' } & CommentReactionUpdatedEvent)
|
|
16430
|
+
| ({ type: 'feeds.comment.restored' } & CommentRestoredEvent)
|
|
16068
16431
|
| ({ type: 'feeds.comment.updated' } & CommentUpdatedEvent)
|
|
16069
16432
|
| ({ type: 'feeds.feed.created' } & FeedCreatedEvent)
|
|
16070
16433
|
| ({ type: 'feeds.feed.deleted' } & FeedDeletedEvent)
|