@stream-io/node-sdk 0.8.6 → 0.8.8
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 +16 -0
- package/dist/index.cjs.js +46 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +46 -17
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChannelApi.d.ts +1 -0
- package/dist/src/gen/chat/ChatApi.d.ts +1 -0
- package/dist/src/gen/common/CommonApi.d.ts +3 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +11 -1
- package/dist/src/gen/models/index.d.ts +223 -9
- package/package.json +1 -1
- package/src/gen/chat/ChannelApi.ts +1 -0
- package/src/gen/chat/ChatApi.ts +5 -0
- package/src/gen/common/CommonApi.ts +10 -1
- package/src/gen/feeds/FeedsApi.ts +64 -0
- package/src/gen/model-decoders/decoders.ts +0 -9
- package/src/gen/models/index.ts +229 -6882
- package/src/gen/moderation/ModerationApi.ts +3 -0
- package/src/gen/video/VideoApi.ts +1 -0
|
@@ -29,7 +29,6 @@ export interface AITextConfig {
|
|
|
29
29
|
export interface AIVideoConfig {
|
|
30
30
|
async?: boolean;
|
|
31
31
|
enabled?: boolean;
|
|
32
|
-
provider?: string;
|
|
33
32
|
rules?: Array<AWSRekognitionRule>;
|
|
34
33
|
}
|
|
35
34
|
export interface AIVideoConfigRequest {
|
|
@@ -383,6 +382,16 @@ export interface ActivityMarkEvent {
|
|
|
383
382
|
mark_watched?: Array<string>;
|
|
384
383
|
user?: UserResponseCommonFields;
|
|
385
384
|
}
|
|
385
|
+
export interface ActivityMarksConfig {
|
|
386
|
+
/**
|
|
387
|
+
* Whether to return per-activity read status on content feeds
|
|
388
|
+
*/
|
|
389
|
+
track_read?: boolean;
|
|
390
|
+
/**
|
|
391
|
+
* Whether to return per-activity seen status on content feeds
|
|
392
|
+
*/
|
|
393
|
+
track_seen?: boolean;
|
|
394
|
+
}
|
|
386
395
|
export interface ActivityPinResponse {
|
|
387
396
|
/**
|
|
388
397
|
* When the pin was created
|
|
@@ -1075,10 +1084,18 @@ export interface AddCommentReactionRequest {
|
|
|
1075
1084
|
user?: UserRequest;
|
|
1076
1085
|
}
|
|
1077
1086
|
export interface AddCommentReactionResponse {
|
|
1087
|
+
/**
|
|
1088
|
+
* The change this write made to the number of reactions the user holds on this target: 1 when outcome is 'created', 0 when it is 'replaced' or 'unchanged'. These endpoints never return -1; a successful delete-reaction call is what decrements the count. With enforce_unique this is the delta of the user's reaction on the target; without it, the delta of reactions of this type.
|
|
1089
|
+
*/
|
|
1090
|
+
counter_delta: number;
|
|
1078
1091
|
/**
|
|
1079
1092
|
* Duration of the request
|
|
1080
1093
|
*/
|
|
1081
1094
|
duration: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* What this write did to the user's reaction on this target. One of: created, replaced, unchanged. 'created' means a new reaction was written and nothing was replaced; 'replaced' means enforce_unique removed one or more of the user's other reaction types; 'unchanged' means the user already held this reaction type (its custom data may still have been updated). Without enforce_unique a user can hold several reaction types on one target, so 'created' then means 'this reaction type was newly added', not 'the user's first reaction on this target'.
|
|
1097
|
+
*/
|
|
1098
|
+
outcome: string;
|
|
1082
1099
|
comment: CommentResponse;
|
|
1083
1100
|
reaction: FeedsReactionResponse;
|
|
1084
1101
|
/**
|
|
@@ -1094,6 +1111,10 @@ export interface AddCommentReactionResponse {
|
|
|
1094
1111
|
* ID of the async notification-creation task; poll GET /tasks/{id} for its status
|
|
1095
1112
|
*/
|
|
1096
1113
|
notification_task_id?: string;
|
|
1114
|
+
/**
|
|
1115
|
+
* The reaction type this write replaced, or null when nothing was replaced. Non-null exactly when outcome is 'replaced'. If enforce_unique removed several reactions — possible only for data created before enforce_unique was adopted — this is the most recently created one.
|
|
1116
|
+
*/
|
|
1117
|
+
previous_reaction_type?: string;
|
|
1097
1118
|
reference_activity?: ActivityResponse;
|
|
1098
1119
|
}
|
|
1099
1120
|
export interface AddCommentRequest {
|
|
@@ -1226,7 +1247,15 @@ export interface AddReactionRequest {
|
|
|
1226
1247
|
user?: UserRequest;
|
|
1227
1248
|
}
|
|
1228
1249
|
export interface AddReactionResponse {
|
|
1250
|
+
/**
|
|
1251
|
+
* The change this write made to the number of reactions the user holds on this target: 1 when outcome is 'created', 0 when it is 'replaced' or 'unchanged'. These endpoints never return -1; a successful delete-reaction call is what decrements the count. With enforce_unique this is the delta of the user's reaction on the target; without it, the delta of reactions of this type.
|
|
1252
|
+
*/
|
|
1253
|
+
counter_delta: number;
|
|
1229
1254
|
duration: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* What this write did to the user's reaction on this target. One of: created, replaced, unchanged. 'created' means a new reaction was written and nothing was replaced; 'replaced' means enforce_unique removed one or more of the user's other reaction types; 'unchanged' means the user already held this reaction type (its custom data may still have been updated). Without enforce_unique a user can hold several reaction types on one target, so 'created' then means 'this reaction type was newly added', not 'the user's first reaction on this target'.
|
|
1257
|
+
*/
|
|
1258
|
+
outcome: string;
|
|
1230
1259
|
activity: ActivityResponse;
|
|
1231
1260
|
reaction: FeedsReactionResponse;
|
|
1232
1261
|
/**
|
|
@@ -1242,6 +1271,10 @@ export interface AddReactionResponse {
|
|
|
1242
1271
|
* ID of the async notification-creation task; poll GET /tasks/{id} for its status
|
|
1243
1272
|
*/
|
|
1244
1273
|
notification_task_id?: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* The reaction type this write replaced, or null when nothing was replaced. Non-null exactly when outcome is 'replaced'. If enforce_unique removed several reactions — possible only for data created before enforce_unique was adopted — this is the most recently created one.
|
|
1276
|
+
*/
|
|
1277
|
+
previous_reaction_type?: string;
|
|
1245
1278
|
reference_activity?: ActivityResponse;
|
|
1246
1279
|
}
|
|
1247
1280
|
export interface AddSegmentTargetsRequest {
|
|
@@ -1317,6 +1350,10 @@ export interface AggregationConfig {
|
|
|
1317
1350
|
* Format for activity aggregation
|
|
1318
1351
|
*/
|
|
1319
1352
|
format?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* Maximum number of activities kept in each aggregated group. Omit to use the default of 100. Must be between 1 and 100 when set.
|
|
1355
|
+
*/
|
|
1356
|
+
group_size?: number;
|
|
1320
1357
|
/**
|
|
1321
1358
|
* Strategy for computing aggregated group scores from member activity scores when ranking is enabled. Valid values: sum, max, avg
|
|
1322
1359
|
*/
|
|
@@ -1361,6 +1398,10 @@ export interface AnalyzeRequest {
|
|
|
1361
1398
|
* Original timestamp when the content was produced. Used as the `published_at` timestamp on per-content log entries that surface in `matched_contents` on aggregation-rule webhooks.
|
|
1362
1399
|
*/
|
|
1363
1400
|
content_published_at?: Date;
|
|
1401
|
+
/**
|
|
1402
|
+
* ISO 3166-1 alpha-2 country the content is aimed at (e.g. US, DE). Forwarded to the AI text provider as country context so it can resolve words whose meaning changes between countries.
|
|
1403
|
+
*/
|
|
1404
|
+
country_code?: string;
|
|
1364
1405
|
/**
|
|
1365
1406
|
* ID of the user who created the content. Required with entity_type + entity_id; omit all three for stateless mode.
|
|
1366
1407
|
*/
|
|
@@ -1436,6 +1477,7 @@ export interface AppResponseFields {
|
|
|
1436
1477
|
allow_multi_user_devices: boolean;
|
|
1437
1478
|
async_url_enrich_enabled: boolean;
|
|
1438
1479
|
auto_translation_enabled: boolean;
|
|
1480
|
+
before_message_send_hook_system_messages: boolean;
|
|
1439
1481
|
campaign_enabled: boolean;
|
|
1440
1482
|
cdn_expiration_seconds: number;
|
|
1441
1483
|
custom_action_handler_url: string;
|
|
@@ -1543,7 +1585,11 @@ export interface AppealItemResponse {
|
|
|
1543
1585
|
*/
|
|
1544
1586
|
ai_text_severity?: string;
|
|
1545
1587
|
/**
|
|
1546
|
-
*
|
|
1588
|
+
* Detected language of the appeal_reason text itself
|
|
1589
|
+
*/
|
|
1590
|
+
appeal_reason_language?: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* CID of the channel the entity belongs to (content appeals), or of the channel ban being appealed (stream:user appeals). Empty for a global ban appeal.
|
|
1547
1593
|
*/
|
|
1548
1594
|
channel_cid?: string;
|
|
1549
1595
|
/**
|
|
@@ -1586,6 +1632,10 @@ export interface AppealItemResponse {
|
|
|
1586
1632
|
* Per-provider flag records explaining why the action was taken
|
|
1587
1633
|
*/
|
|
1588
1634
|
flags?: Array<ModerationFlagResponse>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Detected languages in the content
|
|
1637
|
+
*/
|
|
1638
|
+
languages?: Array<string>;
|
|
1589
1639
|
entity_content?: ModerationPayload;
|
|
1590
1640
|
moderation_action?: ActionLogResponse;
|
|
1591
1641
|
original_moderation_action?: ActionLogResponse;
|
|
@@ -1614,6 +1664,10 @@ export interface AppealRequest {
|
|
|
1614
1664
|
* Type of entity being appealed (e.g., message, user)
|
|
1615
1665
|
*/
|
|
1616
1666
|
entity_type: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* CID of the channel ban being appealed. Only used when entity_type is stream:user; omit to appeal the global ban.
|
|
1669
|
+
*/
|
|
1670
|
+
channel_cid?: string;
|
|
1617
1671
|
/**
|
|
1618
1672
|
* ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals.
|
|
1619
1673
|
*/
|
|
@@ -3141,6 +3195,10 @@ export interface CallRingEvent {
|
|
|
3141
3195
|
* The type of event: "call.notification" in this case
|
|
3142
3196
|
*/
|
|
3143
3197
|
type: string;
|
|
3198
|
+
/**
|
|
3199
|
+
* Identifies this ring of the call session
|
|
3200
|
+
*/
|
|
3201
|
+
ring_id?: string;
|
|
3144
3202
|
}
|
|
3145
3203
|
export interface CallRtmpBroadcastFailedEvent {
|
|
3146
3204
|
/**
|
|
@@ -3787,11 +3845,19 @@ export interface ChannelBatchStartedEvent {
|
|
|
3787
3845
|
received_at?: Date;
|
|
3788
3846
|
}
|
|
3789
3847
|
export interface ChannelBatchUpdateRequest {
|
|
3790
|
-
operation: 'addMembers' | 'removeMembers' | 'inviteMembers' | 'invites' | 'assignRoles' | 'addModerators' | 'demoteModerators' | 'hide' | 'show' | 'archive' | 'unarchive' | 'updateData';
|
|
3848
|
+
operation: 'addMembers' | 'addMembersHideHistory' | 'removeMembers' | 'inviteMembers' | 'invites' | 'assignRoles' | 'addModerators' | 'demoteModerators' | 'hide' | 'show' | 'archive' | 'unarchive' | 'updateData';
|
|
3791
3849
|
/**
|
|
3792
3850
|
* Filter to apply to the query
|
|
3793
3851
|
*/
|
|
3794
3852
|
filter: Record<string, any>;
|
|
3853
|
+
/**
|
|
3854
|
+
* Required with the `addMembersHideHistory` operation, and rejected with every other operation including `addMembers`. Hides each matched channel's history before this time from the members the operation adds. Members that already belong to a matched channel are never affected. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past.
|
|
3855
|
+
*/
|
|
3856
|
+
hide_history_before?: Date;
|
|
3857
|
+
/**
|
|
3858
|
+
* For updateData only. Requires a root cids $eq or $in filter with at most 100 CIDs and no root $or/$and. Split larger selections into requests of at most 100 CIDs. A success_channels_count response means the database update completed; a task_id response means it was queued and must be polled, including on older API nodes.
|
|
3859
|
+
*/
|
|
3860
|
+
synchronous?: boolean;
|
|
3795
3861
|
/**
|
|
3796
3862
|
* `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
3863
|
*/
|
|
@@ -3804,10 +3870,14 @@ export interface ChannelBatchUpdateRequest {
|
|
|
3804
3870
|
data?: ChannelDataUpdate;
|
|
3805
3871
|
}
|
|
3806
3872
|
export interface ChannelBatchUpdateResponse {
|
|
3873
|
+
duration: string;
|
|
3807
3874
|
/**
|
|
3808
|
-
*
|
|
3875
|
+
* Positive count of channels selected for a completed synchronous database update, not an affected-row count. Concurrent deletion may reduce the rows written. task_id is absent.
|
|
3876
|
+
*/
|
|
3877
|
+
success_channels_count?: number;
|
|
3878
|
+
/**
|
|
3879
|
+
* Present for asynchronous updates. Poll this task even if synchronous was requested: an older API node may have queued the update.
|
|
3809
3880
|
*/
|
|
3810
|
-
duration: string;
|
|
3811
3881
|
task_id?: string;
|
|
3812
3882
|
}
|
|
3813
3883
|
export interface ChannelConfig {
|
|
@@ -5079,6 +5149,10 @@ export interface CheckRequest {
|
|
|
5079
5149
|
* Original timestamp when the content was produced (for correlating flagged content with source video timeline)
|
|
5080
5150
|
*/
|
|
5081
5151
|
content_published_at?: Date;
|
|
5152
|
+
/**
|
|
5153
|
+
* ISO 3166-1 alpha-2 country the content is aimed at (e.g. US, DE), used as country context by AI text providers
|
|
5154
|
+
*/
|
|
5155
|
+
country_code?: string;
|
|
5082
5156
|
/**
|
|
5083
5157
|
* Whether to run moderation in test mode
|
|
5084
5158
|
*/
|
|
@@ -5275,6 +5349,10 @@ export interface ClientEvent {
|
|
|
5275
5349
|
* Identifier of the SFU the client was attempting to connect to. Required on WSJoin and PeerConnectionConnect failure, and on FirstAudioFrame and FirstVideoFrame.
|
|
5276
5350
|
*/
|
|
5277
5351
|
sfu_id?: string;
|
|
5352
|
+
/**
|
|
5353
|
+
* Source of the coordinator join. Optional on CoordinatorJoin events; omitted when not provided.
|
|
5354
|
+
*/
|
|
5355
|
+
source?: string;
|
|
5278
5356
|
/**
|
|
5279
5357
|
* Discriminator identifying the event kind. JoinInitiated marks the start of a join attempt; join-lifecycle events use CoordinatorJoin, CoordinatorWS, WSJoin, or PeerConnectionConnect; media-readiness events use FirstAudioFrame or FirstVideoFrame; MediaDevicePermission reports device permission results; other values denote generic client events.
|
|
5280
5358
|
*/
|
|
@@ -6210,6 +6288,7 @@ export interface CreateFeedGroupRequest {
|
|
|
6210
6288
|
*/
|
|
6211
6289
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
6212
6290
|
activity_filter?: ActivityFilterConfig;
|
|
6291
|
+
activity_marks?: ActivityMarksConfig;
|
|
6213
6292
|
activity_processing?: ActivityProcessingConfig;
|
|
6214
6293
|
aggregation?: AggregationConfig;
|
|
6215
6294
|
/**
|
|
@@ -6452,6 +6531,7 @@ export interface CreatePollRequest {
|
|
|
6452
6531
|
* Indicates the maximum amount of votes a user can cast
|
|
6453
6532
|
*/
|
|
6454
6533
|
max_votes_allowed?: number;
|
|
6534
|
+
team?: string;
|
|
6455
6535
|
user_id?: string;
|
|
6456
6536
|
voting_visibility?: 'anonymous' | 'public';
|
|
6457
6537
|
options?: Array<PollOptionInput>;
|
|
@@ -6948,9 +7028,13 @@ export interface DeleteChannelsRequest {
|
|
|
6948
7028
|
*/
|
|
6949
7029
|
cids: Array<string>;
|
|
6950
7030
|
/**
|
|
6951
|
-
*
|
|
7031
|
+
* Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted.
|
|
6952
7032
|
*/
|
|
6953
7033
|
hard_delete?: boolean;
|
|
7034
|
+
/**
|
|
7035
|
+
* Server-side only. When true, the soft delete preserves message history instead of hiding it, so a later recreation of any of these channel IDs restores the full history. Only supported for distinct channels. Cannot be combined with hard_delete.
|
|
7036
|
+
*/
|
|
7037
|
+
skip_truncate?: boolean;
|
|
6954
7038
|
}
|
|
6955
7039
|
export interface DeleteChannelsResponse {
|
|
6956
7040
|
/**
|
|
@@ -7186,6 +7270,13 @@ export interface DeleteTranscriptionResponse {
|
|
|
7186
7270
|
*/
|
|
7187
7271
|
duration: string;
|
|
7188
7272
|
}
|
|
7273
|
+
export interface DeleteUserInterestsResponse {
|
|
7274
|
+
duration: string;
|
|
7275
|
+
/**
|
|
7276
|
+
* Interest tags still set on the user
|
|
7277
|
+
*/
|
|
7278
|
+
interests: Array<InterestTagResponse>;
|
|
7279
|
+
}
|
|
7189
7280
|
export interface DeleteUserMessagesRequestPayload {
|
|
7190
7281
|
/**
|
|
7191
7282
|
* Message deletion mode: soft, pruning, or hard
|
|
@@ -7732,6 +7823,7 @@ export interface EventHook {
|
|
|
7732
7823
|
sns_secret?: string;
|
|
7733
7824
|
sns_topic_arn?: string;
|
|
7734
7825
|
sqs_auth_type?: string;
|
|
7826
|
+
sqs_event_based_message_group_id_enabled?: boolean;
|
|
7735
7827
|
sqs_key?: string;
|
|
7736
7828
|
sqs_queue_url?: string;
|
|
7737
7829
|
sqs_region?: string;
|
|
@@ -7990,6 +8082,7 @@ export interface FeedGroupResponse {
|
|
|
7990
8082
|
*/
|
|
7991
8083
|
activity_selectors?: Array<ActivitySelectorConfigResponse>;
|
|
7992
8084
|
activity_filter?: ActivityFilterConfig;
|
|
8085
|
+
activity_marks?: ActivityMarksConfig;
|
|
7993
8086
|
activity_processing?: ActivityProcessingConfig;
|
|
7994
8087
|
aggregation?: AggregationConfig;
|
|
7995
8088
|
/**
|
|
@@ -8739,6 +8832,10 @@ export interface FilterConfigResponse {
|
|
|
8739
8832
|
* The moderation_payload.custom keys the app has configured as review-queue filter chips (via moderation_dashboard_preferences.filterable_custom_keys). Discovery hint for the dashboard only — the filter accepts any custom key regardless of this list.
|
|
8740
8833
|
*/
|
|
8741
8834
|
filterable_custom_keys?: Array<string>;
|
|
8835
|
+
/**
|
|
8836
|
+
* Names of the app's moderation rules, available as filter values on the `label` field when filtering rule-flagged content. Includes disabled rules, since items flagged before a rule was turned off still carry its name; excludes deleted ones. Scoped to the caller's teams on a multi-tenant app. Capped at 30 names, ordered by name, so an app above that cap is listed partially.
|
|
8837
|
+
*/
|
|
8838
|
+
rule_names?: Array<string>;
|
|
8742
8839
|
/**
|
|
8743
8840
|
* AI image moderation labels available as filter values, as a map of L1 label to its L2 sub-labels. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard catalogue of the org's enabled image providers.
|
|
8744
8841
|
*/
|
|
@@ -8876,8 +8973,10 @@ export interface FloodIdenticalConfig {
|
|
|
8876
8973
|
time_window?: string;
|
|
8877
8974
|
}
|
|
8878
8975
|
export interface FloodIdenticalRuleParameters {
|
|
8976
|
+
min_text_length?: number;
|
|
8879
8977
|
threshold?: number;
|
|
8880
8978
|
time_window?: string;
|
|
8979
|
+
track_across_users?: boolean;
|
|
8881
8980
|
allowlist?: Array<string>;
|
|
8882
8981
|
}
|
|
8883
8982
|
export interface FloodSimilarConfig {
|
|
@@ -9455,6 +9554,14 @@ export interface GetFeedsRateLimitsResponse {
|
|
|
9455
9554
|
* Rate limits for Unity platform (endpoint name -> limit info)
|
|
9456
9555
|
*/
|
|
9457
9556
|
unity?: Record<string, LimitInfoResponse>;
|
|
9557
|
+
/**
|
|
9558
|
+
* Rate limits for Unity console platform (endpoint name -> limit info)
|
|
9559
|
+
*/
|
|
9560
|
+
unity_console?: Record<string, LimitInfoResponse>;
|
|
9561
|
+
/**
|
|
9562
|
+
* Rate limits for Unity desktop platform (endpoint name -> limit info)
|
|
9563
|
+
*/
|
|
9564
|
+
unity_desktop?: Record<string, LimitInfoResponse>;
|
|
9458
9565
|
/**
|
|
9459
9566
|
* Rate limits for Web platform (endpoint name -> limit info)
|
|
9460
9567
|
*/
|
|
@@ -9630,6 +9737,7 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
9630
9737
|
*/
|
|
9631
9738
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
9632
9739
|
activity_filter?: ActivityFilterConfig;
|
|
9740
|
+
activity_marks?: ActivityMarksConfig;
|
|
9633
9741
|
activity_processing?: ActivityProcessingConfig;
|
|
9634
9742
|
aggregation?: AggregationConfig;
|
|
9635
9743
|
/**
|
|
@@ -9798,6 +9906,14 @@ export interface GetRateLimitsResponse {
|
|
|
9798
9906
|
* Map of endpoint rate limits for the Unity platform
|
|
9799
9907
|
*/
|
|
9800
9908
|
unity?: Record<string, LimitInfoResponse>;
|
|
9909
|
+
/**
|
|
9910
|
+
* Map of endpoint rate limits for the Unity console platform
|
|
9911
|
+
*/
|
|
9912
|
+
unity_console?: Record<string, LimitInfoResponse>;
|
|
9913
|
+
/**
|
|
9914
|
+
* Map of endpoint rate limits for the Unity desktop platform
|
|
9915
|
+
*/
|
|
9916
|
+
unity_desktop?: Record<string, LimitInfoResponse>;
|
|
9801
9917
|
/**
|
|
9802
9918
|
* Map of endpoint rate limits for the web platform
|
|
9803
9919
|
*/
|
|
@@ -9890,7 +10006,7 @@ export interface GetUserGroupResponse {
|
|
|
9890
10006
|
export interface GetUserInterestsResponse {
|
|
9891
10007
|
duration: string;
|
|
9892
10008
|
/**
|
|
9893
|
-
*
|
|
10009
|
+
* Interest tags sorted by descending weight, then manually set tags before computed ones, then descending count, then alphabetically by tag
|
|
9894
10010
|
*/
|
|
9895
10011
|
interests: Array<InterestTagResponse>;
|
|
9896
10012
|
}
|
|
@@ -10371,13 +10487,21 @@ export interface InsertActionLogResponse {
|
|
|
10371
10487
|
}
|
|
10372
10488
|
export interface InterestTagResponse {
|
|
10373
10489
|
/**
|
|
10374
|
-
*
|
|
10490
|
+
* Lifetime number of distinct reacted-to activities tagged with this value, without decay; 0 for manually set tags
|
|
10375
10491
|
*/
|
|
10376
10492
|
count: number;
|
|
10493
|
+
/**
|
|
10494
|
+
* How the tag was set: computed (from the user's reactions) or manual (through the API)
|
|
10495
|
+
*/
|
|
10496
|
+
source: string;
|
|
10377
10497
|
/**
|
|
10378
10498
|
* The interest tag value
|
|
10379
10499
|
*/
|
|
10380
10500
|
tag: string;
|
|
10501
|
+
/**
|
|
10502
|
+
* Ranking weight between -1.0 and 1.0. Computed tags carry a recency-decayed weight in (0, 1.0]: the user's strongest tag is 1.0 and every other a proportional share
|
|
10503
|
+
*/
|
|
10504
|
+
weight: number;
|
|
10381
10505
|
}
|
|
10382
10506
|
export interface JoinCallAPIMetrics {
|
|
10383
10507
|
failures: number;
|
|
@@ -10552,7 +10676,7 @@ export interface LabelsRequest {
|
|
|
10552
10676
|
*/
|
|
10553
10677
|
dry_run?: boolean;
|
|
10554
10678
|
/**
|
|
10555
|
-
* Optional moderation policy key (max 128 chars). For username moderation, set this to a policy whose key starts with 'username:' (e.g. 'username:default') to opt into the low-latency fast-path: blocklists (customer + Stream-managed defaults) short-circuit the LLM, and the LLM fallback uses gpt-
|
|
10679
|
+
* Optional moderation policy key (max 128 chars). For username moderation, set this to a policy whose key starts with 'username:' (e.g. 'username:default') to opt into the low-latency fast-path: blocklists (customer + Stream-managed defaults) short-circuit the LLM, and the LLM fallback uses gpt-4o-mini (overridable via moderation_settings.llm_username_model) with a 24h Valkey verdict cache. Without a 'username:' prefix the request falls through to the standard Bodyguard Analyze v1 username path.
|
|
10556
10680
|
*/
|
|
10557
10681
|
policy?: string;
|
|
10558
10682
|
/**
|
|
@@ -12284,6 +12408,7 @@ export interface ModerationDashboardPreferences {
|
|
|
12284
12408
|
async_review_queue_upsert?: boolean;
|
|
12285
12409
|
block_foreign_cdn_attachments?: boolean;
|
|
12286
12410
|
custom_views_enabled?: boolean;
|
|
12411
|
+
disable_action_logs?: boolean;
|
|
12287
12412
|
disable_audit_logs?: boolean;
|
|
12288
12413
|
disable_flagging_reviewed_entity?: boolean;
|
|
12289
12414
|
enforce_shadow_server_side?: boolean;
|
|
@@ -12384,6 +12509,7 @@ export interface ModerationMarkReviewedEvent {
|
|
|
12384
12509
|
message?: MessageResponse;
|
|
12385
12510
|
}
|
|
12386
12511
|
export interface ModerationPayload {
|
|
12512
|
+
country_code?: string;
|
|
12387
12513
|
audios?: Array<string>;
|
|
12388
12514
|
image_ordered_keys?: Array<string>;
|
|
12389
12515
|
images?: Array<string>;
|
|
@@ -13062,6 +13188,10 @@ export interface PagerResponse {
|
|
|
13062
13188
|
prev?: string;
|
|
13063
13189
|
}
|
|
13064
13190
|
export interface PaginationParams {
|
|
13191
|
+
id_gt?: number;
|
|
13192
|
+
id_gte?: number;
|
|
13193
|
+
id_lt?: number;
|
|
13194
|
+
id_lte?: number;
|
|
13065
13195
|
limit?: number;
|
|
13066
13196
|
offset?: number;
|
|
13067
13197
|
}
|
|
@@ -13507,6 +13637,7 @@ export interface PollOptionResponseData {
|
|
|
13507
13637
|
id: string;
|
|
13508
13638
|
text: string;
|
|
13509
13639
|
custom: Record<string, any>;
|
|
13640
|
+
text_i18n?: Record<string, string>;
|
|
13510
13641
|
}
|
|
13511
13642
|
export interface PollResponse {
|
|
13512
13643
|
/**
|
|
@@ -13543,6 +13674,8 @@ export interface PollResponseData {
|
|
|
13543
13674
|
* User response object
|
|
13544
13675
|
*/
|
|
13545
13676
|
created_by?: UserResponse;
|
|
13677
|
+
description_i18n?: Record<string, string>;
|
|
13678
|
+
name_i18n?: Record<string, string>;
|
|
13546
13679
|
}
|
|
13547
13680
|
export interface PollVoteResponse {
|
|
13548
13681
|
/**
|
|
@@ -13561,6 +13694,7 @@ export interface PollVoteResponseData {
|
|
|
13561
13694
|
answer_text?: string;
|
|
13562
13695
|
is_answer?: boolean;
|
|
13563
13696
|
user_id?: string;
|
|
13697
|
+
answer_text_i18n?: Record<string, string>;
|
|
13564
13698
|
/**
|
|
13565
13699
|
* User response object
|
|
13566
13700
|
*/
|
|
@@ -13991,6 +14125,10 @@ export interface QueryBannedUsersPayload {
|
|
|
13991
14125
|
* Filter conditions to apply to the query
|
|
13992
14126
|
*/
|
|
13993
14127
|
filter_conditions: Record<string, any>;
|
|
14128
|
+
created_at_after?: Date;
|
|
14129
|
+
created_at_after_or_equal?: Date;
|
|
14130
|
+
created_at_before?: Date;
|
|
14131
|
+
created_at_before_or_equal?: Date;
|
|
13994
14132
|
/**
|
|
13995
14133
|
* Whether to exclude expired bans or not
|
|
13996
14134
|
*/
|
|
@@ -14398,6 +14536,10 @@ export interface QueryCommentsRequest {
|
|
|
14398
14536
|
* Returns the comment with the specified ID along with surrounding comments for context
|
|
14399
14537
|
*/
|
|
14400
14538
|
id_around?: string;
|
|
14539
|
+
/**
|
|
14540
|
+
* When true, include soft-deleted comments in the result. Server-side only, and requires an object_id filter. Returns comments deleted by any path, including user-data deletion. Moderation-actioned comments (removed, hidden) remain excluded, and comments whose parent activity is itself deleted are not returned.
|
|
14541
|
+
*/
|
|
14542
|
+
include_soft_deleted_comments?: boolean;
|
|
14401
14543
|
/**
|
|
14402
14544
|
* Maximum number of comments to return
|
|
14403
14545
|
*/
|
|
@@ -14592,6 +14734,10 @@ export interface QueryFollowsResponse {
|
|
|
14592
14734
|
prev?: string;
|
|
14593
14735
|
}
|
|
14594
14736
|
export interface QueryFutureChannelBansPayload {
|
|
14737
|
+
created_at_after?: Date;
|
|
14738
|
+
created_at_after_or_equal?: Date;
|
|
14739
|
+
created_at_before?: Date;
|
|
14740
|
+
created_at_before_or_equal?: Date;
|
|
14595
14741
|
/**
|
|
14596
14742
|
* Whether to exclude expired bans or not
|
|
14597
14743
|
*/
|
|
@@ -14661,10 +14807,18 @@ export interface QueryLabelResultsResponse {
|
|
|
14661
14807
|
}
|
|
14662
14808
|
export interface QueryMembersPayload {
|
|
14663
14809
|
type: string;
|
|
14810
|
+
created_at_after?: Date;
|
|
14811
|
+
created_at_after_or_equal?: Date;
|
|
14812
|
+
created_at_before?: Date;
|
|
14813
|
+
created_at_before_or_equal?: Date;
|
|
14664
14814
|
id?: string;
|
|
14665
14815
|
limit?: number;
|
|
14666
14816
|
offset?: number;
|
|
14667
14817
|
user_id?: string;
|
|
14818
|
+
user_id_gt?: string;
|
|
14819
|
+
user_id_gte?: string;
|
|
14820
|
+
user_id_lt?: string;
|
|
14821
|
+
user_id_lte?: string;
|
|
14668
14822
|
members?: Array<ChannelMemberRequest>;
|
|
14669
14823
|
/**
|
|
14670
14824
|
* Array of sort parameters
|
|
@@ -15266,6 +15420,10 @@ export interface QueryUsersPayload {
|
|
|
15266
15420
|
* Filter conditions to apply to the query
|
|
15267
15421
|
*/
|
|
15268
15422
|
filter_conditions: Record<string, any>;
|
|
15423
|
+
id_gt?: string;
|
|
15424
|
+
id_gte?: string;
|
|
15425
|
+
id_lt?: string;
|
|
15426
|
+
id_lte?: string;
|
|
15269
15427
|
include_deactivated_users?: boolean;
|
|
15270
15428
|
limit?: number;
|
|
15271
15429
|
offset?: number;
|
|
@@ -16178,6 +16336,10 @@ export interface ReviewQueueItemResponse {
|
|
|
16178
16336
|
* When the review was completed
|
|
16179
16337
|
*/
|
|
16180
16338
|
completed_at?: Date;
|
|
16339
|
+
/**
|
|
16340
|
+
* Highest per-label confidence (0-1) any provider reported across the item's flags; absent when no flag carried one
|
|
16341
|
+
*/
|
|
16342
|
+
confidence_score?: number;
|
|
16181
16343
|
config_key?: string;
|
|
16182
16344
|
/**
|
|
16183
16345
|
* ID of who created the entity
|
|
@@ -16250,6 +16412,10 @@ export interface RingCallRequest {
|
|
|
16250
16412
|
* Members that should receive the ring. If no ids are provided, all call members who are not already in the call will receive ring notifications.
|
|
16251
16413
|
*/
|
|
16252
16414
|
members_ids?: Array<string>;
|
|
16415
|
+
/**
|
|
16416
|
+
* Opaque context stored on the ring attempt; refs and IDs only
|
|
16417
|
+
*/
|
|
16418
|
+
custom?: Record<string, any>;
|
|
16253
16419
|
}
|
|
16254
16420
|
export interface RingCallResponse {
|
|
16255
16421
|
duration: string;
|
|
@@ -16257,6 +16423,10 @@ export interface RingCallResponse {
|
|
|
16257
16423
|
* List of members ringing notification was sent to
|
|
16258
16424
|
*/
|
|
16259
16425
|
members_ids: Array<string>;
|
|
16426
|
+
/**
|
|
16427
|
+
* The ring this call created, for correlating the accept, reject and missed outcomes that follow
|
|
16428
|
+
*/
|
|
16429
|
+
ring_id?: string;
|
|
16260
16430
|
}
|
|
16261
16431
|
export interface RingSettings {
|
|
16262
16432
|
auto_cancel_timeout_ms: number;
|
|
@@ -16339,6 +16509,8 @@ export interface RuleBuilderCondition {
|
|
|
16339
16509
|
user_custom_property_params?: UserCustomPropertyParameters;
|
|
16340
16510
|
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
16341
16511
|
user_identical_content_count_params?: UserIdenticalContentCountParameters;
|
|
16512
|
+
user_identical_image_count_params?: UserIdenticalImageCountParameters;
|
|
16513
|
+
user_reaction_count_params?: UserReactionCountRuleParameters;
|
|
16342
16514
|
user_role_params?: UserRoleParameters;
|
|
16343
16515
|
user_rule_params?: UserRuleParameters;
|
|
16344
16516
|
video_content_params?: VideoContentParameters;
|
|
@@ -16363,6 +16535,7 @@ export interface RuleBuilderRule {
|
|
|
16363
16535
|
action?: RuleBuilderAction;
|
|
16364
16536
|
}
|
|
16365
16537
|
export interface RunStats {
|
|
16538
|
+
activities_deleted?: number;
|
|
16366
16539
|
channels_deleted?: number;
|
|
16367
16540
|
messages_deleted?: number;
|
|
16368
16541
|
}
|
|
@@ -19195,6 +19368,7 @@ export interface UpdateFeedGroupRequest {
|
|
|
19195
19368
|
*/
|
|
19196
19369
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
19197
19370
|
activity_filter?: ActivityFilterConfig;
|
|
19371
|
+
activity_marks?: ActivityMarksConfig;
|
|
19198
19372
|
activity_processing?: ActivityProcessingConfig;
|
|
19199
19373
|
aggregation?: AggregationConfig;
|
|
19200
19374
|
/**
|
|
@@ -20151,6 +20325,19 @@ export interface UpsertSetupSessionResponse {
|
|
|
20151
20325
|
duration: string;
|
|
20152
20326
|
setup_session?: SetupSession;
|
|
20153
20327
|
}
|
|
20328
|
+
export interface UpsertUserInterestsRequest {
|
|
20329
|
+
/**
|
|
20330
|
+
* Interest tags to add or update (1-50)
|
|
20331
|
+
*/
|
|
20332
|
+
interests: Array<UserInterestRequest>;
|
|
20333
|
+
}
|
|
20334
|
+
export interface UpsertUserInterestsResponse {
|
|
20335
|
+
duration: string;
|
|
20336
|
+
/**
|
|
20337
|
+
* All interest tags of the user after the write
|
|
20338
|
+
*/
|
|
20339
|
+
interests: Array<InterestTagResponse>;
|
|
20340
|
+
}
|
|
20154
20341
|
export interface User {
|
|
20155
20342
|
id: string;
|
|
20156
20343
|
data?: Record<string, any>;
|
|
@@ -20420,6 +20607,22 @@ export interface UserIdenticalContentCountParameters {
|
|
|
20420
20607
|
threshold?: number;
|
|
20421
20608
|
time_window?: string;
|
|
20422
20609
|
}
|
|
20610
|
+
export interface UserIdenticalImageCountParameters {
|
|
20611
|
+
match?: string;
|
|
20612
|
+
similarity_distance?: number;
|
|
20613
|
+
threshold?: number;
|
|
20614
|
+
time_window?: string;
|
|
20615
|
+
}
|
|
20616
|
+
export interface UserInterestRequest {
|
|
20617
|
+
/**
|
|
20618
|
+
* The interest tag; trimmed and lower-cased like activity interest_tags
|
|
20619
|
+
*/
|
|
20620
|
+
tag: string;
|
|
20621
|
+
/**
|
|
20622
|
+
* Ranking weight between -1.0 (dislike) and 1.0 (like). Defaults to 1.0
|
|
20623
|
+
*/
|
|
20624
|
+
weight?: number;
|
|
20625
|
+
}
|
|
20423
20626
|
export interface UserMessagesDeletedEvent {
|
|
20424
20627
|
/**
|
|
20425
20628
|
* Date/time of creation
|
|
@@ -20491,6 +20694,11 @@ export interface UserRatingReportResponse {
|
|
|
20491
20694
|
average: number;
|
|
20492
20695
|
count: number;
|
|
20493
20696
|
}
|
|
20697
|
+
export interface UserReactionCountRuleParameters {
|
|
20698
|
+
count?: string;
|
|
20699
|
+
threshold?: number;
|
|
20700
|
+
time_window?: string;
|
|
20701
|
+
}
|
|
20494
20702
|
export interface UserReactivatedEvent {
|
|
20495
20703
|
/**
|
|
20496
20704
|
* Date/time of creation
|
|
@@ -21246,6 +21454,12 @@ export interface WebhookFailoverConfig {
|
|
|
21246
21454
|
gcs_bucket?: string;
|
|
21247
21455
|
gcs_credentials?: string;
|
|
21248
21456
|
gcs_path?: string;
|
|
21457
|
+
s3_api_key?: string;
|
|
21458
|
+
s3_bucket?: string;
|
|
21459
|
+
s3_path?: string;
|
|
21460
|
+
s3_region?: string;
|
|
21461
|
+
s3_role_arn?: string;
|
|
21462
|
+
s3_secret?: string;
|
|
21249
21463
|
type?: string;
|
|
21250
21464
|
}
|
|
21251
21465
|
export interface WrappedUnreadCountsResponse {
|
package/package.json
CHANGED
package/src/gen/chat/ChatApi.ts
CHANGED
|
@@ -391,6 +391,8 @@ export class ChatApi {
|
|
|
391
391
|
const body = {
|
|
392
392
|
operation: request?.operation,
|
|
393
393
|
filter: request?.filter,
|
|
394
|
+
hide_history_before: request?.hide_history_before,
|
|
395
|
+
synchronous: request?.synchronous,
|
|
394
396
|
custom_unset: request?.custom_unset,
|
|
395
397
|
members: request?.members,
|
|
396
398
|
custom_set: request?.custom_set,
|
|
@@ -419,6 +421,7 @@ export class ChatApi {
|
|
|
419
421
|
const body = {
|
|
420
422
|
cids: request?.cids,
|
|
421
423
|
hard_delete: request?.hard_delete,
|
|
424
|
+
skip_truncate: request?.skip_truncate,
|
|
422
425
|
};
|
|
423
426
|
|
|
424
427
|
const response = await this.apiClient.sendRequest<
|
|
@@ -551,9 +554,11 @@ export class ChatApi {
|
|
|
551
554
|
type: string;
|
|
552
555
|
id: string;
|
|
553
556
|
hard_delete?: boolean;
|
|
557
|
+
skip_truncate?: boolean;
|
|
554
558
|
}): Promise<StreamResponse<DeleteChannelResponse>> {
|
|
555
559
|
const queryParams = {
|
|
556
560
|
hard_delete: request?.hard_delete,
|
|
561
|
+
skip_truncate: request?.skip_truncate,
|
|
557
562
|
};
|
|
558
563
|
const pathParams = {
|
|
559
564
|
type: request?.type,
|