diff --git a/CHANGELOG.md b/CHANGELOG.md index bba9524..17c5dcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,176 +2,153 @@ ## [0.7.10](https://github.com/GetStream/stream-node/compare/v0.7.9...v0.7.10) (2025-10-13) - ### Features -* change cutoff_time in feed group/view request to be string, and on … ([#184](https://github.com/GetStream/stream-node/issues/184)) ([75f978a](https://github.com/GetStream/stream-node/commit/75f978a512f4e3f4794cd54e4c047e33fd83b847)) +- change cutoff_time in feed group/view request to be string, and on … ([#184](https://github.com/GetStream/stream-node/issues/184)) ([75f978a](https://github.com/GetStream/stream-node/commit/75f978a512f4e3f4794cd54e4c047e33fd83b847)) ## [0.7.9](https://github.com/GetStream/stream-node/compare/v0.7.8...v0.7.9) (2025-10-10) - ### Features -* [FEEDS-831] add support for soft deleted feed groups ([#182](https://github.com/GetStream/stream-node/issues/182)) ([006f170](https://github.com/GetStream/stream-node/commit/006f170d9c032c81139db2b03a5b8cb11d059572)) +- [FEEDS-831] add support for soft deleted feed groups ([#182](https://github.com/GetStream/stream-node/issues/182)) ([006f170](https://github.com/GetStream/stream-node/commit/006f170d9c032c81139db2b03a5b8cb11d059572)) ## [0.7.8](https://github.com/GetStream/stream-node/compare/v0.7.7...v0.7.8) (2025-10-10) - ### Features -* Added individual activities array to stories feed updated event ([#180](https://github.com/GetStream/stream-node/issues/180)) ([db36a8e](https://github.com/GetStream/stream-node/commit/db36a8e9298da82d7e18a577eb79d7a00d62a803)) +- Added individual activities array to stories feed updated event ([#180](https://github.com/GetStream/stream-node/issues/180)) ([db36a8e](https://github.com/GetStream/stream-node/commit/db36a8e9298da82d7e18a577eb79d7a00d62a803)) ## [0.7.7](https://github.com/GetStream/stream-node/compare/v0.7.6...v0.7.7) (2025-10-09) - ### Features -* [FEEDS-795] add updateFeedVisibility ([#178](https://github.com/GetStream/stream-node/issues/178)) ([735a934](https://github.com/GetStream/stream-node/commit/735a934701df4e4c4e5e05c1b3ab7786bfef8e7f)) +- [FEEDS-795] add updateFeedVisibility ([#178](https://github.com/GetStream/stream-node/issues/178)) ([735a934](https://github.com/GetStream/stream-node/commit/735a934701df4e4c4e5e05c1b3ab7786bfef8e7f)) ## [0.7.6](https://github.com/GetStream/stream-node/compare/v0.7.5...v0.7.6) (2025-10-02) - ### Bug Fixes -* rename addReaction method to addActivityReaction ([#176](https://github.com/GetStream/stream-node/issues/176)) ([69b9233](https://github.com/GetStream/stream-node/commit/69b9233cd0bcfa1351bfad0b13134e2662cc2585)) +- rename addReaction method to addActivityReaction ([#176](https://github.com/GetStream/stream-node/issues/176)) ([69b9233](https://github.com/GetStream/stream-node/commit/69b9233cd0bcfa1351bfad0b13134e2662cc2585)) ## [0.7.5](https://github.com/GetStream/stream-node/compare/v0.7.4...v0.7.5) (2025-10-02) - ### Bug Fixes -* stories config ([#174](https://github.com/GetStream/stream-node/issues/174)) ([232d044](https://github.com/GetStream/stream-node/commit/232d0446cddd6cdc5f75347f34dd5555ff355887)) +- stories config ([#174](https://github.com/GetStream/stream-node/issues/174)) ([232d044](https://github.com/GetStream/stream-node/commit/232d0446cddd6cdc5f75347f34dd5555ff355887)) ## [0.7.4](https://github.com/GetStream/stream-node/compare/v0.7.3...v0.7.4) (2025-10-02) - ### Features -* stories feed implementation ([#170](https://github.com/GetStream/stream-node/issues/170)) ([ca75fb5](https://github.com/GetStream/stream-node/commit/ca75fb5706fe1ed49df6f21c921e67059612579d)) - +- stories feed implementation ([#170](https://github.com/GetStream/stream-node/issues/170)) ([ca75fb5](https://github.com/GetStream/stream-node/commit/ca75fb5706fe1ed49df6f21c921e67059612579d)) ### Bug Fixes -* removed expiration from stories config ([#172](https://github.com/GetStream/stream-node/issues/172)) ([a30b855](https://github.com/GetStream/stream-node/commit/a30b855f37335396fd24ff53c99225b955abbc73)) +- removed expiration from stories config ([#172](https://github.com/GetStream/stream-node/issues/172)) ([a30b855](https://github.com/GetStream/stream-node/commit/a30b855f37335396fd24ff53c99225b955abbc73)) ## [0.7.3](https://github.com/GetStream/stream-node/compare/v0.7.2...v0.7.3) (2025-09-30) - ### Features -* hifi audio support ([#167](https://github.com/GetStream/stream-node/issues/167)) ([e48f890](https://github.com/GetStream/stream-node/commit/e48f890aaeabeb601a32a80739897b1911e97ec5)) +- hifi audio support ([#167](https://github.com/GetStream/stream-node/issues/167)) ([e48f890](https://github.com/GetStream/stream-node/commit/e48f890aaeabeb601a32a80739897b1911e97ec5)) ## [0.7.2](https://github.com/GetStream/stream-node/compare/v0.7.1...v0.7.2) (2025-09-30) - ### Features -* add createSRTCredetials method to StreamCall ([#165](https://github.com/GetStream/stream-node/issues/165)) ([2a9d950](https://github.com/GetStream/stream-node/commit/2a9d950a2ef9b66f6fc7f0dd5e1a296f49328f5f)) +- add createSRTCredetials method to StreamCall ([#165](https://github.com/GetStream/stream-node/issues/165)) ([2a9d950](https://github.com/GetStream/stream-node/commit/2a9d950a2ef9b66f6fc7f0dd5e1a296f49328f5f)) ## [0.7.1](https://github.com/GetStream/stream-node/compare/v0.7.0...v0.7.1) (2025-09-30) - ### Features -* change cutoff_time in feed group/view request to be string, and on response to be time or omitted ([#161](https://github.com/GetStream/stream-node/issues/161)) ([c449e35](https://github.com/GetStream/stream-node/commit/c449e356d7d6ec0ff88762ce31d36dcffc9075f7)) +- change cutoff_time in feed group/view request to be string, and on response to be time or omitted ([#161](https://github.com/GetStream/stream-node/issues/161)) ([c449e35](https://github.com/GetStream/stream-node/commit/c449e356d7d6ec0ff88762ce31d36dcffc9075f7)) ## [0.7.0](https://github.com/GetStream/stream-node/compare/v0.6.7...v0.7.0) (2025-09-24) - ### ⚠ BREAKING CHANGES -* [FEEDS-782] Move own_ to FeedResponse ([#159](https://github.com/GetStream/stream-node/issues/159)) +- [FEEDS-782] Move own\_ to FeedResponse ([#159](https://github.com/GetStream/stream-node/issues/159)) ### Features -* [FEEDS-782] Move own_ to FeedResponse ([#159](https://github.com/GetStream/stream-node/issues/159)) ([04129f9](https://github.com/GetStream/stream-node/commit/04129f9bc399b2824ed9c37271ac18822c98f999)) +- [FEEDS-782] Move own\_ to FeedResponse ([#159](https://github.com/GetStream/stream-node/issues/159)) ([04129f9](https://github.com/GetStream/stream-node/commit/04129f9bc399b2824ed9c37271ac18822c98f999)) ## [0.6.7](https://github.com/GetStream/stream-node/compare/v0.6.6...v0.6.7) (2025-09-16) - ### Features -* [FEEDS-767] add feed_visibility methods ([#154](https://github.com/GetStream/stream-node/issues/154)) ([75586d3](https://github.com/GetStream/stream-node/commit/75586d3fea121a74018308456e0c9e45a09ccaf7)) -* update to version 193.9.1 ([#151](https://github.com/GetStream/stream-node/issues/151)) ([cde1438](https://github.com/GetStream/stream-node/commit/cde14380153430ed060a49758d11eb9f7eb4d046)) +- [FEEDS-767] add feed_visibility methods ([#154](https://github.com/GetStream/stream-node/issues/154)) ([75586d3](https://github.com/GetStream/stream-node/commit/75586d3fea121a74018308456e0c9e45a09ccaf7)) +- update to version 193.9.1 ([#151](https://github.com/GetStream/stream-node/issues/151)) ([cde1438](https://github.com/GetStream/stream-node/commit/cde14380153430ed060a49758d11eb9f7eb4d046)) ## [0.6.6](https://github.com/GetStream/stream-node/compare/v0.6.5...v0.6.6) (2025-09-10) - ### Features -* Added user_count_truncated ([#150](https://github.com/GetStream/stream-node/issues/150)) ([97a0c03](https://github.com/GetStream/stream-node/commit/97a0c038d29873aa889a30866c665f2bf4ae3898)) +- Added user_count_truncated ([#150](https://github.com/GetStream/stream-node/issues/150)) ([97a0c03](https://github.com/GetStream/stream-node/commit/97a0c038d29873aa889a30866c665f2bf4ae3898)) ## [0.6.5](https://github.com/GetStream/stream-node/compare/v0.6.4...v0.6.5) (2025-09-04) - ### Bug Fixes -* Add task id in delete feed response ([#148](https://github.com/GetStream/stream-node/issues/148)) ([aa1c5eb](https://github.com/GetStream/stream-node/commit/aa1c5eb9c3dbd7f0e5f2cbcbba16f90a42536c2e)) +- Add task id in delete feed response ([#148](https://github.com/GetStream/stream-node/issues/148)) ([aa1c5eb](https://github.com/GetStream/stream-node/commit/aa1c5eb9c3dbd7f0e5f2cbcbba16f90a42536c2e)) ## [0.6.4](https://github.com/GetStream/stream-node/compare/v0.6.3...v0.6.4) (2025-09-03) - ### Features -* add DeleteFeedTaskID in DeleteFeedResponse ([#146](https://github.com/GetStream/stream-node/issues/146)) ([ec9464f](https://github.com/GetStream/stream-node/commit/ec9464fa729acde5042d833e364246083d3f4eb2)) +- add DeleteFeedTaskID in DeleteFeedResponse ([#146](https://github.com/GetStream/stream-node/issues/146)) ([ec9464f](https://github.com/GetStream/stream-node/commit/ec9464fa729acde5042d833e364246083d3f4eb2)) ## [0.6.3](https://github.com/GetStream/stream-node/compare/v0.6.2...v0.6.3) (2025-09-01) - ### Features -* [CHA-1153] adding channel message count ([#136](https://github.com/GetStream/stream-node/issues/136)) ([446d9e5](https://github.com/GetStream/stream-node/commit/446d9e5e08dea93b2a762417de048d6f799f2d21)) -* update to api spec v191.7.0 ([#145](https://github.com/GetStream/stream-node/issues/145)) ([38c971f](https://github.com/GetStream/stream-node/commit/38c971fe4c4388c9b855d2d5bb1b6ebe6003aaaf)) +- [CHA-1153] adding channel message count ([#136](https://github.com/GetStream/stream-node/issues/136)) ([446d9e5](https://github.com/GetStream/stream-node/commit/446d9e5e08dea93b2a762417de048d6f799f2d21)) +- update to api spec v191.7.0 ([#145](https://github.com/GetStream/stream-node/issues/145)) ([38c971f](https://github.com/GetStream/stream-node/commit/38c971fe4c4388c9b855d2d5bb1b6ebe6003aaaf)) ## [0.6.2](https://github.com/GetStream/stream-node/compare/v0.6.1...v0.6.2) (2025-08-21) - ### Features -* Kick user & upgrade to the latest OpenAPI ([#140](https://github.com/GetStream/stream-node/issues/140)) ([9dfe81f](https://github.com/GetStream/stream-node/commit/9dfe81f9c733cb66346c97053fe6e86ab90e0c05)) +- Kick user & upgrade to the latest OpenAPI ([#140](https://github.com/GetStream/stream-node/issues/140)) ([9dfe81f](https://github.com/GetStream/stream-node/commit/9dfe81f9c733cb66346c97053fe6e86ab90e0c05)) ## [0.6.1](https://github.com/GetStream/stream-node/compare/v0.6.0...v0.6.1) (2025-08-19) - ### Features -* add membership level in FeedMemberResponse ([#137](https://github.com/GetStream/stream-node/issues/137)) ([db7aa1e](https://github.com/GetStream/stream-node/commit/db7aa1e9fe06108de73f12db969360541096d879)) - +- add membership level in FeedMemberResponse ([#137](https://github.com/GetStream/stream-node/issues/137)) ([db7aa1e](https://github.com/GetStream/stream-node/commit/db7aa1e9fe06108de73f12db969360541096d879)) ### Bug Fixes -* extend openai-realtime-api version range ([#138](https://github.com/GetStream/stream-node/issues/138)) ([bc65845](https://github.com/GetStream/stream-node/commit/bc6584524386f4a35ec39379548dd99ae1cbcd35)) +- extend openai-realtime-api version range ([#138](https://github.com/GetStream/stream-node/issues/138)) ([bc65845](https://github.com/GetStream/stream-node/commit/bc6584524386f4a35ec39379548dd99ae1cbcd35)) ## [0.6.0](https://github.com/GetStream/stream-node/compare/v0.5.1...v0.6.0) (2025-08-18) - ### ⚠ BREAKING CHANGES -* API naming review ([#130](https://github.com/GetStream/stream-node/issues/130)) +- API naming review ([#130](https://github.com/GetStream/stream-node/issues/130)) ### Features -* add method and request/response for new endpoint ([#126](https://github.com/GetStream/stream-node/issues/126)) ([40a65d2](https://github.com/GetStream/stream-node/commit/40a65d2b349fb2d1b38d0ae01a7281ec7b626d1a)) -* API naming review ([#130](https://github.com/GetStream/stream-node/issues/130)) ([d15d50f](https://github.com/GetStream/stream-node/commit/d15d50f0114a087c33790c38e49b7edff853f3ac)) -* new endpoint GetOrCreateFeedGroup ([#127](https://github.com/GetStream/stream-node/issues/127)) ([7c58c64](https://github.com/GetStream/stream-node/commit/7c58c648ce8d33eb3446e49ceb7f23ae3f32c824)) +- add method and request/response for new endpoint ([#126](https://github.com/GetStream/stream-node/issues/126)) ([40a65d2](https://github.com/GetStream/stream-node/commit/40a65d2b349fb2d1b38d0ae01a7281ec7b626d1a)) +- API naming review ([#130](https://github.com/GetStream/stream-node/issues/130)) ([d15d50f](https://github.com/GetStream/stream-node/commit/d15d50f0114a087c33790c38e49b7edff853f3ac)) +- new endpoint GetOrCreateFeedGroup ([#127](https://github.com/GetStream/stream-node/issues/127)) ([7c58c64](https://github.com/GetStream/stream-node/commit/7c58c648ce8d33eb3446e49ceb7f23ae3f32c824)) ## [0.5.1](https://github.com/GetStream/stream-node/compare/v0.5.0...v0.5.1) (2025-07-25) - ### Features -* No timeout for fileuploads ([#124](https://github.com/GetStream/stream-node/issues/124)) ([6bad4f0](https://github.com/GetStream/stream-node/commit/6bad4f084b459804899ffb6adbf740302a33d607)) +- No timeout for fileuploads ([#124](https://github.com/GetStream/stream-node/issues/124)) ([6bad4f0](https://github.com/GetStream/stream-node/commit/6bad4f084b459804899ffb6adbf740302a33d607)) ## [0.5.0](https://github.com/GetStream/stream-node/compare/v0.4.26...v0.5.0) (2025-07-17) - ### ⚠ BREAKING CHANGES -* add support for feeds v3 API ([#118](https://github.com/GetStream/stream-node/issues/118)) +- add support for feeds v3 API ([#118](https://github.com/GetStream/stream-node/issues/118)) ### Features -* add support for feeds v3 API ([#118](https://github.com/GetStream/stream-node/issues/118)) ([aa43a6b](https://github.com/GetStream/stream-node/commit/aa43a6b2666c81bff23ee0113c91f61568e5ccc2)) +- add support for feeds v3 API ([#118](https://github.com/GetStream/stream-node/issues/118)) ([aa43a6b](https://github.com/GetStream/stream-node/commit/aa43a6b2666c81bff23ee0113c91f61568e5ccc2)) ## [0.4.26](https://github.com/GetStream/stream-node/compare/v0.4.25...v0.4.26) (2025-07-16) diff --git a/src/gen/chat/ChannelApi.ts b/src/gen/chat/ChannelApi.ts index c3ad843..e773722 100644 --- a/src/gen/chat/ChannelApi.ts +++ b/src/gen/chat/ChannelApi.ts @@ -4,14 +4,10 @@ import { ChannelStateResponse, DeleteChannelResponse, EventResponse, - FileUploadRequest, - FileUploadResponse, GetDraftResponse, GetManyMessagesResponse, HideChannelRequest, HideChannelResponse, - ImageUploadRequest, - ImageUploadResponse, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, @@ -29,6 +25,10 @@ import { UpdateChannelResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, + UploadChannelFileRequest, + UploadChannelFileResponse, + UploadChannelRequest, + UploadChannelResponse, } from '../models'; export class ChannelApi { @@ -126,30 +126,32 @@ export class ChannelApi { return this.chatApi.sendEvent({ id: this.id, type: this.type, ...request }); } - deleteFile(request?: { url?: string }): Promise> { + deleteChannelFile(request?: { + url?: string; + }): Promise> { if (!this.id) { throw new Error( `Channel isn't yet created, call getOrCreateDistinctChannel() before this operation`, ); } - return this.chatApi.deleteFile({ + return this.chatApi.deleteChannelFile({ id: this.id, type: this.type, ...request, }); } - uploadFile( - request?: FileUploadRequest, - ): Promise> { + uploadChannelFile( + request?: UploadChannelFileRequest, + ): Promise> { if (!this.id) { throw new Error( `Channel isn't yet created, call getOrCreateDistinctChannel() before this operation`, ); } - return this.chatApi.uploadFile({ + return this.chatApi.uploadChannelFile({ id: this.id, type: this.type, ...request, @@ -172,30 +174,32 @@ export class ChannelApi { }); } - deleteImage(request?: { url?: string }): Promise> { + deleteChannelImage(request?: { + url?: string; + }): Promise> { if (!this.id) { throw new Error( `Channel isn't yet created, call getOrCreateDistinctChannel() before this operation`, ); } - return this.chatApi.deleteImage({ + return this.chatApi.deleteChannelImage({ id: this.id, type: this.type, ...request, }); } - uploadImage( - request?: ImageUploadRequest, - ): Promise> { + uploadChannelImage( + request?: UploadChannelRequest, + ): Promise> { if (!this.id) { throw new Error( `Channel isn't yet created, call getOrCreateDistinctChannel() before this operation`, ); } - return this.chatApi.uploadImage({ + return this.chatApi.uploadChannelImage({ id: this.id, type: this.type, ...request, diff --git a/src/gen/chat/ChatApi.ts b/src/gen/chat/ChatApi.ts index 738ae9e..580f2af 100644 --- a/src/gen/chat/ChatApi.ts +++ b/src/gen/chat/ChatApi.ts @@ -21,8 +21,6 @@ import { EventResponse, ExportChannelsRequest, ExportChannelsResponse, - FileUploadRequest, - FileUploadResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, @@ -35,8 +33,6 @@ import { GetThreadResponse, HideChannelRequest, HideChannelResponse, - ImageUploadRequest, - ImageUploadResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, @@ -113,6 +109,10 @@ import { UpdateReminderResponse, UpdateThreadPartialRequest, UpdateThreadPartialResponse, + UploadChannelFileRequest, + UploadChannelFileResponse, + UploadChannelRequest, + UploadChannelResponse, WrappedUnreadCountsResponse, } from '../models'; import { decoders } from '../model-decoders/decoders'; @@ -511,7 +511,7 @@ export class ChatApi { return { ...response.body, metadata: response.metadata }; } - async deleteFile(request: { + async deleteChannelFile(request: { type: string; id: string; url?: string; @@ -536,9 +536,9 @@ export class ChatApi { return { ...response.body, metadata: response.metadata }; } - async uploadFile( - request: FileUploadRequest & { type: string; id: string }, - ): Promise> { + async uploadChannelFile( + request: UploadChannelFileRequest & { type: string; id: string }, + ): Promise> { const pathParams = { type: request?.type, id: request?.id, @@ -549,7 +549,7 @@ export class ChatApi { }; const response = await this.apiClient.sendRequest< - StreamResponse + StreamResponse >( 'POST', '/api/v2/chat/channels/{type}/{id}/file', @@ -559,7 +559,7 @@ export class ChatApi { 'multipart/form-data', ); - decoders.FileUploadResponse?.(response.body); + decoders.UploadChannelFileResponse?.(response.body); return { ...response.body, metadata: response.metadata }; } @@ -593,7 +593,7 @@ export class ChatApi { return { ...response.body, metadata: response.metadata }; } - async deleteImage(request: { + async deleteChannelImage(request: { type: string; id: string; url?: string; @@ -618,9 +618,9 @@ export class ChatApi { return { ...response.body, metadata: response.metadata }; } - async uploadImage( - request: ImageUploadRequest & { type: string; id: string }, - ): Promise> { + async uploadChannelImage( + request: UploadChannelRequest & { type: string; id: string }, + ): Promise> { const pathParams = { type: request?.type, id: request?.id, @@ -632,7 +632,7 @@ export class ChatApi { }; const response = await this.apiClient.sendRequest< - StreamResponse + StreamResponse >( 'POST', '/api/v2/chat/channels/{type}/{id}/image', @@ -642,7 +642,7 @@ export class ChatApi { 'multipart/form-data', ); - decoders.ImageUploadResponse?.(response.body); + decoders.UploadChannelResponse?.(response.body); return { ...response.body, metadata: response.metadata }; } @@ -915,6 +915,7 @@ export class ChatApi { blocklist: request?.blocklist, blocklist_behavior: request?.blocklist_behavior, connect_events: request?.connect_events, + count_messages: request?.count_messages, custom_events: request?.custom_events, mark_messages_pending: request?.mark_messages_pending, message_retention: request?.message_retention, @@ -1734,32 +1735,20 @@ export class ChatApi { async getReplies(request: { parent_id: string; limit?: number; - offset?: number; id_gte?: string; id_gt?: string; id_lte?: string; id_lt?: string; - created_at_after_or_equal?: Date; - created_at_after?: Date; - created_at_before_or_equal?: Date; - created_at_before?: Date; id_around?: string; - created_at_around?: Date; sort?: SortParamRequest[]; }): Promise> { const queryParams = { limit: request?.limit, - offset: request?.offset, id_gte: request?.id_gte, id_gt: request?.id_gt, id_lte: request?.id_lte, id_lt: request?.id_lt, - created_at_after_or_equal: request?.created_at_after_or_equal, - created_at_after: request?.created_at_after, - created_at_before_or_equal: request?.created_at_before_or_equal, - created_at_before: request?.created_at_before, id_around: request?.id_around, - created_at_around: request?.created_at_around, sort: request?.sort, }; const pathParams = { diff --git a/src/gen/common/CommonApi.ts b/src/gen/common/CommonApi.ts index 075b207..1313d29 100644 --- a/src/gen/common/CommonApi.ts +++ b/src/gen/common/CommonApi.ts @@ -197,6 +197,8 @@ export class CommonApi { const body = { name: request?.name, words: request?.words, + is_leet_check_enabled: request?.is_leet_check_enabled, + is_plural_check_enabled: request?.is_plural_check_enabled, team: request?.team, type: request?.type, }; @@ -267,6 +269,8 @@ export class CommonApi { name: request?.name, }; const body = { + is_leet_check_enabled: request?.is_leet_check_enabled, + is_plural_check_enabled: request?.is_plural_check_enabled, team: request?.team, words: request?.words, }; diff --git a/src/gen/feeds/FeedsApi.ts b/src/gen/feeds/FeedsApi.ts index 1104176..487d425 100644 --- a/src/gen/feeds/FeedsApi.ts +++ b/src/gen/feeds/FeedsApi.ts @@ -61,6 +61,8 @@ import { ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, + OwnCapabilitiesBatchRequest, + OwnCapabilitiesBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, @@ -80,8 +82,6 @@ import { QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, - QueryFeedsUsageStatsRequest, - QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, @@ -1019,6 +1019,7 @@ export class FeedsApi { const queryParams = { include_soft_deleted: request?.include_soft_deleted, }; + const response = await this.apiClient.sendRequest< StreamResponse >('GET', '/api/v2/feeds/feed_groups', undefined, queryParams); @@ -1720,6 +1721,31 @@ export class FeedsApi { return { ...response.body, metadata: response.metadata }; } + async ownCapabilitiesBatch( + request: OwnCapabilitiesBatchRequest, + ): Promise> { + const body = { + feeds: request?.feeds, + user_id: request?.user_id, + user: request?.user, + }; + + const response = await this.apiClient.sendRequest< + StreamResponse + >( + 'POST', + '/api/v2/feeds/feeds/own_capabilities/batch', + undefined, + undefined, + body, + 'application/json', + ); + + decoders.OwnCapabilitiesBatchResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + protected async _queryFeeds( request?: QueryFeedsRequest, ): Promise> { @@ -2031,30 +2057,6 @@ export class FeedsApi { return { ...response.body, metadata: response.metadata }; } - async queryFeedsUsageStats( - request?: QueryFeedsUsageStatsRequest, - ): Promise> { - const body = { - from: request?.from, - to: request?.to, - }; - - const response = await this.apiClient.sendRequest< - StreamResponse - >( - 'POST', - '/api/v2/feeds/stats/usage', - undefined, - undefined, - body, - 'application/json', - ); - - decoders.QueryFeedsUsageStatsResponse?.(response.body); - - return { ...response.body, metadata: response.metadata }; - } - async unfollowBatch( request: UnfollowBatchRequest, ): Promise> { diff --git a/src/gen/model-decoders/decoders.ts b/src/gen/model-decoders/decoders.ts index e18a80a..fdcf3c3 100644 --- a/src/gen/model-decoders/decoders.ts +++ b/src/gen/model-decoders/decoders.ts @@ -789,6 +789,13 @@ decoders.CallParticipantResponse = (input?: Record) => { return decode(typeMappings, input); }; +decoders.CallParticipantTimeline = (input?: Record) => { + const typeMappings: TypeMapping = { + timestamp: { type: 'DatetimeType', isSingle: true }, + }; + return decode(typeMappings, input); +}; + decoders.CallReactionEvent = (input?: Record) => { const typeMappings: TypeMapping = { created_at: { type: 'DatetimeType', isSingle: true }, @@ -985,6 +992,24 @@ decoders.CallStateResponseFields = (input?: Record) => { return decode(typeMappings, input); }; +decoders.CallStatsParticipant = (input?: Record) => { + const typeMappings: TypeMapping = { + sessions: { type: 'CallStatsParticipantSession', isSingle: false }, + + latest_activity_at: { type: 'DatetimeType', isSingle: true }, + }; + return decode(typeMappings, input); +}; + +decoders.CallStatsParticipantSession = (input?: Record) => { + const typeMappings: TypeMapping = { + ended_at: { type: 'DatetimeType', isSingle: true }, + + started_at: { type: 'DatetimeType', isSingle: true }, + }; + return decode(typeMappings, input); +}; + decoders.CallStatsReportReadyEvent = (input?: Record) => { const typeMappings: TypeMapping = { created_at: { type: 'DatetimeType', isSingle: true }, @@ -1903,6 +1928,8 @@ decoders.FeedGroupResponse = (input?: Record) => { updated_at: { type: 'DatetimeType', isSingle: true }, + deleted_at: { type: 'DatetimeType', isSingle: true }, + activity_selectors: { type: 'ActivitySelectorConfigResponse', isSingle: false, @@ -2884,9 +2911,11 @@ decoders.ModerationCustomActionEvent = (input?: Record) => { const typeMappings: TypeMapping = { created_at: { type: 'DatetimeType', isSingle: true }, - message: { type: 'Message', isSingle: true }, + review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true }, - user: { type: 'User', isSingle: true }, + received_at: { type: 'DatetimeType', isSingle: true }, + + message: { type: 'MessageResponse', isSingle: true }, }; return decode(typeMappings, input); }; @@ -2917,9 +2946,11 @@ decoders.ModerationMarkReviewedEvent = (input?: Record) => { const typeMappings: TypeMapping = { created_at: { type: 'DatetimeType', isSingle: true }, - message: { type: 'Message', isSingle: true }, + item: { type: 'ReviewQueueItemResponse', isSingle: true }, - user: { type: 'User', isSingle: true }, + received_at: { type: 'DatetimeType', isSingle: true }, + + message: { type: 'MessageResponse', isSingle: true }, }; return decode(typeMappings, input); }; @@ -3057,6 +3088,15 @@ decoders.ParticipantCountOverTimeResponse = (input?: Record) => { return decode(typeMappings, input); }; +decoders.ParticipantSeriesTimeframe = (input?: Record) => { + const typeMappings: TypeMapping = { + since: { type: 'DatetimeType', isSingle: true }, + + until: { type: 'DatetimeType', isSingle: true }, + }; + return decode(typeMappings, input); +}; + decoders.PendingMessageEvent = (input?: Record) => { const typeMappings: TypeMapping = { created_at: { type: 'DatetimeType', isSingle: true }, @@ -3582,6 +3622,8 @@ decoders.ReadStateResponse = (input?: Record) => { last_read: { type: 'DatetimeType', isSingle: true }, user: { type: 'UserResponse', isSingle: true }, + + last_delivered_at: { type: 'DatetimeType', isSingle: true }, }; return decode(typeMappings, input); }; diff --git a/src/gen/models/index.ts b/src/gen/models/index.ts index 1244f20..813955b 100644 --- a/src/gen/models/index.ts +++ b/src/gen/models/index.ts @@ -156,30 +156,6 @@ export interface Action { value?: string; } -export interface ActionLog { - created_at: Date; - - id: string; - - reason: string; - - reporter_type: string; - - review_queue_item_id: string; - - target_user_id: string; - - type: string; - - custom: Record; - - review_queue_item?: ReviewQueueItem; - - target_user?: User; - - user?: User; -} - export interface ActionLogResponse { created_at: Date; @@ -193,6 +169,8 @@ export interface ActionLogResponse { user_id: string; + ai_providers: string[]; + custom: Record; review_queue_item?: ReviewQueueItemResponse; @@ -601,6 +579,8 @@ export interface ActivityResponse { export interface ActivitySelectorConfig { cutoff_time?: Date; + cutoff_time?: string; + min_popularity?: number; type?: string; @@ -743,12 +723,12 @@ export interface AddCommentReactionResponse { } export interface AddCommentRequest { - comment: string; - object_id: string; object_type: string; + comment?: string; + create_notification_activity?: boolean; parent_id?: string; @@ -827,9 +807,9 @@ export interface AggregatedActivityResponse { user_count_truncated: boolean; - is_watched?: boolean; - activities: ActivityResponse[]; + + is_watched?: boolean; } export interface AggregationConfig { @@ -843,6 +823,8 @@ export interface AnyEvent { } export interface AppResponseFields { + allow_multi_user_devices: boolean; + async_url_enrich_enabled: boolean; auto_translation_enabled: boolean; @@ -861,8 +843,12 @@ export interface AppResponseFields { guest_user_creation_disabled: boolean; + id: number; + image_moderation_enabled: boolean; + max_aggregated_activities_length: number; + moderation_bulk_submit_action_enabled: boolean; moderation_enabled: boolean; @@ -881,6 +867,8 @@ export interface AppResponseFields { permission_version: string; + placement: string; + reminders_interval: number; sns_key: string; @@ -1093,6 +1081,8 @@ export interface AudioSettings { default_device: 'speaker' | 'earpiece'; + hifi_audio_enabled: boolean; + mic_default_on: boolean; opus_dtx_enabled: boolean; @@ -1101,8 +1091,6 @@ export interface AudioSettings { speaker_default_on: boolean; - hifi_audio_enabled?: boolean; - noise_cancellation?: NoiseCancellationSettings; } @@ -1129,6 +1117,8 @@ export interface AudioSettingsResponse { default_device: 'speaker' | 'earpiece'; + hifi_audio_enabled: boolean; + mic_default_on: boolean; opus_dtx_enabled: boolean; @@ -1137,8 +1127,6 @@ export interface AudioSettingsResponse { speaker_default_on: boolean; - hifi_audio_enabled?: boolean; - noise_cancellation?: NoiseCancellationSettings; } @@ -1321,6 +1309,10 @@ export interface BlockListOptions { } export interface BlockListResponse { + is_leet_check_enabled: boolean; + + is_plural_check_enabled: boolean; + name: string; type: string; @@ -1573,70 +1565,6 @@ export interface BulkImageModerationResponse { task_id: string; } -export interface Call { - app_pk: number; - - backstage: boolean; - - channel_cid: string; - - cid: string; - - created_at: Date; - - created_by_user_id: string; - - current_session_id: string; - - id: string; - - last_session_id: string; - - team: string; - - thumbnail_url: string; - - type: string; - - updated_at: Date; - - blocked_user_i_ds: string[]; - - blocked_users: User[]; - - egresses: CallEgress[]; - - members: CallMember[]; - - custom: Record; - - deleted_at?: Date; - - egress_updated_at?: Date; - - ended_at?: Date; - - join_ahead_time_seconds?: number; - - last_heartbeat_at?: Date; - - member_count?: number; - - starts_at?: Date; - - call_type?: CallType; - - created_by?: User; - - member_lookup?: MemberLookup; - - session?: CallSession; - - settings?: CallSettings; - - settings_overrides?: CallSettings; -} - export interface CallAcceptedEvent { call_cid: string; @@ -1723,30 +1651,6 @@ export interface CallDurationReportResponse { daily: DailyAggregateCallDurationReportResponse[]; } -export interface CallEgress { - app_pk: number; - - call_id: string; - - call_type: string; - - egress_id: string; - - egress_type: string; - - instance_ip: string; - - started_at: Date; - - state: string; - - updated_at: Date; - - stopped_at?: Date; - - config?: EgressTaskConfig; -} - export interface CallEndedEvent { call_cid: string; @@ -1863,22 +1767,6 @@ export interface CallLiveStartedEvent { type: string; } -export interface CallMember { - created_at: Date; - - role: string; - - updated_at: Date; - - user_id: string; - - custom: Record; - - deleted_at?: Date; - - user?: User; -} - export interface CallMemberAddedEvent { call_cid: string; @@ -1989,50 +1877,6 @@ export interface CallNotificationEvent { type: string; } -export interface CallParticipant { - banned: boolean; - - id: string; - - joined_at: Date; - - online: boolean; - - role: string; - - user_session_id: string; - - custom: Record; - - teams_role: Record; - - avg_response_time?: number; - - ban_expires?: Date; - - created_at?: Date; - - deactivated_at?: Date; - - deleted_at?: Date; - - invisible?: boolean; - - language?: string; - - last_active?: Date; - - last_engaged_at?: Date; - - revoke_tokens_issued_before?: Date; - - updated_at?: Date; - - teams?: string[]; - - privacy_settings?: PrivacySettings; -} - export interface CallParticipantCountReport { histogram: ReportByHistogramBucket[]; } @@ -2051,6 +1895,16 @@ export interface CallParticipantResponse { user: UserResponse; } +export interface CallParticipantTimeline { + severity: string; + + timestamp: Date; + + type: string; + + data: Record; +} + export interface CallReactionEvent { call_cid: string; @@ -2255,50 +2109,6 @@ export interface CallRtmpBroadcastStoppedEvent { type: string; } -export interface CallSession { - anonymous_participant_count: number; - - app_pk: number; - - call_id: string; - - call_type: string; - - created_at: Date; - - session_id: string; - - active_sf_us: SFUIDLastSeen[]; - - participants: CallParticipant[]; - - sfui_ds: string[]; - - accepted_by: Record; - - missed_by: Record; - - participants_count_by_role: Record; - - rejected_by: Record; - - user_permission_overrides: Record>; - - deleted_at?: Date; - - ended_at?: Date; - - live_ended_at?: Date; - - live_started_at?: Date; - - ring_at?: Date; - - started_at?: Date; - - timer_ends_at?: Date; -} - export interface CallSessionEndedEvent { call_cid: string; @@ -2489,6 +2299,46 @@ export interface CallStateResponseFields { call: CallResponse; } +export interface CallStatsParticipant { + user_id: string; + + sessions: CallStatsParticipantSession[]; + + latest_activity_at?: Date; + + name?: string; + + roles?: string[]; +} + +export interface CallStatsParticipantCounts { + live_sessions: number; + + participants: number; + + publishers: number; + + sessions: number; +} + +export interface CallStatsParticipantSession { + is_live: boolean; + + user_session_id: string; + + published_tracks: PublishedTrackFlags; + + cq_score?: number; + + ended_at?: Date; + + publisher_type?: string; + + started_at?: Date; + + unified_session_id?: string; +} + export interface CallStatsReportReadyEvent { call_cid: string; @@ -3130,6 +2980,8 @@ export interface ChannelMemberLookup { banned: boolean; + blocked: boolean; + hidden: boolean; pinned: boolean; @@ -3293,8 +3145,6 @@ export interface ChannelStateResponse { active_live_locations?: SharedLocationResponseData[]; - deleted_messages?: string[]; - pending_messages?: PendingMessageResponse[]; read?: ReadStateResponse[]; @@ -3327,8 +3177,6 @@ export interface ChannelStateResponseFields { active_live_locations?: SharedLocationResponseData[]; - deleted_messages?: string[]; - pending_messages?: PendingMessageResponse[]; read?: ReadStateResponse[]; @@ -3833,12 +3681,6 @@ export interface CommentUpdatedEvent { export interface CommitMessageRequest {} -export interface CompositeAppSettings { - json_encoded_settings?: string; - - url?: string; -} - export interface ConfigOverrides { commands: string[]; @@ -3920,6 +3762,10 @@ export interface CreateBlockListRequest { words: string[]; + is_leet_check_enabled?: boolean; + + is_plural_check_enabled?: boolean; + team?: string; type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word'; @@ -3976,6 +3822,8 @@ export interface CreateChannelTypeRequest { connect_events?: boolean; + count_messages?: boolean; + custom_events?: boolean; mark_messages_pending?: boolean; @@ -4408,18 +4256,6 @@ export interface DailyAggregateUserFeedbackReportResponse { report: UserFeedbackReport; } -export interface DailyMetricResponse { - date: string; - - value: number; -} - -export interface DailyMetricStatsResponse { - total: number; - - daily: DailyMetricResponse[]; -} - export interface Data { id: string; } @@ -4690,6 +4526,14 @@ export interface DeleteUsersResponse { task_id: string; } +export interface DeliveryReceipts { + enabled: boolean; +} + +export interface DeliveryReceiptsResponse { + enabled?: boolean; +} + export interface Device { created_at: Date; @@ -4832,24 +4676,6 @@ export interface EgressResponse { hls?: EgressHLSResponse; } -export interface EgressTaskConfig { - egress_user?: EgressUser; - - frame_recording_egress_config?: FrameRecordingEgressConfig; - - hls_egress_config?: HLSEgressConfig; - - recording_egress_config?: RecordingEgressConfig; - - rtmp_egress_config?: RTMPEgressConfig; - - stt_egress_config?: STTEgressConfig; -} - -export interface EgressUser { - token?: string; -} - export interface EndCallRequest {} export interface EndCallResponse { @@ -4910,50 +4736,6 @@ export interface EnrichedReaction { user?: Data; } -export interface EntityCreator { - ban_count: number; - - banned: boolean; - - deleted_content_count: number; - - id: string; - - online: boolean; - - role: string; - - custom: Record; - - teams_role: Record; - - avg_response_time?: number; - - ban_expires?: Date; - - created_at?: Date; - - deactivated_at?: Date; - - deleted_at?: Date; - - invisible?: boolean; - - language?: string; - - last_active?: Date; - - last_engaged_at?: Date; - - revoke_tokens_issued_before?: Date; - - updated_at?: Date; - - teams?: string[]; - - privacy_settings?: PrivacySettings; -} - export interface EntityCreatorResponse { ban_count: number; @@ -5138,34 +4920,6 @@ export interface ExportUsersResponse { task_id: string; } -export interface ExternalStorage { - abs_account_name?: string; - - abs_client_id?: string; - - abs_client_secret?: string; - - abs_tenant_id?: string; - - bucket?: string; - - gcs_credentials?: string; - - path?: string; - - s3_api_key?: string; - - s3_custom_endpoint?: string; - - s3_region?: string; - - s3_secret_key?: string; - - storage_name?: string; - - storage_type?: number; -} - export interface ExternalStorageResponse { bucket: string; @@ -5291,13 +5045,13 @@ export interface FeedGroupResponse { updated_at: Date; - deleted_at?: Date; - default_visibility?: string; + deleted_at?: Date; + activity_processors?: ActivityProcessorConfig[]; - activity_selectors?: ActivitySelectorConfig[]; + activity_selectors?: ActivitySelectorConfigResponse[]; aggregation?: AggregationConfig; @@ -5541,10 +5295,10 @@ export interface FeedViewResponse { } export interface FeedVisibilityResponse { - description: string; - name: string; + permissions: Permission[]; + grants: Record; } @@ -5854,16 +5608,6 @@ export interface FrameRecordSettings { quality?: string; } -export interface FrameRecordingEgressConfig { - capture_interval_in_seconds?: number; - - storage_name?: string; - - external_storage?: ExternalStorage; - - quality?: Quality; -} - export interface FrameRecordingResponse { status: string; } @@ -6028,6 +5772,28 @@ export interface GetCallResponse { call: CallResponse; } +export interface GetCallSessionParticipantStatsDetailsResponse { + call_id: string; + + call_session_id: string; + + call_type: string; + + duration: string; + + user_id: string; + + user_session_id: string; + + publisher?: ParticipantSeriesPublisherStats; + + subscriber?: ParticipantSeriesSubscriberStats; + + timeframe?: ParticipantSeriesTimeframe; + + user?: ParticipantSeriesUserStats; +} + export interface GetCallTypeResponse { created_at: Date; @@ -6525,16 +6291,6 @@ export interface GroupedStatsResponse { unique: number; } -export interface HLSEgressConfig { - playlist_url?: string; - - start_unix_nano?: number; - - qualities?: Quality[]; - - composite_app_settings?: CompositeAppSettings; -} - export interface HLSSettings { auto_on: boolean; @@ -6747,16 +6503,46 @@ export interface IngressSettingsResponse { video_encoding_options?: Record; } +export interface IngressSource { + fps: number; + + height: number; + + width: number; +} + +export interface IngressSourceRequest { + fps: '30' | '60'; + + height: number; + + width: number; +} + +export interface IngressSourceResponse { + fps: number; + + height: number; + + width: number; +} + export interface IngressVideoEncodingOptions { layers: IngressVideoLayer[]; + + source?: IngressSource; } export interface IngressVideoEncodingOptionsRequest { layers: IngressVideoLayerRequest[]; + + source: IngressSourceRequest; } export interface IngressVideoEncodingResponse { layers: IngressVideoLayerResponse[]; + + source: IngressSourceResponse; } export interface IngressVideoLayer { @@ -7110,10 +6896,6 @@ export interface MemberAddedEvent { user?: User; } -export interface MemberLookup { - limit: number; -} - export interface MemberRemovedEvent { channel_id: string; @@ -7450,7 +7232,29 @@ export interface MessageOptions { include_thread_participants?: boolean; } -export interface MessagePaginationParams {} +export interface MessagePaginationParams { + created_at_after?: Date; + + created_at_after_or_equal?: Date; + + created_at_around?: Date; + + created_at_before?: Date; + + created_at_before_or_equal?: Date; + + id_around?: string; + + id_gt?: string; + + id_gte?: string; + + id_lt?: string; + + id_lte?: string; + + limit?: number; +} export interface MessageReadEvent { channel_id: string; @@ -7786,6 +7590,18 @@ export interface MessageWithChannelResponse { shared_location?: SharedLocationResponseData; } +export interface MetricThreshold { + level: string; + + operator: string; + + value: number; + + value_unit?: string; + + window_seconds?: number; +} + export interface ModerationActionConfig { action: string; @@ -7857,15 +7673,21 @@ export interface ModerationConfig { } export interface ModerationCustomActionEvent { + action_id: string; + created_at: Date; + custom: Record; + + review_queue_item: ReviewQueueItemResponse; + type: string; - item?: ReviewQueueItem; + received_at?: Date; - message?: Message; + action_options?: Record; - user?: User; + message?: MessageResponse; } export interface ModerationDashboardPreferences { @@ -7923,13 +7745,15 @@ export interface ModerationFlaggedEvent { export interface ModerationMarkReviewedEvent { created_at: Date; - type: string; + custom: Record; - item?: ReviewQueueItem; + item: ReviewQueueItemResponse; - message?: Message; + type: string; - user?: User; + received_at?: Date; + + message?: MessageResponse; } export interface ModerationPayload { @@ -8192,8 +8016,6 @@ export interface NotificationTrigger { type: string; } -export interface NullTime {} - export interface OCRRule { action: | 'flag' @@ -8210,6 +8032,20 @@ export interface OnlyUserID { id: string; } +export interface OwnCapabilitiesBatchRequest { + feeds: string[]; + + user_id?: string; + + user?: UserRequest; +} + +export interface OwnCapabilitiesBatchResponse { + duration: string; + + capabilities: Record; +} + export const OwnCapability = { BLOCK_USERS: 'block-users', CHANGE_MAX_DURATION: 'change-max-duration', @@ -8426,6 +8262,64 @@ export interface ParticipantReportResponse { subscribers?: SubscriberStatsResponse; } +export interface ParticipantSeriesPublisherStats { + global?: Record; + + global_thresholds?: Record; + + tracks?: Record; +} + +export interface ParticipantSeriesSubscriberStats { + subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[]; + + global?: Record; + + global_thresholds?: Record; +} + +export interface ParticipantSeriesSubscriptionTrackMetrics { + publisher_user_id: string; + + publisher_name?: string; + + publisher_user_session_id?: string; + + tracks?: Record; +} + +export interface ParticipantSeriesTimeframe { + max_points: number; + + since: Date; + + step_seconds: number; + + until: Date; +} + +export interface ParticipantSeriesTrackMetrics { + track_id: string; + + codec?: string; + + label?: string; + + rid?: string; + + track_type?: string; + + metrics?: Record; + + thresholds?: Record; +} + +export interface ParticipantSeriesUserStats { + metrics?: Record; + + thresholds?: Record; +} + export interface PendingMessageEvent { created_at: Date; @@ -8751,17 +8645,31 @@ export interface PollVotesResponse { } export interface PrivacySettings { + delivery_receipts?: DeliveryReceipts; + read_receipts?: ReadReceipts; typing_indicators?: TypingIndicators; } export interface PrivacySettingsResponse { + delivery_receipts?: DeliveryReceiptsResponse; + read_receipts?: ReadReceiptsResponse; typing_indicators?: TypingIndicatorsResponse; } +export interface PublishedTrackFlags { + audio: boolean; + + screenshare: boolean; + + screenshare_audio: boolean; + + video: boolean; +} + export interface PublisherAllMetrics { audio?: PublisherAudioMetrics; @@ -8998,20 +8906,6 @@ export interface PushTemplate { template?: string; } -export interface Quality { - bitdepth?: number; - - framerate?: number; - - height?: number; - - name?: string; - - video_bitrate?: number; - - width?: number; -} - export interface QualityScoreReport { histogram: ReportByHistogramBucket[]; } @@ -9200,6 +9094,46 @@ export interface QueryCallParticipantsResponse { call: CallResponse; } +export interface QueryCallSessionParticipantStatsResponse { + call_id: string; + + call_session_id: string; + + call_type: string; + + duration: string; + + participants: CallStatsParticipant[]; + + counts: CallStatsParticipantCounts; + + call_ended_at?: Date; + + call_started_at?: Date; + + next?: string; + + prev?: string; + + tmp_data_source?: string; +} + +export interface QueryCallSessionParticipantStatsTimelineResponse { + call_id: string; + + call_session_id: string; + + call_type: string; + + duration: string; + + user_id: string; + + user_session_id: string; + + events: CallParticipantTimeline[]; +} + export interface QueryCallStatsRequest { limit?: number; @@ -9426,22 +9360,6 @@ export interface QueryFeedsResponse { prev?: string; } -export interface QueryFeedsUsageStatsRequest { - from?: string; - - to?: string; -} - -export interface QueryFeedsUsageStatsResponse { - duration: string; - - activities: DailyMetricStatsResponse; - - api_requests: DailyMetricStatsResponse; - - follows: DailyMetricStatsResponse; -} - export interface QueryFollowsRequest { limit?: number; @@ -9920,14 +9838,6 @@ export interface RTMPBroadcastRequest { layout?: LayoutSettingsRequest; } -export interface RTMPEgressConfig { - rtmp_location?: string; - - composite_app_settings?: CompositeAppSettings; - - quality?: Quality; -} - export interface RTMPIngress { address: string; } @@ -10157,6 +10067,10 @@ export interface ReadStateResponse { user: UserResponse; + last_delivered_at?: Date; + + last_delivered_message_id?: string; + last_read_message_id?: string; } @@ -10200,20 +10114,6 @@ export interface RecordSettingsResponse { layout: LayoutSettingsResponse; } -export interface RecordingEgressConfig { - audio_only?: boolean; - - storage_name?: string; - - composite_app_settings?: CompositeAppSettings; - - external_storage?: ExternalStorage; - - quality?: Quality; - - video_orientation_hint?: VideoOrientation; -} - export interface RejectFeedMemberInviteRequest { user_id?: string; @@ -10378,84 +10278,6 @@ export interface RestoreUsersRequest { user_ids: string[]; } -export interface ReviewQueueItem { - ai_text_severity: string; - - bounce_count: number; - - config_key: string; - - content_changed: boolean; - - created_at: Date; - - entity_id: string; - - entity_type: string; - - flags_count: number; - - has_image: boolean; - - has_text: boolean; - - has_video: boolean; - - id: string; - - moderation_payload_hash: string; - - recommended_action: string; - - reviewed_by: string; - - severity: number; - - status: string; - - updated_at: Date; - - actions: ActionLog[]; - - bans: Ban[]; - - flag_labels: string[]; - - flag_types: string[]; - - flags: Flag[]; - - languages: string[]; - - reporter_ids: string[]; - - teams: string[]; - - archived_at: NullTime; - - completed_at: NullTime; - - reviewed_at: NullTime; - - activity?: EnrichedActivity; - - assigned_to?: User; - - call?: Call; - - entity_creator?: EntityCreator; - - feeds_v2_activity?: EnrichedActivity; - - feeds_v2_reaction?: Reaction; - - message?: Message; - - moderation_payload?: ModerationPayload; - - reaction?: Reaction; -} - export interface ReviewQueueItemNewEvent { created_at: Date; @@ -10585,7 +10407,15 @@ export interface Role { } export interface RuleBuilderAction { - type?: string; + type: + | 'ban_user' + | 'flag_user' + | 'flag_content' + | 'block_content' + | 'shadow_content' + | 'bounce_flag_content' + | 'bounce_content' + | 'bounce_remove_content'; ban_options?: BanOptions; @@ -10664,58 +10494,10 @@ export interface SDKUsageReportResponse { daily: DailyAggregateSDKUsageReportResponse[]; } -export interface SFUIDLastSeen { - id: string; - - last_seen: Date; - - process_start_time: number; -} - export interface SRTIngress { address: string; } -export interface StoriesFeedUpdatedEvent { - created_at: Date; - - fid: string; - - custom: Record; - - type: string; - - feed_visibility?: string; - - received_at?: Date; - - activities?: ActivityResponse[]; - - aggregated_activities?: AggregatedActivityResponse[]; - - user?: UserResponseCommonFields; -} - -export interface STTEgressConfig { - closed_captions_enabled?: boolean; - - language?: string; - - storage_name?: string; - - translations_enabled?: boolean; - - upload_transcriptions?: boolean; - - whisper_server_base_url?: string; - - translation_languages?: string[]; - - external_storage?: ExternalStorage; - - speech_segment_config?: SpeechSegmentConfig; -} - export interface ScreensharingSettings { access_request_enabled: boolean; @@ -11366,6 +11148,26 @@ export interface StoriesConfig { track_watched?: boolean; } +export interface StoriesFeedUpdatedEvent { + created_at: Date; + + fid: string; + + custom: Record; + + type: string; + + feed_visibility?: string; + + received_at?: Date; + + activities?: ActivityResponse[]; + + aggregated_activities?: AggregatedActivityResponse[]; + + user?: UserResponseCommonFields; +} + export interface SubmitActionRequest { action_type: | 'mark_reviewed' @@ -12227,6 +12029,10 @@ export interface UpdateAppRequest { } export interface UpdateBlockListRequest { + is_leet_check_enabled?: boolean; + + is_plural_check_enabled?: boolean; + team?: string; words?: string[]; @@ -12896,6 +12702,42 @@ export interface UpdatedCallPermissionsEvent { type: string; } +export interface UploadChannelFileRequest { + file?: string; + + user?: OnlyUserID; +} + +export interface UploadChannelFileResponse { + duration: string; + + file?: string; + + moderation_action?: string; + + thumb_url?: string; +} + +export interface UploadChannelRequest { + file?: string; + + upload_sizes?: ImageSize[]; + + user?: OnlyUserID; +} + +export interface UploadChannelResponse { + duration: string; + + file?: string; + + moderation_action?: string; + + thumb_url?: string; + + upload_sizes?: ImageSize[]; +} + export interface UpsertActivitiesRequest { activities: ActivityRequest[]; } @@ -13547,10 +13389,6 @@ export interface VideoEndCallRequest {} export interface VideoKickUserRequest {} -export interface VideoOrientation { - orientation?: number; -} - export interface VideoReactionOverTimeResponse { by_minute?: CountByMinuteResponse[]; } diff --git a/src/gen/video/VideoApi.ts b/src/gen/video/VideoApi.ts index 597da1b..c293a9e 100644 --- a/src/gen/video/VideoApi.ts +++ b/src/gen/video/VideoApi.ts @@ -14,6 +14,7 @@ import { GetActiveCallsStatusResponse, GetCallReportResponse, GetCallResponse, + GetCallSessionParticipantStatsDetailsResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, @@ -35,6 +36,8 @@ import { QueryCallMembersResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, + QueryCallSessionParticipantStatsResponse, + QueryCallSessionParticipantStatsTimelineResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, @@ -46,6 +49,7 @@ import { SendCallEventResponse, SendClosedCaptionRequest, SendClosedCaptionResponse, + SortParamRequest, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, @@ -1208,6 +1212,113 @@ export class VideoApi { return { ...response.body, metadata: response.metadata }; } + async getCallSessionParticipantStatsDetails(request: { + call_type: string; + call_id: string; + session: string; + user: string; + user_session: string; + since?: string; + until?: string; + max_points?: number; + }): Promise> { + const queryParams = { + since: request?.since, + until: request?.until, + max_points: request?.max_points, + }; + const pathParams = { + call_type: request?.call_type, + call_id: request?.call_id, + session: request?.session, + user: request?.user, + user_session: request?.user_session, + }; + + const response = await this.apiClient.sendRequest< + StreamResponse + >( + 'GET', + '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participant/{user}/{user_session}/details', + pathParams, + queryParams, + ); + + decoders.GetCallSessionParticipantStatsDetailsResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + + async queryCallSessionParticipantStats(request: { + call_type: string; + call_id: string; + session: string; + sort?: SortParamRequest[]; + filter_conditions?: Record; + }): Promise> { + const queryParams = { + sort: request?.sort, + filter_conditions: request?.filter_conditions, + }; + const pathParams = { + call_type: request?.call_type, + call_id: request?.call_id, + session: request?.session, + }; + + const response = await this.apiClient.sendRequest< + StreamResponse + >( + 'GET', + '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participants', + pathParams, + queryParams, + ); + + decoders.QueryCallSessionParticipantStatsResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + + async getCallSessionParticipantStatsTimeline(request: { + call_type: string; + call_id: string; + session: string; + user: string; + user_session: string; + start_time?: string; + end_time?: string; + severity?: string[]; + }): Promise< + StreamResponse + > { + const queryParams = { + start_time: request?.start_time, + end_time: request?.end_time, + severity: request?.severity, + }; + const pathParams = { + call_type: request?.call_type, + call_id: request?.call_id, + session: request?.session, + user: request?.user, + user_session: request?.user_session, + }; + + const response = await this.apiClient.sendRequest< + StreamResponse + >( + 'GET', + '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participants/{user}/{user_session}/timeline', + pathParams, + queryParams, + ); + + decoders.QueryCallSessionParticipantStatsTimelineResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + async queryCalls( request?: QueryCallsRequest, ): Promise> {