@stream-io/node-sdk 0.7.44 → 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 +114 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +114 -15
- 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/FeedsApi.d.ts +6 -1
- package/dist/src/gen/models/index.d.ts +190 -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/FeedsApi.ts +90 -0
- package/src/gen/model-decoders/decoders.ts +31 -7
- package/src/gen/models/index.ts +342 -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;
|
|
@@ -1049,6 +1061,8 @@ export interface AppResponseFields {
|
|
|
1049
1061
|
|
|
1050
1062
|
before_message_send_hook_url?: string;
|
|
1051
1063
|
|
|
1064
|
+
moderation_s3_image_access_role_arn?: string;
|
|
1065
|
+
|
|
1052
1066
|
revoke_tokens_issued_before?: Date;
|
|
1053
1067
|
|
|
1054
1068
|
allowed_flag_reasons?: string[];
|
|
@@ -1057,6 +1071,8 @@ export interface AppResponseFields {
|
|
|
1057
1071
|
|
|
1058
1072
|
image_moderation_labels?: string[];
|
|
1059
1073
|
|
|
1074
|
+
activity_metrics_config?: Record<string, number>;
|
|
1075
|
+
|
|
1060
1076
|
datadog_info?: DataDogInfo;
|
|
1061
1077
|
|
|
1062
1078
|
moderation_dashboard_preferences?: ModerationDashboardPreferences;
|
|
@@ -1433,6 +1449,8 @@ export interface BackstageSettingsResponse {
|
|
|
1433
1449
|
export interface BanActionRequestPayload {
|
|
1434
1450
|
channel_ban_only?: boolean;
|
|
1435
1451
|
|
|
1452
|
+
channel_cid?: string;
|
|
1453
|
+
|
|
1436
1454
|
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
1437
1455
|
|
|
1438
1456
|
ip_ban?: boolean;
|
|
@@ -1517,6 +1535,8 @@ export interface BlockListConfig {
|
|
|
1517
1535
|
|
|
1518
1536
|
enabled?: boolean;
|
|
1519
1537
|
|
|
1538
|
+
match_substring?: boolean;
|
|
1539
|
+
|
|
1520
1540
|
rules?: BlockListRule[];
|
|
1521
1541
|
}
|
|
1522
1542
|
|
|
@@ -1922,6 +1942,8 @@ export interface CallEndedEvent {
|
|
|
1922
1942
|
|
|
1923
1943
|
reason?: string;
|
|
1924
1944
|
|
|
1945
|
+
members?: MemberResponse[];
|
|
1946
|
+
|
|
1925
1947
|
user?: UserResponse;
|
|
1926
1948
|
}
|
|
1927
1949
|
|
|
@@ -3067,6 +3089,12 @@ export interface ChannelBatchCompletedEvent {
|
|
|
3067
3089
|
received_at?: Date;
|
|
3068
3090
|
}
|
|
3069
3091
|
|
|
3092
|
+
export interface ChannelBatchMemberRequest {
|
|
3093
|
+
user_id: string;
|
|
3094
|
+
|
|
3095
|
+
channel_role?: string;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3070
3098
|
export interface ChannelBatchStartedEvent {
|
|
3071
3099
|
batch_created_at: Date;
|
|
3072
3100
|
|
|
@@ -3091,6 +3119,34 @@ export interface ChannelBatchStartedEvent {
|
|
|
3091
3119
|
received_at?: Date;
|
|
3092
3120
|
}
|
|
3093
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
|
+
|
|
3094
3150
|
export interface ChannelConfig {
|
|
3095
3151
|
automod: 'disabled' | 'simple' | 'AI';
|
|
3096
3152
|
|
|
@@ -3161,6 +3217,8 @@ export interface ChannelConfig {
|
|
|
3161
3217
|
blocklists?: BlockListOptions[];
|
|
3162
3218
|
|
|
3163
3219
|
automod_thresholds?: Thresholds;
|
|
3220
|
+
|
|
3221
|
+
chat_preferences?: ChatPreferences;
|
|
3164
3222
|
}
|
|
3165
3223
|
|
|
3166
3224
|
export interface ChannelConfigWithInfo {
|
|
@@ -3234,6 +3292,8 @@ export interface ChannelConfigWithInfo {
|
|
|
3234
3292
|
|
|
3235
3293
|
automod_thresholds?: Thresholds;
|
|
3236
3294
|
|
|
3295
|
+
chat_preferences?: ChatPreferences;
|
|
3296
|
+
|
|
3237
3297
|
grants?: Record<string, string[]>;
|
|
3238
3298
|
}
|
|
3239
3299
|
|
|
@@ -3265,6 +3325,22 @@ export interface ChannelCreatedEvent {
|
|
|
3265
3325
|
user?: UserResponseCommonFields;
|
|
3266
3326
|
}
|
|
3267
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
|
+
|
|
3268
3344
|
export interface ChannelDeletedEvent {
|
|
3269
3345
|
created_at: Date;
|
|
3270
3346
|
|
|
@@ -3551,6 +3627,8 @@ export interface ChannelPushPreferencesResponse {
|
|
|
3551
3627
|
chat_level?: string;
|
|
3552
3628
|
|
|
3553
3629
|
disabled_until?: Date;
|
|
3630
|
+
|
|
3631
|
+
chat_preferences?: ChatPreferencesResponse;
|
|
3554
3632
|
}
|
|
3555
3633
|
|
|
3556
3634
|
export interface ChannelResponse {
|
|
@@ -3783,6 +3861,8 @@ export interface ChannelTypeConfig {
|
|
|
3783
3861
|
blocklists?: BlockListOptions[];
|
|
3784
3862
|
|
|
3785
3863
|
automod_thresholds?: Thresholds;
|
|
3864
|
+
|
|
3865
|
+
chat_preferences?: ChatPreferences;
|
|
3786
3866
|
}
|
|
3787
3867
|
|
|
3788
3868
|
export interface ChannelUnFrozenEvent {
|
|
@@ -3881,6 +3961,56 @@ export interface ChatActivityStatsResponse {
|
|
|
3881
3961
|
messages?: MessageStatsResponse;
|
|
3882
3962
|
}
|
|
3883
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
|
+
|
|
3884
4014
|
export interface CheckExternalStorageResponse {
|
|
3885
4015
|
duration: string;
|
|
3886
4016
|
|
|
@@ -3966,6 +4096,20 @@ export interface CheckResponse {
|
|
|
3966
4096
|
task_id?: string;
|
|
3967
4097
|
|
|
3968
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;
|
|
3969
4113
|
}
|
|
3970
4114
|
|
|
3971
4115
|
export interface CheckSNSRequest {
|
|
@@ -4238,6 +4382,24 @@ export interface CommentResponse {
|
|
|
4238
4382
|
reaction_groups?: Record<string, FeedsReactionGroupResponse>;
|
|
4239
4383
|
}
|
|
4240
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
|
+
|
|
4241
4403
|
export interface CommentUpdatedEvent {
|
|
4242
4404
|
created_at: Date;
|
|
4243
4405
|
|
|
@@ -4271,6 +4433,8 @@ export interface ConfigOverridesRequest {
|
|
|
4271
4433
|
|
|
4272
4434
|
max_message_length?: number;
|
|
4273
4435
|
|
|
4436
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
4437
|
+
|
|
4274
4438
|
quotes?: boolean;
|
|
4275
4439
|
|
|
4276
4440
|
reactions?: boolean;
|
|
@@ -4289,6 +4453,8 @@ export interface ConfigOverridesRequest {
|
|
|
4289
4453
|
|
|
4290
4454
|
commands?: string[];
|
|
4291
4455
|
|
|
4456
|
+
chat_preferences?: ChatPreferences;
|
|
4457
|
+
|
|
4292
4458
|
grants?: Record<string, string[]>;
|
|
4293
4459
|
}
|
|
4294
4460
|
|
|
@@ -4305,6 +4471,8 @@ export interface ConfigResponse {
|
|
|
4305
4471
|
|
|
4306
4472
|
supported_video_call_harm_types: string[];
|
|
4307
4473
|
|
|
4474
|
+
ai_image_label_definitions?: AIImageLabelDefinition[];
|
|
4475
|
+
|
|
4308
4476
|
ai_image_config?: AIImageConfig;
|
|
4309
4477
|
|
|
4310
4478
|
ai_image_subclassifications?: Record<string, string[]>;
|
|
@@ -4465,6 +4633,8 @@ export interface CreateChannelTypeRequest {
|
|
|
4465
4633
|
|
|
4466
4634
|
permissions?: PolicyRequest[];
|
|
4467
4635
|
|
|
4636
|
+
chat_preferences?: ChatPreferences;
|
|
4637
|
+
|
|
4468
4638
|
grants?: Record<string, string[]>;
|
|
4469
4639
|
}
|
|
4470
4640
|
|
|
@@ -4544,6 +4714,8 @@ export interface CreateChannelTypeResponse {
|
|
|
4544
4714
|
blocklists?: BlockListOptions[];
|
|
4545
4715
|
|
|
4546
4716
|
automod_thresholds?: Thresholds;
|
|
4717
|
+
|
|
4718
|
+
chat_preferences?: ChatPreferences;
|
|
4547
4719
|
}
|
|
4548
4720
|
|
|
4549
4721
|
export interface CreateCollectionsRequest {
|
|
@@ -4817,6 +4989,10 @@ export interface CreateSIPTrunkRequest {
|
|
|
4817
4989
|
name: string;
|
|
4818
4990
|
|
|
4819
4991
|
numbers: string[];
|
|
4992
|
+
|
|
4993
|
+
password?: string;
|
|
4994
|
+
|
|
4995
|
+
allowed_ips?: string[];
|
|
4820
4996
|
}
|
|
4821
4997
|
|
|
4822
4998
|
export interface CreateSIPTrunkResponse {
|
|
@@ -6326,6 +6502,8 @@ export interface FilterConfigResponse {
|
|
|
6326
6502
|
llm_labels: string[];
|
|
6327
6503
|
|
|
6328
6504
|
ai_text_labels?: string[];
|
|
6505
|
+
|
|
6506
|
+
config_keys?: string[];
|
|
6329
6507
|
}
|
|
6330
6508
|
|
|
6331
6509
|
export interface FirebaseConfig {
|
|
@@ -6884,6 +7062,8 @@ export interface GetChannelTypeResponse {
|
|
|
6884
7062
|
blocklists?: BlockListOptions[];
|
|
6885
7063
|
|
|
6886
7064
|
automod_thresholds?: Thresholds;
|
|
7065
|
+
|
|
7066
|
+
chat_preferences?: ChatPreferences;
|
|
6887
7067
|
}
|
|
6888
7068
|
|
|
6889
7069
|
export interface GetCommandResponse {
|
|
@@ -8569,6 +8749,8 @@ export interface MessageRequest {
|
|
|
8569
8749
|
|
|
8570
8750
|
attachments?: Attachment[];
|
|
8571
8751
|
|
|
8752
|
+
mentioned_group_ids?: string[];
|
|
8753
|
+
|
|
8572
8754
|
mentioned_roles?: string[];
|
|
8573
8755
|
|
|
8574
8756
|
mentioned_users?: string[];
|
|
@@ -8651,6 +8833,8 @@ export interface MessageResponse {
|
|
|
8651
8833
|
|
|
8652
8834
|
show_in_channel?: boolean;
|
|
8653
8835
|
|
|
8836
|
+
mentioned_group_ids?: string[];
|
|
8837
|
+
|
|
8654
8838
|
mentioned_roles?: string[];
|
|
8655
8839
|
|
|
8656
8840
|
thread_participants?: UserResponse[];
|
|
@@ -8837,6 +9021,8 @@ export interface MessageWithChannelResponse {
|
|
|
8837
9021
|
|
|
8838
9022
|
show_in_channel?: boolean;
|
|
8839
9023
|
|
|
9024
|
+
mentioned_group_ids?: string[];
|
|
9025
|
+
|
|
8840
9026
|
mentioned_roles?: string[];
|
|
8841
9027
|
|
|
8842
9028
|
thread_participants?: UserResponse[];
|
|
@@ -8995,6 +9181,8 @@ export interface ModerationDashboardPreferences {
|
|
|
8995
9181
|
|
|
8996
9182
|
allowed_moderation_action_reasons?: string[];
|
|
8997
9183
|
|
|
9184
|
+
keyframe_classifications_map?: Record<string, Record<string, boolean>>;
|
|
9185
|
+
|
|
8998
9186
|
overview_dashboard?: OverviewDashboardConfig;
|
|
8999
9187
|
}
|
|
9000
9188
|
|
|
@@ -10165,6 +10353,8 @@ export interface PushPreferenceInput {
|
|
|
10165
10353
|
|
|
10166
10354
|
user_id?: string;
|
|
10167
10355
|
|
|
10356
|
+
chat_preferences?: ChatPreferencesInput;
|
|
10357
|
+
|
|
10168
10358
|
feeds_preferences?: FeedsPreferences;
|
|
10169
10359
|
}
|
|
10170
10360
|
|
|
@@ -10177,6 +10367,8 @@ export interface PushPreferencesResponse {
|
|
|
10177
10367
|
|
|
10178
10368
|
feeds_level?: string;
|
|
10179
10369
|
|
|
10370
|
+
chat_preferences?: ChatPreferencesResponse;
|
|
10371
|
+
|
|
10180
10372
|
feeds_preferences?: FeedsPreferencesResponse;
|
|
10181
10373
|
}
|
|
10182
10374
|
|
|
@@ -10802,6 +10994,32 @@ export interface QueryChannelsResponse {
|
|
|
10802
10994
|
predefined_filter?: ParsedPredefinedFilterResponse;
|
|
10803
10995
|
}
|
|
10804
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
|
+
|
|
10805
11023
|
export interface QueryCommentReactionsRequest {
|
|
10806
11024
|
limit?: number;
|
|
10807
11025
|
|
|
@@ -10827,6 +11045,8 @@ export interface QueryCommentReactionsResponse {
|
|
|
10827
11045
|
export interface QueryCommentsRequest {
|
|
10828
11046
|
filter: Record<string, any>;
|
|
10829
11047
|
|
|
11048
|
+
id_around?: string;
|
|
11049
|
+
|
|
10830
11050
|
limit?: number;
|
|
10831
11051
|
|
|
10832
11052
|
next?: string;
|
|
@@ -10834,6 +11054,10 @@ export interface QueryCommentsRequest {
|
|
|
10834
11054
|
prev?: string;
|
|
10835
11055
|
|
|
10836
11056
|
sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
|
|
11057
|
+
|
|
11058
|
+
user_id?: string;
|
|
11059
|
+
|
|
11060
|
+
user?: UserRequest;
|
|
10837
11061
|
}
|
|
10838
11062
|
|
|
10839
11063
|
export interface QueryCommentsResponse {
|
|
@@ -11175,14 +11399,20 @@ export interface QueryModerationRulesRequest {
|
|
|
11175
11399
|
export interface QueryModerationRulesResponse {
|
|
11176
11400
|
duration: string;
|
|
11177
11401
|
|
|
11402
|
+
ai_image_label_definitions: AIImageLabelDefinition[];
|
|
11403
|
+
|
|
11178
11404
|
closed_caption_labels: string[];
|
|
11179
11405
|
|
|
11180
11406
|
keyframe_labels: string[];
|
|
11181
11407
|
|
|
11182
11408
|
rules: ModerationRuleV2Response[];
|
|
11183
11409
|
|
|
11410
|
+
ai_image_subclassifications: Record<string, string[]>;
|
|
11411
|
+
|
|
11184
11412
|
default_llm_labels: Record<string, string>;
|
|
11185
11413
|
|
|
11414
|
+
keyframe_label_classifications: Record<string, string[]>;
|
|
11415
|
+
|
|
11186
11416
|
next?: string;
|
|
11187
11417
|
|
|
11188
11418
|
prev?: string;
|
|
@@ -11796,10 +12026,6 @@ export interface ReadCollectionsResponse {
|
|
|
11796
12026
|
duration: string;
|
|
11797
12027
|
|
|
11798
12028
|
collections: CollectionResponse[];
|
|
11799
|
-
|
|
11800
|
-
next?: string;
|
|
11801
|
-
|
|
11802
|
-
prev?: string;
|
|
11803
12029
|
}
|
|
11804
12030
|
|
|
11805
12031
|
export interface ReadReceiptsResponse {
|
|
@@ -11988,6 +12214,12 @@ export interface ReminderUpdatedEvent {
|
|
|
11988
12214
|
reminder?: ReminderResponseData;
|
|
11989
12215
|
}
|
|
11990
12216
|
|
|
12217
|
+
export interface RemoveUserGroupMembersRequest {
|
|
12218
|
+
member_ids: string[];
|
|
12219
|
+
|
|
12220
|
+
team_id?: string;
|
|
12221
|
+
}
|
|
12222
|
+
|
|
11991
12223
|
export interface RemoveUserGroupMembersResponse {
|
|
11992
12224
|
duration: string;
|
|
11993
12225
|
|
|
@@ -12030,15 +12262,39 @@ export interface ResolutionMetricsTimeSeries {
|
|
|
12030
12262
|
width?: MetricTimeSeries;
|
|
12031
12263
|
}
|
|
12032
12264
|
|
|
12033
|
-
export interface
|
|
12265
|
+
export interface ResolveSipAuthRequest {
|
|
12034
12266
|
sip_caller_number: string;
|
|
12035
12267
|
|
|
12036
12268
|
sip_trunk_number: string;
|
|
12037
12269
|
|
|
12038
|
-
|
|
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;
|
|
12039
12291
|
|
|
12040
12292
|
routing_number?: string;
|
|
12041
12293
|
|
|
12294
|
+
trunk_id?: string;
|
|
12295
|
+
|
|
12296
|
+
challenge?: SIPChallengeRequest;
|
|
12297
|
+
|
|
12042
12298
|
sip_headers?: Record<string, string>;
|
|
12043
12299
|
}
|
|
12044
12300
|
|
|
@@ -12072,6 +12328,20 @@ export interface RestoreActivityResponse {
|
|
|
12072
12328
|
activity: ActivityResponse;
|
|
12073
12329
|
}
|
|
12074
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
|
+
|
|
12075
12345
|
export interface RestoreFeedGroupRequest {}
|
|
12076
12346
|
|
|
12077
12347
|
export interface RestoreFeedGroupResponse {
|
|
@@ -12233,6 +12503,8 @@ export interface Role {
|
|
|
12233
12503
|
}
|
|
12234
12504
|
|
|
12235
12505
|
export interface RuleBuilderAction {
|
|
12506
|
+
skip_inbox?: boolean;
|
|
12507
|
+
|
|
12236
12508
|
type?:
|
|
12237
12509
|
| 'ban_user'
|
|
12238
12510
|
| 'flag_user'
|
|
@@ -12536,6 +12808,8 @@ export interface SIPTrunkResponse {
|
|
|
12536
12808
|
|
|
12537
12809
|
username: string;
|
|
12538
12810
|
|
|
12811
|
+
allowed_ips: string[];
|
|
12812
|
+
|
|
12539
12813
|
numbers: string[];
|
|
12540
12814
|
}
|
|
12541
12815
|
|
|
@@ -12674,6 +12948,8 @@ export interface SearchResultMessage {
|
|
|
12674
12948
|
|
|
12675
12949
|
show_in_channel?: boolean;
|
|
12676
12950
|
|
|
12951
|
+
mentioned_group_ids?: string[];
|
|
12952
|
+
|
|
12677
12953
|
mentioned_roles?: string[];
|
|
12678
12954
|
|
|
12679
12955
|
thread_participants?: UserResponse[];
|
|
@@ -13633,6 +13909,38 @@ export interface ThumbnailsSettingsResponse {
|
|
|
13633
13909
|
|
|
13634
13910
|
export interface Time {}
|
|
13635
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
|
+
|
|
13636
13944
|
export interface TrackStatsResponse {
|
|
13637
13945
|
duration_seconds: number;
|
|
13638
13946
|
|
|
@@ -13853,6 +14161,18 @@ export interface TranslationSettings {
|
|
|
13853
14161
|
languages: string[];
|
|
13854
14162
|
}
|
|
13855
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
|
+
|
|
13856
14176
|
export interface TruncateChannelRequest {
|
|
13857
14177
|
hard_delete?: boolean;
|
|
13858
14178
|
|
|
@@ -14188,6 +14508,8 @@ export interface UpdateAppRequest {
|
|
|
14188
14508
|
|
|
14189
14509
|
moderation_enabled?: boolean;
|
|
14190
14510
|
|
|
14511
|
+
moderation_s3_image_access_role_arn?: string;
|
|
14512
|
+
|
|
14191
14513
|
moderation_webhook_url?: string;
|
|
14192
14514
|
|
|
14193
14515
|
multi_tenant_enabled?: boolean;
|
|
@@ -14228,6 +14550,8 @@ export interface UpdateAppRequest {
|
|
|
14228
14550
|
|
|
14229
14551
|
webhook_events?: string[];
|
|
14230
14552
|
|
|
14553
|
+
activity_metrics_config?: Record<string, number>;
|
|
14554
|
+
|
|
14231
14555
|
apn_config?: APNConfig;
|
|
14232
14556
|
|
|
14233
14557
|
async_moderation_config?: AsyncModerationConfiguration;
|
|
@@ -14494,6 +14818,8 @@ export interface UpdateChannelTypeRequest {
|
|
|
14494
14818
|
|
|
14495
14819
|
automod_thresholds?: Thresholds;
|
|
14496
14820
|
|
|
14821
|
+
chat_preferences?: ChatPreferences;
|
|
14822
|
+
|
|
14497
14823
|
grants?: Record<string, string[]>;
|
|
14498
14824
|
}
|
|
14499
14825
|
|
|
@@ -14573,6 +14899,8 @@ export interface UpdateChannelTypeResponse {
|
|
|
14573
14899
|
blocklists?: BlockListOptions[];
|
|
14574
14900
|
|
|
14575
14901
|
automod_thresholds?: Thresholds;
|
|
14902
|
+
|
|
14903
|
+
chat_preferences?: ChatPreferences;
|
|
14576
14904
|
}
|
|
14577
14905
|
|
|
14578
14906
|
export interface UpdateCollectionRequest {
|
|
@@ -14935,12 +15263,12 @@ export interface UpdateReminderResponse {
|
|
|
14935
15263
|
export interface UpdateSIPInboundRoutingRuleRequest {
|
|
14936
15264
|
name: string;
|
|
14937
15265
|
|
|
14938
|
-
called_numbers: string[];
|
|
14939
|
-
|
|
14940
15266
|
trunk_ids: string[];
|
|
14941
15267
|
|
|
14942
15268
|
caller_configs: SIPCallerConfigsRequest;
|
|
14943
15269
|
|
|
15270
|
+
called_numbers?: string[];
|
|
15271
|
+
|
|
14944
15272
|
caller_numbers?: string[];
|
|
14945
15273
|
|
|
14946
15274
|
call_configs?: SIPCallConfigsRequest;
|
|
@@ -14962,6 +15290,10 @@ export interface UpdateSIPTrunkRequest {
|
|
|
14962
15290
|
name: string;
|
|
14963
15291
|
|
|
14964
15292
|
numbers: string[];
|
|
15293
|
+
|
|
15294
|
+
password?: string;
|
|
15295
|
+
|
|
15296
|
+
allowed_ips?: string[];
|
|
14965
15297
|
}
|
|
14966
15298
|
|
|
14967
15299
|
export interface UpdateSIPTrunkResponse {
|
|
@@ -16095,6 +16427,7 @@ export type WHEvent =
|
|
|
16095
16427
|
| ({ type: 'feeds.comment.reaction.added' } & CommentReactionAddedEvent)
|
|
16096
16428
|
| ({ type: 'feeds.comment.reaction.deleted' } & CommentReactionDeletedEvent)
|
|
16097
16429
|
| ({ type: 'feeds.comment.reaction.updated' } & CommentReactionUpdatedEvent)
|
|
16430
|
+
| ({ type: 'feeds.comment.restored' } & CommentRestoredEvent)
|
|
16098
16431
|
| ({ type: 'feeds.comment.updated' } & CommentUpdatedEvent)
|
|
16099
16432
|
| ({ type: 'feeds.feed.created' } & FeedCreatedEvent)
|
|
16100
16433
|
| ({ type: 'feeds.feed.deleted' } & FeedDeletedEvent)
|