@stream-io/node-sdk 0.7.21 → 0.7.23
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/dist/index.cjs.js +31 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +31 -6
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +3 -3
- package/dist/src/gen/models/index.d.ts +62 -10
- package/dist/src/gen/video/VideoApi.d.ts +3 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +19 -7
- package/src/gen/model-decoders/decoders.ts +28 -2
- package/src/gen/models/index.ts +105 -16
- package/src/gen/video/VideoApi.ts +6 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, StreamResponse } from '../../gen-imports';
|
|
2
|
-
import { AcceptFeedMemberInviteRequest, AcceptFeedMemberInviteResponse, AcceptFollowRequest, AcceptFollowResponse, ActivityFeedbackRequest, ActivityFeedbackResponse, AddActivityRequest, AddActivityResponse, AddBookmarkRequest, AddBookmarkResponse, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, CastPollVoteRequest, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataResponse, DeleteFeedViewResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnCapabilitiesBatchRequest, OwnCapabilitiesBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, SingleFollowResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, 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, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, CastPollVoteRequest, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnCapabilitiesBatchRequest, OwnCapabilitiesBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, SingleFollowResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, UpdateCommentRequest, UpdateCommentResponse, UpdateFeedGroupRequest, UpdateFeedGroupResponse, UpdateFeedMembersRequest, UpdateFeedMembersResponse, UpdateFeedRequest, UpdateFeedResponse, UpdateFeedViewRequest, UpdateFeedViewResponse, UpdateFeedVisibilityRequest, UpdateFeedVisibilityResponse, UpdateFollowRequest, UpdateFollowResponse, UpdateMembershipLevelRequest, UpdateMembershipLevelResponse, UpsertActivitiesRequest, UpsertActivitiesResponse, UpsertCollectionsRequest, UpsertCollectionsResponse } from '../models';
|
|
3
3
|
export declare class FeedsApi {
|
|
4
4
|
readonly apiClient: ApiClient;
|
|
5
5
|
constructor(apiClient: ApiClient);
|
|
@@ -83,7 +83,7 @@ export declare class FeedsApi {
|
|
|
83
83
|
prev?: string;
|
|
84
84
|
next?: string;
|
|
85
85
|
}): Promise<StreamResponse<GetCommentsResponse>>;
|
|
86
|
-
addComment(request
|
|
86
|
+
addComment(request?: AddCommentRequest): Promise<StreamResponse<AddCommentResponse>>;
|
|
87
87
|
addCommentsBatch(request: AddCommentsBatchRequest): Promise<StreamResponse<AddCommentsBatchResponse>>;
|
|
88
88
|
queryComments(request: QueryCommentsRequest): Promise<StreamResponse<QueryCommentsResponse>>;
|
|
89
89
|
deleteComment(request: {
|
|
@@ -234,7 +234,7 @@ export declare class FeedsApi {
|
|
|
234
234
|
}): Promise<StreamResponse<UpdateMembershipLevelResponse>>;
|
|
235
235
|
queryFeedsUsageStats(request?: QueryFeedsUsageStatsRequest): Promise<StreamResponse<QueryFeedsUsageStatsResponse>>;
|
|
236
236
|
unfollowBatch(request: UnfollowBatchRequest): Promise<StreamResponse<UnfollowBatchResponse>>;
|
|
237
|
-
deleteFeedUserData(request: {
|
|
237
|
+
deleteFeedUserData(request: DeleteFeedUserDataRequest & {
|
|
238
238
|
user_id: string;
|
|
239
239
|
}): Promise<StreamResponse<DeleteFeedUserDataResponse>>;
|
|
240
240
|
exportFeedUserData(request: {
|
|
@@ -342,12 +342,13 @@ export interface ActivityResponse {
|
|
|
342
342
|
poll?: PollResponseData;
|
|
343
343
|
}
|
|
344
344
|
export interface ActivitySelectorConfig {
|
|
345
|
-
type: 'popular' | 'proximity' | 'following' | 'current_feed' | 'query' | 'interest';
|
|
345
|
+
type: 'popular' | 'proximity' | 'following' | 'current_feed' | 'query' | 'interest' | 'follow_suggestion';
|
|
346
346
|
cutoff_time?: string;
|
|
347
347
|
cutoff_window?: string;
|
|
348
348
|
min_popularity?: number;
|
|
349
349
|
sort?: SortParamRequest[];
|
|
350
350
|
filter?: Record<string, any>;
|
|
351
|
+
params?: Record<string, any>;
|
|
351
352
|
}
|
|
352
353
|
export interface ActivitySelectorConfigResponse {
|
|
353
354
|
type: string;
|
|
@@ -429,11 +430,11 @@ export interface AddCommentReactionResponse {
|
|
|
429
430
|
reaction: FeedsReactionResponse;
|
|
430
431
|
}
|
|
431
432
|
export interface AddCommentRequest {
|
|
432
|
-
object_id: string;
|
|
433
|
-
object_type: string;
|
|
434
433
|
comment?: string;
|
|
435
434
|
create_notification_activity?: boolean;
|
|
436
435
|
id?: string;
|
|
436
|
+
object_id?: string;
|
|
437
|
+
object_type?: string;
|
|
437
438
|
parent_id?: string;
|
|
438
439
|
skip_enrich_url?: boolean;
|
|
439
440
|
skip_push?: boolean;
|
|
@@ -484,7 +485,7 @@ export interface AggregatedActivityResponse {
|
|
|
484
485
|
is_watched?: boolean;
|
|
485
486
|
}
|
|
486
487
|
export interface AggregationConfig {
|
|
487
|
-
format
|
|
488
|
+
format?: string;
|
|
488
489
|
}
|
|
489
490
|
export interface AnyEvent {
|
|
490
491
|
created_at: Date;
|
|
@@ -850,7 +851,7 @@ export interface BookmarkFolderResponse {
|
|
|
850
851
|
id: string;
|
|
851
852
|
name: string;
|
|
852
853
|
updated_at: Date;
|
|
853
|
-
user:
|
|
854
|
+
user: UserResponse;
|
|
854
855
|
custom?: Record<string, any>;
|
|
855
856
|
}
|
|
856
857
|
export interface BookmarkFolderUpdatedEvent {
|
|
@@ -865,7 +866,7 @@ export interface BookmarkResponse {
|
|
|
865
866
|
created_at: Date;
|
|
866
867
|
updated_at: Date;
|
|
867
868
|
activity: ActivityResponse;
|
|
868
|
-
user:
|
|
869
|
+
user: UserResponse;
|
|
869
870
|
custom?: Record<string, any>;
|
|
870
871
|
folder?: BookmarkFolderResponse;
|
|
871
872
|
}
|
|
@@ -1117,6 +1118,7 @@ export interface CallReactionEvent {
|
|
|
1117
1118
|
export interface CallRecording {
|
|
1118
1119
|
end_time: Date;
|
|
1119
1120
|
filename: string;
|
|
1121
|
+
recording_type: string;
|
|
1120
1122
|
session_id: string;
|
|
1121
1123
|
start_time: Date;
|
|
1122
1124
|
url: string;
|
|
@@ -1577,6 +1579,32 @@ export interface Channel {
|
|
|
1577
1579
|
members_lookup?: Record<string, ChannelMemberLookup>;
|
|
1578
1580
|
truncated_by?: User;
|
|
1579
1581
|
}
|
|
1582
|
+
export interface ChannelBatchUpdatedCompletedEvent {
|
|
1583
|
+
batch_created_at: Date;
|
|
1584
|
+
created_at: Date;
|
|
1585
|
+
finished_at: Date;
|
|
1586
|
+
operation: string;
|
|
1587
|
+
status: string;
|
|
1588
|
+
success_channels_count: number;
|
|
1589
|
+
task_id: string;
|
|
1590
|
+
failed_channels: FailedChannelUpdates[];
|
|
1591
|
+
custom: Record<string, any>;
|
|
1592
|
+
type: string;
|
|
1593
|
+
received_at?: Date;
|
|
1594
|
+
}
|
|
1595
|
+
export interface ChannelBatchUpdatedStartedEvent {
|
|
1596
|
+
batch_created_at: Date;
|
|
1597
|
+
created_at: Date;
|
|
1598
|
+
finished_at: Date;
|
|
1599
|
+
operation: string;
|
|
1600
|
+
status: string;
|
|
1601
|
+
success_channels_count: number;
|
|
1602
|
+
task_id: string;
|
|
1603
|
+
failed_channels: FailedChannelUpdates[];
|
|
1604
|
+
custom: Record<string, any>;
|
|
1605
|
+
type: string;
|
|
1606
|
+
received_at?: Date;
|
|
1607
|
+
}
|
|
1580
1608
|
export interface ChannelConfig {
|
|
1581
1609
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1582
1610
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -2677,12 +2705,12 @@ export interface DeleteFeedResponse {
|
|
|
2677
2705
|
duration: string;
|
|
2678
2706
|
task_id: string;
|
|
2679
2707
|
}
|
|
2708
|
+
export interface DeleteFeedUserDataRequest {
|
|
2709
|
+
hard_delete?: boolean;
|
|
2710
|
+
}
|
|
2680
2711
|
export interface DeleteFeedUserDataResponse {
|
|
2681
|
-
deleted_activities: number;
|
|
2682
|
-
deleted_bookmarks: number;
|
|
2683
|
-
deleted_comments: number;
|
|
2684
|
-
deleted_reactions: number;
|
|
2685
2712
|
duration: string;
|
|
2713
|
+
task_id: string;
|
|
2686
2714
|
}
|
|
2687
2715
|
export interface DeleteFeedViewResponse {
|
|
2688
2716
|
duration: string;
|
|
@@ -2939,6 +2967,7 @@ export interface EventHook {
|
|
|
2939
2967
|
hook_type?: string;
|
|
2940
2968
|
id?: string;
|
|
2941
2969
|
product?: string;
|
|
2970
|
+
should_send_custom_events?: boolean;
|
|
2942
2971
|
sns_auth_type?: string;
|
|
2943
2972
|
sns_key?: string;
|
|
2944
2973
|
sns_region?: string;
|
|
@@ -3013,6 +3042,10 @@ export interface ExternalStorageResponse {
|
|
|
3013
3042
|
export interface FCM {
|
|
3014
3043
|
data?: Record<string, any>;
|
|
3015
3044
|
}
|
|
3045
|
+
export interface FailedChannelUpdates {
|
|
3046
|
+
reason: string;
|
|
3047
|
+
cids: string[];
|
|
3048
|
+
}
|
|
3016
3049
|
export interface FeedCreatedEvent {
|
|
3017
3050
|
created_at: Date;
|
|
3018
3051
|
fid: string;
|
|
@@ -3258,6 +3291,7 @@ export interface FeedsModerationTemplateConfig {
|
|
|
3258
3291
|
export interface FeedsPreferences {
|
|
3259
3292
|
comment?: 'all' | 'none';
|
|
3260
3293
|
comment_reaction?: 'all' | 'none';
|
|
3294
|
+
comment_reply?: 'all' | 'none';
|
|
3261
3295
|
follow?: 'all' | 'none';
|
|
3262
3296
|
mention?: 'all' | 'none';
|
|
3263
3297
|
reaction?: 'all' | 'none';
|
|
@@ -3337,6 +3371,9 @@ export interface Flag {
|
|
|
3337
3371
|
target_user?: User;
|
|
3338
3372
|
user?: User;
|
|
3339
3373
|
}
|
|
3374
|
+
export interface FlagCountRuleParameters {
|
|
3375
|
+
threshold?: number;
|
|
3376
|
+
}
|
|
3340
3377
|
export interface FlagDetails {
|
|
3341
3378
|
original_text: string;
|
|
3342
3379
|
extra: Record<string, any>;
|
|
@@ -3743,6 +3780,7 @@ export interface GetOrCreateFeedGroupResponse {
|
|
|
3743
3780
|
feed_group: FeedGroupResponse;
|
|
3744
3781
|
}
|
|
3745
3782
|
export interface GetOrCreateFeedRequest {
|
|
3783
|
+
id_around?: string;
|
|
3746
3784
|
limit?: number;
|
|
3747
3785
|
next?: string;
|
|
3748
3786
|
prev?: string;
|
|
@@ -4783,6 +4821,12 @@ export interface NetworkMetricsReportResponse {
|
|
|
4783
4821
|
export interface NoiseCancellationSettings {
|
|
4784
4822
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4785
4823
|
}
|
|
4824
|
+
export interface NotificationComment {
|
|
4825
|
+
comment: string;
|
|
4826
|
+
id: string;
|
|
4827
|
+
user_id: string;
|
|
4828
|
+
attachments?: Attachment[];
|
|
4829
|
+
}
|
|
4786
4830
|
export interface NotificationConfig {
|
|
4787
4831
|
deduplication_window?: string;
|
|
4788
4832
|
track_read?: boolean;
|
|
@@ -4846,10 +4890,12 @@ export interface NotificationTarget {
|
|
|
4846
4890
|
type?: string;
|
|
4847
4891
|
user_id?: string;
|
|
4848
4892
|
attachments?: Attachment[];
|
|
4893
|
+
comment?: NotificationComment;
|
|
4849
4894
|
}
|
|
4850
4895
|
export interface NotificationTrigger {
|
|
4851
4896
|
text: string;
|
|
4852
4897
|
type: string;
|
|
4898
|
+
comment?: NotificationComment;
|
|
4853
4899
|
}
|
|
4854
4900
|
export interface OCRRule {
|
|
4855
4901
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
@@ -6291,12 +6337,14 @@ export interface RuleBuilderCondition {
|
|
|
6291
6337
|
confidence?: number;
|
|
6292
6338
|
type?: string;
|
|
6293
6339
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
6340
|
+
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
6294
6341
|
image_content_params?: ImageContentParameters;
|
|
6295
6342
|
image_rule_params?: ImageRuleParameters;
|
|
6296
6343
|
text_content_params?: TextContentParameters;
|
|
6297
6344
|
text_rule_params?: TextRuleParameters;
|
|
6298
6345
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
6299
6346
|
user_custom_property_params?: UserCustomPropertyParameters;
|
|
6347
|
+
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
6300
6348
|
user_rule_params?: UserRuleParameters;
|
|
6301
6349
|
video_content_params?: VideoContentParameters;
|
|
6302
6350
|
video_rule_params?: VideoRuleParameters;
|
|
@@ -8237,6 +8285,10 @@ export type WebhookEvent = ({
|
|
|
8237
8285
|
} & ChannelUpdatedEvent) | ({
|
|
8238
8286
|
type: 'channel.visible';
|
|
8239
8287
|
} & ChannelVisibleEvent) | ({
|
|
8288
|
+
type: 'channel_batch_update.completed';
|
|
8289
|
+
} & ChannelBatchUpdatedCompletedEvent) | ({
|
|
8290
|
+
type: 'channel_batch_update.started';
|
|
8291
|
+
} & ChannelBatchUpdatedStartedEvent) | ({
|
|
8240
8292
|
type: 'custom';
|
|
8241
8293
|
} & CustomVideoEvent) | ({
|
|
8242
8294
|
type: 'export.bulk_image_moderation.error';
|
|
@@ -186,6 +186,9 @@ export declare class VideoApi {
|
|
|
186
186
|
call_type: string;
|
|
187
187
|
call_id: string;
|
|
188
188
|
session: string;
|
|
189
|
+
limit?: number;
|
|
190
|
+
prev?: string;
|
|
191
|
+
next?: string;
|
|
189
192
|
sort?: SortParamRequest[];
|
|
190
193
|
filter_conditions?: Record<string, any>;
|
|
191
194
|
}): Promise<StreamResponse<QueryCallSessionParticipantStatsResponse>>;
|
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
DeleteCommentResponse,
|
|
41
41
|
DeleteFeedGroupResponse,
|
|
42
42
|
DeleteFeedResponse,
|
|
43
|
+
DeleteFeedUserDataRequest,
|
|
43
44
|
DeleteFeedUserDataResponse,
|
|
44
45
|
DeleteFeedViewResponse,
|
|
45
46
|
ExportFeedUserDataResponse,
|
|
@@ -872,14 +873,14 @@ export class FeedsApi {
|
|
|
872
873
|
}
|
|
873
874
|
|
|
874
875
|
async addComment(
|
|
875
|
-
request
|
|
876
|
+
request?: AddCommentRequest,
|
|
876
877
|
): Promise<StreamResponse<AddCommentResponse>> {
|
|
877
878
|
const body = {
|
|
878
|
-
object_id: request?.object_id,
|
|
879
|
-
object_type: request?.object_type,
|
|
880
879
|
comment: request?.comment,
|
|
881
880
|
create_notification_activity: request?.create_notification_activity,
|
|
882
881
|
id: request?.id,
|
|
882
|
+
object_id: request?.object_id,
|
|
883
|
+
object_type: request?.object_type,
|
|
883
884
|
parent_id: request?.parent_id,
|
|
884
885
|
skip_enrich_url: request?.skip_enrich_url,
|
|
885
886
|
skip_push: request?.skip_push,
|
|
@@ -1228,6 +1229,7 @@ export class FeedsApi {
|
|
|
1228
1229
|
feed_id: request?.feed_id,
|
|
1229
1230
|
};
|
|
1230
1231
|
const body = {
|
|
1232
|
+
id_around: request?.id_around,
|
|
1231
1233
|
limit: request?.limit,
|
|
1232
1234
|
next: request?.next,
|
|
1233
1235
|
prev: request?.prev,
|
|
@@ -2254,16 +2256,26 @@ export class FeedsApi {
|
|
|
2254
2256
|
return { ...response.body, metadata: response.metadata };
|
|
2255
2257
|
}
|
|
2256
2258
|
|
|
2257
|
-
async deleteFeedUserData(
|
|
2258
|
-
user_id: string
|
|
2259
|
-
|
|
2259
|
+
async deleteFeedUserData(
|
|
2260
|
+
request: DeleteFeedUserDataRequest & { user_id: string },
|
|
2261
|
+
): Promise<StreamResponse<DeleteFeedUserDataResponse>> {
|
|
2260
2262
|
const pathParams = {
|
|
2261
2263
|
user_id: request?.user_id,
|
|
2262
2264
|
};
|
|
2265
|
+
const body = {
|
|
2266
|
+
hard_delete: request?.hard_delete,
|
|
2267
|
+
};
|
|
2263
2268
|
|
|
2264
2269
|
const response = await this.apiClient.sendRequest<
|
|
2265
2270
|
StreamResponse<DeleteFeedUserDataResponse>
|
|
2266
|
-
>(
|
|
2271
|
+
>(
|
|
2272
|
+
'POST',
|
|
2273
|
+
'/api/v2/feeds/users/{user_id}/delete',
|
|
2274
|
+
pathParams,
|
|
2275
|
+
undefined,
|
|
2276
|
+
body,
|
|
2277
|
+
'application/json',
|
|
2278
|
+
);
|
|
2267
2279
|
|
|
2268
2280
|
decoders.DeleteFeedUserDataResponse?.(response.body);
|
|
2269
2281
|
|
|
@@ -534,7 +534,7 @@ decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {
|
|
|
534
534
|
|
|
535
535
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
536
536
|
|
|
537
|
-
user: { type: '
|
|
537
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
538
538
|
};
|
|
539
539
|
return decode(typeMappings, input);
|
|
540
540
|
};
|
|
@@ -560,7 +560,7 @@ decoders.BookmarkResponse = (input?: Record<string, any>) => {
|
|
|
560
560
|
|
|
561
561
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
562
562
|
|
|
563
|
-
user: { type: '
|
|
563
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
564
564
|
|
|
565
565
|
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
566
566
|
};
|
|
@@ -1204,6 +1204,32 @@ decoders.Channel = (input?: Record<string, any>) => {
|
|
|
1204
1204
|
return decode(typeMappings, input);
|
|
1205
1205
|
};
|
|
1206
1206
|
|
|
1207
|
+
decoders.ChannelBatchUpdatedCompletedEvent = (input?: Record<string, any>) => {
|
|
1208
|
+
const typeMappings: TypeMapping = {
|
|
1209
|
+
batch_created_at: { type: 'DatetimeType', isSingle: true },
|
|
1210
|
+
|
|
1211
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1212
|
+
|
|
1213
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
1214
|
+
|
|
1215
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1216
|
+
};
|
|
1217
|
+
return decode(typeMappings, input);
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
decoders.ChannelBatchUpdatedStartedEvent = (input?: Record<string, any>) => {
|
|
1221
|
+
const typeMappings: TypeMapping = {
|
|
1222
|
+
batch_created_at: { type: 'DatetimeType', isSingle: true },
|
|
1223
|
+
|
|
1224
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1225
|
+
|
|
1226
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
1227
|
+
|
|
1228
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1229
|
+
};
|
|
1230
|
+
return decode(typeMappings, input);
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1207
1233
|
decoders.ChannelConfig = (input?: Record<string, any>) => {
|
|
1208
1234
|
const typeMappings: TypeMapping = {
|
|
1209
1235
|
created_at: { type: 'DatetimeType', isSingle: true },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -619,7 +619,8 @@ export interface ActivitySelectorConfig {
|
|
|
619
619
|
| 'following'
|
|
620
620
|
| 'current_feed'
|
|
621
621
|
| 'query'
|
|
622
|
-
| 'interest'
|
|
622
|
+
| 'interest'
|
|
623
|
+
| 'follow_suggestion';
|
|
623
624
|
|
|
624
625
|
cutoff_time?: string;
|
|
625
626
|
|
|
@@ -630,6 +631,8 @@ export interface ActivitySelectorConfig {
|
|
|
630
631
|
sort?: SortParamRequest[];
|
|
631
632
|
|
|
632
633
|
filter?: Record<string, any>;
|
|
634
|
+
|
|
635
|
+
params?: Record<string, any>;
|
|
633
636
|
}
|
|
634
637
|
|
|
635
638
|
export interface ActivitySelectorConfigResponse {
|
|
@@ -773,16 +776,16 @@ export interface AddCommentReactionResponse {
|
|
|
773
776
|
}
|
|
774
777
|
|
|
775
778
|
export interface AddCommentRequest {
|
|
776
|
-
object_id: string;
|
|
777
|
-
|
|
778
|
-
object_type: string;
|
|
779
|
-
|
|
780
779
|
comment?: string;
|
|
781
780
|
|
|
782
781
|
create_notification_activity?: boolean;
|
|
783
782
|
|
|
784
783
|
id?: string;
|
|
785
784
|
|
|
785
|
+
object_id?: string;
|
|
786
|
+
|
|
787
|
+
object_type?: string;
|
|
788
|
+
|
|
786
789
|
parent_id?: string;
|
|
787
790
|
|
|
788
791
|
skip_enrich_url?: boolean;
|
|
@@ -867,7 +870,7 @@ export interface AggregatedActivityResponse {
|
|
|
867
870
|
}
|
|
868
871
|
|
|
869
872
|
export interface AggregationConfig {
|
|
870
|
-
format
|
|
873
|
+
format?: string;
|
|
871
874
|
}
|
|
872
875
|
|
|
873
876
|
export interface AnyEvent {
|
|
@@ -1532,7 +1535,7 @@ export interface BookmarkFolderResponse {
|
|
|
1532
1535
|
|
|
1533
1536
|
updated_at: Date;
|
|
1534
1537
|
|
|
1535
|
-
user:
|
|
1538
|
+
user: UserResponse;
|
|
1536
1539
|
|
|
1537
1540
|
custom?: Record<string, any>;
|
|
1538
1541
|
}
|
|
@@ -1558,7 +1561,7 @@ export interface BookmarkResponse {
|
|
|
1558
1561
|
|
|
1559
1562
|
activity: ActivityResponse;
|
|
1560
1563
|
|
|
1561
|
-
user:
|
|
1564
|
+
user: UserResponse;
|
|
1562
1565
|
|
|
1563
1566
|
custom?: Record<string, any>;
|
|
1564
1567
|
|
|
@@ -1980,6 +1983,8 @@ export interface CallRecording {
|
|
|
1980
1983
|
|
|
1981
1984
|
filename: string;
|
|
1982
1985
|
|
|
1986
|
+
recording_type: string;
|
|
1987
|
+
|
|
1983
1988
|
session_id: string;
|
|
1984
1989
|
|
|
1985
1990
|
start_time: Date;
|
|
@@ -2801,6 +2806,54 @@ export interface Channel {
|
|
|
2801
2806
|
truncated_by?: User;
|
|
2802
2807
|
}
|
|
2803
2808
|
|
|
2809
|
+
export interface ChannelBatchUpdatedCompletedEvent {
|
|
2810
|
+
batch_created_at: Date;
|
|
2811
|
+
|
|
2812
|
+
created_at: Date;
|
|
2813
|
+
|
|
2814
|
+
finished_at: Date;
|
|
2815
|
+
|
|
2816
|
+
operation: string;
|
|
2817
|
+
|
|
2818
|
+
status: string;
|
|
2819
|
+
|
|
2820
|
+
success_channels_count: number;
|
|
2821
|
+
|
|
2822
|
+
task_id: string;
|
|
2823
|
+
|
|
2824
|
+
failed_channels: FailedChannelUpdates[];
|
|
2825
|
+
|
|
2826
|
+
custom: Record<string, any>;
|
|
2827
|
+
|
|
2828
|
+
type: string;
|
|
2829
|
+
|
|
2830
|
+
received_at?: Date;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
export interface ChannelBatchUpdatedStartedEvent {
|
|
2834
|
+
batch_created_at: Date;
|
|
2835
|
+
|
|
2836
|
+
created_at: Date;
|
|
2837
|
+
|
|
2838
|
+
finished_at: Date;
|
|
2839
|
+
|
|
2840
|
+
operation: string;
|
|
2841
|
+
|
|
2842
|
+
status: string;
|
|
2843
|
+
|
|
2844
|
+
success_channels_count: number;
|
|
2845
|
+
|
|
2846
|
+
task_id: string;
|
|
2847
|
+
|
|
2848
|
+
failed_channels: FailedChannelUpdates[];
|
|
2849
|
+
|
|
2850
|
+
custom: Record<string, any>;
|
|
2851
|
+
|
|
2852
|
+
type: string;
|
|
2853
|
+
|
|
2854
|
+
received_at?: Date;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2804
2857
|
export interface ChannelConfig {
|
|
2805
2858
|
automod: 'disabled' | 'simple' | 'AI';
|
|
2806
2859
|
|
|
@@ -4717,16 +4770,14 @@ export interface DeleteFeedResponse {
|
|
|
4717
4770
|
task_id: string;
|
|
4718
4771
|
}
|
|
4719
4772
|
|
|
4720
|
-
export interface
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
deleted_bookmarks: number;
|
|
4724
|
-
|
|
4725
|
-
deleted_comments: number;
|
|
4726
|
-
|
|
4727
|
-
deleted_reactions: number;
|
|
4773
|
+
export interface DeleteFeedUserDataRequest {
|
|
4774
|
+
hard_delete?: boolean;
|
|
4775
|
+
}
|
|
4728
4776
|
|
|
4777
|
+
export interface DeleteFeedUserDataResponse {
|
|
4729
4778
|
duration: string;
|
|
4779
|
+
|
|
4780
|
+
task_id: string;
|
|
4730
4781
|
}
|
|
4731
4782
|
|
|
4732
4783
|
export interface DeleteFeedViewResponse {
|
|
@@ -5162,6 +5213,8 @@ export interface EventHook {
|
|
|
5162
5213
|
|
|
5163
5214
|
product?: string;
|
|
5164
5215
|
|
|
5216
|
+
should_send_custom_events?: boolean;
|
|
5217
|
+
|
|
5165
5218
|
sns_auth_type?: string;
|
|
5166
5219
|
|
|
5167
5220
|
sns_key?: string;
|
|
@@ -5285,6 +5338,12 @@ export interface FCM {
|
|
|
5285
5338
|
data?: Record<string, any>;
|
|
5286
5339
|
}
|
|
5287
5340
|
|
|
5341
|
+
export interface FailedChannelUpdates {
|
|
5342
|
+
reason: string;
|
|
5343
|
+
|
|
5344
|
+
cids: string[];
|
|
5345
|
+
}
|
|
5346
|
+
|
|
5288
5347
|
export interface FeedCreatedEvent {
|
|
5289
5348
|
created_at: Date;
|
|
5290
5349
|
|
|
@@ -5708,6 +5767,8 @@ export interface FeedsPreferences {
|
|
|
5708
5767
|
|
|
5709
5768
|
comment_reaction?: 'all' | 'none';
|
|
5710
5769
|
|
|
5770
|
+
comment_reply?: 'all' | 'none';
|
|
5771
|
+
|
|
5711
5772
|
follow?: 'all' | 'none';
|
|
5712
5773
|
|
|
5713
5774
|
mention?: 'all' | 'none';
|
|
@@ -5845,6 +5906,10 @@ export interface Flag {
|
|
|
5845
5906
|
user?: User;
|
|
5846
5907
|
}
|
|
5847
5908
|
|
|
5909
|
+
export interface FlagCountRuleParameters {
|
|
5910
|
+
threshold?: number;
|
|
5911
|
+
}
|
|
5912
|
+
|
|
5848
5913
|
export interface FlagDetails {
|
|
5849
5914
|
original_text: string;
|
|
5850
5915
|
|
|
@@ -6547,6 +6612,8 @@ export interface GetOrCreateFeedGroupResponse {
|
|
|
6547
6612
|
}
|
|
6548
6613
|
|
|
6549
6614
|
export interface GetOrCreateFeedRequest {
|
|
6615
|
+
id_around?: string;
|
|
6616
|
+
|
|
6550
6617
|
limit?: number;
|
|
6551
6618
|
|
|
6552
6619
|
next?: string;
|
|
@@ -8359,6 +8426,16 @@ export interface NoiseCancellationSettings {
|
|
|
8359
8426
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
8360
8427
|
}
|
|
8361
8428
|
|
|
8429
|
+
export interface NotificationComment {
|
|
8430
|
+
comment: string;
|
|
8431
|
+
|
|
8432
|
+
id: string;
|
|
8433
|
+
|
|
8434
|
+
user_id: string;
|
|
8435
|
+
|
|
8436
|
+
attachments?: Attachment[];
|
|
8437
|
+
}
|
|
8438
|
+
|
|
8362
8439
|
export interface NotificationConfig {
|
|
8363
8440
|
deduplication_window?: string;
|
|
8364
8441
|
|
|
@@ -8471,12 +8548,16 @@ export interface NotificationTarget {
|
|
|
8471
8548
|
user_id?: string;
|
|
8472
8549
|
|
|
8473
8550
|
attachments?: Attachment[];
|
|
8551
|
+
|
|
8552
|
+
comment?: NotificationComment;
|
|
8474
8553
|
}
|
|
8475
8554
|
|
|
8476
8555
|
export interface NotificationTrigger {
|
|
8477
8556
|
text: string;
|
|
8478
8557
|
|
|
8479
8558
|
type: string;
|
|
8559
|
+
|
|
8560
|
+
comment?: NotificationComment;
|
|
8480
8561
|
}
|
|
8481
8562
|
|
|
8482
8563
|
export interface OCRRule {
|
|
@@ -10998,6 +11079,8 @@ export interface RuleBuilderCondition {
|
|
|
10998
11079
|
|
|
10999
11080
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
11000
11081
|
|
|
11082
|
+
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
11083
|
+
|
|
11001
11084
|
image_content_params?: ImageContentParameters;
|
|
11002
11085
|
|
|
11003
11086
|
image_rule_params?: ImageRuleParameters;
|
|
@@ -11010,6 +11093,8 @@ export interface RuleBuilderCondition {
|
|
|
11010
11093
|
|
|
11011
11094
|
user_custom_property_params?: UserCustomPropertyParameters;
|
|
11012
11095
|
|
|
11096
|
+
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
11097
|
+
|
|
11013
11098
|
user_rule_params?: UserRuleParameters;
|
|
11014
11099
|
|
|
11015
11100
|
video_content_params?: VideoContentParameters;
|
|
@@ -14424,6 +14509,10 @@ export type WebhookEvent =
|
|
|
14424
14509
|
| ({ type: 'channel.unmuted' } & ChannelUnmutedEvent)
|
|
14425
14510
|
| ({ type: 'channel.updated' } & ChannelUpdatedEvent)
|
|
14426
14511
|
| ({ type: 'channel.visible' } & ChannelVisibleEvent)
|
|
14512
|
+
| ({
|
|
14513
|
+
type: 'channel_batch_update.completed';
|
|
14514
|
+
} & ChannelBatchUpdatedCompletedEvent)
|
|
14515
|
+
| ({ type: 'channel_batch_update.started' } & ChannelBatchUpdatedStartedEvent)
|
|
14427
14516
|
| ({ type: 'custom' } & CustomVideoEvent)
|
|
14428
14517
|
| ({ type: 'export.bulk_image_moderation.error' } & AsyncExportErrorEvent)
|
|
14429
14518
|
| ({
|
|
@@ -1297,10 +1297,16 @@ export class VideoApi {
|
|
|
1297
1297
|
call_type: string;
|
|
1298
1298
|
call_id: string;
|
|
1299
1299
|
session: string;
|
|
1300
|
+
limit?: number;
|
|
1301
|
+
prev?: string;
|
|
1302
|
+
next?: string;
|
|
1300
1303
|
sort?: SortParamRequest[];
|
|
1301
1304
|
filter_conditions?: Record<string, any>;
|
|
1302
1305
|
}): Promise<StreamResponse<QueryCallSessionParticipantStatsResponse>> {
|
|
1303
1306
|
const queryParams = {
|
|
1307
|
+
limit: request?.limit,
|
|
1308
|
+
prev: request?.prev,
|
|
1309
|
+
next: request?.next,
|
|
1304
1310
|
sort: request?.sort,
|
|
1305
1311
|
filter_conditions: request?.filter_conditions,
|
|
1306
1312
|
};
|