@stream-io/node-sdk 0.8.6 → 0.8.7
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 +8 -0
- package/dist/index.cjs.js +40 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +40 -4
- 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 +176 -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 +9 -1
- package/src/gen/feeds/FeedsApi.ts +63 -0
- package/src/gen/models/index.ts +252 -9
- package/src/gen/moderation/ModerationApi.ts +1 -0
|
@@ -54,6 +54,7 @@ import {
|
|
|
54
54
|
DeleteFeedViewResponse,
|
|
55
55
|
DeleteFeedsBatchRequest,
|
|
56
56
|
DeleteFeedsBatchResponse,
|
|
57
|
+
DeleteUserInterestsResponse,
|
|
57
58
|
ExportFeedUserDataResponse,
|
|
58
59
|
FollowBatchRequest,
|
|
59
60
|
FollowBatchResponse,
|
|
@@ -174,6 +175,8 @@ import {
|
|
|
174
175
|
UpsertActivitiesResponse,
|
|
175
176
|
UpsertCollectionsRequest,
|
|
176
177
|
UpsertCollectionsResponse,
|
|
178
|
+
UpsertUserInterestsRequest,
|
|
179
|
+
UpsertUserInterestsResponse,
|
|
177
180
|
} from '../models';
|
|
178
181
|
import { decoders } from '../model-decoders/decoders';
|
|
179
182
|
|
|
@@ -726,6 +729,7 @@ export class FeedsApi {
|
|
|
726
729
|
id: string;
|
|
727
730
|
comment_sort?: string;
|
|
728
731
|
comment_limit?: number;
|
|
732
|
+
skip_own_followings?: boolean;
|
|
729
733
|
user_id?: string;
|
|
730
734
|
language?: string;
|
|
731
735
|
translate_text?: boolean;
|
|
@@ -733,6 +737,7 @@ export class FeedsApi {
|
|
|
733
737
|
const queryParams = {
|
|
734
738
|
comment_sort: request?.comment_sort,
|
|
735
739
|
comment_limit: request?.comment_limit,
|
|
740
|
+
skip_own_followings: request?.skip_own_followings,
|
|
736
741
|
user_id: request?.user_id,
|
|
737
742
|
language: request?.language,
|
|
738
743
|
translate_text: request?.translate_text,
|
|
@@ -1720,6 +1725,7 @@ export class FeedsApi {
|
|
|
1720
1725
|
activity_processors: request?.activity_processors,
|
|
1721
1726
|
activity_selectors: request?.activity_selectors,
|
|
1722
1727
|
activity_filter: request?.activity_filter,
|
|
1728
|
+
activity_marks: request?.activity_marks,
|
|
1723
1729
|
activity_processing: request?.activity_processing,
|
|
1724
1730
|
aggregation: request?.aggregation,
|
|
1725
1731
|
custom: request?.custom,
|
|
@@ -2282,6 +2288,7 @@ export class FeedsApi {
|
|
|
2282
2288
|
activity_processors: request?.activity_processors,
|
|
2283
2289
|
activity_selectors: request?.activity_selectors,
|
|
2284
2290
|
activity_filter: request?.activity_filter,
|
|
2291
|
+
activity_marks: request?.activity_marks,
|
|
2285
2292
|
activity_processing: request?.activity_processing,
|
|
2286
2293
|
aggregation: request?.aggregation,
|
|
2287
2294
|
custom: request?.custom,
|
|
@@ -2319,6 +2326,7 @@ export class FeedsApi {
|
|
|
2319
2326
|
activity_processors: request?.activity_processors,
|
|
2320
2327
|
activity_selectors: request?.activity_selectors,
|
|
2321
2328
|
activity_filter: request?.activity_filter,
|
|
2329
|
+
activity_marks: request?.activity_marks,
|
|
2322
2330
|
activity_processing: request?.activity_processing,
|
|
2323
2331
|
aggregation: request?.aggregation,
|
|
2324
2332
|
custom: request?.custom,
|
|
@@ -2633,6 +2641,8 @@ export class FeedsApi {
|
|
|
2633
2641
|
ios?: boolean;
|
|
2634
2642
|
web?: boolean;
|
|
2635
2643
|
unity?: boolean;
|
|
2644
|
+
unity_desktop?: boolean;
|
|
2645
|
+
unity_console?: boolean;
|
|
2636
2646
|
server_side?: boolean;
|
|
2637
2647
|
}): Promise<StreamResponse<GetFeedsRateLimitsResponse>> {
|
|
2638
2648
|
const queryParams = {
|
|
@@ -2641,6 +2651,8 @@ export class FeedsApi {
|
|
|
2641
2651
|
ios: request?.ios,
|
|
2642
2652
|
web: request?.web,
|
|
2643
2653
|
unity: request?.unity,
|
|
2654
|
+
unity_desktop: request?.unity_desktop,
|
|
2655
|
+
unity_console: request?.unity_console,
|
|
2644
2656
|
server_side: request?.server_side,
|
|
2645
2657
|
};
|
|
2646
2658
|
|
|
@@ -3184,6 +3196,31 @@ export class FeedsApi {
|
|
|
3184
3196
|
return { ...response.body, metadata: response.metadata };
|
|
3185
3197
|
}
|
|
3186
3198
|
|
|
3199
|
+
async deleteUserInterests(request: {
|
|
3200
|
+
user_id: string;
|
|
3201
|
+
tags: Array<string>;
|
|
3202
|
+
}): Promise<StreamResponse<DeleteUserInterestsResponse>> {
|
|
3203
|
+
const queryParams = {
|
|
3204
|
+
tags: request?.tags,
|
|
3205
|
+
};
|
|
3206
|
+
const pathParams = {
|
|
3207
|
+
user_id: request?.user_id,
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
const response = await this.apiClient.sendRequest<
|
|
3211
|
+
StreamResponse<DeleteUserInterestsResponse>
|
|
3212
|
+
>(
|
|
3213
|
+
'DELETE',
|
|
3214
|
+
'/api/v2/feeds/users/{user_id}/interests',
|
|
3215
|
+
pathParams,
|
|
3216
|
+
queryParams,
|
|
3217
|
+
);
|
|
3218
|
+
|
|
3219
|
+
decoders['DeleteUserInterestsResponse']?.(response.body);
|
|
3220
|
+
|
|
3221
|
+
return { ...response.body, metadata: response.metadata };
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3187
3224
|
async getUserInterests(request: {
|
|
3188
3225
|
user_id: string;
|
|
3189
3226
|
limit?: number;
|
|
@@ -3208,4 +3245,30 @@ export class FeedsApi {
|
|
|
3208
3245
|
|
|
3209
3246
|
return { ...response.body, metadata: response.metadata };
|
|
3210
3247
|
}
|
|
3248
|
+
|
|
3249
|
+
async upsertUserInterests(
|
|
3250
|
+
request: UpsertUserInterestsRequest & { user_id: string },
|
|
3251
|
+
): Promise<StreamResponse<UpsertUserInterestsResponse>> {
|
|
3252
|
+
const pathParams = {
|
|
3253
|
+
user_id: request?.user_id,
|
|
3254
|
+
};
|
|
3255
|
+
const body = {
|
|
3256
|
+
interests: request?.interests,
|
|
3257
|
+
};
|
|
3258
|
+
|
|
3259
|
+
const response = await this.apiClient.sendRequest<
|
|
3260
|
+
StreamResponse<UpsertUserInterestsResponse>
|
|
3261
|
+
>(
|
|
3262
|
+
'PUT',
|
|
3263
|
+
'/api/v2/feeds/users/{user_id}/interests',
|
|
3264
|
+
pathParams,
|
|
3265
|
+
undefined,
|
|
3266
|
+
body,
|
|
3267
|
+
'application/json',
|
|
3268
|
+
);
|
|
3269
|
+
|
|
3270
|
+
decoders['UpsertUserInterestsResponse']?.(response.body);
|
|
3271
|
+
|
|
3272
|
+
return { ...response.body, metadata: response.metadata };
|
|
3273
|
+
}
|
|
3211
3274
|
}
|
package/src/gen/models/index.ts
CHANGED
|
@@ -49,8 +49,6 @@ export interface AIVideoConfig {
|
|
|
49
49
|
|
|
50
50
|
enabled?: boolean;
|
|
51
51
|
|
|
52
|
-
provider?: string;
|
|
53
|
-
|
|
54
52
|
rules?: Array<AWSRekognitionRule>;
|
|
55
53
|
}
|
|
56
54
|
|
|
@@ -557,6 +555,18 @@ export interface ActivityMarkEvent {
|
|
|
557
555
|
user?: UserResponseCommonFields;
|
|
558
556
|
}
|
|
559
557
|
|
|
558
|
+
export interface ActivityMarksConfig {
|
|
559
|
+
/**
|
|
560
|
+
* Whether to return per-activity read status on content feeds
|
|
561
|
+
*/
|
|
562
|
+
track_read?: boolean;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Whether to return per-activity seen status on content feeds
|
|
566
|
+
*/
|
|
567
|
+
track_seen?: boolean;
|
|
568
|
+
}
|
|
569
|
+
|
|
560
570
|
export interface ActivityPinResponse {
|
|
561
571
|
/**
|
|
562
572
|
* When the pin was created
|
|
@@ -1492,11 +1502,21 @@ export interface AddCommentReactionRequest {
|
|
|
1492
1502
|
}
|
|
1493
1503
|
|
|
1494
1504
|
export interface AddCommentReactionResponse {
|
|
1505
|
+
/**
|
|
1506
|
+
* 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.
|
|
1507
|
+
*/
|
|
1508
|
+
counter_delta: number;
|
|
1509
|
+
|
|
1495
1510
|
/**
|
|
1496
1511
|
* Duration of the request
|
|
1497
1512
|
*/
|
|
1498
1513
|
duration: string;
|
|
1499
1514
|
|
|
1515
|
+
/**
|
|
1516
|
+
* 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'.
|
|
1517
|
+
*/
|
|
1518
|
+
outcome: string;
|
|
1519
|
+
|
|
1500
1520
|
comment: CommentResponse;
|
|
1501
1521
|
|
|
1502
1522
|
reaction: FeedsReactionResponse;
|
|
@@ -1517,6 +1537,11 @@ export interface AddCommentReactionResponse {
|
|
|
1517
1537
|
*/
|
|
1518
1538
|
notification_task_id?: string;
|
|
1519
1539
|
|
|
1540
|
+
/**
|
|
1541
|
+
* 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.
|
|
1542
|
+
*/
|
|
1543
|
+
previous_reaction_type?: string;
|
|
1544
|
+
|
|
1520
1545
|
reference_activity?: ActivityResponse;
|
|
1521
1546
|
}
|
|
1522
1547
|
|
|
@@ -1684,8 +1709,18 @@ export interface AddReactionRequest {
|
|
|
1684
1709
|
}
|
|
1685
1710
|
|
|
1686
1711
|
export interface AddReactionResponse {
|
|
1712
|
+
/**
|
|
1713
|
+
* 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.
|
|
1714
|
+
*/
|
|
1715
|
+
counter_delta: number;
|
|
1716
|
+
|
|
1687
1717
|
duration: string;
|
|
1688
1718
|
|
|
1719
|
+
/**
|
|
1720
|
+
* 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'.
|
|
1721
|
+
*/
|
|
1722
|
+
outcome: string;
|
|
1723
|
+
|
|
1689
1724
|
activity: ActivityResponse;
|
|
1690
1725
|
|
|
1691
1726
|
reaction: FeedsReactionResponse;
|
|
@@ -1706,6 +1741,11 @@ export interface AddReactionResponse {
|
|
|
1706
1741
|
*/
|
|
1707
1742
|
notification_task_id?: string;
|
|
1708
1743
|
|
|
1744
|
+
/**
|
|
1745
|
+
* 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.
|
|
1746
|
+
*/
|
|
1747
|
+
previous_reaction_type?: string;
|
|
1748
|
+
|
|
1709
1749
|
reference_activity?: ActivityResponse;
|
|
1710
1750
|
}
|
|
1711
1751
|
|
|
@@ -1953,6 +1993,8 @@ export interface AppResponseFields {
|
|
|
1953
1993
|
|
|
1954
1994
|
auto_translation_enabled: boolean;
|
|
1955
1995
|
|
|
1996
|
+
before_message_send_hook_system_messages: boolean;
|
|
1997
|
+
|
|
1956
1998
|
campaign_enabled: boolean;
|
|
1957
1999
|
|
|
1958
2000
|
cdn_expiration_seconds: number;
|
|
@@ -2139,7 +2181,7 @@ export interface AppealItemResponse {
|
|
|
2139
2181
|
ai_text_severity?: string;
|
|
2140
2182
|
|
|
2141
2183
|
/**
|
|
2142
|
-
* CID of the channel the entity belongs to,
|
|
2184
|
+
* 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.
|
|
2143
2185
|
*/
|
|
2144
2186
|
channel_cid?: string;
|
|
2145
2187
|
|
|
@@ -2233,6 +2275,11 @@ export interface AppealRequest {
|
|
|
2233
2275
|
*/
|
|
2234
2276
|
entity_type: string;
|
|
2235
2277
|
|
|
2278
|
+
/**
|
|
2279
|
+
* CID of the channel ban being appealed. Only used when entity_type is stream:user; omit to appeal the global ban.
|
|
2280
|
+
*/
|
|
2281
|
+
channel_cid?: string;
|
|
2282
|
+
|
|
2236
2283
|
/**
|
|
2237
2284
|
* ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals.
|
|
2238
2285
|
*/
|
|
@@ -5424,6 +5471,7 @@ export interface ChannelBatchStartedEvent {
|
|
|
5424
5471
|
export interface ChannelBatchUpdateRequest {
|
|
5425
5472
|
operation:
|
|
5426
5473
|
| 'addMembers'
|
|
5474
|
+
| 'addMembersHideHistory'
|
|
5427
5475
|
| 'removeMembers'
|
|
5428
5476
|
| 'inviteMembers'
|
|
5429
5477
|
| 'invites'
|
|
@@ -5441,6 +5489,16 @@ export interface ChannelBatchUpdateRequest {
|
|
|
5441
5489
|
*/
|
|
5442
5490
|
filter: Record<string, any>;
|
|
5443
5491
|
|
|
5492
|
+
/**
|
|
5493
|
+
* 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.
|
|
5494
|
+
*/
|
|
5495
|
+
hide_history_before?: Date;
|
|
5496
|
+
|
|
5497
|
+
/**
|
|
5498
|
+
* 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.
|
|
5499
|
+
*/
|
|
5500
|
+
synchronous?: boolean;
|
|
5501
|
+
|
|
5444
5502
|
/**
|
|
5445
5503
|
* `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`
|
|
5446
5504
|
*/
|
|
@@ -5457,11 +5515,16 @@ export interface ChannelBatchUpdateRequest {
|
|
|
5457
5515
|
}
|
|
5458
5516
|
|
|
5459
5517
|
export interface ChannelBatchUpdateResponse {
|
|
5518
|
+
duration: string;
|
|
5519
|
+
|
|
5460
5520
|
/**
|
|
5461
|
-
*
|
|
5521
|
+
* 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.
|
|
5462
5522
|
*/
|
|
5463
|
-
|
|
5523
|
+
success_channels_count?: number;
|
|
5464
5524
|
|
|
5525
|
+
/**
|
|
5526
|
+
* Present for asynchronous updates. Poll this task even if synchronous was requested: an older API node may have queued the update.
|
|
5527
|
+
*/
|
|
5465
5528
|
task_id?: string;
|
|
5466
5529
|
}
|
|
5467
5530
|
|
|
@@ -7551,6 +7614,11 @@ export interface ClientEvent {
|
|
|
7551
7614
|
*/
|
|
7552
7615
|
sfu_id?: string;
|
|
7553
7616
|
|
|
7617
|
+
/**
|
|
7618
|
+
* Source of the coordinator join. Optional on CoordinatorJoin events; omitted when not provided.
|
|
7619
|
+
*/
|
|
7620
|
+
source?: string;
|
|
7621
|
+
|
|
7554
7622
|
/**
|
|
7555
7623
|
* 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.
|
|
7556
7624
|
*/
|
|
@@ -8841,6 +8909,8 @@ export interface CreateFeedGroupRequest {
|
|
|
8841
8909
|
|
|
8842
8910
|
activity_filter?: ActivityFilterConfig;
|
|
8843
8911
|
|
|
8912
|
+
activity_marks?: ActivityMarksConfig;
|
|
8913
|
+
|
|
8844
8914
|
activity_processing?: ActivityProcessingConfig;
|
|
8845
8915
|
|
|
8846
8916
|
aggregation?: AggregationConfig;
|
|
@@ -9807,9 +9877,14 @@ export interface DeleteChannelsRequest {
|
|
|
9807
9877
|
cids: Array<string>;
|
|
9808
9878
|
|
|
9809
9879
|
/**
|
|
9810
|
-
*
|
|
9880
|
+
* Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted.
|
|
9811
9881
|
*/
|
|
9812
9882
|
hard_delete?: boolean;
|
|
9883
|
+
|
|
9884
|
+
/**
|
|
9885
|
+
* 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.
|
|
9886
|
+
*/
|
|
9887
|
+
skip_truncate?: boolean;
|
|
9813
9888
|
}
|
|
9814
9889
|
|
|
9815
9890
|
export interface DeleteChannelsResponse {
|
|
@@ -10106,6 +10181,15 @@ export interface DeleteTranscriptionResponse {
|
|
|
10106
10181
|
duration: string;
|
|
10107
10182
|
}
|
|
10108
10183
|
|
|
10184
|
+
export interface DeleteUserInterestsResponse {
|
|
10185
|
+
duration: string;
|
|
10186
|
+
|
|
10187
|
+
/**
|
|
10188
|
+
* Interest tags still set on the user
|
|
10189
|
+
*/
|
|
10190
|
+
interests: Array<InterestTagResponse>;
|
|
10191
|
+
}
|
|
10192
|
+
|
|
10109
10193
|
export interface DeleteUserMessagesRequestPayload {
|
|
10110
10194
|
/**
|
|
10111
10195
|
* Message deletion mode: soft, pruning, or hard
|
|
@@ -11249,6 +11333,8 @@ export interface FeedGroupResponse {
|
|
|
11249
11333
|
|
|
11250
11334
|
activity_filter?: ActivityFilterConfig;
|
|
11251
11335
|
|
|
11336
|
+
activity_marks?: ActivityMarksConfig;
|
|
11337
|
+
|
|
11252
11338
|
activity_processing?: ActivityProcessingConfig;
|
|
11253
11339
|
|
|
11254
11340
|
aggregation?: AggregationConfig;
|
|
@@ -12536,10 +12622,14 @@ export interface FloodIdenticalConfig {
|
|
|
12536
12622
|
}
|
|
12537
12623
|
|
|
12538
12624
|
export interface FloodIdenticalRuleParameters {
|
|
12625
|
+
min_text_length?: number;
|
|
12626
|
+
|
|
12539
12627
|
threshold?: number;
|
|
12540
12628
|
|
|
12541
12629
|
time_window?: string;
|
|
12542
12630
|
|
|
12631
|
+
track_across_users?: boolean;
|
|
12632
|
+
|
|
12543
12633
|
allowlist?: Array<string>;
|
|
12544
12634
|
}
|
|
12545
12635
|
|
|
@@ -13401,6 +13491,16 @@ export interface GetFeedsRateLimitsResponse {
|
|
|
13401
13491
|
*/
|
|
13402
13492
|
unity?: Record<string, LimitInfoResponse>;
|
|
13403
13493
|
|
|
13494
|
+
/**
|
|
13495
|
+
* Rate limits for Unity console platform (endpoint name -> limit info)
|
|
13496
|
+
*/
|
|
13497
|
+
unity_console?: Record<string, LimitInfoResponse>;
|
|
13498
|
+
|
|
13499
|
+
/**
|
|
13500
|
+
* Rate limits for Unity desktop platform (endpoint name -> limit info)
|
|
13501
|
+
*/
|
|
13502
|
+
unity_desktop?: Record<string, LimitInfoResponse>;
|
|
13503
|
+
|
|
13404
13504
|
/**
|
|
13405
13505
|
* Rate limits for Web platform (endpoint name -> limit info)
|
|
13406
13506
|
*/
|
|
@@ -13642,6 +13742,8 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
13642
13742
|
|
|
13643
13743
|
activity_filter?: ActivityFilterConfig;
|
|
13644
13744
|
|
|
13745
|
+
activity_marks?: ActivityMarksConfig;
|
|
13746
|
+
|
|
13645
13747
|
activity_processing?: ActivityProcessingConfig;
|
|
13646
13748
|
|
|
13647
13749
|
aggregation?: AggregationConfig;
|
|
@@ -13882,6 +13984,16 @@ export interface GetRateLimitsResponse {
|
|
|
13882
13984
|
*/
|
|
13883
13985
|
unity?: Record<string, LimitInfoResponse>;
|
|
13884
13986
|
|
|
13987
|
+
/**
|
|
13988
|
+
* Map of endpoint rate limits for the Unity console platform
|
|
13989
|
+
*/
|
|
13990
|
+
unity_console?: Record<string, LimitInfoResponse>;
|
|
13991
|
+
|
|
13992
|
+
/**
|
|
13993
|
+
* Map of endpoint rate limits for the Unity desktop platform
|
|
13994
|
+
*/
|
|
13995
|
+
unity_desktop?: Record<string, LimitInfoResponse>;
|
|
13996
|
+
|
|
13885
13997
|
/**
|
|
13886
13998
|
* Map of endpoint rate limits for the web platform
|
|
13887
13999
|
*/
|
|
@@ -14008,7 +14120,7 @@ export interface GetUserInterestsResponse {
|
|
|
14008
14120
|
duration: string;
|
|
14009
14121
|
|
|
14010
14122
|
/**
|
|
14011
|
-
*
|
|
14123
|
+
* Interest tags sorted by descending weight, then manually set tags before computed ones, then descending count, then alphabetically by tag
|
|
14012
14124
|
*/
|
|
14013
14125
|
interests: Array<InterestTagResponse>;
|
|
14014
14126
|
}
|
|
@@ -14702,14 +14814,24 @@ export interface InsertActionLogResponse {
|
|
|
14702
14814
|
|
|
14703
14815
|
export interface InterestTagResponse {
|
|
14704
14816
|
/**
|
|
14705
|
-
*
|
|
14817
|
+
* Lifetime number of distinct reacted-to activities tagged with this value, without decay; 0 for manually set tags
|
|
14706
14818
|
*/
|
|
14707
14819
|
count: number;
|
|
14708
14820
|
|
|
14821
|
+
/**
|
|
14822
|
+
* How the tag was set: computed (from the user's reactions) or manual (through the API)
|
|
14823
|
+
*/
|
|
14824
|
+
source: string;
|
|
14825
|
+
|
|
14709
14826
|
/**
|
|
14710
14827
|
* The interest tag value
|
|
14711
14828
|
*/
|
|
14712
14829
|
tag: string;
|
|
14830
|
+
|
|
14831
|
+
/**
|
|
14832
|
+
* 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
|
|
14833
|
+
*/
|
|
14834
|
+
weight: number;
|
|
14713
14835
|
}
|
|
14714
14836
|
|
|
14715
14837
|
export interface JoinCallAPIMetrics {
|
|
@@ -14953,7 +15075,7 @@ export interface LabelsRequest {
|
|
|
14953
15075
|
dry_run?: boolean;
|
|
14954
15076
|
|
|
14955
15077
|
/**
|
|
14956
|
-
* 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-
|
|
15078
|
+
* 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.
|
|
14957
15079
|
*/
|
|
14958
15080
|
policy?: string;
|
|
14959
15081
|
|
|
@@ -17283,6 +17405,8 @@ export interface ModerationDashboardPreferences {
|
|
|
17283
17405
|
|
|
17284
17406
|
custom_views_enabled?: boolean;
|
|
17285
17407
|
|
|
17408
|
+
disable_action_logs?: boolean;
|
|
17409
|
+
|
|
17286
17410
|
disable_audit_logs?: boolean;
|
|
17287
17411
|
|
|
17288
17412
|
disable_flagging_reviewed_entity?: boolean;
|
|
@@ -18386,6 +18510,14 @@ export interface PagerResponse {
|
|
|
18386
18510
|
}
|
|
18387
18511
|
|
|
18388
18512
|
export interface PaginationParams {
|
|
18513
|
+
id_gt?: number;
|
|
18514
|
+
|
|
18515
|
+
id_gte?: number;
|
|
18516
|
+
|
|
18517
|
+
id_lt?: number;
|
|
18518
|
+
|
|
18519
|
+
id_lte?: number;
|
|
18520
|
+
|
|
18389
18521
|
limit?: number;
|
|
18390
18522
|
|
|
18391
18523
|
offset?: number;
|
|
@@ -19829,6 +19961,14 @@ export interface QueryBannedUsersPayload {
|
|
|
19829
19961
|
*/
|
|
19830
19962
|
filter_conditions: Record<string, any>;
|
|
19831
19963
|
|
|
19964
|
+
created_at_after?: Date;
|
|
19965
|
+
|
|
19966
|
+
created_at_after_or_equal?: Date;
|
|
19967
|
+
|
|
19968
|
+
created_at_before?: Date;
|
|
19969
|
+
|
|
19970
|
+
created_at_before_or_equal?: Date;
|
|
19971
|
+
|
|
19832
19972
|
/**
|
|
19833
19973
|
* Whether to exclude expired bans or not
|
|
19834
19974
|
*/
|
|
@@ -20660,6 +20800,14 @@ export interface QueryFollowsResponse {
|
|
|
20660
20800
|
}
|
|
20661
20801
|
|
|
20662
20802
|
export interface QueryFutureChannelBansPayload {
|
|
20803
|
+
created_at_after?: Date;
|
|
20804
|
+
|
|
20805
|
+
created_at_after_or_equal?: Date;
|
|
20806
|
+
|
|
20807
|
+
created_at_before?: Date;
|
|
20808
|
+
|
|
20809
|
+
created_at_before_or_equal?: Date;
|
|
20810
|
+
|
|
20663
20811
|
/**
|
|
20664
20812
|
* Whether to exclude expired bans or not
|
|
20665
20813
|
*/
|
|
@@ -20751,6 +20899,14 @@ export interface QueryLabelResultsResponse {
|
|
|
20751
20899
|
export interface QueryMembersPayload {
|
|
20752
20900
|
type: string;
|
|
20753
20901
|
|
|
20902
|
+
created_at_after?: Date;
|
|
20903
|
+
|
|
20904
|
+
created_at_after_or_equal?: Date;
|
|
20905
|
+
|
|
20906
|
+
created_at_before?: Date;
|
|
20907
|
+
|
|
20908
|
+
created_at_before_or_equal?: Date;
|
|
20909
|
+
|
|
20754
20910
|
id?: string;
|
|
20755
20911
|
|
|
20756
20912
|
limit?: number;
|
|
@@ -20759,6 +20915,14 @@ export interface QueryMembersPayload {
|
|
|
20759
20915
|
|
|
20760
20916
|
user_id?: string;
|
|
20761
20917
|
|
|
20918
|
+
user_id_gt?: string;
|
|
20919
|
+
|
|
20920
|
+
user_id_gte?: string;
|
|
20921
|
+
|
|
20922
|
+
user_id_lt?: string;
|
|
20923
|
+
|
|
20924
|
+
user_id_lte?: string;
|
|
20925
|
+
|
|
20762
20926
|
members?: Array<ChannelMemberRequest>;
|
|
20763
20927
|
|
|
20764
20928
|
/**
|
|
@@ -21571,6 +21735,14 @@ export interface QueryUsersPayload {
|
|
|
21571
21735
|
*/
|
|
21572
21736
|
filter_conditions: Record<string, any>;
|
|
21573
21737
|
|
|
21738
|
+
id_gt?: string;
|
|
21739
|
+
|
|
21740
|
+
id_gte?: string;
|
|
21741
|
+
|
|
21742
|
+
id_lt?: string;
|
|
21743
|
+
|
|
21744
|
+
id_lte?: string;
|
|
21745
|
+
|
|
21574
21746
|
include_deactivated_users?: boolean;
|
|
21575
21747
|
|
|
21576
21748
|
limit?: number;
|
|
@@ -22822,6 +22994,11 @@ export interface ReviewQueueItemResponse {
|
|
|
22822
22994
|
*/
|
|
22823
22995
|
completed_at?: Date;
|
|
22824
22996
|
|
|
22997
|
+
/**
|
|
22998
|
+
* Highest per-label confidence (0-1) any provider reported across the item's flags; absent when no flag carried one
|
|
22999
|
+
*/
|
|
23000
|
+
confidence_score?: number;
|
|
23001
|
+
|
|
22825
23002
|
config_key?: string;
|
|
22826
23003
|
|
|
22827
23004
|
/**
|
|
@@ -23084,6 +23261,10 @@ export interface RuleBuilderCondition {
|
|
|
23084
23261
|
|
|
23085
23262
|
user_identical_content_count_params?: UserIdenticalContentCountParameters;
|
|
23086
23263
|
|
|
23264
|
+
user_identical_image_count_params?: UserIdenticalImageCountParameters;
|
|
23265
|
+
|
|
23266
|
+
user_reaction_count_params?: UserReactionCountRuleParameters;
|
|
23267
|
+
|
|
23087
23268
|
user_role_params?: UserRoleParameters;
|
|
23088
23269
|
|
|
23089
23270
|
user_rule_params?: UserRuleParameters;
|
|
@@ -23124,6 +23305,8 @@ export interface RuleBuilderRule {
|
|
|
23124
23305
|
}
|
|
23125
23306
|
|
|
23126
23307
|
export interface RunStats {
|
|
23308
|
+
activities_deleted?: number;
|
|
23309
|
+
|
|
23127
23310
|
channels_deleted?: number;
|
|
23128
23311
|
|
|
23129
23312
|
messages_deleted?: number;
|
|
@@ -27271,6 +27454,8 @@ export interface UpdateFeedGroupRequest {
|
|
|
27271
27454
|
|
|
27272
27455
|
activity_filter?: ActivityFilterConfig;
|
|
27273
27456
|
|
|
27457
|
+
activity_marks?: ActivityMarksConfig;
|
|
27458
|
+
|
|
27274
27459
|
activity_processing?: ActivityProcessingConfig;
|
|
27275
27460
|
|
|
27276
27461
|
aggregation?: AggregationConfig;
|
|
@@ -28538,6 +28723,22 @@ export interface UpsertSetupSessionResponse {
|
|
|
28538
28723
|
setup_session?: SetupSession;
|
|
28539
28724
|
}
|
|
28540
28725
|
|
|
28726
|
+
export interface UpsertUserInterestsRequest {
|
|
28727
|
+
/**
|
|
28728
|
+
* Interest tags to add or update (1-50)
|
|
28729
|
+
*/
|
|
28730
|
+
interests: Array<UserInterestRequest>;
|
|
28731
|
+
}
|
|
28732
|
+
|
|
28733
|
+
export interface UpsertUserInterestsResponse {
|
|
28734
|
+
duration: string;
|
|
28735
|
+
|
|
28736
|
+
/**
|
|
28737
|
+
* All interest tags of the user after the write
|
|
28738
|
+
*/
|
|
28739
|
+
interests: Array<InterestTagResponse>;
|
|
28740
|
+
}
|
|
28741
|
+
|
|
28541
28742
|
export interface User {
|
|
28542
28743
|
id: string;
|
|
28543
28744
|
|
|
@@ -28925,6 +29126,28 @@ export interface UserIdenticalContentCountParameters {
|
|
|
28925
29126
|
time_window?: string;
|
|
28926
29127
|
}
|
|
28927
29128
|
|
|
29129
|
+
export interface UserIdenticalImageCountParameters {
|
|
29130
|
+
match?: string;
|
|
29131
|
+
|
|
29132
|
+
similarity_distance?: number;
|
|
29133
|
+
|
|
29134
|
+
threshold?: number;
|
|
29135
|
+
|
|
29136
|
+
time_window?: string;
|
|
29137
|
+
}
|
|
29138
|
+
|
|
29139
|
+
export interface UserInterestRequest {
|
|
29140
|
+
/**
|
|
29141
|
+
* The interest tag; trimmed and lower-cased like activity interest_tags
|
|
29142
|
+
*/
|
|
29143
|
+
tag: string;
|
|
29144
|
+
|
|
29145
|
+
/**
|
|
29146
|
+
* Ranking weight between -1.0 (dislike) and 1.0 (like). Defaults to 1.0
|
|
29147
|
+
*/
|
|
29148
|
+
weight?: number;
|
|
29149
|
+
}
|
|
29150
|
+
|
|
28928
29151
|
export interface UserMessagesDeletedEvent {
|
|
28929
29152
|
/**
|
|
28930
29153
|
* Date/time of creation
|
|
@@ -29023,6 +29246,14 @@ export interface UserRatingReportResponse {
|
|
|
29023
29246
|
count: number;
|
|
29024
29247
|
}
|
|
29025
29248
|
|
|
29249
|
+
export interface UserReactionCountRuleParameters {
|
|
29250
|
+
count?: string;
|
|
29251
|
+
|
|
29252
|
+
threshold?: number;
|
|
29253
|
+
|
|
29254
|
+
time_window?: string;
|
|
29255
|
+
}
|
|
29256
|
+
|
|
29026
29257
|
export interface UserReactivatedEvent {
|
|
29027
29258
|
/**
|
|
29028
29259
|
* Date/time of creation
|
|
@@ -29838,6 +30069,18 @@ export interface WebhookFailoverConfig {
|
|
|
29838
30069
|
|
|
29839
30070
|
gcs_path?: string;
|
|
29840
30071
|
|
|
30072
|
+
s3_api_key?: string;
|
|
30073
|
+
|
|
30074
|
+
s3_bucket?: string;
|
|
30075
|
+
|
|
30076
|
+
s3_path?: string;
|
|
30077
|
+
|
|
30078
|
+
s3_region?: string;
|
|
30079
|
+
|
|
30080
|
+
s3_role_arn?: string;
|
|
30081
|
+
|
|
30082
|
+
s3_secret?: string;
|
|
30083
|
+
|
|
29841
30084
|
type?: string;
|
|
29842
30085
|
}
|
|
29843
30086
|
|
|
@@ -292,6 +292,7 @@ export class ModerationApi {
|
|
|
292
292
|
appeal_reason: request?.appeal_reason,
|
|
293
293
|
entity_id: request?.entity_id,
|
|
294
294
|
entity_type: request?.entity_type,
|
|
295
|
+
channel_cid: request?.channel_cid,
|
|
295
296
|
review_queue_item_id: request?.review_queue_item_id,
|
|
296
297
|
user_id: request?.user_id,
|
|
297
298
|
attachments: request?.attachments,
|