@stream-io/node-sdk 0.7.21 → 0.7.22
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 +60 -9
- 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 +101 -15
- 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: {
|
|
@@ -429,11 +429,11 @@ export interface AddCommentReactionResponse {
|
|
|
429
429
|
reaction: FeedsReactionResponse;
|
|
430
430
|
}
|
|
431
431
|
export interface AddCommentRequest {
|
|
432
|
-
object_id: string;
|
|
433
|
-
object_type: string;
|
|
434
432
|
comment?: string;
|
|
435
433
|
create_notification_activity?: boolean;
|
|
436
434
|
id?: string;
|
|
435
|
+
object_id?: string;
|
|
436
|
+
object_type?: string;
|
|
437
437
|
parent_id?: string;
|
|
438
438
|
skip_enrich_url?: boolean;
|
|
439
439
|
skip_push?: boolean;
|
|
@@ -484,7 +484,7 @@ export interface AggregatedActivityResponse {
|
|
|
484
484
|
is_watched?: boolean;
|
|
485
485
|
}
|
|
486
486
|
export interface AggregationConfig {
|
|
487
|
-
format
|
|
487
|
+
format?: string;
|
|
488
488
|
}
|
|
489
489
|
export interface AnyEvent {
|
|
490
490
|
created_at: Date;
|
|
@@ -850,7 +850,7 @@ export interface BookmarkFolderResponse {
|
|
|
850
850
|
id: string;
|
|
851
851
|
name: string;
|
|
852
852
|
updated_at: Date;
|
|
853
|
-
user:
|
|
853
|
+
user: UserResponse;
|
|
854
854
|
custom?: Record<string, any>;
|
|
855
855
|
}
|
|
856
856
|
export interface BookmarkFolderUpdatedEvent {
|
|
@@ -865,7 +865,7 @@ export interface BookmarkResponse {
|
|
|
865
865
|
created_at: Date;
|
|
866
866
|
updated_at: Date;
|
|
867
867
|
activity: ActivityResponse;
|
|
868
|
-
user:
|
|
868
|
+
user: UserResponse;
|
|
869
869
|
custom?: Record<string, any>;
|
|
870
870
|
folder?: BookmarkFolderResponse;
|
|
871
871
|
}
|
|
@@ -1117,6 +1117,7 @@ export interface CallReactionEvent {
|
|
|
1117
1117
|
export interface CallRecording {
|
|
1118
1118
|
end_time: Date;
|
|
1119
1119
|
filename: string;
|
|
1120
|
+
recording_type: string;
|
|
1120
1121
|
session_id: string;
|
|
1121
1122
|
start_time: Date;
|
|
1122
1123
|
url: string;
|
|
@@ -1577,6 +1578,32 @@ export interface Channel {
|
|
|
1577
1578
|
members_lookup?: Record<string, ChannelMemberLookup>;
|
|
1578
1579
|
truncated_by?: User;
|
|
1579
1580
|
}
|
|
1581
|
+
export interface ChannelBatchUpdatedCompletedEvent {
|
|
1582
|
+
batch_created_at: Date;
|
|
1583
|
+
created_at: Date;
|
|
1584
|
+
finished_at: Date;
|
|
1585
|
+
operation: string;
|
|
1586
|
+
status: string;
|
|
1587
|
+
success_channels_count: number;
|
|
1588
|
+
task_id: string;
|
|
1589
|
+
failed_channels: FailedChannelUpdates[];
|
|
1590
|
+
custom: Record<string, any>;
|
|
1591
|
+
type: string;
|
|
1592
|
+
received_at?: Date;
|
|
1593
|
+
}
|
|
1594
|
+
export interface ChannelBatchUpdatedStartedEvent {
|
|
1595
|
+
batch_created_at: Date;
|
|
1596
|
+
created_at: Date;
|
|
1597
|
+
finished_at: Date;
|
|
1598
|
+
operation: string;
|
|
1599
|
+
status: string;
|
|
1600
|
+
success_channels_count: number;
|
|
1601
|
+
task_id: string;
|
|
1602
|
+
failed_channels: FailedChannelUpdates[];
|
|
1603
|
+
custom: Record<string, any>;
|
|
1604
|
+
type: string;
|
|
1605
|
+
received_at?: Date;
|
|
1606
|
+
}
|
|
1580
1607
|
export interface ChannelConfig {
|
|
1581
1608
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1582
1609
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -2677,12 +2704,12 @@ export interface DeleteFeedResponse {
|
|
|
2677
2704
|
duration: string;
|
|
2678
2705
|
task_id: string;
|
|
2679
2706
|
}
|
|
2707
|
+
export interface DeleteFeedUserDataRequest {
|
|
2708
|
+
hard_delete?: boolean;
|
|
2709
|
+
}
|
|
2680
2710
|
export interface DeleteFeedUserDataResponse {
|
|
2681
|
-
deleted_activities: number;
|
|
2682
|
-
deleted_bookmarks: number;
|
|
2683
|
-
deleted_comments: number;
|
|
2684
|
-
deleted_reactions: number;
|
|
2685
2711
|
duration: string;
|
|
2712
|
+
task_id: string;
|
|
2686
2713
|
}
|
|
2687
2714
|
export interface DeleteFeedViewResponse {
|
|
2688
2715
|
duration: string;
|
|
@@ -2939,6 +2966,7 @@ export interface EventHook {
|
|
|
2939
2966
|
hook_type?: string;
|
|
2940
2967
|
id?: string;
|
|
2941
2968
|
product?: string;
|
|
2969
|
+
should_send_custom_events?: boolean;
|
|
2942
2970
|
sns_auth_type?: string;
|
|
2943
2971
|
sns_key?: string;
|
|
2944
2972
|
sns_region?: string;
|
|
@@ -3013,6 +3041,10 @@ export interface ExternalStorageResponse {
|
|
|
3013
3041
|
export interface FCM {
|
|
3014
3042
|
data?: Record<string, any>;
|
|
3015
3043
|
}
|
|
3044
|
+
export interface FailedChannelUpdates {
|
|
3045
|
+
reason: string;
|
|
3046
|
+
cids: string[];
|
|
3047
|
+
}
|
|
3016
3048
|
export interface FeedCreatedEvent {
|
|
3017
3049
|
created_at: Date;
|
|
3018
3050
|
fid: string;
|
|
@@ -3258,6 +3290,7 @@ export interface FeedsModerationTemplateConfig {
|
|
|
3258
3290
|
export interface FeedsPreferences {
|
|
3259
3291
|
comment?: 'all' | 'none';
|
|
3260
3292
|
comment_reaction?: 'all' | 'none';
|
|
3293
|
+
comment_reply?: 'all' | 'none';
|
|
3261
3294
|
follow?: 'all' | 'none';
|
|
3262
3295
|
mention?: 'all' | 'none';
|
|
3263
3296
|
reaction?: 'all' | 'none';
|
|
@@ -3337,6 +3370,9 @@ export interface Flag {
|
|
|
3337
3370
|
target_user?: User;
|
|
3338
3371
|
user?: User;
|
|
3339
3372
|
}
|
|
3373
|
+
export interface FlagCountRuleParameters {
|
|
3374
|
+
threshold?: number;
|
|
3375
|
+
}
|
|
3340
3376
|
export interface FlagDetails {
|
|
3341
3377
|
original_text: string;
|
|
3342
3378
|
extra: Record<string, any>;
|
|
@@ -3743,6 +3779,7 @@ export interface GetOrCreateFeedGroupResponse {
|
|
|
3743
3779
|
feed_group: FeedGroupResponse;
|
|
3744
3780
|
}
|
|
3745
3781
|
export interface GetOrCreateFeedRequest {
|
|
3782
|
+
id_around?: string;
|
|
3746
3783
|
limit?: number;
|
|
3747
3784
|
next?: string;
|
|
3748
3785
|
prev?: string;
|
|
@@ -4783,6 +4820,12 @@ export interface NetworkMetricsReportResponse {
|
|
|
4783
4820
|
export interface NoiseCancellationSettings {
|
|
4784
4821
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4785
4822
|
}
|
|
4823
|
+
export interface NotificationComment {
|
|
4824
|
+
comment: string;
|
|
4825
|
+
id: string;
|
|
4826
|
+
user_id: string;
|
|
4827
|
+
attachments?: Attachment[];
|
|
4828
|
+
}
|
|
4786
4829
|
export interface NotificationConfig {
|
|
4787
4830
|
deduplication_window?: string;
|
|
4788
4831
|
track_read?: boolean;
|
|
@@ -4846,10 +4889,12 @@ export interface NotificationTarget {
|
|
|
4846
4889
|
type?: string;
|
|
4847
4890
|
user_id?: string;
|
|
4848
4891
|
attachments?: Attachment[];
|
|
4892
|
+
comment?: NotificationComment;
|
|
4849
4893
|
}
|
|
4850
4894
|
export interface NotificationTrigger {
|
|
4851
4895
|
text: string;
|
|
4852
4896
|
type: string;
|
|
4897
|
+
comment?: NotificationComment;
|
|
4853
4898
|
}
|
|
4854
4899
|
export interface OCRRule {
|
|
4855
4900
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
@@ -6291,12 +6336,14 @@ export interface RuleBuilderCondition {
|
|
|
6291
6336
|
confidence?: number;
|
|
6292
6337
|
type?: string;
|
|
6293
6338
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
6339
|
+
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
6294
6340
|
image_content_params?: ImageContentParameters;
|
|
6295
6341
|
image_rule_params?: ImageRuleParameters;
|
|
6296
6342
|
text_content_params?: TextContentParameters;
|
|
6297
6343
|
text_rule_params?: TextRuleParameters;
|
|
6298
6344
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
6299
6345
|
user_custom_property_params?: UserCustomPropertyParameters;
|
|
6346
|
+
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
6300
6347
|
user_rule_params?: UserRuleParameters;
|
|
6301
6348
|
video_content_params?: VideoContentParameters;
|
|
6302
6349
|
video_rule_params?: VideoRuleParameters;
|
|
@@ -8237,6 +8284,10 @@ export type WebhookEvent = ({
|
|
|
8237
8284
|
} & ChannelUpdatedEvent) | ({
|
|
8238
8285
|
type: 'channel.visible';
|
|
8239
8286
|
} & ChannelVisibleEvent) | ({
|
|
8287
|
+
type: 'channel_batch_update.completed';
|
|
8288
|
+
} & ChannelBatchUpdatedCompletedEvent) | ({
|
|
8289
|
+
type: 'channel_batch_update.started';
|
|
8290
|
+
} & ChannelBatchUpdatedStartedEvent) | ({
|
|
8240
8291
|
type: 'custom';
|
|
8241
8292
|
} & CustomVideoEvent) | ({
|
|
8242
8293
|
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
|
@@ -773,16 +773,16 @@ export interface AddCommentReactionResponse {
|
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
export interface AddCommentRequest {
|
|
776
|
-
object_id: string;
|
|
777
|
-
|
|
778
|
-
object_type: string;
|
|
779
|
-
|
|
780
776
|
comment?: string;
|
|
781
777
|
|
|
782
778
|
create_notification_activity?: boolean;
|
|
783
779
|
|
|
784
780
|
id?: string;
|
|
785
781
|
|
|
782
|
+
object_id?: string;
|
|
783
|
+
|
|
784
|
+
object_type?: string;
|
|
785
|
+
|
|
786
786
|
parent_id?: string;
|
|
787
787
|
|
|
788
788
|
skip_enrich_url?: boolean;
|
|
@@ -867,7 +867,7 @@ export interface AggregatedActivityResponse {
|
|
|
867
867
|
}
|
|
868
868
|
|
|
869
869
|
export interface AggregationConfig {
|
|
870
|
-
format
|
|
870
|
+
format?: string;
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
export interface AnyEvent {
|
|
@@ -1532,7 +1532,7 @@ export interface BookmarkFolderResponse {
|
|
|
1532
1532
|
|
|
1533
1533
|
updated_at: Date;
|
|
1534
1534
|
|
|
1535
|
-
user:
|
|
1535
|
+
user: UserResponse;
|
|
1536
1536
|
|
|
1537
1537
|
custom?: Record<string, any>;
|
|
1538
1538
|
}
|
|
@@ -1558,7 +1558,7 @@ export interface BookmarkResponse {
|
|
|
1558
1558
|
|
|
1559
1559
|
activity: ActivityResponse;
|
|
1560
1560
|
|
|
1561
|
-
user:
|
|
1561
|
+
user: UserResponse;
|
|
1562
1562
|
|
|
1563
1563
|
custom?: Record<string, any>;
|
|
1564
1564
|
|
|
@@ -1980,6 +1980,8 @@ export interface CallRecording {
|
|
|
1980
1980
|
|
|
1981
1981
|
filename: string;
|
|
1982
1982
|
|
|
1983
|
+
recording_type: string;
|
|
1984
|
+
|
|
1983
1985
|
session_id: string;
|
|
1984
1986
|
|
|
1985
1987
|
start_time: Date;
|
|
@@ -2801,6 +2803,54 @@ export interface Channel {
|
|
|
2801
2803
|
truncated_by?: User;
|
|
2802
2804
|
}
|
|
2803
2805
|
|
|
2806
|
+
export interface ChannelBatchUpdatedCompletedEvent {
|
|
2807
|
+
batch_created_at: Date;
|
|
2808
|
+
|
|
2809
|
+
created_at: Date;
|
|
2810
|
+
|
|
2811
|
+
finished_at: Date;
|
|
2812
|
+
|
|
2813
|
+
operation: string;
|
|
2814
|
+
|
|
2815
|
+
status: string;
|
|
2816
|
+
|
|
2817
|
+
success_channels_count: number;
|
|
2818
|
+
|
|
2819
|
+
task_id: string;
|
|
2820
|
+
|
|
2821
|
+
failed_channels: FailedChannelUpdates[];
|
|
2822
|
+
|
|
2823
|
+
custom: Record<string, any>;
|
|
2824
|
+
|
|
2825
|
+
type: string;
|
|
2826
|
+
|
|
2827
|
+
received_at?: Date;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
export interface ChannelBatchUpdatedStartedEvent {
|
|
2831
|
+
batch_created_at: Date;
|
|
2832
|
+
|
|
2833
|
+
created_at: Date;
|
|
2834
|
+
|
|
2835
|
+
finished_at: Date;
|
|
2836
|
+
|
|
2837
|
+
operation: string;
|
|
2838
|
+
|
|
2839
|
+
status: string;
|
|
2840
|
+
|
|
2841
|
+
success_channels_count: number;
|
|
2842
|
+
|
|
2843
|
+
task_id: string;
|
|
2844
|
+
|
|
2845
|
+
failed_channels: FailedChannelUpdates[];
|
|
2846
|
+
|
|
2847
|
+
custom: Record<string, any>;
|
|
2848
|
+
|
|
2849
|
+
type: string;
|
|
2850
|
+
|
|
2851
|
+
received_at?: Date;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2804
2854
|
export interface ChannelConfig {
|
|
2805
2855
|
automod: 'disabled' | 'simple' | 'AI';
|
|
2806
2856
|
|
|
@@ -4717,16 +4767,14 @@ export interface DeleteFeedResponse {
|
|
|
4717
4767
|
task_id: string;
|
|
4718
4768
|
}
|
|
4719
4769
|
|
|
4720
|
-
export interface
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
deleted_bookmarks: number;
|
|
4724
|
-
|
|
4725
|
-
deleted_comments: number;
|
|
4726
|
-
|
|
4727
|
-
deleted_reactions: number;
|
|
4770
|
+
export interface DeleteFeedUserDataRequest {
|
|
4771
|
+
hard_delete?: boolean;
|
|
4772
|
+
}
|
|
4728
4773
|
|
|
4774
|
+
export interface DeleteFeedUserDataResponse {
|
|
4729
4775
|
duration: string;
|
|
4776
|
+
|
|
4777
|
+
task_id: string;
|
|
4730
4778
|
}
|
|
4731
4779
|
|
|
4732
4780
|
export interface DeleteFeedViewResponse {
|
|
@@ -5162,6 +5210,8 @@ export interface EventHook {
|
|
|
5162
5210
|
|
|
5163
5211
|
product?: string;
|
|
5164
5212
|
|
|
5213
|
+
should_send_custom_events?: boolean;
|
|
5214
|
+
|
|
5165
5215
|
sns_auth_type?: string;
|
|
5166
5216
|
|
|
5167
5217
|
sns_key?: string;
|
|
@@ -5285,6 +5335,12 @@ export interface FCM {
|
|
|
5285
5335
|
data?: Record<string, any>;
|
|
5286
5336
|
}
|
|
5287
5337
|
|
|
5338
|
+
export interface FailedChannelUpdates {
|
|
5339
|
+
reason: string;
|
|
5340
|
+
|
|
5341
|
+
cids: string[];
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5288
5344
|
export interface FeedCreatedEvent {
|
|
5289
5345
|
created_at: Date;
|
|
5290
5346
|
|
|
@@ -5708,6 +5764,8 @@ export interface FeedsPreferences {
|
|
|
5708
5764
|
|
|
5709
5765
|
comment_reaction?: 'all' | 'none';
|
|
5710
5766
|
|
|
5767
|
+
comment_reply?: 'all' | 'none';
|
|
5768
|
+
|
|
5711
5769
|
follow?: 'all' | 'none';
|
|
5712
5770
|
|
|
5713
5771
|
mention?: 'all' | 'none';
|
|
@@ -5845,6 +5903,10 @@ export interface Flag {
|
|
|
5845
5903
|
user?: User;
|
|
5846
5904
|
}
|
|
5847
5905
|
|
|
5906
|
+
export interface FlagCountRuleParameters {
|
|
5907
|
+
threshold?: number;
|
|
5908
|
+
}
|
|
5909
|
+
|
|
5848
5910
|
export interface FlagDetails {
|
|
5849
5911
|
original_text: string;
|
|
5850
5912
|
|
|
@@ -6547,6 +6609,8 @@ export interface GetOrCreateFeedGroupResponse {
|
|
|
6547
6609
|
}
|
|
6548
6610
|
|
|
6549
6611
|
export interface GetOrCreateFeedRequest {
|
|
6612
|
+
id_around?: string;
|
|
6613
|
+
|
|
6550
6614
|
limit?: number;
|
|
6551
6615
|
|
|
6552
6616
|
next?: string;
|
|
@@ -8359,6 +8423,16 @@ export interface NoiseCancellationSettings {
|
|
|
8359
8423
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
8360
8424
|
}
|
|
8361
8425
|
|
|
8426
|
+
export interface NotificationComment {
|
|
8427
|
+
comment: string;
|
|
8428
|
+
|
|
8429
|
+
id: string;
|
|
8430
|
+
|
|
8431
|
+
user_id: string;
|
|
8432
|
+
|
|
8433
|
+
attachments?: Attachment[];
|
|
8434
|
+
}
|
|
8435
|
+
|
|
8362
8436
|
export interface NotificationConfig {
|
|
8363
8437
|
deduplication_window?: string;
|
|
8364
8438
|
|
|
@@ -8471,12 +8545,16 @@ export interface NotificationTarget {
|
|
|
8471
8545
|
user_id?: string;
|
|
8472
8546
|
|
|
8473
8547
|
attachments?: Attachment[];
|
|
8548
|
+
|
|
8549
|
+
comment?: NotificationComment;
|
|
8474
8550
|
}
|
|
8475
8551
|
|
|
8476
8552
|
export interface NotificationTrigger {
|
|
8477
8553
|
text: string;
|
|
8478
8554
|
|
|
8479
8555
|
type: string;
|
|
8556
|
+
|
|
8557
|
+
comment?: NotificationComment;
|
|
8480
8558
|
}
|
|
8481
8559
|
|
|
8482
8560
|
export interface OCRRule {
|
|
@@ -10998,6 +11076,8 @@ export interface RuleBuilderCondition {
|
|
|
10998
11076
|
|
|
10999
11077
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
11000
11078
|
|
|
11079
|
+
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
11080
|
+
|
|
11001
11081
|
image_content_params?: ImageContentParameters;
|
|
11002
11082
|
|
|
11003
11083
|
image_rule_params?: ImageRuleParameters;
|
|
@@ -11010,6 +11090,8 @@ export interface RuleBuilderCondition {
|
|
|
11010
11090
|
|
|
11011
11091
|
user_custom_property_params?: UserCustomPropertyParameters;
|
|
11012
11092
|
|
|
11093
|
+
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
11094
|
+
|
|
11013
11095
|
user_rule_params?: UserRuleParameters;
|
|
11014
11096
|
|
|
11015
11097
|
video_content_params?: VideoContentParameters;
|
|
@@ -14424,6 +14506,10 @@ export type WebhookEvent =
|
|
|
14424
14506
|
| ({ type: 'channel.unmuted' } & ChannelUnmutedEvent)
|
|
14425
14507
|
| ({ type: 'channel.updated' } & ChannelUpdatedEvent)
|
|
14426
14508
|
| ({ type: 'channel.visible' } & ChannelVisibleEvent)
|
|
14509
|
+
| ({
|
|
14510
|
+
type: 'channel_batch_update.completed';
|
|
14511
|
+
} & ChannelBatchUpdatedCompletedEvent)
|
|
14512
|
+
| ({ type: 'channel_batch_update.started' } & ChannelBatchUpdatedStartedEvent)
|
|
14427
14513
|
| ({ type: 'custom' } & CustomVideoEvent)
|
|
14428
14514
|
| ({ type: 'export.bulk_image_moderation.error' } & AsyncExportErrorEvent)
|
|
14429
14515
|
| ({
|
|
@@ -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
|
};
|