@stream-io/node-sdk 0.8.4 → 0.8.6
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 +18 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +18 -2
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +2 -2
- package/dist/src/gen/models/index.d.ts +87 -7
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +6 -3
- package/src/gen/common/CommonApi.ts +2 -0
- package/src/gen/feeds/FeedsApi.ts +3 -0
- package/src/gen/model-decoders/decoders.ts +9 -0
- package/src/gen/models/index.ts +115 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, StreamResponse } from '../../gen-imports';
|
|
2
|
-
import { AddSegmentTargetsRequest, CampaignResponse, CastPollVoteRequest, ChannelBatchUpdateRequest, ChannelBatchUpdateResponse, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateCampaignRequest, CreateCampaignResponse, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreatePredefinedFilterRequest, CreatePredefinedFilterResponse, CreateReminderRequest, CreateReminderResponse, CreateSegmentRequest, CreateSegmentResponse, DeleteCampaignResponse, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteReactionResponse, DeleteReminderResponse, DeleteRetentionPolicyRequest, DeleteRetentionPolicyResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetDraftResponse, GetManyMessagesResponse, GetMessageResponse, GetPinnedMessagesResponse, GetPredefinedFilterResponse, GetReactionsResponse, GetRepliesResponse, GetRetentionPolicyResponse, GetRetentionPolicyRunsRequest, GetRetentionPolicyRunsResponse, GetSegmentResponse, GetThreadResponse, GroupedQueryChannelsRequest, GroupedQueryChannelsResponse, HideChannelRequest, HideChannelResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkDeliveredRequest, MarkDeliveredResponse, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageActionResponse, MuteChannelRequest, MuteChannelResponse, PollVoteResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryDraftsRequest, QueryDraftsResponse, QueryFutureChannelBansPayload, QueryFutureChannelBansResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryPredefinedFiltersResponse, QueryReactionsRequest, QueryReactionsResponse, QueryRemindersRequest, QueryRemindersResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryTeamUsageStatsRequest, QueryTeamUsageStatsResponse, QueryThreadsRequest, QueryThreadsResponse, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, SetRetentionPolicyRequest, SetRetentionPolicyResponse, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TruncateChannelRequest, TruncateChannelResponse, UndeleteMessageRequest, UndeleteMessageResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateCampaignRequest, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdatePredefinedFilterRequest, UpdatePredefinedFilterResponse, UpdateReminderRequest, UpdateReminderResponse, UpdateSegmentRequest, UpdateSegmentResponse, UpdateThreadPartialRequest, UpdateThreadPartialResponse, UploadChannelFileRequest, UploadChannelFileResponse, UploadChannelRequest, UploadChannelResponse, WrappedUnreadCountsResponse } from '../models';
|
|
2
|
+
import { AddSegmentTargetsRequest, CampaignResponse, CastPollVoteRequest, ChannelBatchUpdateRequest, ChannelBatchUpdateResponse, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateCampaignRequest, CreateCampaignResponse, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreatePredefinedFilterRequest, CreatePredefinedFilterResponse, CreateReminderRequest, CreateReminderResponse, CreateSegmentRequest, CreateSegmentResponse, DeleteCampaignResponse, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteReactionResponse, DeleteReminderResponse, DeleteRetentionPolicyRequest, DeleteRetentionPolicyResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetDraftResponse, GetManyMessagesResponse, GetMessageResponse, GetPinnedMessagesResponse, GetPredefinedFilterResponse, GetReactionsResponse, GetRepliesResponse, GetRetentionPolicyResponse, GetRetentionPolicyRunsRequest, GetRetentionPolicyRunsResponse, GetSegmentResponse, GetThreadResponse, GroupedQueryChannelsRequest, GroupedQueryChannelsResponse, HideChannelRequest, HideChannelResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkDeliveredRequest, MarkDeliveredResponse, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageActionResponse, MuteChannelRequest, MuteChannelResponse, PollVoteResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryDraftsRequest, QueryDraftsResponse, QueryFutureChannelBansPayload, QueryFutureChannelBansResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryPredefinedFiltersResponse, QueryReactionsRequest, QueryReactionsResponse, QueryRemindersRequest, QueryRemindersResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryTeamUsageStatsRequest, QueryTeamUsageStatsResponse, QueryThreadsRequest, QueryThreadsResponse, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, SetRetentionPolicyRequest, SetRetentionPolicyResponse, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TranslateMessageResponse, TruncateChannelRequest, TruncateChannelResponse, UndeleteMessageRequest, UndeleteMessageResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateCampaignRequest, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdatePredefinedFilterRequest, UpdatePredefinedFilterResponse, UpdateReminderRequest, UpdateReminderResponse, UpdateSegmentRequest, UpdateSegmentResponse, UpdateThreadPartialRequest, UpdateThreadPartialResponse, UploadChannelFileRequest, UploadChannelFileResponse, UploadChannelRequest, UploadChannelResponse, WrappedUnreadCountsResponse } from '../models';
|
|
3
3
|
export declare class ChatApi {
|
|
4
4
|
readonly apiClient: ApiClient;
|
|
5
5
|
constructor(apiClient: ApiClient);
|
|
@@ -224,7 +224,7 @@ export declare class ChatApi {
|
|
|
224
224
|
}): Promise<StreamResponse<QueryReactionsResponse>>;
|
|
225
225
|
translateMessage(request: TranslateMessageRequest & {
|
|
226
226
|
id: string;
|
|
227
|
-
}): Promise<StreamResponse<
|
|
227
|
+
}): Promise<StreamResponse<TranslateMessageResponse>>;
|
|
228
228
|
undeleteMessage(request: UndeleteMessageRequest & {
|
|
229
229
|
id: string;
|
|
230
230
|
}): Promise<StreamResponse<UndeleteMessageResponse>>;
|
|
@@ -29,8 +29,19 @@ export interface AITextConfig {
|
|
|
29
29
|
export interface AIVideoConfig {
|
|
30
30
|
async?: boolean;
|
|
31
31
|
enabled?: boolean;
|
|
32
|
+
provider?: string;
|
|
32
33
|
rules?: Array<AWSRekognitionRule>;
|
|
33
34
|
}
|
|
35
|
+
export interface AIVideoConfigRequest {
|
|
36
|
+
async?: boolean;
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
rules?: Array<AWSRekognitionRule>;
|
|
39
|
+
}
|
|
40
|
+
export interface AIVideoConfigResponse {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
rules: Array<AWSRekognitionRule>;
|
|
43
|
+
async?: boolean;
|
|
44
|
+
}
|
|
34
45
|
export interface APIError {
|
|
35
46
|
/**
|
|
36
47
|
* API error code
|
|
@@ -136,7 +147,7 @@ export interface AcceptFollowRequest {
|
|
|
136
147
|
*/
|
|
137
148
|
target: string;
|
|
138
149
|
/**
|
|
139
|
-
* Optional role for the follower in the follow relationship. Server-side only
|
|
150
|
+
* 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.
|
|
140
151
|
*/
|
|
141
152
|
follower_role?: string;
|
|
142
153
|
}
|
|
@@ -410,6 +421,20 @@ export interface ActivityPinnedEvent {
|
|
|
410
421
|
received_at?: Date;
|
|
411
422
|
user?: UserResponseCommonFields;
|
|
412
423
|
}
|
|
424
|
+
export interface ActivityProcessingConfig {
|
|
425
|
+
/**
|
|
426
|
+
* 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.
|
|
427
|
+
*/
|
|
428
|
+
send_allowed_tags_to_ai?: boolean;
|
|
429
|
+
/**
|
|
430
|
+
* 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.
|
|
431
|
+
*/
|
|
432
|
+
allowed_tags?: Array<string>;
|
|
433
|
+
/**
|
|
434
|
+
* Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags.
|
|
435
|
+
*/
|
|
436
|
+
blocked_tags?: Array<string>;
|
|
437
|
+
}
|
|
413
438
|
export interface ActivityProcessorConfig {
|
|
414
439
|
/**
|
|
415
440
|
* Type of activity processor (required)
|
|
@@ -796,6 +821,7 @@ export interface ActivitySelectorConfig {
|
|
|
796
821
|
* Sort parameters for activity selection
|
|
797
822
|
*/
|
|
798
823
|
sort?: Array<SortParamRequest>;
|
|
824
|
+
feed_groups?: FeedGroupScope;
|
|
799
825
|
/**
|
|
800
826
|
* Filter for activity selection
|
|
801
827
|
*/
|
|
@@ -823,6 +849,7 @@ export interface ActivitySelectorConfigResponse {
|
|
|
823
849
|
* Sort parameters for activity selection
|
|
824
850
|
*/
|
|
825
851
|
sort?: Array<SortParamRequest>;
|
|
852
|
+
feed_groups?: FeedGroupScope;
|
|
826
853
|
/**
|
|
827
854
|
* Filter for activity selection
|
|
828
855
|
*/
|
|
@@ -1367,7 +1394,7 @@ export interface AnalyzeRequest {
|
|
|
1367
1394
|
export interface AnalyzeResponse {
|
|
1368
1395
|
duration: string;
|
|
1369
1396
|
/**
|
|
1370
|
-
*
|
|
1397
|
+
* `complete` (all fields screened), `partial` (mix of verdicts and per-field errors), or `pending` (async).
|
|
1371
1398
|
*/
|
|
1372
1399
|
status: string;
|
|
1373
1400
|
/**
|
|
@@ -1422,8 +1449,10 @@ export interface AppResponseFields {
|
|
|
1422
1449
|
max_aggregated_activities_length: number;
|
|
1423
1450
|
member_custom_on_mentioned_users_enabled: boolean;
|
|
1424
1451
|
member_custom_on_messages_enabled: boolean;
|
|
1452
|
+
member_custom_on_typing_events_enabled: boolean;
|
|
1425
1453
|
moderation_audio_call_moderation_enabled: boolean;
|
|
1426
1454
|
moderation_enabled: boolean;
|
|
1455
|
+
moderation_keyframe_video_enabled: boolean;
|
|
1427
1456
|
moderation_llm_configurability_enabled: boolean;
|
|
1428
1457
|
moderation_multitenant_blocklist_enabled: boolean;
|
|
1429
1458
|
moderation_video_call_moderation_enabled: boolean;
|
|
@@ -3763,7 +3792,15 @@ export interface ChannelBatchUpdateRequest {
|
|
|
3763
3792
|
* Filter to apply to the query
|
|
3764
3793
|
*/
|
|
3765
3794
|
filter: Record<string, any>;
|
|
3795
|
+
/**
|
|
3796
|
+
* `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`
|
|
3797
|
+
*/
|
|
3798
|
+
custom_unset?: Array<string>;
|
|
3766
3799
|
members?: Array<ChannelBatchMemberRequest>;
|
|
3800
|
+
/**
|
|
3801
|
+
* `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`
|
|
3802
|
+
*/
|
|
3803
|
+
custom_set?: Record<string, any>;
|
|
3767
3804
|
data?: ChannelDataUpdate;
|
|
3768
3805
|
}
|
|
3769
3806
|
export interface ChannelBatchUpdateResponse {
|
|
@@ -5706,7 +5743,7 @@ export interface ConfigResponse {
|
|
|
5706
5743
|
*/
|
|
5707
5744
|
ai_image_subclassifications?: Record<string, Array<string>>;
|
|
5708
5745
|
ai_text_config?: AITextConfig;
|
|
5709
|
-
ai_video_config?:
|
|
5746
|
+
ai_video_config?: AIVideoConfigResponse;
|
|
5710
5747
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
5711
5748
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
5712
5749
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
@@ -6156,6 +6193,9 @@ export interface CreateFeedGroupRequest {
|
|
|
6156
6193
|
* Unique identifier for the feed group
|
|
6157
6194
|
*/
|
|
6158
6195
|
id: string;
|
|
6196
|
+
/**
|
|
6197
|
+
* 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
|
|
6198
|
+
*/
|
|
6159
6199
|
default_follower_role?: string;
|
|
6160
6200
|
/**
|
|
6161
6201
|
* Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
|
|
@@ -6170,6 +6210,7 @@ export interface CreateFeedGroupRequest {
|
|
|
6170
6210
|
*/
|
|
6171
6211
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
6172
6212
|
activity_filter?: ActivityFilterConfig;
|
|
6213
|
+
activity_processing?: ActivityProcessingConfig;
|
|
6173
6214
|
aggregation?: AggregationConfig;
|
|
6174
6215
|
/**
|
|
6175
6216
|
* Custom data for the feed group
|
|
@@ -7932,7 +7973,7 @@ export interface FeedGroupResponse {
|
|
|
7932
7973
|
*/
|
|
7933
7974
|
updated_at: Date;
|
|
7934
7975
|
/**
|
|
7935
|
-
* Role new followers of feeds in this group are given.
|
|
7976
|
+
* 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
|
|
7936
7977
|
*/
|
|
7937
7978
|
default_follower_role?: string;
|
|
7938
7979
|
/**
|
|
@@ -7949,6 +7990,7 @@ export interface FeedGroupResponse {
|
|
|
7949
7990
|
*/
|
|
7950
7991
|
activity_selectors?: Array<ActivitySelectorConfigResponse>;
|
|
7951
7992
|
activity_filter?: ActivityFilterConfig;
|
|
7993
|
+
activity_processing?: ActivityProcessingConfig;
|
|
7952
7994
|
aggregation?: AggregationConfig;
|
|
7953
7995
|
/**
|
|
7954
7996
|
* Custom data for the feed group
|
|
@@ -7977,6 +8019,16 @@ export interface FeedGroupRestoredEvent {
|
|
|
7977
8019
|
feed_visibility?: string;
|
|
7978
8020
|
received_at?: Date;
|
|
7979
8021
|
}
|
|
8022
|
+
export interface FeedGroupScope {
|
|
8023
|
+
/**
|
|
8024
|
+
* Select activities from every feed group except these. An activity cross-posted to an excluded and a non-excluded group is still selected. Mutually exclusive with include
|
|
8025
|
+
*/
|
|
8026
|
+
exclude?: Array<string>;
|
|
8027
|
+
/**
|
|
8028
|
+
* Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude
|
|
8029
|
+
*/
|
|
8030
|
+
include?: Array<string>;
|
|
8031
|
+
}
|
|
7980
8032
|
export interface FeedInput {
|
|
7981
8033
|
description?: string;
|
|
7982
8034
|
name?: string;
|
|
@@ -8949,7 +9001,7 @@ export interface FollowResponse {
|
|
|
8949
9001
|
*/
|
|
8950
9002
|
created_at: Date;
|
|
8951
9003
|
/**
|
|
8952
|
-
* Role of the follower (source user) in the follow relationship, as stored. A
|
|
9004
|
+
* 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'.
|
|
8953
9005
|
*/
|
|
8954
9006
|
follower_role: string;
|
|
8955
9007
|
/**
|
|
@@ -9561,6 +9613,9 @@ export interface GetOrCreateCallResponse {
|
|
|
9561
9613
|
call: CallResponse;
|
|
9562
9614
|
}
|
|
9563
9615
|
export interface GetOrCreateFeedGroupRequest {
|
|
9616
|
+
/**
|
|
9617
|
+
* 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
|
|
9618
|
+
*/
|
|
9564
9619
|
default_follower_role?: string;
|
|
9565
9620
|
/**
|
|
9566
9621
|
* Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
|
|
@@ -9575,6 +9630,7 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
9575
9630
|
*/
|
|
9576
9631
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
9577
9632
|
activity_filter?: ActivityFilterConfig;
|
|
9633
|
+
activity_processing?: ActivityProcessingConfig;
|
|
9578
9634
|
aggregation?: AggregationConfig;
|
|
9579
9635
|
/**
|
|
9580
9636
|
* Custom data for the feed group
|
|
@@ -12230,6 +12286,7 @@ export interface ModerationDashboardPreferences {
|
|
|
12230
12286
|
custom_views_enabled?: boolean;
|
|
12231
12287
|
disable_audit_logs?: boolean;
|
|
12232
12288
|
disable_flagging_reviewed_entity?: boolean;
|
|
12289
|
+
enforce_shadow_server_side?: boolean;
|
|
12233
12290
|
escalation_queue_enabled?: boolean;
|
|
12234
12291
|
flag_user_on_flagged_content?: boolean;
|
|
12235
12292
|
include_attachment_payload?: boolean;
|
|
@@ -12248,6 +12305,7 @@ export interface ModerationFlagResponse {
|
|
|
12248
12305
|
updated_at: Date;
|
|
12249
12306
|
user_id: string;
|
|
12250
12307
|
result: Array<Record<string, any>>;
|
|
12308
|
+
content_published_at?: Date;
|
|
12251
12309
|
entity_creator_id?: string;
|
|
12252
12310
|
reason?: string;
|
|
12253
12311
|
review_queue_item_id?: string;
|
|
@@ -18031,6 +18089,16 @@ export interface TranslateMessageRequest {
|
|
|
18031
18089
|
*/
|
|
18032
18090
|
language: 'af' | 'sq' | 'am' | 'ar' | 'az' | 'bn' | 'bs' | 'bg' | 'zh' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'fa-AF' | 'nl' | 'en' | 'et' | 'fi' | 'fr' | 'fr-CA' | 'ka' | 'de' | 'el' | 'ha' | 'he' | 'hi' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lv' | 'ms' | 'no' | 'fa' | 'ps' | 'pl' | 'pt' | 'ro' | 'ru' | 'sr' | 'sk' | 'sl' | 'so' | 'es' | 'es-MX' | 'sw' | 'sv' | 'tl' | 'ta' | 'th' | 'tr' | 'uk' | 'ur' | 'vi' | 'lt' | 'ht';
|
|
18033
18091
|
}
|
|
18092
|
+
export interface TranslateMessageResponse {
|
|
18093
|
+
/**
|
|
18094
|
+
* Duration of the request in milliseconds
|
|
18095
|
+
*/
|
|
18096
|
+
duration: string;
|
|
18097
|
+
/**
|
|
18098
|
+
* Represents any chat message
|
|
18099
|
+
*/
|
|
18100
|
+
message: MessageResponse;
|
|
18101
|
+
}
|
|
18034
18102
|
export interface TranslationSettings {
|
|
18035
18103
|
enabled?: boolean;
|
|
18036
18104
|
languages?: Array<string>;
|
|
@@ -18522,6 +18590,7 @@ export interface UpdateAppRequest {
|
|
|
18522
18590
|
max_aggregated_activities_length?: number;
|
|
18523
18591
|
member_custom_on_mentioned_users_enabled?: boolean;
|
|
18524
18592
|
member_custom_on_messages_enabled?: boolean;
|
|
18593
|
+
member_custom_on_typing_events_enabled?: boolean;
|
|
18525
18594
|
migrate_permissions_to_v2?: boolean;
|
|
18526
18595
|
moderation_analytics_enabled?: boolean;
|
|
18527
18596
|
moderation_enabled?: boolean;
|
|
@@ -19109,7 +19178,13 @@ export interface UpdateExternalStorageResponse {
|
|
|
19109
19178
|
type: 's3' | 'gcs' | 'abs';
|
|
19110
19179
|
}
|
|
19111
19180
|
export interface UpdateFeedGroupRequest {
|
|
19181
|
+
/**
|
|
19182
|
+
* 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
|
|
19183
|
+
*/
|
|
19112
19184
|
default_follower_role?: string;
|
|
19185
|
+
/**
|
|
19186
|
+
* Default visibility for the feed group. One of: public, visible, followers, members, private
|
|
19187
|
+
*/
|
|
19113
19188
|
default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
19114
19189
|
/**
|
|
19115
19190
|
* Configuration for activity processors
|
|
@@ -19120,6 +19195,7 @@ export interface UpdateFeedGroupRequest {
|
|
|
19120
19195
|
*/
|
|
19121
19196
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
19122
19197
|
activity_filter?: ActivityFilterConfig;
|
|
19198
|
+
activity_processing?: ActivityProcessingConfig;
|
|
19123
19199
|
aggregation?: AggregationConfig;
|
|
19124
19200
|
/**
|
|
19125
19201
|
* Custom data for the feed group
|
|
@@ -19244,7 +19320,7 @@ export interface UpdateFollowRequest {
|
|
|
19244
19320
|
*/
|
|
19245
19321
|
enrich_own_fields?: boolean;
|
|
19246
19322
|
/**
|
|
19247
|
-
* Optional role for the follower in the follow relationship. Server-side only
|
|
19323
|
+
* 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.
|
|
19248
19324
|
*/
|
|
19249
19325
|
follower_role?: string;
|
|
19250
19326
|
/**
|
|
@@ -19673,6 +19749,10 @@ export interface UpdateUsersResponse {
|
|
|
19673
19749
|
* Duration of the request in milliseconds
|
|
19674
19750
|
*/
|
|
19675
19751
|
duration: string;
|
|
19752
|
+
/**
|
|
19753
|
+
* @deprecated
|
|
19754
|
+
* 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
|
|
19755
|
+
*/
|
|
19676
19756
|
membership_deletion_task_id: string;
|
|
19677
19757
|
/**
|
|
19678
19758
|
* Object containing users
|
|
@@ -19859,7 +19939,7 @@ export interface UpsertConfigRequest {
|
|
|
19859
19939
|
ai_audio_config?: AIAudioConfigRequest;
|
|
19860
19940
|
ai_image_config?: AIImageConfig;
|
|
19861
19941
|
ai_text_config?: AITextConfig;
|
|
19862
|
-
ai_video_config?:
|
|
19942
|
+
ai_video_config?: AIVideoConfigRequest;
|
|
19863
19943
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
19864
19944
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
19865
19945
|
automod_toxicity_config?: AutomodToxicityConfig;
|
package/package.json
CHANGED
package/src/gen/chat/ChatApi.ts
CHANGED
|
@@ -113,6 +113,7 @@ import {
|
|
|
113
113
|
StartCampaignResponse,
|
|
114
114
|
StopCampaignRequest,
|
|
115
115
|
TranslateMessageRequest,
|
|
116
|
+
TranslateMessageResponse,
|
|
116
117
|
TruncateChannelRequest,
|
|
117
118
|
TruncateChannelResponse,
|
|
118
119
|
UndeleteMessageRequest,
|
|
@@ -390,7 +391,9 @@ export class ChatApi {
|
|
|
390
391
|
const body = {
|
|
391
392
|
operation: request?.operation,
|
|
392
393
|
filter: request?.filter,
|
|
394
|
+
custom_unset: request?.custom_unset,
|
|
393
395
|
members: request?.members,
|
|
396
|
+
custom_set: request?.custom_set,
|
|
394
397
|
data: request?.data,
|
|
395
398
|
};
|
|
396
399
|
|
|
@@ -1865,7 +1868,7 @@ export class ChatApi {
|
|
|
1865
1868
|
|
|
1866
1869
|
async translateMessage(
|
|
1867
1870
|
request: TranslateMessageRequest & { id: string },
|
|
1868
|
-
): Promise<StreamResponse<
|
|
1871
|
+
): Promise<StreamResponse<TranslateMessageResponse>> {
|
|
1869
1872
|
const pathParams = {
|
|
1870
1873
|
id: request?.id,
|
|
1871
1874
|
};
|
|
@@ -1874,7 +1877,7 @@ export class ChatApi {
|
|
|
1874
1877
|
};
|
|
1875
1878
|
|
|
1876
1879
|
const response = await this.apiClient.sendRequest<
|
|
1877
|
-
StreamResponse<
|
|
1880
|
+
StreamResponse<TranslateMessageResponse>
|
|
1878
1881
|
>(
|
|
1879
1882
|
'POST',
|
|
1880
1883
|
'/api/v2/chat/messages/{id}/translate',
|
|
@@ -1884,7 +1887,7 @@ export class ChatApi {
|
|
|
1884
1887
|
'application/json',
|
|
1885
1888
|
);
|
|
1886
1889
|
|
|
1887
|
-
decoders['
|
|
1890
|
+
decoders['TranslateMessageResponse']?.(response.body);
|
|
1888
1891
|
|
|
1889
1892
|
return { ...response.body, metadata: response.metadata };
|
|
1890
1893
|
}
|
|
@@ -160,6 +160,8 @@ export class CommonApi {
|
|
|
160
160
|
request?.member_custom_on_mentioned_users_enabled,
|
|
161
161
|
member_custom_on_messages_enabled:
|
|
162
162
|
request?.member_custom_on_messages_enabled,
|
|
163
|
+
member_custom_on_typing_events_enabled:
|
|
164
|
+
request?.member_custom_on_typing_events_enabled,
|
|
163
165
|
migrate_permissions_to_v2: request?.migrate_permissions_to_v2,
|
|
164
166
|
moderation_analytics_enabled: request?.moderation_analytics_enabled,
|
|
165
167
|
moderation_enabled: request?.moderation_enabled,
|
|
@@ -1720,6 +1720,7 @@ export class FeedsApi {
|
|
|
1720
1720
|
activity_processors: request?.activity_processors,
|
|
1721
1721
|
activity_selectors: request?.activity_selectors,
|
|
1722
1722
|
activity_filter: request?.activity_filter,
|
|
1723
|
+
activity_processing: request?.activity_processing,
|
|
1723
1724
|
aggregation: request?.aggregation,
|
|
1724
1725
|
custom: request?.custom,
|
|
1725
1726
|
notification: request?.notification,
|
|
@@ -2281,6 +2282,7 @@ export class FeedsApi {
|
|
|
2281
2282
|
activity_processors: request?.activity_processors,
|
|
2282
2283
|
activity_selectors: request?.activity_selectors,
|
|
2283
2284
|
activity_filter: request?.activity_filter,
|
|
2285
|
+
activity_processing: request?.activity_processing,
|
|
2284
2286
|
aggregation: request?.aggregation,
|
|
2285
2287
|
custom: request?.custom,
|
|
2286
2288
|
notification: request?.notification,
|
|
@@ -2317,6 +2319,7 @@ export class FeedsApi {
|
|
|
2317
2319
|
activity_processors: request?.activity_processors,
|
|
2318
2320
|
activity_selectors: request?.activity_selectors,
|
|
2319
2321
|
activity_filter: request?.activity_filter,
|
|
2322
|
+
activity_processing: request?.activity_processing,
|
|
2320
2323
|
aggregation: request?.aggregation,
|
|
2321
2324
|
custom: request?.custom,
|
|
2322
2325
|
notification: request?.notification,
|
|
@@ -3837,6 +3837,8 @@ decoders['ModerationFlagResponse'] = (input?: { [key: string]: any }) => {
|
|
|
3837
3837
|
|
|
3838
3838
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3839
3839
|
|
|
3840
|
+
content_published_at: { type: 'DatetimeType', isSingle: true },
|
|
3841
|
+
|
|
3840
3842
|
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
3841
3843
|
|
|
3842
3844
|
user: { type: 'UserResponse', isSingle: true },
|
|
@@ -5425,6 +5427,13 @@ decoders['TranslateCommentResponse'] = (input?: { [key: string]: any }) => {
|
|
|
5425
5427
|
return decode(typeMappings, input);
|
|
5426
5428
|
};
|
|
5427
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
|
+
|
|
5428
5437
|
decoders['TruncateChannelResponse'] = (input?: { [key: string]: any }) => {
|
|
5429
5438
|
const typeMappings: TypeMapping = {
|
|
5430
5439
|
channel: { type: 'ChannelResponse', isSingle: true },
|