Skip to content

Commit 4205d5a

Browse files
authored
1 parent 3836e68 commit 4205d5a

5 files changed

Lines changed: 119 additions & 10 deletions

File tree

src/gen/chat/ChatApi.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ import {
113113
StartCampaignResponse,
114114
StopCampaignRequest,
115115
TranslateMessageRequest,
116+
TranslateMessageResponse,
116117
TruncateChannelRequest,
117118
TruncateChannelResponse,
118119
UndeleteMessageRequest,
@@ -390,7 +391,9 @@ export class ChatApi {
390391
const body = {
391392
operation: request?.operation,
392393
filter: request?.filter,
394+
custom_unset: request?.custom_unset,
393395
members: request?.members,
396+
custom_set: request?.custom_set,
394397
data: request?.data,
395398
};
396399

@@ -1865,7 +1868,7 @@ export class ChatApi {
18651868

18661869
async translateMessage(
18671870
request: TranslateMessageRequest & { id: string },
1868-
): Promise<StreamResponse<MessageActionResponse>> {
1871+
): Promise<StreamResponse<TranslateMessageResponse>> {
18691872
const pathParams = {
18701873
id: request?.id,
18711874
};
@@ -1874,7 +1877,7 @@ export class ChatApi {
18741877
};
18751878

18761879
const response = await this.apiClient.sendRequest<
1877-
StreamResponse<MessageActionResponse>
1880+
StreamResponse<TranslateMessageResponse>
18781881
>(
18791882
'POST',
18801883
'/api/v2/chat/messages/{id}/translate',
@@ -1884,7 +1887,7 @@ export class ChatApi {
18841887
'application/json',
18851888
);
18861889

1887-
decoders['MessageActionResponse']?.(response.body);
1890+
decoders['TranslateMessageResponse']?.(response.body);
18881891

18891892
return { ...response.body, metadata: response.metadata };
18901893
}

src/gen/common/CommonApi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ export class CommonApi {
160160
request?.member_custom_on_mentioned_users_enabled,
161161
member_custom_on_messages_enabled:
162162
request?.member_custom_on_messages_enabled,
163+
member_custom_on_typing_events_enabled:
164+
request?.member_custom_on_typing_events_enabled,
163165
migrate_permissions_to_v2: request?.migrate_permissions_to_v2,
164166
moderation_analytics_enabled: request?.moderation_analytics_enabled,
165167
moderation_enabled: request?.moderation_enabled,

src/gen/feeds/FeedsApi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,7 @@ export class FeedsApi {
17201720
activity_processors: request?.activity_processors,
17211721
activity_selectors: request?.activity_selectors,
17221722
activity_filter: request?.activity_filter,
1723+
activity_processing: request?.activity_processing,
17231724
aggregation: request?.aggregation,
17241725
custom: request?.custom,
17251726
notification: request?.notification,
@@ -2281,6 +2282,7 @@ export class FeedsApi {
22812282
activity_processors: request?.activity_processors,
22822283
activity_selectors: request?.activity_selectors,
22832284
activity_filter: request?.activity_filter,
2285+
activity_processing: request?.activity_processing,
22842286
aggregation: request?.aggregation,
22852287
custom: request?.custom,
22862288
notification: request?.notification,
@@ -2317,6 +2319,7 @@ export class FeedsApi {
23172319
activity_processors: request?.activity_processors,
23182320
activity_selectors: request?.activity_selectors,
23192321
activity_filter: request?.activity_filter,
2322+
activity_processing: request?.activity_processing,
23202323
aggregation: request?.aggregation,
23212324
custom: request?.custom,
23222325
notification: request?.notification,

src/gen/model-decoders/decoders.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3837,6 +3837,8 @@ decoders['ModerationFlagResponse'] = (input?: { [key: string]: any }) => {
38373837

38383838
updated_at: { type: 'DatetimeType', isSingle: true },
38393839

3840+
content_published_at: { type: 'DatetimeType', isSingle: true },
3841+
38403842
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
38413843

38423844
user: { type: 'UserResponse', isSingle: true },
@@ -5425,6 +5427,13 @@ decoders['TranslateCommentResponse'] = (input?: { [key: string]: any }) => {
54255427
return decode(typeMappings, input);
54265428
};
54275429

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+
54285437
decoders['TruncateChannelResponse'] = (input?: { [key: string]: any }) => {
54295438
const typeMappings: TypeMapping = {
54305439
channel: { type: 'ChannelResponse', isSingle: true },

src/gen/models/index.ts

Lines changed: 99 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,27 @@ export interface AIVideoConfig {
4949

5050
enabled?: boolean;
5151

52+
provider?: string;
53+
5254
rules?: Array<AWSRekognitionRule>;
5355
}
5456

57+
export interface AIVideoConfigRequest {
58+
async?: boolean;
59+
60+
enabled?: boolean;
61+
62+
rules?: Array<AWSRekognitionRule>;
63+
}
64+
65+
export interface AIVideoConfigResponse {
66+
enabled: boolean;
67+
68+
rules: Array<AWSRekognitionRule>;
69+
70+
async?: boolean;
71+
}
72+
5573
export interface APIError {
5674
/**
5775
* API error code
@@ -210,7 +228,7 @@ export interface AcceptFollowRequest {
210228
target: string;
211229

212230
/**
213-
* Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
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.
214232
*/
215233
follower_role?: string;
216234
}
@@ -590,6 +608,23 @@ export interface ActivityPinnedEvent {
590608
user?: UserResponseCommonFields;
591609
}
592610

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+
593628
export interface ActivityProcessorConfig {
594629
/**
595630
* Type of activity processor (required)
@@ -1860,7 +1895,7 @@ export interface AnalyzeResponse {
18601895
duration: string;
18611896

18621897
/**
1863-
* Always `complete` — /analyze is sync-only and the full verdict is in the response.
1898+
* `complete` (all fields screened), `partial` (mix of verdicts and per-field errors), or `pending` (async).
18641899
*/
18651900
status: string;
18661901

@@ -1940,10 +1975,14 @@ export interface AppResponseFields {
19401975

19411976
member_custom_on_messages_enabled: boolean;
19421977

1978+
member_custom_on_typing_events_enabled: boolean;
1979+
19431980
moderation_audio_call_moderation_enabled: boolean;
19441981

19451982
moderation_enabled: boolean;
19461983

1984+
moderation_keyframe_video_enabled: boolean;
1985+
19471986
moderation_llm_configurability_enabled: boolean;
19481987

19491988
moderation_multitenant_blocklist_enabled: boolean;
@@ -5398,8 +5437,18 @@ export interface ChannelBatchUpdateRequest {
53985437
*/
53995438
filter: Record<string, any>;
54005439

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+
54015445
members?: Array<ChannelBatchMemberRequest>;
54025446

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+
54035452
data?: ChannelDataUpdate;
54045453
}
54055454

@@ -8133,7 +8182,7 @@ export interface ConfigResponse {
81338182

81348183
ai_text_config?: AITextConfig;
81358184

8136-
ai_video_config?: AIVideoConfig;
8185+
ai_video_config?: AIVideoConfigResponse;
81378186

81388187
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
81398188

@@ -8764,6 +8813,9 @@ export interface CreateFeedGroupRequest {
87648813
*/
87658814
id: string;
87668815

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+
*/
87678819
default_follower_role?: string;
87688820

87698821
/**
@@ -8785,6 +8837,8 @@ export interface CreateFeedGroupRequest {
87858837

87868838
activity_filter?: ActivityFilterConfig;
87878839

8840+
activity_processing?: ActivityProcessingConfig;
8841+
87888842
aggregation?: AggregationConfig;
87898843

87908844
/**
@@ -11166,7 +11220,7 @@ export interface FeedGroupResponse {
1116611220
updated_at: Date;
1116711221

1116811222
/**
11169-
* Role new followers of feeds in this group are given. One of: feed_follower, feed_member_viewer. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
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
1117011224
*/
1117111225
default_follower_role?: string;
1117211226

@@ -11191,6 +11245,8 @@ export interface FeedGroupResponse {
1119111245

1119211246
activity_filter?: ActivityFilterConfig;
1119311247

11248+
activity_processing?: ActivityProcessingConfig;
11249+
1119411250
aggregation?: AggregationConfig;
1119511251

1119611252
/**
@@ -12635,7 +12691,7 @@ export interface FollowResponse {
1263512691
created_at: Date;
1263612692

1263712693
/**
12638-
* Role of the follower (source user) in the follow relationship, as stored. A value outside the allowed set is reported as stored but evaluated as 'feed_follower'.
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'.
1263912695
*/
1264012696
follower_role: string;
1264112697

@@ -13546,6 +13602,9 @@ export interface GetOrCreateCallResponse {
1354613602
}
1354713603

1354813604
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+
*/
1354913608
default_follower_role?: string;
1355013609

1355113610
/**
@@ -13567,6 +13626,8 @@ export interface GetOrCreateFeedGroupRequest {
1356713626

1356813627
activity_filter?: ActivityFilterConfig;
1356913628

13629+
activity_processing?: ActivityProcessingConfig;
13630+
1357013631
aggregation?: AggregationConfig;
1357113632

1357213633
/**
@@ -17210,6 +17271,8 @@ export interface ModerationDashboardPreferences {
1721017271

1721117272
disable_flagging_reviewed_entity?: boolean;
1721217273

17274+
enforce_shadow_server_side?: boolean;
17275+
1721317276
escalation_queue_enabled?: boolean;
1721417277

1721517278
flag_user_on_flagged_content?: boolean;
@@ -17244,6 +17307,8 @@ export interface ModerationFlagResponse {
1724417307

1724517308
result: Array<Record<string, any>>;
1724617309

17310+
content_published_at?: Date;
17311+
1724717312
entity_creator_id?: string;
1724817313

1724917314
reason?: string;
@@ -25640,6 +25705,18 @@ export interface TranslateMessageRequest {
2564025705
| 'ht';
2564125706
}
2564225707

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+
2564325720
export interface TranslationSettings {
2564425721
enabled?: boolean;
2564525722

@@ -26296,6 +26373,8 @@ export interface UpdateAppRequest {
2629626373

2629726374
member_custom_on_messages_enabled?: boolean;
2629826375

26376+
member_custom_on_typing_events_enabled?: boolean;
26377+
2629926378
migrate_permissions_to_v2?: boolean;
2630026379

2630126380
moderation_analytics_enabled?: boolean;
@@ -27152,8 +27231,15 @@ export interface UpdateExternalStorageResponse {
2715227231
}
2715327232

2715427233
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+
*/
2715527237
default_follower_role?: string;
2715627238

27239+
/**
27240+
* Default visibility for the feed group. One of: public, visible, followers, members, private
27241+
*/
27242+
2715727243
default_visibility?:
2715827244
'public' | 'visible' | 'followers' | 'members' | 'private';
2715927245

@@ -27169,6 +27255,8 @@ export interface UpdateFeedGroupRequest {
2716927255

2717027256
activity_filter?: ActivityFilterConfig;
2717127257

27258+
activity_processing?: ActivityProcessingConfig;
27259+
2717227260
aggregation?: AggregationConfig;
2717327261

2717427262
/**
@@ -27336,7 +27424,7 @@ export interface UpdateFollowRequest {
2733627424
enrich_own_fields?: boolean;
2733727425

2733827426
/**
27339-
* Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
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.
2734027428
*/
2734127429
follower_role?: string;
2734227430

@@ -27888,6 +27976,10 @@ export interface UpdateUsersResponse {
2788827976
*/
2788927977
duration: string;
2789027978

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+
*/
2789127983
membership_deletion_task_id: string;
2789227984

2789327985
/**
@@ -28132,7 +28224,7 @@ export interface UpsertConfigRequest {
2813228224

2813328225
ai_text_config?: AITextConfig;
2813428226

28135-
ai_video_config?: AIVideoConfig;
28227+
ai_video_config?: AIVideoConfigRequest;
2813628228

2813728229
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
2813828230

0 commit comments

Comments
 (0)