From d24f886b1752b76d86a88aa7df8bff107e28a36e Mon Sep 17 00:00:00 2001 From: Gian <47775302+gpunto@users.noreply.github.com> Date: Wed, 8 Oct 2025 15:25:53 +0200 Subject: [PATCH] Add latest OpenAPI network code (09.10.2025) and rename addReaction & deleteReaction to addActivityReaction & deleteActivityReaction --- .../feeds/android/client/api/state/Feed.kt | 7 +- .../internal/http/FeedsSingleFlightApi.kt | 16 +- .../repository/ActivitiesRepository.kt | 4 +- .../repository/ActivitiesRepositoryImpl.kt | 6 +- .../android/client/internal/state/FeedImpl.kt | 8 +- .../internal/http/FeedsSingleFlightApiTest.kt | 33 +++ .../ActivitiesRepositoryImplTest.kt | 10 +- .../repository/AppRepositoryImplTest.kt | 2 + .../client/internal/state/FeedImplTest.kt | 12 +- .../feeds/android/network/apis/FeedsApi.kt | 14 +- .../network/infrastructure/Serializer.kt | 29 +- .../feeds/android/network/models/APNS.kt | 33 --- .../network/models/ActionLogResponse.kt | 3 + .../network/models/ActivityAddedEvent.kt | 6 +- .../network/models/ActivityFeedbackRequest.kt | 1 + .../models/ActivityReactionDeletedEvent.kt | 6 +- .../network/models/ActivityResponse.kt | 1 + .../network/models/ActivityUnpinnedEvent.kt | 6 +- .../network/models/AddCommentRequest.kt | 2 +- .../models/AggregatedActivityResponse.kt | 1 + .../network/models/AppResponseFields.kt | 2 + .../android/network/models/AudioSettings.kt | 75 ------ .../network/models/AudioSettingsResponse.kt | 1 + .../network/models/BackstageSettings.kt | 28 -- .../network/models/BlockListResponse.kt | 2 + .../network/models/BookmarkUpdatedEvent.kt | 6 +- .../network/models/BroadcastSettings.kt | 31 --- .../feeds/android/network/models/Call.kt | 76 ------ .../android/network/models/CallEgress.kt | 38 --- .../android/network/models/CallMember.kt | 35 --- .../android/network/models/CallParticipant.kt | 51 ---- .../android/network/models/CallSession.kt | 66 ----- .../android/network/models/CallSettings.kt | 57 ---- .../feeds/android/network/models/CallType.kt | 38 --- .../network/models/ChannelMemberLookup.kt | 1 + .../models/CommentReactionAddedEvent.kt | 6 +- .../network/models/CreateBlockListRequest.kt | 2 + .../{EgressUser.kt => DeliveryReceipts.kt} | 2 +- ...ettings.kt => DeliveryReceiptsResponse.kt} | 4 +- .../network/models/EgressTaskConfig.kt | 42 --- .../android/network/models/EntityCreator.kt | 51 ---- .../models/EventNotificationSettings.kt | 29 -- .../android/network/models/ExternalStorage.kt | 39 --- .../feeds/android/network/models/FCM.kt | 28 -- .../network/models/FeedDeletedEvent.kt | 6 +- .../network/models/FeedGroupDeletedEvent.kt | 6 +- .../network/models/FeedMemberUpdatedEvent.kt | 6 +- .../feeds/android/network/models/Flag.kt | 50 ---- .../network/models/FrameRecordSettings.kt | 71 ----- .../models/FrameRecordingEgressConfig.kt | 33 --- .../android/network/models/HLSEgressConfig.kt | 37 --- .../models/IngressAudioEncodingOptions.kt | 68 ----- .../android/network/models/IngressSettings.kt | 39 --- ...ppSettings.kt => IngressSourceResponse.kt} | 7 +- .../models/IngressVideoEncodingOptions.kt | 31 --- .../models/IngressVideoEncodingResponse.kt | 4 +- .../network/models/IngressVideoLayer.kt | 70 ----- .../android/network/models/LayoutSettings.kt | 81 ------ .../android/network/models/LimitsSettings.kt | 33 --- .../android/network/models/MemberLookup.kt | 25 -- .../models/ModerationCustomActionEvent.kt | 21 +- .../models/ModerationMarkReviewedEvent.kt | 18 +- .../network/models/NotificationSettings.kt | 38 --- .../feeds/android/network/models/NullTime.kt | 24 -- ...ings.kt => OwnCapabilitiesBatchRequest.kt} | 4 +- ...ngs.kt => OwnCapabilitiesBatchResponse.kt} | 17 +- .../network/models/PollClosedFeedEvent.kt | 6 +- .../network/models/PollVoteCastedFeedEvent.kt | 6 +- .../android/network/models/PrivacySettings.kt | 2 + .../network/models/PrivacySettingsResponse.kt | 4 + .../feeds/android/network/models/Quality.kt | 32 --- .../network/models/RTMPEgressConfig.kt | 33 --- .../android/network/models/RTMPLocation.kt | 29 -- .../android/network/models/RTMPSettings.kt | 32 --- .../android/network/models/RecordSettings.kt | 31 --- .../network/models/RecordingEgressConfig.kt | 39 --- .../android/network/models/ReviewQueueItem.kt | 88 ------ .../android/network/models/RingSettings.kt | 29 -- .../network/models/RuleBuilderAction.kt | 61 ++++- .../android/network/models/SFUIDLastSeen.kt | 29 -- .../android/network/models/STTEgressConfig.kt | 41 --- .../network/models/ScreensharingSettings.kt | 30 --- .../android/network/models/SessionSettings.kt | 27 -- .../android/network/models/StoriesConfig.kt | 45 +--- ...ctionLog.kt => StoriesFeedUpdatedEvent.kt} | 42 ++- .../network/models/TranscriptionSettings.kt | 251 ------------------ .../network/models/UpdateBlockListRequest.kt | 2 + .../network/models/VideoOrientation.kt | 27 -- .../android/network/models/VideoSettings.kt | 74 ------ .../feeds/android/network/models/WSEvent.kt | 2 + .../android/sample/feed/FeedViewModel.kt | 4 +- 91 files changed, 285 insertions(+), 2280 deletions(-) delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/APNS.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BackstageSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BroadcastSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Call.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallEgress.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallMember.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallParticipant.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSession.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallType.kt rename stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/{EgressUser.kt => DeliveryReceipts.kt} (90%) rename stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/{ThumbnailsSettings.kt => DeliveryReceiptsResponse.kt} (88%) delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EgressTaskConfig.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EntityCreator.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EventNotificationSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ExternalStorage.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FCM.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Flag.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordingEgressConfig.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/HLSEgressConfig.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressAudioEncodingOptions.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressSettings.kt rename stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/{CompositeAppSettings.kt => IngressSourceResponse.kt} (80%) delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingOptions.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoLayer.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LayoutSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LimitsSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/MemberLookup.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NotificationSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NullTime.kt rename stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/{GeofenceSettings.kt => OwnCapabilitiesBatchRequest.kt} (89%) rename stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/{HLSSettings.kt => OwnCapabilitiesBatchResponse.kt} (69%) delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Quality.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPEgressConfig.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPLocation.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordingEgressConfig.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ReviewQueueItem.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RingSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SFUIDLastSeen.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/STTEgressConfig.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ScreensharingSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SessionSettings.kt rename stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/{ActionLog.kt => StoriesFeedUpdatedEvent.kt} (52%) delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/TranscriptionSettings.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoOrientation.kt delete mode 100644 stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoSettings.kt diff --git a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/api/state/Feed.kt b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/api/state/Feed.kt index ce90f3fa0..b33f51a80 100644 --- a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/api/state/Feed.kt +++ b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/api/state/Feed.kt @@ -386,7 +386,7 @@ public interface Feed { * @return A [Result] containing the added [FeedsReactionData] if successful, or an error if the * operation fails. */ - public suspend fun addReaction( + public suspend fun addActivityReaction( activityId: String, request: AddReactionRequest, ): Result @@ -399,7 +399,10 @@ public interface Feed { * @return A [Result] containing the deleted [FeedsReactionData] if successful, or an error if * the operation fails. */ - public suspend fun deleteReaction(activityId: String, type: String): Result + public suspend fun deleteActivityReaction( + activityId: String, + type: String, + ): Result /** * Adds a reaction to a comment. diff --git a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApi.kt b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApi.kt index 9c0be5495..e30ec94c5 100644 --- a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApi.kt +++ b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApi.kt @@ -85,6 +85,8 @@ import io.getstream.feeds.android.network.models.ListDevicesResponse import io.getstream.feeds.android.network.models.MarkActivityRequest import io.getstream.feeds.android.network.models.MuteRequest import io.getstream.feeds.android.network.models.MuteResponse +import io.getstream.feeds.android.network.models.OwnCapabilitiesBatchRequest +import io.getstream.feeds.android.network.models.OwnCapabilitiesBatchResponse import io.getstream.feeds.android.network.models.PinActivityRequest import io.getstream.feeds.android.network.models.PinActivityResponse import io.getstream.feeds.android.network.models.PollOptionResponse @@ -300,12 +302,12 @@ internal class FeedsSingleFlightApi( delegate.deletePollVote(activityId, pollId, voteId, userId) } - override suspend fun addReaction( + override suspend fun addActivityReaction( activityId: String, addReactionRequest: AddReactionRequest, ): AddReactionResponse = - singleFlight("addReaction", activityId, addReactionRequest) { - delegate.addReaction(activityId, addReactionRequest) + singleFlight("addActivityReaction", activityId, addReactionRequest) { + delegate.addActivityReaction(activityId, addReactionRequest) } override suspend fun queryActivityReactions( @@ -655,6 +657,14 @@ internal class FeedsSingleFlightApi( delegate.createFeedsBatch(createFeedsBatchRequest) } + override suspend fun ownCapabilitiesBatch( + connectionId: String?, + ownCapabilitiesBatchRequest: OwnCapabilitiesBatchRequest, + ): OwnCapabilitiesBatchResponse = + singleFlight("ownCapabilitiesBatch", connectionId, ownCapabilitiesBatchRequest) { + delegate.ownCapabilitiesBatch(connectionId, ownCapabilitiesBatchRequest) + } + override suspend fun queryFeeds( connectionId: String?, queryFeedsRequest: QueryFeedsRequest, diff --git a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepository.kt b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepository.kt index 080269218..5d7ce69fd 100644 --- a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepository.kt +++ b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepository.kt @@ -149,7 +149,7 @@ internal interface ActivitiesRepository { * @param request The request containing the reaction data. * @return A [Result] containing the [FeedsReactionData] or an error. */ - suspend fun addReaction( + suspend fun addActivityReaction( activityId: String, request: AddReactionRequest, ): Result> @@ -161,7 +161,7 @@ internal interface ActivitiesRepository { * @param type The type of the reaction to delete. * @return A [Result] containing the deleted [FeedsReactionData] or an error. */ - suspend fun deleteReaction( + suspend fun deleteActivityReaction( activityId: String, type: String, ): Result> diff --git a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImpl.kt b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImpl.kt index ed8c58d0d..20d081c30 100644 --- a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImpl.kt +++ b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImpl.kt @@ -131,15 +131,15 @@ internal class ActivitiesRepositoryImpl( ) } - override suspend fun addReaction( + override suspend fun addActivityReaction( activityId: String, request: AddReactionRequest, ): Result> = runSafely { - val response = api.addReaction(activityId, request) + val response = api.addActivityReaction(activityId, request) response.reaction.toModel() to response.activity.toModel() } - override suspend fun deleteReaction( + override suspend fun deleteActivityReaction( activityId: String, type: String, ): Result> = runSafely { diff --git a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/state/FeedImpl.kt b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/state/FeedImpl.kt index 51ab47480..7efba34a3 100644 --- a/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/state/FeedImpl.kt +++ b/stream-feeds-android-client/src/main/kotlin/io/getstream/feeds/android/client/internal/state/FeedImpl.kt @@ -370,12 +370,12 @@ internal class FeedImpl( } } - override suspend fun addReaction( + override suspend fun addActivityReaction( activityId: String, request: AddReactionRequest, ): Result { return activitiesRepository - .addReaction(activityId, request) + .addActivityReaction(activityId, request) .onSuccess { (reaction, activity) -> subscriptionManager.onEvent( StateUpdateEvent.ActivityReactionAdded(fid.rawValue, activity, reaction) @@ -384,12 +384,12 @@ internal class FeedImpl( .map { it.first } } - override suspend fun deleteReaction( + override suspend fun deleteActivityReaction( activityId: String, type: String, ): Result { return activitiesRepository - .deleteReaction(activityId = activityId, type = type) + .deleteActivityReaction(activityId = activityId, type = type) .onSuccess { (reaction, activity) -> subscriptionManager.onEvent( StateUpdateEvent.ActivityReactionDeleted(fid.rawValue, activity, reaction) diff --git a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApiTest.kt b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApiTest.kt index 0dbb3745f..3379828ca 100644 --- a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApiTest.kt +++ b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/http/FeedsSingleFlightApiTest.kt @@ -25,6 +25,8 @@ import io.getstream.feeds.android.network.models.AddBookmarkRequest import io.getstream.feeds.android.network.models.AddBookmarkResponse import io.getstream.feeds.android.network.models.AddCommentRequest import io.getstream.feeds.android.network.models.AddCommentResponse +import io.getstream.feeds.android.network.models.AddReactionRequest +import io.getstream.feeds.android.network.models.AddReactionResponse import io.getstream.feeds.android.network.models.AppResponseFields import io.getstream.feeds.android.network.models.CreateDeviceRequest import io.getstream.feeds.android.network.models.DeleteActivitiesRequest @@ -33,6 +35,8 @@ import io.getstream.feeds.android.network.models.FileUploadConfig import io.getstream.feeds.android.network.models.GetApplicationResponse import io.getstream.feeds.android.network.models.GetOGResponse import io.getstream.feeds.android.network.models.ListDevicesResponse +import io.getstream.feeds.android.network.models.OwnCapabilitiesBatchRequest +import io.getstream.feeds.android.network.models.OwnCapabilitiesBatchResponse import io.getstream.feeds.android.network.models.QueryActivitiesRequest import io.getstream.feeds.android.network.models.QueryActivitiesResponse import io.getstream.feeds.android.network.models.Response @@ -71,6 +75,8 @@ internal class FeedsSingleFlightApiTest(private val testCase: SingleFlightTestCa name = "Test App", fileUploadConfig = FileUploadConfig(sizeLimit = 0), imageUploadConfig = FileUploadConfig(sizeLimit = 0), + region = "region", + shard = "shard", ), ) @@ -86,6 +92,13 @@ internal class FeedsSingleFlightApiTest(private val testCase: SingleFlightTestCa AddBookmarkResponse(duration = "100ms", bookmark = TestData.bookmarkResponse()) private val testAddCommentResponse = AddCommentResponse(duration = "100ms", comment = TestData.commentResponse()) + private val testAddReactionResponse = + AddReactionResponse( + duration = "100ms", + activity = TestData.activityResponse(), + reaction = TestData.feedsReactionResponse(), + ) + private val testOwnCapabilitiesBatchResponse = OwnCapabilitiesBatchResponse("100ms") @JvmStatic @Parameterized.Parameters(name = "{0}") @@ -172,6 +185,16 @@ internal class FeedsSingleFlightApiTest(private val testCase: SingleFlightTestCa apiResult = testAddBookmarkResponse, ) ), + arrayOf( + SingleFlightTestCase( + testName = "addActivityReaction", + expectedKeyPrefix = "addActivityReaction-activity123-", + call = { + it.addActivityReaction("activity123", AddReactionRequest(type = "like")) + }, + apiResult = testAddReactionResponse, + ) + ), arrayOf( SingleFlightTestCase( testName = "addComment", @@ -188,6 +211,16 @@ internal class FeedsSingleFlightApiTest(private val testCase: SingleFlightTestCa apiResult = testAddCommentResponse, ) ), + arrayOf( + SingleFlightTestCase( + testName = "ownCapabilitiesBatch", + expectedKeyPrefix = "ownCapabilitiesBatch-connection123-", + call = { + it.ownCapabilitiesBatch("connection123", OwnCapabilitiesBatchRequest()) + }, + apiResult = testOwnCapabilitiesBatchResponse, + ) + ), ) } diff --git a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImplTest.kt b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImplTest.kt index e41f10fe9..d2505917c 100644 --- a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImplTest.kt +++ b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/ActivitiesRepositoryImplTest.kt @@ -226,26 +226,26 @@ internal class ActivitiesRepositoryImplTest { } @Test - fun `on addReaction, delegate to api`() { + fun `on addActivityReaction, delegate to api`() { val request = AddReactionRequest("type") val apiResult = AddReactionResponse("duration", activityResponse(), feedsReactionResponse()) testDelegation( - apiFunction = { feedsApi.addReaction("activityId", request) }, - repositoryCall = { repository.addReaction("activityId", request) }, + apiFunction = { feedsApi.addActivityReaction("activityId", request) }, + repositoryCall = { repository.addActivityReaction("activityId", request) }, apiResult = apiResult, repositoryResult = apiResult.reaction.toModel() to apiResult.activity.toModel(), ) } @Test - fun `on deleteReaction, delegate to api`() { + fun `on deleteActivityReaction, delegate to api`() { val apiResult = DeleteActivityReactionResponse("duration", activityResponse(), feedsReactionResponse()) testDelegation( apiFunction = { feedsApi.deleteActivityReaction("activityId", "type") }, - repositoryCall = { repository.deleteReaction("activityId", "type") }, + repositoryCall = { repository.deleteActivityReaction("activityId", "type") }, apiResult = apiResult, repositoryResult = apiResult.reaction.toModel() to apiResult.activity.toModel(), ) diff --git a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/AppRepositoryImplTest.kt b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/AppRepositoryImplTest.kt index d895c125c..f1f4518a4 100644 --- a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/AppRepositoryImplTest.kt +++ b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/repository/AppRepositoryImplTest.kt @@ -42,6 +42,8 @@ internal class AppRepositoryImplTest { name = "Test App", fileUploadConfig = fileUploadConfig, imageUploadConfig = imageUploadConfig, + region = "region", + shard = "shard", ) val apiResponse = GetApplicationResponse(duration = "100ms", app = appResponseFields) diff --git a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/state/FeedImplTest.kt b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/state/FeedImplTest.kt index dd8a721ee..b7e292f53 100644 --- a/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/state/FeedImplTest.kt +++ b/stream-feeds-android-client/src/test/kotlin/io/getstream/feeds/android/client/internal/state/FeedImplTest.kt @@ -612,7 +612,7 @@ internal class FeedImplTest { } @Test - fun `on addReaction, delegate to repository and fire event`() = runTest { + fun `on addActivityReaction, delegate to repository and fire event`() = runTest { val feed = createFeed() val activityId = "activity-1" val request = AddReactionRequest(type = "like") @@ -623,10 +623,10 @@ internal class FeedImplTest { setupInitialState(feed, activities = listOf(activity)) val updatedActivity = activity.copy(text = "Updated activity") - coEvery { activitiesRepository.addReaction(activityId, request) } returns + coEvery { activitiesRepository.addActivityReaction(activityId, request) } returns Result.success(reaction to updatedActivity) - val result = feed.addReaction(activityId, request) + val result = feed.addActivityReaction(activityId, request) val expected = updatedActivity.copy(ownReactions = listOf(reaction)) assertEquals(reaction, result.getOrNull()) @@ -639,7 +639,7 @@ internal class FeedImplTest { } @Test - fun `on deleteReaction, delegate to repository and fire event`() = runTest { + fun `on deleteActivityReaction, delegate to repository and fire event`() = runTest { val feed = createFeed() val activityId = "activity-1" val type = "like" @@ -656,10 +656,10 @@ internal class FeedImplTest { setupInitialState(feed, activities = listOf(activityWithReaction)) val updatedActivity = activityData(activityId, text = "Updated activity") - coEvery { activitiesRepository.deleteReaction(activityId, type) } returns + coEvery { activitiesRepository.deleteActivityReaction(activityId, type) } returns Result.success(reaction to updatedActivity) - val result = feed.deleteReaction(activityId, type) + val result = feed.deleteActivityReaction(activityId, type) val expected = updatedActivity.copy(ownReactions = emptyList()) assertEquals(reaction, result.getOrNull()) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/apis/FeedsApi.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/apis/FeedsApi.kt index 1fbab5f3b..8e1d83ca1 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/apis/FeedsApi.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/apis/FeedsApi.kt @@ -201,7 +201,7 @@ public interface FeedsApi { /** Add reaction Adds a reaction to an activity */ @POST("/api/v2/feeds/activities/{activity_id}/reactions") - public suspend fun addReaction( + public suspend fun addActivityReaction( @Path("activity_id") activityId: kotlin.String, @Body addReactionRequest: io.getstream.feeds.android.network.models.AddReactionRequest, ): io.getstream.feeds.android.network.models.AddReactionResponse @@ -621,6 +621,18 @@ public interface FeedsApi { createFeedsBatchRequest: io.getstream.feeds.android.network.models.CreateFeedsBatchRequest ): io.getstream.feeds.android.network.models.CreateFeedsBatchResponse + /** + * Get capabilities for multiple feeds Retrieves capabilities for multiple feeds in a single + * request. Useful for batch processing when activities are added to feeds. + */ + @POST("/api/v2/feeds/feeds/own_capabilities/batch") + public suspend fun ownCapabilitiesBatch( + @Query("connection_id") connectionId: kotlin.String? = null, + @Body + ownCapabilitiesBatchRequest: + io.getstream.feeds.android.network.models.OwnCapabilitiesBatchRequest, + ): io.getstream.feeds.android.network.models.OwnCapabilitiesBatchResponse + /** Query feeds Query feeds with filter query */ @POST("/api/v2/feeds/feeds/query") public suspend fun queryFeeds( diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/infrastructure/Serializer.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/infrastructure/Serializer.kt index 9cfbd7392..5dd2b024c 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/infrastructure/Serializer.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/infrastructure/Serializer.kt @@ -39,10 +39,6 @@ public object Serializer { io.getstream.feeds.android.network.models.AddActivityRequest.Visibility .VisibilityAdapter() ) - .add( - io.getstream.feeds.android.network.models.AudioSettings.DefaultDevice - .DefaultDeviceAdapter() - ) .add( io.getstream.feeds.android.network.models.AudioSettingsResponse.DefaultDevice .DefaultDeviceAdapter() @@ -157,20 +153,13 @@ public object Serializer { .PushPreferenceAdapter() ) .add(io.getstream.feeds.android.network.models.FollowResponse.Status.StatusAdapter()) - .add(io.getstream.feeds.android.network.models.FrameRecordSettings.Mode.ModeAdapter()) .add( io.getstream.feeds.android.network.models.FrameRecordingSettingsResponse.Mode .ModeAdapter() ) .add(io.getstream.feeds.android.network.models.ImageSize.Crop.CropAdapter()) .add(io.getstream.feeds.android.network.models.ImageSize.Resize.ResizeAdapter()) - .add( - io.getstream.feeds.android.network.models.IngressAudioEncodingOptions.Channels - .ChannelsAdapter() - ) - .add(io.getstream.feeds.android.network.models.IngressVideoLayer.Codec.CodecAdapter()) .add(io.getstream.feeds.android.network.models.LLMRule.Action.ActionAdapter()) - .add(io.getstream.feeds.android.network.models.LayoutSettings.Name.NameAdapter()) .add(io.getstream.feeds.android.network.models.MessageResponse.Type.TypeAdapter()) .add( io.getstream.feeds.android.network.models.NoiseCancellationSettings.Mode @@ -190,23 +179,11 @@ public object Serializer { .FeedsLevelAdapter() ) .add(io.getstream.feeds.android.network.models.QueryCommentsRequest.Sort.SortAdapter()) - .add( - io.getstream.feeds.android.network.models.StoriesConfig.ExpirationBehaviour - .ExpirationBehaviourAdapter() - ) + .add(io.getstream.feeds.android.network.models.RuleBuilderAction.Type.TypeAdapter()) .add( io.getstream.feeds.android.network.models.SubmitActionRequest.ActionType .ActionTypeAdapter() ) - .add( - io.getstream.feeds.android.network.models.TranscriptionSettings.ClosedCaptionMode - .ClosedCaptionModeAdapter() - ) - .add( - io.getstream.feeds.android.network.models.TranscriptionSettings.Language - .LanguageAdapter() - ) - .add(io.getstream.feeds.android.network.models.TranscriptionSettings.Mode.ModeAdapter()) .add( io.getstream.feeds.android.network.models.TranscriptionSettingsResponse .ClosedCaptionMode @@ -240,10 +217,6 @@ public object Serializer { io.getstream.feeds.android.network.models.VelocityFilterConfigRule.CascadingAction .CascadingActionAdapter() ) - .add( - io.getstream.feeds.android.network.models.VideoSettings.CameraFacing - .CameraFacingAdapter() - ) .add( io.getstream.feeds.android.network.models.VideoSettingsResponse.CameraFacing .CameraFacingAdapter() diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/APNS.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/APNS.kt deleted file mode 100644 index f5fc26fe5..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/APNS.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class APNS( - @Json(name = "body") public val body: kotlin.String, - @Json(name = "title") public val title: kotlin.String, - @Json(name = "content-available") public val contentAvailable: kotlin.Int? = null, - @Json(name = "mutable-content") public val mutableContent: kotlin.Int? = null, - @Json(name = "sound") public val sound: kotlin.String? = null, - @Json(name = "data") public val data: kotlin.collections.Map? = emptyMap(), -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActionLogResponse.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActionLogResponse.kt index 77c6a95e6..6c1f34dbd 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActionLogResponse.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActionLogResponse.kt @@ -19,6 +19,7 @@ package io.getstream.feeds.android.network.models import com.squareup.moshi.Json import kotlin.collections.* +import kotlin.collections.List import kotlin.collections.Map import kotlin.io.* @@ -30,6 +31,8 @@ public data class ActionLogResponse( @Json(name = "target_user_id") public val targetUserId: kotlin.String, @Json(name = "type") public val type: kotlin.String, @Json(name = "user_id") public val userId: kotlin.String, + @Json(name = "ai_providers") + public val aiProviders: kotlin.collections.List = emptyList(), @Json(name = "custom") public val custom: kotlin.collections.Map = emptyMap(), @Json(name = "review_queue_item") diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityAddedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityAddedEvent.kt index dc3ffe266..97c8e9a6b 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityAddedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityAddedEvent.kt @@ -36,15 +36,15 @@ public data class ActivityAddedEvent( @Json(name = "user") public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, ) : - io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.WSClientEvent, + io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityFeedbackRequest.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityFeedbackRequest.kt index e51c7db95..419490336 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityFeedbackRequest.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityFeedbackRequest.kt @@ -28,4 +28,5 @@ public data class ActivityFeedbackRequest( @Json(name = "reason") public val reason: kotlin.String? = null, @Json(name = "report") public val report: kotlin.Boolean? = null, @Json(name = "show_less") public val showLess: kotlin.Boolean? = null, + @Json(name = "show_more") public val showMore: kotlin.Boolean? = null, ) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityReactionDeletedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityReactionDeletedEvent.kt index d2bed64d7..fa77872a1 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityReactionDeletedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityReactionDeletedEvent.kt @@ -38,15 +38,15 @@ public data class ActivityReactionDeletedEvent( @Json(name = "user") public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, ) : - io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.WSEvent, + io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityResponse.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityResponse.kt index 5f59301df..0e6cb0bac 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityResponse.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityResponse.kt @@ -86,6 +86,7 @@ public data class ActivityResponse( @Json(name = "edited_at") public val editedAt: java.util.Date? = null, @Json(name = "expires_at") public val expiresAt: java.util.Date? = null, @Json(name = "hidden") public val hidden: kotlin.Boolean? = null, + @Json(name = "is_watched") public val isWatched: kotlin.Boolean? = null, @Json(name = "text") public val text: kotlin.String? = null, @Json(name = "visibility_tag") public val visibilityTag: kotlin.String? = null, @Json(name = "current_feed") diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityUnpinnedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityUnpinnedEvent.kt index 77e73e0fb..5962ab628 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityUnpinnedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActivityUnpinnedEvent.kt @@ -36,15 +36,15 @@ public data class ActivityUnpinnedEvent( @Json(name = "user") public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, ) : - io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.WSEvent, + io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AddCommentRequest.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AddCommentRequest.kt index 31cc66055..92f803131 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AddCommentRequest.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AddCommentRequest.kt @@ -25,9 +25,9 @@ import kotlin.io.* /** */ public data class AddCommentRequest( - @Json(name = "comment") public val comment: kotlin.String, @Json(name = "object_id") public val objectId: kotlin.String, @Json(name = "object_type") public val objectType: kotlin.String, + @Json(name = "comment") public val comment: kotlin.String? = null, @Json(name = "create_notification_activity") public val createNotificationActivity: kotlin.Boolean? = null, @Json(name = "parent_id") public val parentId: kotlin.String? = null, diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AggregatedActivityResponse.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AggregatedActivityResponse.kt index 64cc0e7ee..a75e77c2b 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AggregatedActivityResponse.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AggregatedActivityResponse.kt @@ -35,4 +35,5 @@ public data class AggregatedActivityResponse( public val activities: kotlin.collections.List = emptyList(), + @Json(name = "is_watched") public val isWatched: kotlin.Boolean? = null, ) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AppResponseFields.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AppResponseFields.kt index e519e2ede..b26b49f9a 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AppResponseFields.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AppResponseFields.kt @@ -26,6 +26,8 @@ public data class AppResponseFields( @Json(name = "async_url_enrich_enabled") public val asyncUrlEnrichEnabled: kotlin.Boolean, @Json(name = "auto_translation_enabled") public val autoTranslationEnabled: kotlin.Boolean, @Json(name = "name") public val name: kotlin.String, + @Json(name = "region") public val region: kotlin.String, + @Json(name = "shard") public val shard: kotlin.String, @Json(name = "file_upload_config") public val fileUploadConfig: io.getstream.feeds.android.network.models.FileUploadConfig, @Json(name = "image_upload_config") diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettings.kt deleted file mode 100644 index 614ac0970..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettings.kt +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.FromJson -import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class AudioSettings( - @Json(name = "access_request_enabled") public val accessRequestEnabled: kotlin.Boolean, - @Json(name = "default_device") public val defaultDevice: DefaultDevice, - @Json(name = "mic_default_on") public val micDefaultOn: kotlin.Boolean, - @Json(name = "opus_dtx_enabled") public val opusDtxEnabled: kotlin.Boolean, - @Json(name = "redundant_coding_enabled") public val redundantCodingEnabled: kotlin.Boolean, - @Json(name = "speaker_default_on") public val speakerDefaultOn: kotlin.Boolean, - @Json(name = "noise_cancellation") - public val noiseCancellation: - io.getstream.feeds.android.network.models.NoiseCancellationSettings? = - null, -) { - - /** DefaultDevice Enum */ - public sealed class DefaultDevice(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): DefaultDevice = - when (s) { - "earpiece" -> Earpiece - "speaker" -> Speaker - else -> Unknown(s) - } - } - - public object Earpiece : DefaultDevice("earpiece") - - public object Speaker : DefaultDevice("speaker") - - public data class Unknown(val unknownValue: kotlin.String) : DefaultDevice(unknownValue) - - public class DefaultDeviceAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): DefaultDevice? { - val s = reader.nextString() ?: return null - return DefaultDevice.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: DefaultDevice?) { - writer.value(value?.value) - } - } - } -} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettingsResponse.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettingsResponse.kt index c026d803b..aa67f87ef 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettingsResponse.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/AudioSettingsResponse.kt @@ -30,6 +30,7 @@ import kotlin.io.* public data class AudioSettingsResponse( @Json(name = "access_request_enabled") public val accessRequestEnabled: kotlin.Boolean, @Json(name = "default_device") public val defaultDevice: DefaultDevice, + @Json(name = "hifi_audio_enabled") public val hifiAudioEnabled: kotlin.Boolean, @Json(name = "mic_default_on") public val micDefaultOn: kotlin.Boolean, @Json(name = "opus_dtx_enabled") public val opusDtxEnabled: kotlin.Boolean, @Json(name = "redundant_coding_enabled") public val redundantCodingEnabled: kotlin.Boolean, diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BackstageSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BackstageSettings.kt deleted file mode 100644 index d22667f4e..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BackstageSettings.kt +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class BackstageSettings( - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "join_ahead_time_seconds") public val joinAheadTimeSeconds: kotlin.Int? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BlockListResponse.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BlockListResponse.kt index a41cbdd07..66c379ada 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BlockListResponse.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BlockListResponse.kt @@ -24,6 +24,8 @@ import kotlin.io.* /** Block list contains restricted words */ public data class BlockListResponse( + @Json(name = "is_leet_check_enabled") public val isLeetCheckEnabled: kotlin.Boolean, + @Json(name = "is_plural_check_enabled") public val isPluralCheckEnabled: kotlin.Boolean, @Json(name = "name") public val name: kotlin.String, @Json(name = "type") public val type: kotlin.String, @Json(name = "words") public val words: kotlin.collections.List = emptyList(), diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BookmarkUpdatedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BookmarkUpdatedEvent.kt index 54cf58197..6ac1c4d2e 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BookmarkUpdatedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BookmarkUpdatedEvent.kt @@ -34,15 +34,15 @@ public data class BookmarkUpdatedEvent( @Json(name = "user") public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, ) : - io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.WSEvent, + io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BroadcastSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BroadcastSettings.kt deleted file mode 100644 index 0db759146..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/BroadcastSettings.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class BroadcastSettings( - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "hls") - public val hls: io.getstream.feeds.android.network.models.HLSSettings? = null, - @Json(name = "rtmp") - public val rtmp: io.getstream.feeds.android.network.models.RTMPSettings? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Call.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Call.kt deleted file mode 100644 index 7aa9205f0..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Call.kt +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class Call( - @Json(name = "AppPK") public val appPK: kotlin.Int, - @Json(name = "Backstage") public val backstage: kotlin.Boolean, - @Json(name = "CID") public val cID: kotlin.String, - @Json(name = "ChannelCID") public val channelCID: kotlin.String, - @Json(name = "CreatedAt") public val createdAt: java.util.Date, - @Json(name = "CreatedByUserID") public val createdByUserID: kotlin.String, - @Json(name = "CurrentSessionID") public val currentSessionID: kotlin.String, - @Json(name = "ID") public val iD: kotlin.String, - @Json(name = "LastSessionID") public val lastSessionID: kotlin.String, - @Json(name = "Team") public val team: kotlin.String, - @Json(name = "ThumbnailURL") public val thumbnailURL: kotlin.String, - @Json(name = "Type") public val type: kotlin.String, - @Json(name = "UpdatedAt") public val updatedAt: java.util.Date, - @Json(name = "BlockedUserIDs") - public val blockedUserIDs: kotlin.collections.List = emptyList(), - @Json(name = "BlockedUsers") - public val blockedUsers: - kotlin.collections.List = - emptyList(), - @Json(name = "Egresses") - public val egresses: - kotlin.collections.List = - emptyList(), - @Json(name = "Members") - public val members: - kotlin.collections.List = - emptyList(), - @Json(name = "Custom") - public val custom: kotlin.collections.Map = emptyMap(), - @Json(name = "DeletedAt") public val deletedAt: java.util.Date? = null, - @Json(name = "EgressUpdatedAt") public val egressUpdatedAt: java.util.Date? = null, - @Json(name = "EndedAt") public val endedAt: java.util.Date? = null, - @Json(name = "JoinAheadTimeSeconds") public val joinAheadTimeSeconds: kotlin.Int? = null, - @Json(name = "LastHeartbeatAt") public val lastHeartbeatAt: java.util.Date? = null, - @Json(name = "MemberCount") public val memberCount: kotlin.Int? = null, - @Json(name = "StartsAt") public val startsAt: java.util.Date? = null, - @Json(name = "CallType") - public val callType: io.getstream.feeds.android.network.models.CallType? = null, - @Json(name = "CreatedBy") - public val createdBy: io.getstream.feeds.android.network.models.User? = null, - @Json(name = "MemberLookup") - public val memberLookup: io.getstream.feeds.android.network.models.MemberLookup? = null, - @Json(name = "Session") - public val session: io.getstream.feeds.android.network.models.CallSession? = null, - @Json(name = "Settings") - public val settings: io.getstream.feeds.android.network.models.CallSettings? = null, - @Json(name = "SettingsOverrides") - public val settingsOverrides: io.getstream.feeds.android.network.models.CallSettings? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallEgress.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallEgress.kt deleted file mode 100644 index b1207df1c..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallEgress.kt +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class CallEgress( - @Json(name = "app_pk") public val appPk: kotlin.Int, - @Json(name = "call_id") public val callId: kotlin.String, - @Json(name = "call_type") public val callType: kotlin.String, - @Json(name = "egress_id") public val egressId: kotlin.String, - @Json(name = "egress_type") public val egressType: kotlin.String, - @Json(name = "instance_ip") public val instanceIp: kotlin.String, - @Json(name = "started_at") public val startedAt: java.util.Date, - @Json(name = "state") public val state: kotlin.String, - @Json(name = "updated_at") public val updatedAt: java.util.Date, - @Json(name = "stopped_at") public val stoppedAt: java.util.Date? = null, - @Json(name = "config") - public val config: io.getstream.feeds.android.network.models.EgressTaskConfig? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallMember.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallMember.kt deleted file mode 100644 index 5142f37d1..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallMember.kt +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class CallMember( - @Json(name = "created_at") public val createdAt: java.util.Date, - @Json(name = "role") public val role: kotlin.String, - @Json(name = "updated_at") public val updatedAt: java.util.Date, - @Json(name = "user_id") public val userId: kotlin.String, - @Json(name = "custom") - public val custom: kotlin.collections.Map = emptyMap(), - @Json(name = "deleted_at") public val deletedAt: java.util.Date? = null, - @Json(name = "user") public val user: io.getstream.feeds.android.network.models.User? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallParticipant.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallParticipant.kt deleted file mode 100644 index 49dbd5068..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallParticipant.kt +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class CallParticipant( - @Json(name = "banned") public val banned: kotlin.Boolean, - @Json(name = "id") public val id: kotlin.String, - @Json(name = "JoinedAt") public val joinedAt: java.util.Date, - @Json(name = "online") public val online: kotlin.Boolean, - @Json(name = "role") public val role: kotlin.String, - @Json(name = "UserSessionID") public val userSessionID: kotlin.String, - @Json(name = "custom") - public val custom: kotlin.collections.Map = emptyMap(), - @Json(name = "teams_role") - public val teamsRole: kotlin.collections.Map = emptyMap(), - @Json(name = "avg_response_time") public val avgResponseTime: kotlin.Int? = null, - @Json(name = "ban_expires") public val banExpires: java.util.Date? = null, - @Json(name = "created_at") public val createdAt: java.util.Date? = null, - @Json(name = "deactivated_at") public val deactivatedAt: java.util.Date? = null, - @Json(name = "deleted_at") public val deletedAt: java.util.Date? = null, - @Json(name = "invisible") public val invisible: kotlin.Boolean? = null, - @Json(name = "language") public val language: kotlin.String? = null, - @Json(name = "last_active") public val lastActive: java.util.Date? = null, - @Json(name = "last_engaged_at") public val lastEngagedAt: java.util.Date? = null, - @Json(name = "revoke_tokens_issued_before") - public val revokeTokensIssuedBefore: java.util.Date? = null, - @Json(name = "updated_at") public val updatedAt: java.util.Date? = null, - @Json(name = "teams") public val teams: kotlin.collections.List? = emptyList(), -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSession.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSession.kt deleted file mode 100644 index c0c46730f..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSession.kt +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class CallSession( - @Json(name = "AnonymousParticipantCount") public val anonymousParticipantCount: kotlin.Int, - @Json(name = "AppPK") public val appPK: kotlin.Int, - @Json(name = "CallID") public val callID: kotlin.String, - @Json(name = "CallType") public val callType: kotlin.String, - @Json(name = "CreatedAt") public val createdAt: java.util.Date, - @Json(name = "SessionID") public val sessionID: kotlin.String, - @Json(name = "ActiveSFUs") - public val activeSFUs: - kotlin.collections.List = - emptyList(), - @Json(name = "Participants") - public val participants: - kotlin.collections.List = - emptyList(), - @Json(name = "SFUIDs") public val sFUIDs: kotlin.collections.List = emptyList(), - @Json(name = "AcceptedBy") - public val acceptedBy: kotlin.collections.Map = emptyMap(), - @Json(name = "MissedBy") - public val missedBy: kotlin.collections.Map = emptyMap(), - @Json(name = "ParticipantsCountByRole") - public val participantsCountByRole: kotlin.collections.Map = - emptyMap(), - @Json(name = "RejectedBy") - public val rejectedBy: kotlin.collections.Map = emptyMap(), - @Json(name = "UserPermissionOverrides") - public val userPermissionOverrides: - kotlin.collections.Map< - kotlin.String, - kotlin.collections.Map, - > = - emptyMap(), - @Json(name = "DeletedAt") public val deletedAt: java.util.Date? = null, - @Json(name = "EndedAt") public val endedAt: java.util.Date? = null, - @Json(name = "LiveEndedAt") public val liveEndedAt: java.util.Date? = null, - @Json(name = "LiveStartedAt") public val liveStartedAt: java.util.Date? = null, - @Json(name = "RingAt") public val ringAt: java.util.Date? = null, - @Json(name = "StartedAt") public val startedAt: java.util.Date? = null, - @Json(name = "TimerEndsAt") public val timerEndsAt: java.util.Date? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSettings.kt deleted file mode 100644 index e9b5df7f4..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallSettings.kt +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class CallSettings( - @Json(name = "audio") - public val audio: io.getstream.feeds.android.network.models.AudioSettings? = null, - @Json(name = "backstage") - public val backstage: io.getstream.feeds.android.network.models.BackstageSettings? = null, - @Json(name = "broadcasting") - public val broadcasting: io.getstream.feeds.android.network.models.BroadcastSettings? = null, - @Json(name = "frame_recording") - public val frameRecording: io.getstream.feeds.android.network.models.FrameRecordSettings? = - null, - @Json(name = "geofencing") - public val geofencing: io.getstream.feeds.android.network.models.GeofenceSettings? = null, - @Json(name = "ingress") - public val ingress: io.getstream.feeds.android.network.models.IngressSettings? = null, - @Json(name = "limits") - public val limits: io.getstream.feeds.android.network.models.LimitsSettings? = null, - @Json(name = "recording") - public val recording: io.getstream.feeds.android.network.models.RecordSettings? = null, - @Json(name = "ring") - public val ring: io.getstream.feeds.android.network.models.RingSettings? = null, - @Json(name = "screensharing") - public val screensharing: io.getstream.feeds.android.network.models.ScreensharingSettings? = - null, - @Json(name = "session") - public val session: io.getstream.feeds.android.network.models.SessionSettings? = null, - @Json(name = "thumbnails") - public val thumbnails: io.getstream.feeds.android.network.models.ThumbnailsSettings? = null, - @Json(name = "transcription") - public val transcription: io.getstream.feeds.android.network.models.TranscriptionSettings? = - null, - @Json(name = "video") - public val video: io.getstream.feeds.android.network.models.VideoSettings? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallType.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallType.kt deleted file mode 100644 index 838826432..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CallType.kt +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class CallType( - @Json(name = "AppPK") public val appPK: kotlin.Int, - @Json(name = "CreatedAt") public val createdAt: java.util.Date, - @Json(name = "ExternalStorage") public val externalStorage: kotlin.String, - @Json(name = "Name") public val name: kotlin.String, - @Json(name = "PK") public val pK: kotlin.Int, - @Json(name = "UpdatedAt") public val updatedAt: java.util.Date, - @Json(name = "NotificationSettings") - public val notificationSettings: - io.getstream.feeds.android.network.models.NotificationSettings? = - null, - @Json(name = "Settings") - public val settings: io.getstream.feeds.android.network.models.CallSettings? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ChannelMemberLookup.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ChannelMemberLookup.kt index d6a5af778..7c0dda963 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ChannelMemberLookup.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ChannelMemberLookup.kt @@ -25,6 +25,7 @@ import kotlin.io.* public data class ChannelMemberLookup( @Json(name = "archived") public val archived: kotlin.Boolean, @Json(name = "banned") public val banned: kotlin.Boolean, + @Json(name = "blocked") public val blocked: kotlin.Boolean, @Json(name = "hidden") public val hidden: kotlin.Boolean, @Json(name = "pinned") public val pinned: kotlin.Boolean, @Json(name = "archived_at") public val archivedAt: java.util.Date? = null, diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CommentReactionAddedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CommentReactionAddedEvent.kt index 266e2c71a..8b4b42649 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CommentReactionAddedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CommentReactionAddedEvent.kt @@ -40,15 +40,15 @@ public data class CommentReactionAddedEvent( @Json(name = "user") public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, ) : - io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.WSEvent, + io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CreateBlockListRequest.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CreateBlockListRequest.kt index 9da7cca1a..7a38e913d 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CreateBlockListRequest.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CreateBlockListRequest.kt @@ -31,6 +31,8 @@ import kotlin.io.* public data class CreateBlockListRequest( @Json(name = "name") public val name: kotlin.String, @Json(name = "words") public val words: kotlin.collections.List = emptyList(), + @Json(name = "is_leet_check_enabled") public val isLeetCheckEnabled: kotlin.Boolean? = null, + @Json(name = "is_plural_check_enabled") public val isPluralCheckEnabled: kotlin.Boolean? = null, @Json(name = "team") public val team: kotlin.String? = null, @Json(name = "type") public val type: Type? = null, ) { diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EgressUser.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/DeliveryReceipts.kt similarity index 90% rename from stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EgressUser.kt rename to stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/DeliveryReceipts.kt index 28aa0138e..6cefe13b9 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EgressUser.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/DeliveryReceipts.kt @@ -22,4 +22,4 @@ import kotlin.collections.* import kotlin.io.* /** */ -public data class EgressUser(@Json(name = "token") public val token: kotlin.String? = null) +public data class DeliveryReceipts(@Json(name = "enabled") public val enabled: kotlin.Boolean) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ThumbnailsSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/DeliveryReceiptsResponse.kt similarity index 88% rename from stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ThumbnailsSettings.kt rename to stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/DeliveryReceiptsResponse.kt index 3684cd1a2..92a743aaf 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ThumbnailsSettings.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/DeliveryReceiptsResponse.kt @@ -22,4 +22,6 @@ import kotlin.collections.* import kotlin.io.* /** */ -public data class ThumbnailsSettings(@Json(name = "enabled") public val enabled: kotlin.Boolean) +public data class DeliveryReceiptsResponse( + @Json(name = "enabled") public val enabled: kotlin.Boolean +) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EgressTaskConfig.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EgressTaskConfig.kt deleted file mode 100644 index 4c2fedc28..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EgressTaskConfig.kt +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class EgressTaskConfig( - @Json(name = "egress_user") - public val egressUser: io.getstream.feeds.android.network.models.EgressUser? = null, - @Json(name = "frame_recording_egress_config") - public val frameRecordingEgressConfig: - io.getstream.feeds.android.network.models.FrameRecordingEgressConfig? = - null, - @Json(name = "hls_egress_config") - public val hlsEgressConfig: io.getstream.feeds.android.network.models.HLSEgressConfig? = null, - @Json(name = "recording_egress_config") - public val recordingEgressConfig: - io.getstream.feeds.android.network.models.RecordingEgressConfig? = - null, - @Json(name = "rtmp_egress_config") - public val rtmpEgressConfig: io.getstream.feeds.android.network.models.RTMPEgressConfig? = null, - @Json(name = "stt_egress_config") - public val sttEgressConfig: io.getstream.feeds.android.network.models.STTEgressConfig? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EntityCreator.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EntityCreator.kt deleted file mode 100644 index e478e5408..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EntityCreator.kt +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class EntityCreator( - @Json(name = "ban_count") public val banCount: kotlin.Int, - @Json(name = "banned") public val banned: kotlin.Boolean, - @Json(name = "deleted_content_count") public val deletedContentCount: kotlin.Int, - @Json(name = "id") public val id: kotlin.String, - @Json(name = "online") public val online: kotlin.Boolean, - @Json(name = "role") public val role: kotlin.String, - @Json(name = "custom") - public val custom: kotlin.collections.Map = emptyMap(), - @Json(name = "teams_role") - public val teamsRole: kotlin.collections.Map = emptyMap(), - @Json(name = "avg_response_time") public val avgResponseTime: kotlin.Int? = null, - @Json(name = "ban_expires") public val banExpires: java.util.Date? = null, - @Json(name = "created_at") public val createdAt: java.util.Date? = null, - @Json(name = "deactivated_at") public val deactivatedAt: java.util.Date? = null, - @Json(name = "deleted_at") public val deletedAt: java.util.Date? = null, - @Json(name = "invisible") public val invisible: kotlin.Boolean? = null, - @Json(name = "language") public val language: kotlin.String? = null, - @Json(name = "last_active") public val lastActive: java.util.Date? = null, - @Json(name = "last_engaged_at") public val lastEngagedAt: java.util.Date? = null, - @Json(name = "revoke_tokens_issued_before") - public val revokeTokensIssuedBefore: java.util.Date? = null, - @Json(name = "updated_at") public val updatedAt: java.util.Date? = null, - @Json(name = "teams") public val teams: kotlin.collections.List? = emptyList(), -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EventNotificationSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EventNotificationSettings.kt deleted file mode 100644 index e4ba88225..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/EventNotificationSettings.kt +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class EventNotificationSettings( - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "apns") public val apns: io.getstream.feeds.android.network.models.APNS, - @Json(name = "fcm") public val fcm: io.getstream.feeds.android.network.models.FCM, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ExternalStorage.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ExternalStorage.kt deleted file mode 100644 index 6da8c25bc..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ExternalStorage.kt +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class ExternalStorage( - @Json(name = "abs_account_name") public val absAccountName: kotlin.String? = null, - @Json(name = "abs_client_id") public val absClientId: kotlin.String? = null, - @Json(name = "abs_client_secret") public val absClientSecret: kotlin.String? = null, - @Json(name = "abs_tenant_id") public val absTenantId: kotlin.String? = null, - @Json(name = "bucket") public val bucket: kotlin.String? = null, - @Json(name = "gcs_credentials") public val gcsCredentials: kotlin.String? = null, - @Json(name = "path") public val path: kotlin.String? = null, - @Json(name = "s3_api_key") public val s3ApiKey: kotlin.String? = null, - @Json(name = "s3_custom_endpoint") public val s3CustomEndpoint: kotlin.String? = null, - @Json(name = "s3_region") public val s3Region: kotlin.String? = null, - @Json(name = "s3_secret_key") public val s3SecretKey: kotlin.String? = null, - @Json(name = "storage_name") public val storageName: kotlin.String? = null, - @Json(name = "storage_type") public val storageType: kotlin.Int? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FCM.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FCM.kt deleted file mode 100644 index d7c94c895..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FCM.kt +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class FCM( - @Json(name = "data") public val data: kotlin.collections.Map? = emptyMap() -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedDeletedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedDeletedEvent.kt index 57bad6e5a..496b7b677 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedDeletedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedDeletedEvent.kt @@ -34,15 +34,15 @@ public data class FeedDeletedEvent( @Json(name = "user") public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, ) : - io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.WSClientEvent, + io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedGroupDeletedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedGroupDeletedEvent.kt index 6d11f41f3..b2b664cc3 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedGroupDeletedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedGroupDeletedEvent.kt @@ -33,15 +33,15 @@ public data class FeedGroupDeletedEvent( @Json(name = "feed_visibility") public val feedVisibility: kotlin.String? = null, @Json(name = "received_at") public val receivedAt: java.util.Date? = null, ) : - io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.WSClientEvent, + io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedMemberUpdatedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedMemberUpdatedEvent.kt index 00cc044cc..8d6da03fb 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedMemberUpdatedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FeedMemberUpdatedEvent.kt @@ -36,15 +36,15 @@ public data class FeedMemberUpdatedEvent( @Json(name = "user") public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, ) : - io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.WSClientEvent, + io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Flag.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Flag.kt deleted file mode 100644 index 7cd030f80..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Flag.kt +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.collections.Map -import kotlin.io.* - -/** Contains information about flagged user or message */ -public data class Flag( - @Json(name = "created_at") public val createdAt: java.util.Date, - @Json(name = "entity_id") public val entityId: kotlin.String, - @Json(name = "entity_type") public val entityType: kotlin.String, - @Json(name = "updated_at") public val updatedAt: java.util.Date, - @Json(name = "result") - public val result: kotlin.collections.List> = - emptyList(), - @Json(name = "entity_creator_id") public val entityCreatorId: kotlin.String? = null, - @Json(name = "is_streamed_content") public val isStreamedContent: kotlin.Boolean? = null, - @Json(name = "moderation_payload_hash") public val moderationPayloadHash: kotlin.String? = null, - @Json(name = "reason") public val reason: kotlin.String? = null, - @Json(name = "review_queue_item_id") public val reviewQueueItemId: kotlin.String? = null, - @Json(name = "type") public val type: kotlin.String? = null, - @Json(name = "labels") public val labels: kotlin.collections.List? = emptyList(), - @Json(name = "custom") - public val custom: kotlin.collections.Map? = emptyMap(), - @Json(name = "moderation_payload") - public val moderationPayload: io.getstream.feeds.android.network.models.ModerationPayload? = - null, - @Json(name = "review_queue_item") - public val reviewQueueItem: io.getstream.feeds.android.network.models.ReviewQueueItem? = null, - @Json(name = "user") public val user: io.getstream.feeds.android.network.models.User? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordSettings.kt deleted file mode 100644 index 0860e76bf..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordSettings.kt +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.FromJson -import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class FrameRecordSettings( - @Json(name = "capture_interval_in_seconds") public val captureIntervalInSeconds: kotlin.Int, - @Json(name = "mode") public val mode: Mode, - @Json(name = "quality") public val quality: kotlin.String? = null, -) { - - /** Mode Enum */ - public sealed class Mode(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): Mode = - when (s) { - "auto-on" -> AutoOn - "available" -> Available - "disabled" -> Disabled - else -> Unknown(s) - } - } - - public object AutoOn : Mode("auto-on") - - public object Available : Mode("available") - - public object Disabled : Mode("disabled") - - public data class Unknown(val unknownValue: kotlin.String) : Mode(unknownValue) - - public class ModeAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): Mode? { - val s = reader.nextString() ?: return null - return Mode.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: Mode?) { - writer.value(value?.value) - } - } - } -} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordingEgressConfig.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordingEgressConfig.kt deleted file mode 100644 index b19b403bd..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/FrameRecordingEgressConfig.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class FrameRecordingEgressConfig( - @Json(name = "capture_interval_in_seconds") - public val captureIntervalInSeconds: kotlin.Int? = null, - @Json(name = "storage_name") public val storageName: kotlin.String? = null, - @Json(name = "external_storage") - public val externalStorage: io.getstream.feeds.android.network.models.ExternalStorage? = null, - @Json(name = "quality") - public val quality: io.getstream.feeds.android.network.models.Quality? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/HLSEgressConfig.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/HLSEgressConfig.kt deleted file mode 100644 index 0d1c18a5e..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/HLSEgressConfig.kt +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.io.* - -/** */ -public data class HLSEgressConfig( - @Json(name = "playlist_url") public val playlistUrl: kotlin.String? = null, - @Json(name = "start_unix_nano") public val startUnixNano: kotlin.Int? = null, - @Json(name = "qualities") - public val qualities: - kotlin.collections.List? = - emptyList(), - @Json(name = "composite_app_settings") - public val compositeAppSettings: - io.getstream.feeds.android.network.models.CompositeAppSettings? = - null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressAudioEncodingOptions.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressAudioEncodingOptions.kt deleted file mode 100644 index 3a6256b4f..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressAudioEncodingOptions.kt +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.FromJson -import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class IngressAudioEncodingOptions( - @Json(name = "bitrate") public val bitrate: kotlin.Int, - @Json(name = "channels") public val channels: Channels, - @Json(name = "enable_dtx") public val enableDtx: kotlin.Boolean, -) { - - /** Channels Enum */ - public sealed class Channels(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): Channels = - when (s) { - "1" -> `1` - "2" -> `2` - else -> Unknown(s) - } - } - - public object `1` : Channels("1") - - public object `2` : Channels("2") - - public data class Unknown(val unknownValue: kotlin.String) : Channels(unknownValue) - - public class ChannelsAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): Channels? { - val s = reader.nextString() ?: return null - return Channels.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: Channels?) { - writer.value(value?.value) - } - } - } -} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressSettings.kt deleted file mode 100644 index 7b4dc9fcf..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressSettings.kt +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class IngressSettings( - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "audio_encoding_options") - public val audioEncodingOptions: - io.getstream.feeds.android.network.models.IngressAudioEncodingOptions? = - null, - @Json(name = "video_encoding_options") - public val videoEncodingOptions: - kotlin.collections.Map< - kotlin.String, - io.getstream.feeds.android.network.models.IngressVideoEncodingOptions, - >? = - emptyMap(), -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CompositeAppSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressSourceResponse.kt similarity index 80% rename from stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CompositeAppSettings.kt rename to stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressSourceResponse.kt index 6fd05601d..9035d2861 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/CompositeAppSettings.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressSourceResponse.kt @@ -22,7 +22,8 @@ import kotlin.collections.* import kotlin.io.* /** */ -public data class CompositeAppSettings( - @Json(name = "json_encoded_settings") public val jsonEncodedSettings: kotlin.String? = null, - @Json(name = "url") public val url: kotlin.String? = null, +public data class IngressSourceResponse( + @Json(name = "fps") public val fps: kotlin.Int, + @Json(name = "height") public val height: kotlin.Int, + @Json(name = "width") public val width: kotlin.Int, ) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingOptions.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingOptions.kt deleted file mode 100644 index 3f2dc273f..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingOptions.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.io.* - -/** */ -public data class IngressVideoEncodingOptions( - @Json(name = "layers") - public val layers: - kotlin.collections.List = - emptyList() -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingResponse.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingResponse.kt index 1abb7a3d4..c38e46e15 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingResponse.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoEncodingResponse.kt @@ -29,5 +29,7 @@ public data class IngressVideoEncodingResponse( kotlin.collections.List< io.getstream.feeds.android.network.models.IngressVideoLayerResponse > = - emptyList() + emptyList(), + @Json(name = "source") + public val source: io.getstream.feeds.android.network.models.IngressSourceResponse, ) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoLayer.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoLayer.kt deleted file mode 100644 index 1de16b4f1..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/IngressVideoLayer.kt +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.FromJson -import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class IngressVideoLayer( - @Json(name = "bitrate") public val bitrate: kotlin.Int, - @Json(name = "codec") public val codec: Codec, - @Json(name = "frame_rate") public val frameRate: kotlin.Int, - @Json(name = "max_dimension") public val maxDimension: kotlin.Int, - @Json(name = "min_dimension") public val minDimension: kotlin.Int, -) { - - /** Codec Enum */ - public sealed class Codec(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): Codec = - when (s) { - "h264" -> H264 - "vp8" -> Vp8 - else -> Unknown(s) - } - } - - public object H264 : Codec("h264") - - public object Vp8 : Codec("vp8") - - public data class Unknown(val unknownValue: kotlin.String) : Codec(unknownValue) - - public class CodecAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): Codec? { - val s = reader.nextString() ?: return null - return Codec.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: Codec?) { - writer.value(value?.value) - } - } - } -} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LayoutSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LayoutSettings.kt deleted file mode 100644 index 63503188a..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LayoutSettings.kt +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.FromJson -import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson -import kotlin.collections.* -import kotlin.collections.Map -import kotlin.io.* - -/** */ -public data class LayoutSettings( - @Json(name = "external_app_url") public val externalAppUrl: kotlin.String, - @Json(name = "external_css_url") public val externalCssUrl: kotlin.String, - @Json(name = "name") public val name: Name, - @Json(name = "detect_orientation") public val detectOrientation: kotlin.Boolean? = null, - @Json(name = "options") - public val options: kotlin.collections.Map? = emptyMap(), -) { - - /** Name Enum */ - public sealed class Name(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): Name = - when (s) { - "custom" -> Custom - "grid" -> Grid - "mobile" -> Mobile - "single-participant" -> SingleParticipant - "spotlight" -> Spotlight - else -> Unknown(s) - } - } - - public object Custom : Name("custom") - - public object Grid : Name("grid") - - public object Mobile : Name("mobile") - - public object SingleParticipant : Name("single-participant") - - public object Spotlight : Name("spotlight") - - public data class Unknown(val unknownValue: kotlin.String) : Name(unknownValue) - - public class NameAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): Name? { - val s = reader.nextString() ?: return null - return Name.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: Name?) { - writer.value(value?.value) - } - } - } -} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LimitsSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LimitsSettings.kt deleted file mode 100644 index b646975b7..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/LimitsSettings.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.io.* - -/** */ -public data class LimitsSettings( - @Json(name = "max_participants_exclude_roles") - public val maxParticipantsExcludeRoles: kotlin.collections.List = emptyList(), - @Json(name = "max_duration_seconds") public val maxDurationSeconds: kotlin.Int? = null, - @Json(name = "max_participants") public val maxParticipants: kotlin.Int? = null, - @Json(name = "max_participants_exclude_owner") - public val maxParticipantsExcludeOwner: kotlin.Boolean? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/MemberLookup.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/MemberLookup.kt deleted file mode 100644 index da6b4b489..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/MemberLookup.kt +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class MemberLookup(@Json(name = "Limit") public val limit: kotlin.Int) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationCustomActionEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationCustomActionEvent.kt index c5fbdd32a..206b8704f 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationCustomActionEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationCustomActionEvent.kt @@ -19,21 +19,32 @@ package io.getstream.feeds.android.network.models import com.squareup.moshi.Json import kotlin.collections.* +import kotlin.collections.Map import kotlin.io.* -/** */ +/** This event is sent when a custom moderation action is executed */ public data class ModerationCustomActionEvent( + @Json(name = "action_id") public val actionId: kotlin.String, @Json(name = "created_at") public val createdAt: java.util.Date, + @Json(name = "custom") + public val custom: kotlin.collections.Map = emptyMap(), + @Json(name = "review_queue_item") + public val reviewQueueItem: io.getstream.feeds.android.network.models.ReviewQueueItemResponse, @Json(name = "type") public val type: kotlin.String, - @Json(name = "item") - public val item: io.getstream.feeds.android.network.models.ReviewQueueItem? = null, + @Json(name = "received_at") public val receivedAt: java.util.Date? = null, + @Json(name = "action_options") + public val actionOptions: kotlin.collections.Map? = emptyMap(), @Json(name = "message") - public val message: io.getstream.feeds.android.network.models.Message? = null, - @Json(name = "user") public val user: io.getstream.feeds.android.network.models.User? = null, + public val message: io.getstream.feeds.android.network.models.MessageResponse? = null, ) : + io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.FeedEvent { + override fun getWSClientEventType(): kotlin.String { + return type + } + override fun getWSEventType(): kotlin.String { return type } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationMarkReviewedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationMarkReviewedEvent.kt index d9ecc5b4c..1e72d2852 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationMarkReviewedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ModerationMarkReviewedEvent.kt @@ -19,22 +19,30 @@ package io.getstream.feeds.android.network.models import com.squareup.moshi.Json import kotlin.collections.* +import kotlin.collections.Map import kotlin.io.* -/** */ +/** This event is sent when a moderation item is marked as reviewed */ public data class ModerationMarkReviewedEvent( @Json(name = "created_at") public val createdAt: java.util.Date, - @Json(name = "type") public val type: kotlin.String, + @Json(name = "custom") + public val custom: kotlin.collections.Map = emptyMap(), @Json(name = "item") - public val item: io.getstream.feeds.android.network.models.ReviewQueueItem? = null, + public val item: io.getstream.feeds.android.network.models.ReviewQueueItemResponse, + @Json(name = "type") public val type: kotlin.String, + @Json(name = "received_at") public val receivedAt: java.util.Date? = null, @Json(name = "message") - public val message: io.getstream.feeds.android.network.models.Message? = null, - @Json(name = "user") public val user: io.getstream.feeds.android.network.models.User? = null, + public val message: io.getstream.feeds.android.network.models.MessageResponse? = null, ) : io.getstream.feeds.android.network.models.WSEvent, + io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.FeedEvent { override fun getWSEventType(): kotlin.String { return type } + + override fun getWSClientEventType(): kotlin.String { + return type + } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NotificationSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NotificationSettings.kt deleted file mode 100644 index deacea5b2..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NotificationSettings.kt +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class NotificationSettings( - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "call_live_started") - public val callLiveStarted: io.getstream.feeds.android.network.models.EventNotificationSettings, - @Json(name = "call_missed") - public val callMissed: io.getstream.feeds.android.network.models.EventNotificationSettings, - @Json(name = "call_notification") - public val callNotification: - io.getstream.feeds.android.network.models.EventNotificationSettings, - @Json(name = "call_ring") - public val callRing: io.getstream.feeds.android.network.models.EventNotificationSettings, - @Json(name = "session_started") - public val sessionStarted: io.getstream.feeds.android.network.models.EventNotificationSettings, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NullTime.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NullTime.kt deleted file mode 100644 index aa9881f7c..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/NullTime.kt +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import kotlin.collections.* -import kotlin.io.* - -/** */ -public class NullTime() diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/GeofenceSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/OwnCapabilitiesBatchRequest.kt similarity index 89% rename from stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/GeofenceSettings.kt rename to stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/OwnCapabilitiesBatchRequest.kt index 653903c5f..0ac6cc077 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/GeofenceSettings.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/OwnCapabilitiesBatchRequest.kt @@ -23,6 +23,6 @@ import kotlin.collections.List import kotlin.io.* /** */ -public data class GeofenceSettings( - @Json(name = "names") public val names: kotlin.collections.List = emptyList() +public data class OwnCapabilitiesBatchRequest( + @Json(name = "feeds") public val feeds: kotlin.collections.List = emptyList() ) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/HLSSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/OwnCapabilitiesBatchResponse.kt similarity index 69% rename from stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/HLSSettings.kt rename to stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/OwnCapabilitiesBatchResponse.kt index 652ac9b6e..72f31b562 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/HLSSettings.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/OwnCapabilitiesBatchResponse.kt @@ -20,14 +20,17 @@ package io.getstream.feeds.android.network.models import com.squareup.moshi.Json import kotlin.collections.* import kotlin.collections.List +import kotlin.collections.Map import kotlin.io.* /** */ -public data class HLSSettings( - @Json(name = "auto_on") public val autoOn: kotlin.Boolean, - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "quality_tracks") - public val qualityTracks: kotlin.collections.List = emptyList(), - @Json(name = "layout") - public val layout: io.getstream.feeds.android.network.models.LayoutSettings? = null, +public data class OwnCapabilitiesBatchResponse( + @Json(name = "duration") public val duration: kotlin.String, + @Json(name = "capabilities") + public val capabilities: + kotlin.collections.Map< + kotlin.String, + kotlin.collections.List, + > = + emptyMap(), ) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollClosedFeedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollClosedFeedEvent.kt index bad331b22..5a507cd23 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollClosedFeedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollClosedFeedEvent.kt @@ -34,15 +34,15 @@ public data class PollClosedFeedEvent( @Json(name = "feed_visibility") public val feedVisibility: kotlin.String? = null, @Json(name = "received_at") public val receivedAt: java.util.Date? = null, ) : - io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.WSClientEvent, + io.getstream.feeds.android.network.models.WSEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollVoteCastedFeedEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollVoteCastedFeedEvent.kt index ea97ec70c..725076613 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollVoteCastedFeedEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PollVoteCastedFeedEvent.kt @@ -36,15 +36,15 @@ public data class PollVoteCastedFeedEvent( @Json(name = "feed_visibility") public val feedVisibility: kotlin.String? = null, @Json(name = "received_at") public val receivedAt: java.util.Date? = null, ) : - io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.WSEvent, + io.getstream.feeds.android.network.models.WSClientEvent, io.getstream.feeds.android.network.models.FeedEvent { - override fun getWSClientEventType(): kotlin.String { + override fun getWSEventType(): kotlin.String { return type } - override fun getWSEventType(): kotlin.String { + override fun getWSClientEventType(): kotlin.String { return type } } diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettings.kt index ad2346171..73a413aff 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettings.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettings.kt @@ -23,6 +23,8 @@ import kotlin.io.* /** */ public data class PrivacySettings( + @Json(name = "delivery_receipts") + public val deliveryReceipts: io.getstream.feeds.android.network.models.DeliveryReceipts? = null, @Json(name = "read_receipts") public val readReceipts: io.getstream.feeds.android.network.models.ReadReceipts? = null, @Json(name = "typing_indicators") diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettingsResponse.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettingsResponse.kt index e78e6258a..84b5d7171 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettingsResponse.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/PrivacySettingsResponse.kt @@ -23,6 +23,10 @@ import kotlin.io.* /** */ public data class PrivacySettingsResponse( + @Json(name = "delivery_receipts") + public val deliveryReceipts: + io.getstream.feeds.android.network.models.DeliveryReceiptsResponse? = + null, @Json(name = "read_receipts") public val readReceipts: io.getstream.feeds.android.network.models.ReadReceiptsResponse? = null, @Json(name = "typing_indicators") diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Quality.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Quality.kt deleted file mode 100644 index 67179c07a..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/Quality.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class Quality( - @Json(name = "bitdepth") public val bitdepth: kotlin.Int? = null, - @Json(name = "framerate") public val framerate: kotlin.Int? = null, - @Json(name = "height") public val height: kotlin.Int? = null, - @Json(name = "name") public val name: kotlin.String? = null, - @Json(name = "video_bitrate") public val videoBitrate: kotlin.Int? = null, - @Json(name = "width") public val width: kotlin.Int? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPEgressConfig.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPEgressConfig.kt deleted file mode 100644 index 1230773c6..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPEgressConfig.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class RTMPEgressConfig( - @Json(name = "rtmp_location") public val rtmpLocation: kotlin.String? = null, - @Json(name = "composite_app_settings") - public val compositeAppSettings: - io.getstream.feeds.android.network.models.CompositeAppSettings? = - null, - @Json(name = "quality") - public val quality: io.getstream.feeds.android.network.models.Quality? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPLocation.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPLocation.kt deleted file mode 100644 index 0186e385b..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPLocation.kt +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class RTMPLocation( - @Json(name = "name") public val name: kotlin.String, - @Json(name = "stream_key") public val streamKey: kotlin.String, - @Json(name = "stream_url") public val streamUrl: kotlin.String, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPSettings.kt deleted file mode 100644 index 5efa8a061..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RTMPSettings.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class RTMPSettings( - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "quality_name") public val qualityName: kotlin.String? = null, - @Json(name = "layout") - public val layout: io.getstream.feeds.android.network.models.LayoutSettings? = null, - @Json(name = "location") - public val location: io.getstream.feeds.android.network.models.RTMPLocation? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordSettings.kt deleted file mode 100644 index bdeeb1f86..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordSettings.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class RecordSettings( - @Json(name = "mode") public val mode: kotlin.String, - @Json(name = "audio_only") public val audioOnly: kotlin.Boolean? = null, - @Json(name = "quality") public val quality: kotlin.String? = null, - @Json(name = "layout") - public val layout: io.getstream.feeds.android.network.models.LayoutSettings? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordingEgressConfig.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordingEgressConfig.kt deleted file mode 100644 index 592ec630f..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RecordingEgressConfig.kt +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class RecordingEgressConfig( - @Json(name = "audio_only") public val audioOnly: kotlin.Boolean? = null, - @Json(name = "storage_name") public val storageName: kotlin.String? = null, - @Json(name = "composite_app_settings") - public val compositeAppSettings: - io.getstream.feeds.android.network.models.CompositeAppSettings? = - null, - @Json(name = "external_storage") - public val externalStorage: io.getstream.feeds.android.network.models.ExternalStorage? = null, - @Json(name = "quality") - public val quality: io.getstream.feeds.android.network.models.Quality? = null, - @Json(name = "video_orientation_hint") - public val videoOrientationHint: io.getstream.feeds.android.network.models.VideoOrientation? = - null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ReviewQueueItem.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ReviewQueueItem.kt deleted file mode 100644 index 2bbf058e0..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ReviewQueueItem.kt +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.io.* - -/** */ -public data class ReviewQueueItem( - @Json(name = "ai_text_severity") public val aiTextSeverity: kotlin.String, - @Json(name = "bounce_count") public val bounceCount: kotlin.Int, - @Json(name = "config_key") public val configKey: kotlin.String, - @Json(name = "content_changed") public val contentChanged: kotlin.Boolean, - @Json(name = "created_at") public val createdAt: java.util.Date, - @Json(name = "entity_id") public val entityId: kotlin.String, - @Json(name = "entity_type") public val entityType: kotlin.String, - @Json(name = "flags_count") public val flagsCount: kotlin.Int, - @Json(name = "has_image") public val hasImage: kotlin.Boolean, - @Json(name = "has_text") public val hasText: kotlin.Boolean, - @Json(name = "has_video") public val hasVideo: kotlin.Boolean, - @Json(name = "id") public val id: kotlin.String, - @Json(name = "moderation_payload_hash") public val moderationPayloadHash: kotlin.String, - @Json(name = "recommended_action") public val recommendedAction: kotlin.String, - @Json(name = "reviewed_by") public val reviewedBy: kotlin.String, - @Json(name = "severity") public val severity: kotlin.Int, - @Json(name = "status") public val status: kotlin.String, - @Json(name = "updated_at") public val updatedAt: java.util.Date, - @Json(name = "actions") - public val actions: - kotlin.collections.List = - emptyList(), - @Json(name = "bans") - public val bans: kotlin.collections.List = - emptyList(), - @Json(name = "flag_labels") - public val flagLabels: kotlin.collections.List = emptyList(), - @Json(name = "flag_types") - public val flagTypes: kotlin.collections.List = emptyList(), - @Json(name = "flags") - public val flags: kotlin.collections.List = - emptyList(), - @Json(name = "languages") - public val languages: kotlin.collections.List = emptyList(), - @Json(name = "reporter_ids") - public val reporterIds: kotlin.collections.List = emptyList(), - @Json(name = "teams") public val teams: kotlin.collections.List = emptyList(), - @Json(name = "archived_at") - public val archivedAt: io.getstream.feeds.android.network.models.NullTime, - @Json(name = "completed_at") - public val completedAt: io.getstream.feeds.android.network.models.NullTime, - @Json(name = "reviewed_at") - public val reviewedAt: io.getstream.feeds.android.network.models.NullTime, - @Json(name = "activity") - public val activity: io.getstream.feeds.android.network.models.EnrichedActivity? = null, - @Json(name = "assigned_to") - public val assignedTo: io.getstream.feeds.android.network.models.User? = null, - @Json(name = "call") public val call: io.getstream.feeds.android.network.models.Call? = null, - @Json(name = "entity_creator") - public val entityCreator: io.getstream.feeds.android.network.models.EntityCreator? = null, - @Json(name = "feeds_v2_activity") - public val feedsV2Activity: io.getstream.feeds.android.network.models.EnrichedActivity? = null, - @Json(name = "feeds_v2_reaction") - public val feedsV2Reaction: io.getstream.feeds.android.network.models.Reaction? = null, - @Json(name = "message") - public val message: io.getstream.feeds.android.network.models.Message? = null, - @Json(name = "moderation_payload") - public val moderationPayload: io.getstream.feeds.android.network.models.ModerationPayload? = - null, - @Json(name = "reaction") - public val reaction: io.getstream.feeds.android.network.models.Reaction? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RingSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RingSettings.kt deleted file mode 100644 index 00dccfd69..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RingSettings.kt +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class RingSettings( - @Json(name = "auto_cancel_timeout_ms") public val autoCancelTimeoutMs: kotlin.Int, - @Json(name = "incoming_call_timeout_ms") public val incomingCallTimeoutMs: kotlin.Int, - @Json(name = "missed_call_timeout_ms") public val missedCallTimeoutMs: kotlin.Int, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RuleBuilderAction.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RuleBuilderAction.kt index 026f5e286..5fe944138 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RuleBuilderAction.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/RuleBuilderAction.kt @@ -17,15 +17,72 @@ package io.getstream.feeds.android.network.models +import com.squareup.moshi.FromJson import com.squareup.moshi.Json +import com.squareup.moshi.JsonAdapter +import com.squareup.moshi.JsonReader +import com.squareup.moshi.JsonWriter +import com.squareup.moshi.ToJson import kotlin.collections.* import kotlin.io.* /** */ public data class RuleBuilderAction( - @Json(name = "type") public val type: kotlin.String? = null, + @Json(name = "type") public val type: Type, @Json(name = "ban_options") public val banOptions: io.getstream.feeds.android.network.models.BanOptions? = null, @Json(name = "flag_user_options") public val flagUserOptions: io.getstream.feeds.android.network.models.FlagUserOptions? = null, -) +) { + + /** Type Enum */ + public sealed class Type(public val value: kotlin.String) { + override fun toString(): String = value + + public companion object { + public fun fromString(s: kotlin.String): Type = + when (s) { + "ban_user" -> BanUser + "block_content" -> BlockContent + "bounce_content" -> BounceContent + "bounce_flag_content" -> BounceFlagContent + "bounce_remove_content" -> BounceRemoveContent + "flag_content" -> FlagContent + "flag_user" -> FlagUser + "shadow_content" -> ShadowContent + else -> Unknown(s) + } + } + + public object BanUser : Type("ban_user") + + public object BlockContent : Type("block_content") + + public object BounceContent : Type("bounce_content") + + public object BounceFlagContent : Type("bounce_flag_content") + + public object BounceRemoveContent : Type("bounce_remove_content") + + public object FlagContent : Type("flag_content") + + public object FlagUser : Type("flag_user") + + public object ShadowContent : Type("shadow_content") + + public data class Unknown(val unknownValue: kotlin.String) : Type(unknownValue) + + public class TypeAdapter : JsonAdapter() { + @FromJson + override fun fromJson(reader: JsonReader): Type? { + val s = reader.nextString() ?: return null + return Type.fromString(s) + } + + @ToJson + override fun toJson(writer: JsonWriter, value: Type?) { + writer.value(value?.value) + } + } + } +} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SFUIDLastSeen.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SFUIDLastSeen.kt deleted file mode 100644 index 9267e14b0..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SFUIDLastSeen.kt +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class SFUIDLastSeen( - @Json(name = "id") public val id: kotlin.String, - @Json(name = "last_seen") public val lastSeen: java.util.Date, - @Json(name = "process_start_time") public val processStartTime: kotlin.Int, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/STTEgressConfig.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/STTEgressConfig.kt deleted file mode 100644 index f7dbc1614..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/STTEgressConfig.kt +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.collections.List -import kotlin.io.* - -/** */ -public data class STTEgressConfig( - @Json(name = "closed_captions_enabled") - public val closedCaptionsEnabled: kotlin.Boolean? = null, - @Json(name = "language") public val language: kotlin.String? = null, - @Json(name = "storage_name") public val storageName: kotlin.String? = null, - @Json(name = "translations_enabled") public val translationsEnabled: kotlin.Boolean? = null, - @Json(name = "upload_transcriptions") public val uploadTranscriptions: kotlin.Boolean? = null, - @Json(name = "whisper_server_base_url") public val whisperServerBaseUrl: kotlin.String? = null, - @Json(name = "translation_languages") - public val translationLanguages: kotlin.collections.List? = emptyList(), - @Json(name = "external_storage") - public val externalStorage: io.getstream.feeds.android.network.models.ExternalStorage? = null, - @Json(name = "speech_segment_config") - public val speechSegmentConfig: io.getstream.feeds.android.network.models.SpeechSegmentConfig? = - null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ScreensharingSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ScreensharingSettings.kt deleted file mode 100644 index ad454cf99..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ScreensharingSettings.kt +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class ScreensharingSettings( - @Json(name = "access_request_enabled") public val accessRequestEnabled: kotlin.Boolean, - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "target_resolution") - public val targetResolution: io.getstream.feeds.android.network.models.TargetResolution? = null, -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SessionSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SessionSettings.kt deleted file mode 100644 index 5d87b6dc0..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/SessionSettings.kt +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class SessionSettings( - @Json(name = "inactivity_timeout_seconds") public val inactivityTimeoutSeconds: kotlin.Int -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/StoriesConfig.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/StoriesConfig.kt index dd4fd8e21..af7d8f341 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/StoriesConfig.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/StoriesConfig.kt @@ -17,53 +17,12 @@ package io.getstream.feeds.android.network.models -import com.squareup.moshi.FromJson import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson import kotlin.collections.* import kotlin.io.* /** */ public data class StoriesConfig( - @Json(name = "expiration_behaviour") - public val expirationBehaviour: ExpirationBehaviour? = null, @Json(name = "skip_watched") public val skipWatched: kotlin.Boolean? = null, -) { - - /** ExpirationBehaviour Enum */ - public sealed class ExpirationBehaviour(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): ExpirationBehaviour = - when (s) { - "hide_for_everyone" -> HideForEveryone - "visible_for_author" -> VisibleForAuthor - else -> Unknown(s) - } - } - - public object HideForEveryone : ExpirationBehaviour("hide_for_everyone") - - public object VisibleForAuthor : ExpirationBehaviour("visible_for_author") - - public data class Unknown(val unknownValue: kotlin.String) : - ExpirationBehaviour(unknownValue) - - public class ExpirationBehaviourAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): ExpirationBehaviour? { - val s = reader.nextString() ?: return null - return ExpirationBehaviour.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: ExpirationBehaviour?) { - writer.value(value?.value) - } - } - } -} + @Json(name = "track_watched") public val trackWatched: kotlin.Boolean? = null, +) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActionLog.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/StoriesFeedUpdatedEvent.kt similarity index 52% rename from stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActionLog.kt rename to stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/StoriesFeedUpdatedEvent.kt index 33174484a..fb243e416 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/ActionLog.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/StoriesFeedUpdatedEvent.kt @@ -19,23 +19,37 @@ package io.getstream.feeds.android.network.models import com.squareup.moshi.Json import kotlin.collections.* +import kotlin.collections.List import kotlin.collections.Map import kotlin.io.* -/** */ -public data class ActionLog( +/** Emitted when stories feed is updated. */ +public data class StoriesFeedUpdatedEvent( @Json(name = "created_at") public val createdAt: java.util.Date, - @Json(name = "id") public val id: kotlin.String, - @Json(name = "reason") public val reason: kotlin.String, - @Json(name = "reporter_type") public val reporterType: kotlin.String, - @Json(name = "review_queue_item_id") public val reviewQueueItemId: kotlin.String, - @Json(name = "target_user_id") public val targetUserId: kotlin.String, - @Json(name = "type") public val type: kotlin.String, + @Json(name = "fid") public val fid: kotlin.String, @Json(name = "custom") public val custom: kotlin.collections.Map = emptyMap(), - @Json(name = "review_queue_item") - public val reviewQueueItem: io.getstream.feeds.android.network.models.ReviewQueueItem? = null, - @Json(name = "target_user") - public val targetUser: io.getstream.feeds.android.network.models.User? = null, - @Json(name = "user") public val user: io.getstream.feeds.android.network.models.User? = null, -) + @Json(name = "type") public val type: kotlin.String, + @Json(name = "feed_visibility") public val feedVisibility: kotlin.String? = null, + @Json(name = "received_at") public val receivedAt: java.util.Date? = null, + @Json(name = "aggregated_activities") + public val aggregatedActivities: + kotlin.collections.List< + io.getstream.feeds.android.network.models.AggregatedActivityResponse + >? = + emptyList(), + @Json(name = "user") + public val user: io.getstream.feeds.android.network.models.UserResponseCommonFields? = null, +) : + io.getstream.feeds.android.network.models.WSEvent, + io.getstream.feeds.android.network.models.WSClientEvent, + io.getstream.feeds.android.network.models.FeedEvent { + + override fun getWSEventType(): kotlin.String { + return type + } + + override fun getWSClientEventType(): kotlin.String { + return type + } +} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/TranscriptionSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/TranscriptionSettings.kt deleted file mode 100644 index fdf3ebd57..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/TranscriptionSettings.kt +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.FromJson -import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class TranscriptionSettings( - @Json(name = "closed_caption_mode") public val closedCaptionMode: ClosedCaptionMode, - @Json(name = "language") public val language: Language, - @Json(name = "mode") public val mode: Mode, - @Json(name = "speech_segment_config") - public val speechSegmentConfig: io.getstream.feeds.android.network.models.SpeechSegmentConfig? = - null, - @Json(name = "translation") - public val translation: io.getstream.feeds.android.network.models.TranslationSettings? = null, -) { - - /** ClosedCaptionMode Enum */ - public sealed class ClosedCaptionMode(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): ClosedCaptionMode = - when (s) { - "auto-on" -> AutoOn - "available" -> Available - "disabled" -> Disabled - else -> Unknown(s) - } - } - - public object AutoOn : ClosedCaptionMode("auto-on") - - public object Available : ClosedCaptionMode("available") - - public object Disabled : ClosedCaptionMode("disabled") - - public data class Unknown(val unknownValue: kotlin.String) : - ClosedCaptionMode(unknownValue) - - public class ClosedCaptionModeAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): ClosedCaptionMode? { - val s = reader.nextString() ?: return null - return ClosedCaptionMode.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: ClosedCaptionMode?) { - writer.value(value?.value) - } - } - } - - /** Language Enum */ - public sealed class Language(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): Language = - when (s) { - "ar" -> Ar - "auto" -> Auto - "bg" -> Bg - "ca" -> Ca - "cs" -> Cs - "da" -> Da - "de" -> De - "el" -> El - "en" -> En - "es" -> Es - "et" -> Et - "fi" -> Fi - "fr" -> Fr - "he" -> He - "hi" -> Hi - "hr" -> Hr - "hu" -> Hu - "id" -> Id - "it" -> It - "ja" -> Ja - "ko" -> Ko - "ms" -> Ms - "nl" -> Nl - "no" -> No - "pl" -> Pl - "pt" -> Pt - "ro" -> Ro - "ru" -> Ru - "sk" -> Sk - "sl" -> Sl - "sv" -> Sv - "ta" -> Ta - "th" -> Th - "tl" -> Tl - "tr" -> Tr - "uk" -> Uk - "zh" -> Zh - else -> Unknown(s) - } - } - - public object Ar : Language("ar") - - public object Auto : Language("auto") - - public object Bg : Language("bg") - - public object Ca : Language("ca") - - public object Cs : Language("cs") - - public object Da : Language("da") - - public object De : Language("de") - - public object El : Language("el") - - public object En : Language("en") - - public object Es : Language("es") - - public object Et : Language("et") - - public object Fi : Language("fi") - - public object Fr : Language("fr") - - public object He : Language("he") - - public object Hi : Language("hi") - - public object Hr : Language("hr") - - public object Hu : Language("hu") - - public object Id : Language("id") - - public object It : Language("it") - - public object Ja : Language("ja") - - public object Ko : Language("ko") - - public object Ms : Language("ms") - - public object Nl : Language("nl") - - public object No : Language("no") - - public object Pl : Language("pl") - - public object Pt : Language("pt") - - public object Ro : Language("ro") - - public object Ru : Language("ru") - - public object Sk : Language("sk") - - public object Sl : Language("sl") - - public object Sv : Language("sv") - - public object Ta : Language("ta") - - public object Th : Language("th") - - public object Tl : Language("tl") - - public object Tr : Language("tr") - - public object Uk : Language("uk") - - public object Zh : Language("zh") - - public data class Unknown(val unknownValue: kotlin.String) : Language(unknownValue) - - public class LanguageAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): Language? { - val s = reader.nextString() ?: return null - return Language.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: Language?) { - writer.value(value?.value) - } - } - } - - /** Mode Enum */ - public sealed class Mode(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): Mode = - when (s) { - "auto-on" -> AutoOn - "available" -> Available - "disabled" -> Disabled - else -> Unknown(s) - } - } - - public object AutoOn : Mode("auto-on") - - public object Available : Mode("available") - - public object Disabled : Mode("disabled") - - public data class Unknown(val unknownValue: kotlin.String) : Mode(unknownValue) - - public class ModeAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): Mode? { - val s = reader.nextString() ?: return null - return Mode.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: Mode?) { - writer.value(value?.value) - } - } - } -} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/UpdateBlockListRequest.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/UpdateBlockListRequest.kt index 1a7f5f965..84331a364 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/UpdateBlockListRequest.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/UpdateBlockListRequest.kt @@ -24,6 +24,8 @@ import kotlin.io.* /** */ public data class UpdateBlockListRequest( + @Json(name = "is_leet_check_enabled") public val isLeetCheckEnabled: kotlin.Boolean? = null, + @Json(name = "is_plural_check_enabled") public val isPluralCheckEnabled: kotlin.Boolean? = null, @Json(name = "team") public val team: kotlin.String? = null, @Json(name = "words") public val words: kotlin.collections.List? = emptyList(), ) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoOrientation.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoOrientation.kt deleted file mode 100644 index ec46a1e98..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoOrientation.kt +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.Json -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class VideoOrientation( - @Json(name = "orientation") public val orientation: kotlin.Int? = null -) diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoSettings.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoSettings.kt deleted file mode 100644 index 5ce8675a5..000000000 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/VideoSettings.kt +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2014-2025 Stream.io Inc. All rights reserved. - * - * Licensed under the Stream License; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://github.com/GetStream/stream-feeds-android/blob/main/LICENSE - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@file:Suppress("ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", "UnusedImport") - -package io.getstream.feeds.android.network.models - -import com.squareup.moshi.FromJson -import com.squareup.moshi.Json -import com.squareup.moshi.JsonAdapter -import com.squareup.moshi.JsonReader -import com.squareup.moshi.JsonWriter -import com.squareup.moshi.ToJson -import kotlin.collections.* -import kotlin.io.* - -/** */ -public data class VideoSettings( - @Json(name = "access_request_enabled") public val accessRequestEnabled: kotlin.Boolean, - @Json(name = "camera_default_on") public val cameraDefaultOn: kotlin.Boolean, - @Json(name = "camera_facing") public val cameraFacing: CameraFacing, - @Json(name = "enabled") public val enabled: kotlin.Boolean, - @Json(name = "target_resolution") - public val targetResolution: io.getstream.feeds.android.network.models.TargetResolution, -) { - - /** CameraFacing Enum */ - public sealed class CameraFacing(public val value: kotlin.String) { - override fun toString(): String = value - - public companion object { - public fun fromString(s: kotlin.String): CameraFacing = - when (s) { - "back" -> Back - "external" -> External - "front" -> Front - else -> Unknown(s) - } - } - - public object Back : CameraFacing("back") - - public object External : CameraFacing("external") - - public object Front : CameraFacing("front") - - public data class Unknown(val unknownValue: kotlin.String) : CameraFacing(unknownValue) - - public class CameraFacingAdapter : JsonAdapter() { - @FromJson - override fun fromJson(reader: JsonReader): CameraFacing? { - val s = reader.nextString() ?: return null - return CameraFacing.fromString(s) - } - - @ToJson - override fun toJson(writer: JsonWriter, value: CameraFacing?) { - writer.value(value?.value) - } - } - } -} diff --git a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/WSEvent.kt b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/WSEvent.kt index 00d140ccb..f248cf2d1 100644 --- a/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/WSEvent.kt +++ b/stream-feeds-android-network/src/main/kotlin/io/getstream/feeds/android/network/models/WSEvent.kt @@ -138,6 +138,8 @@ public class WSEventAdapter : JsonAdapter() { io.getstream.feeds.android.network.models.PollVoteChangedFeedEvent::class.java "feeds.poll.vote_removed" -> io.getstream.feeds.android.network.models.PollVoteRemovedFeedEvent::class.java + "feeds.stories_feed.updated" -> + io.getstream.feeds.android.network.models.StoriesFeedUpdatedEvent::class.java "health.check" -> io.getstream.feeds.android.network.models.HealthCheckEvent::class.java "moderation.custom_action" -> io.getstream.feeds.android.network.models.ModerationCustomActionEvent::class.java diff --git a/stream-feeds-android-sample/src/main/java/io/getstream/feeds/android/sample/feed/FeedViewModel.kt b/stream-feeds-android-sample/src/main/java/io/getstream/feeds/android/sample/feed/FeedViewModel.kt index 60a587332..5eb57e04a 100644 --- a/stream-feeds-android-sample/src/main/java/io/getstream/feeds/android/sample/feed/FeedViewModel.kt +++ b/stream-feeds-android-sample/src/main/java/io/getstream/feeds/android/sample/feed/FeedViewModel.kt @@ -124,14 +124,14 @@ constructor(private val application: Application, loginManager: LoginManager) : // Add reaction viewState.withFirstContent(viewModelScope) { val request = AddReactionRequest(reaction.value, createNotificationActivity = true) - timeline.addReaction(activity.id, request).notifyOnFailure { + timeline.addActivityReaction(activity.id, request).notifyOnFailure { "Failed to add reaction" } } } else { // Remove reaction viewState.withFirstContent(viewModelScope) { - timeline.deleteReaction(activity.id, reaction.value).notifyOnFailure { + timeline.deleteActivityReaction(activity.id, reaction.value).notifyOnFailure { "Failed to delete reaction" } }