@stream-io/node-sdk 0.8.5 → 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 +15 -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 +188 -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 +268 -9
- package/src/gen/moderation/ModerationApi.ts +1 -0
|
@@ -7,6 +7,7 @@ export declare class ChannelApi {
|
|
|
7
7
|
constructor(chatApi: ChatApi, type: string, id: string | undefined);
|
|
8
8
|
delete(request?: {
|
|
9
9
|
hard_delete?: boolean;
|
|
10
|
+
skip_truncate?: boolean;
|
|
10
11
|
}): Promise<StreamResponse<DeleteChannelResponse>>;
|
|
11
12
|
get(request?: {
|
|
12
13
|
state?: boolean;
|
|
@@ -117,6 +117,7 @@ export declare class CommonApi {
|
|
|
117
117
|
getPollOption(request: {
|
|
118
118
|
poll_id: string;
|
|
119
119
|
option_id: string;
|
|
120
|
+
user_id?: string;
|
|
120
121
|
}): Promise<StreamResponse<PollOptionResponse>>;
|
|
121
122
|
queryPollVotes(request: QueryPollVotesRequest & {
|
|
122
123
|
poll_id: string;
|
|
@@ -140,6 +141,8 @@ export declare class CommonApi {
|
|
|
140
141
|
ios?: boolean;
|
|
141
142
|
web?: boolean;
|
|
142
143
|
unity?: boolean;
|
|
144
|
+
unity_desktop?: boolean;
|
|
145
|
+
unity_console?: boolean;
|
|
143
146
|
endpoints?: string;
|
|
144
147
|
}): Promise<StreamResponse<GetRateLimitsResponse>>;
|
|
145
148
|
listRoles(): Promise<StreamResponse<ListRolesResponse>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, StreamResponse } from '../../gen-imports';
|
|
2
|
-
import { AcceptFeedMemberInviteRequest, AcceptFeedMemberInviteResponse, AcceptFollowRequest, AcceptFollowResponse, ActivityFeedbackRequest, ActivityFeedbackResponse, AddActivityRequest, AddActivityResponse, AddBookmarkRequest, AddBookmarkResponse, AddCommentBookmarkRequest, AddCommentBookmarkResponse, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, BatchQueryActivityReactionsRequest, BatchQueryActivityReactionsResponse, BatchQueryCommentReactionsRequest, BatchQueryCommentReactionsResponse, CastPollVoteRequest, ChangeFeedVisibilityRequest, ChangeFeedVisibilityResponse, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentBookmarkResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, DeleteFeedsBatchRequest, DeleteFeedsBatchResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedCountsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, GetOrCreateFollowResponse, GetOrCreateUnfollowRequest, GetOrCreateUnfollowResponse, GetUserInterestsResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnBatchRequest, OwnBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryActivitySharesResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, QueryPinnedActivitiesRequest, QueryPinnedActivitiesResponse, QueryRevisionHistoryRequest, QueryRevisionHistoryResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, RestoreActivityRequest, RestoreActivityResponse, RestoreCommentRequest, RestoreCommentResponse, RestoreFeedGroupResponse, SingleFollowResponse, TrackActivityMetricsRequest, TrackActivityMetricsResponse, TranslateActivityRequest, TranslateActivityResponse, TranslateCommentRequest, TranslateCommentResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivitiesPartialBatchRequest, UpdateActivitiesPartialBatchResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, UpdateCommentBookmarkRequest, UpdateCommentBookmarkResponse, UpdateCommentPartialRequest, UpdateCommentPartialResponse, UpdateCommentRequest, UpdateCommentResponse, UpdateFeedGroupRequest, UpdateFeedGroupResponse, UpdateFeedMembersRequest, UpdateFeedMembersResponse, UpdateFeedRequest, UpdateFeedResponse, UpdateFeedViewRequest, UpdateFeedViewResponse, UpdateFeedVisibilityRequest, UpdateFeedVisibilityResponse, UpdateFollowRequest, UpdateFollowResponse, UpdateMembershipLevelRequest, UpdateMembershipLevelResponse, UpsertActivitiesRequest, UpsertActivitiesResponse, UpsertCollectionsRequest, UpsertCollectionsResponse } from '../models';
|
|
2
|
+
import { AcceptFeedMemberInviteRequest, AcceptFeedMemberInviteResponse, AcceptFollowRequest, AcceptFollowResponse, ActivityFeedbackRequest, ActivityFeedbackResponse, AddActivityRequest, AddActivityResponse, AddBookmarkRequest, AddBookmarkResponse, AddCommentBookmarkRequest, AddCommentBookmarkResponse, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, BatchQueryActivityReactionsRequest, BatchQueryActivityReactionsResponse, BatchQueryCommentReactionsRequest, BatchQueryCommentReactionsResponse, CastPollVoteRequest, ChangeFeedVisibilityRequest, ChangeFeedVisibilityResponse, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentBookmarkResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, DeleteFeedsBatchRequest, DeleteFeedsBatchResponse, DeleteUserInterestsResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedCountsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, GetOrCreateFollowResponse, GetOrCreateUnfollowRequest, GetOrCreateUnfollowResponse, GetUserInterestsResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnBatchRequest, OwnBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryActivitySharesResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, QueryPinnedActivitiesRequest, QueryPinnedActivitiesResponse, QueryRevisionHistoryRequest, QueryRevisionHistoryResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, RestoreActivityRequest, RestoreActivityResponse, RestoreCommentRequest, RestoreCommentResponse, RestoreFeedGroupResponse, SingleFollowResponse, TrackActivityMetricsRequest, TrackActivityMetricsResponse, TranslateActivityRequest, TranslateActivityResponse, TranslateCommentRequest, TranslateCommentResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivitiesPartialBatchRequest, UpdateActivitiesPartialBatchResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, UpdateCommentBookmarkRequest, UpdateCommentBookmarkResponse, UpdateCommentPartialRequest, UpdateCommentPartialResponse, UpdateCommentRequest, UpdateCommentResponse, UpdateFeedGroupRequest, UpdateFeedGroupResponse, UpdateFeedMembersRequest, UpdateFeedMembersResponse, UpdateFeedRequest, UpdateFeedResponse, UpdateFeedViewRequest, UpdateFeedViewResponse, UpdateFeedVisibilityRequest, UpdateFeedVisibilityResponse, UpdateFollowRequest, UpdateFollowResponse, UpdateMembershipLevelRequest, UpdateMembershipLevelResponse, UpsertActivitiesRequest, UpsertActivitiesResponse, UpsertCollectionsRequest, UpsertCollectionsResponse, UpsertUserInterestsRequest, UpsertUserInterestsResponse } from '../models';
|
|
3
3
|
export declare class FeedsApi {
|
|
4
4
|
readonly apiClient: ApiClient;
|
|
5
5
|
constructor(apiClient: ApiClient);
|
|
@@ -64,6 +64,7 @@ export declare class FeedsApi {
|
|
|
64
64
|
id: string;
|
|
65
65
|
comment_sort?: string;
|
|
66
66
|
comment_limit?: number;
|
|
67
|
+
skip_own_followings?: boolean;
|
|
67
68
|
user_id?: string;
|
|
68
69
|
language?: string;
|
|
69
70
|
translate_text?: boolean;
|
|
@@ -302,6 +303,8 @@ export declare class FeedsApi {
|
|
|
302
303
|
ios?: boolean;
|
|
303
304
|
web?: boolean;
|
|
304
305
|
unity?: boolean;
|
|
306
|
+
unity_desktop?: boolean;
|
|
307
|
+
unity_console?: boolean;
|
|
305
308
|
server_side?: boolean;
|
|
306
309
|
}): Promise<StreamResponse<GetFeedsRateLimitsResponse>>;
|
|
307
310
|
updateFollow(request: UpdateFollowRequest): Promise<StreamResponse<UpdateFollowResponse>>;
|
|
@@ -338,8 +341,15 @@ export declare class FeedsApi {
|
|
|
338
341
|
exportFeedUserData(request: {
|
|
339
342
|
user_id: string;
|
|
340
343
|
}): Promise<StreamResponse<ExportFeedUserDataResponse>>;
|
|
344
|
+
deleteUserInterests(request: {
|
|
345
|
+
user_id: string;
|
|
346
|
+
tags: Array<string>;
|
|
347
|
+
}): Promise<StreamResponse<DeleteUserInterestsResponse>>;
|
|
341
348
|
getUserInterests(request: {
|
|
342
349
|
user_id: string;
|
|
343
350
|
limit?: number;
|
|
344
351
|
}): Promise<StreamResponse<GetUserInterestsResponse>>;
|
|
352
|
+
upsertUserInterests(request: UpsertUserInterestsRequest & {
|
|
353
|
+
user_id: string;
|
|
354
|
+
}): Promise<StreamResponse<UpsertUserInterestsResponse>>;
|
|
345
355
|
}
|
|
@@ -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
|
|
@@ -821,6 +830,7 @@ export interface ActivitySelectorConfig {
|
|
|
821
830
|
* Sort parameters for activity selection
|
|
822
831
|
*/
|
|
823
832
|
sort?: Array<SortParamRequest>;
|
|
833
|
+
feed_groups?: FeedGroupScope;
|
|
824
834
|
/**
|
|
825
835
|
* Filter for activity selection
|
|
826
836
|
*/
|
|
@@ -848,6 +858,7 @@ export interface ActivitySelectorConfigResponse {
|
|
|
848
858
|
* Sort parameters for activity selection
|
|
849
859
|
*/
|
|
850
860
|
sort?: Array<SortParamRequest>;
|
|
861
|
+
feed_groups?: FeedGroupScope;
|
|
851
862
|
/**
|
|
852
863
|
* Filter for activity selection
|
|
853
864
|
*/
|
|
@@ -1073,10 +1084,18 @@ export interface AddCommentReactionRequest {
|
|
|
1073
1084
|
user?: UserRequest;
|
|
1074
1085
|
}
|
|
1075
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;
|
|
1076
1091
|
/**
|
|
1077
1092
|
* Duration of the request
|
|
1078
1093
|
*/
|
|
1079
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;
|
|
1080
1099
|
comment: CommentResponse;
|
|
1081
1100
|
reaction: FeedsReactionResponse;
|
|
1082
1101
|
/**
|
|
@@ -1092,6 +1111,10 @@ export interface AddCommentReactionResponse {
|
|
|
1092
1111
|
* ID of the async notification-creation task; poll GET /tasks/{id} for its status
|
|
1093
1112
|
*/
|
|
1094
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;
|
|
1095
1118
|
reference_activity?: ActivityResponse;
|
|
1096
1119
|
}
|
|
1097
1120
|
export interface AddCommentRequest {
|
|
@@ -1224,7 +1247,15 @@ export interface AddReactionRequest {
|
|
|
1224
1247
|
user?: UserRequest;
|
|
1225
1248
|
}
|
|
1226
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;
|
|
1227
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;
|
|
1228
1259
|
activity: ActivityResponse;
|
|
1229
1260
|
reaction: FeedsReactionResponse;
|
|
1230
1261
|
/**
|
|
@@ -1240,6 +1271,10 @@ export interface AddReactionResponse {
|
|
|
1240
1271
|
* ID of the async notification-creation task; poll GET /tasks/{id} for its status
|
|
1241
1272
|
*/
|
|
1242
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;
|
|
1243
1278
|
reference_activity?: ActivityResponse;
|
|
1244
1279
|
}
|
|
1245
1280
|
export interface AddSegmentTargetsRequest {
|
|
@@ -1434,6 +1469,7 @@ export interface AppResponseFields {
|
|
|
1434
1469
|
allow_multi_user_devices: boolean;
|
|
1435
1470
|
async_url_enrich_enabled: boolean;
|
|
1436
1471
|
auto_translation_enabled: boolean;
|
|
1472
|
+
before_message_send_hook_system_messages: boolean;
|
|
1437
1473
|
campaign_enabled: boolean;
|
|
1438
1474
|
cdn_expiration_seconds: number;
|
|
1439
1475
|
custom_action_handler_url: string;
|
|
@@ -1541,7 +1577,7 @@ export interface AppealItemResponse {
|
|
|
1541
1577
|
*/
|
|
1542
1578
|
ai_text_severity?: string;
|
|
1543
1579
|
/**
|
|
1544
|
-
* CID of the channel the entity belongs to,
|
|
1580
|
+
* 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.
|
|
1545
1581
|
*/
|
|
1546
1582
|
channel_cid?: string;
|
|
1547
1583
|
/**
|
|
@@ -1612,6 +1648,10 @@ export interface AppealRequest {
|
|
|
1612
1648
|
* Type of entity being appealed (e.g., message, user)
|
|
1613
1649
|
*/
|
|
1614
1650
|
entity_type: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* CID of the channel ban being appealed. Only used when entity_type is stream:user; omit to appeal the global ban.
|
|
1653
|
+
*/
|
|
1654
|
+
channel_cid?: string;
|
|
1615
1655
|
/**
|
|
1616
1656
|
* ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals.
|
|
1617
1657
|
*/
|
|
@@ -3785,11 +3825,19 @@ export interface ChannelBatchStartedEvent {
|
|
|
3785
3825
|
received_at?: Date;
|
|
3786
3826
|
}
|
|
3787
3827
|
export interface ChannelBatchUpdateRequest {
|
|
3788
|
-
operation: 'addMembers' | 'removeMembers' | 'inviteMembers' | 'invites' | 'assignRoles' | 'addModerators' | 'demoteModerators' | 'hide' | 'show' | 'archive' | 'unarchive' | 'updateData';
|
|
3828
|
+
operation: 'addMembers' | 'addMembersHideHistory' | 'removeMembers' | 'inviteMembers' | 'invites' | 'assignRoles' | 'addModerators' | 'demoteModerators' | 'hide' | 'show' | 'archive' | 'unarchive' | 'updateData';
|
|
3789
3829
|
/**
|
|
3790
3830
|
* Filter to apply to the query
|
|
3791
3831
|
*/
|
|
3792
3832
|
filter: Record<string, any>;
|
|
3833
|
+
/**
|
|
3834
|
+
* 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.
|
|
3835
|
+
*/
|
|
3836
|
+
hide_history_before?: Date;
|
|
3837
|
+
/**
|
|
3838
|
+
* 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.
|
|
3839
|
+
*/
|
|
3840
|
+
synchronous?: boolean;
|
|
3793
3841
|
/**
|
|
3794
3842
|
* `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`
|
|
3795
3843
|
*/
|
|
@@ -3802,10 +3850,14 @@ export interface ChannelBatchUpdateRequest {
|
|
|
3802
3850
|
data?: ChannelDataUpdate;
|
|
3803
3851
|
}
|
|
3804
3852
|
export interface ChannelBatchUpdateResponse {
|
|
3853
|
+
duration: string;
|
|
3805
3854
|
/**
|
|
3806
|
-
*
|
|
3855
|
+
* 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.
|
|
3856
|
+
*/
|
|
3857
|
+
success_channels_count?: number;
|
|
3858
|
+
/**
|
|
3859
|
+
* Present for asynchronous updates. Poll this task even if synchronous was requested: an older API node may have queued the update.
|
|
3807
3860
|
*/
|
|
3808
|
-
duration: string;
|
|
3809
3861
|
task_id?: string;
|
|
3810
3862
|
}
|
|
3811
3863
|
export interface ChannelConfig {
|
|
@@ -5273,6 +5325,10 @@ export interface ClientEvent {
|
|
|
5273
5325
|
* Identifier of the SFU the client was attempting to connect to. Required on WSJoin and PeerConnectionConnect failure, and on FirstAudioFrame and FirstVideoFrame.
|
|
5274
5326
|
*/
|
|
5275
5327
|
sfu_id?: string;
|
|
5328
|
+
/**
|
|
5329
|
+
* Source of the coordinator join. Optional on CoordinatorJoin events; omitted when not provided.
|
|
5330
|
+
*/
|
|
5331
|
+
source?: string;
|
|
5276
5332
|
/**
|
|
5277
5333
|
* 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.
|
|
5278
5334
|
*/
|
|
@@ -6208,6 +6264,7 @@ export interface CreateFeedGroupRequest {
|
|
|
6208
6264
|
*/
|
|
6209
6265
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
6210
6266
|
activity_filter?: ActivityFilterConfig;
|
|
6267
|
+
activity_marks?: ActivityMarksConfig;
|
|
6211
6268
|
activity_processing?: ActivityProcessingConfig;
|
|
6212
6269
|
aggregation?: AggregationConfig;
|
|
6213
6270
|
/**
|
|
@@ -6946,9 +7003,13 @@ export interface DeleteChannelsRequest {
|
|
|
6946
7003
|
*/
|
|
6947
7004
|
cids: Array<string>;
|
|
6948
7005
|
/**
|
|
6949
|
-
*
|
|
7006
|
+
* Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted.
|
|
6950
7007
|
*/
|
|
6951
7008
|
hard_delete?: boolean;
|
|
7009
|
+
/**
|
|
7010
|
+
* 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.
|
|
7011
|
+
*/
|
|
7012
|
+
skip_truncate?: boolean;
|
|
6952
7013
|
}
|
|
6953
7014
|
export interface DeleteChannelsResponse {
|
|
6954
7015
|
/**
|
|
@@ -7184,6 +7245,13 @@ export interface DeleteTranscriptionResponse {
|
|
|
7184
7245
|
*/
|
|
7185
7246
|
duration: string;
|
|
7186
7247
|
}
|
|
7248
|
+
export interface DeleteUserInterestsResponse {
|
|
7249
|
+
duration: string;
|
|
7250
|
+
/**
|
|
7251
|
+
* Interest tags still set on the user
|
|
7252
|
+
*/
|
|
7253
|
+
interests: Array<InterestTagResponse>;
|
|
7254
|
+
}
|
|
7187
7255
|
export interface DeleteUserMessagesRequestPayload {
|
|
7188
7256
|
/**
|
|
7189
7257
|
* Message deletion mode: soft, pruning, or hard
|
|
@@ -7988,6 +8056,7 @@ export interface FeedGroupResponse {
|
|
|
7988
8056
|
*/
|
|
7989
8057
|
activity_selectors?: Array<ActivitySelectorConfigResponse>;
|
|
7990
8058
|
activity_filter?: ActivityFilterConfig;
|
|
8059
|
+
activity_marks?: ActivityMarksConfig;
|
|
7991
8060
|
activity_processing?: ActivityProcessingConfig;
|
|
7992
8061
|
aggregation?: AggregationConfig;
|
|
7993
8062
|
/**
|
|
@@ -8017,6 +8086,16 @@ export interface FeedGroupRestoredEvent {
|
|
|
8017
8086
|
feed_visibility?: string;
|
|
8018
8087
|
received_at?: Date;
|
|
8019
8088
|
}
|
|
8089
|
+
export interface FeedGroupScope {
|
|
8090
|
+
/**
|
|
8091
|
+
* 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
|
|
8092
|
+
*/
|
|
8093
|
+
exclude?: Array<string>;
|
|
8094
|
+
/**
|
|
8095
|
+
* Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude
|
|
8096
|
+
*/
|
|
8097
|
+
include?: Array<string>;
|
|
8098
|
+
}
|
|
8020
8099
|
export interface FeedInput {
|
|
8021
8100
|
description?: string;
|
|
8022
8101
|
name?: string;
|
|
@@ -8864,8 +8943,10 @@ export interface FloodIdenticalConfig {
|
|
|
8864
8943
|
time_window?: string;
|
|
8865
8944
|
}
|
|
8866
8945
|
export interface FloodIdenticalRuleParameters {
|
|
8946
|
+
min_text_length?: number;
|
|
8867
8947
|
threshold?: number;
|
|
8868
8948
|
time_window?: string;
|
|
8949
|
+
track_across_users?: boolean;
|
|
8869
8950
|
allowlist?: Array<string>;
|
|
8870
8951
|
}
|
|
8871
8952
|
export interface FloodSimilarConfig {
|
|
@@ -9443,6 +9524,14 @@ export interface GetFeedsRateLimitsResponse {
|
|
|
9443
9524
|
* Rate limits for Unity platform (endpoint name -> limit info)
|
|
9444
9525
|
*/
|
|
9445
9526
|
unity?: Record<string, LimitInfoResponse>;
|
|
9527
|
+
/**
|
|
9528
|
+
* Rate limits for Unity console platform (endpoint name -> limit info)
|
|
9529
|
+
*/
|
|
9530
|
+
unity_console?: Record<string, LimitInfoResponse>;
|
|
9531
|
+
/**
|
|
9532
|
+
* Rate limits for Unity desktop platform (endpoint name -> limit info)
|
|
9533
|
+
*/
|
|
9534
|
+
unity_desktop?: Record<string, LimitInfoResponse>;
|
|
9446
9535
|
/**
|
|
9447
9536
|
* Rate limits for Web platform (endpoint name -> limit info)
|
|
9448
9537
|
*/
|
|
@@ -9618,6 +9707,7 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
9618
9707
|
*/
|
|
9619
9708
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
9620
9709
|
activity_filter?: ActivityFilterConfig;
|
|
9710
|
+
activity_marks?: ActivityMarksConfig;
|
|
9621
9711
|
activity_processing?: ActivityProcessingConfig;
|
|
9622
9712
|
aggregation?: AggregationConfig;
|
|
9623
9713
|
/**
|
|
@@ -9786,6 +9876,14 @@ export interface GetRateLimitsResponse {
|
|
|
9786
9876
|
* Map of endpoint rate limits for the Unity platform
|
|
9787
9877
|
*/
|
|
9788
9878
|
unity?: Record<string, LimitInfoResponse>;
|
|
9879
|
+
/**
|
|
9880
|
+
* Map of endpoint rate limits for the Unity console platform
|
|
9881
|
+
*/
|
|
9882
|
+
unity_console?: Record<string, LimitInfoResponse>;
|
|
9883
|
+
/**
|
|
9884
|
+
* Map of endpoint rate limits for the Unity desktop platform
|
|
9885
|
+
*/
|
|
9886
|
+
unity_desktop?: Record<string, LimitInfoResponse>;
|
|
9789
9887
|
/**
|
|
9790
9888
|
* Map of endpoint rate limits for the web platform
|
|
9791
9889
|
*/
|
|
@@ -9878,7 +9976,7 @@ export interface GetUserGroupResponse {
|
|
|
9878
9976
|
export interface GetUserInterestsResponse {
|
|
9879
9977
|
duration: string;
|
|
9880
9978
|
/**
|
|
9881
|
-
*
|
|
9979
|
+
* Interest tags sorted by descending weight, then manually set tags before computed ones, then descending count, then alphabetically by tag
|
|
9882
9980
|
*/
|
|
9883
9981
|
interests: Array<InterestTagResponse>;
|
|
9884
9982
|
}
|
|
@@ -10359,13 +10457,21 @@ export interface InsertActionLogResponse {
|
|
|
10359
10457
|
}
|
|
10360
10458
|
export interface InterestTagResponse {
|
|
10361
10459
|
/**
|
|
10362
|
-
*
|
|
10460
|
+
* Lifetime number of distinct reacted-to activities tagged with this value, without decay; 0 for manually set tags
|
|
10363
10461
|
*/
|
|
10364
10462
|
count: number;
|
|
10463
|
+
/**
|
|
10464
|
+
* How the tag was set: computed (from the user's reactions) or manual (through the API)
|
|
10465
|
+
*/
|
|
10466
|
+
source: string;
|
|
10365
10467
|
/**
|
|
10366
10468
|
* The interest tag value
|
|
10367
10469
|
*/
|
|
10368
10470
|
tag: string;
|
|
10471
|
+
/**
|
|
10472
|
+
* 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
|
|
10473
|
+
*/
|
|
10474
|
+
weight: number;
|
|
10369
10475
|
}
|
|
10370
10476
|
export interface JoinCallAPIMetrics {
|
|
10371
10477
|
failures: number;
|
|
@@ -10540,7 +10646,7 @@ export interface LabelsRequest {
|
|
|
10540
10646
|
*/
|
|
10541
10647
|
dry_run?: boolean;
|
|
10542
10648
|
/**
|
|
10543
|
-
* 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-
|
|
10649
|
+
* 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.
|
|
10544
10650
|
*/
|
|
10545
10651
|
policy?: string;
|
|
10546
10652
|
/**
|
|
@@ -12272,6 +12378,7 @@ export interface ModerationDashboardPreferences {
|
|
|
12272
12378
|
async_review_queue_upsert?: boolean;
|
|
12273
12379
|
block_foreign_cdn_attachments?: boolean;
|
|
12274
12380
|
custom_views_enabled?: boolean;
|
|
12381
|
+
disable_action_logs?: boolean;
|
|
12275
12382
|
disable_audit_logs?: boolean;
|
|
12276
12383
|
disable_flagging_reviewed_entity?: boolean;
|
|
12277
12384
|
enforce_shadow_server_side?: boolean;
|
|
@@ -13050,6 +13157,10 @@ export interface PagerResponse {
|
|
|
13050
13157
|
prev?: string;
|
|
13051
13158
|
}
|
|
13052
13159
|
export interface PaginationParams {
|
|
13160
|
+
id_gt?: number;
|
|
13161
|
+
id_gte?: number;
|
|
13162
|
+
id_lt?: number;
|
|
13163
|
+
id_lte?: number;
|
|
13053
13164
|
limit?: number;
|
|
13054
13165
|
offset?: number;
|
|
13055
13166
|
}
|
|
@@ -13979,6 +14090,10 @@ export interface QueryBannedUsersPayload {
|
|
|
13979
14090
|
* Filter conditions to apply to the query
|
|
13980
14091
|
*/
|
|
13981
14092
|
filter_conditions: Record<string, any>;
|
|
14093
|
+
created_at_after?: Date;
|
|
14094
|
+
created_at_after_or_equal?: Date;
|
|
14095
|
+
created_at_before?: Date;
|
|
14096
|
+
created_at_before_or_equal?: Date;
|
|
13982
14097
|
/**
|
|
13983
14098
|
* Whether to exclude expired bans or not
|
|
13984
14099
|
*/
|
|
@@ -14580,6 +14695,10 @@ export interface QueryFollowsResponse {
|
|
|
14580
14695
|
prev?: string;
|
|
14581
14696
|
}
|
|
14582
14697
|
export interface QueryFutureChannelBansPayload {
|
|
14698
|
+
created_at_after?: Date;
|
|
14699
|
+
created_at_after_or_equal?: Date;
|
|
14700
|
+
created_at_before?: Date;
|
|
14701
|
+
created_at_before_or_equal?: Date;
|
|
14583
14702
|
/**
|
|
14584
14703
|
* Whether to exclude expired bans or not
|
|
14585
14704
|
*/
|
|
@@ -14649,10 +14768,18 @@ export interface QueryLabelResultsResponse {
|
|
|
14649
14768
|
}
|
|
14650
14769
|
export interface QueryMembersPayload {
|
|
14651
14770
|
type: string;
|
|
14771
|
+
created_at_after?: Date;
|
|
14772
|
+
created_at_after_or_equal?: Date;
|
|
14773
|
+
created_at_before?: Date;
|
|
14774
|
+
created_at_before_or_equal?: Date;
|
|
14652
14775
|
id?: string;
|
|
14653
14776
|
limit?: number;
|
|
14654
14777
|
offset?: number;
|
|
14655
14778
|
user_id?: string;
|
|
14779
|
+
user_id_gt?: string;
|
|
14780
|
+
user_id_gte?: string;
|
|
14781
|
+
user_id_lt?: string;
|
|
14782
|
+
user_id_lte?: string;
|
|
14656
14783
|
members?: Array<ChannelMemberRequest>;
|
|
14657
14784
|
/**
|
|
14658
14785
|
* Array of sort parameters
|
|
@@ -15254,6 +15381,10 @@ export interface QueryUsersPayload {
|
|
|
15254
15381
|
* Filter conditions to apply to the query
|
|
15255
15382
|
*/
|
|
15256
15383
|
filter_conditions: Record<string, any>;
|
|
15384
|
+
id_gt?: string;
|
|
15385
|
+
id_gte?: string;
|
|
15386
|
+
id_lt?: string;
|
|
15387
|
+
id_lte?: string;
|
|
15257
15388
|
include_deactivated_users?: boolean;
|
|
15258
15389
|
limit?: number;
|
|
15259
15390
|
offset?: number;
|
|
@@ -16166,6 +16297,10 @@ export interface ReviewQueueItemResponse {
|
|
|
16166
16297
|
* When the review was completed
|
|
16167
16298
|
*/
|
|
16168
16299
|
completed_at?: Date;
|
|
16300
|
+
/**
|
|
16301
|
+
* Highest per-label confidence (0-1) any provider reported across the item's flags; absent when no flag carried one
|
|
16302
|
+
*/
|
|
16303
|
+
confidence_score?: number;
|
|
16169
16304
|
config_key?: string;
|
|
16170
16305
|
/**
|
|
16171
16306
|
* ID of who created the entity
|
|
@@ -16327,6 +16462,8 @@ export interface RuleBuilderCondition {
|
|
|
16327
16462
|
user_custom_property_params?: UserCustomPropertyParameters;
|
|
16328
16463
|
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
16329
16464
|
user_identical_content_count_params?: UserIdenticalContentCountParameters;
|
|
16465
|
+
user_identical_image_count_params?: UserIdenticalImageCountParameters;
|
|
16466
|
+
user_reaction_count_params?: UserReactionCountRuleParameters;
|
|
16330
16467
|
user_role_params?: UserRoleParameters;
|
|
16331
16468
|
user_rule_params?: UserRuleParameters;
|
|
16332
16469
|
video_content_params?: VideoContentParameters;
|
|
@@ -16351,6 +16488,7 @@ export interface RuleBuilderRule {
|
|
|
16351
16488
|
action?: RuleBuilderAction;
|
|
16352
16489
|
}
|
|
16353
16490
|
export interface RunStats {
|
|
16491
|
+
activities_deleted?: number;
|
|
16354
16492
|
channels_deleted?: number;
|
|
16355
16493
|
messages_deleted?: number;
|
|
16356
16494
|
}
|
|
@@ -19183,6 +19321,7 @@ export interface UpdateFeedGroupRequest {
|
|
|
19183
19321
|
*/
|
|
19184
19322
|
activity_selectors?: Array<ActivitySelectorConfig>;
|
|
19185
19323
|
activity_filter?: ActivityFilterConfig;
|
|
19324
|
+
activity_marks?: ActivityMarksConfig;
|
|
19186
19325
|
activity_processing?: ActivityProcessingConfig;
|
|
19187
19326
|
aggregation?: AggregationConfig;
|
|
19188
19327
|
/**
|
|
@@ -20139,6 +20278,19 @@ export interface UpsertSetupSessionResponse {
|
|
|
20139
20278
|
duration: string;
|
|
20140
20279
|
setup_session?: SetupSession;
|
|
20141
20280
|
}
|
|
20281
|
+
export interface UpsertUserInterestsRequest {
|
|
20282
|
+
/**
|
|
20283
|
+
* Interest tags to add or update (1-50)
|
|
20284
|
+
*/
|
|
20285
|
+
interests: Array<UserInterestRequest>;
|
|
20286
|
+
}
|
|
20287
|
+
export interface UpsertUserInterestsResponse {
|
|
20288
|
+
duration: string;
|
|
20289
|
+
/**
|
|
20290
|
+
* All interest tags of the user after the write
|
|
20291
|
+
*/
|
|
20292
|
+
interests: Array<InterestTagResponse>;
|
|
20293
|
+
}
|
|
20142
20294
|
export interface User {
|
|
20143
20295
|
id: string;
|
|
20144
20296
|
data?: Record<string, any>;
|
|
@@ -20408,6 +20560,22 @@ export interface UserIdenticalContentCountParameters {
|
|
|
20408
20560
|
threshold?: number;
|
|
20409
20561
|
time_window?: string;
|
|
20410
20562
|
}
|
|
20563
|
+
export interface UserIdenticalImageCountParameters {
|
|
20564
|
+
match?: string;
|
|
20565
|
+
similarity_distance?: number;
|
|
20566
|
+
threshold?: number;
|
|
20567
|
+
time_window?: string;
|
|
20568
|
+
}
|
|
20569
|
+
export interface UserInterestRequest {
|
|
20570
|
+
/**
|
|
20571
|
+
* The interest tag; trimmed and lower-cased like activity interest_tags
|
|
20572
|
+
*/
|
|
20573
|
+
tag: string;
|
|
20574
|
+
/**
|
|
20575
|
+
* Ranking weight between -1.0 (dislike) and 1.0 (like). Defaults to 1.0
|
|
20576
|
+
*/
|
|
20577
|
+
weight?: number;
|
|
20578
|
+
}
|
|
20411
20579
|
export interface UserMessagesDeletedEvent {
|
|
20412
20580
|
/**
|
|
20413
20581
|
* Date/time of creation
|
|
@@ -20479,6 +20647,11 @@ export interface UserRatingReportResponse {
|
|
|
20479
20647
|
average: number;
|
|
20480
20648
|
count: number;
|
|
20481
20649
|
}
|
|
20650
|
+
export interface UserReactionCountRuleParameters {
|
|
20651
|
+
count?: string;
|
|
20652
|
+
threshold?: number;
|
|
20653
|
+
time_window?: string;
|
|
20654
|
+
}
|
|
20482
20655
|
export interface UserReactivatedEvent {
|
|
20483
20656
|
/**
|
|
20484
20657
|
* Date/time of creation
|
|
@@ -21234,6 +21407,12 @@ export interface WebhookFailoverConfig {
|
|
|
21234
21407
|
gcs_bucket?: string;
|
|
21235
21408
|
gcs_credentials?: string;
|
|
21236
21409
|
gcs_path?: string;
|
|
21410
|
+
s3_api_key?: string;
|
|
21411
|
+
s3_bucket?: string;
|
|
21412
|
+
s3_path?: string;
|
|
21413
|
+
s3_region?: string;
|
|
21414
|
+
s3_role_arn?: string;
|
|
21415
|
+
s3_secret?: string;
|
|
21237
21416
|
type?: string;
|
|
21238
21417
|
}
|
|
21239
21418
|
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,
|
|
@@ -1257,7 +1257,11 @@ export class CommonApi {
|
|
|
1257
1257
|
async getPollOption(request: {
|
|
1258
1258
|
poll_id: string;
|
|
1259
1259
|
option_id: string;
|
|
1260
|
+
user_id?: string;
|
|
1260
1261
|
}): Promise<StreamResponse<PollOptionResponse>> {
|
|
1262
|
+
const queryParams = {
|
|
1263
|
+
user_id: request?.user_id,
|
|
1264
|
+
};
|
|
1261
1265
|
const pathParams = {
|
|
1262
1266
|
poll_id: request?.poll_id,
|
|
1263
1267
|
option_id: request?.option_id,
|
|
@@ -1269,7 +1273,7 @@ export class CommonApi {
|
|
|
1269
1273
|
'GET',
|
|
1270
1274
|
'/api/v2/polls/{poll_id}/options/{option_id}',
|
|
1271
1275
|
pathParams,
|
|
1272
|
-
|
|
1276
|
+
queryParams,
|
|
1273
1277
|
);
|
|
1274
1278
|
|
|
1275
1279
|
decoders['PollOptionResponse']?.(response.body);
|
|
@@ -1440,6 +1444,8 @@ export class CommonApi {
|
|
|
1440
1444
|
ios?: boolean;
|
|
1441
1445
|
web?: boolean;
|
|
1442
1446
|
unity?: boolean;
|
|
1447
|
+
unity_desktop?: boolean;
|
|
1448
|
+
unity_console?: boolean;
|
|
1443
1449
|
endpoints?: string;
|
|
1444
1450
|
}): Promise<StreamResponse<GetRateLimitsResponse>> {
|
|
1445
1451
|
const queryParams = {
|
|
@@ -1448,6 +1454,8 @@ export class CommonApi {
|
|
|
1448
1454
|
ios: request?.ios,
|
|
1449
1455
|
web: request?.web,
|
|
1450
1456
|
unity: request?.unity,
|
|
1457
|
+
unity_desktop: request?.unity_desktop,
|
|
1458
|
+
unity_console: request?.unity_console,
|
|
1451
1459
|
endpoints: request?.endpoints,
|
|
1452
1460
|
};
|
|
1453
1461
|
|