@stream-io/node-sdk 0.8.3 → 0.8.5
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 +14 -0
- package/dist/index.cjs.js +47 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +47 -20
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +3 -3
- package/dist/src/gen/models/index.d.ts +135 -21
- package/dist/src/gen/video/VideoApi.d.ts +1 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +10 -7
- package/src/gen/common/CommonApi.ts +4 -0
- package/src/gen/feeds/FeedsApi.ts +7 -0
- package/src/gen/model-decoders/decoders.ts +24 -8
- package/src/gen/models/index.ts +189 -27
- package/src/gen/video/VideoApi.ts +2 -2
|
@@ -2150,6 +2150,13 @@ decoders['CreatePredefinedFilterResponse'] = (input?: {
|
|
|
2150
2150
|
return decode(typeMappings, input);
|
|
2151
2151
|
};
|
|
2152
2152
|
|
|
2153
|
+
decoders['CreateReminderResponse'] = (input?: { [key: string]: any }) => {
|
|
2154
|
+
const typeMappings: TypeMapping = {
|
|
2155
|
+
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
2156
|
+
};
|
|
2157
|
+
return decode(typeMappings, input);
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2153
2160
|
decoders['CreateRoleResponse'] = (input?: { [key: string]: any }) => {
|
|
2154
2161
|
const typeMappings: TypeMapping = {
|
|
2155
2162
|
role: { type: 'Role', isSingle: true },
|
|
@@ -3830,6 +3837,8 @@ decoders['ModerationFlagResponse'] = (input?: { [key: string]: any }) => {
|
|
|
3830
3837
|
|
|
3831
3838
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3832
3839
|
|
|
3840
|
+
content_published_at: { type: 'DatetimeType', isSingle: true },
|
|
3841
|
+
|
|
3833
3842
|
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
3834
3843
|
|
|
3835
3844
|
user: { type: 'UserResponse', isSingle: true },
|
|
@@ -4844,9 +4853,9 @@ decoders['ReminderCreatedEvent'] = (input?: { [key: string]: any }) => {
|
|
|
4844
4853
|
const typeMappings: TypeMapping = {
|
|
4845
4854
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4846
4855
|
|
|
4847
|
-
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4848
|
-
|
|
4849
4856
|
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
4857
|
+
|
|
4858
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4850
4859
|
};
|
|
4851
4860
|
return decode(typeMappings, input);
|
|
4852
4861
|
};
|
|
@@ -4855,9 +4864,9 @@ decoders['ReminderDeletedEvent'] = (input?: { [key: string]: any }) => {
|
|
|
4855
4864
|
const typeMappings: TypeMapping = {
|
|
4856
4865
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4857
4866
|
|
|
4858
|
-
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4859
|
-
|
|
4860
4867
|
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
4868
|
+
|
|
4869
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4861
4870
|
};
|
|
4862
4871
|
return decode(typeMappings, input);
|
|
4863
4872
|
};
|
|
@@ -4866,9 +4875,9 @@ decoders['ReminderNotificationEvent'] = (input?: { [key: string]: any }) => {
|
|
|
4866
4875
|
const typeMappings: TypeMapping = {
|
|
4867
4876
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4868
4877
|
|
|
4869
|
-
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4870
|
-
|
|
4871
4878
|
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
4879
|
+
|
|
4880
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4872
4881
|
};
|
|
4873
4882
|
return decode(typeMappings, input);
|
|
4874
4883
|
};
|
|
@@ -4894,9 +4903,9 @@ decoders['ReminderUpdatedEvent'] = (input?: { [key: string]: any }) => {
|
|
|
4894
4903
|
const typeMappings: TypeMapping = {
|
|
4895
4904
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4896
4905
|
|
|
4897
|
-
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4898
|
-
|
|
4899
4906
|
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
4907
|
+
|
|
4908
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4900
4909
|
};
|
|
4901
4910
|
return decode(typeMappings, input);
|
|
4902
4911
|
};
|
|
@@ -5418,6 +5427,13 @@ decoders['TranslateCommentResponse'] = (input?: { [key: string]: any }) => {
|
|
|
5418
5427
|
return decode(typeMappings, input);
|
|
5419
5428
|
};
|
|
5420
5429
|
|
|
5430
|
+
decoders['TranslateMessageResponse'] = (input?: { [key: string]: any }) => {
|
|
5431
|
+
const typeMappings: TypeMapping = {
|
|
5432
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
5433
|
+
};
|
|
5434
|
+
return decode(typeMappings, input);
|
|
5435
|
+
};
|
|
5436
|
+
|
|
5421
5437
|
decoders['TruncateChannelResponse'] = (input?: { [key: string]: any }) => {
|
|
5422
5438
|
const typeMappings: TypeMapping = {
|
|
5423
5439
|
channel: { type: 'ChannelResponse', isSingle: true },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -49,9 +49,27 @@ export interface AIVideoConfig {
|
|
|
49
49
|
|
|
50
50
|
enabled?: boolean;
|
|
51
51
|
|
|
52
|
+
provider?: string;
|
|
53
|
+
|
|
54
|
+
rules?: Array<AWSRekognitionRule>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface AIVideoConfigRequest {
|
|
58
|
+
async?: boolean;
|
|
59
|
+
|
|
60
|
+
enabled?: boolean;
|
|
61
|
+
|
|
52
62
|
rules?: Array<AWSRekognitionRule>;
|
|
53
63
|
}
|
|
54
64
|
|
|
65
|
+
export interface AIVideoConfigResponse {
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
|
|
68
|
+
rules: Array<AWSRekognitionRule>;
|
|
69
|
+
|
|
70
|
+
async?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
55
73
|
export interface APIError {
|
|
56
74
|
/**
|
|
57
75
|
* API error code
|
|
@@ -210,7 +228,7 @@ export interface AcceptFollowRequest {
|
|
|
210
228
|
target: string;
|
|
211
229
|
|
|
212
230
|
/**
|
|
213
|
-
* Optional role for the follower in the follow relationship
|
|
231
|
+
* Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.
|
|
214
232
|
*/
|
|
215
233
|
follower_role?: string;
|
|
216
234
|
}
|
|
@@ -590,6 +608,23 @@ export interface ActivityPinnedEvent {
|
|
|
590
608
|
user?: UserResponseCommonFields;
|
|
591
609
|
}
|
|
592
610
|
|
|
611
|
+
export interface ActivityProcessingConfig {
|
|
612
|
+
/**
|
|
613
|
+
* When true, this feed group's allowed_tags is given to the model as a constrained vocabulary so it maps its own wording onto a configured tag instead of that output being discarded. Improves how often a tag is produced, at the cost of sending the list on every request. Scoped to this group's own list: leaving it false keeps this group's tags out of the request even when another feed group on the same activity sets it true. Requires allowed_tags. Off by default.
|
|
614
|
+
*/
|
|
615
|
+
send_allowed_tags_to_ai?: boolean;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* When set, the LLM activity processors may only write interest tags from this list. By default the model is not told about the list, so a tag is only written when the model happens to produce that exact word after lower-casing and trimming, which for any vocabulary is often not the case; set send_allowed_tags_to_ai to have the model choose from the list instead. Mutually exclusive with blocked_tags.
|
|
619
|
+
*/
|
|
620
|
+
allowed_tags?: Array<string>;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags.
|
|
624
|
+
*/
|
|
625
|
+
blocked_tags?: Array<string>;
|
|
626
|
+
}
|
|
627
|
+
|
|
593
628
|
export interface ActivityProcessorConfig {
|
|
594
629
|
/**
|
|
595
630
|
* Type of activity processor (required)
|
|
@@ -602,7 +637,7 @@ export interface ActivityProcessorConfig {
|
|
|
602
637
|
min_text_length?: number;
|
|
603
638
|
|
|
604
639
|
/**
|
|
605
|
-
* Minimum number of words the activity text must have before this processor runs. 0 (the default) disables the check. Only applies to text_interest_tags.
|
|
640
|
+
* Minimum number of words the activity text must have before this processor runs. 0 (the default) disables the check. Only applies to text_interest_tags. Words are whitespace-separated, so scripts written without word spacing (Chinese, Japanese, Thai) always count as 1 word regardless of length — use min_text_length for those.
|
|
606
641
|
*/
|
|
607
642
|
min_word_count?: number;
|
|
608
643
|
}
|
|
@@ -1860,7 +1895,7 @@ export interface AnalyzeResponse {
|
|
|
1860
1895
|
duration: string;
|
|
1861
1896
|
|
|
1862
1897
|
/**
|
|
1863
|
-
*
|
|
1898
|
+
* `complete` (all fields screened), `partial` (mix of verdicts and per-field errors), or `pending` (async).
|
|
1864
1899
|
*/
|
|
1865
1900
|
status: string;
|
|
1866
1901
|
|
|
@@ -1936,12 +1971,18 @@ export interface AppResponseFields {
|
|
|
1936
1971
|
|
|
1937
1972
|
max_aggregated_activities_length: number;
|
|
1938
1973
|
|
|
1974
|
+
member_custom_on_mentioned_users_enabled: boolean;
|
|
1975
|
+
|
|
1939
1976
|
member_custom_on_messages_enabled: boolean;
|
|
1940
1977
|
|
|
1978
|
+
member_custom_on_typing_events_enabled: boolean;
|
|
1979
|
+
|
|
1941
1980
|
moderation_audio_call_moderation_enabled: boolean;
|
|
1942
1981
|
|
|
1943
1982
|
moderation_enabled: boolean;
|
|
1944
1983
|
|
|
1984
|
+
moderation_keyframe_video_enabled: boolean;
|
|
1985
|
+
|
|
1945
1986
|
moderation_llm_configurability_enabled: boolean;
|
|
1946
1987
|
|
|
1947
1988
|
moderation_multitenant_blocklist_enabled: boolean;
|
|
@@ -5396,8 +5437,18 @@ export interface ChannelBatchUpdateRequest {
|
|
|
5396
5437
|
*/
|
|
5397
5438
|
filter: Record<string, any>;
|
|
5398
5439
|
|
|
5440
|
+
/**
|
|
5441
|
+
* `updateData` only. Deletes these keys from each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths; deleting a key that does not exist is a no-op. Cannot be combined with `data.custom`
|
|
5442
|
+
*/
|
|
5443
|
+
custom_unset?: Array<string>;
|
|
5444
|
+
|
|
5399
5445
|
members?: Array<ChannelBatchMemberRequest>;
|
|
5400
5446
|
|
|
5447
|
+
/**
|
|
5448
|
+
* `updateData` only. Merges these keys into each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths, so `a.b` sets key `b` inside object `a` (the parent object must already exist). Cannot be combined with `data.custom`
|
|
5449
|
+
*/
|
|
5450
|
+
custom_set?: Record<string, any>;
|
|
5451
|
+
|
|
5401
5452
|
data?: ChannelDataUpdate;
|
|
5402
5453
|
}
|
|
5403
5454
|
|
|
@@ -6020,19 +6071,16 @@ export interface ChannelMemberPartialResponse {
|
|
|
6020
6071
|
}
|
|
6021
6072
|
|
|
6022
6073
|
export interface ChannelMemberRequest {
|
|
6023
|
-
user_id: string;
|
|
6024
|
-
|
|
6025
6074
|
/**
|
|
6026
6075
|
* Role of the member in the channel
|
|
6027
6076
|
*/
|
|
6028
6077
|
channel_role?: string;
|
|
6029
6078
|
|
|
6079
|
+
user_id?: string;
|
|
6080
|
+
|
|
6030
6081
|
custom?: Record<string, any>;
|
|
6031
6082
|
|
|
6032
|
-
|
|
6033
|
-
* User response object
|
|
6034
|
-
*/
|
|
6035
|
-
user?: UserResponse;
|
|
6083
|
+
user?: MemberUserRequest;
|
|
6036
6084
|
}
|
|
6037
6085
|
|
|
6038
6086
|
export interface ChannelMemberResponse {
|
|
@@ -8134,7 +8182,7 @@ export interface ConfigResponse {
|
|
|
8134
8182
|
|
|
8135
8183
|
ai_text_config?: AITextConfig;
|
|
8136
8184
|
|
|
8137
|
-
ai_video_config?:
|
|
8185
|
+
ai_video_config?: AIVideoConfigResponse;
|
|
8138
8186
|
|
|
8139
8187
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
8140
8188
|
|
|
@@ -8765,6 +8813,11 @@ export interface CreateFeedGroupRequest {
|
|
|
8765
8813
|
*/
|
|
8766
8814
|
id: string;
|
|
8767
8815
|
|
|
8816
|
+
/**
|
|
8817
|
+
* Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
|
|
8818
|
+
*/
|
|
8819
|
+
default_follower_role?: string;
|
|
8820
|
+
|
|
8768
8821
|
/**
|
|
8769
8822
|
* Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
|
|
8770
8823
|
*/
|
|
@@ -8784,6 +8837,8 @@ export interface CreateFeedGroupRequest {
|
|
|
8784
8837
|
|
|
8785
8838
|
activity_filter?: ActivityFilterConfig;
|
|
8786
8839
|
|
|
8840
|
+
activity_processing?: ActivityProcessingConfig;
|
|
8841
|
+
|
|
8787
8842
|
aggregation?: AggregationConfig;
|
|
8788
8843
|
|
|
8789
8844
|
/**
|
|
@@ -8834,6 +8889,11 @@ export interface CreateFeedsBatchRequest {
|
|
|
8834
8889
|
*/
|
|
8835
8890
|
feeds: Array<FeedRequest>;
|
|
8836
8891
|
|
|
8892
|
+
/**
|
|
8893
|
+
* Server-side only. If true, auto-creates users referenced by feeds[].created_by_id that don't already exist. Default: false.
|
|
8894
|
+
*/
|
|
8895
|
+
create_users?: boolean;
|
|
8896
|
+
|
|
8837
8897
|
/**
|
|
8838
8898
|
* If true, enriches the created feeds with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
8839
8899
|
*/
|
|
@@ -9178,6 +9238,15 @@ export interface CreateReminderRequest {
|
|
|
9178
9238
|
user?: UserRequest;
|
|
9179
9239
|
}
|
|
9180
9240
|
|
|
9241
|
+
export interface CreateReminderResponse {
|
|
9242
|
+
/**
|
|
9243
|
+
* Duration of the request in milliseconds
|
|
9244
|
+
*/
|
|
9245
|
+
duration: string;
|
|
9246
|
+
|
|
9247
|
+
reminder: ReminderResponseData;
|
|
9248
|
+
}
|
|
9249
|
+
|
|
9181
9250
|
export interface CreateRoleRequest {
|
|
9182
9251
|
/**
|
|
9183
9252
|
* Role name
|
|
@@ -11054,6 +11123,8 @@ export interface FeedGroup {
|
|
|
11054
11123
|
|
|
11055
11124
|
created_at: Date;
|
|
11056
11125
|
|
|
11126
|
+
default_follower_role: string;
|
|
11127
|
+
|
|
11057
11128
|
default_visibility: string;
|
|
11058
11129
|
|
|
11059
11130
|
group_id: string;
|
|
@@ -11148,6 +11219,11 @@ export interface FeedGroupResponse {
|
|
|
11148
11219
|
*/
|
|
11149
11220
|
updated_at: Date;
|
|
11150
11221
|
|
|
11222
|
+
/**
|
|
11223
|
+
* Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
|
|
11224
|
+
*/
|
|
11225
|
+
default_follower_role?: string;
|
|
11226
|
+
|
|
11151
11227
|
/**
|
|
11152
11228
|
* Default visibility for activities. One of: public, visible, followers, members, private
|
|
11153
11229
|
*/
|
|
@@ -11169,6 +11245,8 @@ export interface FeedGroupResponse {
|
|
|
11169
11245
|
|
|
11170
11246
|
activity_filter?: ActivityFilterConfig;
|
|
11171
11247
|
|
|
11248
|
+
activity_processing?: ActivityProcessingConfig;
|
|
11249
|
+
|
|
11172
11250
|
aggregation?: AggregationConfig;
|
|
11173
11251
|
|
|
11174
11252
|
/**
|
|
@@ -12613,7 +12691,7 @@ export interface FollowResponse {
|
|
|
12613
12691
|
created_at: Date;
|
|
12614
12692
|
|
|
12615
12693
|
/**
|
|
12616
|
-
* Role of the follower (source user) in the follow relationship
|
|
12694
|
+
* Role of the follower (source user) in the follow relationship, as stored. A reserved name, or a role your app no longer defines, is reported as stored but evaluated as 'feed_follower'.
|
|
12617
12695
|
*/
|
|
12618
12696
|
follower_role: string;
|
|
12619
12697
|
|
|
@@ -13524,6 +13602,11 @@ export interface GetOrCreateCallResponse {
|
|
|
13524
13602
|
}
|
|
13525
13603
|
|
|
13526
13604
|
export interface GetOrCreateFeedGroupRequest {
|
|
13605
|
+
/**
|
|
13606
|
+
* Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
|
|
13607
|
+
*/
|
|
13608
|
+
default_follower_role?: string;
|
|
13609
|
+
|
|
13527
13610
|
/**
|
|
13528
13611
|
* Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
|
|
13529
13612
|
*/
|
|
@@ -13543,6 +13626,8 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
13543
13626
|
|
|
13544
13627
|
activity_filter?: ActivityFilterConfig;
|
|
13545
13628
|
|
|
13629
|
+
activity_processing?: ActivityProcessingConfig;
|
|
13630
|
+
|
|
13546
13631
|
aggregation?: AggregationConfig;
|
|
13547
13632
|
|
|
13548
13633
|
/**
|
|
@@ -15620,6 +15705,28 @@ export interface MemberUpdatedEvent {
|
|
|
15620
15705
|
user?: UserResponseCommonFields;
|
|
15621
15706
|
}
|
|
15622
15707
|
|
|
15708
|
+
export interface MemberUserRequest {
|
|
15709
|
+
id: string;
|
|
15710
|
+
|
|
15711
|
+
image?: string;
|
|
15712
|
+
|
|
15713
|
+
invisible?: boolean;
|
|
15714
|
+
|
|
15715
|
+
language?: string;
|
|
15716
|
+
|
|
15717
|
+
name?: string;
|
|
15718
|
+
|
|
15719
|
+
role?: string;
|
|
15720
|
+
|
|
15721
|
+
teams?: Array<string>;
|
|
15722
|
+
|
|
15723
|
+
custom?: Record<string, any>;
|
|
15724
|
+
|
|
15725
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
15726
|
+
|
|
15727
|
+
teams_role?: Record<string, string>;
|
|
15728
|
+
}
|
|
15729
|
+
|
|
15623
15730
|
export interface MembersResponse {
|
|
15624
15731
|
/**
|
|
15625
15732
|
* Duration of the request in milliseconds
|
|
@@ -16481,6 +16588,11 @@ export interface MessageResponse {
|
|
|
16481
16588
|
|
|
16482
16589
|
member?: ChannelMemberPartialResponse;
|
|
16483
16590
|
|
|
16591
|
+
/**
|
|
16592
|
+
* Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
|
|
16593
|
+
*/
|
|
16594
|
+
mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
|
|
16595
|
+
|
|
16484
16596
|
moderation?: ModerationV2Response;
|
|
16485
16597
|
|
|
16486
16598
|
/**
|
|
@@ -16851,6 +16963,11 @@ export interface MessageWithChannelResponse {
|
|
|
16851
16963
|
|
|
16852
16964
|
member?: ChannelMemberPartialResponse;
|
|
16853
16965
|
|
|
16966
|
+
/**
|
|
16967
|
+
* Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
|
|
16968
|
+
*/
|
|
16969
|
+
mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
|
|
16970
|
+
|
|
16854
16971
|
moderation?: ModerationV2Response;
|
|
16855
16972
|
|
|
16856
16973
|
/**
|
|
@@ -17154,6 +17271,8 @@ export interface ModerationDashboardPreferences {
|
|
|
17154
17271
|
|
|
17155
17272
|
disable_flagging_reviewed_entity?: boolean;
|
|
17156
17273
|
|
|
17274
|
+
enforce_shadow_server_side?: boolean;
|
|
17275
|
+
|
|
17157
17276
|
escalation_queue_enabled?: boolean;
|
|
17158
17277
|
|
|
17159
17278
|
flag_user_on_flagged_content?: boolean;
|
|
@@ -17188,6 +17307,8 @@ export interface ModerationFlagResponse {
|
|
|
17188
17307
|
|
|
17189
17308
|
result: Array<Record<string, any>>;
|
|
17190
17309
|
|
|
17310
|
+
content_published_at?: Date;
|
|
17311
|
+
|
|
17191
17312
|
entity_creator_id?: string;
|
|
17192
17313
|
|
|
17193
17314
|
reason?: string;
|
|
@@ -18938,7 +19059,11 @@ export interface PollResponseData {
|
|
|
18938
19059
|
|
|
18939
19060
|
vote_count: number;
|
|
18940
19061
|
|
|
18941
|
-
|
|
19062
|
+
/**
|
|
19063
|
+
* Voting visibility of the poll
|
|
19064
|
+
*/
|
|
19065
|
+
|
|
19066
|
+
voting_visibility: 'anonymous' | 'public';
|
|
18942
19067
|
|
|
18943
19068
|
latest_answers: Array<PollVoteResponseData>;
|
|
18944
19069
|
|
|
@@ -20610,11 +20735,6 @@ export interface QueryLabelResultsResponse {
|
|
|
20610
20735
|
export interface QueryMembersPayload {
|
|
20611
20736
|
type: string;
|
|
20612
20737
|
|
|
20613
|
-
/**
|
|
20614
|
-
* Filter conditions to apply to the query
|
|
20615
|
-
*/
|
|
20616
|
-
filter_conditions: Record<string, any>;
|
|
20617
|
-
|
|
20618
20738
|
id?: string;
|
|
20619
20739
|
|
|
20620
20740
|
limit?: number;
|
|
@@ -20630,6 +20750,11 @@ export interface QueryMembersPayload {
|
|
|
20630
20750
|
*/
|
|
20631
20751
|
sort?: Array<SortParamRequest>;
|
|
20632
20752
|
|
|
20753
|
+
/**
|
|
20754
|
+
* Filter conditions to apply to the query
|
|
20755
|
+
*/
|
|
20756
|
+
filter_conditions?: Record<string, any>;
|
|
20757
|
+
|
|
20633
20758
|
/**
|
|
20634
20759
|
* User request object
|
|
20635
20760
|
*/
|
|
@@ -22170,6 +22295,8 @@ export interface ReminderCreatedEvent {
|
|
|
22170
22295
|
|
|
22171
22296
|
custom: Record<string, any>;
|
|
22172
22297
|
|
|
22298
|
+
reminder: ReminderResponseData;
|
|
22299
|
+
|
|
22173
22300
|
/**
|
|
22174
22301
|
* The type of event: "reminder.created" in this case
|
|
22175
22302
|
*/
|
|
@@ -22181,8 +22308,6 @@ export interface ReminderCreatedEvent {
|
|
|
22181
22308
|
parent_id?: string;
|
|
22182
22309
|
|
|
22183
22310
|
received_at?: Date;
|
|
22184
|
-
|
|
22185
|
-
reminder?: ReminderResponseData;
|
|
22186
22311
|
}
|
|
22187
22312
|
|
|
22188
22313
|
export interface ReminderDeletedEvent {
|
|
@@ -22208,6 +22333,8 @@ export interface ReminderDeletedEvent {
|
|
|
22208
22333
|
|
|
22209
22334
|
custom: Record<string, any>;
|
|
22210
22335
|
|
|
22336
|
+
reminder: ReminderResponseData;
|
|
22337
|
+
|
|
22211
22338
|
/**
|
|
22212
22339
|
* The type of event: "reminder.deleted" in this case
|
|
22213
22340
|
*/
|
|
@@ -22219,8 +22346,6 @@ export interface ReminderDeletedEvent {
|
|
|
22219
22346
|
parent_id?: string;
|
|
22220
22347
|
|
|
22221
22348
|
received_at?: Date;
|
|
22222
|
-
|
|
22223
|
-
reminder?: ReminderResponseData;
|
|
22224
22349
|
}
|
|
22225
22350
|
|
|
22226
22351
|
export interface ReminderNotificationEvent {
|
|
@@ -22246,6 +22371,8 @@ export interface ReminderNotificationEvent {
|
|
|
22246
22371
|
|
|
22247
22372
|
custom: Record<string, any>;
|
|
22248
22373
|
|
|
22374
|
+
reminder: ReminderResponseData;
|
|
22375
|
+
|
|
22249
22376
|
/**
|
|
22250
22377
|
* The type of event: "notification.reminder_due" in this case
|
|
22251
22378
|
*/
|
|
@@ -22254,8 +22381,6 @@ export interface ReminderNotificationEvent {
|
|
|
22254
22381
|
parent_id?: string;
|
|
22255
22382
|
|
|
22256
22383
|
received_at?: Date;
|
|
22257
|
-
|
|
22258
|
-
reminder?: ReminderResponseData;
|
|
22259
22384
|
}
|
|
22260
22385
|
|
|
22261
22386
|
export interface ReminderResponseData {
|
|
@@ -22310,6 +22435,8 @@ export interface ReminderUpdatedEvent {
|
|
|
22310
22435
|
|
|
22311
22436
|
custom: Record<string, any>;
|
|
22312
22437
|
|
|
22438
|
+
reminder: ReminderResponseData;
|
|
22439
|
+
|
|
22313
22440
|
/**
|
|
22314
22441
|
* The type of event: "reminder.updated" in this case
|
|
22315
22442
|
*/
|
|
@@ -22321,8 +22448,6 @@ export interface ReminderUpdatedEvent {
|
|
|
22321
22448
|
parent_id?: string;
|
|
22322
22449
|
|
|
22323
22450
|
received_at?: Date;
|
|
22324
|
-
|
|
22325
|
-
reminder?: ReminderResponseData;
|
|
22326
22451
|
}
|
|
22327
22452
|
|
|
22328
22453
|
export interface RemoveUserGroupMembersRequest {
|
|
@@ -23636,6 +23761,8 @@ export interface SearchResultMessage {
|
|
|
23636
23761
|
|
|
23637
23762
|
member?: ChannelMemberPartialResponse;
|
|
23638
23763
|
|
|
23764
|
+
mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
|
|
23765
|
+
|
|
23639
23766
|
moderation?: ModerationV2Response;
|
|
23640
23767
|
|
|
23641
23768
|
/**
|
|
@@ -25578,6 +25705,18 @@ export interface TranslateMessageRequest {
|
|
|
25578
25705
|
| 'ht';
|
|
25579
25706
|
}
|
|
25580
25707
|
|
|
25708
|
+
export interface TranslateMessageResponse {
|
|
25709
|
+
/**
|
|
25710
|
+
* Duration of the request in milliseconds
|
|
25711
|
+
*/
|
|
25712
|
+
duration: string;
|
|
25713
|
+
|
|
25714
|
+
/**
|
|
25715
|
+
* Represents any chat message
|
|
25716
|
+
*/
|
|
25717
|
+
message: MessageResponse;
|
|
25718
|
+
}
|
|
25719
|
+
|
|
25581
25720
|
export interface TranslationSettings {
|
|
25582
25721
|
enabled?: boolean;
|
|
25583
25722
|
|
|
@@ -25692,7 +25831,8 @@ export interface UnbanActionRequestPayload {
|
|
|
25692
25831
|
|
|
25693
25832
|
export interface UnbanRequest {
|
|
25694
25833
|
/**
|
|
25695
|
-
*
|
|
25834
|
+
* @deprecated
|
|
25835
|
+
* ID of the user performing the unban Deprecated: not used by the unban flow
|
|
25696
25836
|
*/
|
|
25697
25837
|
unbanned_by_id?: string;
|
|
25698
25838
|
|
|
@@ -26229,8 +26369,12 @@ export interface UpdateAppRequest {
|
|
|
26229
26369
|
|
|
26230
26370
|
max_aggregated_activities_length?: number;
|
|
26231
26371
|
|
|
26372
|
+
member_custom_on_mentioned_users_enabled?: boolean;
|
|
26373
|
+
|
|
26232
26374
|
member_custom_on_messages_enabled?: boolean;
|
|
26233
26375
|
|
|
26376
|
+
member_custom_on_typing_events_enabled?: boolean;
|
|
26377
|
+
|
|
26234
26378
|
migrate_permissions_to_v2?: boolean;
|
|
26235
26379
|
|
|
26236
26380
|
moderation_analytics_enabled?: boolean;
|
|
@@ -27087,6 +27231,15 @@ export interface UpdateExternalStorageResponse {
|
|
|
27087
27231
|
}
|
|
27088
27232
|
|
|
27089
27233
|
export interface UpdateFeedGroupRequest {
|
|
27234
|
+
/**
|
|
27235
|
+
* Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
|
|
27236
|
+
*/
|
|
27237
|
+
default_follower_role?: string;
|
|
27238
|
+
|
|
27239
|
+
/**
|
|
27240
|
+
* Default visibility for the feed group. One of: public, visible, followers, members, private
|
|
27241
|
+
*/
|
|
27242
|
+
|
|
27090
27243
|
default_visibility?:
|
|
27091
27244
|
'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
27092
27245
|
|
|
@@ -27102,6 +27255,8 @@ export interface UpdateFeedGroupRequest {
|
|
|
27102
27255
|
|
|
27103
27256
|
activity_filter?: ActivityFilterConfig;
|
|
27104
27257
|
|
|
27258
|
+
activity_processing?: ActivityProcessingConfig;
|
|
27259
|
+
|
|
27105
27260
|
aggregation?: AggregationConfig;
|
|
27106
27261
|
|
|
27107
27262
|
/**
|
|
@@ -27268,6 +27423,9 @@ export interface UpdateFollowRequest {
|
|
|
27268
27423
|
*/
|
|
27269
27424
|
enrich_own_fields?: boolean;
|
|
27270
27425
|
|
|
27426
|
+
/**
|
|
27427
|
+
* Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.
|
|
27428
|
+
*/
|
|
27271
27429
|
follower_role?: string;
|
|
27272
27430
|
|
|
27273
27431
|
/**
|
|
@@ -27818,6 +27976,10 @@ export interface UpdateUsersResponse {
|
|
|
27818
27976
|
*/
|
|
27819
27977
|
duration: string;
|
|
27820
27978
|
|
|
27979
|
+
/**
|
|
27980
|
+
* @deprecated
|
|
27981
|
+
* Deprecated: always empty. Removing a user from a team no longer deletes their memberships in that team's channels, so there is no task to poll
|
|
27982
|
+
*/
|
|
27821
27983
|
membership_deletion_task_id: string;
|
|
27822
27984
|
|
|
27823
27985
|
/**
|
|
@@ -28062,7 +28224,7 @@ export interface UpsertConfigRequest {
|
|
|
28062
28224
|
|
|
28063
28225
|
ai_text_config?: AITextConfig;
|
|
28064
28226
|
|
|
28065
|
-
ai_video_config?:
|
|
28227
|
+
ai_video_config?: AIVideoConfigRequest;
|
|
28066
28228
|
|
|
28067
28229
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
28068
28230
|
|
|
@@ -1955,11 +1955,11 @@ export class VideoApi {
|
|
|
1955
1955
|
|
|
1956
1956
|
async getDailyDigest(request?: {
|
|
1957
1957
|
date?: string;
|
|
1958
|
-
|
|
1958
|
+
target_app_id?: string;
|
|
1959
1959
|
}): Promise<StreamResponse<GetDailyDigestResponse>> {
|
|
1960
1960
|
const queryParams = {
|
|
1961
1961
|
date: request?.date,
|
|
1962
|
-
|
|
1962
|
+
target_app_id: request?.target_app_id,
|
|
1963
1963
|
};
|
|
1964
1964
|
|
|
1965
1965
|
const response = await this.apiClient.sendRequest<
|