diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 7484ee59..40a5ed1c 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -21,3 +21,4 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f3310757..c0ea3e49 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,7 +1,6 @@ .github/workflows/maven.yml .gitignore .travis.yml -README.md api/openapi.yaml build.gradle build.sbt @@ -20,7 +19,6 @@ docs/ChooseAPushNotificationContentTemplateResponse.md docs/CreateABotRequest.md docs/CreateABotResponse.md docs/CreateABotResponseBot.md -docs/CreateABotResponseBotStyle.md docs/CreateAChannelMetadataRequest.md docs/CreateAChannelMetadataResponse.md docs/CreateAGroupChannelRequest.md @@ -48,7 +46,6 @@ docs/LeaveMyGroupChannelsRequest.md docs/ListBlockedUsersResponse.md docs/ListBotsResponse.md docs/ListBotsResponseBotsInner.md -docs/ListBotsResponseBotsInnerAi.md docs/ListBotsResponseBotsInnerBot.md docs/ListBotsResponseBotsInnerBotStyle.md docs/ListBotsResponseBotsInnerBotStyleColor.md @@ -83,13 +80,14 @@ docs/ScheduleAnAnnouncementRequestCreateChannelOptions.md docs/ScheduleAnAnnouncementRequestMessage.md docs/ScheduleAnAnnouncementResponse.md docs/ScheduleAnAnnouncementResponseMessage.md -docs/SendABotMessageRequest.md +docs/SendABotMessageResponse.md docs/SendAMessageRequest.md +docs/SendAMessageRequestPushMessageTemplate.md +docs/SendAMessageRequestPushMessageTemplateOneOf.md docs/SendAdminMessageRequestBody.md docs/SendFileMessageRequestBody.md docs/SendTextMessageRequestBody.md docs/SendTextMessageRequestBodyPushMessageTemplate.md -docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md docs/SendbirdBasicUserInfo.md docs/SendbirdDisappearingMessage.md docs/SendbirdExtendedMessagePayload.md @@ -97,8 +95,10 @@ docs/SendbirdFile.md docs/SendbirdGroupChannel.md docs/SendbirdGroupChannelDetail.md docs/SendbirdGroupChannelDetailChannel.md +docs/SendbirdGroupChannelLastMessage.md docs/SendbirdMember.md docs/SendbirdMessageResponse.md +docs/SendbirdMessageResponseExtendedMessagePayload.md docs/SendbirdMessageResponseMessageEvents.md docs/SendbirdOpenChannel.md docs/SendbirdParentMessageInfo.md @@ -115,6 +115,8 @@ docs/UpdateAGroupChannelRequest.md docs/UpdateAMessageRequest.md docs/UpdateAUserRequest.md docs/UpdateAnOpenChannelRequest.md +docs/UpdateBotByIdData.md +docs/UpdateBotByIdResponse.md docs/UpdateChannelInvitationPreferenceRequest.md docs/UpdateChannelInvitationPreferenceResponse.md docs/UpdateCountPreferenceOfAChannelRequest.md @@ -126,6 +128,8 @@ docs/UpdatePushPreferencesForAChannelResponse.md docs/UpdatePushPreferencesRequest.md docs/UpdatePushPreferencesResponse.md docs/UserApi.md +docs/ViewBotByIdResponse.md +docs/ViewBotByIdResponseBot.md docs/ViewCountPreferenceOfAChannelResponse.md docs/ViewNumberOfChannelsWithUnreadMessagesResponse.md docs/ViewNumberOfDailyActiveUsersResponse.md @@ -156,7 +160,6 @@ src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTempla src/main/java/org/openapitools/client/model/CreateABotRequest.java src/main/java/org/openapitools/client/model/CreateABotResponse.java src/main/java/org/openapitools/client/model/CreateABotResponseBot.java -src/main/java/org/openapitools/client/model/CreateABotResponseBotStyle.java src/main/java/org/openapitools/client/model/CreateAChannelMetadataRequest.java src/main/java/org/openapitools/client/model/CreateAChannelMetadataResponse.java src/main/java/org/openapitools/client/model/CreateAGroupChannelRequest.java @@ -183,7 +186,6 @@ src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsRequest.java src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java src/main/java/org/openapitools/client/model/ListBotsResponse.java src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java -src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerAi.java src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBot.java src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyle.java src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyleColor.java @@ -214,13 +216,14 @@ src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestCreateC src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestMessage.java src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponse.java src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponseMessage.java -src/main/java/org/openapitools/client/model/SendABotMessageRequest.java +src/main/java/org/openapitools/client/model/SendABotMessageResponse.java src/main/java/org/openapitools/client/model/SendAMessageRequest.java +src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplate.java +src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOf.java src/main/java/org/openapitools/client/model/SendAdminMessageRequestBody.java src/main/java/org/openapitools/client/model/SendFileMessageRequestBody.java src/main/java/org/openapitools/client/model/SendTextMessageRequestBody.java src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplate.java -src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.java src/main/java/org/openapitools/client/model/SendbirdBasicUserInfo.java src/main/java/org/openapitools/client/model/SendbirdDisappearingMessage.java src/main/java/org/openapitools/client/model/SendbirdExtendedMessagePayload.java @@ -228,8 +231,10 @@ src/main/java/org/openapitools/client/model/SendbirdFile.java src/main/java/org/openapitools/client/model/SendbirdGroupChannel.java src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetail.java src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetailChannel.java +src/main/java/org/openapitools/client/model/SendbirdGroupChannelLastMessage.java src/main/java/org/openapitools/client/model/SendbirdMember.java src/main/java/org/openapitools/client/model/SendbirdMessageResponse.java +src/main/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayload.java src/main/java/org/openapitools/client/model/SendbirdMessageResponseMessageEvents.java src/main/java/org/openapitools/client/model/SendbirdOpenChannel.java src/main/java/org/openapitools/client/model/SendbirdParentMessageInfo.java @@ -245,6 +250,8 @@ src/main/java/org/openapitools/client/model/UpdateAGroupChannelRequest.java src/main/java/org/openapitools/client/model/UpdateAMessageRequest.java src/main/java/org/openapitools/client/model/UpdateAUserRequest.java src/main/java/org/openapitools/client/model/UpdateAnOpenChannelRequest.java +src/main/java/org/openapitools/client/model/UpdateBotByIdData.java +src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceRequest.java src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfAChannelRequest.java @@ -255,6 +262,8 @@ src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelRequ src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelResponse.java src/main/java/org/openapitools/client/model/UpdatePushPreferencesRequest.java src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java +src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java +src/main/java/org/openapitools/client/model/ViewBotByIdResponseBot.java src/main/java/org/openapitools/client/model/ViewCountPreferenceOfAChannelResponse.java src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java @@ -286,3 +295,136 @@ src/main/java/org/sendbird/client/auth/ApiKeyAuth.java src/main/java/org/sendbird/client/auth/Authentication.java src/main/java/org/sendbird/client/auth/HttpBasicAuth.java src/main/java/org/sendbird/client/auth/HttpBearerAuth.java +src/test/java/org/openapitools/client/model/AcceptAnInvitationRequestTest.java +src/test/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenRequestTest.java +src/test/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenResponseTest.java +src/test/java/org/openapitools/client/model/AddExtraDataToAMessageRequestTest.java +src/test/java/org/openapitools/client/model/AddExtraDataToAMessageResponseTest.java +src/test/java/org/openapitools/client/model/BlockAUserRequestTest.java +src/test/java/org/openapitools/client/model/BlockAUserResponseTest.java +src/test/java/org/openapitools/client/model/CheckIfMemberResponseTest.java +src/test/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateRequestTest.java +src/test/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateResponseTest.java +src/test/java/org/openapitools/client/model/CreateABotRequestTest.java +src/test/java/org/openapitools/client/model/CreateABotResponseBotTest.java +src/test/java/org/openapitools/client/model/CreateABotResponseTest.java +src/test/java/org/openapitools/client/model/CreateAChannelMetadataRequestTest.java +src/test/java/org/openapitools/client/model/CreateAChannelMetadataResponseTest.java +src/test/java/org/openapitools/client/model/CreateAGroupChannelRequestTest.java +src/test/java/org/openapitools/client/model/CreateAUserRequestTest.java +src/test/java/org/openapitools/client/model/CreateAnOpenChannelRequestTest.java +src/test/java/org/openapitools/client/model/CreateUserTokenRequestTest.java +src/test/java/org/openapitools/client/model/CreateUserTokenResponseTest.java +src/test/java/org/openapitools/client/model/FreezeAGroupChannelRequestTest.java +src/test/java/org/openapitools/client/model/FreezeAnOpenChannelRequestTest.java +src/test/java/org/openapitools/client/model/GetAGroupChannelResponseAllOfTest.java +src/test/java/org/openapitools/client/model/GetAGroupChannelResponseTest.java +src/test/java/org/openapitools/client/model/GetChannelInvitationPreferenceResponseTest.java +src/test/java/org/openapitools/client/model/GetTotalNumberOfMessagesInAChannelResponseTest.java +src/test/java/org/openapitools/client/model/GroupChannelListMembersResponseTest.java +src/test/java/org/openapitools/client/model/GroupChatListChannelsResponseTest.java +src/test/java/org/openapitools/client/model/HideAChannelRequestTest.java +src/test/java/org/openapitools/client/model/InviteAsMembersRequestTest.java +src/test/java/org/openapitools/client/model/InviteAsMembersResponseAllOfTest.java +src/test/java/org/openapitools/client/model/InviteAsMembersResponseTest.java +src/test/java/org/openapitools/client/model/JoinAChannelRequestTest.java +src/test/java/org/openapitools/client/model/JoinChannelsRequestTest.java +src/test/java/org/openapitools/client/model/LeaveAChannelRequestTest.java +src/test/java/org/openapitools/client/model/LeaveMyGroupChannelsRequestTest.java +src/test/java/org/openapitools/client/model/ListBlockedUsersResponseTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyleColorTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyleTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInnerDataTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInnerTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerSafeguardTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerTest.java +src/test/java/org/openapitools/client/model/ListBotsResponseTest.java +src/test/java/org/openapitools/client/model/ListMessagesResponseTest.java +src/test/java/org/openapitools/client/model/ListMyGroupChannelsResponseTest.java +src/test/java/org/openapitools/client/model/ListOpenChannelsResponseTest.java +src/test/java/org/openapitools/client/model/ListOperatorsResponseTest.java +src/test/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponseTest.java +src/test/java/org/openapitools/client/model/ListUsersResponseTest.java +src/test/java/org/openapitools/client/model/MarkAllMessagesAsReadRequestTest.java +src/test/java/org/openapitools/client/model/MarkChannelMessagesAsReadRequestTest.java +src/test/java/org/openapitools/client/model/MigrateMessagesAdminMessageRequestTest.java +src/test/java/org/openapitools/client/model/MigrateMessagesFileMessageRequestTest.java +src/test/java/org/openapitools/client/model/MigrateMessagesFileMessageRequestThumbnailsInnerTest.java +src/test/java/org/openapitools/client/model/MigrateMessagesRequestMessagesInnerTest.java +src/test/java/org/openapitools/client/model/MigrateMessagesRequestTest.java +src/test/java/org/openapitools/client/model/MigrateMessagesTextMessageRequestTest.java +src/test/java/org/openapitools/client/model/RegisterOperatorsToAGroupChannelRequestTest.java +src/test/java/org/openapitools/client/model/RemoveARegistrationOrDeviceTokenResponseTest.java +src/test/java/org/openapitools/client/model/RemoveAllRegistrationOrDeviceTokenResponseTest.java +src/test/java/org/openapitools/client/model/ResetChatHistoryRequestTest.java +src/test/java/org/openapitools/client/model/ResetChatHistoryResponseTest.java +src/test/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestCreateChannelOptionsTest.java +src/test/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestMessageTest.java +src/test/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestTest.java +src/test/java/org/openapitools/client/model/ScheduleAnAnnouncementResponseMessageTest.java +src/test/java/org/openapitools/client/model/ScheduleAnAnnouncementResponseTest.java +src/test/java/org/openapitools/client/model/SendABotMessageResponseTest.java +src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOfTest.java +src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateTest.java +src/test/java/org/openapitools/client/model/SendAMessageRequestTest.java +src/test/java/org/openapitools/client/model/SendAdminMessageRequestBodyTest.java +src/test/java/org/openapitools/client/model/SendFileMessageRequestBodyTest.java +src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateTest.java +src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyTest.java +src/test/java/org/openapitools/client/model/SendbirdBasicUserInfoTest.java +src/test/java/org/openapitools/client/model/SendbirdDisappearingMessageTest.java +src/test/java/org/openapitools/client/model/SendbirdExtendedMessagePayloadTest.java +src/test/java/org/openapitools/client/model/SendbirdFileTest.java +src/test/java/org/openapitools/client/model/SendbirdGroupChannelDetailChannelTest.java +src/test/java/org/openapitools/client/model/SendbirdGroupChannelDetailTest.java +src/test/java/org/openapitools/client/model/SendbirdGroupChannelLastMessageTest.java +src/test/java/org/openapitools/client/model/SendbirdGroupChannelTest.java +src/test/java/org/openapitools/client/model/SendbirdMemberTest.java +src/test/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayloadTest.java +src/test/java/org/openapitools/client/model/SendbirdMessageResponseMessageEventsTest.java +src/test/java/org/openapitools/client/model/SendbirdMessageResponseTest.java +src/test/java/org/openapitools/client/model/SendbirdOpenChannelTest.java +src/test/java/org/openapitools/client/model/SendbirdParentMessageInfoTest.java +src/test/java/org/openapitools/client/model/SendbirdPushTriggerOptionTest.java +src/test/java/org/openapitools/client/model/SendbirdReactionTest.java +src/test/java/org/openapitools/client/model/SendbirdSmsFallbackTest.java +src/test/java/org/openapitools/client/model/SendbirdSortedMetaarrayInnerTest.java +src/test/java/org/openapitools/client/model/SendbirdThumbnailTest.java +src/test/java/org/openapitools/client/model/SendbirdUserTest.java +src/test/java/org/openapitools/client/model/StartTypingIndicatorsRequestTest.java +src/test/java/org/openapitools/client/model/UpdateAChannelMetadataRequestTest.java +src/test/java/org/openapitools/client/model/UpdateAGroupChannelRequestTest.java +src/test/java/org/openapitools/client/model/UpdateAMessageRequestTest.java +src/test/java/org/openapitools/client/model/UpdateAUserRequestTest.java +src/test/java/org/openapitools/client/model/UpdateAnOpenChannelRequestTest.java +src/test/java/org/openapitools/client/model/UpdateBotByIdDataTest.java +src/test/java/org/openapitools/client/model/UpdateBotByIdResponseTest.java +src/test/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceRequestTest.java +src/test/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponseTest.java +src/test/java/org/openapitools/client/model/UpdateCountPreferenceOfAChannelRequestTest.java +src/test/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponseTest.java +src/test/java/org/openapitools/client/model/UpdateExtraDataInAMessageRequestTest.java +src/test/java/org/openapitools/client/model/UpdateExtraDataInAMessageResponseTest.java +src/test/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelRequestTest.java +src/test/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelResponseTest.java +src/test/java/org/openapitools/client/model/UpdatePushPreferencesRequestTest.java +src/test/java/org/openapitools/client/model/UpdatePushPreferencesResponseTest.java +src/test/java/org/openapitools/client/model/ViewBotByIdResponseBotTest.java +src/test/java/org/openapitools/client/model/ViewBotByIdResponseTest.java +src/test/java/org/openapitools/client/model/ViewCountPreferenceOfAChannelResponseTest.java +src/test/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponseTest.java +src/test/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponseTest.java +src/test/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponseTest.java +src/test/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponseTest.java +src/test/java/org/openapitools/client/model/ViewPushPreferencesForAChannelResponseTest.java +src/test/java/org/openapitools/client/model/ViewPushPreferencesResponseTest.java +src/test/java/org/sendbird/client/api/AnnouncementApiTest.java +src/test/java/org/sendbird/client/api/BotApiTest.java +src/test/java/org/sendbird/client/api/GroupChannelApiTest.java +src/test/java/org/sendbird/client/api/MessageApiTest.java +src/test/java/org/sendbird/client/api/MetadataApiTest.java +src/test/java/org/sendbird/client/api/ModerationApiTest.java +src/test/java/org/sendbird/client/api/OpenChannelApiTest.java +src/test/java/org/sendbird/client/api/StatisticsApiTest.java +src/test/java/org/sendbird/client/api/UserApiTest.java diff --git a/README.md b/README.md index 3755cee5..4c35df23 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Add these dependency to your project's POM: org.sendbird sendbird-platform-sdk - 2.0.0 + 2.1.1 ``` @@ -110,7 +110,7 @@ Add this dependency to your project's build file: ```groovy dependencies { - implementation "org.sendbird:sendbird-platform-sdk:2.0.0" + implementation "org.sendbird:sendbird-platform-sdk:2.1.1 } allprojects { @@ -137,5 +137,4 @@ All the documentation for this project lives in the /docs directory of this repo | Message | [docs/MessageApi.md](docs/MessageApi.md) | | OpenChannel | [docs/OpenChannelApi.md ](docs/OpenChannelApi.md) | | User | [docs/UserApi.md](docs/UserApi.md) | - - +| Moderation | [docs/ModerationApi.md](docs/ModerationApi.md) | diff --git a/README.md-e b/README.md-e deleted file mode 100644 index 987cae1b..00000000 --- a/README.md-e +++ /dev/null @@ -1,143 +0,0 @@ -![Sendbird banner image](http://ww1.prweb.com/prfiles/2021/09/14/18371217/Sendbird_Logo_RGB_lg.png) - -# [Sendbird Java Platform SDK](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) - - -[![link to docs](https://img.shields.io/badge/SDK-docs-green)](/docs) - -This is a Java library that makes talking to the [Sendbird Platform API](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) easier. With this library you can extend your Sendbird integration to include advanced features like channel automation and user management. - -# 🔥 Quick start - -```java - -import org.sendbird.client.ApiClient; -import org.sendbird.client.ApiException; -import org.sendbird.client.Configuration; -import org.sendbird.client.api.UserApi; -import org.openapitools.client.model.ListUsersResponse; - - -class AppTest { - static class User { - UserApi apiInstance; - public User(ApiClient defaultClient){ - apiInstance = new UserApi(defaultClient); - } - public void listUsers(){ - - try { - Integer limit = 56; - String activeMode = "activated"; - Boolean showBot = true; - ListUsersResponse result = apiInstance.listUsers().limit(limit).activeMode(activeMode).execute(); - System.out.println(result); - - } catch (ApiException e) { - System.err.println("Exception when calling listUsers"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } - } - - public static void main(String[] args) { - String apiToken = "YOUR_API_TOKEN"; - String applicationId = "YOUR_APP_ID_FROM_DASHBOARD"; - ApiClient defaultClient = Configuration.getDefaultApiClient().addDefaultHeader("Api-Token", apiToken); - defaultClient.setBasePath("https://api-" + applicationId + ".sendbird.com"); - User user = new User(defaultClient); - user.listUsers(); - } -} - -``` - -# ⚒️ Prerequisite -In order to make requests with this SDK you will need you master API token. This can be found through the [Sendbird dashboard](https://dashboard.sendbird.com/). Each app you create in Sendbird has its own master api token. These tokens can be found in Settings > Application > General. - -![how to find you api token](https://i.imgur.com/0YMKtpX.png) - -## 💻 Requirements - -Building the API client library requires: -1. Java 1.7+ -2. Maven (3.8.3+)/Gradle (7.2+) - -## ⚙️ Installation - -To install the API client library to your local Maven repository, simply execute: - -```shell -mvn clean install -``` - -To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: - -```shell -mvn clean deploy -``` - -Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. - -### Maven users - -Add these dependency to your project's POM: - -```xml - - - sendbird - https://repo.sendbird.com/public/maven - - - - - - org.sendbird - sendbird-platform-sdk - 1.0.23 - - -``` - -### Gradle users - -Add this dependency to your project's build file: - -```groovy - -dependencies { - implementation "org.sendbird:sendbird-platform-sdk:1.0.23" -} - -allprojects { - repositories { - maven { url "https://repo.sendbird.com/public/maven" } - } -} -``` - - - - - -# 🗃️ Documentation -All the documentation for this project lives in the /docs directory of this repo. - -##### Helpful links - -| | Documentation | -| ----------- | ----------- | -| Announcement | [docs/AnnouncementApi.md](docs/AnnouncementApi.md)| -| Application | [docs/ApplicationApi.md](docs/ApplicationApi.md) | -| Bot | [docs/BotApi.md](docs/BotApi.md) | -| GroupChannel | [docs/GroupChannelApi.md](docs/GroupChannelApi.md) | -| Message | [docs/MessageApi.md](docs/MessageApi.md) | -| OpenChannel | [docs/OpenChannelApi.md ](docs/OpenChannelApi.md) | -| User | [docs/UserApi.md](docs/UserApi.md) | -| Webhooks | [docs/WebhooksApi.md](docs/WebhooksApi.md) | - - diff --git a/api/openapi.yaml b/api/openapi.yaml index 51621ccd..93de521a 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,4 +1,4 @@ -openapi: 3.0.0 +openapi: 3.0.3 info: contact: email: support@sendbird.com @@ -2077,6 +2077,121 @@ paths: - Bot x-content-type: application/json x-accepts: application/json + /v3/bots/{bot_userid}: + delete: + description: |- + ## Delete a bot + + Deletes a bot from an application. + + https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot + ---------------------------- + operationId: deleteBotById + parameters: + - example: "{{API_TOKEN}}" + explode: false + in: header + name: Api-Token + required: false + schema: + type: string + style: simple + - explode: false + in: path + name: bot_userid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: Successful response + summary: Delete a bot + tags: + - Bot + x-accepts: application/json + get: + description: |- + ## View a bot + + Retrieves information on a bot. + + https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot + ---------------------------- + operationId: viewBotById + parameters: + - example: "{{API_TOKEN}}" + explode: false + in: header + name: Api-Token + required: false + schema: + type: string + style: simple + - explode: false + in: path + name: bot_userid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/viewBotByIdResponse' + description: Successful response + summary: View a bot + tags: + - Bot + x-accepts: application/json + put: + description: |- + ## Update a bot + + Updates information on a bot. + + https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot + ---------------------------- + operationId: updateBotById + parameters: + - example: "{{API_TOKEN}}" + explode: false + in: header + name: Api-Token + required: false + schema: + type: string + style: simple + - explode: false + in: path + name: bot_userid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateBotByIdData' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/updateBotByIdResponse' + description: Successful response + summary: Update a bot + tags: + - Bot + x-content-type: application/json + x-accepts: application/json /v3/bots/{bot_userid}/send: post: description: "## Send a bot message\n\nSends a bot message to a group channel.\n\ @@ -2103,9 +2218,9 @@ paths: style: simple requestBody: content: - application/json: + multipart/form-data: schema: - $ref: '#/components/schemas/sendABotMessage_request' + $ref: '#/components/schemas/SendABotMessageRequest' responses: "200": content: @@ -2116,7 +2231,7 @@ paths: summary: Send a bot's message tags: - Bot - x-content-type: application/json + x-content-type: multipart/form-data x-accepts: application/json /v3/bots/{bot_userid}/channels: delete: @@ -2523,20 +2638,20 @@ paths: \ out blocked users when a user invites a group of users to a new group channel.\ \ By default, blocked users are included when sending invitations. The value\ \ of this option can be changed by Sendbird if your Sendbird application isn't\ - \ integrated to the client app. If you want to change the value, [contact\ + \ integrated with the client app. If you want to change the value, [contact\ \ our sales team](https://get.sendbird.com/talk-to-sales.html).\n \n- **Turn\ \ on or off notifications from blocked users**: Determines whether or not\ \ to receive message notifications from the blocked user in a specific 1-to-N\ \ group channel where they are both members. By default, a user doesn't receive\ \ notifications from blocked users. The value of this option can be set individually\ \ per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html).\n\ - \ \n\n> **Note**: To learn more about other available moderation tools,\ - \ see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions).\ - \ \n \n\nThe following tables explain what happens to a user's chat experience\ - \ when the user blocks another user in a 1-to-1 or 1-to-N group channel. In\ - \ the case of a 1-to-1 group channel, the block mode is only maintained with\ - \ the original members. If other than the original members are added, the\ - \ rules for 1-to-N group channel begin to apply.\n\n[https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users)" + \n> **Note**: To learn more about other available moderation tools, see [Moderation\ + \ Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions).\ + \ The following tables explain what happens to a user's chat experience when\ + \ the user blocks another user in a 1-to-1 or 1-to-N group channel. In the\ + \ case of a 1-to-1 group channel, the block mode is only maintained with the\ + \ original members. If other than the original members are added, the rules\ + \ for 1-to-N group channel begin to apply.\n\n[https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users)" operationId: blockAUser parameters: - description: '(Required) ' @@ -4914,7 +5029,8 @@ paths: name: message_id required: true schema: - type: string + format: int64 + type: integer style: simple - explode: true in: query @@ -4977,7 +5093,8 @@ paths: name: message_id required: true schema: - type: string + format: int64 + type: integer style: simple - explode: false in: header @@ -5039,7 +5156,8 @@ paths: name: message_id required: true schema: - type: string + format: int64 + type: integer style: simple - explode: false in: header @@ -5102,7 +5220,8 @@ paths: name: message_id required: true schema: - type: string + format: int64 + type: integer style: simple - explode: false in: header @@ -5158,7 +5277,8 @@ paths: name: message_id required: true schema: - type: string + format: int64 + type: integer style: simple - explode: true in: query @@ -5255,7 +5375,8 @@ paths: name: message_id required: true schema: - type: string + format: int64 + type: integer style: simple - explode: false in: header @@ -5284,24 +5405,24 @@ paths: x-accepts: application/json components: schemas: - Sendbird.SortedMetaarray: + SendbirdSortedMetaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array - Sendbird.PushTriggerOption: + SendbirdPushTriggerOption: enum: - all - mention_only - "off" type: string - Sendbird.Thumbnail: + SendbirdThumbnail: example: - real_width: 7 + real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 properties: height: type: integer @@ -5316,26 +5437,26 @@ components: width: type: integer type: object - Sendbird.File: + SendbirdFile: example: file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 properties: url: type: string @@ -5347,17 +5468,17 @@ components: type: string thumbnails: items: - $ref: '#/components/schemas/Sendbird.Thumbnail' + $ref: '#/components/schemas/SendbirdThumbnail' type: array require_auth: type: boolean type: object - Sendbird.SmsFallback: + SendbirdSmsFallback: example: exclude_user_ids: - exclude_user_ids - exclude_user_ids - wait_seconds: 6 + wait_seconds: 1 properties: wait_seconds: type: integer @@ -5366,7 +5487,7 @@ components: type: string type: array type: object - Sendbird.DisappearingMessage: + SendbirdDisappearingMessage: example: is_triggered_by_message_read: true message_survival_seconds: 6 @@ -5376,7 +5497,7 @@ components: is_triggered_by_message_read: type: boolean type: object - Sendbird.BasicUserInfo: + SendbirdBasicUserInfo: example: metadata: "{}" require_auth_for_profile_image: true @@ -5400,17 +5521,20 @@ components: - operator type: string nickname: + nullable: true type: string user_id: type: string profile_url: + default: "" type: string metadata: + nullable: true type: object required: - user_id type: object - Sendbird.User: + SendbirdUser: description: User example: metadata: "{}" @@ -5419,29 +5543,25 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 - nullable: true + last_seen_at: 9 properties: access_token: type: string @@ -5451,6 +5571,7 @@ components: discovery_keys: items: type: string + nullable: true type: array has_ever_logged_in: type: boolean @@ -5468,15 +5589,19 @@ components: locale: type: string metadata: + nullable: true properties: {} type: object nickname: + nullable: true type: string preferred_languages: items: type: string + nullable: true type: array profile_url: + default: "" type: string require_auth_for_profile_image: type: boolean @@ -5497,14 +5622,10 @@ components: type: string is_created: type: boolean - session_tokens: - items: - type: string - type: array required: - user_id type: object - Sendbird.Member: + SendbirdMember: example: metadata: "{}" is_active: true @@ -5512,11 +5633,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -5529,7 +5650,7 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 properties: delivered_ts: format: int64 @@ -5558,6 +5679,7 @@ components: format: int64 type: integer metadata: + nullable: true properties: {} type: object muted_description: @@ -5566,12 +5688,14 @@ components: format: int64 type: integer nickname: + nullable: true type: string push_enabled: type: boolean push_trigger_option: - $ref: '#/components/schemas/Sendbird.PushTriggerOption' + $ref: '#/components/schemas/SendbirdPushTriggerOption' profile_url: + default: "" type: string require_auth_for_profile_image: type: boolean @@ -5597,14 +5721,9 @@ components: required: - user_id type: object - Sendbird.ExtendedMessagePayload: + SendbirdExtendedMessagePayload: description: Specifies the extended message payload which is used to send a message with a custom message type. - example: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" properties: custom_view: description: "JSON format you want to embed in message, eq : {\"title\"\ @@ -5617,65 +5736,65 @@ components: type: string type: array type: object - Sendbird.ParentMessageInfo: + SendbirdParentMessageInfo: example: file: file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 custom_type: custom_type files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 message: message type: type user: @@ -5685,29 +5804,26 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 + last_seen_at: 9 + ts: 5 properties: custom_type: type: string @@ -5719,17 +5835,17 @@ components: format: int64 type: integer user: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' file: - $ref: '#/components/schemas/Sendbird.File' + $ref: '#/components/schemas/SendbirdFile' files: items: - $ref: '#/components/schemas/Sendbird.File' + $ref: '#/components/schemas/SendbirdFile' type: array type: object - Sendbird.Reaction: + SendbirdReaction: example: - updated_at: 9 + updated_at: 2 user_ids: - user_ids - user_ids @@ -5745,7 +5861,7 @@ components: type: string type: array type: object - Sendbird.MessageResponse: + SendbirdMessageResponse: example: data: data message_events: @@ -5755,12 +5871,12 @@ components: update_unread_count: true custom_type: custom_type is_reply_to_channel: true - created_at: 1 + created_at: 7 is_removed: true type: type req_id: req_id file: "{}" - updated_at: 7 + updated_at: 3 translations: "{}" thread_info: "{}" mentioned_users: @@ -5781,67 +5897,67 @@ components: nickname: nickname is_blocked_by_me: true channel_type: channel_type - message_survival_seconds: 2 + message_survival_seconds: 9 silent: true - parent_message_id: 7 + parent_message_id: 4 parent_message_info: file: file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 custom_type: custom_type files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 message: message type: type user: @@ -5851,31 +5967,28 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 + last_seen_at: 9 + ts: 5 require_auth: true - message_id: 6 + message_id: 1 sorted_metaarray: - value: - value @@ -5889,56 +6002,52 @@ components: message: message channel_url: channel_url is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" + message_retention_hour: 6 + extended_message_payload: null files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 reactions: - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids key: key - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids @@ -5952,7 +6061,6 @@ components: profile_url: profile_url nickname: nickname is_blocked_by_me: true - nullable: true properties: require_auth: type: boolean @@ -5962,7 +6070,7 @@ components: type: string mentioned_users: items: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' type: array translations: type: object @@ -5973,17 +6081,17 @@ components: type: boolean reactions: items: - $ref: '#/components/schemas/Sendbird.Reaction' + $ref: '#/components/schemas/SendbirdReaction' type: array is_removed: type: boolean user: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' file: type: object files: items: - $ref: '#/components/schemas/Sendbird.File' + $ref: '#/components/schemas/SendbirdFile' type: array message: type: string @@ -6007,25 +6115,26 @@ components: channel_url: type: string message_id: + format: int64 type: integer sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array thread_info: type: object parent_message_id: type: integer parent_message_info: - $ref: '#/components/schemas/Sendbird.ParentMessageInfo' + $ref: '#/components/schemas/SendbirdParentMessageInfo' is_reply_to_channel: type: boolean message_events: - $ref: '#/components/schemas/Sendbird_MessageResponse_message_events' + $ref: '#/components/schemas/SendbirdMessageResponse_message_events' extended_message_payload: - $ref: '#/components/schemas/Sendbird.ExtendedMessagePayload' + $ref: '#/components/schemas/SendbirdMessageResponse_extended_message_payload' type: object - Sendbird.GroupChannel: + SendbirdGroupChannel: example: metadata: "{}" count_preference: "false" @@ -6038,213 +6147,8 @@ components: is_hidden: true created_at: 0 is_super: true - last_message: - data: data - message_events: - update_last_message: true - update_mention_count: true - send_push_notification: send_push_notification - update_unread_count: true - custom_type: custom_type - is_reply_to_channel: true - created_at: 1 - is_removed: true - type: type - req_id: req_id - file: "{}" - updated_at: 7 - translations: "{}" - thread_info: "{}" - mentioned_users: - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - channel_type: channel_type - message_survival_seconds: 2 - silent: true - parent_message_id: 7 - parent_message_info: - file: - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - custom_type: custom_type - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - message: message - type: type - user: - metadata: "{}" - is_active: true - preferred_languages: - - preferred_languages - - preferred_languages - require_auth_for_profile_image: true - unread_channel_count: 9 - discovery_keys: - - discovery_keys - - discovery_keys - profile_url: profile_url - is_created: true - created_at: 4 - has_ever_logged_in: true - locale: locale - unread_message_count: 9 - access_token: access_token - is_shadow_blocked: true - user_id: user_id - nickname: nickname - session_tokens: - - session_tokens - - session_tokens - phone_number: phone_number - is_online: true - state: "" - is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 - require_auth: true - message_id: 6 - sorted_metaarray: - - value: - - value - - value - key: key - - value: - - value - - value - key: key - mention_type: mention_type - message: message - channel_url: channel_url - is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - reactions: - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - user: - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - user_last_read: 3 + last_message: null + user_last_read: 1 is_discoverable: true is_muted: true joined_member_count: 5 @@ -6257,11 +6161,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -6274,18 +6178,18 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 - metadata: "{}" is_active: true is_blocking_me: true require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -6298,8 +6202,8 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 - max_length_message: 6 + last_seen_at: 3 + max_length_message: 2 my_role: "" inviter: metadata: "{}" @@ -6311,13 +6215,13 @@ components: nickname: nickname is_blocked_by_me: true push_trigger_option: null - member_count: 8 - message_survival_seconds: 1 + member_count: 7 + message_survival_seconds: 7 has_ai_bot: true cover_url: cover_url is_ephemeral: true is_exclusive: true - unread_mention_count: 5 + unread_mention_count: 6 joined_ts: 5 created_by: metadata: "{}" @@ -6329,7 +6233,7 @@ components: nickname: nickname is_blocked_by_me: true has_bot: true - unread_message_count: 6 + unread_message_count: 7 channel_url: channel_url is_broadcast: true hidden_state: hidden_allow_auto_unhide @@ -6338,16 +6242,16 @@ components: is_public: true name: name read_receipt: - key: 2 + key: 1 sms_fallback: exclude_user_ids: - exclude_user_ids - exclude_user_ids - wait_seconds: 6 + wait_seconds: 1 ignore_profanity_filter: true delivery_receipt: "{}" is_access_code_required: true - ts_message_offset: 6 + ts_message_offset: 1 properties: channel_url: type: string @@ -6364,7 +6268,7 @@ components: format: int64 type: integer created_by: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' custom_type: type: string data: @@ -6372,7 +6276,7 @@ components: delivery_receipt: type: object disappearing_message: - $ref: '#/components/schemas/Sendbird.DisappearingMessage' + $ref: '#/components/schemas/SendbirdDisappearingMessage' freeze: type: boolean has_ai_bot: @@ -6391,8 +6295,9 @@ components: format: int64 type: integer inviter: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' is_access_code_required: + nullable: true type: boolean is_broadcast: type: boolean @@ -6418,9 +6323,10 @@ components: type: integer joined_ts: format: int64 + nullable: true type: integer last_message: - $ref: '#/components/schemas/Sendbird.MessageResponse' + $ref: '#/components/schemas/SendbirdGroupChannel_last_message' max_length_message: type: integer member_count: @@ -6433,11 +6339,12 @@ components: type: string members: items: - $ref: '#/components/schemas/Sendbird.Member' + $ref: '#/components/schemas/SendbirdMember' type: array message_survival_seconds: type: integer metadata: + nullable: true type: object my_role: enum: @@ -6448,14 +6355,14 @@ components: name: type: string push_trigger_option: - $ref: '#/components/schemas/Sendbird.PushTriggerOption' + $ref: '#/components/schemas/SendbirdPushTriggerOption' read_receipt: additionalProperties: format: int64 type: integer type: object sms_fallback: - $ref: '#/components/schemas/Sendbird.SmsFallback' + $ref: '#/components/schemas/SendbirdSmsFallback' ts_message_offset: format: int64 type: integer @@ -6469,7 +6376,7 @@ components: required: - channel_url type: object - Sendbird.GroupChannelDetail: + SendbirdGroupChannelDetail: example: data: data custom_type: custom_type @@ -6496,12 +6403,12 @@ components: update_unread_count: true custom_type: custom_type is_reply_to_channel: true - created_at: 1 + created_at: 7 is_removed: true type: type req_id: req_id file: "{}" - updated_at: 7 + updated_at: 3 translations: "{}" thread_info: "{}" mentioned_users: @@ -6522,67 +6429,67 @@ components: nickname: nickname is_blocked_by_me: true channel_type: channel_type - message_survival_seconds: 2 + message_survival_seconds: 9 silent: true - parent_message_id: 7 + parent_message_id: 4 parent_message_info: file: file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 custom_type: custom_type files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 message: message type: type user: @@ -6592,31 +6499,28 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 + last_seen_at: 9 + ts: 5 require_auth: true - message_id: 6 + message_id: 1 sorted_metaarray: - value: - value @@ -6630,56 +6534,52 @@ components: message: message channel_url: channel_url is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" + message_retention_hour: 6 + extended_message_payload: null files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 reactions: - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids key: key - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids @@ -6704,56 +6604,50 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 - metadata: "{}" is_active: true preferred_languages: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 members: - metadata: "{}" is_active: true @@ -6761,11 +6655,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -6778,18 +6672,18 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 - metadata: "{}" is_active: true is_blocking_me: true require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -6802,15 +6696,15 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 max_length_message: 9 id: 2 - member_count: 3 - message_survival_seconds: 2 + member_count: 6 + message_survival_seconds: 3 has_ai_bot: true cover_url: cover_url is_ephemeral: true - unread_mention_count: 7 + unread_mention_count: 1 created_by: metadata: "{}" require_auth_for_profile_image: true @@ -6821,25 +6715,25 @@ components: nickname: nickname is_blocked_by_me: true has_bot: true - unread_message_count: 1 + unread_message_count: 2 channel_url: channel_url is_broadcast: true is_public: true name: name read_receipt: - key: 4 + key: 6 sms_fallback: exclude_user_ids: - exclude_user_ids - exclude_user_ids - wait_seconds: 6 + wait_seconds: 1 ignore_profanity_filter: true delivery_receipt: key: 5 is_access_code_required: true properties: channel: - $ref: '#/components/schemas/Sendbird_GroupChannelDetail_channel' + $ref: '#/components/schemas/SendbirdGroupChannelDetail_channel' channel_url: type: string cover_url: @@ -6848,7 +6742,7 @@ components: format: int64 type: integer created_by: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' custom_type: type: string data: @@ -6859,7 +6753,7 @@ components: type: integer type: object disappearing_message: - $ref: '#/components/schemas/Sendbird.DisappearingMessage' + $ref: '#/components/schemas/SendbirdDisappearingMessage' freeze: type: boolean has_ai_bot: @@ -6887,14 +6781,14 @@ components: joined_member_count: type: integer last_message: - $ref: '#/components/schemas/Sendbird.MessageResponse' + $ref: '#/components/schemas/SendbirdMessageResponse' max_length_message: type: integer member_count: type: integer members: items: - $ref: '#/components/schemas/Sendbird.Member' + $ref: '#/components/schemas/SendbirdMember' type: array message_survival_seconds: type: integer @@ -6902,7 +6796,7 @@ components: type: string operators: items: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' type: array read_receipt: additionalProperties: @@ -6910,7 +6804,7 @@ components: type: integer type: object sms_fallback: - $ref: '#/components/schemas/Sendbird.SmsFallback' + $ref: '#/components/schemas/SendbirdSmsFallback' unread_mention_count: type: integer unread_message_count: @@ -6918,7 +6812,7 @@ components: required: - channel_url type: object - Sendbird.OpenChannel: + SendbirdOpenChannel: example: cover_url: cover_url metadata: "{}" @@ -6973,17 +6867,18 @@ components: type: string operators: items: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' type: array participant_count: type: integer metadata: + nullable: true type: object required: - channel_url type: object createAGroupChannelResponse: - $ref: '#/components/schemas/Sendbird.GroupChannelDetail' + $ref: '#/components/schemas/SendbirdGroupChannelDetail' groupChatListChannelsResponse: example: next: next @@ -6999,213 +6894,8 @@ components: is_hidden: true created_at: 0 is_super: true - last_message: - data: data - message_events: - update_last_message: true - update_mention_count: true - send_push_notification: send_push_notification - update_unread_count: true - custom_type: custom_type - is_reply_to_channel: true - created_at: 1 - is_removed: true - type: type - req_id: req_id - file: "{}" - updated_at: 7 - translations: "{}" - thread_info: "{}" - mentioned_users: - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - channel_type: channel_type - message_survival_seconds: 2 - silent: true - parent_message_id: 7 - parent_message_info: - file: - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - custom_type: custom_type - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - message: message - type: type - user: - metadata: "{}" - is_active: true - preferred_languages: - - preferred_languages - - preferred_languages - require_auth_for_profile_image: true - unread_channel_count: 9 - discovery_keys: - - discovery_keys - - discovery_keys - profile_url: profile_url - is_created: true - created_at: 4 - has_ever_logged_in: true - locale: locale - unread_message_count: 9 - access_token: access_token - is_shadow_blocked: true - user_id: user_id - nickname: nickname - session_tokens: - - session_tokens - - session_tokens - phone_number: phone_number - is_online: true - state: "" - is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 - require_auth: true - message_id: 6 - sorted_metaarray: - - value: - - value - - value - key: key - - value: - - value - - value - key: key - mention_type: mention_type - message: message - channel_url: channel_url - is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - reactions: - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - user: - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - user_last_read: 3 + last_message: null + user_last_read: 1 is_discoverable: true is_muted: true joined_member_count: 5 @@ -7218,11 +6908,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -7235,18 +6925,18 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 - metadata: "{}" is_active: true is_blocking_me: true require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -7259,8 +6949,8 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 - max_length_message: 6 + last_seen_at: 3 + max_length_message: 2 my_role: "" inviter: metadata: "{}" @@ -7272,13 +6962,13 @@ components: nickname: nickname is_blocked_by_me: true push_trigger_option: null - member_count: 8 - message_survival_seconds: 1 + member_count: 7 + message_survival_seconds: 7 has_ai_bot: true cover_url: cover_url is_ephemeral: true is_exclusive: true - unread_mention_count: 5 + unread_mention_count: 6 joined_ts: 5 created_by: metadata: "{}" @@ -7290,7 +6980,7 @@ components: nickname: nickname is_blocked_by_me: true has_bot: true - unread_message_count: 6 + unread_message_count: 7 channel_url: channel_url is_broadcast: true hidden_state: hidden_allow_auto_unhide @@ -7299,16 +6989,16 @@ components: is_public: true name: name read_receipt: - key: 2 + key: 1 sms_fallback: exclude_user_ids: - exclude_user_ids - exclude_user_ids - wait_seconds: 6 + wait_seconds: 1 ignore_profanity_filter: true delivery_receipt: "{}" is_access_code_required: true - ts_message_offset: 6 + ts_message_offset: 1 - metadata: "{}" count_preference: "false" data: data @@ -7320,213 +7010,8 @@ components: is_hidden: true created_at: 0 is_super: true - last_message: - data: data - message_events: - update_last_message: true - update_mention_count: true - send_push_notification: send_push_notification - update_unread_count: true - custom_type: custom_type - is_reply_to_channel: true - created_at: 1 - is_removed: true - type: type - req_id: req_id - file: "{}" - updated_at: 7 - translations: "{}" - thread_info: "{}" - mentioned_users: - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - channel_type: channel_type - message_survival_seconds: 2 - silent: true - parent_message_id: 7 - parent_message_info: - file: - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - custom_type: custom_type - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - message: message - type: type - user: - metadata: "{}" - is_active: true - preferred_languages: - - preferred_languages - - preferred_languages - require_auth_for_profile_image: true - unread_channel_count: 9 - discovery_keys: - - discovery_keys - - discovery_keys - profile_url: profile_url - is_created: true - created_at: 4 - has_ever_logged_in: true - locale: locale - unread_message_count: 9 - access_token: access_token - is_shadow_blocked: true - user_id: user_id - nickname: nickname - session_tokens: - - session_tokens - - session_tokens - phone_number: phone_number - is_online: true - state: "" - is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 - require_auth: true - message_id: 6 - sorted_metaarray: - - value: - - value - - value - key: key - - value: - - value - - value - key: key - mention_type: mention_type - message: message - channel_url: channel_url - is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - reactions: - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - user: - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - user_last_read: 3 + last_message: null + user_last_read: 1 is_discoverable: true is_muted: true joined_member_count: 5 @@ -7539,11 +7024,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -7556,18 +7041,18 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 - metadata: "{}" is_active: true is_blocking_me: true require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -7580,8 +7065,8 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 - max_length_message: 6 + last_seen_at: 3 + max_length_message: 2 my_role: "" inviter: metadata: "{}" @@ -7593,13 +7078,13 @@ components: nickname: nickname is_blocked_by_me: true push_trigger_option: null - member_count: 8 - message_survival_seconds: 1 + member_count: 7 + message_survival_seconds: 7 has_ai_bot: true cover_url: cover_url is_ephemeral: true is_exclusive: true - unread_mention_count: 5 + unread_mention_count: 6 joined_ts: 5 created_by: metadata: "{}" @@ -7611,7 +7096,7 @@ components: nickname: nickname is_blocked_by_me: true has_bot: true - unread_message_count: 6 + unread_message_count: 7 channel_url: channel_url is_broadcast: true hidden_state: hidden_allow_auto_unhide @@ -7620,21 +7105,21 @@ components: is_public: true name: name read_receipt: - key: 2 + key: 1 sms_fallback: exclude_user_ids: - exclude_user_ids - exclude_user_ids - wait_seconds: 6 + wait_seconds: 1 ignore_profanity_filter: true delivery_receipt: "{}" is_access_code_required: true - ts_message_offset: 6 - ts: 3 + ts_message_offset: 1 + ts: 4 properties: channels: items: - $ref: '#/components/schemas/Sendbird.GroupChannel' + $ref: '#/components/schemas/SendbirdGroupChannel' type: array next: type: string @@ -7645,19 +7130,19 @@ components: getAGroupChannelResponse: allOf: - $ref: '#/components/schemas/getAGroupChannelResponse_allOf' - - $ref: '#/components/schemas/Sendbird.GroupChannel' + - $ref: '#/components/schemas/SendbirdGroupChannel' updateAGroupChannelResponse: - $ref: '#/components/schemas/Sendbird.GroupChannelDetail' + $ref: '#/components/schemas/SendbirdGroupChannelDetail' acceptAnInvitationResponse: - $ref: '#/components/schemas/Sendbird.GroupChannelDetail' + $ref: '#/components/schemas/SendbirdGroupChannelDetail' inviteAsMembersResponse: allOf: - - $ref: '#/components/schemas/Sendbird.GroupChannel' + - $ref: '#/components/schemas/SendbirdGroupChannel' - $ref: '#/components/schemas/inviteAsMembersResponse_allOf' joinAChannelResponse: - $ref: '#/components/schemas/Sendbird.GroupChannelDetail' + $ref: '#/components/schemas/SendbirdGroupChannelDetail' freezeAGroupChannelResponse: - $ref: '#/components/schemas/Sendbird.GroupChannelDetail' + $ref: '#/components/schemas/SendbirdGroupChannelDetail' groupChannelListMembersResponse: example: next: next @@ -7668,11 +7153,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -7685,18 +7170,18 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 - metadata: "{}" is_active: true is_blocking_me: true require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -7709,11 +7194,11 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 properties: members: items: - $ref: '#/components/schemas/Sendbird.Member' + $ref: '#/components/schemas/SendbirdMember' type: array next: type: string @@ -7784,7 +7269,7 @@ components: type: string operators: items: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' type: array type: object listBotsResponse: @@ -7812,21 +7297,8 @@ components: toggle_button_type: toggle_button_type toggle_button_url: toggle_button_url auto_open: true - ai: - feedback: true - top_p: 5 - system_message: system_message - frequency_penalty: 0 - max_tokens: 6 - stream: true - presence_penalty: 1 - temperature: 5.962133916683182 - backend: backend - model: model - instruction_mode: "" - system_message_for_context_prefix: system_message_for_context_prefix - created_at: 7 - channel_invitation_preference: 2 + created_at: 6 + channel_invitation_preference: 0 first_messages: - data: suggested_replies: @@ -7866,21 +7338,8 @@ components: toggle_button_type: toggle_button_type toggle_button_url: toggle_button_url auto_open: true - ai: - feedback: true - top_p: 5 - system_message: system_message - frequency_penalty: 0 - max_tokens: 6 - stream: true - presence_penalty: 1 - temperature: 5.962133916683182 - backend: backend - model: model - instruction_mode: "" - system_message_for_context_prefix: system_message_for_context_prefix - created_at: 7 - channel_invitation_preference: 2 + created_at: 6 + channel_invitation_preference: 0 first_messages: - data: suggested_replies: @@ -7907,119 +7366,378 @@ components: next: type: string type: object - sendABotMessageResponse: - $ref: '#/components/schemas/Sendbird.MessageResponse' - createABotResponse: + viewBotByIdResponse: example: show_member: true enable_mark_as_read: true is_privacy_mode: true bot_callback_url: bot_callback_url bot: - feedback: true bot_profile_url: bot_profile_url bot_userid: bot_userid bot_metadata: "{}" bot_type: bot_type - bot_nickname: bot_nickname bot_token: bot_token - bot_require_auth_for_profile_image: true - ai_agent_type: ai_agent_type - bot_style: - color: - accent_color: accent_color - bot_message_color: bot_message_color - theme: theme - toggle_button_type: toggle_button_type - toggle_button_url: toggle_button_url - auto_open: true - created_at: 6 + bot_nickname: bot_nickname channel_invitation_preference: 0 properties: bot: - $ref: '#/components/schemas/createABotResponse_bot' + $ref: '#/components/schemas/viewBotByIdResponse_bot' bot_callback_url: type: string - bot_style: - $ref: '#/components/schemas/createABotResponse_bot_style' - channel_invitation_preference: - type: integer - created_at: - format: int64 - type: integer enable_mark_as_read: type: boolean is_privacy_mode: type: boolean show_member: type: boolean - required: - - bot + channel_invitation_preference: + type: integer type: object - scheduleAnAnnouncementResponse: + updateBotByIdResponse: example: - create_channel_options: - cover_url: cover_url - data: data - custom_type: custom_type - name: name - distinct: true - end_at: 6 - enable_push: true - mark_as_read: true - target_at: target_at - unique_id: unique_id - target_user_count: 2 - announcement_group: announcement_group - sent_channel_count: 7 - sent_user_count: 9 - scheduled_at: 2 - open_count: 5 - message: - message_retention_hour: 1 - data: data - custom_type: custom_type - user_id: user_id - type: type - content: content - priority: priority - target_channel_count: 3 - target_channel_type: target_channel_type - completed_at: 0 - cease_at: cease_at - resume_at: resume_at - send_to_frozen_channels: true - target_custom_type: target_custom_type - create_channel: true - open_rate: 5.637376656633329 - status: status + show_member: true + enable_mark_as_read: true + is_privacy_mode: true + bot_callback_url: bot_callback_url + bot: + bot_profile_url: bot_profile_url + bot_userid: bot_userid + bot_metadata: "{}" + bot_type: bot_type + bot_token: bot_token + bot_nickname: bot_nickname + channel_invitation_preference: 0 properties: - announcement_group: - type: string - cease_at: + bot: + $ref: '#/components/schemas/viewBotByIdResponse_bot' + bot_callback_url: type: string - completed_at: - format: int64 - type: integer - create_channel: + enable_mark_as_read: type: boolean - create_channel_options: - $ref: '#/components/schemas/scheduleAnAnnouncement_request_create_channel_options' - enable_push: + is_privacy_mode: type: boolean - end_at: - format: int64 - type: integer - mark_as_read: + show_member: type: boolean - message: - $ref: '#/components/schemas/scheduleAnAnnouncementResponse_message' - open_count: + channel_invitation_preference: type: integer - open_rate: - type: number - priority: - type: string + type: object + sendABotMessageResponse: + example: + message: + data: data + message_events: + update_last_message: true + update_mention_count: true + send_push_notification: send_push_notification + update_unread_count: true + custom_type: custom_type + is_reply_to_channel: true + created_at: 7 + is_removed: true + type: type + req_id: req_id + file: "{}" + updated_at: 3 + translations: "{}" + thread_info: "{}" + mentioned_users: + - metadata: "{}" + require_auth_for_profile_image: true + is_active: true + role: "" + user_id: user_id + profile_url: profile_url + nickname: nickname + is_blocked_by_me: true + - metadata: "{}" + require_auth_for_profile_image: true + is_active: true + role: "" + user_id: user_id + profile_url: profile_url + nickname: nickname + is_blocked_by_me: true + channel_type: channel_type + message_survival_seconds: 9 + silent: true + parent_message_id: 4 + parent_message_info: + file: + file_name: file_name + file_type: file_type + require_auth: true + thumbnails: + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + url: url + file_size: 4 + custom_type: custom_type + files: + - file_name: file_name + file_type: file_type + require_auth: true + thumbnails: + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + url: url + file_size: 4 + - file_name: file_name + file_type: file_type + require_auth: true + thumbnails: + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + url: url + file_size: 4 + message: message + type: type + user: + metadata: "{}" + is_active: true + preferred_languages: + - preferred_languages + - preferred_languages + require_auth_for_profile_image: true + unread_channel_count: 6 + discovery_keys: + - discovery_keys + - discovery_keys + profile_url: profile_url + is_created: true + created_at: 9 + has_ever_logged_in: true + locale: locale + unread_message_count: 8 + access_token: access_token + is_shadow_blocked: true + user_id: user_id + nickname: nickname + phone_number: phone_number + is_online: true + state: "" + is_hide_me_from_friends: true + last_seen_at: 9 + ts: 5 + require_auth: true + message_id: 1 + sorted_metaarray: + - value: + - value + - value + key: key + - value: + - value + - value + key: key + mention_type: mention_type + message: message + channel_url: channel_url + is_op_msg: true + message_retention_hour: 6 + extended_message_payload: null + files: + - file_name: file_name + file_type: file_type + require_auth: true + thumbnails: + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + url: url + file_size: 4 + - file_name: file_name + file_type: file_type + require_auth: true + thumbnails: + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + - real_width: 1 + width: 1 + plain_url: plain_url + real_height: 1 + url: url + height: 7 + url: url + file_size: 4 + reactions: + - updated_at: 2 + user_ids: + - user_ids + - user_ids + key: key + - updated_at: 2 + user_ids: + - user_ids + - user_ids + key: key + user: + metadata: "{}" + require_auth_for_profile_image: true + is_active: true + role: "" + user_id: user_id + profile_url: profile_url + nickname: nickname + is_blocked_by_me: true + properties: + message: + $ref: '#/components/schemas/SendbirdMessageResponse' + type: object + createABotResponse: + example: + show_member: true + enable_mark_as_read: true + is_privacy_mode: true + bot_callback_url: bot_callback_url + bot: + feedback: true + bot_profile_url: bot_profile_url + bot_userid: bot_userid + bot_metadata: "{}" + bot_type: bot_type + bot_nickname: bot_nickname + bot_token: bot_token + bot_require_auth_for_profile_image: true + ai_agent_type: ai_agent_type + bot_style: + color: + accent_color: accent_color + bot_message_color: bot_message_color + theme: theme + toggle_button_type: toggle_button_type + toggle_button_url: toggle_button_url + auto_open: true + created_at: 6 + channel_invitation_preference: 0 + properties: + bot: + $ref: '#/components/schemas/createABotResponse_bot' + bot_callback_url: + type: string + bot_style: + $ref: '#/components/schemas/listBotsResponse_bots_inner_bot_style' + channel_invitation_preference: + type: integer + created_at: + format: int64 + type: integer + enable_mark_as_read: + type: boolean + is_privacy_mode: + type: boolean + show_member: + type: boolean + required: + - bot + type: object + scheduleAnAnnouncementResponse: + example: + create_channel_options: + cover_url: cover_url + data: data + custom_type: custom_type + name: name + distinct: true + end_at: 6 + enable_push: true + mark_as_read: true + target_at: target_at + unique_id: unique_id + target_user_count: 2 + announcement_group: announcement_group + sent_channel_count: 7 + sent_user_count: 9 + scheduled_at: 2 + open_count: 5 + message: + message_retention_hour: 1 + data: data + custom_type: custom_type + user_id: user_id + type: type + content: content + priority: priority + target_channel_count: 3 + target_channel_type: target_channel_type + completed_at: 0 + cease_at: cease_at + resume_at: resume_at + send_to_frozen_channels: true + target_custom_type: target_custom_type + create_channel: true + open_rate: 5.637376656633329 + status: status + properties: + announcement_group: + type: string + cease_at: + type: string + completed_at: + format: int64 + type: integer + create_channel: + type: boolean + create_channel_options: + $ref: '#/components/schemas/scheduleAnAnnouncement_request_create_channel_options' + enable_push: + type: boolean + end_at: + format: int64 + type: integer + mark_as_read: + type: boolean + message: + $ref: '#/components/schemas/scheduleAnAnnouncementResponse_message' + open_count: + type: integer + open_rate: + type: number + priority: + type: string resume_at: type: string scheduled_at: @@ -8047,11 +7765,11 @@ components: type: string type: object createAnOpenChannelResponse: - $ref: '#/components/schemas/Sendbird.OpenChannel' + $ref: '#/components/schemas/SendbirdOpenChannel' getAnOpenChannelResponse: - $ref: '#/components/schemas/Sendbird.OpenChannel' + $ref: '#/components/schemas/SendbirdOpenChannel' updateAnOpenChannelResponse: - $ref: '#/components/schemas/Sendbird.OpenChannel' + $ref: '#/components/schemas/SendbirdOpenChannel' listOpenChannelsResponse: example: next: next @@ -8118,7 +7836,7 @@ components: properties: channels: items: - $ref: '#/components/schemas/Sendbird.OpenChannel' + $ref: '#/components/schemas/SendbirdOpenChannel' type: array next: type: string @@ -8127,7 +7845,7 @@ components: type: integer type: object freezeAnOpenChannelResponse: - $ref: '#/components/schemas/Sendbird.OpenChannel' + $ref: '#/components/schemas/SendbirdOpenChannel' listBlockedUsersResponse: example: next: next @@ -8138,60 +7856,54 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 - metadata: "{}" is_active: true preferred_languages: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 properties: users: items: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' type: array next: type: string @@ -8206,60 +7918,54 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 - metadata: "{}" is_active: true preferred_languages: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 properties: users: items: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' type: array next: type: string @@ -8272,9 +7978,9 @@ components: type: integer type: object viewAUserResponse: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' updateAUserResponse: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' listUsersResponse: example: next: next @@ -8285,62 +7991,56 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 - metadata: "{}" is_active: true preferred_languages: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 + last_seen_at: 9 properties: next: type: string users: items: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' type: array type: object chooseAPushNotificationContentTemplateResponse: @@ -8351,7 +8051,7 @@ components: type: string type: object createAUserResponse: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' listRegistrationOrDeviceTokensResponse: example: tokens: @@ -8382,7 +8082,7 @@ components: type: type: string user: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' type: object addARegistrationOrDeviceTokenResponse: example: @@ -8403,7 +8103,7 @@ components: type: type: string user: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' type: object viewPushPreferencesResponse: example: @@ -8441,7 +8141,7 @@ components: push_sound: type: string push_trigger_option: - $ref: '#/components/schemas/Sendbird.PushTriggerOption' + $ref: '#/components/schemas/SendbirdPushTriggerOption' snooze_enabled: type: boolean snooze_end_ts: @@ -8493,7 +8193,7 @@ components: push_sound: type: string push_trigger_option: - $ref: '#/components/schemas/Sendbird.PushTriggerOption' + $ref: '#/components/schemas/SendbirdPushTriggerOption' snooze_enabled: type: boolean snooze_end_ts: @@ -8529,7 +8229,7 @@ components: type: string type: array user: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' type: object createUserTokenResponse: example: @@ -8553,7 +8253,7 @@ components: push_sound: type: string push_trigger_option: - $ref: '#/components/schemas/Sendbird.PushTriggerOption' + $ref: '#/components/schemas/SendbirdPushTriggerOption' type: object updatePushPreferencesForAChannelResponse: example: @@ -8566,7 +8266,7 @@ components: push_sound: type: string push_trigger_option: - $ref: '#/components/schemas/Sendbird.PushTriggerOption' + $ref: '#/components/schemas/SendbirdPushTriggerOption' type: object viewWhoOwnsARegistrationOrDeviceTokenResponse: items: @@ -8598,213 +8298,8 @@ components: is_hidden: true created_at: 0 is_super: true - last_message: - data: data - message_events: - update_last_message: true - update_mention_count: true - send_push_notification: send_push_notification - update_unread_count: true - custom_type: custom_type - is_reply_to_channel: true - created_at: 1 - is_removed: true - type: type - req_id: req_id - file: "{}" - updated_at: 7 - translations: "{}" - thread_info: "{}" - mentioned_users: - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - channel_type: channel_type - message_survival_seconds: 2 - silent: true - parent_message_id: 7 - parent_message_info: - file: - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - custom_type: custom_type - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - message: message - type: type - user: - metadata: "{}" - is_active: true - preferred_languages: - - preferred_languages - - preferred_languages - require_auth_for_profile_image: true - unread_channel_count: 9 - discovery_keys: - - discovery_keys - - discovery_keys - profile_url: profile_url - is_created: true - created_at: 4 - has_ever_logged_in: true - locale: locale - unread_message_count: 9 - access_token: access_token - is_shadow_blocked: true - user_id: user_id - nickname: nickname - session_tokens: - - session_tokens - - session_tokens - phone_number: phone_number - is_online: true - state: "" - is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 - require_auth: true - message_id: 6 - sorted_metaarray: - - value: - - value - - value - key: key - - value: - - value - - value - key: key - mention_type: mention_type - message: message - channel_url: channel_url - is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - reactions: - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - user: - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - user_last_read: 3 + last_message: null + user_last_read: 1 is_discoverable: true is_muted: true joined_member_count: 5 @@ -8817,11 +8312,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -8834,18 +8329,18 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 - metadata: "{}" is_active: true is_blocking_me: true require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -8858,8 +8353,8 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 - max_length_message: 6 + last_seen_at: 3 + max_length_message: 2 my_role: "" inviter: metadata: "{}" @@ -8871,13 +8366,13 @@ components: nickname: nickname is_blocked_by_me: true push_trigger_option: null - member_count: 8 - message_survival_seconds: 1 + member_count: 7 + message_survival_seconds: 7 has_ai_bot: true cover_url: cover_url is_ephemeral: true is_exclusive: true - unread_mention_count: 5 + unread_mention_count: 6 joined_ts: 5 created_by: metadata: "{}" @@ -8889,7 +8384,7 @@ components: nickname: nickname is_blocked_by_me: true has_bot: true - unread_message_count: 6 + unread_message_count: 7 channel_url: channel_url is_broadcast: true hidden_state: hidden_allow_auto_unhide @@ -8898,16 +8393,16 @@ components: is_public: true name: name read_receipt: - key: 2 + key: 1 sms_fallback: exclude_user_ids: - exclude_user_ids - exclude_user_ids - wait_seconds: 6 + wait_seconds: 1 ignore_profanity_filter: true delivery_receipt: "{}" is_access_code_required: true - ts_message_offset: 6 + ts_message_offset: 1 - metadata: "{}" count_preference: "false" data: data @@ -8919,213 +8414,8 @@ components: is_hidden: true created_at: 0 is_super: true - last_message: - data: data - message_events: - update_last_message: true - update_mention_count: true - send_push_notification: send_push_notification - update_unread_count: true - custom_type: custom_type - is_reply_to_channel: true - created_at: 1 - is_removed: true - type: type - req_id: req_id - file: "{}" - updated_at: 7 - translations: "{}" - thread_info: "{}" - mentioned_users: - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - channel_type: channel_type - message_survival_seconds: 2 - silent: true - parent_message_id: 7 - parent_message_info: - file: - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - custom_type: custom_type - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - message: message - type: type - user: - metadata: "{}" - is_active: true - preferred_languages: - - preferred_languages - - preferred_languages - require_auth_for_profile_image: true - unread_channel_count: 9 - discovery_keys: - - discovery_keys - - discovery_keys - profile_url: profile_url - is_created: true - created_at: 4 - has_ever_logged_in: true - locale: locale - unread_message_count: 9 - access_token: access_token - is_shadow_blocked: true - user_id: user_id - nickname: nickname - session_tokens: - - session_tokens - - session_tokens - phone_number: phone_number - is_online: true - state: "" - is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 - require_auth: true - message_id: 6 - sorted_metaarray: - - value: - - value - - value - key: key - - value: - - value - - value - key: key - mention_type: mention_type - message: message - channel_url: channel_url - is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" - files: - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - - file_name: file_name - file_type: file_type - require_auth: true - thumbnails: - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - - real_width: 7 - width: 1 - plain_url: plain_url - real_height: 4 - url: url - height: 2 - url: url - file_size: 3 - reactions: - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - - updated_at: 9 - user_ids: - - user_ids - - user_ids - key: key - user: - metadata: "{}" - require_auth_for_profile_image: true - is_active: true - role: "" - user_id: user_id - profile_url: profile_url - nickname: nickname - is_blocked_by_me: true - user_last_read: 3 + last_message: null + user_last_read: 1 is_discoverable: true is_muted: true joined_member_count: 5 @@ -9138,11 +8428,11 @@ components: require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -9155,18 +8445,18 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 + last_seen_at: 3 - metadata: "{}" is_active: true is_blocking_me: true require_auth_for_profile_image: true role: "" profile_url: profile_url - muted_end_at: 3 + muted_end_at: 2 delivered_ts: 9 do_not_disturb: true is_muted: true - read_ts: 6 + read_ts: 4 is_blocked_by_me: true friend_name: friend_name friend_discovery_key: @@ -9179,8 +8469,8 @@ components: is_online: true push_trigger_option: null state: "" - last_seen_at: 6 - max_length_message: 6 + last_seen_at: 3 + max_length_message: 2 my_role: "" inviter: metadata: "{}" @@ -9192,13 +8482,13 @@ components: nickname: nickname is_blocked_by_me: true push_trigger_option: null - member_count: 8 - message_survival_seconds: 1 + member_count: 7 + message_survival_seconds: 7 has_ai_bot: true cover_url: cover_url is_ephemeral: true is_exclusive: true - unread_mention_count: 5 + unread_mention_count: 6 joined_ts: 5 created_by: metadata: "{}" @@ -9210,7 +8500,7 @@ components: nickname: nickname is_blocked_by_me: true has_bot: true - unread_message_count: 6 + unread_message_count: 7 channel_url: channel_url is_broadcast: true hidden_state: hidden_allow_auto_unhide @@ -9219,21 +8509,21 @@ components: is_public: true name: name read_receipt: - key: 2 + key: 1 sms_fallback: exclude_user_ids: - exclude_user_ids - exclude_user_ids - wait_seconds: 6 + wait_seconds: 1 ignore_profanity_filter: true delivery_receipt: "{}" is_access_code_required: true - ts_message_offset: 6 + ts_message_offset: 1 ts: 0 properties: channels: items: - $ref: '#/components/schemas/Sendbird.GroupChannel' + $ref: '#/components/schemas/SendbirdGroupChannel' type: array next: type: string @@ -9257,7 +8547,7 @@ components: token: type: string user: - $ref: '#/components/schemas/Sendbird.BasicUserInfo' + $ref: '#/components/schemas/SendbirdBasicUserInfo' type: object viewCountPreferenceOfAChannelResponse: example: @@ -9323,12 +8613,12 @@ components: update_unread_count: true custom_type: custom_type is_reply_to_channel: true - created_at: 1 + created_at: 7 is_removed: true type: type req_id: req_id file: "{}" - updated_at: 7 + updated_at: 3 translations: "{}" thread_info: "{}" mentioned_users: @@ -9349,67 +8639,67 @@ components: nickname: nickname is_blocked_by_me: true channel_type: channel_type - message_survival_seconds: 2 + message_survival_seconds: 9 silent: true - parent_message_id: 7 + parent_message_id: 4 parent_message_info: file: file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 custom_type: custom_type files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 message: message type: type user: @@ -9419,31 +8709,28 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 + last_seen_at: 9 + ts: 5 require_auth: true - message_id: 6 + message_id: 1 sorted_metaarray: - value: - value @@ -9457,56 +8744,52 @@ components: message: message channel_url: channel_url is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" + message_retention_hour: 6 + extended_message_payload: null files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 reactions: - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids key: key - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids @@ -9528,12 +8811,12 @@ components: update_unread_count: true custom_type: custom_type is_reply_to_channel: true - created_at: 1 + created_at: 7 is_removed: true type: type req_id: req_id file: "{}" - updated_at: 7 + updated_at: 3 translations: "{}" thread_info: "{}" mentioned_users: @@ -9554,67 +8837,67 @@ components: nickname: nickname is_blocked_by_me: true channel_type: channel_type - message_survival_seconds: 2 + message_survival_seconds: 9 silent: true - parent_message_id: 7 + parent_message_id: 4 parent_message_info: file: file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 custom_type: custom_type files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 message: message type: type user: @@ -9624,31 +8907,28 @@ components: - preferred_languages - preferred_languages require_auth_for_profile_image: true - unread_channel_count: 9 + unread_channel_count: 6 discovery_keys: - discovery_keys - discovery_keys profile_url: profile_url is_created: true - created_at: 4 + created_at: 9 has_ever_logged_in: true locale: locale - unread_message_count: 9 + unread_message_count: 8 access_token: access_token is_shadow_blocked: true user_id: user_id nickname: nickname - session_tokens: - - session_tokens - - session_tokens phone_number: phone_number is_online: true state: "" is_hide_me_from_friends: true - last_seen_at: 5 - ts: 1 + last_seen_at: 9 + ts: 5 require_auth: true - message_id: 6 + message_id: 1 sorted_metaarray: - value: - value @@ -9662,56 +8942,52 @@ components: message: message channel_url: channel_url is_op_msg: true - message_retention_hour: 1 - extended_message_payload: - suggested_replies: - - suggested_replies - - suggested_replies - custom_view: "{}" + message_retention_hour: 6 + extended_message_payload: null files: - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 - file_name: file_name file_type: file_type require_auth: true thumbnails: - - real_width: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 - - real_width: 7 + height: 7 + - real_width: 1 width: 1 plain_url: plain_url - real_height: 4 + real_height: 1 url: url - height: 2 + height: 7 url: url - file_size: 3 + file_size: 4 reactions: - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids key: key - - updated_at: 9 + - updated_at: 2 user_ids: - user_ids - user_ids @@ -9728,7 +9004,7 @@ components: properties: messages: items: - $ref: '#/components/schemas/Sendbird.MessageResponse' + $ref: '#/components/schemas/SendbirdMessageResponse' type: array type: object sendTextMessageRequestBody: @@ -9777,7 +9053,7 @@ components: type: boolean sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array sound: type: string @@ -9804,7 +9080,7 @@ components: dedup_id: type: string files: - $ref: '#/components/schemas/Sendbird.File' + $ref: '#/components/schemas/SendbirdFile' is_silent: type: boolean mark_as_read: @@ -9845,7 +9121,7 @@ components: type: boolean sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array sound: type: string @@ -9901,14 +9177,14 @@ components: type: boolean sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array required: - message - message_type type: object sendAMessageResponse: - $ref: '#/components/schemas/Sendbird.MessageResponse' + $ref: '#/components/schemas/SendbirdMessageResponse' getTotalNumberOfMessagesInAChannelResponse: example: total: 0 @@ -9930,7 +9206,7 @@ components: properties: sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array type: object addExtraDataToAMessageResponse: @@ -9947,13 +9223,13 @@ components: properties: sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array type: object getAMessageResponse: - $ref: '#/components/schemas/Sendbird.MessageResponse' + $ref: '#/components/schemas/SendbirdMessageResponse' updateAMessageResponse: - $ref: '#/components/schemas/Sendbird.MessageResponse' + $ref: '#/components/schemas/SendbirdMessageResponse' emptyObjectResponse: properties: {} type: object @@ -10066,26 +9342,123 @@ components: format: int64 type: integer custom_type: - maxLength: 128 + maxLength: 128 + type: string + is_silent: + type: boolean + mentioned_user_ids: + items: + type: string + type: array + data: + type: string + dedup_id: + type: string + sorted_metaarray: + items: + type: object + type: array + required: + - message + - message_type + - timestamp + type: object + SendABotMessageRequest: + properties: + message_type: + description: "Specifies the type of message to send. MESG for text message,\ + \ FILE for file message." + enum: + - MESG + - FILE + type: string + channel_url: + description: Specifies the URL of the channel to send the message to. + type: string + message: + description: Specifies the content of the message. * This property is required + when message_type is MESG. + type: string + mentioned: + description: '* This property is available when message_type is MESG.' + items: + type: string + type: array + extended_message_payload: + $ref: '#/components/schemas/SendbirdExtendedMessagePayload' + file: + description: "When sending a single file with a message, specifies the data\ + \ of the file to upload to the Sendbird server in raw binary format. When\ + \ sending a request containing a file, change the value of the content-type\ + \ header to multipart/form-data;boundary={your_unique_boundary_string}\ + \ in the request. * This property is required when message_type is FILE.\ + \ * This doesn't allow a converted base64-encoded string from a file as\ + \ its value." + format: binary + type: string + x-ts-type: FileCompat + require_auth: + description: "Determines whether to require an authentication key to verify\ + \ if the file is being properly accessed. Only the user who uploaded the\ + \ file or users who are in the channel where the file was uploaded should\ + \ have access. The authentication key managed internally by the Sendbird\ + \ system is generated every time a user logs in to the Sendbird server\ + \ and is valid for three days starting from the last login. If set to\ + \ false, Sendbird tries to access a file without any key. To access encrypted\ + \ files, such as the files in the Sendbird server which are by default\ + \ encrypted, the property must be set to true. (Default: false) The require_auth\ + \ parameter only works if the file or URL is managed by Sendbird, which\ + \ means that when you upload files using multipart format or provide URLs\ + \ that point to the files hosted on the Sendbird server. However, if the\ + \ file is hosted on a server or service that is not managed by Sendbird,\ + \ access control and authentication for the file should be handled by\ + \ the respective server or service hosting the file. * This property is\ + \ available when message_type is FILE." + type: boolean + mention_type: + description: '* This property is available when message_type is FILE.' + enum: + - users + - channel + type: string + mentioned_user_ids: + description: '* This property is available when message_type is FILE.' + items: + type: string + type: array + is_silent: + description: '* This property is available when message_type is FILE.' + type: boolean + sorted_metaarray: + $ref: '#/components/schemas/SendbirdSortedMetaarray' + apns_bundle_id: + description: '* This property is available when message_type is FILE.' + type: string + apple_critical_alert_options: + description: '* This property is available when message_type is FILE.' + type: object + sound: + description: '* This property is available when message_type is FILE.' + type: string + volume: + description: '* This property is available when message_type is FILE.' + type: number + created_at: + format: int64 + type: integer + custom_type: type: string - is_silent: - type: boolean - mentioned_user_ids: - items: - type: string - type: array data: type: string dedup_id: type: string - sorted_metaarray: - items: - type: object - type: array + mark_as_read: + type: boolean + send_push: + type: boolean required: - - message + - channel_url - message_type - - timestamp type: object scheduleAnAnnouncement_request_create_channel_options: example: @@ -10165,8 +9538,10 @@ components: createAGroupChannel_request: properties: access_code: + nullable: true type: string block_sdk_user_channel_join: + nullable: true type: boolean channel_url: type: string @@ -10220,7 +9595,7 @@ components: type: array users: items: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' type: array required: - users @@ -10228,6 +9603,7 @@ components: updateAGroupChannel_request: properties: access_code: + nullable: true type: string cover_file: format: binary @@ -10254,6 +9630,7 @@ components: acceptAnInvitation_request: properties: access_code: + nullable: true type: string user_id: type: string @@ -10342,6 +9719,7 @@ components: description: "This property should be specified if the public group channel\ \ to join requires an access code to users, which means that the is_access_code_required\ \ property of the channel resource is true." + nullable: true type: string required: - user_id @@ -10491,34 +9869,55 @@ components: - bot_userid - is_privacy_mode type: object - sendABotMessage_request: + updateBotByIdData: properties: - channel_url: + bot_userid: + description: Specifies the ID of the bot to update. type: string - created_at: - format: int64 - type: integer - custom_type: + bot_nickname: + description: Specifies the bot's nickname. The length is limited to 80 characters. type: string - data: + bot_profile_url: + description: "Specifies the URL of the bot's profile image. The size is\ + \ limited to 2,048 characters." type: string - dedup_id: + bot_callback_url: + description: "Specifies the server URL where bot is located to receive all\ + \ events, requests, and data forwarded from an application. For security\ + \ reasons, it is highly recommended that you use an SSL server. The length\ + \ is limited to 1,024 characters." type: string - extended_message_payload: - $ref: '#/components/schemas/Sendbird.ExtendedMessagePayload' - mark_as_read: + is_privacy_mode: + description: "In the channels of where the bot is a member, determines whether\ + \ to only forward the messages with the specific conditions to the bot\ + \ or forword all messages to the bot, for privacy concerns. If set to\ + \ true, only messages that start with a '/' or mention the bot_userid\ + \ are forwarded to the bot. If set to false, all messages are forwarded." type: boolean - mentioned: - items: - type: string - type: array - message: - type: string - send_push: + enable_mark_as_read: + description: "Determines whether to mark the bot's message as read upon\ + \ sending it. (Default: true)" + type: boolean + show_member: + description: "Determines whether to include information about the members\ + \ of each channel in a callback response. (Default: false)" type: boolean + channel_invitation_preference: + description: "Determines whether the bot automatically joins the channel\ + \ when invited or joins the channel after manually accepting an invitation\ + \ using the API. If set to 0, it automatically joins the channel. If set\ + \ to 1, the latter takes place. (Default: 0)" + type: integer required: - - channel_url - - message + - bot_callback_url + - bot_nickname + - bot_profile_url + - bot_userid + - channel_invitation_preference + - enable_mark_as_read + - is_privacy_mode + - show_member + title: updateBotByIdData type: object joinChannels_request: properties: @@ -10534,12 +9933,15 @@ components: discovery_keys: items: type: string + nullable: true type: array issue_access_token: type: boolean metadata: + nullable: true type: object nickname: + nullable: true type: string profile_file: description: "Specifies the file of the user's profile image. An acceptable\ @@ -10549,6 +9951,7 @@ components: format: binary type: string profile_url: + default: "" type: string user_id: type: string @@ -10589,6 +9992,7 @@ components: discovery_keys: items: type: string + nullable: true type: array is_active: type: boolean @@ -10600,15 +10004,18 @@ components: leave_all_when_deactivated: type: boolean nickname: + nullable: true type: string preferred_languages: items: type: string + nullable: true type: array profile_file: format: binary type: string profile_url: + nullable: true type: string type: object chooseAPushNotificationContentTemplate_request: @@ -10651,7 +10058,7 @@ components: push_sound: type: string push_trigger_option: - $ref: '#/components/schemas/Sendbird.PushTriggerOption' + $ref: '#/components/schemas/SendbirdPushTriggerOption' snooze_enabled: type: boolean snooze_end_ts: @@ -10714,6 +10121,7 @@ components: updateAChannelMetadata_request: properties: metadata: + nullable: true type: object upsert: type: boolean @@ -10725,6 +10133,7 @@ components: include_ts: type: boolean metadata: + nullable: true type: object required: - metadata @@ -10736,18 +10145,149 @@ components: user_id: type: string type: object - sendAMessage_request: + sendAMessage_request_push_message_template_oneOf: + properties: + title: + description: "Specifies the title of the custom push notification template.\ + \ You can customize the title using the variables sender_name and message,\ + \ which can be later replaced with corresponding real values when the\ + \ template is sent out as a notification request to FCM, HMS, or APNs." + type: string + body: + description: "Specifies the body of the custom push notification template.\ + \ You can customize the body using the variables sender_name and message,\ + \ which can be later replaced with corresponding real values when the\ + \ template is sent out as a notification request to FCM, HMS, or APNs.\n\ + If not specified, the body by default contains the message content inside\ + \ the message property." + type: string + type: object + sendAMessage_request_push_message_template: + description: "Specifies the content of a push notification customized for the\ + \ message. This property only applies to group channels.\nTo choose from a\ + \ push notification content template within your Sendbird application, specify\ + \ a string value of default or alternative.\nTo create a new push notification\ + \ content tailored to the message being sent, use the properties listed below\ + \ to specify its title and body in a nested object format.\n* This property\ + \ overrides the application's default push notification content template or\ + \ the preference chosen by the user. * This property is available when message_type\ + \ is MESG or ADMM." oneOf: - - $ref: '#/components/schemas/sendTextMessageRequestBody' - - $ref: '#/components/schemas/sendFileMessageRequestBody' - - $ref: '#/components/schemas/sendAdminMessageRequestBody' + - type: string + - $ref: '#/components/schemas/sendAMessage_request_push_message_template_oneOf' + type: string + sendAMessage_request: + properties: + message_type: + enum: + - MESG + - ADMM + - FILE + type: string + user_id: + type: string + message: + description: |- + Specifies the content of the message. + * This property is required when message_type is MESG or ADMM. + type: string + push_message_template: + $ref: '#/components/schemas/sendAMessage_request_push_message_template' + poll_id: + description: |- + Specifies the ID of the poll to be associated with the message. + * This property is only available for group channels and message_type is MESG. + type: integer + files: + $ref: '#/components/schemas/SendbirdFile' + require_auth: + description: "Determines whether to require an authentication key to verify\ + \ if the file is being properly accessed. Only the user who uploaded the\ + \ file or users who are in the channel where the file was uploaded should\ + \ have access. The authentication key managed internally by the Sendbird\ + \ system is generated every time a user logs in to the Sendbird server\ + \ and is valid for three days starting from the last login. If set to\ + \ false, Sendbird tries to access a file without any key. To access encrypted\ + \ files, such as the files in the Sendbird server which are by default\ + \ encrypted, the property must be set to true. (Default: false)\nThe require_auth\ + \ parameter only works if the file or URL is managed by Sendbird, which\ + \ means that when you upload files using multipart format or provide URLs\ + \ that point to the files hosted on the Sendbird server. However, if the\ + \ file is hosted on a server or service that is not managed by Sendbird,\ + \ access control and authentication for the file should be handled by\ + \ the respective server or service hosting the file." + type: boolean + thumbnail1: + description: |- + Specifies the URL of the thumbnail of the file. + * This property is available when message_type is FILE. + type: string + thumbnail2: + description: |- + Specifies the URL of the thumbnail of the file. + * This property is available when message_type is FILE. + type: string + thumbnail3: + description: |- + Specifies the URL of the thumbnail of the file. + * This property is available when message_type is FILE. + type: string + thumbnails: + description: |- + Specifies the URL of the thumbnail of the file. + * This property is available when message_type is FILE. + items: + type: string + type: array + apns_bundle_id: + type: string + apple_critical_alert_options: + type: object + created_at: + format: int64 + type: integer + custom_type: + type: string + data: + type: string + dedup_id: + type: string + include_poll_details: + type: boolean + is_silent: + type: boolean + mark_as_read: + type: boolean + mention_type: + enum: + - users + - channel + type: string + mentioned_user_ids: + items: + type: string + type: array + send_push: + type: boolean + sorted_metaarray: + items: + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' + type: array + sound: + type: string + volume: + type: number + required: + - message_type + - user_id + type: object updateExtraDataInAMessage_request: properties: mode: type: string sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array upsert: type: boolean @@ -10756,7 +10296,7 @@ components: properties: sorted_metaarray: items: - $ref: '#/components/schemas/Sendbird_SortedMetaarray_inner' + $ref: '#/components/schemas/SendbirdSortedMetaarray_inner' type: array required: - sorted_metaarray @@ -10786,7 +10326,7 @@ components: required: - message_type type: object - Sendbird_SortedMetaarray_inner: + SendbirdSortedMetaarray_inner: example: value: - value @@ -10800,7 +10340,7 @@ components: type: string type: array type: object - Sendbird_MessageResponse_message_events: + SendbirdMessageResponse_message_events: example: update_last_message: true update_mention_count: true @@ -10817,7 +10357,13 @@ components: update_last_message: type: boolean type: object - Sendbird_GroupChannelDetail_channel: + SendbirdMessageResponse_extended_message_payload: + oneOf: + - $ref: '#/components/schemas/SendbirdExtendedMessagePayload' + SendbirdGroupChannel_last_message: + oneOf: + - $ref: '#/components/schemas/SendbirdMessageResponse' + SendbirdGroupChannelDetail_channel: example: cover_url: cover_url data: data @@ -10849,55 +10395,15 @@ components: getAGroupChannelResponse_allOf: properties: channel: - $ref: '#/components/schemas/Sendbird_GroupChannelDetail_channel' + $ref: '#/components/schemas/SendbirdGroupChannelDetail_channel' type: object inviteAsMembersResponse_allOf: properties: operators: items: - $ref: '#/components/schemas/Sendbird.User' + $ref: '#/components/schemas/SendbirdUser' type: array type: object - listBotsResponse_bots_inner_ai: - example: - feedback: true - top_p: 5 - system_message: system_message - frequency_penalty: 0 - max_tokens: 6 - stream: true - presence_penalty: 1 - temperature: 5.962133916683182 - backend: backend - model: model - instruction_mode: "" - system_message_for_context_prefix: system_message_for_context_prefix - properties: - backend: - type: string - feedback: - type: boolean - frequency_penalty: - type: integer - instruction_mode: - nullable: true - max_tokens: - type: integer - model: - type: string - presence_penalty: - type: integer - stream: - type: boolean - system_message: - type: string - system_message_for_context_prefix: - type: string - temperature: - type: number - top_p: - type: integer - type: object listBotsResponse_bots_inner_bot: example: bot_profile_url: bot_profile_url @@ -11029,21 +10535,8 @@ components: toggle_button_type: toggle_button_type toggle_button_url: toggle_button_url auto_open: true - ai: - feedback: true - top_p: 5 - system_message: system_message - frequency_penalty: 0 - max_tokens: 6 - stream: true - presence_penalty: 1 - temperature: 5.962133916683182 - backend: backend - model: model - instruction_mode: "" - system_message_for_context_prefix: system_message_for_context_prefix - created_at: 7 - channel_invitation_preference: 2 + created_at: 6 + channel_invitation_preference: 0 first_messages: - data: suggested_replies: @@ -11063,8 +10556,6 @@ components: message: message enabled: true properties: - ai: - $ref: '#/components/schemas/listBotsResponse_bots_inner_ai' bot: $ref: '#/components/schemas/listBotsResponse_bots_inner_bot' bot_callback_url: @@ -11089,6 +10580,28 @@ components: show_member: type: boolean type: object + viewBotByIdResponse_bot: + example: + bot_profile_url: bot_profile_url + bot_userid: bot_userid + bot_metadata: "{}" + bot_type: bot_type + bot_token: bot_token + bot_nickname: bot_nickname + properties: + bot_token: + type: string + bot_profile_url: + type: string + bot_userid: + type: string + bot_nickname: + type: string + bot_type: + type: string + bot_metadata: + type: object + type: object createABotResponse_bot: example: feedback: true @@ -11123,27 +10636,6 @@ components: required: - bot_userid type: object - createABotResponse_bot_style: - example: - color: - accent_color: accent_color - bot_message_color: bot_message_color - theme: theme - toggle_button_type: toggle_button_type - toggle_button_url: toggle_button_url - auto_open: true - properties: - auto_open: - type: boolean - color: - $ref: '#/components/schemas/listBotsResponse_bots_inner_bot_style_color' - toggle_button_type: - nullable: true - type: string - toggle_button_url: - nullable: false - type: string - type: object scheduleAnAnnouncementResponse_message: example: message_retention_hour: 1 @@ -11166,23 +10658,6 @@ components: user_id: type: string type: object - sendTextMessageRequestBody_push_message_template_oneOf: - properties: - title: - description: "Specifies the title of the custom push notification template.\ - \ You can customize the title using the variables sender_name and message,\ - \ which can be later replaced with corresponding real values when the\ - \ template is sent out as a notification request to FCM, HMS, or APNs." - type: string - body: - description: "Specifies the body of the custom push notification template.\ - \ You can customize the body using the variables sender_name and message,\ - \ which can be later replaced with corresponding real values when the\ - \ template is sent out as a notification request to FCM, HMS, or APNs.\n\ - If not specified, the body by default contains the message content inside\ - \ the message property." - type: string - type: object sendTextMessageRequestBody_push_message_template: description: "Specifies the content of a push notification customized for the\ \ message. This property only applies to group channels.\nTo choose from a\ @@ -11194,7 +10669,7 @@ components: \ the preference chosen by the user." oneOf: - type: string - - $ref: '#/components/schemas/sendTextMessageRequestBody_push_message_template_oneOf' + - $ref: '#/components/schemas/sendAMessage_request_push_message_template_oneOf' type: string MigrateMessagesRequest_messages_inner: oneOf: diff --git a/build.gradle b/build.gradle index 48146bce..eb1344ab 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'org.sendbird' -version = '2.0.0' +version = '2.1.1' buildscript { repositories { diff --git a/build.sbt b/build.sbt index c7a9adbc..e15db1b6 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "org.sendbird", name := "sendbird-platform-sdk", - version := "2.0.0", + version := "2.1.1", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/BotApi.md b/docs/BotApi.md index 8216390f..ceea5ed3 100644 --- a/docs/BotApi.md +++ b/docs/BotApi.md @@ -5,11 +5,14 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createABot**](BotApi.md#createABot) | **POST** /v3/bots | Create a bot | +| [**deleteBotById**](BotApi.md#deleteBotById) | **DELETE** /v3/bots/{bot_userid} | Delete a bot | | [**joinChannels**](BotApi.md#joinChannels) | **POST** /v3/bots/{bot_userid}/channels | Join channels | | [**leaveAGroupChannel**](BotApi.md#leaveAGroupChannel) | **DELETE** /v3/bots/{bot_userid}/channels/{channel_url} | Leave channels - When leaving a specific channel | | [**leaveGroupChannels**](BotApi.md#leaveGroupChannels) | **DELETE** /v3/bots/{bot_userid}/channels | Leave channels - When leaving all channels | | [**listBots**](BotApi.md#listBots) | **GET** /v3/bots | List bots | | [**sendABotMessage**](BotApi.md#sendABotMessage) | **POST** /v3/bots/{bot_userid}/send | Send a bot's message | +| [**updateBotById**](BotApi.md#updateBotById) | **PUT** /v3/bots/{bot_userid} | Update a bot | +| [**viewBotById**](BotApi.md#viewBotById) | **GET** /v3/bots/{bot_userid} | View a bot | @@ -90,6 +93,80 @@ No authorization required | **200** | Successful response | - | +## deleteBotById + +> Object deleteBotById(botUserid).apiToken(apiToken).execute(); + +Delete a bot + +## Delete a bot + +Deletes a bot from an application. + +https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot +---------------------------- + +### Example + +```java +// Import classes: +import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; +import org.sendbird.client.Configuration; +import org.sendbird.client.model.*; +import org.sendbird.client.api.BotApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api-APP_ID.sendbird.com"); + + BotApi apiInstance = new BotApi(defaultClient); + String botUserid = "botUserid_example"; // String | + String apiToken = "{{API_TOKEN}}"; // String | + try { + Object result = api.deleteBotById(botUserid) + .apiToken(apiToken) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BotApi#deleteBotById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **botUserid** | **String**| | | +| **apiToken** | **String**| | [optional] | + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | + + ## joinChannels > SendbirdGroupChannelDetail joinChannels(botUserid).apiToken(apiToken).joinChannelsRequest(joinChannelsRequest).execute(); @@ -393,7 +470,7 @@ No authorization required ## sendABotMessage -> SendbirdMessageResponse sendABotMessage(botUserid).apiToken(apiToken).sendABotMessageRequest(sendABotMessageRequest).execute(); +> SendABotMessageResponse sendABotMessage(botUserid).messageType(messageType).channelUrl(channelUrl).apiToken(apiToken).message(message).mentioned(mentioned).extendedMessagePayload(extendedMessagePayload)._file(_file).requireAuth(requireAuth).mentionType(mentionType).mentionedUserIds(mentionedUserIds).isSilent(isSilent).sortedMetaarray(sortedMetaarray).apnsBundleId(apnsBundleId).appleCriticalAlertOptions(appleCriticalAlertOptions).sound(sound).volume(volume).createdAt(createdAt).customType(customType).data(data).dedupId(dedupId).markAsRead(markAsRead).sendPush(sendPush).execute(); Send a bot's message @@ -410,6 +487,8 @@ Description: Specifies the ID of the bot to send a message. ### Example ```java +import java.io.File; +import java.math.BigDecimal; // Import classes: import org.sendbird.client.ApiClient; import org.sendbird.client.ApiException; @@ -424,12 +503,52 @@ public class Example { BotApi apiInstance = new BotApi(defaultClient); String botUserid = "botUserid_example"; // String | (Required) + String messageType = "MESG"; // String | Specifies the type of message to send. MESG for text message, FILE for file message. + String channelUrl = "channelUrl_example"; // String | Specifies the URL of the channel to send the message to. String apiToken = "{{API_TOKEN}}"; // String | - SendABotMessageRequest sendABotMessageRequest = new SendABotMessageRequest(); // SendABotMessageRequest | + String message = "message_example"; // String | Specifies the content of the message. * This property is required when message_type is MESG. + List mentioned = Arrays.asList(); // List | * This property is available when message_type is MESG. + SendbirdExtendedMessagePayload extendedMessagePayload = new SendbirdExtendedMessagePayload(); // SendbirdExtendedMessagePayload | + File _file = new File("/path/to/file"); // File | When sending a single file with a message, specifies the data of the file to upload to the Sendbird server in raw binary format. When sending a request containing a file, change the value of the content-type header to multipart/form-data;boundary={your_unique_boundary_string} in the request. * This property is required when message_type is FILE. * This doesn't allow a converted base64-encoded string from a file as its value. + Boolean requireAuth = true; // Boolean | Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. * This property is available when message_type is FILE. + String mentionType = "users"; // String | * This property is available when message_type is FILE. + List mentionedUserIds = Arrays.asList(); // List | * This property is available when message_type is FILE. + Boolean isSilent = true; // Boolean | * This property is available when message_type is FILE. + List sortedMetaarray = Arrays.asList(); // List | + String apnsBundleId = "apnsBundleId_example"; // String | * This property is available when message_type is FILE. + Object appleCriticalAlertOptions = null; // Object | * This property is available when message_type is FILE. + String sound = "sound_example"; // String | * This property is available when message_type is FILE. + BigDecimal volume = new BigDecimal(78); // BigDecimal | * This property is available when message_type is FILE. + Long createdAt = 56L; // Long | + String customType = "customType_example"; // String | + String data = "data_example"; // String | + String dedupId = "dedupId_example"; // String | + Boolean markAsRead = true; // Boolean | + Boolean sendPush = true; // Boolean | try { - SendbirdMessageResponse result = api.sendABotMessage(botUserid) + SendABotMessageResponse result = api.sendABotMessage(botUserid) + .messageType(messageType) + .channelUrl(channelUrl) .apiToken(apiToken) - .sendABotMessageRequest(sendABotMessageRequest) + .message(message) + .mentioned(mentioned) + .extendedMessagePayload(extendedMessagePayload) + ._file(_file) + .requireAuth(requireAuth) + .mentionType(mentionType) + .mentionedUserIds(mentionedUserIds) + .isSilent(isSilent) + .sortedMetaarray(sortedMetaarray) + .apnsBundleId(apnsBundleId) + .appleCriticalAlertOptions(appleCriticalAlertOptions) + .sound(sound) + .volume(volume) + .createdAt(createdAt) + .customType(customType) + .data(data) + .dedupId(dedupId) + .markAsRead(markAsRead) + .sendPush(sendPush) .execute(); System.out.println(result); } catch (ApiException e) { @@ -449,12 +568,109 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **botUserid** | **String**| (Required) | | +| **messageType** | **String**| Specifies the type of message to send. MESG for text message, FILE for file message. | [enum: MESG, FILE] | +| **channelUrl** | **String**| Specifies the URL of the channel to send the message to. | | +| **apiToken** | **String**| | [optional] | +| **message** | **String**| Specifies the content of the message. * This property is required when message_type is MESG. | [optional] | +| **mentioned** | **List<String>**| * This property is available when message_type is MESG. | [optional] | +| **extendedMessagePayload** | [**SendbirdExtendedMessagePayload**](SendbirdExtendedMessagePayload.md)| | [optional] | +| **_file** | **File**| When sending a single file with a message, specifies the data of the file to upload to the Sendbird server in raw binary format. When sending a request containing a file, change the value of the content-type header to multipart/form-data;boundary={your_unique_boundary_string} in the request. * This property is required when message_type is FILE. * This doesn't allow a converted base64-encoded string from a file as its value. | [optional] | +| **requireAuth** | **Boolean**| Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. * This property is available when message_type is FILE. | [optional] | +| **mentionType** | **String**| * This property is available when message_type is FILE. | [optional] [enum: users, channel] | +| **mentionedUserIds** | **List<String>**| * This property is available when message_type is FILE. | [optional] | +| **isSilent** | **Boolean**| * This property is available when message_type is FILE. | [optional] | +| **sortedMetaarray** | [**List<SendbirdSortedMetaarrayInner>**](SendbirdSortedMetaarrayInner.md)| | [optional] | +| **apnsBundleId** | **String**| * This property is available when message_type is FILE. | [optional] | +| **appleCriticalAlertOptions** | **Object**| * This property is available when message_type is FILE. | [optional] | +| **sound** | **String**| * This property is available when message_type is FILE. | [optional] | +| **volume** | **BigDecimal**| * This property is available when message_type is FILE. | [optional] | +| **createdAt** | **Long**| | [optional] | +| **customType** | **String**| | [optional] | +| **data** | **String**| | [optional] | +| **dedupId** | **String**| | [optional] | +| **markAsRead** | **Boolean**| | [optional] | +| **sendPush** | **Boolean**| | [optional] | + +### Return type + +[**SendABotMessageResponse**](SendABotMessageResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | + + +## updateBotById + +> UpdateBotByIdResponse updateBotById(botUserid).apiToken(apiToken).updateBotByIdData(updateBotByIdData).execute(); + +Update a bot + +## Update a bot + +Updates information on a bot. + +https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot +---------------------------- + +### Example + +```java +// Import classes: +import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; +import org.sendbird.client.Configuration; +import org.sendbird.client.model.*; +import org.sendbird.client.api.BotApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api-APP_ID.sendbird.com"); + + BotApi apiInstance = new BotApi(defaultClient); + String botUserid = "botUserid_example"; // String | + String apiToken = "{{API_TOKEN}}"; // String | + UpdateBotByIdData updateBotByIdData = new UpdateBotByIdData(); // UpdateBotByIdData | + try { + UpdateBotByIdResponse result = api.updateBotById(botUserid) + .apiToken(apiToken) + .updateBotByIdData(updateBotByIdData) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BotApi#updateBotById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **botUserid** | **String**| | | | **apiToken** | **String**| | [optional] | -| **sendABotMessageRequest** | [**SendABotMessageRequest**](SendABotMessageRequest.md)| | [optional] | +| **updateBotByIdData** | [**UpdateBotByIdData**](UpdateBotByIdData.md)| | [optional] | ### Return type -[**SendbirdMessageResponse**](SendbirdMessageResponse.md) +[**UpdateBotByIdResponse**](UpdateBotByIdResponse.md) ### Authorization @@ -470,3 +686,77 @@ No authorization required |-------------|-------------|------------------| | **200** | Successful response | - | + +## viewBotById + +> ViewBotByIdResponse viewBotById(botUserid).apiToken(apiToken).execute(); + +View a bot + +## View a bot + +Retrieves information on a bot. + +https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot +---------------------------- + +### Example + +```java +// Import classes: +import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; +import org.sendbird.client.Configuration; +import org.sendbird.client.model.*; +import org.sendbird.client.api.BotApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api-APP_ID.sendbird.com"); + + BotApi apiInstance = new BotApi(defaultClient); + String botUserid = "botUserid_example"; // String | + String apiToken = "{{API_TOKEN}}"; // String | + try { + ViewBotByIdResponse result = api.viewBotById(botUserid) + .apiToken(apiToken) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BotApi#viewBotById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **botUserid** | **String**| | | +| **apiToken** | **String**| | [optional] | + +### Return type + +[**ViewBotByIdResponse**](ViewBotByIdResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | + diff --git a/docs/CreateABotResponse.md b/docs/CreateABotResponse.md index 4f3550f3..2c219e79 100644 --- a/docs/CreateABotResponse.md +++ b/docs/CreateABotResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**bot** | [**CreateABotResponseBot**](CreateABotResponseBot.md) | | | |**botCallbackUrl** | **String** | | [optional] | -|**botStyle** | [**CreateABotResponseBotStyle**](CreateABotResponseBotStyle.md) | | [optional] | +|**botStyle** | [**ListBotsResponseBotsInnerBotStyle**](ListBotsResponseBotsInnerBotStyle.md) | | [optional] | |**channelInvitationPreference** | **Integer** | | [optional] | |**createdAt** | **Long** | | [optional] | |**enableMarkAsRead** | **Boolean** | | [optional] | diff --git a/docs/GetAGroupChannelResponse.md b/docs/GetAGroupChannelResponse.md index 6dbdcde1..3fb5998f 100644 --- a/docs/GetAGroupChannelResponse.md +++ b/docs/GetAGroupChannelResponse.md @@ -37,7 +37,7 @@ |**isSuper** | **Boolean** | | [optional] | |**joinedMemberCount** | **Integer** | | [optional] | |**joinedTs** | **Long** | | [optional] | -|**lastMessage** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] | +|**lastMessage** | [**SendbirdGroupChannelLastMessage**](SendbirdGroupChannelLastMessage.md) | | [optional] | |**maxLengthMessage** | **Integer** | | [optional] | |**memberCount** | **Integer** | | [optional] | |**memberState** | [**MemberStateEnum**](#MemberStateEnum) | | [optional] | diff --git a/docs/InviteAsMembersResponse.md b/docs/InviteAsMembersResponse.md index 205a7e00..a27a9e1b 100644 --- a/docs/InviteAsMembersResponse.md +++ b/docs/InviteAsMembersResponse.md @@ -36,7 +36,7 @@ |**isSuper** | **Boolean** | | [optional] | |**joinedMemberCount** | **Integer** | | [optional] | |**joinedTs** | **Long** | | [optional] | -|**lastMessage** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] | +|**lastMessage** | [**SendbirdGroupChannelLastMessage**](SendbirdGroupChannelLastMessage.md) | | [optional] | |**maxLengthMessage** | **Integer** | | [optional] | |**memberCount** | **Integer** | | [optional] | |**memberState** | [**MemberStateEnum**](#MemberStateEnum) | | [optional] | diff --git a/docs/ListBotsResponseBotsInner.md b/docs/ListBotsResponseBotsInner.md index 8e9229ed..35620fae 100644 --- a/docs/ListBotsResponseBotsInner.md +++ b/docs/ListBotsResponseBotsInner.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**ai** | [**ListBotsResponseBotsInnerAi**](ListBotsResponseBotsInnerAi.md) | | [optional] | |**bot** | [**ListBotsResponseBotsInnerBot**](ListBotsResponseBotsInnerBot.md) | | [optional] | |**botCallbackUrl** | **String** | | [optional] | |**botStyle** | [**ListBotsResponseBotsInnerBotStyle**](ListBotsResponseBotsInnerBotStyle.md) | | [optional] | diff --git a/docs/ListBotsResponseBotsInnerAi.md b/docs/ListBotsResponseBotsInnerAi.md deleted file mode 100644 index dbf7e48d..00000000 --- a/docs/ListBotsResponseBotsInnerAi.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# ListBotsResponseBotsInnerAi - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**backend** | **String** | | [optional] | -|**feedback** | **Boolean** | | [optional] | -|**frequencyPenalty** | **Integer** | | [optional] | -|**instructionMode** | **Object** | | [optional] | -|**maxTokens** | **Integer** | | [optional] | -|**model** | **String** | | [optional] | -|**presencePenalty** | **Integer** | | [optional] | -|**stream** | **Boolean** | | [optional] | -|**systemMessage** | **String** | | [optional] | -|**systemMessageForContextPrefix** | **String** | | [optional] | -|**temperature** | **BigDecimal** | | [optional] | -|**topP** | **Integer** | | [optional] | - - - diff --git a/docs/MessageApi.md b/docs/MessageApi.md index eca2d7b9..3a76fd5c 100644 --- a/docs/MessageApi.md +++ b/docs/MessageApi.md @@ -49,7 +49,7 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String channelType = "open_channels"; // String | (Required) String channelUrl = "channelUrl_example"; // String | (Required) - String messageId = "messageId_example"; // String | (Required) + Long messageId = 56L; // Long | (Required) String apiToken = "{{API_TOKEN}}"; // String | AddExtraDataToAMessageRequest addExtraDataToAMessageRequest = new AddExtraDataToAMessageRequest(); // AddExtraDataToAMessageRequest | try { @@ -76,7 +76,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **channelType** | **String**| (Required) | [enum: open_channels, group_channels] | | **channelUrl** | **String**| (Required) | | -| **messageId** | **String**| (Required) | | +| **messageId** | **Long**| (Required) | | | **apiToken** | **String**| | [optional] | | **addExtraDataToAMessageRequest** | [**AddExtraDataToAMessageRequest**](AddExtraDataToAMessageRequest.md)| | [optional] | @@ -130,7 +130,7 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String channelType = "open_channels"; // String | (Required) String channelUrl = "channelUrl_example"; // String | (Required) - String messageId = "messageId_example"; // String | (Required) + Long messageId = 56L; // Long | (Required) String apiToken = "{{API_TOKEN}}"; // String | try { Object result = api.deleteAMessage(channelType, channelUrl, messageId) @@ -155,7 +155,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **channelType** | **String**| (Required) | [enum: open_channels, group_channels] | | **channelUrl** | **String**| (Required) | | -| **messageId** | **String**| (Required) | | +| **messageId** | **Long**| (Required) | | | **apiToken** | **String**| | [optional] | ### Return type @@ -218,7 +218,7 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String channelType = "open_channels"; // String | (Required) String channelUrl = "channelUrl_example"; // String | (Required) - String messageId = "messageId_example"; // String | (Required) + Long messageId = 56L; // Long | (Required) Boolean includeReactions = true; // Boolean | Boolean includeThreadInfo = true; // Boolean | Boolean includeParentMessageInfo = true; // Boolean | @@ -253,7 +253,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **channelType** | **String**| (Required) | [enum: open_channels, group_channels] | | **channelUrl** | **String**| (Required) | | -| **messageId** | **String**| (Required) | | +| **messageId** | **Long**| (Required) | | | **includeReactions** | **Boolean**| | [optional] | | **includeThreadInfo** | **Boolean**| | [optional] | | **includeParentMessageInfo** | **Boolean**| | [optional] | @@ -695,7 +695,7 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String channelType = "open_channels"; // String | (Required) String channelUrl = "channelUrl_example"; // String | (Required) - String messageId = "messageId_example"; // String | (Required) + Long messageId = 56L; // Long | (Required) String keys = "keys_example"; // String | String apiToken = "{{API_TOKEN}}"; // String | try { @@ -722,7 +722,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **channelType** | **String**| (Required) | [enum: open_channels, group_channels] | | **channelUrl** | **String**| (Required) | | -| **messageId** | **String**| (Required) | | +| **messageId** | **Long**| (Required) | | | **keys** | **String**| | [optional] | | **apiToken** | **String**| | [optional] | @@ -856,7 +856,7 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String channelType = "open_channels"; // String | (Required) String channelUrl = "channelUrl_example"; // String | (Required) - String messageId = "messageId_example"; // String | (Required) + Long messageId = 56L; // Long | (Required) String apiToken = "{{API_TOKEN}}"; // String | UpdateAMessageRequest updateAMessageRequest = new UpdateAMessageRequest(); // UpdateAMessageRequest | try { @@ -883,7 +883,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **channelType** | **String**| (Required) | [enum: open_channels, group_channels] | | **channelUrl** | **String**| (Required) | | -| **messageId** | **String**| (Required) | | +| **messageId** | **Long**| (Required) | | | **apiToken** | **String**| | [optional] | | **updateAMessageRequest** | [**UpdateAMessageRequest**](UpdateAMessageRequest.md)| | [optional] | @@ -937,7 +937,7 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String channelType = "open_channels"; // String | (Required) String channelUrl = "channelUrl_example"; // String | (Required) - String messageId = "messageId_example"; // String | (Required) + Long messageId = 56L; // Long | (Required) String apiToken = "{{API_TOKEN}}"; // String | UpdateExtraDataInAMessageRequest updateExtraDataInAMessageRequest = new UpdateExtraDataInAMessageRequest(); // UpdateExtraDataInAMessageRequest | try { @@ -964,7 +964,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **channelType** | **String**| (Required) | [enum: open_channels, group_channels] | | **channelUrl** | **String**| (Required) | | -| **messageId** | **String**| (Required) | | +| **messageId** | **Long**| (Required) | | | **apiToken** | **String**| | [optional] | | **updateExtraDataInAMessageRequest** | [**UpdateExtraDataInAMessageRequest**](UpdateExtraDataInAMessageRequest.md)| | [optional] | diff --git a/docs/ModerationApi.md b/docs/ModerationApi.md index 388aba1c..b5213647 100644 --- a/docs/ModerationApi.md +++ b/docs/ModerationApi.md @@ -24,15 +24,11 @@ A user can block another user if the user doesn't wish to receive any messages o Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. -- **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). +- **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated with the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - - -> **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). - -The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. +> **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) diff --git a/docs/SendABotMessageRequest.md b/docs/SendABotMessageRequest.md deleted file mode 100644 index c5a08fea..00000000 --- a/docs/SendABotMessageRequest.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# SendABotMessageRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**channelUrl** | **String** | | | -|**createdAt** | **Long** | | [optional] | -|**customType** | **String** | | [optional] | -|**data** | **String** | | [optional] | -|**dedupId** | **String** | | [optional] | -|**extendedMessagePayload** | [**SendbirdExtendedMessagePayload**](SendbirdExtendedMessagePayload.md) | | [optional] | -|**markAsRead** | **Boolean** | | [optional] | -|**mentioned** | **List<String>** | | [optional] | -|**message** | **String** | | | -|**sendPush** | **Boolean** | | [optional] | - - - diff --git a/docs/SendABotMessageResponse.md b/docs/SendABotMessageResponse.md new file mode 100644 index 00000000..4b4decb2 --- /dev/null +++ b/docs/SendABotMessageResponse.md @@ -0,0 +1,13 @@ + + +# SendABotMessageResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**message** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] | + + + diff --git a/docs/SendAMessageRequest.md b/docs/SendAMessageRequest.md index ceacf862..d11a9434 100644 --- a/docs/SendAMessageRequest.md +++ b/docs/SendAMessageRequest.md @@ -2,45 +2,56 @@ # SendAMessageRequest -## oneOf schemas -* [SendAdminMessageRequestBody](SendAdminMessageRequestBody.md) -* [SendFileMessageRequestBody](SendFileMessageRequestBody.md) -* [SendTextMessageRequestBody](SendTextMessageRequestBody.md) - -## Example -```java -// Import classes: -import org.openapitools.client.model.SendAMessageRequest; -import org.openapitools.client.model.SendAdminMessageRequestBody; -import org.openapitools.client.model.SendFileMessageRequestBody; -import org.openapitools.client.model.SendTextMessageRequestBody; - -public class Example { - public static void main(String[] args) { - SendAMessageRequest exampleSendAMessageRequest = new SendAMessageRequest(); - - // create a new SendAdminMessageRequestBody - SendAdminMessageRequestBody exampleSendAdminMessageRequestBody = new SendAdminMessageRequestBody(); - // set SendAMessageRequest to SendAdminMessageRequestBody - exampleSendAMessageRequest.setActualInstance(exampleSendAdminMessageRequestBody); - // to get back the SendAdminMessageRequestBody set earlier - SendAdminMessageRequestBody testSendAdminMessageRequestBody = (SendAdminMessageRequestBody) exampleSendAMessageRequest.getActualInstance(); - - // create a new SendFileMessageRequestBody - SendFileMessageRequestBody exampleSendFileMessageRequestBody = new SendFileMessageRequestBody(); - // set SendAMessageRequest to SendFileMessageRequestBody - exampleSendAMessageRequest.setActualInstance(exampleSendFileMessageRequestBody); - // to get back the SendFileMessageRequestBody set earlier - SendFileMessageRequestBody testSendFileMessageRequestBody = (SendFileMessageRequestBody) exampleSendAMessageRequest.getActualInstance(); - - // create a new SendTextMessageRequestBody - SendTextMessageRequestBody exampleSendTextMessageRequestBody = new SendTextMessageRequestBody(); - // set SendAMessageRequest to SendTextMessageRequestBody - exampleSendAMessageRequest.setActualInstance(exampleSendTextMessageRequestBody); - // to get back the SendTextMessageRequestBody set earlier - SendTextMessageRequestBody testSendTextMessageRequestBody = (SendTextMessageRequestBody) exampleSendAMessageRequest.getActualInstance(); - } -} -``` + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | | | +|**userId** | **String** | | | +|**message** | **String** | Specifies the content of the message. * This property is required when message_type is MESG or ADMM. | [optional] | +|**pushMessageTemplate** | [**SendAMessageRequestPushMessageTemplate**](SendAMessageRequestPushMessageTemplate.md) | | [optional] | +|**pollId** | **Integer** | Specifies the ID of the poll to be associated with the message. * This property is only available for group channels and message_type is MESG. | [optional] | +|**files** | [**SendbirdFile**](SendbirdFile.md) | | [optional] | +|**requireAuth** | **Boolean** | Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. | [optional] | +|**thumbnail1** | **String** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**thumbnail2** | **String** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**thumbnail3** | **String** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**thumbnails** | **List<String>** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**apnsBundleId** | **String** | | [optional] | +|**appleCriticalAlertOptions** | **Object** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**includePollDetails** | **Boolean** | | [optional] | +|**isSilent** | **Boolean** | | [optional] | +|**markAsRead** | **Boolean** | | [optional] | +|**mentionType** | [**MentionTypeEnum**](#MentionTypeEnum) | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**sendPush** | **Boolean** | | [optional] | +|**sortedMetaarray** | [**List<SendbirdSortedMetaarrayInner>**](SendbirdSortedMetaarrayInner.md) | | [optional] | +|**sound** | **String** | | [optional] | +|**volume** | **BigDecimal** | | [optional] | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| MESG | "MESG" | +| ADMM | "ADMM" | +| FILE | "FILE" | + + + +## Enum: MentionTypeEnum + +| Name | Value | +|---- | -----| +| USERS | "users" | +| CHANNEL | "channel" | + diff --git a/docs/SendAMessageRequestPushMessageTemplate.md b/docs/SendAMessageRequestPushMessageTemplate.md new file mode 100644 index 00000000..d2d5dcf6 --- /dev/null +++ b/docs/SendAMessageRequestPushMessageTemplate.md @@ -0,0 +1,39 @@ + + +# SendAMessageRequestPushMessageTemplate + +Specifies the content of a push notification customized for the message. This property only applies to group channels. To choose from a push notification content template within your Sendbird application, specify a string value of default or alternative. To create a new push notification content tailored to the message being sent, use the properties listed below to specify its title and body in a nested object format. * This property overrides the application's default push notification content template or the preference chosen by the user. * This property is available when message_type is MESG or ADMM. + +## oneOf schemas +* [SendAMessageRequestPushMessageTemplateOneOf](SendAMessageRequestPushMessageTemplateOneOf.md) +* [String](String.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplate; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplateOneOf; +import org.openapitools.client.model.String; + +public class Example { + public static void main(String[] args) { + SendAMessageRequestPushMessageTemplate exampleSendAMessageRequestPushMessageTemplate = new SendAMessageRequestPushMessageTemplate(); + + // create a new SendAMessageRequestPushMessageTemplateOneOf + SendAMessageRequestPushMessageTemplateOneOf exampleSendAMessageRequestPushMessageTemplateOneOf = new SendAMessageRequestPushMessageTemplateOneOf(); + // set SendAMessageRequestPushMessageTemplate to SendAMessageRequestPushMessageTemplateOneOf + exampleSendAMessageRequestPushMessageTemplate.setActualInstance(exampleSendAMessageRequestPushMessageTemplateOneOf); + // to get back the SendAMessageRequestPushMessageTemplateOneOf set earlier + SendAMessageRequestPushMessageTemplateOneOf testSendAMessageRequestPushMessageTemplateOneOf = (SendAMessageRequestPushMessageTemplateOneOf) exampleSendAMessageRequestPushMessageTemplate.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set SendAMessageRequestPushMessageTemplate to String + exampleSendAMessageRequestPushMessageTemplate.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleSendAMessageRequestPushMessageTemplate.getActualInstance(); + } +} +``` + + diff --git a/docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md b/docs/SendAMessageRequestPushMessageTemplateOneOf.md similarity index 94% rename from docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md rename to docs/SendAMessageRequestPushMessageTemplateOneOf.md index e72010a7..0eedc418 100644 --- a/docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md +++ b/docs/SendAMessageRequestPushMessageTemplateOneOf.md @@ -1,6 +1,6 @@ -# SendTextMessageRequestBodyPushMessageTemplateOneOf +# SendAMessageRequestPushMessageTemplateOneOf ## Properties diff --git a/docs/SendBirdAcceptAnInvitationRequest.md b/docs/SendBirdAcceptAnInvitationRequest.md new file mode 100644 index 00000000..1d689407 --- /dev/null +++ b/docs/SendBirdAcceptAnInvitationRequest.md @@ -0,0 +1,14 @@ + + +# SendBirdAcceptAnInvitationRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessCode** | **String** | | [optional] | +|**userId** | **String** | | | + + + diff --git a/docs/SendBirdAddARegistrationOrDeviceTokenRequest.md b/docs/SendBirdAddARegistrationOrDeviceTokenRequest.md new file mode 100644 index 00000000..a13e24c0 --- /dev/null +++ b/docs/SendBirdAddARegistrationOrDeviceTokenRequest.md @@ -0,0 +1,15 @@ + + +# SendBirdAddARegistrationOrDeviceTokenRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apnsDeviceToken** | **String** | | [optional] | +|**gcmRegToken** | **String** | | [optional] | +|**huaweiDeviceToken** | **String** | | [optional] | + + + diff --git a/docs/SendBirdAddARegistrationOrDeviceTokenResponse.md b/docs/SendBirdAddARegistrationOrDeviceTokenResponse.md new file mode 100644 index 00000000..0ae41bb5 --- /dev/null +++ b/docs/SendBirdAddARegistrationOrDeviceTokenResponse.md @@ -0,0 +1,15 @@ + + +# SendBirdAddARegistrationOrDeviceTokenResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**user** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | + + + diff --git a/docs/SendBirdAddExtraDataToAMessageRequest.md b/docs/SendBirdAddExtraDataToAMessageRequest.md new file mode 100644 index 00000000..492a2282 --- /dev/null +++ b/docs/SendBirdAddExtraDataToAMessageRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdAddExtraDataToAMessageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | | + + + diff --git a/docs/SendBirdAddExtraDataToAMessageResponse.md b/docs/SendBirdAddExtraDataToAMessageResponse.md new file mode 100644 index 00000000..9f86dfe7 --- /dev/null +++ b/docs/SendBirdAddExtraDataToAMessageResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdAddExtraDataToAMessageResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | + + + diff --git a/docs/SendBirdBlockAUserRequest.md b/docs/SendBirdBlockAUserRequest.md new file mode 100644 index 00000000..15aa9a1b --- /dev/null +++ b/docs/SendBirdBlockAUserRequest.md @@ -0,0 +1,14 @@ + + +# SendBirdBlockAUserRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**targetId** | **String** | | [optional] | +|**userIds** | **List<String>** | Specifies an array of IDs of all the users to block. This property can be used interchangeably with the users[] property when blocking multiple users at once. | [optional] | + + + diff --git a/docs/SendBirdBlockAUserResponse.md b/docs/SendBirdBlockAUserResponse.md new file mode 100644 index 00000000..7efaf5b9 --- /dev/null +++ b/docs/SendBirdBlockAUserResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdBlockAUserResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**users** | [**List<SendBirdSendBirdUser>**](SendBirdSendBirdUser.md) | | [optional] | +|**next** | **String** | | [optional] | + + + diff --git a/docs/SendBirdCheckIfMemberResponse.md b/docs/SendBirdCheckIfMemberResponse.md new file mode 100644 index 00000000..eec983ca --- /dev/null +++ b/docs/SendBirdCheckIfMemberResponse.md @@ -0,0 +1,24 @@ + + +# SendBirdCheckIfMemberResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isMember** | **Boolean** | | [optional] | +|**state** | [**StateEnum**](#StateEnum) | | [optional] | + + + +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| INVITED | "invited" | +| JOINED | "joined" | +| NONE | "none" | + + + diff --git a/docs/SendBirdChooseAPushNotificationContentTemplateRequest.md b/docs/SendBirdChooseAPushNotificationContentTemplateRequest.md new file mode 100644 index 00000000..33b8c42b --- /dev/null +++ b/docs/SendBirdChooseAPushNotificationContentTemplateRequest.md @@ -0,0 +1,22 @@ + + +# SendBirdChooseAPushNotificationContentTemplateRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | [**NameEnum**](#NameEnum) | Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default) | | + + + +## Enum: NameEnum + +| Name | Value | +|---- | -----| +| DEFAULT | "default" | +| ALTERNATIVE | "alternative" | + + + diff --git a/docs/SendBirdChooseAPushNotificationContentTemplateResponse.md b/docs/SendBirdChooseAPushNotificationContentTemplateResponse.md new file mode 100644 index 00000000..d2202902 --- /dev/null +++ b/docs/SendBirdChooseAPushNotificationContentTemplateResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdChooseAPushNotificationContentTemplateResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | + + + diff --git a/docs/SendBirdCreateABotRequest.md b/docs/SendBirdCreateABotRequest.md new file mode 100644 index 00000000..3e2e4269 --- /dev/null +++ b/docs/SendBirdCreateABotRequest.md @@ -0,0 +1,21 @@ + + +# SendBirdCreateABotRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**botCallbackUrl** | **String** | | | +|**botNickname** | **String** | Specifies the bot's nickname. The length is limited to 80 characters. | | +|**botProfileUrl** | **String** | | | +|**botType** | **String** | | | +|**botUserid** | **String** | Specifies the unique ID of a bot. The length is limited to 80 characters. | | +|**isPrivacyMode** | **Boolean** | Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot. | | +|**channelInvitationPreference** | **Integer** | | [optional] | +|**enableMarkAsRead** | **Boolean** | | [optional] | +|**showMember** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdCreateABotResponse.md b/docs/SendBirdCreateABotResponse.md new file mode 100644 index 00000000..6562c3ae --- /dev/null +++ b/docs/SendBirdCreateABotResponse.md @@ -0,0 +1,20 @@ + + +# SendBirdCreateABotResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bot** | [**SendBirdCreateABotResponseBot**](SendBirdCreateABotResponseBot.md) | | | +|**botCallbackUrl** | **String** | | [optional] | +|**botStyle** | [**SendBirdListBotsResponseBotsInnerBotStyle**](SendBirdListBotsResponseBotsInnerBotStyle.md) | | [optional] | +|**channelInvitationPreference** | **Integer** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**enableMarkAsRead** | **Boolean** | | [optional] | +|**isPrivacyMode** | **Boolean** | | [optional] | +|**showMember** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdCreateABotResponseBot.md b/docs/SendBirdCreateABotResponseBot.md new file mode 100644 index 00000000..3321920d --- /dev/null +++ b/docs/SendBirdCreateABotResponseBot.md @@ -0,0 +1,21 @@ + + +# SendBirdCreateABotResponseBot + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aiAgentType** | **String** | | [optional] | +|**botMetadata** | **Object** | | [optional] | +|**botNickname** | **String** | | [optional] | +|**botProfileUrl** | **String** | | [optional] | +|**botRequireAuthForProfileImage** | **Boolean** | | [optional] | +|**botToken** | **String** | | [optional] | +|**botType** | **String** | | [optional] | +|**botUserid** | **String** | | | +|**feedback** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdCreateAChannelMetadataRequest.md b/docs/SendBirdCreateAChannelMetadataRequest.md new file mode 100644 index 00000000..ca11a728 --- /dev/null +++ b/docs/SendBirdCreateAChannelMetadataRequest.md @@ -0,0 +1,14 @@ + + +# SendBirdCreateAChannelMetadataRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**includeTs** | **Boolean** | | [optional] | +|**metadata** | **Object** | | | + + + diff --git a/docs/SendBirdCreateAChannelMetadataResponse.md b/docs/SendBirdCreateAChannelMetadataResponse.md new file mode 100644 index 00000000..5e51de49 --- /dev/null +++ b/docs/SendBirdCreateAChannelMetadataResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdCreateAChannelMetadataResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**includeTs** | **Long** | | [optional] | +|**metadata** | **Object** | | [optional] | + + + diff --git a/docs/SendBirdCreateAGroupChannelRequest.md b/docs/SendBirdCreateAGroupChannelRequest.md new file mode 100644 index 00000000..ae2768d9 --- /dev/null +++ b/docs/SendBirdCreateAGroupChannelRequest.md @@ -0,0 +1,31 @@ + + +# SendBirdCreateAGroupChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessCode** | **String** | | [optional] | +|**blockSdkUserChannelJoin** | **Boolean** | | [optional] | +|**channelUrl** | **String** | | [optional] | +|**coverFile** | **File** | Uploads a file for the channel cover image. | [optional] | +|**coverUrl** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**hiddenStatus** | **Object** | Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:<br />- unhidden (default): the channel is included in when retrieving a list of group channels.<br />- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.<br />- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. | [optional] | +|**invitationStatus** | **Object** | Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) | [optional] | +|**inviterId** | **String** | | [optional] | +|**isDistinct** | **Boolean** | | [optional] | +|**isEphemeral** | **Boolean** | | [optional] | +|**isPublic** | **Boolean** | | [optional] | +|**isSuper** | **Boolean** | | [optional] | +|**name** | **String** | | [optional] | +|**operatorIds** | **List<String>** | | [optional] | +|**strict** | **Boolean** | | [optional] | +|**userIds** | **List<String>** | | [optional] | +|**users** | [**List<SendBirdSendBirdUser>**](SendBirdSendBirdUser.md) | | | + + + diff --git a/docs/SendBirdCreateAUserRequest.md b/docs/SendBirdCreateAUserRequest.md new file mode 100644 index 00000000..26f2ad9a --- /dev/null +++ b/docs/SendBirdCreateAUserRequest.md @@ -0,0 +1,19 @@ + + +# SendBirdCreateAUserRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**discoveryKeys** | **List<String>** | | [optional] | +|**issueAccessToken** | **Boolean** | | [optional] | +|**metadata** | **Object** | | [optional] | +|**nickname** | **String** | | | +|**profileFile** | **File** | Specifies the file of the user's profile image. An acceptable image is limited to a JPG, JPEG, or PNG file of up to 5 MB. When passing a file, you should send a multipart request. If the profile_file property is specified, the profile_url property is not required. | [optional] | +|**profileUrl** | **String** | | | +|**userId** | **String** | | | + + + diff --git a/docs/SendBirdCreateAnOpenChannelRequest.md b/docs/SendBirdCreateAnOpenChannelRequest.md new file mode 100644 index 00000000..b109f846 --- /dev/null +++ b/docs/SendBirdCreateAnOpenChannelRequest.md @@ -0,0 +1,21 @@ + + +# SendBirdCreateAnOpenChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isDynamicPartitioned** | **Boolean** | | [optional] | +|**channelUrl** | **String** | | [optional] | +|**coverFile** | **File** | | [optional] | +|**coverUrl** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**isEphemeral** | **Boolean** | | [optional] | +|**name** | **String** | | [optional] | +|**operatorIds** | **List<String>** | | [optional] | + + + diff --git a/docs/SendBirdCreateUserTokenRequest.md b/docs/SendBirdCreateUserTokenRequest.md new file mode 100644 index 00000000..2d9041aa --- /dev/null +++ b/docs/SendBirdCreateUserTokenRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdCreateUserTokenRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expiresAt** | **Long** | | [optional] | + + + diff --git a/docs/SendBirdCreateUserTokenResponse.md b/docs/SendBirdCreateUserTokenResponse.md new file mode 100644 index 00000000..80682675 --- /dev/null +++ b/docs/SendBirdCreateUserTokenResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdCreateUserTokenResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expiresAt** | **Long** | | [optional] | +|**token** | **String** | | [optional] | + + + diff --git a/docs/SendBirdFreezeAGroupChannelRequest.md b/docs/SendBirdFreezeAGroupChannelRequest.md new file mode 100644 index 00000000..c30894d8 --- /dev/null +++ b/docs/SendBirdFreezeAGroupChannelRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdFreezeAGroupChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**freeze** | **Boolean** | | | + + + diff --git a/docs/SendBirdFreezeAnOpenChannelRequest.md b/docs/SendBirdFreezeAnOpenChannelRequest.md new file mode 100644 index 00000000..61e799a2 --- /dev/null +++ b/docs/SendBirdFreezeAnOpenChannelRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdFreezeAnOpenChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**freeze** | **Boolean** | Determines whether to freeze the channel. (Default: true) | | + + + diff --git a/docs/SendBirdGetAGroupChannelResponse.md b/docs/SendBirdGetAGroupChannelResponse.md new file mode 100644 index 00000000..4cf099c1 --- /dev/null +++ b/docs/SendBirdGetAGroupChannelResponse.md @@ -0,0 +1,99 @@ + + +# SendBirdGetAGroupChannelResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channel** | [**SendBirdSendBirdGroupChannelDetailChannel**](SendBirdSendBirdGroupChannelDetailChannel.md) | | [optional] | +|**channelUrl** | **String** | | | +|**countPreference** | [**CountPreferenceEnum**](#CountPreferenceEnum) | | [optional] | +|**coverUrl** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**createdBy** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**deliveryReceipt** | **Object** | | [optional] | +|**disappearingMessage** | [**SendBirdSendBirdDisappearingMessage**](SendBirdSendBirdDisappearingMessage.md) | | [optional] | +|**freeze** | **Boolean** | | [optional] | +|**hasAiBot** | **Boolean** | | [optional] | +|**hasBot** | **Boolean** | | [optional] | +|**hiddenState** | [**HiddenStateEnum**](#HiddenStateEnum) | | [optional] | +|**ignoreProfanityFilter** | **Boolean** | | [optional] | +|**invitedAt** | **Long** | | [optional] | +|**inviter** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**isAccessCodeRequired** | **Boolean** | | [optional] | +|**isBroadcast** | **Boolean** | | [optional] | +|**isDiscoverable** | **Boolean** | | [optional] | +|**isDistinct** | **Boolean** | | [optional] | +|**isEphemeral** | **Boolean** | | [optional] | +|**isExclusive** | **Boolean** | | [optional] | +|**isHidden** | **Boolean** | | [optional] | +|**isMuted** | **Boolean** | | [optional] | +|**isPublic** | **Boolean** | | [optional] | +|**isPushEnabled** | **Boolean** | | [optional] | +|**isSuper** | **Boolean** | | [optional] | +|**joinedMemberCount** | **Integer** | | [optional] | +|**joinedTs** | **Long** | | [optional] | +|**lastMessage** | [**SendBirdSendBirdGroupChannelLastMessage**](SendBirdSendBirdGroupChannelLastMessage.md) | | [optional] | +|**maxLengthMessage** | **Integer** | | [optional] | +|**memberCount** | **Integer** | | [optional] | +|**memberState** | [**MemberStateEnum**](#MemberStateEnum) | | [optional] | +|**members** | [**List<SendBirdSendBirdMember>**](SendBirdSendBirdMember.md) | | [optional] | +|**messageSurvivalSeconds** | **Integer** | | [optional] | +|**metadata** | **Object** | | [optional] | +|**myRole** | [**MyRoleEnum**](#MyRoleEnum) | | [optional] | +|**name** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | +|**readReceipt** | **Map<String, Long>** | | [optional] | +|**smsFallback** | [**SendBirdSendBirdSmsFallback**](SendBirdSendBirdSmsFallback.md) | | [optional] | +|**tsMessageOffset** | **Long** | | [optional] | +|**unreadMentionCount** | **Integer** | | [optional] | +|**unreadMessageCount** | **Integer** | | [optional] | +|**userLastRead** | **Long** | | [optional] | + + + +## Enum: CountPreferenceEnum + +| Name | Value | +|---- | -----| +| FALSE | "false" | +| ALL | "all" | +| UNREAD_MESSAGE_COUNT_ONLY | "unread_message_count_only" | +| UNREAD_MENTIONED_COUNT_ONLY | "unread_mentioned_count_only" | + + + +## Enum: HiddenStateEnum + +| Name | Value | +|---- | -----| +| HIDDEN_ALLOW_AUTO_UNHIDE | "hidden_allow_auto_unhide" | +| HIDDEN_PREVENT_AUTO_UNHIDE | "hidden_prevent_auto_unhide" | +| UNHIDDEN | "unhidden" | + + + +## Enum: MemberStateEnum + +| Name | Value | +|---- | -----| +| INVITED | "invited" | +| JOINED | "joined" | +| NONE | "none" | + + + +## Enum: MyRoleEnum + +| Name | Value | +|---- | -----| +| EMPTY | "" | +| NONE | "none" | +| OPERATOR | "operator" | + + + diff --git a/docs/SendBirdGetAGroupChannelResponseAllOf.md b/docs/SendBirdGetAGroupChannelResponseAllOf.md new file mode 100644 index 00000000..f1d68dcb --- /dev/null +++ b/docs/SendBirdGetAGroupChannelResponseAllOf.md @@ -0,0 +1,13 @@ + + +# SendBirdGetAGroupChannelResponseAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channel** | [**SendBirdSendBirdGroupChannelDetailChannel**](SendBirdSendBirdGroupChannelDetailChannel.md) | | [optional] | + + + diff --git a/docs/SendBirdGetChannelInvitationPreferenceResponse.md b/docs/SendBirdGetChannelInvitationPreferenceResponse.md new file mode 100644 index 00000000..732d34fe --- /dev/null +++ b/docs/SendBirdGetChannelInvitationPreferenceResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdGetChannelInvitationPreferenceResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**autoAccept** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdGetTotalNumberOfMessagesInAChannelResponse.md b/docs/SendBirdGetTotalNumberOfMessagesInAChannelResponse.md new file mode 100644 index 00000000..31a3ea1f --- /dev/null +++ b/docs/SendBirdGetTotalNumberOfMessagesInAChannelResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdGetTotalNumberOfMessagesInAChannelResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**total** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdGroupChannel.md b/docs/SendBirdGroupChannel.md index 8f35e15f..b650ee1c 100644 --- a/docs/SendBirdGroupChannel.md +++ b/docs/SendBirdGroupChannel.md @@ -36,7 +36,7 @@ |**isSuper** | **Boolean** | | [optional] | |**joinedMemberCount** | **Integer** | | [optional] | |**joinedTs** | **Long** | | [optional] | -|**lastMessage** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] | +|**lastMessage** | [**SendbirdGroupChannelLastMessage**](SendbirdGroupChannelLastMessage.md) | | [optional] | |**maxLengthMessage** | **Integer** | | [optional] | |**memberCount** | **Integer** | | [optional] | |**memberState** | [**MemberStateEnum**](#MemberStateEnum) | | [optional] | diff --git a/docs/SendBirdGroupChannelListMembersResponse.md b/docs/SendBirdGroupChannelListMembersResponse.md new file mode 100644 index 00000000..9fc0b1e9 --- /dev/null +++ b/docs/SendBirdGroupChannelListMembersResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdGroupChannelListMembersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**members** | [**List<SendBirdSendBirdMember>**](SendBirdSendBirdMember.md) | | | +|**next** | **String** | | [optional] | + + + diff --git a/docs/SendBirdGroupChatListChannelsResponse.md b/docs/SendBirdGroupChatListChannelsResponse.md new file mode 100644 index 00000000..f148fc9c --- /dev/null +++ b/docs/SendBirdGroupChatListChannelsResponse.md @@ -0,0 +1,15 @@ + + +# SendBirdGroupChatListChannelsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channels** | [**List<SendBirdSendBirdGroupChannel>**](SendBirdSendBirdGroupChannel.md) | | [optional] | +|**next** | **String** | | [optional] | +|**ts** | **Long** | | [optional] | + + + diff --git a/docs/SendBirdHideAChannelRequest.md b/docs/SendBirdHideAChannelRequest.md new file mode 100644 index 00000000..92b4323e --- /dev/null +++ b/docs/SendBirdHideAChannelRequest.md @@ -0,0 +1,16 @@ + + +# SendBirdHideAChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allowAutoUnhide** | **Boolean** | Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)<br /><br /> When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. | [optional] | +|**hidePreviousMessages** | **Boolean** | When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)<br /><br /> This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. | [optional] | +|**shouldHideAll** | **Boolean** | Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) | [optional] | +|**userId** | **String** | Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. | | + + + diff --git a/docs/SendBirdInviteAsMembersRequest.md b/docs/SendBirdInviteAsMembersRequest.md new file mode 100644 index 00000000..74777c81 --- /dev/null +++ b/docs/SendBirdInviteAsMembersRequest.md @@ -0,0 +1,16 @@ + + +# SendBirdInviteAsMembersRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hiddenStatus** | **Object** | Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:<br />- unhidden (default): the channel is included in when retrieving a list of group channels.<br />- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.<br />- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. | [optional] | +|**invitationStatus** | **Object** | Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) | [optional] | +|**inviterId** | **String** | | [optional] | +|**userIds** | **List<String>** | | | + + + diff --git a/docs/SendBirdInviteAsMembersResponse.md b/docs/SendBirdInviteAsMembersResponse.md new file mode 100644 index 00000000..184651d4 --- /dev/null +++ b/docs/SendBirdInviteAsMembersResponse.md @@ -0,0 +1,99 @@ + + +# SendBirdInviteAsMembersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelUrl** | **String** | | | +|**countPreference** | [**CountPreferenceEnum**](#CountPreferenceEnum) | | [optional] | +|**coverUrl** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**createdBy** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**deliveryReceipt** | **Object** | | [optional] | +|**disappearingMessage** | [**SendBirdSendBirdDisappearingMessage**](SendBirdSendBirdDisappearingMessage.md) | | [optional] | +|**freeze** | **Boolean** | | [optional] | +|**hasAiBot** | **Boolean** | | [optional] | +|**hasBot** | **Boolean** | | [optional] | +|**hiddenState** | [**HiddenStateEnum**](#HiddenStateEnum) | | [optional] | +|**ignoreProfanityFilter** | **Boolean** | | [optional] | +|**invitedAt** | **Long** | | [optional] | +|**inviter** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**isAccessCodeRequired** | **Boolean** | | [optional] | +|**isBroadcast** | **Boolean** | | [optional] | +|**isDiscoverable** | **Boolean** | | [optional] | +|**isDistinct** | **Boolean** | | [optional] | +|**isEphemeral** | **Boolean** | | [optional] | +|**isExclusive** | **Boolean** | | [optional] | +|**isHidden** | **Boolean** | | [optional] | +|**isMuted** | **Boolean** | | [optional] | +|**isPublic** | **Boolean** | | [optional] | +|**isPushEnabled** | **Boolean** | | [optional] | +|**isSuper** | **Boolean** | | [optional] | +|**joinedMemberCount** | **Integer** | | [optional] | +|**joinedTs** | **Long** | | [optional] | +|**lastMessage** | [**SendBirdSendBirdGroupChannelLastMessage**](SendBirdSendBirdGroupChannelLastMessage.md) | | [optional] | +|**maxLengthMessage** | **Integer** | | [optional] | +|**memberCount** | **Integer** | | [optional] | +|**memberState** | [**MemberStateEnum**](#MemberStateEnum) | | [optional] | +|**members** | [**List<SendBirdSendBirdMember>**](SendBirdSendBirdMember.md) | | [optional] | +|**messageSurvivalSeconds** | **Integer** | | [optional] | +|**metadata** | **Object** | | [optional] | +|**myRole** | [**MyRoleEnum**](#MyRoleEnum) | | [optional] | +|**name** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | +|**readReceipt** | **Map<String, Long>** | | [optional] | +|**smsFallback** | [**SendBirdSendBirdSmsFallback**](SendBirdSendBirdSmsFallback.md) | | [optional] | +|**tsMessageOffset** | **Long** | | [optional] | +|**unreadMentionCount** | **Integer** | | [optional] | +|**unreadMessageCount** | **Integer** | | [optional] | +|**userLastRead** | **Long** | | [optional] | +|**operators** | [**List<SendBirdSendBirdUser>**](SendBirdSendBirdUser.md) | | [optional] | + + + +## Enum: CountPreferenceEnum + +| Name | Value | +|---- | -----| +| FALSE | "false" | +| ALL | "all" | +| UNREAD_MESSAGE_COUNT_ONLY | "unread_message_count_only" | +| UNREAD_MENTIONED_COUNT_ONLY | "unread_mentioned_count_only" | + + + +## Enum: HiddenStateEnum + +| Name | Value | +|---- | -----| +| HIDDEN_ALLOW_AUTO_UNHIDE | "hidden_allow_auto_unhide" | +| HIDDEN_PREVENT_AUTO_UNHIDE | "hidden_prevent_auto_unhide" | +| UNHIDDEN | "unhidden" | + + + +## Enum: MemberStateEnum + +| Name | Value | +|---- | -----| +| INVITED | "invited" | +| JOINED | "joined" | +| NONE | "none" | + + + +## Enum: MyRoleEnum + +| Name | Value | +|---- | -----| +| EMPTY | "" | +| NONE | "none" | +| OPERATOR | "operator" | + + + diff --git a/docs/SendBirdInviteAsMembersResponseAllOf.md b/docs/SendBirdInviteAsMembersResponseAllOf.md new file mode 100644 index 00000000..18a3a48f --- /dev/null +++ b/docs/SendBirdInviteAsMembersResponseAllOf.md @@ -0,0 +1,13 @@ + + +# SendBirdInviteAsMembersResponseAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**operators** | [**List<SendBirdSendBirdUser>**](SendBirdSendBirdUser.md) | | [optional] | + + + diff --git a/docs/SendBirdJoinAChannelRequest.md b/docs/SendBirdJoinAChannelRequest.md new file mode 100644 index 00000000..3d6336df --- /dev/null +++ b/docs/SendBirdJoinAChannelRequest.md @@ -0,0 +1,14 @@ + + +# SendBirdJoinAChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userId** | **String** | Specifies the unique ID of the user to join the public group channel. | | +|**accessCode** | **String** | This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. | [optional] | + + + diff --git a/docs/SendBirdJoinChannelsRequest.md b/docs/SendBirdJoinChannelsRequest.md new file mode 100644 index 00000000..75563661 --- /dev/null +++ b/docs/SendBirdJoinChannelsRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdJoinChannelsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelUrls** | **List<String>** | | | + + + diff --git a/docs/SendBirdLeaveAChannelRequest.md b/docs/SendBirdLeaveAChannelRequest.md new file mode 100644 index 00000000..dcc88238 --- /dev/null +++ b/docs/SendBirdLeaveAChannelRequest.md @@ -0,0 +1,28 @@ + + +# SendBirdLeaveAChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userIds** | **List<String>** | Specifies an array of one or more IDs of the users to leave the channel. | | +|**shouldLeaveAll** | **Boolean** | Determines whether to make all members leave the channel. (Default: false) | [optional] | +|**shouldRemoveOperatorStatus** | **Boolean** | Determines whether to remove a user from the channel's operator list if the user who is leaving the channel is an operator. (Default: false) | [optional] | +|**reason** | [**ReasonEnum**](#ReasonEnum) | Specifies the reason for leaving a channel. Acceptable values are admin_removed, admin_deleted, admin_deactivated, left_by_own_choice, and channel_operator_removed. | [optional] | + + + +## Enum: ReasonEnum + +| Name | Value | +|---- | -----| +| LEFT_BY_OWN_CHOICE | "LEFT_BY_OWN_CHOICE" | +| CHANNEL_OPERATOR_REMOVED | "CHANNEL_OPERATOR_REMOVED" | +| ADMIN_REMOVED | "ADMIN_REMOVED" | +| ADMIN_DELETED | "ADMIN_DELETED" | +| ADMIN_DEACTIVATED | "ADMIN_DEACTIVATED" | + + + diff --git a/docs/SendBirdLeaveMyGroupChannelsRequest.md b/docs/SendBirdLeaveMyGroupChannelsRequest.md new file mode 100644 index 00000000..84c2852d --- /dev/null +++ b/docs/SendBirdLeaveMyGroupChannelsRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdLeaveMyGroupChannelsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**customType** | **String** | | [optional] | + + + diff --git a/docs/SendBirdListBlockedUsersResponse.md b/docs/SendBirdListBlockedUsersResponse.md new file mode 100644 index 00000000..730a7b2d --- /dev/null +++ b/docs/SendBirdListBlockedUsersResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdListBlockedUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**users** | [**List<SendBirdSendBirdUser>**](SendBirdSendBirdUser.md) | | [optional] | +|**next** | **String** | | [optional] | + + + diff --git a/docs/SendBirdListBotsResponse.md b/docs/SendBirdListBotsResponse.md new file mode 100644 index 00000000..2366a945 --- /dev/null +++ b/docs/SendBirdListBotsResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdListBotsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bots** | [**List<SendBirdListBotsResponseBotsInner>**](SendBirdListBotsResponseBotsInner.md) | | [optional] | +|**next** | **String** | | [optional] | + + + diff --git a/docs/SendBirdListBotsResponseBotsInner.md b/docs/SendBirdListBotsResponseBotsInner.md new file mode 100644 index 00000000..cd437484 --- /dev/null +++ b/docs/SendBirdListBotsResponseBotsInner.md @@ -0,0 +1,22 @@ + + +# SendBirdListBotsResponseBotsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bot** | [**SendBirdListBotsResponseBotsInnerBot**](SendBirdListBotsResponseBotsInnerBot.md) | | [optional] | +|**botCallbackUrl** | **String** | | [optional] | +|**botStyle** | [**SendBirdListBotsResponseBotsInnerBotStyle**](SendBirdListBotsResponseBotsInnerBotStyle.md) | | [optional] | +|**channelInvitationPreference** | **Integer** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**enableMarkAsRead** | **Boolean** | | [optional] | +|**firstMessages** | [**List<SendBirdListBotsResponseBotsInnerFirstMessagesInner>**](SendBirdListBotsResponseBotsInnerFirstMessagesInner.md) | | [optional] | +|**isPrivacyMode** | **Boolean** | | [optional] | +|**safeguard** | [**SendBirdListBotsResponseBotsInnerSafeguard**](SendBirdListBotsResponseBotsInnerSafeguard.md) | | [optional] | +|**showMember** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdListBotsResponseBotsInnerBot.md b/docs/SendBirdListBotsResponseBotsInnerBot.md new file mode 100644 index 00000000..10862d39 --- /dev/null +++ b/docs/SendBirdListBotsResponseBotsInnerBot.md @@ -0,0 +1,20 @@ + + +# SendBirdListBotsResponseBotsInnerBot + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aiAgentType** | **String** | | [optional] | +|**botMetadata** | **Object** | | [optional] | +|**botNickname** | **String** | | [optional] | +|**botProfileUrl** | **String** | | [optional] | +|**botRequireAuthForProfileImage** | **Boolean** | | [optional] | +|**botToken** | **String** | | [optional] | +|**botType** | **String** | | [optional] | +|**botUserid** | **String** | | | + + + diff --git a/docs/CreateABotResponseBotStyle.md b/docs/SendBirdListBotsResponseBotsInnerBotStyle.md similarity index 60% rename from docs/CreateABotResponseBotStyle.md rename to docs/SendBirdListBotsResponseBotsInnerBotStyle.md index f29c86ad..bf650927 100644 --- a/docs/CreateABotResponseBotStyle.md +++ b/docs/SendBirdListBotsResponseBotsInnerBotStyle.md @@ -1,6 +1,6 @@ -# CreateABotResponseBotStyle +# SendBirdListBotsResponseBotsInnerBotStyle ## Properties @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**autoOpen** | **Boolean** | | [optional] | -|**color** | [**ListBotsResponseBotsInnerBotStyleColor**](ListBotsResponseBotsInnerBotStyleColor.md) | | [optional] | +|**color** | [**SendBirdListBotsResponseBotsInnerBotStyleColor**](SendBirdListBotsResponseBotsInnerBotStyleColor.md) | | [optional] | |**toggleButtonType** | **String** | | [optional] | |**toggleButtonUrl** | **String** | | [optional] | diff --git a/docs/SendBirdListBotsResponseBotsInnerBotStyleColor.md b/docs/SendBirdListBotsResponseBotsInnerBotStyleColor.md new file mode 100644 index 00000000..bc510fbd --- /dev/null +++ b/docs/SendBirdListBotsResponseBotsInnerBotStyleColor.md @@ -0,0 +1,15 @@ + + +# SendBirdListBotsResponseBotsInnerBotStyleColor + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accentColor** | **String** | | [optional] | +|**botMessageColor** | **String** | | [optional] | +|**theme** | **String** | | [optional] | + + + diff --git a/docs/SendBirdListBotsResponseBotsInnerFirstMessagesInner.md b/docs/SendBirdListBotsResponseBotsInnerFirstMessagesInner.md new file mode 100644 index 00000000..ea5cc884 --- /dev/null +++ b/docs/SendBirdListBotsResponseBotsInnerFirstMessagesInner.md @@ -0,0 +1,14 @@ + + +# SendBirdListBotsResponseBotsInnerFirstMessagesInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SendBirdListBotsResponseBotsInnerFirstMessagesInnerData**](SendBirdListBotsResponseBotsInnerFirstMessagesInnerData.md) | | [optional] | +|**message** | **String** | | [optional] | + + + diff --git a/docs/SendBirdListBotsResponseBotsInnerFirstMessagesInnerData.md b/docs/SendBirdListBotsResponseBotsInnerFirstMessagesInnerData.md new file mode 100644 index 00000000..49d8ba6a --- /dev/null +++ b/docs/SendBirdListBotsResponseBotsInnerFirstMessagesInnerData.md @@ -0,0 +1,13 @@ + + +# SendBirdListBotsResponseBotsInnerFirstMessagesInnerData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**suggestedReplies** | **List<String>** | | [optional] | + + + diff --git a/docs/SendBirdListBotsResponseBotsInnerSafeguard.md b/docs/SendBirdListBotsResponseBotsInnerSafeguard.md new file mode 100644 index 00000000..2b4386d4 --- /dev/null +++ b/docs/SendBirdListBotsResponseBotsInnerSafeguard.md @@ -0,0 +1,16 @@ + + +# SendBirdListBotsResponseBotsInnerSafeguard + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bannedPhrases** | **List<Object>** | | [optional] | +|**enabled** | **Boolean** | | [optional] | +|**message** | **String** | | [optional] | +|**piiMasking** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdListMessagesResponse.md b/docs/SendBirdListMessagesResponse.md new file mode 100644 index 00000000..7fef6d65 --- /dev/null +++ b/docs/SendBirdListMessagesResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdListMessagesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messages** | [**List<SendBirdSendBirdMessageResponse>**](SendBirdSendBirdMessageResponse.md) | | [optional] | + + + diff --git a/docs/SendBirdListMyGroupChannelsResponse.md b/docs/SendBirdListMyGroupChannelsResponse.md new file mode 100644 index 00000000..003d5af9 --- /dev/null +++ b/docs/SendBirdListMyGroupChannelsResponse.md @@ -0,0 +1,15 @@ + + +# SendBirdListMyGroupChannelsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channels** | [**List<SendBirdSendBirdGroupChannel>**](SendBirdSendBirdGroupChannel.md) | | [optional] | +|**next** | **String** | | [optional] | +|**ts** | **Long** | | [optional] | + + + diff --git a/docs/SendBirdListOpenChannelsResponse.md b/docs/SendBirdListOpenChannelsResponse.md new file mode 100644 index 00000000..3146a4ae --- /dev/null +++ b/docs/SendBirdListOpenChannelsResponse.md @@ -0,0 +1,15 @@ + + +# SendBirdListOpenChannelsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channels** | [**List<SendBirdSendBirdOpenChannel>**](SendBirdSendBirdOpenChannel.md) | | [optional] | +|**next** | **String** | | [optional] | +|**ts** | **Long** | | [optional] | + + + diff --git a/docs/SendBirdListOperatorsResponse.md b/docs/SendBirdListOperatorsResponse.md new file mode 100644 index 00000000..7bd8e4d3 --- /dev/null +++ b/docs/SendBirdListOperatorsResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdListOperatorsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**next** | **String** | | [optional] | +|**operators** | [**List<SendBirdSendBirdBasicUserInfo>**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | + + + diff --git a/docs/SendBirdListRegistrationOrDeviceTokensResponse.md b/docs/SendBirdListRegistrationOrDeviceTokensResponse.md new file mode 100644 index 00000000..cfcf4c62 --- /dev/null +++ b/docs/SendBirdListRegistrationOrDeviceTokensResponse.md @@ -0,0 +1,16 @@ + + +# SendBirdListRegistrationOrDeviceTokensResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **List<String>** | | [optional] | +|**tokens** | **List<String>** | | [optional] | +|**type** | **String** | | [optional] | +|**user** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | + + + diff --git a/docs/SendBirdListUsersResponse.md b/docs/SendBirdListUsersResponse.md new file mode 100644 index 00000000..67648771 --- /dev/null +++ b/docs/SendBirdListUsersResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdListUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**next** | **String** | | [optional] | +|**users** | [**List<SendBirdSendBirdUser>**](SendBirdSendBirdUser.md) | | [optional] | + + + diff --git a/docs/SendBirdMarkAllMessagesAsReadRequest.md b/docs/SendBirdMarkAllMessagesAsReadRequest.md new file mode 100644 index 00000000..b52021df --- /dev/null +++ b/docs/SendBirdMarkAllMessagesAsReadRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdMarkAllMessagesAsReadRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelUrls** | **List<String>** | Specifies an array of one or more group channel URLs where unread messages need to be marked as read. If not specified, unread messages in all group channels a user joined are marked as read. | [optional] | + + + diff --git a/docs/SendBirdMarkChannelMessagesAsReadRequest.md b/docs/SendBirdMarkChannelMessagesAsReadRequest.md new file mode 100644 index 00000000..b046af19 --- /dev/null +++ b/docs/SendBirdMarkChannelMessagesAsReadRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdMarkChannelMessagesAsReadRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userId** | **String** | | [optional] | + + + diff --git a/docs/SendBirdMessageResponse.md b/docs/SendBirdMessageResponse.md index ad1944f7..64496613 100644 --- a/docs/SendBirdMessageResponse.md +++ b/docs/SendBirdMessageResponse.md @@ -29,14 +29,14 @@ |**reqId** | **String** | | [optional] | |**mentionType** | **String** | | [optional] | |**channelUrl** | **String** | | [optional] | -|**messageId** | **Integer** | | [optional] | +|**messageId** | **Long** | | [optional] | |**sortedMetaarray** | [**List<SendbirdSortedMetaarrayInner>**](SendbirdSortedMetaarrayInner.md) | | [optional] | |**threadInfo** | **Object** | | [optional] | |**parentMessageId** | **Integer** | | [optional] | |**parentMessageInfo** | [**SendbirdParentMessageInfo**](SendbirdParentMessageInfo.md) | | [optional] | |**isReplyToChannel** | **Boolean** | | [optional] | |**messageEvents** | [**SendbirdMessageResponseMessageEvents**](SendbirdMessageResponseMessageEvents.md) | | [optional] | -|**extendedMessagePayload** | [**SendbirdExtendedMessagePayload**](SendbirdExtendedMessagePayload.md) | | [optional] | +|**extendedMessagePayload** | [**SendbirdMessageResponseExtendedMessagePayload**](SendbirdMessageResponseExtendedMessagePayload.md) | | [optional] | diff --git a/docs/SendBirdMigrateMessagesAdminMessageRequest.md b/docs/SendBirdMigrateMessagesAdminMessageRequest.md new file mode 100644 index 00000000..6185741c --- /dev/null +++ b/docs/SendBirdMigrateMessagesAdminMessageRequest.md @@ -0,0 +1,29 @@ + + +# SendBirdMigrateMessagesAdminMessageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | | | +|**message** | **String** | | | +|**timestamp** | **Long** | | | +|**customType** | **String** | | [optional] | +|**isSilent** | **Boolean** | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**data** | **String** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**sortedMetaarray** | **List<Object>** | | [optional] | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| ADMM | "ADMM" | + + + diff --git a/docs/SendBirdMigrateMessagesFileMessageRequest.md b/docs/SendBirdMigrateMessagesFileMessageRequest.md new file mode 100644 index 00000000..c12cf379 --- /dev/null +++ b/docs/SendBirdMigrateMessagesFileMessageRequest.md @@ -0,0 +1,34 @@ + + +# SendBirdMigrateMessagesFileMessageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userId** | **String** | | | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | | | +|**url** | **String** | | | +|**timestamp** | **Long** | | | +|**fileName** | **String** | | [optional] | +|**fileSize** | **Integer** | | [optional] | +|**fileType** | **String** | | [optional] | +|**thumbnails** | [**List<SendBirdMigrateMessagesFileMessageRequestThumbnailsInner>**](SendBirdMigrateMessagesFileMessageRequestThumbnailsInner.md) | | [optional] | +|**requireAuth** | **Boolean** | | [optional] | +|**customType** | **String** | | [optional] | +|**customField** | **String** | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**sortedMetaarray** | **List<Object>** | | [optional] | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| FILE | "FILE" | + + + diff --git a/docs/SendBirdMigrateMessagesFileMessageRequestThumbnailsInner.md b/docs/SendBirdMigrateMessagesFileMessageRequestThumbnailsInner.md new file mode 100644 index 00000000..4fbf59f5 --- /dev/null +++ b/docs/SendBirdMigrateMessagesFileMessageRequestThumbnailsInner.md @@ -0,0 +1,37 @@ + + +# SendBirdMigrateMessagesFileMessageRequestThumbnailsInner + +## oneOf schemas +* [Object](Object.md) +* [String](String.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendBirdMigrateMessagesFileMessageRequestThumbnailsInner; +import org.openapitools.client.model.Object; +import org.openapitools.client.model.String; + +public class Example { + public static void main(String[] args) { + SendBirdMigrateMessagesFileMessageRequestThumbnailsInner exampleSendBirdMigrateMessagesFileMessageRequestThumbnailsInner = new SendBirdMigrateMessagesFileMessageRequestThumbnailsInner(); + + // create a new Object + Object exampleObject = new Object(); + // set SendBirdMigrateMessagesFileMessageRequestThumbnailsInner to Object + exampleSendBirdMigrateMessagesFileMessageRequestThumbnailsInner.setActualInstance(exampleObject); + // to get back the Object set earlier + Object testObject = (Object) exampleSendBirdMigrateMessagesFileMessageRequestThumbnailsInner.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set SendBirdMigrateMessagesFileMessageRequestThumbnailsInner to String + exampleSendBirdMigrateMessagesFileMessageRequestThumbnailsInner.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleSendBirdMigrateMessagesFileMessageRequestThumbnailsInner.getActualInstance(); + } +} +``` + + diff --git a/docs/SendBirdMigrateMessagesRequest.md b/docs/SendBirdMigrateMessagesRequest.md new file mode 100644 index 00000000..95160277 --- /dev/null +++ b/docs/SendBirdMigrateMessagesRequest.md @@ -0,0 +1,15 @@ + + +# SendBirdMigrateMessagesRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messages** | [**List<SendBirdMigrateMessagesRequestMessagesInner>**](SendBirdMigrateMessagesRequestMessagesInner.md) | | [optional] | +|**updateReadTs** | **Boolean** | | [optional] | +|**rewindReadTs** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdMigrateMessagesRequestMessagesInner.md b/docs/SendBirdMigrateMessagesRequestMessagesInner.md new file mode 100644 index 00000000..9f332503 --- /dev/null +++ b/docs/SendBirdMigrateMessagesRequestMessagesInner.md @@ -0,0 +1,46 @@ + + +# SendBirdMigrateMessagesRequestMessagesInner + +## oneOf schemas +* [SendBirdMigrateMessagesAdminMessageRequest](SendBirdMigrateMessagesAdminMessageRequest.md) +* [SendBirdMigrateMessagesFileMessageRequest](SendBirdMigrateMessagesFileMessageRequest.md) +* [SendBirdMigrateMessagesTextMessageRequest](SendBirdMigrateMessagesTextMessageRequest.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendBirdMigrateMessagesRequestMessagesInner; +import org.openapitools.client.model.SendBirdMigrateMessagesAdminMessageRequest; +import org.openapitools.client.model.SendBirdMigrateMessagesFileMessageRequest; +import org.openapitools.client.model.SendBirdMigrateMessagesTextMessageRequest; + +public class Example { + public static void main(String[] args) { + SendBirdMigrateMessagesRequestMessagesInner exampleSendBirdMigrateMessagesRequestMessagesInner = new SendBirdMigrateMessagesRequestMessagesInner(); + + // create a new SendBirdMigrateMessagesAdminMessageRequest + SendBirdMigrateMessagesAdminMessageRequest exampleSendBirdMigrateMessagesAdminMessageRequest = new SendBirdMigrateMessagesAdminMessageRequest(); + // set SendBirdMigrateMessagesRequestMessagesInner to SendBirdMigrateMessagesAdminMessageRequest + exampleSendBirdMigrateMessagesRequestMessagesInner.setActualInstance(exampleSendBirdMigrateMessagesAdminMessageRequest); + // to get back the SendBirdMigrateMessagesAdminMessageRequest set earlier + SendBirdMigrateMessagesAdminMessageRequest testSendBirdMigrateMessagesAdminMessageRequest = (SendBirdMigrateMessagesAdminMessageRequest) exampleSendBirdMigrateMessagesRequestMessagesInner.getActualInstance(); + + // create a new SendBirdMigrateMessagesFileMessageRequest + SendBirdMigrateMessagesFileMessageRequest exampleSendBirdMigrateMessagesFileMessageRequest = new SendBirdMigrateMessagesFileMessageRequest(); + // set SendBirdMigrateMessagesRequestMessagesInner to SendBirdMigrateMessagesFileMessageRequest + exampleSendBirdMigrateMessagesRequestMessagesInner.setActualInstance(exampleSendBirdMigrateMessagesFileMessageRequest); + // to get back the SendBirdMigrateMessagesFileMessageRequest set earlier + SendBirdMigrateMessagesFileMessageRequest testSendBirdMigrateMessagesFileMessageRequest = (SendBirdMigrateMessagesFileMessageRequest) exampleSendBirdMigrateMessagesRequestMessagesInner.getActualInstance(); + + // create a new SendBirdMigrateMessagesTextMessageRequest + SendBirdMigrateMessagesTextMessageRequest exampleSendBirdMigrateMessagesTextMessageRequest = new SendBirdMigrateMessagesTextMessageRequest(); + // set SendBirdMigrateMessagesRequestMessagesInner to SendBirdMigrateMessagesTextMessageRequest + exampleSendBirdMigrateMessagesRequestMessagesInner.setActualInstance(exampleSendBirdMigrateMessagesTextMessageRequest); + // to get back the SendBirdMigrateMessagesTextMessageRequest set earlier + SendBirdMigrateMessagesTextMessageRequest testSendBirdMigrateMessagesTextMessageRequest = (SendBirdMigrateMessagesTextMessageRequest) exampleSendBirdMigrateMessagesRequestMessagesInner.getActualInstance(); + } +} +``` + + diff --git a/docs/SendBirdMigrateMessagesTextMessageRequest.md b/docs/SendBirdMigrateMessagesTextMessageRequest.md new file mode 100644 index 00000000..b382f735 --- /dev/null +++ b/docs/SendBirdMigrateMessagesTextMessageRequest.md @@ -0,0 +1,29 @@ + + +# SendBirdMigrateMessagesTextMessageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userId** | **String** | | | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | | | +|**message** | **String** | | | +|**timestamp** | **Long** | | | +|**customType** | **String** | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**data** | **String** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**sortedMetaarray** | **List<Object>** | | [optional] | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| MESG | "MESG" | + + + diff --git a/docs/SendBirdRegisterOperatorsToAGroupChannelRequest.md b/docs/SendBirdRegisterOperatorsToAGroupChannelRequest.md new file mode 100644 index 00000000..3cdaf514 --- /dev/null +++ b/docs/SendBirdRegisterOperatorsToAGroupChannelRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdRegisterOperatorsToAGroupChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**operatorIds** | **List<String>** | | | + + + diff --git a/docs/SendBirdRemoveARegistrationOrDeviceTokenResponse.md b/docs/SendBirdRemoveARegistrationOrDeviceTokenResponse.md new file mode 100644 index 00000000..c2a0bdb1 --- /dev/null +++ b/docs/SendBirdRemoveARegistrationOrDeviceTokenResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdRemoveARegistrationOrDeviceTokenResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **String** | | [optional] | +|**user** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | + + + diff --git a/docs/SendBirdRemoveAllRegistrationOrDeviceTokenResponse.md b/docs/SendBirdRemoveAllRegistrationOrDeviceTokenResponse.md new file mode 100644 index 00000000..0e81916a --- /dev/null +++ b/docs/SendBirdRemoveAllRegistrationOrDeviceTokenResponse.md @@ -0,0 +1,14 @@ + + +# SendBirdRemoveAllRegistrationOrDeviceTokenResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **List<String>** | | [optional] | +|**user** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | + + + diff --git a/docs/SendBirdResetChatHistoryRequest.md b/docs/SendBirdResetChatHistoryRequest.md new file mode 100644 index 00000000..d3942bd6 --- /dev/null +++ b/docs/SendBirdResetChatHistoryRequest.md @@ -0,0 +1,14 @@ + + +# SendBirdResetChatHistoryRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resetAll** | **Boolean** | | [optional] | +|**userId** | **String** | | | + + + diff --git a/docs/SendBirdResetChatHistoryResponse.md b/docs/SendBirdResetChatHistoryResponse.md new file mode 100644 index 00000000..badbdd79 --- /dev/null +++ b/docs/SendBirdResetChatHistoryResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdResetChatHistoryResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**tsMessageOffset** | **Long** | The timestamp in Unix milliseconds indicating the point in time that determines when the user can view messages in a specific channel. Messages sent on or before this timestamp can't be viewed by the user. | [optional] | + + + diff --git a/docs/SendBirdScheduleAnAnnouncementRequest.md b/docs/SendBirdScheduleAnAnnouncementRequest.md new file mode 100644 index 00000000..3b54f0b0 --- /dev/null +++ b/docs/SendBirdScheduleAnAnnouncementRequest.md @@ -0,0 +1,30 @@ + + +# SendBirdScheduleAnAnnouncementRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**announcementGroup** | **String** | | [optional] | +|**assignSenderAsChannelInviter** | **Boolean** | | [optional] | +|**ceaseAt** | **String** | | [optional] | +|**createChannel** | **Boolean** | | [optional] | +|**createChannelOptions** | [**SendBirdScheduleAnAnnouncementRequestCreateChannelOptions**](SendBirdScheduleAnAnnouncementRequestCreateChannelOptions.md) | | [optional] | +|**enablePush** | **Boolean** | | [optional] | +|**endAt** | **Long** | | [optional] | +|**keepChannelHiddenForSender** | **Boolean** | | [optional] | +|**markAsRead** | **Boolean** | | [optional] | +|**message** | [**SendBirdScheduleAnAnnouncementRequestMessage**](SendBirdScheduleAnAnnouncementRequestMessage.md) | | [optional] | +|**resumeAt** | **String** | | [optional] | +|**scheduledAt** | **Long** | | [optional] | +|**sendToFrozenChannels** | **Boolean** | | [optional] | +|**targetAt** | **String** | | [optional] | +|**targetChannelType** | **String** | | [optional] | +|**targetCustomType** | **String** | | [optional] | +|**targetList** | **List<String>** | | [optional] | +|**uniqueId** | **String** | | [optional] | + + + diff --git a/docs/SendBirdScheduleAnAnnouncementRequestCreateChannelOptions.md b/docs/SendBirdScheduleAnAnnouncementRequestCreateChannelOptions.md new file mode 100644 index 00000000..52f87066 --- /dev/null +++ b/docs/SendBirdScheduleAnAnnouncementRequestCreateChannelOptions.md @@ -0,0 +1,17 @@ + + +# SendBirdScheduleAnAnnouncementRequestCreateChannelOptions + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**coverUrl** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**distinct** | **Boolean** | | [optional] | +|**name** | **String** | | [optional] | + + + diff --git a/docs/SendBirdScheduleAnAnnouncementRequestMessage.md b/docs/SendBirdScheduleAnAnnouncementRequestMessage.md new file mode 100644 index 00000000..d9b8b2bf --- /dev/null +++ b/docs/SendBirdScheduleAnAnnouncementRequestMessage.md @@ -0,0 +1,17 @@ + + +# SendBirdScheduleAnAnnouncementRequestMessage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**content** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**userId** | **String** | | [optional] | + + + diff --git a/docs/SendBirdScheduleAnAnnouncementResponse.md b/docs/SendBirdScheduleAnAnnouncementResponse.md new file mode 100644 index 00000000..90278241 --- /dev/null +++ b/docs/SendBirdScheduleAnAnnouncementResponse.md @@ -0,0 +1,36 @@ + + +# SendBirdScheduleAnAnnouncementResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**announcementGroup** | **String** | | [optional] | +|**ceaseAt** | **String** | | [optional] | +|**completedAt** | **Long** | | [optional] | +|**createChannel** | **Boolean** | | [optional] | +|**createChannelOptions** | [**SendBirdScheduleAnAnnouncementRequestCreateChannelOptions**](SendBirdScheduleAnAnnouncementRequestCreateChannelOptions.md) | | [optional] | +|**enablePush** | **Boolean** | | [optional] | +|**endAt** | **Long** | | [optional] | +|**markAsRead** | **Boolean** | | [optional] | +|**message** | [**SendBirdScheduleAnAnnouncementResponseMessage**](SendBirdScheduleAnAnnouncementResponseMessage.md) | | [optional] | +|**openCount** | **Integer** | | [optional] | +|**openRate** | **BigDecimal** | | [optional] | +|**priority** | **String** | | [optional] | +|**resumeAt** | **String** | | [optional] | +|**scheduledAt** | **Long** | | [optional] | +|**sendToFrozenChannels** | **Boolean** | | [optional] | +|**sentChannelCount** | **Integer** | | [optional] | +|**sentUserCount** | **Integer** | | [optional] | +|**status** | **String** | | [optional] | +|**targetAt** | **String** | | [optional] | +|**targetChannelCount** | **Integer** | | [optional] | +|**targetChannelType** | **String** | | [optional] | +|**targetCustomType** | **String** | | [optional] | +|**targetUserCount** | **Integer** | | [optional] | +|**uniqueId** | **String** | | [optional] | + + + diff --git a/docs/SendBirdScheduleAnAnnouncementResponseMessage.md b/docs/SendBirdScheduleAnAnnouncementResponseMessage.md new file mode 100644 index 00000000..10eb3af8 --- /dev/null +++ b/docs/SendBirdScheduleAnAnnouncementResponseMessage.md @@ -0,0 +1,18 @@ + + +# SendBirdScheduleAnAnnouncementResponseMessage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**content** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**messageRetentionHour** | **Integer** | | [optional] | +|**type** | **String** | | [optional] | +|**userId** | **String** | | [optional] | + + + diff --git a/docs/SendBirdSendABotMessageResponse.md b/docs/SendBirdSendABotMessageResponse.md new file mode 100644 index 00000000..51b05b5a --- /dev/null +++ b/docs/SendBirdSendABotMessageResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdSendABotMessageResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**message** | [**SendBirdSendBirdMessageResponse**](SendBirdSendBirdMessageResponse.md) | | [optional] | + + + diff --git a/docs/SendBirdSendAMessageRequest.md b/docs/SendBirdSendAMessageRequest.md new file mode 100644 index 00000000..06daeada --- /dev/null +++ b/docs/SendBirdSendAMessageRequest.md @@ -0,0 +1,57 @@ + + +# SendBirdSendAMessageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | | | +|**userId** | **String** | | | +|**message** | **String** | Specifies the content of the message. * This property is required when message_type is MESG or ADMM. | [optional] | +|**pushMessageTemplate** | [**SendBirdSendAMessageRequestPushMessageTemplate**](SendBirdSendAMessageRequestPushMessageTemplate.md) | | [optional] | +|**pollId** | **Integer** | Specifies the ID of the poll to be associated with the message. * This property is only available for group channels and message_type is MESG. | [optional] | +|**files** | [**SendBirdSendBirdFile**](SendBirdSendBirdFile.md) | | [optional] | +|**requireAuth** | **Boolean** | Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. | [optional] | +|**thumbnail1** | **String** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**thumbnail2** | **String** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**thumbnail3** | **String** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**thumbnails** | **List<String>** | Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. | [optional] | +|**apnsBundleId** | **String** | | [optional] | +|**appleCriticalAlertOptions** | **Object** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**includePollDetails** | **Boolean** | | [optional] | +|**isSilent** | **Boolean** | | [optional] | +|**markAsRead** | **Boolean** | | [optional] | +|**mentionType** | [**MentionTypeEnum**](#MentionTypeEnum) | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**sendPush** | **Boolean** | | [optional] | +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | +|**sound** | **String** | | [optional] | +|**volume** | **BigDecimal** | | [optional] | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| MESG | "MESG" | +| ADMM | "ADMM" | +| FILE | "FILE" | + + + +## Enum: MentionTypeEnum + +| Name | Value | +|---- | -----| +| USERS | "users" | +| CHANNEL | "channel" | + + + diff --git a/docs/SendBirdSendAMessageRequestPushMessageTemplate.md b/docs/SendBirdSendAMessageRequestPushMessageTemplate.md new file mode 100644 index 00000000..71f4e7ee --- /dev/null +++ b/docs/SendBirdSendAMessageRequestPushMessageTemplate.md @@ -0,0 +1,39 @@ + + +# SendBirdSendAMessageRequestPushMessageTemplate + +Specifies the content of a push notification customized for the message. This property only applies to group channels. To choose from a push notification content template within your Sendbird application, specify a string value of default or alternative. To create a new push notification content tailored to the message being sent, use the properties listed below to specify its title and body in a nested object format. * This property overrides the application's default push notification content template or the preference chosen by the user. * This property is available when message_type is MESG or ADMM. + +## oneOf schemas +* [SendBirdSendAMessageRequestPushMessageTemplateOneOf](SendBirdSendAMessageRequestPushMessageTemplateOneOf.md) +* [String](String.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendBirdSendAMessageRequestPushMessageTemplate; +import org.openapitools.client.model.SendBirdSendAMessageRequestPushMessageTemplateOneOf; +import org.openapitools.client.model.String; + +public class Example { + public static void main(String[] args) { + SendBirdSendAMessageRequestPushMessageTemplate exampleSendBirdSendAMessageRequestPushMessageTemplate = new SendBirdSendAMessageRequestPushMessageTemplate(); + + // create a new SendBirdSendAMessageRequestPushMessageTemplateOneOf + SendBirdSendAMessageRequestPushMessageTemplateOneOf exampleSendBirdSendAMessageRequestPushMessageTemplateOneOf = new SendBirdSendAMessageRequestPushMessageTemplateOneOf(); + // set SendBirdSendAMessageRequestPushMessageTemplate to SendBirdSendAMessageRequestPushMessageTemplateOneOf + exampleSendBirdSendAMessageRequestPushMessageTemplate.setActualInstance(exampleSendBirdSendAMessageRequestPushMessageTemplateOneOf); + // to get back the SendBirdSendAMessageRequestPushMessageTemplateOneOf set earlier + SendBirdSendAMessageRequestPushMessageTemplateOneOf testSendBirdSendAMessageRequestPushMessageTemplateOneOf = (SendBirdSendAMessageRequestPushMessageTemplateOneOf) exampleSendBirdSendAMessageRequestPushMessageTemplate.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set SendBirdSendAMessageRequestPushMessageTemplate to String + exampleSendBirdSendAMessageRequestPushMessageTemplate.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleSendBirdSendAMessageRequestPushMessageTemplate.getActualInstance(); + } +} +``` + + diff --git a/docs/SendBirdSendAMessageRequestPushMessageTemplateOneOf.md b/docs/SendBirdSendAMessageRequestPushMessageTemplateOneOf.md new file mode 100644 index 00000000..c01c252a --- /dev/null +++ b/docs/SendBirdSendAMessageRequestPushMessageTemplateOneOf.md @@ -0,0 +1,14 @@ + + +# SendBirdSendAMessageRequestPushMessageTemplateOneOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**title** | **String** | Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. | [optional] | +|**body** | **String** | Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. | [optional] | + + + diff --git a/docs/SendBirdSendAdminMessageRequestBody.md b/docs/SendBirdSendAdminMessageRequestBody.md new file mode 100644 index 00000000..17771427 --- /dev/null +++ b/docs/SendBirdSendAdminMessageRequestBody.md @@ -0,0 +1,41 @@ + + +# SendBirdSendAdminMessageRequestBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apnsBundleId** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**isSilent** | **Boolean** | | [optional] | +|**mentionType** | [**MentionTypeEnum**](#MentionTypeEnum) | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**message** | **String** | | | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | Specifies the type of the message. The value of ADMM represents an admin message. | | +|**pushMessageTemplate** | [**SendBirdSendTextMessageRequestBodyPushMessageTemplate**](SendBirdSendTextMessageRequestBodyPushMessageTemplate.md) | | [optional] | +|**sendPush** | **Boolean** | | [optional] | +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | + + + +## Enum: MentionTypeEnum + +| Name | Value | +|---- | -----| +| USERS | "users" | +| CHANNEL | "channel" | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| ADMM | "ADMM" | + + + diff --git a/docs/SendBirdSendFileMessageRequestBody.md b/docs/SendBirdSendFileMessageRequestBody.md new file mode 100644 index 00000000..67e7e551 --- /dev/null +++ b/docs/SendBirdSendFileMessageRequestBody.md @@ -0,0 +1,50 @@ + + +# SendBirdSendFileMessageRequestBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apnsBundleId** | **String** | | [optional] | +|**appleCriticalAlertOptions** | **Object** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**files** | [**SendBirdSendBirdFile**](SendBirdSendBirdFile.md) | | | +|**isSilent** | **Boolean** | | [optional] | +|**markAsRead** | **Boolean** | | [optional] | +|**mentionType** | [**MentionTypeEnum**](#MentionTypeEnum) | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | Specifies the type of the message. The value of FILE represents a file message. | | +|**requireAuth** | **Boolean** | Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. | [optional] | +|**sendPush** | **Boolean** | | [optional] | +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | +|**sound** | **String** | | [optional] | +|**thumbnail1** | **String** | | [optional] | +|**thumbnail2** | **String** | | [optional] | +|**thumbnail3** | **String** | | [optional] | +|**thumbnails** | **List<String>** | | [optional] | +|**volume** | **BigDecimal** | | [optional] | + + + +## Enum: MentionTypeEnum + +| Name | Value | +|---- | -----| +| USERS | "users" | +| CHANNEL | "channel" | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| FILE | "FILE" | + + + diff --git a/docs/SendBirdSendTextMessageRequestBody.md b/docs/SendBirdSendTextMessageRequestBody.md new file mode 100644 index 00000000..cbaf15ed --- /dev/null +++ b/docs/SendBirdSendTextMessageRequestBody.md @@ -0,0 +1,48 @@ + + +# SendBirdSendTextMessageRequestBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apnsBundleId** | **String** | | [optional] | +|**appleCriticalAlertOptions** | **Object** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**dedupId** | **String** | | [optional] | +|**includePollDetails** | **Boolean** | | [optional] | +|**isSilent** | **Boolean** | | [optional] | +|**markAsRead** | **Boolean** | | [optional] | +|**mentionType** | [**MentionTypeEnum**](#MentionTypeEnum) | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**message** | **String** | | | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | Specifies the type of the message. The value of MESG represents a text message. | | +|**pollId** | **Integer** | | [optional] | +|**pushMessageTemplate** | [**SendBirdSendTextMessageRequestBodyPushMessageTemplate**](SendBirdSendTextMessageRequestBodyPushMessageTemplate.md) | | [optional] | +|**sendPush** | **Boolean** | | [optional] | +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | +|**sound** | **String** | | [optional] | +|**volume** | **BigDecimal** | | [optional] | + + + +## Enum: MentionTypeEnum + +| Name | Value | +|---- | -----| +| USERS | "users" | +| CHANNEL | "channel" | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| MESG | "MESG" | + + + diff --git a/docs/SendBirdSendTextMessageRequestBodyPushMessageTemplate.md b/docs/SendBirdSendTextMessageRequestBodyPushMessageTemplate.md new file mode 100644 index 00000000..04ead51c --- /dev/null +++ b/docs/SendBirdSendTextMessageRequestBodyPushMessageTemplate.md @@ -0,0 +1,39 @@ + + +# SendBirdSendTextMessageRequestBodyPushMessageTemplate + +Specifies the content of a push notification customized for the message. This property only applies to group channels. To choose from a push notification content template within your Sendbird application, specify a string value of default or alternative. To create a new push notification content tailored to the message being sent, use the properties listed below to specify its title and body in a nested object format. * This property overrides the application's default push notification content template or the preference chosen by the user. + +## oneOf schemas +* [SendBirdSendAMessageRequestPushMessageTemplateOneOf](SendBirdSendAMessageRequestPushMessageTemplateOneOf.md) +* [String](String.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendBirdSendTextMessageRequestBodyPushMessageTemplate; +import org.openapitools.client.model.SendBirdSendAMessageRequestPushMessageTemplateOneOf; +import org.openapitools.client.model.String; + +public class Example { + public static void main(String[] args) { + SendBirdSendTextMessageRequestBodyPushMessageTemplate exampleSendBirdSendTextMessageRequestBodyPushMessageTemplate = new SendBirdSendTextMessageRequestBodyPushMessageTemplate(); + + // create a new SendBirdSendAMessageRequestPushMessageTemplateOneOf + SendBirdSendAMessageRequestPushMessageTemplateOneOf exampleSendBirdSendAMessageRequestPushMessageTemplateOneOf = new SendBirdSendAMessageRequestPushMessageTemplateOneOf(); + // set SendBirdSendTextMessageRequestBodyPushMessageTemplate to SendBirdSendAMessageRequestPushMessageTemplateOneOf + exampleSendBirdSendTextMessageRequestBodyPushMessageTemplate.setActualInstance(exampleSendBirdSendAMessageRequestPushMessageTemplateOneOf); + // to get back the SendBirdSendAMessageRequestPushMessageTemplateOneOf set earlier + SendBirdSendAMessageRequestPushMessageTemplateOneOf testSendBirdSendAMessageRequestPushMessageTemplateOneOf = (SendBirdSendAMessageRequestPushMessageTemplateOneOf) exampleSendBirdSendTextMessageRequestBodyPushMessageTemplate.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set SendBirdSendTextMessageRequestBodyPushMessageTemplate to String + exampleSendBirdSendTextMessageRequestBodyPushMessageTemplate.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleSendBirdSendTextMessageRequestBodyPushMessageTemplate.getActualInstance(); + } +} +``` + + diff --git a/docs/SendBirdSendbirdBasicUserInfo.md b/docs/SendBirdSendbirdBasicUserInfo.md new file mode 100644 index 00000000..b8ab5a9f --- /dev/null +++ b/docs/SendBirdSendbirdBasicUserInfo.md @@ -0,0 +1,30 @@ + + +# SendBirdSendBirdBasicUserInfo + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requireAuthForProfileImage** | **Boolean** | | [optional] | +|**isActive** | **Boolean** | | [optional] | +|**isBlockedByMe** | **Boolean** | | [optional] | +|**role** | [**RoleEnum**](#RoleEnum) | | [optional] | +|**nickname** | **String** | | [optional] | +|**userId** | **String** | | | +|**profileUrl** | **String** | | [optional] | +|**metadata** | **Object** | | [optional] | + + + +## Enum: RoleEnum + +| Name | Value | +|---- | -----| +| EMPTY | "" | +| NONE | "none" | +| OPERATOR | "operator" | + + + diff --git a/docs/SendBirdSendbirdDisappearingMessage.md b/docs/SendBirdSendbirdDisappearingMessage.md new file mode 100644 index 00000000..4360018d --- /dev/null +++ b/docs/SendBirdSendbirdDisappearingMessage.md @@ -0,0 +1,14 @@ + + +# SendBirdSendBirdDisappearingMessage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messageSurvivalSeconds** | **Integer** | | [optional] | +|**isTriggeredByMessageRead** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdExtendedMessagePayload.md b/docs/SendBirdSendbirdExtendedMessagePayload.md new file mode 100644 index 00000000..3f2dc9ef --- /dev/null +++ b/docs/SendBirdSendbirdExtendedMessagePayload.md @@ -0,0 +1,15 @@ + + +# SendBirdSendBirdExtendedMessagePayload + +Specifies the extended message payload which is used to send a message with a custom message type. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**customView** | **Object** | JSON format you want to embed in message, eq : {\"title\": \"title\", \"image\": \"https://link.to/image.jpg\"} | [optional] | +|**suggestedReplies** | **List<String>** | Specifies an array of suggested replies to be sent with the message. | [optional] | + + + diff --git a/docs/SendBirdSendbirdFile.md b/docs/SendBirdSendbirdFile.md new file mode 100644 index 00000000..a5c513bd --- /dev/null +++ b/docs/SendBirdSendbirdFile.md @@ -0,0 +1,18 @@ + + +# SendBirdSendBirdFile + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | | [optional] | +|**fileName** | **String** | | [optional] | +|**fileSize** | **Integer** | | [optional] | +|**fileType** | **String** | | [optional] | +|**thumbnails** | [**List<SendBirdSendBirdThumbnail>**](SendBirdSendBirdThumbnail.md) | | [optional] | +|**requireAuth** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdGroupChannel.md b/docs/SendBirdSendbirdGroupChannel.md new file mode 100644 index 00000000..9c6c75f6 --- /dev/null +++ b/docs/SendBirdSendbirdGroupChannel.md @@ -0,0 +1,98 @@ + + +# SendBirdSendBirdGroupChannel + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelUrl** | **String** | | | +|**countPreference** | [**CountPreferenceEnum**](#CountPreferenceEnum) | | [optional] | +|**coverUrl** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**createdBy** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**deliveryReceipt** | **Object** | | [optional] | +|**disappearingMessage** | [**SendBirdSendBirdDisappearingMessage**](SendBirdSendBirdDisappearingMessage.md) | | [optional] | +|**freeze** | **Boolean** | | [optional] | +|**hasAiBot** | **Boolean** | | [optional] | +|**hasBot** | **Boolean** | | [optional] | +|**hiddenState** | [**HiddenStateEnum**](#HiddenStateEnum) | | [optional] | +|**ignoreProfanityFilter** | **Boolean** | | [optional] | +|**invitedAt** | **Long** | | [optional] | +|**inviter** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**isAccessCodeRequired** | **Boolean** | | [optional] | +|**isBroadcast** | **Boolean** | | [optional] | +|**isDiscoverable** | **Boolean** | | [optional] | +|**isDistinct** | **Boolean** | | [optional] | +|**isEphemeral** | **Boolean** | | [optional] | +|**isExclusive** | **Boolean** | | [optional] | +|**isHidden** | **Boolean** | | [optional] | +|**isMuted** | **Boolean** | | [optional] | +|**isPublic** | **Boolean** | | [optional] | +|**isPushEnabled** | **Boolean** | | [optional] | +|**isSuper** | **Boolean** | | [optional] | +|**joinedMemberCount** | **Integer** | | [optional] | +|**joinedTs** | **Long** | | [optional] | +|**lastMessage** | [**SendBirdSendBirdGroupChannelLastMessage**](SendBirdSendBirdGroupChannelLastMessage.md) | | [optional] | +|**maxLengthMessage** | **Integer** | | [optional] | +|**memberCount** | **Integer** | | [optional] | +|**memberState** | [**MemberStateEnum**](#MemberStateEnum) | | [optional] | +|**members** | [**List<SendBirdSendBirdMember>**](SendBirdSendBirdMember.md) | | [optional] | +|**messageSurvivalSeconds** | **Integer** | | [optional] | +|**metadata** | **Object** | | [optional] | +|**myRole** | [**MyRoleEnum**](#MyRoleEnum) | | [optional] | +|**name** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | +|**readReceipt** | **Map<String, Long>** | | [optional] | +|**smsFallback** | [**SendBirdSendBirdSmsFallback**](SendBirdSendBirdSmsFallback.md) | | [optional] | +|**tsMessageOffset** | **Long** | | [optional] | +|**unreadMentionCount** | **Integer** | | [optional] | +|**unreadMessageCount** | **Integer** | | [optional] | +|**userLastRead** | **Long** | | [optional] | + + + +## Enum: CountPreferenceEnum + +| Name | Value | +|---- | -----| +| FALSE | "false" | +| ALL | "all" | +| UNREAD_MESSAGE_COUNT_ONLY | "unread_message_count_only" | +| UNREAD_MENTIONED_COUNT_ONLY | "unread_mentioned_count_only" | + + + +## Enum: HiddenStateEnum + +| Name | Value | +|---- | -----| +| HIDDEN_ALLOW_AUTO_UNHIDE | "hidden_allow_auto_unhide" | +| HIDDEN_PREVENT_AUTO_UNHIDE | "hidden_prevent_auto_unhide" | +| UNHIDDEN | "unhidden" | + + + +## Enum: MemberStateEnum + +| Name | Value | +|---- | -----| +| INVITED | "invited" | +| JOINED | "joined" | +| NONE | "none" | + + + +## Enum: MyRoleEnum + +| Name | Value | +|---- | -----| +| EMPTY | "" | +| NONE | "none" | +| OPERATOR | "operator" | + + + diff --git a/docs/SendBirdSendbirdGroupChannelDetail.md b/docs/SendBirdSendbirdGroupChannelDetail.md new file mode 100644 index 00000000..6a96d2e2 --- /dev/null +++ b/docs/SendBirdSendbirdGroupChannelDetail.md @@ -0,0 +1,45 @@ + + +# SendBirdSendBirdGroupChannelDetail + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channel** | [**SendBirdSendBirdGroupChannelDetailChannel**](SendBirdSendBirdGroupChannelDetailChannel.md) | | [optional] | +|**channelUrl** | **String** | | | +|**coverUrl** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**createdBy** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**deliveryReceipt** | **Map<String, Long>** | | [optional] | +|**disappearingMessage** | [**SendBirdSendBirdDisappearingMessage**](SendBirdSendBirdDisappearingMessage.md) | | [optional] | +|**freeze** | **Boolean** | | [optional] | +|**hasAiBot** | **Boolean** | | [optional] | +|**hasBot** | **Boolean** | | [optional] | +|**id** | **Integer** | | [optional] | +|**ignoreProfanityFilter** | **Boolean** | | [optional] | +|**isAccessCodeRequired** | **Boolean** | | [optional] | +|**isBroadcast** | **Boolean** | | [optional] | +|**isDiscoverable** | **Boolean** | | [optional] | +|**isDistinct** | **Boolean** | | [optional] | +|**isEphemeral** | **Boolean** | | [optional] | +|**isPublic** | **Boolean** | | [optional] | +|**isSuper** | **Boolean** | | [optional] | +|**joinedMemberCount** | **Integer** | | [optional] | +|**lastMessage** | [**SendBirdSendBirdMessageResponse**](SendBirdSendBirdMessageResponse.md) | | [optional] | +|**maxLengthMessage** | **Integer** | | [optional] | +|**memberCount** | **Integer** | | [optional] | +|**members** | [**List<SendBirdSendBirdMember>**](SendBirdSendBirdMember.md) | | [optional] | +|**messageSurvivalSeconds** | **Integer** | | [optional] | +|**name** | **String** | | [optional] | +|**operators** | [**List<SendBirdSendBirdUser>**](SendBirdSendBirdUser.md) | | [optional] | +|**readReceipt** | **Map<String, Long>** | | [optional] | +|**smsFallback** | [**SendBirdSendBirdSmsFallback**](SendBirdSendBirdSmsFallback.md) | | [optional] | +|**unreadMentionCount** | **Integer** | | [optional] | +|**unreadMessageCount** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdGroupChannelDetailChannel.md b/docs/SendBirdSendbirdGroupChannelDetailChannel.md new file mode 100644 index 00000000..3942a1b3 --- /dev/null +++ b/docs/SendBirdSendbirdGroupChannelDetailChannel.md @@ -0,0 +1,20 @@ + + +# SendBirdSendBirdGroupChannelDetailChannel + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelUrl** | **String** | | [optional] | +|**coverUrl** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**maxLengthMessage** | **Integer** | | [optional] | +|**memberCount** | **Integer** | | [optional] | +|**name** | **String** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdGroupChannelLastMessage.md b/docs/SendBirdSendbirdGroupChannelLastMessage.md new file mode 100644 index 00000000..e825ef41 --- /dev/null +++ b/docs/SendBirdSendbirdGroupChannelLastMessage.md @@ -0,0 +1,28 @@ + + +# SendBirdSendBirdGroupChannelLastMessage + +## oneOf schemas +* [SendBirdSendBirdMessageResponse](SendBirdSendBirdMessageResponse.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendBirdSendBirdGroupChannelLastMessage; +import org.openapitools.client.model.SendBirdSendBirdMessageResponse; + +public class Example { + public static void main(String[] args) { + SendBirdSendBirdGroupChannelLastMessage exampleSendBirdSendBirdGroupChannelLastMessage = new SendBirdSendBirdGroupChannelLastMessage(); + + // create a new SendBirdSendBirdMessageResponse + SendBirdSendBirdMessageResponse exampleSendBirdSendBirdMessageResponse = new SendBirdSendBirdMessageResponse(); + // set SendBirdSendBirdGroupChannelLastMessage to SendBirdSendBirdMessageResponse + exampleSendBirdSendBirdGroupChannelLastMessage.setActualInstance(exampleSendBirdSendBirdMessageResponse); + // to get back the SendBirdSendBirdMessageResponse set earlier + SendBirdSendBirdMessageResponse testSendBirdSendBirdMessageResponse = (SendBirdSendBirdMessageResponse) exampleSendBirdSendBirdGroupChannelLastMessage.getActualInstance(); + } +} +``` + + diff --git a/docs/SendBirdSendbirdMember.md b/docs/SendBirdSendbirdMember.md new file mode 100644 index 00000000..8508ccd7 --- /dev/null +++ b/docs/SendBirdSendbirdMember.md @@ -0,0 +1,54 @@ + + +# SendBirdSendBirdMember + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deliveredTs** | **Long** | | [optional] | +|**doNotDisturb** | **Boolean** | | [optional] | +|**friendDiscoveryKey** | **List<String>** | | [optional] | +|**friendName** | **String** | | [optional] | +|**isActive** | **Boolean** | | [optional] | +|**isBlockedByMe** | **Boolean** | | [optional] | +|**isBlockingMe** | **Boolean** | | [optional] | +|**isMuted** | **Boolean** | | [optional] | +|**isOnline** | **Boolean** | | [optional] | +|**lastSeenAt** | **Long** | | [optional] | +|**metadata** | **Object** | | [optional] | +|**mutedDescription** | **String** | | [optional] | +|**mutedEndAt** | **Long** | | [optional] | +|**nickname** | **String** | | [optional] | +|**pushEnabled** | **Boolean** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | +|**profileUrl** | **String** | | [optional] | +|**requireAuthForProfileImage** | **Boolean** | | [optional] | +|**readTs** | **Long** | | [optional] | +|**role** | [**RoleEnum**](#RoleEnum) | | [optional] | +|**state** | [**StateEnum**](#StateEnum) | | [optional] | +|**userId** | **String** | | | + + + +## Enum: RoleEnum + +| Name | Value | +|---- | -----| +| EMPTY | "" | +| NONE | "none" | +| OPERATOR | "operator" | + + + +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| EMPTY | "" | +| INVITED | "invited" | +| JOINED | "joined" | + + + diff --git a/docs/SendBirdSendbirdMessageResponse.md b/docs/SendBirdSendbirdMessageResponse.md new file mode 100644 index 00000000..49a39a56 --- /dev/null +++ b/docs/SendBirdSendbirdMessageResponse.md @@ -0,0 +1,42 @@ + + +# SendBirdSendBirdMessageResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requireAuth** | **Boolean** | | [optional] | +|**messageSurvivalSeconds** | **Integer** | | [optional] | +|**customType** | **String** | | [optional] | +|**mentionedUsers** | [**List<SendBirdSendBirdBasicUserInfo>**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**translations** | **Object** | | [optional] | +|**updatedAt** | **Long** | | [optional] | +|**isOpMsg** | **Boolean** | | [optional] | +|**reactions** | [**List<SendBirdSendBirdReaction>**](SendBirdSendBirdReaction.md) | | [optional] | +|**isRemoved** | **Boolean** | | [optional] | +|**user** | [**SendBirdSendBirdBasicUserInfo**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**_file** | **Object** | | [optional] | +|**files** | [**List<SendBirdSendBirdFile>**](SendBirdSendBirdFile.md) | | [optional] | +|**message** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**messageRetentionHour** | **Integer** | | [optional] | +|**silent** | **Boolean** | | [optional] | +|**type** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**channelType** | **String** | | [optional] | +|**reqId** | **String** | | [optional] | +|**mentionType** | **String** | | [optional] | +|**channelUrl** | **String** | | [optional] | +|**messageId** | **Long** | | [optional] | +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | +|**threadInfo** | **Object** | | [optional] | +|**parentMessageId** | **Integer** | | [optional] | +|**parentMessageInfo** | [**SendBirdSendBirdParentMessageInfo**](SendBirdSendBirdParentMessageInfo.md) | | [optional] | +|**isReplyToChannel** | **Boolean** | | [optional] | +|**messageEvents** | [**SendBirdSendBirdMessageResponseMessageEvents**](SendBirdSendBirdMessageResponseMessageEvents.md) | | [optional] | +|**extendedMessagePayload** | [**SendBirdSendBirdMessageResponseExtendedMessagePayload**](SendBirdSendBirdMessageResponseExtendedMessagePayload.md) | | [optional] | + + + diff --git a/docs/SendBirdSendbirdMessageResponseExtendedMessagePayload.md b/docs/SendBirdSendbirdMessageResponseExtendedMessagePayload.md new file mode 100644 index 00000000..dce7375c --- /dev/null +++ b/docs/SendBirdSendbirdMessageResponseExtendedMessagePayload.md @@ -0,0 +1,28 @@ + + +# SendBirdSendBirdMessageResponseExtendedMessagePayload + +## oneOf schemas +* [SendBirdSendBirdExtendedMessagePayload](SendBirdSendBirdExtendedMessagePayload.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendBirdSendBirdMessageResponseExtendedMessagePayload; +import org.openapitools.client.model.SendBirdSendBirdExtendedMessagePayload; + +public class Example { + public static void main(String[] args) { + SendBirdSendBirdMessageResponseExtendedMessagePayload exampleSendBirdSendBirdMessageResponseExtendedMessagePayload = new SendBirdSendBirdMessageResponseExtendedMessagePayload(); + + // create a new SendBirdSendBirdExtendedMessagePayload + SendBirdSendBirdExtendedMessagePayload exampleSendBirdSendBirdExtendedMessagePayload = new SendBirdSendBirdExtendedMessagePayload(); + // set SendBirdSendBirdMessageResponseExtendedMessagePayload to SendBirdSendBirdExtendedMessagePayload + exampleSendBirdSendBirdMessageResponseExtendedMessagePayload.setActualInstance(exampleSendBirdSendBirdExtendedMessagePayload); + // to get back the SendBirdSendBirdExtendedMessagePayload set earlier + SendBirdSendBirdExtendedMessagePayload testSendBirdSendBirdExtendedMessagePayload = (SendBirdSendBirdExtendedMessagePayload) exampleSendBirdSendBirdMessageResponseExtendedMessagePayload.getActualInstance(); + } +} +``` + + diff --git a/docs/SendBirdSendbirdMessageResponseMessageEvents.md b/docs/SendBirdSendbirdMessageResponseMessageEvents.md new file mode 100644 index 00000000..b9a9f5fe --- /dev/null +++ b/docs/SendBirdSendbirdMessageResponseMessageEvents.md @@ -0,0 +1,16 @@ + + +# SendBirdSendBirdMessageResponseMessageEvents + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sendPushNotification** | **String** | | [optional] | +|**updateUnreadCount** | **Boolean** | | [optional] | +|**updateMentionCount** | **Boolean** | | [optional] | +|**updateLastMessage** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdOpenChannel.md b/docs/SendBirdSendbirdOpenChannel.md new file mode 100644 index 00000000..b5714b1e --- /dev/null +++ b/docs/SendBirdSendbirdOpenChannel.md @@ -0,0 +1,25 @@ + + +# SendBirdSendBirdOpenChannel + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelUrl** | **String** | | | +|**coverUrl** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**freeze** | **Boolean** | | [optional] | +|**isDynamicPartitioned** | **Boolean** | | [optional] | +|**isEphemeral** | **Boolean** | | [optional] | +|**maxLengthMessage** | **Integer** | | [optional] | +|**name** | **String** | | [optional] | +|**operators** | [**List<SendBirdSendBirdBasicUserInfo>**](SendBirdSendBirdBasicUserInfo.md) | | [optional] | +|**participantCount** | **Integer** | | [optional] | +|**metadata** | **Object** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdParentMessageInfo.md b/docs/SendBirdSendbirdParentMessageInfo.md new file mode 100644 index 00000000..ce346a71 --- /dev/null +++ b/docs/SendBirdSendbirdParentMessageInfo.md @@ -0,0 +1,19 @@ + + +# SendBirdSendBirdParentMessageInfo + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**customType** | **String** | | [optional] | +|**message** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**ts** | **Long** | | [optional] | +|**user** | [**SendBirdSendBirdUser**](SendBirdSendBirdUser.md) | | [optional] | +|**_file** | [**SendBirdSendBirdFile**](SendBirdSendBirdFile.md) | | [optional] | +|**files** | [**List<SendBirdSendBirdFile>**](SendBirdSendBirdFile.md) | | [optional] | + + + diff --git a/docs/SendBirdSendbirdPushTriggerOption.md b/docs/SendBirdSendbirdPushTriggerOption.md new file mode 100644 index 00000000..b70ae973 --- /dev/null +++ b/docs/SendBirdSendbirdPushTriggerOption.md @@ -0,0 +1,15 @@ + + +# SendBirdSendBirdPushTriggerOption + +## Enum + + +* `ALL` (value: `"all"`) + +* `MENTION_ONLY` (value: `"mention_only"`) + +* `OFF` (value: `"off"`) + + + diff --git a/docs/SendBirdSendbirdReaction.md b/docs/SendBirdSendbirdReaction.md new file mode 100644 index 00000000..29204193 --- /dev/null +++ b/docs/SendBirdSendbirdReaction.md @@ -0,0 +1,15 @@ + + +# SendBirdSendBirdReaction + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | | [optional] | +|**updatedAt** | **Long** | | [optional] | +|**userIds** | **List<String>** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdSmsFallback.md b/docs/SendBirdSendbirdSmsFallback.md new file mode 100644 index 00000000..2382a37d --- /dev/null +++ b/docs/SendBirdSendbirdSmsFallback.md @@ -0,0 +1,14 @@ + + +# SendBirdSendBirdSmsFallback + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**waitSeconds** | **Integer** | | [optional] | +|**excludeUserIds** | **List<String>** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdSortedMetaarrayInner.md b/docs/SendBirdSendbirdSortedMetaarrayInner.md new file mode 100644 index 00000000..a750c23f --- /dev/null +++ b/docs/SendBirdSendbirdSortedMetaarrayInner.md @@ -0,0 +1,14 @@ + + +# SendBirdSendBirdSortedMetaarrayInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | | [optional] | +|**value** | **List<String>** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdThumbnail.md b/docs/SendBirdSendbirdThumbnail.md new file mode 100644 index 00000000..166e4138 --- /dev/null +++ b/docs/SendBirdSendbirdThumbnail.md @@ -0,0 +1,18 @@ + + +# SendBirdSendBirdThumbnail + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**height** | **Integer** | | [optional] | +|**plainUrl** | **String** | | [optional] | +|**realHeight** | **Integer** | | [optional] | +|**realWidth** | **Integer** | | [optional] | +|**url** | **String** | | [optional] | +|**width** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdSendbirdUser.md b/docs/SendBirdSendbirdUser.md new file mode 100644 index 00000000..8bbb7973 --- /dev/null +++ b/docs/SendBirdSendbirdUser.md @@ -0,0 +1,44 @@ + + +# SendBirdSendBirdUser + +User + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessToken** | **String** | | [optional] | +|**createdAt** | **Long** | | [optional] | +|**discoveryKeys** | **List<String>** | | [optional] | +|**hasEverLoggedIn** | **Boolean** | | [optional] | +|**isActive** | **Boolean** | | [optional] | +|**isHideMeFromFriends** | **Boolean** | | [optional] | +|**isOnline** | **Boolean** | | [optional] | +|**isShadowBlocked** | **Boolean** | | [optional] | +|**lastSeenAt** | **Long** | | [optional] | +|**locale** | **String** | | [optional] | +|**metadata** | **Object** | | [optional] | +|**nickname** | **String** | | [optional] | +|**preferredLanguages** | **List<String>** | | [optional] | +|**profileUrl** | **String** | | [optional] | +|**requireAuthForProfileImage** | **Boolean** | | [optional] | +|**userId** | **String** | | | +|**state** | [**StateEnum**](#StateEnum) | | [optional] | +|**unreadChannelCount** | **Integer** | | [optional] | +|**unreadMessageCount** | **Integer** | | [optional] | +|**phoneNumber** | **String** | | [optional] | +|**isCreated** | **Boolean** | | [optional] | + + + +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| EMPTY | "" | +| INVITED | "invited" | +| JOINED | "joined" | + + + diff --git a/docs/SendBirdStartTypingIndicatorsRequest.md b/docs/SendBirdStartTypingIndicatorsRequest.md new file mode 100644 index 00000000..c4508cdf --- /dev/null +++ b/docs/SendBirdStartTypingIndicatorsRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdStartTypingIndicatorsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userIds** | **List<String>** | | | + + + diff --git a/docs/SendBirdUpdateAChannelMetadataRequest.md b/docs/SendBirdUpdateAChannelMetadataRequest.md new file mode 100644 index 00000000..a054fe45 --- /dev/null +++ b/docs/SendBirdUpdateAChannelMetadataRequest.md @@ -0,0 +1,14 @@ + + +# SendBirdUpdateAChannelMetadataRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | **Object** | | | +|**upsert** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdUpdateAGroupChannelRequest.md b/docs/SendBirdUpdateAGroupChannelRequest.md new file mode 100644 index 00000000..9ad47bcf --- /dev/null +++ b/docs/SendBirdUpdateAGroupChannelRequest.md @@ -0,0 +1,22 @@ + + +# SendBirdUpdateAGroupChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessCode** | **String** | | [optional] | +|**coverFile** | **File** | | [optional] | +|**coverUrl** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**isDistinct** | **Boolean** | | [optional] | +|**isPublic** | **Boolean** | | [optional] | +|**isSuper** | **Boolean** | | [optional] | +|**name** | **String** | | [optional] | +|**operatorIds** | **List<String>** | | [optional] | + + + diff --git a/docs/SendBirdUpdateAMessageRequest.md b/docs/SendBirdUpdateAMessageRequest.md new file mode 100644 index 00000000..1425232b --- /dev/null +++ b/docs/SendBirdUpdateAMessageRequest.md @@ -0,0 +1,29 @@ + + +# SendBirdUpdateAMessageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**mentionType** | **String** | | [optional] | +|**mentionedUserIds** | **List<String>** | | [optional] | +|**message** | **String** | | [optional] | +|**url** | **String** | | [optional] | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | | | + + + +## Enum: MessageTypeEnum + +| Name | Value | +|---- | -----| +| MESG | "MESG" | +| ADMM | "ADMM" | +| FILE | "FILE" | + + + diff --git a/docs/SendBirdUpdateAUserRequest.md b/docs/SendBirdUpdateAUserRequest.md new file mode 100644 index 00000000..025abd58 --- /dev/null +++ b/docs/SendBirdUpdateAUserRequest.md @@ -0,0 +1,21 @@ + + +# SendBirdUpdateAUserRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**discoveryKeys** | **List<String>** | | [optional] | +|**isActive** | **Boolean** | | [optional] | +|**issueAccessToken** | **Boolean** | | [optional] | +|**lastSeenAt** | **Long** | | [optional] | +|**leaveAllWhenDeactivated** | **Boolean** | | [optional] | +|**nickname** | **String** | | [optional] | +|**preferredLanguages** | **List<String>** | | [optional] | +|**profileFile** | **File** | | [optional] | +|**profileUrl** | **String** | | [optional] | + + + diff --git a/docs/SendBirdUpdateAnOpenChannelRequest.md b/docs/SendBirdUpdateAnOpenChannelRequest.md new file mode 100644 index 00000000..a72cbad7 --- /dev/null +++ b/docs/SendBirdUpdateAnOpenChannelRequest.md @@ -0,0 +1,18 @@ + + +# SendBirdUpdateAnOpenChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**coverFile** | **File** | | [optional] | +|**coverUrl** | **String** | | [optional] | +|**customType** | **String** | | [optional] | +|**data** | **String** | | [optional] | +|**name** | **String** | | [optional] | +|**operatorIds** | **List<String>** | | [optional] | + + + diff --git a/docs/SendBirdUpdateBotByIdData.md b/docs/SendBirdUpdateBotByIdData.md new file mode 100644 index 00000000..7faaf369 --- /dev/null +++ b/docs/SendBirdUpdateBotByIdData.md @@ -0,0 +1,20 @@ + + +# SendBirdUpdateBotByIdData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**botUserid** | **String** | Specifies the ID of the bot to update. | | +|**botNickname** | **String** | Specifies the bot's nickname. The length is limited to 80 characters. | | +|**botProfileUrl** | **String** | Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. | | +|**botCallbackUrl** | **String** | Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. | | +|**isPrivacyMode** | **Boolean** | In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. | | +|**enableMarkAsRead** | **Boolean** | Determines whether to mark the bot's message as read upon sending it. (Default: true) | | +|**showMember** | **Boolean** | Determines whether to include information about the members of each channel in a callback response. (Default: false) | | +|**channelInvitationPreference** | **Integer** | Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) | | + + + diff --git a/docs/SendBirdUpdateBotByIdResponse.md b/docs/SendBirdUpdateBotByIdResponse.md new file mode 100644 index 00000000..761061d5 --- /dev/null +++ b/docs/SendBirdUpdateBotByIdResponse.md @@ -0,0 +1,18 @@ + + +# SendBirdUpdateBotByIdResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bot** | [**SendBirdViewBotByIdResponseBot**](SendBirdViewBotByIdResponseBot.md) | | [optional] | +|**botCallbackUrl** | **String** | | [optional] | +|**enableMarkAsRead** | **Boolean** | | [optional] | +|**isPrivacyMode** | **Boolean** | | [optional] | +|**showMember** | **Boolean** | | [optional] | +|**channelInvitationPreference** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdUpdateChannelInvitationPreferenceRequest.md b/docs/SendBirdUpdateChannelInvitationPreferenceRequest.md new file mode 100644 index 00000000..53c78e97 --- /dev/null +++ b/docs/SendBirdUpdateChannelInvitationPreferenceRequest.md @@ -0,0 +1,13 @@ + + +# SendBirdUpdateChannelInvitationPreferenceRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**autoAccept** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdUpdateChannelInvitationPreferenceResponse.md b/docs/SendBirdUpdateChannelInvitationPreferenceResponse.md new file mode 100644 index 00000000..db96d847 --- /dev/null +++ b/docs/SendBirdUpdateChannelInvitationPreferenceResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdUpdateChannelInvitationPreferenceResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**autoAccept** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdUpdateCountPreferenceOfAChannelRequest.md b/docs/SendBirdUpdateCountPreferenceOfAChannelRequest.md new file mode 100644 index 00000000..54e92186 --- /dev/null +++ b/docs/SendBirdUpdateCountPreferenceOfAChannelRequest.md @@ -0,0 +1,24 @@ + + +# SendBirdUpdateCountPreferenceOfAChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**countPreference** | [**CountPreferenceEnum**](#CountPreferenceEnum) | | | + + + +## Enum: CountPreferenceEnum + +| Name | Value | +|---- | -----| +| FALSE | "false" | +| ALL | "all" | +| UNREAD_MESSAGE_COUNT_ONLY | "unread_message_count_only" | +| UNREAD_MENTIONED_COUNT_ONLY | "unread_mentioned_count_only" | + + + diff --git a/docs/SendBirdUpdateCountPreferenceOfChannelByUrlResponse.md b/docs/SendBirdUpdateCountPreferenceOfChannelByUrlResponse.md new file mode 100644 index 00000000..e7d81ec7 --- /dev/null +++ b/docs/SendBirdUpdateCountPreferenceOfChannelByUrlResponse.md @@ -0,0 +1,24 @@ + + +# SendBirdUpdateCountPreferenceOfChannelByUrlResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**countPreference** | [**CountPreferenceEnum**](#CountPreferenceEnum) | | [optional] | + + + +## Enum: CountPreferenceEnum + +| Name | Value | +|---- | -----| +| FALSE | "false" | +| ALL | "all" | +| UNREAD_MESSAGE_COUNT_ONLY | "unread_message_count_only" | +| UNREAD_MENTIONED_COUNT_ONLY | "unread_mentioned_count_only" | + + + diff --git a/docs/SendBirdUpdateExtraDataInAMessageRequest.md b/docs/SendBirdUpdateExtraDataInAMessageRequest.md new file mode 100644 index 00000000..3925ece4 --- /dev/null +++ b/docs/SendBirdUpdateExtraDataInAMessageRequest.md @@ -0,0 +1,15 @@ + + +# SendBirdUpdateExtraDataInAMessageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mode** | **String** | | [optional] | +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | +|**upsert** | **Boolean** | | [optional] | + + + diff --git a/docs/SendBirdUpdateExtraDataInAMessageResponse.md b/docs/SendBirdUpdateExtraDataInAMessageResponse.md new file mode 100644 index 00000000..b2cc8512 --- /dev/null +++ b/docs/SendBirdUpdateExtraDataInAMessageResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdUpdateExtraDataInAMessageResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sortedMetaarray** | [**List<SendBirdSendBirdSortedMetaarrayInner>**](SendBirdSendBirdSortedMetaarrayInner.md) | | [optional] | + + + diff --git a/docs/SendBirdUpdatePushPreferencesForAChannelRequest.md b/docs/SendBirdUpdatePushPreferencesForAChannelRequest.md new file mode 100644 index 00000000..030a10c8 --- /dev/null +++ b/docs/SendBirdUpdatePushPreferencesForAChannelRequest.md @@ -0,0 +1,25 @@ + + +# SendBirdUpdatePushPreferencesForAChannelRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pushTriggerOption** | [**PushTriggerOptionEnum**](#PushTriggerOptionEnum) | The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: - default (default): Indicates that a user's notifications trigger setting applies to the specified channel. - all: Indicates that a user receives notifications for all new messages. - mention_only: Indicates that a user only receives notifications for mentioned messages. - off: Indicates that a user doesn't receive any notifications. | | +|**pushSound** | **String** | | [optional] | + + + +## Enum: PushTriggerOptionEnum + +| Name | Value | +|---- | -----| +| DEFAULT | "default" | +| ALL | "all" | +| MENTION_ONLY | "mention_only" | +| FALSE | "false" | + + + diff --git a/docs/SendBirdUpdatePushPreferencesForAChannelResponse.md b/docs/SendBirdUpdatePushPreferencesForAChannelResponse.md new file mode 100644 index 00000000..e5c64361 --- /dev/null +++ b/docs/SendBirdUpdatePushPreferencesForAChannelResponse.md @@ -0,0 +1,15 @@ + + +# SendBirdUpdatePushPreferencesForAChannelResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**enable** | **Boolean** | | [optional] | +|**pushSound** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | + + + diff --git a/docs/SendBirdUpdatePushPreferencesRequest.md b/docs/SendBirdUpdatePushPreferencesRequest.md new file mode 100644 index 00000000..d535c0ac --- /dev/null +++ b/docs/SendBirdUpdatePushPreferencesRequest.md @@ -0,0 +1,26 @@ + + +# SendBirdUpdatePushPreferencesRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**blockPushFromBots** | **Boolean** | | [optional] | +|**doNotDisturb** | **Boolean** | | [optional] | +|**enablePushForReplies** | **Boolean** | | [optional] | +|**endHour** | **Integer** | | [optional] | +|**endMin** | **Integer** | | [optional] | +|**pushBlockedBotIds** | **List<String>** | | [optional] | +|**pushSound** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | +|**snoozeEnabled** | **Boolean** | | [optional] | +|**snoozeEndTs** | **Long** | | [optional] | +|**snoozeStartTs** | **Long** | | [optional] | +|**startHour** | **Integer** | | [optional] | +|**startMin** | **Integer** | | [optional] | +|**timezone** | **String** | | [optional] | + + + diff --git a/docs/SendBirdUpdatePushPreferencesResponse.md b/docs/SendBirdUpdatePushPreferencesResponse.md new file mode 100644 index 00000000..ec4a2def --- /dev/null +++ b/docs/SendBirdUpdatePushPreferencesResponse.md @@ -0,0 +1,26 @@ + + +# SendBirdUpdatePushPreferencesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**blockPushFromBots** | **Boolean** | | [optional] | +|**doNotDisturb** | **Boolean** | | [optional] | +|**enablePushForReplies** | **Boolean** | | [optional] | +|**endHour** | **Integer** | | [optional] | +|**endMin** | **Integer** | | [optional] | +|**pushBlockedBotIds** | **List<String>** | | [optional] | +|**pushSound** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | +|**snoozeEnabled** | **Boolean** | | [optional] | +|**snoozeEndTs** | **Long** | | [optional] | +|**snoozeStartTs** | **Long** | | [optional] | +|**startHour** | **Integer** | | [optional] | +|**startMin** | **Integer** | | [optional] | +|**timezone** | **String** | | [optional] | + + + diff --git a/docs/SendBirdUser.md b/docs/SendBirdUser.md index 86f0c3da..8b589ea3 100644 --- a/docs/SendBirdUser.md +++ b/docs/SendBirdUser.md @@ -29,7 +29,6 @@ User |**unreadMessageCount** | **Integer** | | [optional] | |**phoneNumber** | **String** | | [optional] | |**isCreated** | **Boolean** | | [optional] | -|**sessionTokens** | **List<String>** | | [optional] | diff --git a/docs/SendBirdViewBotByIdResponse.md b/docs/SendBirdViewBotByIdResponse.md new file mode 100644 index 00000000..7e9e5e3e --- /dev/null +++ b/docs/SendBirdViewBotByIdResponse.md @@ -0,0 +1,18 @@ + + +# SendBirdViewBotByIdResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bot** | [**SendBirdViewBotByIdResponseBot**](SendBirdViewBotByIdResponseBot.md) | | [optional] | +|**botCallbackUrl** | **String** | | [optional] | +|**enableMarkAsRead** | **Boolean** | | [optional] | +|**isPrivacyMode** | **Boolean** | | [optional] | +|**showMember** | **Boolean** | | [optional] | +|**channelInvitationPreference** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdViewBotByIdResponseBot.md b/docs/SendBirdViewBotByIdResponseBot.md new file mode 100644 index 00000000..c6208e9b --- /dev/null +++ b/docs/SendBirdViewBotByIdResponseBot.md @@ -0,0 +1,18 @@ + + +# SendBirdViewBotByIdResponseBot + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**botToken** | **String** | | [optional] | +|**botProfileUrl** | **String** | | [optional] | +|**botUserid** | **String** | | [optional] | +|**botNickname** | **String** | | [optional] | +|**botType** | **String** | | [optional] | +|**botMetadata** | **Object** | | [optional] | + + + diff --git a/docs/SendBirdViewCountPreferenceOfAChannelResponse.md b/docs/SendBirdViewCountPreferenceOfAChannelResponse.md new file mode 100644 index 00000000..dc7315a5 --- /dev/null +++ b/docs/SendBirdViewCountPreferenceOfAChannelResponse.md @@ -0,0 +1,24 @@ + + +# SendBirdViewCountPreferenceOfAChannelResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**countPreference** | [**CountPreferenceEnum**](#CountPreferenceEnum) | | [optional] | + + + +## Enum: CountPreferenceEnum + +| Name | Value | +|---- | -----| +| FALSE | "false" | +| ALL | "all" | +| UNREAD_MESSAGE_COUNT_ONLY | "unread_message_count_only" | +| UNREAD_MENTIONED_COUNT_ONLY | "unread_mentioned_count_only" | + + + diff --git a/docs/SendBirdViewNumberOfChannelsWithUnreadMessagesResponse.md b/docs/SendBirdViewNumberOfChannelsWithUnreadMessagesResponse.md new file mode 100644 index 00000000..4e02de0c --- /dev/null +++ b/docs/SendBirdViewNumberOfChannelsWithUnreadMessagesResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdViewNumberOfChannelsWithUnreadMessagesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**unreadCount** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdViewNumberOfDailyActiveUsersResponse.md b/docs/SendBirdViewNumberOfDailyActiveUsersResponse.md new file mode 100644 index 00000000..37cf4962 --- /dev/null +++ b/docs/SendBirdViewNumberOfDailyActiveUsersResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdViewNumberOfDailyActiveUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dau** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdViewNumberOfMonthlyActiveUsersResponse.md b/docs/SendBirdViewNumberOfMonthlyActiveUsersResponse.md new file mode 100644 index 00000000..72dd665e --- /dev/null +++ b/docs/SendBirdViewNumberOfMonthlyActiveUsersResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdViewNumberOfMonthlyActiveUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mau** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdViewNumberOfUnreadMessagesResponse.md b/docs/SendBirdViewNumberOfUnreadMessagesResponse.md new file mode 100644 index 00000000..d1827a37 --- /dev/null +++ b/docs/SendBirdViewNumberOfUnreadMessagesResponse.md @@ -0,0 +1,13 @@ + + +# SendBirdViewNumberOfUnreadMessagesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**unreadCount** | **Integer** | | [optional] | + + + diff --git a/docs/SendBirdViewPushPreferencesForAChannelResponse.md b/docs/SendBirdViewPushPreferencesForAChannelResponse.md new file mode 100644 index 00000000..ecd537e1 --- /dev/null +++ b/docs/SendBirdViewPushPreferencesForAChannelResponse.md @@ -0,0 +1,15 @@ + + +# SendBirdViewPushPreferencesForAChannelResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**enable** | **Boolean** | | [optional] | +|**pushSound** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | + + + diff --git a/docs/SendBirdViewPushPreferencesResponse.md b/docs/SendBirdViewPushPreferencesResponse.md new file mode 100644 index 00000000..9cf03d8a --- /dev/null +++ b/docs/SendBirdViewPushPreferencesResponse.md @@ -0,0 +1,26 @@ + + +# SendBirdViewPushPreferencesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**blockPushFromBots** | **Boolean** | | [optional] | +|**doNotDisturb** | **Boolean** | | [optional] | +|**enablePushForReplies** | **Boolean** | | [optional] | +|**endHour** | **Integer** | | [optional] | +|**endMin** | **Integer** | | [optional] | +|**pushBlockedBotIds** | **List<String>** | | [optional] | +|**pushSound** | **String** | | [optional] | +|**pushTriggerOption** | **SendBirdSendBirdPushTriggerOption** | | [optional] | +|**snoozeEnabled** | **Boolean** | | [optional] | +|**snoozeEndTs** | **Long** | | [optional] | +|**snoozeStartTs** | **Long** | | [optional] | +|**startHour** | **Integer** | | [optional] | +|**startMin** | **Integer** | | [optional] | +|**timezone** | **String** | | [optional] | + + + diff --git a/docs/SendTextMessageRequestBodyPushMessageTemplate.md b/docs/SendTextMessageRequestBodyPushMessageTemplate.md index 2ba7940c..cb5a0836 100644 --- a/docs/SendTextMessageRequestBodyPushMessageTemplate.md +++ b/docs/SendTextMessageRequestBodyPushMessageTemplate.md @@ -5,26 +5,26 @@ Specifies the content of a push notification customized for the message. This property only applies to group channels. To choose from a push notification content template within your Sendbird application, specify a string value of default or alternative. To create a new push notification content tailored to the message being sent, use the properties listed below to specify its title and body in a nested object format. * This property overrides the application's default push notification content template or the preference chosen by the user. ## oneOf schemas -* [SendTextMessageRequestBodyPushMessageTemplateOneOf](SendTextMessageRequestBodyPushMessageTemplateOneOf.md) +* [SendAMessageRequestPushMessageTemplateOneOf](SendAMessageRequestPushMessageTemplateOneOf.md) * [String](String.md) ## Example ```java // Import classes: import org.openapitools.client.model.SendTextMessageRequestBodyPushMessageTemplate; -import org.openapitools.client.model.SendTextMessageRequestBodyPushMessageTemplateOneOf; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplateOneOf; import org.openapitools.client.model.String; public class Example { public static void main(String[] args) { SendTextMessageRequestBodyPushMessageTemplate exampleSendTextMessageRequestBodyPushMessageTemplate = new SendTextMessageRequestBodyPushMessageTemplate(); - // create a new SendTextMessageRequestBodyPushMessageTemplateOneOf - SendTextMessageRequestBodyPushMessageTemplateOneOf exampleSendTextMessageRequestBodyPushMessageTemplateOneOf = new SendTextMessageRequestBodyPushMessageTemplateOneOf(); - // set SendTextMessageRequestBodyPushMessageTemplate to SendTextMessageRequestBodyPushMessageTemplateOneOf - exampleSendTextMessageRequestBodyPushMessageTemplate.setActualInstance(exampleSendTextMessageRequestBodyPushMessageTemplateOneOf); - // to get back the SendTextMessageRequestBodyPushMessageTemplateOneOf set earlier - SendTextMessageRequestBodyPushMessageTemplateOneOf testSendTextMessageRequestBodyPushMessageTemplateOneOf = (SendTextMessageRequestBodyPushMessageTemplateOneOf) exampleSendTextMessageRequestBodyPushMessageTemplate.getActualInstance(); + // create a new SendAMessageRequestPushMessageTemplateOneOf + SendAMessageRequestPushMessageTemplateOneOf exampleSendAMessageRequestPushMessageTemplateOneOf = new SendAMessageRequestPushMessageTemplateOneOf(); + // set SendTextMessageRequestBodyPushMessageTemplate to SendAMessageRequestPushMessageTemplateOneOf + exampleSendTextMessageRequestBodyPushMessageTemplate.setActualInstance(exampleSendAMessageRequestPushMessageTemplateOneOf); + // to get back the SendAMessageRequestPushMessageTemplateOneOf set earlier + SendAMessageRequestPushMessageTemplateOneOf testSendAMessageRequestPushMessageTemplateOneOf = (SendAMessageRequestPushMessageTemplateOneOf) exampleSendTextMessageRequestBodyPushMessageTemplate.getActualInstance(); // create a new String String exampleString = new String(); diff --git a/docs/SendbirdGroupChannelLastMessage.md b/docs/SendbirdGroupChannelLastMessage.md new file mode 100644 index 00000000..adf5fc09 --- /dev/null +++ b/docs/SendbirdGroupChannelLastMessage.md @@ -0,0 +1,28 @@ + + +# SendbirdGroupChannelLastMessage + +## oneOf schemas +* [SendbirdMessageResponse](SendbirdMessageResponse.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendbirdGroupChannelLastMessage; +import org.openapitools.client.model.SendbirdMessageResponse; + +public class Example { + public static void main(String[] args) { + SendbirdGroupChannelLastMessage exampleSendbirdGroupChannelLastMessage = new SendbirdGroupChannelLastMessage(); + + // create a new SendbirdMessageResponse + SendbirdMessageResponse exampleSendbirdMessageResponse = new SendbirdMessageResponse(); + // set SendbirdGroupChannelLastMessage to SendbirdMessageResponse + exampleSendbirdGroupChannelLastMessage.setActualInstance(exampleSendbirdMessageResponse); + // to get back the SendbirdMessageResponse set earlier + SendbirdMessageResponse testSendbirdMessageResponse = (SendbirdMessageResponse) exampleSendbirdGroupChannelLastMessage.getActualInstance(); + } +} +``` + + diff --git a/docs/SendbirdMessageResponseExtendedMessagePayload.md b/docs/SendbirdMessageResponseExtendedMessagePayload.md new file mode 100644 index 00000000..43f3e7f4 --- /dev/null +++ b/docs/SendbirdMessageResponseExtendedMessagePayload.md @@ -0,0 +1,28 @@ + + +# SendbirdMessageResponseExtendedMessagePayload + +## oneOf schemas +* [SendbirdExtendedMessagePayload](SendbirdExtendedMessagePayload.md) + +## Example +```java +// Import classes: +import org.openapitools.client.model.SendbirdMessageResponseExtendedMessagePayload; +import org.openapitools.client.model.SendbirdExtendedMessagePayload; + +public class Example { + public static void main(String[] args) { + SendbirdMessageResponseExtendedMessagePayload exampleSendbirdMessageResponseExtendedMessagePayload = new SendbirdMessageResponseExtendedMessagePayload(); + + // create a new SendbirdExtendedMessagePayload + SendbirdExtendedMessagePayload exampleSendbirdExtendedMessagePayload = new SendbirdExtendedMessagePayload(); + // set SendbirdMessageResponseExtendedMessagePayload to SendbirdExtendedMessagePayload + exampleSendbirdMessageResponseExtendedMessagePayload.setActualInstance(exampleSendbirdExtendedMessagePayload); + // to get back the SendbirdExtendedMessagePayload set earlier + SendbirdExtendedMessagePayload testSendbirdExtendedMessagePayload = (SendbirdExtendedMessagePayload) exampleSendbirdMessageResponseExtendedMessagePayload.getActualInstance(); + } +} +``` + + diff --git a/docs/UpdateBotByIdData.md b/docs/UpdateBotByIdData.md new file mode 100644 index 00000000..14e0c959 --- /dev/null +++ b/docs/UpdateBotByIdData.md @@ -0,0 +1,20 @@ + + +# UpdateBotByIdData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**botUserid** | **String** | Specifies the ID of the bot to update. | | +|**botNickname** | **String** | Specifies the bot's nickname. The length is limited to 80 characters. | | +|**botProfileUrl** | **String** | Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. | | +|**botCallbackUrl** | **String** | Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. | | +|**isPrivacyMode** | **Boolean** | In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. | | +|**enableMarkAsRead** | **Boolean** | Determines whether to mark the bot's message as read upon sending it. (Default: true) | | +|**showMember** | **Boolean** | Determines whether to include information about the members of each channel in a callback response. (Default: false) | | +|**channelInvitationPreference** | **Integer** | Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) | | + + + diff --git a/docs/UpdateBotByIdResponse.md b/docs/UpdateBotByIdResponse.md new file mode 100644 index 00000000..2ee703b1 --- /dev/null +++ b/docs/UpdateBotByIdResponse.md @@ -0,0 +1,18 @@ + + +# UpdateBotByIdResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bot** | [**ViewBotByIdResponseBot**](ViewBotByIdResponseBot.md) | | [optional] | +|**botCallbackUrl** | **String** | | [optional] | +|**enableMarkAsRead** | **Boolean** | | [optional] | +|**isPrivacyMode** | **Boolean** | | [optional] | +|**showMember** | **Boolean** | | [optional] | +|**channelInvitationPreference** | **Integer** | | [optional] | + + + diff --git a/docs/ViewBotByIdResponse.md b/docs/ViewBotByIdResponse.md new file mode 100644 index 00000000..61ee4b1f --- /dev/null +++ b/docs/ViewBotByIdResponse.md @@ -0,0 +1,18 @@ + + +# ViewBotByIdResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bot** | [**ViewBotByIdResponseBot**](ViewBotByIdResponseBot.md) | | [optional] | +|**botCallbackUrl** | **String** | | [optional] | +|**enableMarkAsRead** | **Boolean** | | [optional] | +|**isPrivacyMode** | **Boolean** | | [optional] | +|**showMember** | **Boolean** | | [optional] | +|**channelInvitationPreference** | **Integer** | | [optional] | + + + diff --git a/docs/ViewBotByIdResponseBot.md b/docs/ViewBotByIdResponseBot.md new file mode 100644 index 00000000..59e8f708 --- /dev/null +++ b/docs/ViewBotByIdResponseBot.md @@ -0,0 +1,18 @@ + + +# ViewBotByIdResponseBot + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**botToken** | **String** | | [optional] | +|**botProfileUrl** | **String** | | [optional] | +|**botUserid** | **String** | | [optional] | +|**botNickname** | **String** | | [optional] | +|**botType** | **String** | | [optional] | +|**botMetadata** | **Object** | | [optional] | + + + diff --git a/pom.xml b/pom.xml index 83893469..8b64b233 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sendbird-platform-sdk jar sendbird-platform-sdk - 2.0.0 + 2.1.1 https://github.com/sendbird/sendbird-platform-sdk-java Sendbird Platform API SDK diff --git a/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index b701bab0..bf2341ee 100644 --- a/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/client/model/AcceptAnInvitationRequest.java b/src/main/java/org/openapitools/client/model/AcceptAnInvitationRequest.java index 381577f2..5d651cfa 100644 --- a/src/main/java/org/openapitools/client/model/AcceptAnInvitationRequest.java +++ b/src/main/java/org/openapitools/client/model/AcceptAnInvitationRequest.java @@ -24,6 +24,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -36,10 +40,10 @@ AcceptAnInvitationRequest.JSON_PROPERTY_USER_ID }) @JsonTypeName("acceptAnInvitation_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class AcceptAnInvitationRequest { public static final String JSON_PROPERTY_ACCESS_CODE = "access_code"; - private String accessCode; + private JsonNullable accessCode = JsonNullable.undefined(); public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; @@ -48,7 +52,7 @@ public AcceptAnInvitationRequest() { } public AcceptAnInvitationRequest accessCode(String accessCode) { - this.accessCode = accessCode; + this.accessCode = JsonNullable.of(accessCode); return this; } @@ -58,20 +62,28 @@ public AcceptAnInvitationRequest accessCode(String accessCode) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getAccessCode() { - return accessCode; + return accessCode.orElse(null); } - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccessCode(String accessCode) { + + public JsonNullable getAccessCode_JsonNullable() { + return accessCode; + } + + @JsonProperty(JSON_PROPERTY_ACCESS_CODE) + public void setAccessCode_JsonNullable(JsonNullable accessCode) { this.accessCode = accessCode; } + public void setAccessCode(String accessCode) { + this.accessCode = JsonNullable.of(accessCode); + } + public AcceptAnInvitationRequest userId(String userId) { this.userId = userId; @@ -111,13 +123,24 @@ public boolean equals(Object o) { return false; } AcceptAnInvitationRequest acceptAnInvitationRequest = (AcceptAnInvitationRequest) o; - return Objects.equals(this.accessCode, acceptAnInvitationRequest.accessCode) && + return equalsNullable(this.accessCode, acceptAnInvitationRequest.accessCode) && Objects.equals(this.userId, acceptAnInvitationRequest.userId); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(accessCode, userId); + return Objects.hash(hashCodeNullable(accessCode), userId); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenRequest.java b/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenRequest.java index 86b03b93..31e87a31 100644 --- a/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenRequest.java +++ b/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenRequest.java @@ -37,7 +37,7 @@ AddARegistrationOrDeviceTokenRequest.JSON_PROPERTY_HUAWEI_DEVICE_TOKEN }) @JsonTypeName("addARegistrationOrDeviceToken_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class AddARegistrationOrDeviceTokenRequest { public static final String JSON_PROPERTY_APNS_DEVICE_TOKEN = "apns_device_token"; private String apnsDeviceToken; diff --git a/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenResponse.java b/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenResponse.java index 0cdc2d1d..be686873 100644 --- a/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/AddARegistrationOrDeviceTokenResponse.java @@ -38,7 +38,7 @@ AddARegistrationOrDeviceTokenResponse.JSON_PROPERTY_USER }) @JsonTypeName("addARegistrationOrDeviceTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class AddARegistrationOrDeviceTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageRequest.java b/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageRequest.java index f11a9c98..8c794ba9 100644 --- a/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageRequest.java +++ b/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageRequest.java @@ -38,7 +38,7 @@ AddExtraDataToAMessageRequest.JSON_PROPERTY_SORTED_METAARRAY }) @JsonTypeName("addExtraDataToAMessage_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class AddExtraDataToAMessageRequest { public static final String JSON_PROPERTY_SORTED_METAARRAY = "sorted_metaarray"; private List sortedMetaarray = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageResponse.java b/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageResponse.java index 6405e0c5..bd89cdfa 100644 --- a/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/AddExtraDataToAMessageResponse.java @@ -38,7 +38,7 @@ AddExtraDataToAMessageResponse.JSON_PROPERTY_SORTED_METAARRAY }) @JsonTypeName("addExtraDataToAMessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class AddExtraDataToAMessageResponse { public static final String JSON_PROPERTY_SORTED_METAARRAY = "sorted_metaarray"; private List sortedMetaarray = null; diff --git a/src/main/java/org/openapitools/client/model/BlockAUserRequest.java b/src/main/java/org/openapitools/client/model/BlockAUserRequest.java index 21352065..58def75b 100644 --- a/src/main/java/org/openapitools/client/model/BlockAUserRequest.java +++ b/src/main/java/org/openapitools/client/model/BlockAUserRequest.java @@ -38,7 +38,7 @@ BlockAUserRequest.JSON_PROPERTY_USER_IDS }) @JsonTypeName("blockAUser_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class BlockAUserRequest { public static final String JSON_PROPERTY_TARGET_ID = "target_id"; private String targetId; diff --git a/src/main/java/org/openapitools/client/model/BlockAUserResponse.java b/src/main/java/org/openapitools/client/model/BlockAUserResponse.java index 62462079..15a2a36c 100644 --- a/src/main/java/org/openapitools/client/model/BlockAUserResponse.java +++ b/src/main/java/org/openapitools/client/model/BlockAUserResponse.java @@ -39,7 +39,7 @@ BlockAUserResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("blockAUserResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class BlockAUserResponse { public static final String JSON_PROPERTY_USERS = "users"; private List users = null; diff --git a/src/main/java/org/openapitools/client/model/CheckIfMemberResponse.java b/src/main/java/org/openapitools/client/model/CheckIfMemberResponse.java index dc79d5bd..da68e353 100644 --- a/src/main/java/org/openapitools/client/model/CheckIfMemberResponse.java +++ b/src/main/java/org/openapitools/client/model/CheckIfMemberResponse.java @@ -36,7 +36,7 @@ CheckIfMemberResponse.JSON_PROPERTY_STATE }) @JsonTypeName("checkIfMemberResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CheckIfMemberResponse { public static final String JSON_PROPERTY_IS_MEMBER = "is_member"; private Boolean isMember; diff --git a/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateRequest.java b/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateRequest.java index e75caf75..cb410fac 100644 --- a/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateRequest.java +++ b/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateRequest.java @@ -35,7 +35,7 @@ ChooseAPushNotificationContentTemplateRequest.JSON_PROPERTY_NAME }) @JsonTypeName("chooseAPushNotificationContentTemplate_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ChooseAPushNotificationContentTemplateRequest { /** * Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default) diff --git a/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateResponse.java b/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateResponse.java index ed43ac09..a7fb5e17 100644 --- a/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateResponse.java +++ b/src/main/java/org/openapitools/client/model/ChooseAPushNotificationContentTemplateResponse.java @@ -35,7 +35,7 @@ ChooseAPushNotificationContentTemplateResponse.JSON_PROPERTY_NAME }) @JsonTypeName("chooseAPushNotificationContentTemplateResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ChooseAPushNotificationContentTemplateResponse { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/CreateABotRequest.java b/src/main/java/org/openapitools/client/model/CreateABotRequest.java index c381f4b6..a9e540ea 100644 --- a/src/main/java/org/openapitools/client/model/CreateABotRequest.java +++ b/src/main/java/org/openapitools/client/model/CreateABotRequest.java @@ -43,7 +43,7 @@ CreateABotRequest.JSON_PROPERTY_SHOW_MEMBER }) @JsonTypeName("createABot_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateABotRequest { public static final String JSON_PROPERTY_BOT_CALLBACK_URL = "bot_callback_url"; private String botCallbackUrl; diff --git a/src/main/java/org/openapitools/client/model/CreateABotResponse.java b/src/main/java/org/openapitools/client/model/CreateABotResponse.java index 4859ca50..11b90098 100644 --- a/src/main/java/org/openapitools/client/model/CreateABotResponse.java +++ b/src/main/java/org/openapitools/client/model/CreateABotResponse.java @@ -25,7 +25,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.CreateABotResponseBot; -import org.openapitools.client.model.CreateABotResponseBotStyle; +import org.openapitools.client.model.ListBotsResponseBotsInnerBotStyle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -44,7 +44,7 @@ CreateABotResponse.JSON_PROPERTY_SHOW_MEMBER }) @JsonTypeName("createABotResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateABotResponse { public static final String JSON_PROPERTY_BOT = "bot"; private CreateABotResponseBot bot; @@ -53,7 +53,7 @@ public class CreateABotResponse { private String botCallbackUrl; public static final String JSON_PROPERTY_BOT_STYLE = "bot_style"; - private CreateABotResponseBotStyle botStyle; + private ListBotsResponseBotsInnerBotStyle botStyle; public static final String JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE = "channel_invitation_preference"; private Integer channelInvitationPreference; @@ -125,7 +125,7 @@ public void setBotCallbackUrl(String botCallbackUrl) { } - public CreateABotResponse botStyle(CreateABotResponseBotStyle botStyle) { + public CreateABotResponse botStyle(ListBotsResponseBotsInnerBotStyle botStyle) { this.botStyle = botStyle; return this; } @@ -139,14 +139,14 @@ public CreateABotResponse botStyle(CreateABotResponseBotStyle botStyle) { @JsonProperty(JSON_PROPERTY_BOT_STYLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateABotResponseBotStyle getBotStyle() { + public ListBotsResponseBotsInnerBotStyle getBotStyle() { return botStyle; } @JsonProperty(JSON_PROPERTY_BOT_STYLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBotStyle(CreateABotResponseBotStyle botStyle) { + public void setBotStyle(ListBotsResponseBotsInnerBotStyle botStyle) { this.botStyle = botStyle; } diff --git a/src/main/java/org/openapitools/client/model/CreateABotResponseBot.java b/src/main/java/org/openapitools/client/model/CreateABotResponseBot.java index c75633bf..982d3474 100644 --- a/src/main/java/org/openapitools/client/model/CreateABotResponseBot.java +++ b/src/main/java/org/openapitools/client/model/CreateABotResponseBot.java @@ -43,7 +43,7 @@ CreateABotResponseBot.JSON_PROPERTY_FEEDBACK }) @JsonTypeName("createABotResponse_bot") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateABotResponseBot { public static final String JSON_PROPERTY_AI_AGENT_TYPE = "ai_agent_type"; private String aiAgentType; diff --git a/src/main/java/org/openapitools/client/model/CreateABotResponseBotStyle.java b/src/main/java/org/openapitools/client/model/CreateABotResponseBotStyle.java deleted file mode 100644 index cb370f01..00000000 --- a/src/main/java/org/openapitools/client/model/CreateABotResponseBotStyle.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Sendbird Platform SDK - * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import org.openapitools.client.model.ListBotsResponseBotsInnerBotStyleColor; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.sendbird.client.JSON; - - -/** - * CreateABotResponseBotStyle - */ -@JsonPropertyOrder({ - CreateABotResponseBotStyle.JSON_PROPERTY_AUTO_OPEN, - CreateABotResponseBotStyle.JSON_PROPERTY_COLOR, - CreateABotResponseBotStyle.JSON_PROPERTY_TOGGLE_BUTTON_TYPE, - CreateABotResponseBotStyle.JSON_PROPERTY_TOGGLE_BUTTON_URL -}) -@JsonTypeName("createABotResponse_bot_style") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") -public class CreateABotResponseBotStyle { - public static final String JSON_PROPERTY_AUTO_OPEN = "auto_open"; - private Boolean autoOpen; - - public static final String JSON_PROPERTY_COLOR = "color"; - private ListBotsResponseBotsInnerBotStyleColor color; - - public static final String JSON_PROPERTY_TOGGLE_BUTTON_TYPE = "toggle_button_type"; - private JsonNullable toggleButtonType = JsonNullable.undefined(); - - public static final String JSON_PROPERTY_TOGGLE_BUTTON_URL = "toggle_button_url"; - private String toggleButtonUrl; - - public CreateABotResponseBotStyle() { - } - - public CreateABotResponseBotStyle autoOpen(Boolean autoOpen) { - this.autoOpen = autoOpen; - return this; - } - - /** - * Get autoOpen - * @return autoOpen - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_AUTO_OPEN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean getAutoOpen() { - return autoOpen; - } - - - @JsonProperty(JSON_PROPERTY_AUTO_OPEN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoOpen(Boolean autoOpen) { - this.autoOpen = autoOpen; - } - - - public CreateABotResponseBotStyle color(ListBotsResponseBotsInnerBotStyleColor color) { - this.color = color; - return this; - } - - /** - * Get color - * @return color - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_COLOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ListBotsResponseBotsInnerBotStyleColor getColor() { - return color; - } - - - @JsonProperty(JSON_PROPERTY_COLOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(ListBotsResponseBotsInnerBotStyleColor color) { - this.color = color; - } - - - public CreateABotResponseBotStyle toggleButtonType(String toggleButtonType) { - this.toggleButtonType = JsonNullable.of(toggleButtonType); - return this; - } - - /** - * Get toggleButtonType - * @return toggleButtonType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonIgnore - - public String getToggleButtonType() { - return toggleButtonType.orElse(null); - } - - @JsonProperty(JSON_PROPERTY_TOGGLE_BUTTON_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public JsonNullable getToggleButtonType_JsonNullable() { - return toggleButtonType; - } - - @JsonProperty(JSON_PROPERTY_TOGGLE_BUTTON_TYPE) - public void setToggleButtonType_JsonNullable(JsonNullable toggleButtonType) { - this.toggleButtonType = toggleButtonType; - } - - public void setToggleButtonType(String toggleButtonType) { - this.toggleButtonType = JsonNullable.of(toggleButtonType); - } - - - public CreateABotResponseBotStyle toggleButtonUrl(String toggleButtonUrl) { - this.toggleButtonUrl = toggleButtonUrl; - return this; - } - - /** - * Get toggleButtonUrl - * @return toggleButtonUrl - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TOGGLE_BUTTON_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getToggleButtonUrl() { - return toggleButtonUrl; - } - - - @JsonProperty(JSON_PROPERTY_TOGGLE_BUTTON_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setToggleButtonUrl(String toggleButtonUrl) { - this.toggleButtonUrl = toggleButtonUrl; - } - - - /** - * Return true if this createABotResponse_bot_style object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateABotResponseBotStyle createABotResponseBotStyle = (CreateABotResponseBotStyle) o; - return Objects.equals(this.autoOpen, createABotResponseBotStyle.autoOpen) && - Objects.equals(this.color, createABotResponseBotStyle.color) && - equalsNullable(this.toggleButtonType, createABotResponseBotStyle.toggleButtonType) && - Objects.equals(this.toggleButtonUrl, createABotResponseBotStyle.toggleButtonUrl); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(autoOpen, color, hashCodeNullable(toggleButtonType), toggleButtonUrl); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateABotResponseBotStyle {\n"); - sb.append(" autoOpen: ").append(toIndentedString(autoOpen)).append("\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); - sb.append(" toggleButtonType: ").append(toIndentedString(toggleButtonType)).append("\n"); - sb.append(" toggleButtonUrl: ").append(toIndentedString(toggleButtonUrl)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/org/openapitools/client/model/CreateAChannelMetadataRequest.java b/src/main/java/org/openapitools/client/model/CreateAChannelMetadataRequest.java index 99fd856a..55c1cf34 100644 --- a/src/main/java/org/openapitools/client/model/CreateAChannelMetadataRequest.java +++ b/src/main/java/org/openapitools/client/model/CreateAChannelMetadataRequest.java @@ -36,7 +36,7 @@ CreateAChannelMetadataRequest.JSON_PROPERTY_METADATA }) @JsonTypeName("createAChannelMetadata_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateAChannelMetadataRequest { public static final String JSON_PROPERTY_INCLUDE_TS = "include_ts"; private Boolean includeTs; @@ -82,7 +82,7 @@ public CreateAChannelMetadataRequest metadata(Object metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/src/main/java/org/openapitools/client/model/CreateAChannelMetadataResponse.java b/src/main/java/org/openapitools/client/model/CreateAChannelMetadataResponse.java index b516992c..c1cc7744 100644 --- a/src/main/java/org/openapitools/client/model/CreateAChannelMetadataResponse.java +++ b/src/main/java/org/openapitools/client/model/CreateAChannelMetadataResponse.java @@ -36,7 +36,7 @@ CreateAChannelMetadataResponse.JSON_PROPERTY_METADATA }) @JsonTypeName("createAChannelMetadataResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateAChannelMetadataResponse { public static final String JSON_PROPERTY_INCLUDE_TS = "include_ts"; private Long includeTs; diff --git a/src/main/java/org/openapitools/client/model/CreateAGroupChannelRequest.java b/src/main/java/org/openapitools/client/model/CreateAGroupChannelRequest.java index 09586235..bd1ba7da 100644 --- a/src/main/java/org/openapitools/client/model/CreateAGroupChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/CreateAGroupChannelRequest.java @@ -28,6 +28,10 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.SendbirdUser; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -57,13 +61,13 @@ CreateAGroupChannelRequest.JSON_PROPERTY_USERS }) @JsonTypeName("createAGroupChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateAGroupChannelRequest { public static final String JSON_PROPERTY_ACCESS_CODE = "access_code"; - private String accessCode; + private JsonNullable accessCode = JsonNullable.undefined(); public static final String JSON_PROPERTY_BLOCK_SDK_USER_CHANNEL_JOIN = "block_sdk_user_channel_join"; - private Boolean blockSdkUserChannelJoin; + private JsonNullable blockSdkUserChannelJoin = JsonNullable.undefined(); public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; @@ -120,7 +124,7 @@ public CreateAGroupChannelRequest() { } public CreateAGroupChannelRequest accessCode(String accessCode) { - this.accessCode = accessCode; + this.accessCode = JsonNullable.of(accessCode); return this; } @@ -130,23 +134,31 @@ public CreateAGroupChannelRequest accessCode(String accessCode) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getAccessCode() { - return accessCode; + return accessCode.orElse(null); } - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccessCode(String accessCode) { + + public JsonNullable getAccessCode_JsonNullable() { + return accessCode; + } + + @JsonProperty(JSON_PROPERTY_ACCESS_CODE) + public void setAccessCode_JsonNullable(JsonNullable accessCode) { this.accessCode = accessCode; } + public void setAccessCode(String accessCode) { + this.accessCode = JsonNullable.of(accessCode); + } + public CreateAGroupChannelRequest blockSdkUserChannelJoin(Boolean blockSdkUserChannelJoin) { - this.blockSdkUserChannelJoin = blockSdkUserChannelJoin; + this.blockSdkUserChannelJoin = JsonNullable.of(blockSdkUserChannelJoin); return this; } @@ -156,20 +168,28 @@ public CreateAGroupChannelRequest blockSdkUserChannelJoin(Boolean blockSdkUserCh **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BLOCK_SDK_USER_CHANNEL_JOIN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Boolean getBlockSdkUserChannelJoin() { - return blockSdkUserChannelJoin; + return blockSdkUserChannelJoin.orElse(null); } - @JsonProperty(JSON_PROPERTY_BLOCK_SDK_USER_CHANNEL_JOIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockSdkUserChannelJoin(Boolean blockSdkUserChannelJoin) { + + public JsonNullable getBlockSdkUserChannelJoin_JsonNullable() { + return blockSdkUserChannelJoin; + } + + @JsonProperty(JSON_PROPERTY_BLOCK_SDK_USER_CHANNEL_JOIN) + public void setBlockSdkUserChannelJoin_JsonNullable(JsonNullable blockSdkUserChannelJoin) { this.blockSdkUserChannelJoin = blockSdkUserChannelJoin; } + public void setBlockSdkUserChannelJoin(Boolean blockSdkUserChannelJoin) { + this.blockSdkUserChannelJoin = JsonNullable.of(blockSdkUserChannelJoin); + } + public CreateAGroupChannelRequest channelUrl(String channelUrl) { this.channelUrl = channelUrl; @@ -646,8 +666,8 @@ public boolean equals(Object o) { return false; } CreateAGroupChannelRequest createAGroupChannelRequest = (CreateAGroupChannelRequest) o; - return Objects.equals(this.accessCode, createAGroupChannelRequest.accessCode) && - Objects.equals(this.blockSdkUserChannelJoin, createAGroupChannelRequest.blockSdkUserChannelJoin) && + return equalsNullable(this.accessCode, createAGroupChannelRequest.accessCode) && + equalsNullable(this.blockSdkUserChannelJoin, createAGroupChannelRequest.blockSdkUserChannelJoin) && Objects.equals(this.channelUrl, createAGroupChannelRequest.channelUrl) && Objects.equals(this.coverFile, createAGroupChannelRequest.coverFile) && Objects.equals(this.coverUrl, createAGroupChannelRequest.coverUrl) && @@ -667,9 +687,20 @@ public boolean equals(Object o) { Objects.equals(this.users, createAGroupChannelRequest.users); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(accessCode, blockSdkUserChannelJoin, channelUrl, coverFile, coverUrl, customType, data, hiddenStatus, invitationStatus, inviterId, isDistinct, isEphemeral, isPublic, isSuper, name, operatorIds, strict, userIds, users); + return Objects.hash(hashCodeNullable(accessCode), hashCodeNullable(blockSdkUserChannelJoin), channelUrl, coverFile, coverUrl, customType, data, hiddenStatus, invitationStatus, inviterId, isDistinct, isEphemeral, isPublic, isSuper, name, operatorIds, strict, userIds, users); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/CreateAUserRequest.java b/src/main/java/org/openapitools/client/model/CreateAUserRequest.java index a0484dda..206a8cd0 100644 --- a/src/main/java/org/openapitools/client/model/CreateAUserRequest.java +++ b/src/main/java/org/openapitools/client/model/CreateAUserRequest.java @@ -27,6 +27,10 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -44,16 +48,16 @@ CreateAUserRequest.JSON_PROPERTY_USER_ID }) @JsonTypeName("createAUser_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateAUserRequest { public static final String JSON_PROPERTY_DISCOVERY_KEYS = "discovery_keys"; - private List discoveryKeys = null; + private JsonNullable> discoveryKeys = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ISSUE_ACCESS_TOKEN = "issue_access_token"; private Boolean issueAccessToken; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); public static final String JSON_PROPERTY_NICKNAME = "nickname"; private String nickname; @@ -62,7 +66,7 @@ public class CreateAUserRequest { private File profileFile; public static final String JSON_PROPERTY_PROFILE_URL = "profile_url"; - private String profileUrl; + private String profileUrl = ""; public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; @@ -71,15 +75,19 @@ public CreateAUserRequest() { } public CreateAUserRequest discoveryKeys(List discoveryKeys) { - this.discoveryKeys = discoveryKeys; + this.discoveryKeys = JsonNullable.>of(discoveryKeys); return this; } public CreateAUserRequest addDiscoveryKeysItem(String discoveryKeysItem) { - if (this.discoveryKeys == null) { - this.discoveryKeys = new ArrayList<>(); + if (this.discoveryKeys == null || !this.discoveryKeys.isPresent()) { + this.discoveryKeys = JsonNullable.>of(new ArrayList<>()); + } + try { + this.discoveryKeys.get().add(discoveryKeysItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.discoveryKeys.add(discoveryKeysItem); return this; } @@ -89,20 +97,28 @@ public CreateAUserRequest addDiscoveryKeysItem(String discoveryKeysItem) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public List getDiscoveryKeys() { - return discoveryKeys; + return discoveryKeys.orElse(null); } - @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDiscoveryKeys(List discoveryKeys) { + + public JsonNullable> getDiscoveryKeys_JsonNullable() { + return discoveryKeys; + } + + @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) + public void setDiscoveryKeys_JsonNullable(JsonNullable> discoveryKeys) { this.discoveryKeys = discoveryKeys; } + public void setDiscoveryKeys(List discoveryKeys) { + this.discoveryKeys = JsonNullable.>of(discoveryKeys); + } + public CreateAUserRequest issueAccessToken(Boolean issueAccessToken) { this.issueAccessToken = issueAccessToken; @@ -131,7 +147,7 @@ public void setIssueAccessToken(Boolean issueAccessToken) { public CreateAUserRequest metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -141,20 +157,28 @@ public CreateAUserRequest metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + public CreateAUserRequest nickname(String nickname) { this.nickname = nickname; @@ -165,7 +189,7 @@ public CreateAUserRequest nickname(String nickname) { * Get nickname * @return nickname **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_NICKNAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -272,18 +296,29 @@ public boolean equals(Object o) { return false; } CreateAUserRequest createAUserRequest = (CreateAUserRequest) o; - return Objects.equals(this.discoveryKeys, createAUserRequest.discoveryKeys) && + return equalsNullable(this.discoveryKeys, createAUserRequest.discoveryKeys) && Objects.equals(this.issueAccessToken, createAUserRequest.issueAccessToken) && - Objects.equals(this.metadata, createAUserRequest.metadata) && + equalsNullable(this.metadata, createAUserRequest.metadata) && Objects.equals(this.nickname, createAUserRequest.nickname) && Objects.equals(this.profileFile, createAUserRequest.profileFile) && Objects.equals(this.profileUrl, createAUserRequest.profileUrl) && Objects.equals(this.userId, createAUserRequest.userId); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(discoveryKeys, issueAccessToken, metadata, nickname, profileFile, profileUrl, userId); + return Objects.hash(hashCodeNullable(discoveryKeys), issueAccessToken, hashCodeNullable(metadata), nickname, profileFile, profileUrl, userId); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/CreateAnOpenChannelRequest.java b/src/main/java/org/openapitools/client/model/CreateAnOpenChannelRequest.java index fdfbd6cb..11e951a3 100644 --- a/src/main/java/org/openapitools/client/model/CreateAnOpenChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/CreateAnOpenChannelRequest.java @@ -46,7 +46,7 @@ CreateAnOpenChannelRequest.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("createAnOpenChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateAnOpenChannelRequest { public static final String JSON_PROPERTY_IS_DYNAMIC_PARTITIONED = "is_dynamic_partitioned"; private Boolean isDynamicPartitioned; diff --git a/src/main/java/org/openapitools/client/model/CreateUserTokenRequest.java b/src/main/java/org/openapitools/client/model/CreateUserTokenRequest.java index 41c03a96..df7fe818 100644 --- a/src/main/java/org/openapitools/client/model/CreateUserTokenRequest.java +++ b/src/main/java/org/openapitools/client/model/CreateUserTokenRequest.java @@ -35,7 +35,7 @@ CreateUserTokenRequest.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("createUserToken_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateUserTokenRequest { public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; private Long expiresAt; diff --git a/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java b/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java index b6569177..b03e2a35 100644 --- a/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java @@ -36,7 +36,7 @@ CreateUserTokenResponse.JSON_PROPERTY_TOKEN }) @JsonTypeName("createUserTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class CreateUserTokenResponse { public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; private Long expiresAt; diff --git a/src/main/java/org/openapitools/client/model/FreezeAGroupChannelRequest.java b/src/main/java/org/openapitools/client/model/FreezeAGroupChannelRequest.java index 6fd5a6c0..43c8a7d0 100644 --- a/src/main/java/org/openapitools/client/model/FreezeAGroupChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/FreezeAGroupChannelRequest.java @@ -35,7 +35,7 @@ FreezeAGroupChannelRequest.JSON_PROPERTY_FREEZE }) @JsonTypeName("freezeAGroupChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class FreezeAGroupChannelRequest { public static final String JSON_PROPERTY_FREEZE = "freeze"; private Boolean freeze; diff --git a/src/main/java/org/openapitools/client/model/FreezeAnOpenChannelRequest.java b/src/main/java/org/openapitools/client/model/FreezeAnOpenChannelRequest.java index c815d1c9..883f235d 100644 --- a/src/main/java/org/openapitools/client/model/FreezeAnOpenChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/FreezeAnOpenChannelRequest.java @@ -35,7 +35,7 @@ FreezeAnOpenChannelRequest.JSON_PROPERTY_FREEZE }) @JsonTypeName("freezeAnOpenChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class FreezeAnOpenChannelRequest { public static final String JSON_PROPERTY_FREEZE = "freeze"; private Boolean freeze; diff --git a/src/main/java/org/openapitools/client/model/GetAGroupChannelResponse.java b/src/main/java/org/openapitools/client/model/GetAGroupChannelResponse.java index 978b2627..9e5a6a0b 100644 --- a/src/main/java/org/openapitools/client/model/GetAGroupChannelResponse.java +++ b/src/main/java/org/openapitools/client/model/GetAGroupChannelResponse.java @@ -33,8 +33,8 @@ import org.openapitools.client.model.SendbirdDisappearingMessage; import org.openapitools.client.model.SendbirdGroupChannel; import org.openapitools.client.model.SendbirdGroupChannelDetailChannel; +import org.openapitools.client.model.SendbirdGroupChannelLastMessage; import org.openapitools.client.model.SendbirdMember; -import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdPushTriggerOption; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.jackson.nullable.JsonNullable; @@ -97,7 +97,7 @@ GetAGroupChannelResponse.JSON_PROPERTY_USER_LAST_READ }) @JsonTypeName("getAGroupChannelResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class GetAGroupChannelResponse { public static final String JSON_PROPERTY_CHANNEL = "channel"; private SendbirdGroupChannelDetailChannel channel; @@ -227,7 +227,7 @@ public static HiddenStateEnum fromValue(String value) { private SendbirdBasicUserInfo inviter; public static final String JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED = "is_access_code_required"; - private Boolean isAccessCodeRequired; + private JsonNullable isAccessCodeRequired = JsonNullable.undefined(); public static final String JSON_PROPERTY_IS_BROADCAST = "is_broadcast"; private Boolean isBroadcast; @@ -263,10 +263,10 @@ public static HiddenStateEnum fromValue(String value) { private Integer joinedMemberCount; public static final String JSON_PROPERTY_JOINED_TS = "joined_ts"; - private Long joinedTs; + private JsonNullable joinedTs = JsonNullable.undefined(); public static final String JSON_PROPERTY_LAST_MESSAGE = "last_message"; - private JsonNullable lastMessage = JsonNullable.undefined(); + private SendbirdGroupChannelLastMessage lastMessage; public static final String JSON_PROPERTY_MAX_LENGTH_MESSAGE = "max_length_message"; private Integer maxLengthMessage; @@ -321,7 +321,7 @@ public static MemberStateEnum fromValue(String value) { private Integer messageSurvivalSeconds; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); /** * Gets or Sets myRole @@ -833,7 +833,7 @@ public void setInviter(SendbirdBasicUserInfo inviter) { public GetAGroupChannelResponse isAccessCodeRequired(Boolean isAccessCodeRequired) { - this.isAccessCodeRequired = isAccessCodeRequired; + this.isAccessCodeRequired = JsonNullable.of(isAccessCodeRequired); return this; } @@ -843,20 +843,28 @@ public GetAGroupChannelResponse isAccessCodeRequired(Boolean isAccessCodeRequire **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Boolean getIsAccessCodeRequired() { - return isAccessCodeRequired; + return isAccessCodeRequired.orElse(null); } - @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsAccessCodeRequired(Boolean isAccessCodeRequired) { + + public JsonNullable getIsAccessCodeRequired_JsonNullable() { + return isAccessCodeRequired; + } + + @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) + public void setIsAccessCodeRequired_JsonNullable(JsonNullable isAccessCodeRequired) { this.isAccessCodeRequired = isAccessCodeRequired; } + public void setIsAccessCodeRequired(Boolean isAccessCodeRequired) { + this.isAccessCodeRequired = JsonNullable.of(isAccessCodeRequired); + } + public GetAGroupChannelResponse isBroadcast(Boolean isBroadcast) { this.isBroadcast = isBroadcast; @@ -1145,7 +1153,7 @@ public void setJoinedMemberCount(Integer joinedMemberCount) { public GetAGroupChannelResponse joinedTs(Long joinedTs) { - this.joinedTs = joinedTs; + this.joinedTs = JsonNullable.of(joinedTs); return this; } @@ -1155,23 +1163,31 @@ public GetAGroupChannelResponse joinedTs(Long joinedTs) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_JOINED_TS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Long getJoinedTs() { - return joinedTs; + return joinedTs.orElse(null); } - @JsonProperty(JSON_PROPERTY_JOINED_TS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJoinedTs(Long joinedTs) { + + public JsonNullable getJoinedTs_JsonNullable() { + return joinedTs; + } + + @JsonProperty(JSON_PROPERTY_JOINED_TS) + public void setJoinedTs_JsonNullable(JsonNullable joinedTs) { this.joinedTs = joinedTs; } + public void setJoinedTs(Long joinedTs) { + this.joinedTs = JsonNullable.of(joinedTs); + } + - public GetAGroupChannelResponse lastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); + public GetAGroupChannelResponse lastMessage(SendbirdGroupChannelLastMessage lastMessage) { + this.lastMessage = lastMessage; return this; } @@ -1181,28 +1197,20 @@ public GetAGroupChannelResponse lastMessage(SendbirdMessageResponse lastMessage) **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonIgnore - - public SendbirdMessageResponse getLastMessage() { - return lastMessage.orElse(null); - } - @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getLastMessage_JsonNullable() { + public SendbirdGroupChannelLastMessage getLastMessage() { return lastMessage; } - + + @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) - public void setLastMessage_JsonNullable(JsonNullable lastMessage) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastMessage(SendbirdGroupChannelLastMessage lastMessage) { this.lastMessage = lastMessage; } - public void setLastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); - } - public GetAGroupChannelResponse maxLengthMessage(Integer maxLengthMessage) { this.maxLengthMessage = maxLengthMessage; @@ -1343,7 +1351,7 @@ public void setMessageSurvivalSeconds(Integer messageSurvivalSeconds) { public GetAGroupChannelResponse metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -1353,20 +1361,28 @@ public GetAGroupChannelResponse metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + public GetAGroupChannelResponse myRole(MyRoleEnum myRole) { this.myRole = myRole; @@ -1639,7 +1655,7 @@ public boolean equals(Object o) { Objects.equals(this.ignoreProfanityFilter, getAGroupChannelResponse.ignoreProfanityFilter) && Objects.equals(this.invitedAt, getAGroupChannelResponse.invitedAt) && Objects.equals(this.inviter, getAGroupChannelResponse.inviter) && - Objects.equals(this.isAccessCodeRequired, getAGroupChannelResponse.isAccessCodeRequired) && + equalsNullable(this.isAccessCodeRequired, getAGroupChannelResponse.isAccessCodeRequired) && Objects.equals(this.isBroadcast, getAGroupChannelResponse.isBroadcast) && Objects.equals(this.isDiscoverable, getAGroupChannelResponse.isDiscoverable) && Objects.equals(this.isDistinct, getAGroupChannelResponse.isDistinct) && @@ -1651,14 +1667,14 @@ public boolean equals(Object o) { Objects.equals(this.isPushEnabled, getAGroupChannelResponse.isPushEnabled) && Objects.equals(this.isSuper, getAGroupChannelResponse.isSuper) && Objects.equals(this.joinedMemberCount, getAGroupChannelResponse.joinedMemberCount) && - Objects.equals(this.joinedTs, getAGroupChannelResponse.joinedTs) && - equalsNullable(this.lastMessage, getAGroupChannelResponse.lastMessage) && + equalsNullable(this.joinedTs, getAGroupChannelResponse.joinedTs) && + Objects.equals(this.lastMessage, getAGroupChannelResponse.lastMessage) && Objects.equals(this.maxLengthMessage, getAGroupChannelResponse.maxLengthMessage) && Objects.equals(this.memberCount, getAGroupChannelResponse.memberCount) && Objects.equals(this.memberState, getAGroupChannelResponse.memberState) && Objects.equals(this.members, getAGroupChannelResponse.members) && Objects.equals(this.messageSurvivalSeconds, getAGroupChannelResponse.messageSurvivalSeconds) && - Objects.equals(this.metadata, getAGroupChannelResponse.metadata) && + equalsNullable(this.metadata, getAGroupChannelResponse.metadata) && Objects.equals(this.myRole, getAGroupChannelResponse.myRole) && Objects.equals(this.name, getAGroupChannelResponse.name) && Objects.equals(this.pushTriggerOption, getAGroupChannelResponse.pushTriggerOption) && @@ -1676,7 +1692,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(channel, channelUrl, countPreference, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, hiddenState, ignoreProfanityFilter, invitedAt, inviter, isAccessCodeRequired, isBroadcast, isDiscoverable, isDistinct, isEphemeral, isExclusive, isHidden, isMuted, isPublic, isPushEnabled, isSuper, joinedMemberCount, joinedTs, hashCodeNullable(lastMessage), maxLengthMessage, memberCount, memberState, members, messageSurvivalSeconds, metadata, myRole, name, pushTriggerOption, readReceipt, smsFallback, tsMessageOffset, unreadMentionCount, unreadMessageCount, userLastRead); + return Objects.hash(channel, channelUrl, countPreference, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, hiddenState, ignoreProfanityFilter, invitedAt, inviter, hashCodeNullable(isAccessCodeRequired), isBroadcast, isDiscoverable, isDistinct, isEphemeral, isExclusive, isHidden, isMuted, isPublic, isPushEnabled, isSuper, joinedMemberCount, hashCodeNullable(joinedTs), lastMessage, maxLengthMessage, memberCount, memberState, members, messageSurvivalSeconds, hashCodeNullable(metadata), myRole, name, pushTriggerOption, readReceipt, smsFallback, tsMessageOffset, unreadMentionCount, unreadMessageCount, userLastRead); } private static int hashCodeNullable(JsonNullable a) { diff --git a/src/main/java/org/openapitools/client/model/GetAGroupChannelResponseAllOf.java b/src/main/java/org/openapitools/client/model/GetAGroupChannelResponseAllOf.java index 14bdcca0..60364308 100644 --- a/src/main/java/org/openapitools/client/model/GetAGroupChannelResponseAllOf.java +++ b/src/main/java/org/openapitools/client/model/GetAGroupChannelResponseAllOf.java @@ -36,7 +36,7 @@ GetAGroupChannelResponseAllOf.JSON_PROPERTY_CHANNEL }) @JsonTypeName("getAGroupChannelResponse_allOf") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class GetAGroupChannelResponseAllOf { public static final String JSON_PROPERTY_CHANNEL = "channel"; private SendbirdGroupChannelDetailChannel channel; diff --git a/src/main/java/org/openapitools/client/model/GetChannelInvitationPreferenceResponse.java b/src/main/java/org/openapitools/client/model/GetChannelInvitationPreferenceResponse.java index 2527ab84..c2a445bc 100644 --- a/src/main/java/org/openapitools/client/model/GetChannelInvitationPreferenceResponse.java +++ b/src/main/java/org/openapitools/client/model/GetChannelInvitationPreferenceResponse.java @@ -35,7 +35,7 @@ GetChannelInvitationPreferenceResponse.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("getChannelInvitationPreferenceResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class GetChannelInvitationPreferenceResponse { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/GetTotalNumberOfMessagesInAChannelResponse.java b/src/main/java/org/openapitools/client/model/GetTotalNumberOfMessagesInAChannelResponse.java index 37652d06..ad2aa44f 100644 --- a/src/main/java/org/openapitools/client/model/GetTotalNumberOfMessagesInAChannelResponse.java +++ b/src/main/java/org/openapitools/client/model/GetTotalNumberOfMessagesInAChannelResponse.java @@ -35,7 +35,7 @@ GetTotalNumberOfMessagesInAChannelResponse.JSON_PROPERTY_TOTAL }) @JsonTypeName("getTotalNumberOfMessagesInAChannelResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class GetTotalNumberOfMessagesInAChannelResponse { public static final String JSON_PROPERTY_TOTAL = "total"; private Integer total; diff --git a/src/main/java/org/openapitools/client/model/GroupChannelListMembersResponse.java b/src/main/java/org/openapitools/client/model/GroupChannelListMembersResponse.java index 330f1861..f6e5d867 100644 --- a/src/main/java/org/openapitools/client/model/GroupChannelListMembersResponse.java +++ b/src/main/java/org/openapitools/client/model/GroupChannelListMembersResponse.java @@ -39,7 +39,7 @@ GroupChannelListMembersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("groupChannelListMembersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class GroupChannelListMembersResponse { public static final String JSON_PROPERTY_MEMBERS = "members"; private List members = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/GroupChatListChannelsResponse.java b/src/main/java/org/openapitools/client/model/GroupChatListChannelsResponse.java index fe6529f1..5a771e56 100644 --- a/src/main/java/org/openapitools/client/model/GroupChatListChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/GroupChatListChannelsResponse.java @@ -40,7 +40,7 @@ GroupChatListChannelsResponse.JSON_PROPERTY_TS }) @JsonTypeName("groupChatListChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class GroupChatListChannelsResponse { public static final String JSON_PROPERTY_CHANNELS = "channels"; private List channels = null; diff --git a/src/main/java/org/openapitools/client/model/HideAChannelRequest.java b/src/main/java/org/openapitools/client/model/HideAChannelRequest.java index d33dd4a4..f28e380a 100644 --- a/src/main/java/org/openapitools/client/model/HideAChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/HideAChannelRequest.java @@ -38,7 +38,7 @@ HideAChannelRequest.JSON_PROPERTY_USER_ID }) @JsonTypeName("hideAChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class HideAChannelRequest { public static final String JSON_PROPERTY_ALLOW_AUTO_UNHIDE = "allow_auto_unhide"; private Boolean allowAutoUnhide; diff --git a/src/main/java/org/openapitools/client/model/InviteAsMembersRequest.java b/src/main/java/org/openapitools/client/model/InviteAsMembersRequest.java index 1956c894..5d750ae9 100644 --- a/src/main/java/org/openapitools/client/model/InviteAsMembersRequest.java +++ b/src/main/java/org/openapitools/client/model/InviteAsMembersRequest.java @@ -40,7 +40,7 @@ InviteAsMembersRequest.JSON_PROPERTY_USER_IDS }) @JsonTypeName("inviteAsMembers_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class InviteAsMembersRequest { public static final String JSON_PROPERTY_HIDDEN_STATUS = "hidden_status"; private Object hiddenStatus; diff --git a/src/main/java/org/openapitools/client/model/InviteAsMembersResponse.java b/src/main/java/org/openapitools/client/model/InviteAsMembersResponse.java index 91b3068b..597f34ab 100644 --- a/src/main/java/org/openapitools/client/model/InviteAsMembersResponse.java +++ b/src/main/java/org/openapitools/client/model/InviteAsMembersResponse.java @@ -32,8 +32,8 @@ import org.openapitools.client.model.SendbirdBasicUserInfo; import org.openapitools.client.model.SendbirdDisappearingMessage; import org.openapitools.client.model.SendbirdGroupChannel; +import org.openapitools.client.model.SendbirdGroupChannelLastMessage; import org.openapitools.client.model.SendbirdMember; -import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdPushTriggerOption; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.client.model.SendbirdUser; @@ -97,7 +97,7 @@ InviteAsMembersResponse.JSON_PROPERTY_OPERATORS }) @JsonTypeName("inviteAsMembersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class InviteAsMembersResponse { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; @@ -224,7 +224,7 @@ public static HiddenStateEnum fromValue(String value) { private SendbirdBasicUserInfo inviter; public static final String JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED = "is_access_code_required"; - private Boolean isAccessCodeRequired; + private JsonNullable isAccessCodeRequired = JsonNullable.undefined(); public static final String JSON_PROPERTY_IS_BROADCAST = "is_broadcast"; private Boolean isBroadcast; @@ -260,10 +260,10 @@ public static HiddenStateEnum fromValue(String value) { private Integer joinedMemberCount; public static final String JSON_PROPERTY_JOINED_TS = "joined_ts"; - private Long joinedTs; + private JsonNullable joinedTs = JsonNullable.undefined(); public static final String JSON_PROPERTY_LAST_MESSAGE = "last_message"; - private JsonNullable lastMessage = JsonNullable.undefined(); + private SendbirdGroupChannelLastMessage lastMessage; public static final String JSON_PROPERTY_MAX_LENGTH_MESSAGE = "max_length_message"; private Integer maxLengthMessage; @@ -318,7 +318,7 @@ public static MemberStateEnum fromValue(String value) { private Integer messageSurvivalSeconds; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); /** * Gets or Sets myRole @@ -807,7 +807,7 @@ public void setInviter(SendbirdBasicUserInfo inviter) { public InviteAsMembersResponse isAccessCodeRequired(Boolean isAccessCodeRequired) { - this.isAccessCodeRequired = isAccessCodeRequired; + this.isAccessCodeRequired = JsonNullable.of(isAccessCodeRequired); return this; } @@ -817,20 +817,28 @@ public InviteAsMembersResponse isAccessCodeRequired(Boolean isAccessCodeRequired **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Boolean getIsAccessCodeRequired() { - return isAccessCodeRequired; + return isAccessCodeRequired.orElse(null); } - @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsAccessCodeRequired(Boolean isAccessCodeRequired) { + + public JsonNullable getIsAccessCodeRequired_JsonNullable() { + return isAccessCodeRequired; + } + + @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) + public void setIsAccessCodeRequired_JsonNullable(JsonNullable isAccessCodeRequired) { this.isAccessCodeRequired = isAccessCodeRequired; } + public void setIsAccessCodeRequired(Boolean isAccessCodeRequired) { + this.isAccessCodeRequired = JsonNullable.of(isAccessCodeRequired); + } + public InviteAsMembersResponse isBroadcast(Boolean isBroadcast) { this.isBroadcast = isBroadcast; @@ -1119,7 +1127,7 @@ public void setJoinedMemberCount(Integer joinedMemberCount) { public InviteAsMembersResponse joinedTs(Long joinedTs) { - this.joinedTs = joinedTs; + this.joinedTs = JsonNullable.of(joinedTs); return this; } @@ -1129,23 +1137,31 @@ public InviteAsMembersResponse joinedTs(Long joinedTs) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_JOINED_TS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Long getJoinedTs() { - return joinedTs; + return joinedTs.orElse(null); } - @JsonProperty(JSON_PROPERTY_JOINED_TS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJoinedTs(Long joinedTs) { + + public JsonNullable getJoinedTs_JsonNullable() { + return joinedTs; + } + + @JsonProperty(JSON_PROPERTY_JOINED_TS) + public void setJoinedTs_JsonNullable(JsonNullable joinedTs) { this.joinedTs = joinedTs; } + public void setJoinedTs(Long joinedTs) { + this.joinedTs = JsonNullable.of(joinedTs); + } + - public InviteAsMembersResponse lastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); + public InviteAsMembersResponse lastMessage(SendbirdGroupChannelLastMessage lastMessage) { + this.lastMessage = lastMessage; return this; } @@ -1155,28 +1171,20 @@ public InviteAsMembersResponse lastMessage(SendbirdMessageResponse lastMessage) **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonIgnore - - public SendbirdMessageResponse getLastMessage() { - return lastMessage.orElse(null); - } - @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getLastMessage_JsonNullable() { + public SendbirdGroupChannelLastMessage getLastMessage() { return lastMessage; } - + + @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) - public void setLastMessage_JsonNullable(JsonNullable lastMessage) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastMessage(SendbirdGroupChannelLastMessage lastMessage) { this.lastMessage = lastMessage; } - public void setLastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); - } - public InviteAsMembersResponse maxLengthMessage(Integer maxLengthMessage) { this.maxLengthMessage = maxLengthMessage; @@ -1317,7 +1325,7 @@ public void setMessageSurvivalSeconds(Integer messageSurvivalSeconds) { public InviteAsMembersResponse metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -1327,20 +1335,28 @@ public InviteAsMembersResponse metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + public InviteAsMembersResponse myRole(MyRoleEnum myRole) { this.myRole = myRole; @@ -1646,7 +1662,7 @@ public boolean equals(Object o) { Objects.equals(this.ignoreProfanityFilter, inviteAsMembersResponse.ignoreProfanityFilter) && Objects.equals(this.invitedAt, inviteAsMembersResponse.invitedAt) && Objects.equals(this.inviter, inviteAsMembersResponse.inviter) && - Objects.equals(this.isAccessCodeRequired, inviteAsMembersResponse.isAccessCodeRequired) && + equalsNullable(this.isAccessCodeRequired, inviteAsMembersResponse.isAccessCodeRequired) && Objects.equals(this.isBroadcast, inviteAsMembersResponse.isBroadcast) && Objects.equals(this.isDiscoverable, inviteAsMembersResponse.isDiscoverable) && Objects.equals(this.isDistinct, inviteAsMembersResponse.isDistinct) && @@ -1658,14 +1674,14 @@ public boolean equals(Object o) { Objects.equals(this.isPushEnabled, inviteAsMembersResponse.isPushEnabled) && Objects.equals(this.isSuper, inviteAsMembersResponse.isSuper) && Objects.equals(this.joinedMemberCount, inviteAsMembersResponse.joinedMemberCount) && - Objects.equals(this.joinedTs, inviteAsMembersResponse.joinedTs) && - equalsNullable(this.lastMessage, inviteAsMembersResponse.lastMessage) && + equalsNullable(this.joinedTs, inviteAsMembersResponse.joinedTs) && + Objects.equals(this.lastMessage, inviteAsMembersResponse.lastMessage) && Objects.equals(this.maxLengthMessage, inviteAsMembersResponse.maxLengthMessage) && Objects.equals(this.memberCount, inviteAsMembersResponse.memberCount) && Objects.equals(this.memberState, inviteAsMembersResponse.memberState) && Objects.equals(this.members, inviteAsMembersResponse.members) && Objects.equals(this.messageSurvivalSeconds, inviteAsMembersResponse.messageSurvivalSeconds) && - Objects.equals(this.metadata, inviteAsMembersResponse.metadata) && + equalsNullable(this.metadata, inviteAsMembersResponse.metadata) && Objects.equals(this.myRole, inviteAsMembersResponse.myRole) && Objects.equals(this.name, inviteAsMembersResponse.name) && Objects.equals(this.pushTriggerOption, inviteAsMembersResponse.pushTriggerOption) && @@ -1684,7 +1700,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(channelUrl, countPreference, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, hiddenState, ignoreProfanityFilter, invitedAt, inviter, isAccessCodeRequired, isBroadcast, isDiscoverable, isDistinct, isEphemeral, isExclusive, isHidden, isMuted, isPublic, isPushEnabled, isSuper, joinedMemberCount, joinedTs, hashCodeNullable(lastMessage), maxLengthMessage, memberCount, memberState, members, messageSurvivalSeconds, metadata, myRole, name, pushTriggerOption, readReceipt, smsFallback, tsMessageOffset, unreadMentionCount, unreadMessageCount, userLastRead, operators); + return Objects.hash(channelUrl, countPreference, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, hiddenState, ignoreProfanityFilter, invitedAt, inviter, hashCodeNullable(isAccessCodeRequired), isBroadcast, isDiscoverable, isDistinct, isEphemeral, isExclusive, isHidden, isMuted, isPublic, isPushEnabled, isSuper, joinedMemberCount, hashCodeNullable(joinedTs), lastMessage, maxLengthMessage, memberCount, memberState, members, messageSurvivalSeconds, hashCodeNullable(metadata), myRole, name, pushTriggerOption, readReceipt, smsFallback, tsMessageOffset, unreadMentionCount, unreadMessageCount, userLastRead, operators); } private static int hashCodeNullable(JsonNullable a) { diff --git a/src/main/java/org/openapitools/client/model/InviteAsMembersResponseAllOf.java b/src/main/java/org/openapitools/client/model/InviteAsMembersResponseAllOf.java index 0c8ceb0a..7708f183 100644 --- a/src/main/java/org/openapitools/client/model/InviteAsMembersResponseAllOf.java +++ b/src/main/java/org/openapitools/client/model/InviteAsMembersResponseAllOf.java @@ -38,7 +38,7 @@ InviteAsMembersResponseAllOf.JSON_PROPERTY_OPERATORS }) @JsonTypeName("inviteAsMembersResponse_allOf") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class InviteAsMembersResponseAllOf { public static final String JSON_PROPERTY_OPERATORS = "operators"; private List operators = null; diff --git a/src/main/java/org/openapitools/client/model/JoinAChannelRequest.java b/src/main/java/org/openapitools/client/model/JoinAChannelRequest.java index 686db89c..2207eb24 100644 --- a/src/main/java/org/openapitools/client/model/JoinAChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/JoinAChannelRequest.java @@ -24,6 +24,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -36,13 +40,13 @@ JoinAChannelRequest.JSON_PROPERTY_ACCESS_CODE }) @JsonTypeName("joinAChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class JoinAChannelRequest { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; public static final String JSON_PROPERTY_ACCESS_CODE = "access_code"; - private String accessCode; + private JsonNullable accessCode = JsonNullable.undefined(); public JoinAChannelRequest() { } @@ -74,7 +78,7 @@ public void setUserId(String userId) { public JoinAChannelRequest accessCode(String accessCode) { - this.accessCode = accessCode; + this.accessCode = JsonNullable.of(accessCode); return this; } @@ -84,20 +88,28 @@ public JoinAChannelRequest accessCode(String accessCode) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true.") - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getAccessCode() { - return accessCode; + return accessCode.orElse(null); } - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccessCode(String accessCode) { + + public JsonNullable getAccessCode_JsonNullable() { + return accessCode; + } + + @JsonProperty(JSON_PROPERTY_ACCESS_CODE) + public void setAccessCode_JsonNullable(JsonNullable accessCode) { this.accessCode = accessCode; } + public void setAccessCode(String accessCode) { + this.accessCode = JsonNullable.of(accessCode); + } + /** * Return true if this joinAChannel_request object is equal to o. @@ -112,12 +124,23 @@ public boolean equals(Object o) { } JoinAChannelRequest joinAChannelRequest = (JoinAChannelRequest) o; return Objects.equals(this.userId, joinAChannelRequest.userId) && - Objects.equals(this.accessCode, joinAChannelRequest.accessCode); + equalsNullable(this.accessCode, joinAChannelRequest.accessCode); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(userId, accessCode); + return Objects.hash(userId, hashCodeNullable(accessCode)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/JoinChannelsRequest.java b/src/main/java/org/openapitools/client/model/JoinChannelsRequest.java index 0f80ed08..4bfa635b 100644 --- a/src/main/java/org/openapitools/client/model/JoinChannelsRequest.java +++ b/src/main/java/org/openapitools/client/model/JoinChannelsRequest.java @@ -37,7 +37,7 @@ JoinChannelsRequest.JSON_PROPERTY_CHANNEL_URLS }) @JsonTypeName("joinChannels_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class JoinChannelsRequest { public static final String JSON_PROPERTY_CHANNEL_URLS = "channel_urls"; private List channelUrls = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/LeaveAChannelRequest.java b/src/main/java/org/openapitools/client/model/LeaveAChannelRequest.java index 1f0ca082..097d873a 100644 --- a/src/main/java/org/openapitools/client/model/LeaveAChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/LeaveAChannelRequest.java @@ -40,7 +40,7 @@ LeaveAChannelRequest.JSON_PROPERTY_REASON }) @JsonTypeName("leaveAChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class LeaveAChannelRequest { public static final String JSON_PROPERTY_USER_IDS = "user_ids"; private List userIds = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsRequest.java b/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsRequest.java index 23b98958..f08c9e29 100644 --- a/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsRequest.java +++ b/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsRequest.java @@ -35,7 +35,7 @@ LeaveMyGroupChannelsRequest.JSON_PROPERTY_CUSTOM_TYPE }) @JsonTypeName("leaveMyGroupChannels_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class LeaveMyGroupChannelsRequest { public static final String JSON_PROPERTY_CUSTOM_TYPE = "custom_type"; private String customType; diff --git a/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java b/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java index 38d0a4e8..4f338aec 100644 --- a/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java @@ -39,7 +39,7 @@ ListBlockedUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listBlockedUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBlockedUsersResponse { public static final String JSON_PROPERTY_USERS = "users"; private List users = null; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponse.java b/src/main/java/org/openapitools/client/model/ListBotsResponse.java index d88f318a..94b2fc87 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponse.java @@ -39,7 +39,7 @@ ListBotsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listBotsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponse { public static final String JSON_PROPERTY_BOTS = "bots"; private List bots = null; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java index 542f9bfd..c58d8ef7 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java @@ -26,7 +26,6 @@ import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; -import org.openapitools.client.model.ListBotsResponseBotsInnerAi; import org.openapitools.client.model.ListBotsResponseBotsInnerBot; import org.openapitools.client.model.ListBotsResponseBotsInnerBotStyle; import org.openapitools.client.model.ListBotsResponseBotsInnerFirstMessagesInner; @@ -39,7 +38,6 @@ * ListBotsResponseBotsInner */ @JsonPropertyOrder({ - ListBotsResponseBotsInner.JSON_PROPERTY_AI, ListBotsResponseBotsInner.JSON_PROPERTY_BOT, ListBotsResponseBotsInner.JSON_PROPERTY_BOT_CALLBACK_URL, ListBotsResponseBotsInner.JSON_PROPERTY_BOT_STYLE, @@ -52,11 +50,8 @@ ListBotsResponseBotsInner.JSON_PROPERTY_SHOW_MEMBER }) @JsonTypeName("listBotsResponse_bots_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponseBotsInner { - public static final String JSON_PROPERTY_AI = "ai"; - private ListBotsResponseBotsInnerAi ai; - public static final String JSON_PROPERTY_BOT = "bot"; private ListBotsResponseBotsInnerBot bot; @@ -90,32 +85,6 @@ public class ListBotsResponseBotsInner { public ListBotsResponseBotsInner() { } - public ListBotsResponseBotsInner ai(ListBotsResponseBotsInnerAi ai) { - this.ai = ai; - return this; - } - - /** - * Get ai - * @return ai - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_AI) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ListBotsResponseBotsInnerAi getAi() { - return ai; - } - - - @JsonProperty(JSON_PROPERTY_AI) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAi(ListBotsResponseBotsInnerAi ai) { - this.ai = ai; - } - - public ListBotsResponseBotsInner bot(ListBotsResponseBotsInnerBot bot) { this.bot = bot; return this; @@ -396,8 +365,7 @@ public boolean equals(Object o) { return false; } ListBotsResponseBotsInner listBotsResponseBotsInner = (ListBotsResponseBotsInner) o; - return Objects.equals(this.ai, listBotsResponseBotsInner.ai) && - Objects.equals(this.bot, listBotsResponseBotsInner.bot) && + return Objects.equals(this.bot, listBotsResponseBotsInner.bot) && Objects.equals(this.botCallbackUrl, listBotsResponseBotsInner.botCallbackUrl) && Objects.equals(this.botStyle, listBotsResponseBotsInner.botStyle) && Objects.equals(this.channelInvitationPreference, listBotsResponseBotsInner.channelInvitationPreference) && @@ -411,14 +379,13 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(ai, bot, botCallbackUrl, botStyle, channelInvitationPreference, createdAt, enableMarkAsRead, firstMessages, isPrivacyMode, safeguard, showMember); + return Objects.hash(bot, botCallbackUrl, botStyle, channelInvitationPreference, createdAt, enableMarkAsRead, firstMessages, isPrivacyMode, safeguard, showMember); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListBotsResponseBotsInner {\n"); - sb.append(" ai: ").append(toIndentedString(ai)).append("\n"); sb.append(" bot: ").append(toIndentedString(bot)).append("\n"); sb.append(" botCallbackUrl: ").append(toIndentedString(botCallbackUrl)).append("\n"); sb.append(" botStyle: ").append(toIndentedString(botStyle)).append("\n"); diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerAi.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerAi.java deleted file mode 100644 index 2d496d9e..00000000 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerAi.java +++ /dev/null @@ -1,489 +0,0 @@ -/* - * Sendbird Platform SDK - * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.sendbird.client.JSON; - - -/** - * ListBotsResponseBotsInnerAi - */ -@JsonPropertyOrder({ - ListBotsResponseBotsInnerAi.JSON_PROPERTY_BACKEND, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_FEEDBACK, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_FREQUENCY_PENALTY, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_INSTRUCTION_MODE, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_MAX_TOKENS, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_MODEL, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_PRESENCE_PENALTY, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_STREAM, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_SYSTEM_MESSAGE, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_SYSTEM_MESSAGE_FOR_CONTEXT_PREFIX, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_TEMPERATURE, - ListBotsResponseBotsInnerAi.JSON_PROPERTY_TOP_P -}) -@JsonTypeName("listBotsResponse_bots_inner_ai") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") -public class ListBotsResponseBotsInnerAi { - public static final String JSON_PROPERTY_BACKEND = "backend"; - private String backend; - - public static final String JSON_PROPERTY_FEEDBACK = "feedback"; - private Boolean feedback; - - public static final String JSON_PROPERTY_FREQUENCY_PENALTY = "frequency_penalty"; - private Integer frequencyPenalty; - - public static final String JSON_PROPERTY_INSTRUCTION_MODE = "instruction_mode"; - private JsonNullable instructionMode = JsonNullable.of(null); - - public static final String JSON_PROPERTY_MAX_TOKENS = "max_tokens"; - private Integer maxTokens; - - public static final String JSON_PROPERTY_MODEL = "model"; - private String model; - - public static final String JSON_PROPERTY_PRESENCE_PENALTY = "presence_penalty"; - private Integer presencePenalty; - - public static final String JSON_PROPERTY_STREAM = "stream"; - private Boolean stream; - - public static final String JSON_PROPERTY_SYSTEM_MESSAGE = "system_message"; - private String systemMessage; - - public static final String JSON_PROPERTY_SYSTEM_MESSAGE_FOR_CONTEXT_PREFIX = "system_message_for_context_prefix"; - private String systemMessageForContextPrefix; - - public static final String JSON_PROPERTY_TEMPERATURE = "temperature"; - private BigDecimal temperature; - - public static final String JSON_PROPERTY_TOP_P = "top_p"; - private Integer topP; - - public ListBotsResponseBotsInnerAi() { - } - - public ListBotsResponseBotsInnerAi backend(String backend) { - this.backend = backend; - return this; - } - - /** - * Get backend - * @return backend - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BACKEND) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getBackend() { - return backend; - } - - - @JsonProperty(JSON_PROPERTY_BACKEND) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBackend(String backend) { - this.backend = backend; - } - - - public ListBotsResponseBotsInnerAi feedback(Boolean feedback) { - this.feedback = feedback; - return this; - } - - /** - * Get feedback - * @return feedback - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FEEDBACK) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean getFeedback() { - return feedback; - } - - - @JsonProperty(JSON_PROPERTY_FEEDBACK) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeedback(Boolean feedback) { - this.feedback = feedback; - } - - - public ListBotsResponseBotsInnerAi frequencyPenalty(Integer frequencyPenalty) { - this.frequencyPenalty = frequencyPenalty; - return this; - } - - /** - * Get frequencyPenalty - * @return frequencyPenalty - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FREQUENCY_PENALTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getFrequencyPenalty() { - return frequencyPenalty; - } - - - @JsonProperty(JSON_PROPERTY_FREQUENCY_PENALTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFrequencyPenalty(Integer frequencyPenalty) { - this.frequencyPenalty = frequencyPenalty; - } - - - public ListBotsResponseBotsInnerAi instructionMode(Object instructionMode) { - this.instructionMode = JsonNullable.of(instructionMode); - return this; - } - - /** - * Get instructionMode - * @return instructionMode - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonIgnore - - public Object getInstructionMode() { - return instructionMode.orElse(null); - } - - @JsonProperty(JSON_PROPERTY_INSTRUCTION_MODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public JsonNullable getInstructionMode_JsonNullable() { - return instructionMode; - } - - @JsonProperty(JSON_PROPERTY_INSTRUCTION_MODE) - public void setInstructionMode_JsonNullable(JsonNullable instructionMode) { - this.instructionMode = instructionMode; - } - - public void setInstructionMode(Object instructionMode) { - this.instructionMode = JsonNullable.of(instructionMode); - } - - - public ListBotsResponseBotsInnerAi maxTokens(Integer maxTokens) { - this.maxTokens = maxTokens; - return this; - } - - /** - * Get maxTokens - * @return maxTokens - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAX_TOKENS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getMaxTokens() { - return maxTokens; - } - - - @JsonProperty(JSON_PROPERTY_MAX_TOKENS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxTokens(Integer maxTokens) { - this.maxTokens = maxTokens; - } - - - public ListBotsResponseBotsInnerAi model(String model) { - this.model = model; - return this; - } - - /** - * Get model - * @return model - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MODEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getModel() { - return model; - } - - - @JsonProperty(JSON_PROPERTY_MODEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setModel(String model) { - this.model = model; - } - - - public ListBotsResponseBotsInnerAi presencePenalty(Integer presencePenalty) { - this.presencePenalty = presencePenalty; - return this; - } - - /** - * Get presencePenalty - * @return presencePenalty - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PRESENCE_PENALTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getPresencePenalty() { - return presencePenalty; - } - - - @JsonProperty(JSON_PROPERTY_PRESENCE_PENALTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPresencePenalty(Integer presencePenalty) { - this.presencePenalty = presencePenalty; - } - - - public ListBotsResponseBotsInnerAi stream(Boolean stream) { - this.stream = stream; - return this; - } - - /** - * Get stream - * @return stream - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_STREAM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean getStream() { - return stream; - } - - - @JsonProperty(JSON_PROPERTY_STREAM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStream(Boolean stream) { - this.stream = stream; - } - - - public ListBotsResponseBotsInnerAi systemMessage(String systemMessage) { - this.systemMessage = systemMessage; - return this; - } - - /** - * Get systemMessage - * @return systemMessage - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SYSTEM_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getSystemMessage() { - return systemMessage; - } - - - @JsonProperty(JSON_PROPERTY_SYSTEM_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSystemMessage(String systemMessage) { - this.systemMessage = systemMessage; - } - - - public ListBotsResponseBotsInnerAi systemMessageForContextPrefix(String systemMessageForContextPrefix) { - this.systemMessageForContextPrefix = systemMessageForContextPrefix; - return this; - } - - /** - * Get systemMessageForContextPrefix - * @return systemMessageForContextPrefix - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SYSTEM_MESSAGE_FOR_CONTEXT_PREFIX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getSystemMessageForContextPrefix() { - return systemMessageForContextPrefix; - } - - - @JsonProperty(JSON_PROPERTY_SYSTEM_MESSAGE_FOR_CONTEXT_PREFIX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSystemMessageForContextPrefix(String systemMessageForContextPrefix) { - this.systemMessageForContextPrefix = systemMessageForContextPrefix; - } - - - public ListBotsResponseBotsInnerAi temperature(BigDecimal temperature) { - this.temperature = temperature; - return this; - } - - /** - * Get temperature - * @return temperature - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TEMPERATURE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getTemperature() { - return temperature; - } - - - @JsonProperty(JSON_PROPERTY_TEMPERATURE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemperature(BigDecimal temperature) { - this.temperature = temperature; - } - - - public ListBotsResponseBotsInnerAi topP(Integer topP) { - this.topP = topP; - return this; - } - - /** - * Get topP - * @return topP - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TOP_P) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getTopP() { - return topP; - } - - - @JsonProperty(JSON_PROPERTY_TOP_P) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTopP(Integer topP) { - this.topP = topP; - } - - - /** - * Return true if this listBotsResponse_bots_inner_ai object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListBotsResponseBotsInnerAi listBotsResponseBotsInnerAi = (ListBotsResponseBotsInnerAi) o; - return Objects.equals(this.backend, listBotsResponseBotsInnerAi.backend) && - Objects.equals(this.feedback, listBotsResponseBotsInnerAi.feedback) && - Objects.equals(this.frequencyPenalty, listBotsResponseBotsInnerAi.frequencyPenalty) && - equalsNullable(this.instructionMode, listBotsResponseBotsInnerAi.instructionMode) && - Objects.equals(this.maxTokens, listBotsResponseBotsInnerAi.maxTokens) && - Objects.equals(this.model, listBotsResponseBotsInnerAi.model) && - Objects.equals(this.presencePenalty, listBotsResponseBotsInnerAi.presencePenalty) && - Objects.equals(this.stream, listBotsResponseBotsInnerAi.stream) && - Objects.equals(this.systemMessage, listBotsResponseBotsInnerAi.systemMessage) && - Objects.equals(this.systemMessageForContextPrefix, listBotsResponseBotsInnerAi.systemMessageForContextPrefix) && - Objects.equals(this.temperature, listBotsResponseBotsInnerAi.temperature) && - Objects.equals(this.topP, listBotsResponseBotsInnerAi.topP); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(backend, feedback, frequencyPenalty, hashCodeNullable(instructionMode), maxTokens, model, presencePenalty, stream, systemMessage, systemMessageForContextPrefix, temperature, topP); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListBotsResponseBotsInnerAi {\n"); - sb.append(" backend: ").append(toIndentedString(backend)).append("\n"); - sb.append(" feedback: ").append(toIndentedString(feedback)).append("\n"); - sb.append(" frequencyPenalty: ").append(toIndentedString(frequencyPenalty)).append("\n"); - sb.append(" instructionMode: ").append(toIndentedString(instructionMode)).append("\n"); - sb.append(" maxTokens: ").append(toIndentedString(maxTokens)).append("\n"); - sb.append(" model: ").append(toIndentedString(model)).append("\n"); - sb.append(" presencePenalty: ").append(toIndentedString(presencePenalty)).append("\n"); - sb.append(" stream: ").append(toIndentedString(stream)).append("\n"); - sb.append(" systemMessage: ").append(toIndentedString(systemMessage)).append("\n"); - sb.append(" systemMessageForContextPrefix: ").append(toIndentedString(systemMessageForContextPrefix)).append("\n"); - sb.append(" temperature: ").append(toIndentedString(temperature)).append("\n"); - sb.append(" topP: ").append(toIndentedString(topP)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBot.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBot.java index 9c4b3484..71d0804b 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBot.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBot.java @@ -42,7 +42,7 @@ ListBotsResponseBotsInnerBot.JSON_PROPERTY_BOT_USERID }) @JsonTypeName("listBotsResponse_bots_inner_bot") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponseBotsInnerBot { public static final String JSON_PROPERTY_AI_AGENT_TYPE = "ai_agent_type"; private String aiAgentType; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyle.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyle.java index 3972fd10..76262720 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyle.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyle.java @@ -43,7 +43,7 @@ ListBotsResponseBotsInnerBotStyle.JSON_PROPERTY_TOGGLE_BUTTON_URL }) @JsonTypeName("listBotsResponse_bots_inner_bot_style") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponseBotsInnerBotStyle { public static final String JSON_PROPERTY_AUTO_OPEN = "auto_open"; private Boolean autoOpen; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyleColor.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyleColor.java index e3f3cf99..e05f2ec8 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyleColor.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerBotStyleColor.java @@ -37,7 +37,7 @@ ListBotsResponseBotsInnerBotStyleColor.JSON_PROPERTY_THEME }) @JsonTypeName("listBotsResponse_bots_inner_bot_style_color") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponseBotsInnerBotStyleColor { public static final String JSON_PROPERTY_ACCENT_COLOR = "accent_color"; private String accentColor; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInner.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInner.java index 0adb83b5..d1c27453 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInner.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInner.java @@ -37,7 +37,7 @@ ListBotsResponseBotsInnerFirstMessagesInner.JSON_PROPERTY_MESSAGE }) @JsonTypeName("listBotsResponse_bots_inner_first_messages_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponseBotsInnerFirstMessagesInner { public static final String JSON_PROPERTY_DATA = "data"; private ListBotsResponseBotsInnerFirstMessagesInnerData data; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInnerData.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInnerData.java index 2879994a..b08cd37f 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInnerData.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerFirstMessagesInnerData.java @@ -37,7 +37,7 @@ ListBotsResponseBotsInnerFirstMessagesInnerData.JSON_PROPERTY_SUGGESTED_REPLIES }) @JsonTypeName("listBotsResponse_bots_inner_first_messages_inner_data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponseBotsInnerFirstMessagesInnerData { public static final String JSON_PROPERTY_SUGGESTED_REPLIES = "suggested_replies"; private List suggestedReplies = null; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerSafeguard.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerSafeguard.java index 6a38a7ce..6bdc9558 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerSafeguard.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInnerSafeguard.java @@ -40,7 +40,7 @@ ListBotsResponseBotsInnerSafeguard.JSON_PROPERTY_PII_MASKING }) @JsonTypeName("listBotsResponse_bots_inner_safeguard") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListBotsResponseBotsInnerSafeguard { public static final String JSON_PROPERTY_BANNED_PHRASES = "banned_phrases"; private List bannedPhrases = null; diff --git a/src/main/java/org/openapitools/client/model/ListMessagesResponse.java b/src/main/java/org/openapitools/client/model/ListMessagesResponse.java index 617b7db8..58921319 100644 --- a/src/main/java/org/openapitools/client/model/ListMessagesResponse.java +++ b/src/main/java/org/openapitools/client/model/ListMessagesResponse.java @@ -38,7 +38,7 @@ ListMessagesResponse.JSON_PROPERTY_MESSAGES }) @JsonTypeName("listMessagesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListMessagesResponse { public static final String JSON_PROPERTY_MESSAGES = "messages"; private List messages = null; diff --git a/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java b/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java index 192b8aeb..33a8a005 100644 --- a/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java @@ -40,7 +40,7 @@ ListMyGroupChannelsResponse.JSON_PROPERTY_TS }) @JsonTypeName("listMyGroupChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListMyGroupChannelsResponse { public static final String JSON_PROPERTY_CHANNELS = "channels"; private List channels = null; diff --git a/src/main/java/org/openapitools/client/model/ListOpenChannelsResponse.java b/src/main/java/org/openapitools/client/model/ListOpenChannelsResponse.java index d674353d..171a28c7 100644 --- a/src/main/java/org/openapitools/client/model/ListOpenChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListOpenChannelsResponse.java @@ -40,7 +40,7 @@ ListOpenChannelsResponse.JSON_PROPERTY_TS }) @JsonTypeName("listOpenChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListOpenChannelsResponse { public static final String JSON_PROPERTY_CHANNELS = "channels"; private List channels = null; diff --git a/src/main/java/org/openapitools/client/model/ListOperatorsResponse.java b/src/main/java/org/openapitools/client/model/ListOperatorsResponse.java index f1bde85c..7679779e 100644 --- a/src/main/java/org/openapitools/client/model/ListOperatorsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListOperatorsResponse.java @@ -39,7 +39,7 @@ ListOperatorsResponse.JSON_PROPERTY_OPERATORS }) @JsonTypeName("listOperatorsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListOperatorsResponse { public static final String JSON_PROPERTY_NEXT = "next"; private String next; diff --git a/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java b/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java index 725a88e8..28dd3faf 100644 --- a/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java +++ b/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java @@ -41,7 +41,7 @@ ListRegistrationOrDeviceTokensResponse.JSON_PROPERTY_USER }) @JsonTypeName("listRegistrationOrDeviceTokensResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListRegistrationOrDeviceTokensResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private List token = null; diff --git a/src/main/java/org/openapitools/client/model/ListUsersResponse.java b/src/main/java/org/openapitools/client/model/ListUsersResponse.java index af7417c1..47afbe20 100644 --- a/src/main/java/org/openapitools/client/model/ListUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ListUsersResponse.java @@ -39,7 +39,7 @@ ListUsersResponse.JSON_PROPERTY_USERS }) @JsonTypeName("listUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ListUsersResponse { public static final String JSON_PROPERTY_NEXT = "next"; private String next; diff --git a/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadRequest.java b/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadRequest.java index ee99e374..d337165c 100644 --- a/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadRequest.java +++ b/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadRequest.java @@ -37,7 +37,7 @@ MarkAllMessagesAsReadRequest.JSON_PROPERTY_CHANNEL_URLS }) @JsonTypeName("markAllMessagesAsRead_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MarkAllMessagesAsReadRequest { public static final String JSON_PROPERTY_CHANNEL_URLS = "channel_urls"; private List channelUrls = null; diff --git a/src/main/java/org/openapitools/client/model/MarkChannelMessagesAsReadRequest.java b/src/main/java/org/openapitools/client/model/MarkChannelMessagesAsReadRequest.java index a0105bff..67244287 100644 --- a/src/main/java/org/openapitools/client/model/MarkChannelMessagesAsReadRequest.java +++ b/src/main/java/org/openapitools/client/model/MarkChannelMessagesAsReadRequest.java @@ -35,7 +35,7 @@ MarkChannelMessagesAsReadRequest.JSON_PROPERTY_USER_ID }) @JsonTypeName("markChannelMessagesAsRead_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MarkChannelMessagesAsReadRequest { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/MigrateMessagesAdminMessageRequest.java b/src/main/java/org/openapitools/client/model/MigrateMessagesAdminMessageRequest.java index 23970bab..ce12747e 100644 --- a/src/main/java/org/openapitools/client/model/MigrateMessagesAdminMessageRequest.java +++ b/src/main/java/org/openapitools/client/model/MigrateMessagesAdminMessageRequest.java @@ -44,7 +44,7 @@ MigrateMessagesAdminMessageRequest.JSON_PROPERTY_DEDUP_ID, MigrateMessagesAdminMessageRequest.JSON_PROPERTY_SORTED_METAARRAY }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MigrateMessagesAdminMessageRequest { /** * Gets or Sets messageType diff --git a/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequest.java b/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequest.java index 0d936980..26b95c86 100644 --- a/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequest.java +++ b/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequest.java @@ -50,7 +50,7 @@ MigrateMessagesFileMessageRequest.JSON_PROPERTY_DEDUP_ID, MigrateMessagesFileMessageRequest.JSON_PROPERTY_SORTED_METAARRAY }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MigrateMessagesFileMessageRequest { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequestThumbnailsInner.java b/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequestThumbnailsInner.java index 2417f4a1..a39bf2a6 100644 --- a/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequestThumbnailsInner.java +++ b/src/main/java/org/openapitools/client/model/MigrateMessagesFileMessageRequestThumbnailsInner.java @@ -47,7 +47,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.sendbird.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") @JsonDeserialize(using = MigrateMessagesFileMessageRequestThumbnailsInner.MigrateMessagesFileMessageRequestThumbnailsInnerDeserializer.class) @JsonSerialize(using = MigrateMessagesFileMessageRequestThumbnailsInner.MigrateMessagesFileMessageRequestThumbnailsInnerSerializer.class) public class MigrateMessagesFileMessageRequestThumbnailsInner extends AbstractOpenApiSchema { diff --git a/src/main/java/org/openapitools/client/model/MigrateMessagesRequest.java b/src/main/java/org/openapitools/client/model/MigrateMessagesRequest.java index 59c10367..d10864fa 100644 --- a/src/main/java/org/openapitools/client/model/MigrateMessagesRequest.java +++ b/src/main/java/org/openapitools/client/model/MigrateMessagesRequest.java @@ -39,7 +39,7 @@ MigrateMessagesRequest.JSON_PROPERTY_UPDATE_READ_TS, MigrateMessagesRequest.JSON_PROPERTY_REWIND_READ_TS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MigrateMessagesRequest { public static final String JSON_PROPERTY_MESSAGES = "messages"; private List messages = null; diff --git a/src/main/java/org/openapitools/client/model/MigrateMessagesRequestMessagesInner.java b/src/main/java/org/openapitools/client/model/MigrateMessagesRequestMessagesInner.java index 9c586984..bbfa95f6 100644 --- a/src/main/java/org/openapitools/client/model/MigrateMessagesRequestMessagesInner.java +++ b/src/main/java/org/openapitools/client/model/MigrateMessagesRequestMessagesInner.java @@ -60,7 +60,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.sendbird.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") @JsonDeserialize(using = MigrateMessagesRequestMessagesInner.MigrateMessagesRequestMessagesInnerDeserializer.class) @JsonSerialize(using = MigrateMessagesRequestMessagesInner.MigrateMessagesRequestMessagesInnerSerializer.class) public class MigrateMessagesRequestMessagesInner extends AbstractOpenApiSchema { diff --git a/src/main/java/org/openapitools/client/model/MigrateMessagesTextMessageRequest.java b/src/main/java/org/openapitools/client/model/MigrateMessagesTextMessageRequest.java index e8f68247..5d40d175 100644 --- a/src/main/java/org/openapitools/client/model/MigrateMessagesTextMessageRequest.java +++ b/src/main/java/org/openapitools/client/model/MigrateMessagesTextMessageRequest.java @@ -44,7 +44,7 @@ MigrateMessagesTextMessageRequest.JSON_PROPERTY_DEDUP_ID, MigrateMessagesTextMessageRequest.JSON_PROPERTY_SORTED_METAARRAY }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MigrateMessagesTextMessageRequest { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/RegisterOperatorsToAGroupChannelRequest.java b/src/main/java/org/openapitools/client/model/RegisterOperatorsToAGroupChannelRequest.java index 7667be8f..281515bb 100644 --- a/src/main/java/org/openapitools/client/model/RegisterOperatorsToAGroupChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/RegisterOperatorsToAGroupChannelRequest.java @@ -37,7 +37,7 @@ RegisterOperatorsToAGroupChannelRequest.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("registerOperatorsToAGroupChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class RegisterOperatorsToAGroupChannelRequest { public static final String JSON_PROPERTY_OPERATOR_IDS = "operator_ids"; private List operatorIds = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/RemoveARegistrationOrDeviceTokenResponse.java b/src/main/java/org/openapitools/client/model/RemoveARegistrationOrDeviceTokenResponse.java index fc4caa07..82d3f442 100644 --- a/src/main/java/org/openapitools/client/model/RemoveARegistrationOrDeviceTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/RemoveARegistrationOrDeviceTokenResponse.java @@ -37,7 +37,7 @@ RemoveARegistrationOrDeviceTokenResponse.JSON_PROPERTY_USER }) @JsonTypeName("removeARegistrationOrDeviceTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class RemoveARegistrationOrDeviceTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/RemoveAllRegistrationOrDeviceTokenResponse.java b/src/main/java/org/openapitools/client/model/RemoveAllRegistrationOrDeviceTokenResponse.java index 5863dad7..67dbd854 100644 --- a/src/main/java/org/openapitools/client/model/RemoveAllRegistrationOrDeviceTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/RemoveAllRegistrationOrDeviceTokenResponse.java @@ -39,7 +39,7 @@ RemoveAllRegistrationOrDeviceTokenResponse.JSON_PROPERTY_USER }) @JsonTypeName("removeAllRegistrationOrDeviceTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class RemoveAllRegistrationOrDeviceTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private List token = null; diff --git a/src/main/java/org/openapitools/client/model/ResetChatHistoryRequest.java b/src/main/java/org/openapitools/client/model/ResetChatHistoryRequest.java index 45955db6..71e5ccf2 100644 --- a/src/main/java/org/openapitools/client/model/ResetChatHistoryRequest.java +++ b/src/main/java/org/openapitools/client/model/ResetChatHistoryRequest.java @@ -36,7 +36,7 @@ ResetChatHistoryRequest.JSON_PROPERTY_USER_ID }) @JsonTypeName("resetChatHistory_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ResetChatHistoryRequest { public static final String JSON_PROPERTY_RESET_ALL = "reset_all"; private Boolean resetAll; diff --git a/src/main/java/org/openapitools/client/model/ResetChatHistoryResponse.java b/src/main/java/org/openapitools/client/model/ResetChatHistoryResponse.java index 83a93999..de4007bb 100644 --- a/src/main/java/org/openapitools/client/model/ResetChatHistoryResponse.java +++ b/src/main/java/org/openapitools/client/model/ResetChatHistoryResponse.java @@ -35,7 +35,7 @@ ResetChatHistoryResponse.JSON_PROPERTY_TS_MESSAGE_OFFSET }) @JsonTypeName("resetChatHistoryResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ResetChatHistoryResponse { public static final String JSON_PROPERTY_TS_MESSAGE_OFFSET = "ts_message_offset"; private Long tsMessageOffset; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequest.java b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequest.java index 4d9b87fa..e67be205 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequest.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequest.java @@ -56,7 +56,7 @@ ScheduleAnAnnouncementRequest.JSON_PROPERTY_UNIQUE_ID }) @JsonTypeName("scheduleAnAnnouncement_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ScheduleAnAnnouncementRequest { public static final String JSON_PROPERTY_ANNOUNCEMENT_GROUP = "announcement_group"; private String announcementGroup; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestCreateChannelOptions.java b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestCreateChannelOptions.java index 739ab720..2bc7e3f4 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestCreateChannelOptions.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestCreateChannelOptions.java @@ -39,7 +39,7 @@ ScheduleAnAnnouncementRequestCreateChannelOptions.JSON_PROPERTY_NAME }) @JsonTypeName("scheduleAnAnnouncement_request_create_channel_options") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ScheduleAnAnnouncementRequestCreateChannelOptions { public static final String JSON_PROPERTY_COVER_URL = "cover_url"; private String coverUrl; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestMessage.java b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestMessage.java index 2cee5405..0cb03026 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestMessage.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementRequestMessage.java @@ -39,7 +39,7 @@ ScheduleAnAnnouncementRequestMessage.JSON_PROPERTY_USER_ID }) @JsonTypeName("scheduleAnAnnouncement_request_message") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ScheduleAnAnnouncementRequestMessage { public static final String JSON_PROPERTY_CONTENT = "content"; private String content; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponse.java b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponse.java index fe4d18b4..6e15ddf3 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponse.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponse.java @@ -61,7 +61,7 @@ ScheduleAnAnnouncementResponse.JSON_PROPERTY_UNIQUE_ID }) @JsonTypeName("scheduleAnAnnouncementResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ScheduleAnAnnouncementResponse { public static final String JSON_PROPERTY_ANNOUNCEMENT_GROUP = "announcement_group"; private String announcementGroup; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponseMessage.java b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponseMessage.java index 0ca868d2..337a8036 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponseMessage.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnAnnouncementResponseMessage.java @@ -40,7 +40,7 @@ ScheduleAnAnnouncementResponseMessage.JSON_PROPERTY_USER_ID }) @JsonTypeName("scheduleAnAnnouncementResponse_message") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ScheduleAnAnnouncementResponseMessage { public static final String JSON_PROPERTY_CONTENT = "content"; private String content; diff --git a/src/main/java/org/openapitools/client/model/SendABotMessageRequest.java b/src/main/java/org/openapitools/client/model/SendABotMessageRequest.java deleted file mode 100644 index b5fedf8d..00000000 --- a/src/main/java/org/openapitools/client/model/SendABotMessageRequest.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Sendbird Platform SDK - * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import org.openapitools.client.model.SendbirdExtendedMessagePayload; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.sendbird.client.JSON; - - -/** - * SendABotMessageRequest - */ -@JsonPropertyOrder({ - SendABotMessageRequest.JSON_PROPERTY_CHANNEL_URL, - SendABotMessageRequest.JSON_PROPERTY_CREATED_AT, - SendABotMessageRequest.JSON_PROPERTY_CUSTOM_TYPE, - SendABotMessageRequest.JSON_PROPERTY_DATA, - SendABotMessageRequest.JSON_PROPERTY_DEDUP_ID, - SendABotMessageRequest.JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD, - SendABotMessageRequest.JSON_PROPERTY_MARK_AS_READ, - SendABotMessageRequest.JSON_PROPERTY_MENTIONED, - SendABotMessageRequest.JSON_PROPERTY_MESSAGE, - SendABotMessageRequest.JSON_PROPERTY_SEND_PUSH -}) -@JsonTypeName("sendABotMessage_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") -public class SendABotMessageRequest { - public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; - private String channelUrl; - - public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - private Long createdAt; - - public static final String JSON_PROPERTY_CUSTOM_TYPE = "custom_type"; - private String customType; - - public static final String JSON_PROPERTY_DATA = "data"; - private String data; - - public static final String JSON_PROPERTY_DEDUP_ID = "dedup_id"; - private String dedupId; - - public static final String JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD = "extended_message_payload"; - private SendbirdExtendedMessagePayload extendedMessagePayload; - - public static final String JSON_PROPERTY_MARK_AS_READ = "mark_as_read"; - private Boolean markAsRead; - - public static final String JSON_PROPERTY_MENTIONED = "mentioned"; - private List mentioned = null; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public static final String JSON_PROPERTY_SEND_PUSH = "send_push"; - private Boolean sendPush; - - public SendABotMessageRequest() { - } - - public SendABotMessageRequest channelUrl(String channelUrl) { - this.channelUrl = channelUrl; - return this; - } - - /** - * Get channelUrl - * @return channelUrl - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_CHANNEL_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getChannelUrl() { - return channelUrl; - } - - - @JsonProperty(JSON_PROPERTY_CHANNEL_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChannelUrl(String channelUrl) { - this.channelUrl = channelUrl; - } - - - public SendABotMessageRequest createdAt(Long createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * @return createdAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Long getCreatedAt() { - return createdAt; - } - - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(Long createdAt) { - this.createdAt = createdAt; - } - - - public SendABotMessageRequest customType(String customType) { - this.customType = customType; - return this; - } - - /** - * Get customType - * @return customType - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CUSTOM_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getCustomType() { - return customType; - } - - - @JsonProperty(JSON_PROPERTY_CUSTOM_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomType(String customType) { - this.customType = customType; - } - - - public SendABotMessageRequest data(String data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(String data) { - this.data = data; - } - - - public SendABotMessageRequest dedupId(String dedupId) { - this.dedupId = dedupId; - return this; - } - - /** - * Get dedupId - * @return dedupId - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DEDUP_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getDedupId() { - return dedupId; - } - - - @JsonProperty(JSON_PROPERTY_DEDUP_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDedupId(String dedupId) { - this.dedupId = dedupId; - } - - - public SendABotMessageRequest extendedMessagePayload(SendbirdExtendedMessagePayload extendedMessagePayload) { - this.extendedMessagePayload = extendedMessagePayload; - return this; - } - - /** - * Get extendedMessagePayload - * @return extendedMessagePayload - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SendbirdExtendedMessagePayload getExtendedMessagePayload() { - return extendedMessagePayload; - } - - - @JsonProperty(JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExtendedMessagePayload(SendbirdExtendedMessagePayload extendedMessagePayload) { - this.extendedMessagePayload = extendedMessagePayload; - } - - - public SendABotMessageRequest markAsRead(Boolean markAsRead) { - this.markAsRead = markAsRead; - return this; - } - - /** - * Get markAsRead - * @return markAsRead - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MARK_AS_READ) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean getMarkAsRead() { - return markAsRead; - } - - - @JsonProperty(JSON_PROPERTY_MARK_AS_READ) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMarkAsRead(Boolean markAsRead) { - this.markAsRead = markAsRead; - } - - - public SendABotMessageRequest mentioned(List mentioned) { - this.mentioned = mentioned; - return this; - } - - public SendABotMessageRequest addMentionedItem(String mentionedItem) { - if (this.mentioned == null) { - this.mentioned = new ArrayList<>(); - } - this.mentioned.add(mentionedItem); - return this; - } - - /** - * Get mentioned - * @return mentioned - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MENTIONED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getMentioned() { - return mentioned; - } - - - @JsonProperty(JSON_PROPERTY_MENTIONED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMentioned(List mentioned) { - this.mentioned = mentioned; - } - - - public SendABotMessageRequest message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - public SendABotMessageRequest sendPush(Boolean sendPush) { - this.sendPush = sendPush; - return this; - } - - /** - * Get sendPush - * @return sendPush - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SEND_PUSH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean getSendPush() { - return sendPush; - } - - - @JsonProperty(JSON_PROPERTY_SEND_PUSH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSendPush(Boolean sendPush) { - this.sendPush = sendPush; - } - - - /** - * Return true if this sendABotMessage_request object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SendABotMessageRequest sendABotMessageRequest = (SendABotMessageRequest) o; - return Objects.equals(this.channelUrl, sendABotMessageRequest.channelUrl) && - Objects.equals(this.createdAt, sendABotMessageRequest.createdAt) && - Objects.equals(this.customType, sendABotMessageRequest.customType) && - Objects.equals(this.data, sendABotMessageRequest.data) && - Objects.equals(this.dedupId, sendABotMessageRequest.dedupId) && - Objects.equals(this.extendedMessagePayload, sendABotMessageRequest.extendedMessagePayload) && - Objects.equals(this.markAsRead, sendABotMessageRequest.markAsRead) && - Objects.equals(this.mentioned, sendABotMessageRequest.mentioned) && - Objects.equals(this.message, sendABotMessageRequest.message) && - Objects.equals(this.sendPush, sendABotMessageRequest.sendPush); - } - - @Override - public int hashCode() { - return Objects.hash(channelUrl, createdAt, customType, data, dedupId, extendedMessagePayload, markAsRead, mentioned, message, sendPush); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SendABotMessageRequest {\n"); - sb.append(" channelUrl: ").append(toIndentedString(channelUrl)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" customType: ").append(toIndentedString(customType)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" dedupId: ").append(toIndentedString(dedupId)).append("\n"); - sb.append(" extendedMessagePayload: ").append(toIndentedString(extendedMessagePayload)).append("\n"); - sb.append(" markAsRead: ").append(toIndentedString(markAsRead)).append("\n"); - sb.append(" mentioned: ").append(toIndentedString(mentioned)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" sendPush: ").append(toIndentedString(sendPush)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/org/openapitools/client/model/SendABotMessageResponse.java b/src/main/java/org/openapitools/client/model/SendABotMessageResponse.java new file mode 100644 index 00000000..20bfdec6 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/SendABotMessageResponse.java @@ -0,0 +1,114 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.SendbirdMessageResponse; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + + +/** + * SendABotMessageResponse + */ +@JsonPropertyOrder({ + SendABotMessageResponse.JSON_PROPERTY_MESSAGE +}) +@JsonTypeName("sendABotMessageResponse") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +public class SendABotMessageResponse { + public static final String JSON_PROPERTY_MESSAGE = "message"; + private SendbirdMessageResponse message; + + public SendABotMessageResponse() { + } + + public SendABotMessageResponse message(SendbirdMessageResponse message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SendbirdMessageResponse getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(SendbirdMessageResponse message) { + this.message = message; + } + + + /** + * Return true if this sendABotMessageResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SendABotMessageResponse sendABotMessageResponse = (SendABotMessageResponse) o; + return Objects.equals(this.message, sendABotMessageResponse.message); + } + + @Override + public int hashCode() { + return Objects.hash(message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SendABotMessageResponse {\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/SendAMessageRequest.java b/src/main/java/org/openapitools/client/model/SendAMessageRequest.java index 1904fdd2..241fa461 100644 --- a/src/main/java/org/openapitools/client/model/SendAMessageRequest.java +++ b/src/main/java/org/openapitools/client/model/SendAMessageRequest.java @@ -27,282 +27,989 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; -import org.openapitools.client.model.SendAdminMessageRequestBody; -import org.openapitools.client.model.SendFileMessageRequestBody; -import org.openapitools.client.model.SendTextMessageRequestBody; -import org.openapitools.client.model.SendTextMessageRequestBodyPushMessageTemplate; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplate; import org.openapitools.client.model.SendbirdFile; import org.openapitools.client.model.SendbirdSortedMetaarrayInner; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; -import com.fasterxml.jackson.core.type.TypeReference; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Response; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import org.sendbird.client.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") -@JsonDeserialize(using = SendAMessageRequest.SendAMessageRequestDeserializer.class) -@JsonSerialize(using = SendAMessageRequest.SendAMessageRequestSerializer.class) -public class SendAMessageRequest extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SendAMessageRequest.class.getName()); +/** + * SendAMessageRequest + */ +@JsonPropertyOrder({ + SendAMessageRequest.JSON_PROPERTY_MESSAGE_TYPE, + SendAMessageRequest.JSON_PROPERTY_USER_ID, + SendAMessageRequest.JSON_PROPERTY_MESSAGE, + SendAMessageRequest.JSON_PROPERTY_PUSH_MESSAGE_TEMPLATE, + SendAMessageRequest.JSON_PROPERTY_POLL_ID, + SendAMessageRequest.JSON_PROPERTY_FILES, + SendAMessageRequest.JSON_PROPERTY_REQUIRE_AUTH, + SendAMessageRequest.JSON_PROPERTY_THUMBNAIL1, + SendAMessageRequest.JSON_PROPERTY_THUMBNAIL2, + SendAMessageRequest.JSON_PROPERTY_THUMBNAIL3, + SendAMessageRequest.JSON_PROPERTY_THUMBNAILS, + SendAMessageRequest.JSON_PROPERTY_APNS_BUNDLE_ID, + SendAMessageRequest.JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS, + SendAMessageRequest.JSON_PROPERTY_CREATED_AT, + SendAMessageRequest.JSON_PROPERTY_CUSTOM_TYPE, + SendAMessageRequest.JSON_PROPERTY_DATA, + SendAMessageRequest.JSON_PROPERTY_DEDUP_ID, + SendAMessageRequest.JSON_PROPERTY_INCLUDE_POLL_DETAILS, + SendAMessageRequest.JSON_PROPERTY_IS_SILENT, + SendAMessageRequest.JSON_PROPERTY_MARK_AS_READ, + SendAMessageRequest.JSON_PROPERTY_MENTION_TYPE, + SendAMessageRequest.JSON_PROPERTY_MENTIONED_USER_IDS, + SendAMessageRequest.JSON_PROPERTY_SEND_PUSH, + SendAMessageRequest.JSON_PROPERTY_SORTED_METAARRAY, + SendAMessageRequest.JSON_PROPERTY_SOUND, + SendAMessageRequest.JSON_PROPERTY_VOLUME +}) +@JsonTypeName("sendAMessage_request") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +public class SendAMessageRequest { + /** + * Gets or Sets messageType + */ + public enum MessageTypeEnum { + MESG("MESG"), + + ADMM("ADMM"), + + FILE("FILE"); + + private String value; + + MessageTypeEnum(String value) { + this.value = value; + } - public static class SendAMessageRequestSerializer extends StdSerializer { - public SendAMessageRequestSerializer(Class t) { - super(t); - } + @JsonValue + public String getValue() { + return value; + } - public SendAMessageRequestSerializer() { - this(null); - } + @Override + public String toString() { + return String.valueOf(value); + } - @Override - public void serialize(SendAMessageRequest value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + @JsonCreator + public static MessageTypeEnum fromValue(String value) { + for (MessageTypeEnum b : MessageTypeEnum.values()) { + if (b.value.equals(value)) { + return b; } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } + } - public static class SendAMessageRequestDeserializer extends StdDeserializer { - public SendAMessageRequestDeserializer() { - this(SendAMessageRequest.class); - } + public static final String JSON_PROPERTY_MESSAGE_TYPE = "message_type"; + private MessageTypeEnum messageType; - public SendAMessageRequestDeserializer(Class vc) { - super(vc); - } + public static final String JSON_PROPERTY_USER_ID = "user_id"; + private String userId; - @Override - public SendAMessageRequest deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize SendAdminMessageRequestBody - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SendAdminMessageRequestBody.class.equals(Integer.class) || SendAdminMessageRequestBody.class.equals(Long.class) || SendAdminMessageRequestBody.class.equals(Float.class) || SendAdminMessageRequestBody.class.equals(Double.class) || SendAdminMessageRequestBody.class.equals(Boolean.class) || SendAdminMessageRequestBody.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= ((SendAdminMessageRequestBody.class.equals(Integer.class) || SendAdminMessageRequestBody.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((SendAdminMessageRequestBody.class.equals(Float.class) || SendAdminMessageRequestBody.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (SendAdminMessageRequestBody.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (SendAdminMessageRequestBody.class.equals(String.class) && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SendAdminMessageRequestBody.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SendAdminMessageRequestBody'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SendAdminMessageRequestBody'", e); - } - - // deserialize SendFileMessageRequestBody - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SendFileMessageRequestBody.class.equals(Integer.class) || SendFileMessageRequestBody.class.equals(Long.class) || SendFileMessageRequestBody.class.equals(Float.class) || SendFileMessageRequestBody.class.equals(Double.class) || SendFileMessageRequestBody.class.equals(Boolean.class) || SendFileMessageRequestBody.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= ((SendFileMessageRequestBody.class.equals(Integer.class) || SendFileMessageRequestBody.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((SendFileMessageRequestBody.class.equals(Float.class) || SendFileMessageRequestBody.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (SendFileMessageRequestBody.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (SendFileMessageRequestBody.class.equals(String.class) && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SendFileMessageRequestBody.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SendFileMessageRequestBody'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SendFileMessageRequestBody'", e); - } - - // deserialize SendTextMessageRequestBody - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SendTextMessageRequestBody.class.equals(Integer.class) || SendTextMessageRequestBody.class.equals(Long.class) || SendTextMessageRequestBody.class.equals(Float.class) || SendTextMessageRequestBody.class.equals(Double.class) || SendTextMessageRequestBody.class.equals(Boolean.class) || SendTextMessageRequestBody.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= ((SendTextMessageRequestBody.class.equals(Integer.class) || SendTextMessageRequestBody.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((SendTextMessageRequestBody.class.equals(Float.class) || SendTextMessageRequestBody.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (SendTextMessageRequestBody.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (SendTextMessageRequestBody.class.equals(String.class) && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SendTextMessageRequestBody.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SendTextMessageRequestBody'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SendTextMessageRequestBody'", e); - } - - if (match == 1) { - SendAMessageRequest ret = new SendAMessageRequest(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException(String.format("Failed deserialization for SendAMessageRequest: %d classes match result, expected 1", match)); - } + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; - /** - * Handle deserialization of the 'null' value. - */ - @Override - public SendAMessageRequest getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "SendAMessageRequest cannot be null"); - } - } + public static final String JSON_PROPERTY_PUSH_MESSAGE_TEMPLATE = "push_message_template"; + private SendAMessageRequestPushMessageTemplate pushMessageTemplate; - // store a list of schema names defined in oneOf - public static final Map schemas = new HashMap(); + public static final String JSON_PROPERTY_POLL_ID = "poll_id"; + private Integer pollId; - public SendAMessageRequest() { - super("oneOf", Boolean.FALSE); - } + public static final String JSON_PROPERTY_FILES = "files"; + private SendbirdFile files; - public SendAMessageRequest(SendAdminMessageRequestBody o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + public static final String JSON_PROPERTY_REQUIRE_AUTH = "require_auth"; + private Boolean requireAuth; - public SendAMessageRequest(SendFileMessageRequestBody o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } + public static final String JSON_PROPERTY_THUMBNAIL1 = "thumbnail1"; + private String thumbnail1; + + public static final String JSON_PROPERTY_THUMBNAIL2 = "thumbnail2"; + private String thumbnail2; + + public static final String JSON_PROPERTY_THUMBNAIL3 = "thumbnail3"; + private String thumbnail3; + + public static final String JSON_PROPERTY_THUMBNAILS = "thumbnails"; + private List thumbnails = null; + + public static final String JSON_PROPERTY_APNS_BUNDLE_ID = "apns_bundle_id"; + private String apnsBundleId; + + public static final String JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS = "apple_critical_alert_options"; + private Object appleCriticalAlertOptions; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private Long createdAt; - public SendAMessageRequest(SendTextMessageRequestBody o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public static final String JSON_PROPERTY_CUSTOM_TYPE = "custom_type"; + private String customType; + + public static final String JSON_PROPERTY_DATA = "data"; + private String data; + + public static final String JSON_PROPERTY_DEDUP_ID = "dedup_id"; + private String dedupId; + + public static final String JSON_PROPERTY_INCLUDE_POLL_DETAILS = "include_poll_details"; + private Boolean includePollDetails; + + public static final String JSON_PROPERTY_IS_SILENT = "is_silent"; + private Boolean isSilent; + + public static final String JSON_PROPERTY_MARK_AS_READ = "mark_as_read"; + private Boolean markAsRead; + + /** + * Gets or Sets mentionType + */ + public enum MentionTypeEnum { + USERS("users"), + + CHANNEL("channel"); + + private String value; + + MentionTypeEnum(String value) { + this.value = value; } - static { - schemas.put("SendAdminMessageRequestBody", new GenericType() { - }); - schemas.put("SendFileMessageRequestBody", new GenericType() { - }); - schemas.put("SendTextMessageRequestBody", new GenericType() { - }); - JSON.registerDescendants(SendAMessageRequest.class, Collections.unmodifiableMap(schemas)); + @JsonValue + public String getValue() { + return value; } @Override - public Map getSchemas() { - return SendAMessageRequest.schemas; + public String toString() { + return String.valueOf(value); } - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * SendAdminMessageRequestBody, SendFileMessageRequestBody, SendTextMessageRequestBody - * - * It could be an instance of the 'oneOf' schemas. - * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(SendAdminMessageRequestBody.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; + @JsonCreator + public static MentionTypeEnum fromValue(String value) { + for (MentionTypeEnum b : MentionTypeEnum.values()) { + if (b.value.equals(value)) { + return b; } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } - if (JSON.isInstanceOf(SendFileMessageRequestBody.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } + public static final String JSON_PROPERTY_MENTION_TYPE = "mention_type"; + private MentionTypeEnum mentionType; - if (JSON.isInstanceOf(SendTextMessageRequestBody.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } + public static final String JSON_PROPERTY_MENTIONED_USER_IDS = "mentioned_user_ids"; + private List mentionedUserIds = null; - throw new RuntimeException("Invalid instance type. Must be SendAdminMessageRequestBody, SendFileMessageRequestBody, SendTextMessageRequestBody"); - } + public static final String JSON_PROPERTY_SEND_PUSH = "send_push"; + private Boolean sendPush; - /** - * Get the actual instance, which can be the following: - * SendAdminMessageRequestBody, SendFileMessageRequestBody, SendTextMessageRequestBody - * - * @return The actual instance (SendAdminMessageRequestBody, SendFileMessageRequestBody, SendTextMessageRequestBody) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } + public static final String JSON_PROPERTY_SORTED_METAARRAY = "sorted_metaarray"; + private List sortedMetaarray = null; + + public static final String JSON_PROPERTY_SOUND = "sound"; + private String sound; + + public static final String JSON_PROPERTY_VOLUME = "volume"; + private BigDecimal volume; - /** - * Get the actual instance of `SendAdminMessageRequestBody`. If the actual instance is not `SendAdminMessageRequestBody`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SendAdminMessageRequestBody` - * @throws ClassCastException if the instance is not `SendAdminMessageRequestBody` - */ - public SendAdminMessageRequestBody getSendAdminMessageRequestBody() throws ClassCastException { - return (SendAdminMessageRequestBody)super.getActualInstance(); - } + public SendAMessageRequest() { + } - /** - * Get the actual instance of `SendFileMessageRequestBody`. If the actual instance is not `SendFileMessageRequestBody`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SendFileMessageRequestBody` - * @throws ClassCastException if the instance is not `SendFileMessageRequestBody` - */ - public SendFileMessageRequestBody getSendFileMessageRequestBody() throws ClassCastException { - return (SendFileMessageRequestBody)super.getActualInstance(); - } + public SendAMessageRequest messageType(MessageTypeEnum messageType) { + this.messageType = messageType; + return this; + } + + /** + * Get messageType + * @return messageType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public MessageTypeEnum getMessageType() { + return messageType; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessageType(MessageTypeEnum messageType) { + this.messageType = messageType; + } + + + public SendAMessageRequest userId(String userId) { + this.userId = userId; + return this; + } - /** - * Get the actual instance of `SendTextMessageRequestBody`. If the actual instance is not `SendTextMessageRequestBody`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SendTextMessageRequestBody` - * @throws ClassCastException if the instance is not `SendTextMessageRequestBody` - */ - public SendTextMessageRequestBody getSendTextMessageRequestBody() throws ClassCastException { - return (SendTextMessageRequestBody)super.getActualInstance(); + /** + * Get userId + * @return userId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUserId(String userId) { + this.userId = userId; + } + + + public SendAMessageRequest message(String message) { + this.message = message; + return this; + } + + /** + * Specifies the content of the message. * This property is required when message_type is MESG or ADMM. + * @return message + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the content of the message. * This property is required when message_type is MESG or ADMM.") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(String message) { + this.message = message; + } + + + public SendAMessageRequest pushMessageTemplate(SendAMessageRequestPushMessageTemplate pushMessageTemplate) { + this.pushMessageTemplate = pushMessageTemplate; + return this; + } + + /** + * Get pushMessageTemplate + * @return pushMessageTemplate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PUSH_MESSAGE_TEMPLATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SendAMessageRequestPushMessageTemplate getPushMessageTemplate() { + return pushMessageTemplate; + } + + + @JsonProperty(JSON_PROPERTY_PUSH_MESSAGE_TEMPLATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPushMessageTemplate(SendAMessageRequestPushMessageTemplate pushMessageTemplate) { + this.pushMessageTemplate = pushMessageTemplate; + } + + + public SendAMessageRequest pollId(Integer pollId) { + this.pollId = pollId; + return this; + } + + /** + * Specifies the ID of the poll to be associated with the message. * This property is only available for group channels and message_type is MESG. + * @return pollId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the ID of the poll to be associated with the message. * This property is only available for group channels and message_type is MESG.") + @JsonProperty(JSON_PROPERTY_POLL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getPollId() { + return pollId; + } + + + @JsonProperty(JSON_PROPERTY_POLL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPollId(Integer pollId) { + this.pollId = pollId; + } + + + public SendAMessageRequest files(SendbirdFile files) { + this.files = files; + return this; + } + + /** + * Get files + * @return files + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SendbirdFile getFiles() { + return files; + } + + + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFiles(SendbirdFile files) { + this.files = files; + } + + + public SendAMessageRequest requireAuth(Boolean requireAuth) { + this.requireAuth = requireAuth; + return this; + } + + /** + * Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. + * @return requireAuth + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file.") + @JsonProperty(JSON_PROPERTY_REQUIRE_AUTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getRequireAuth() { + return requireAuth; + } + + + @JsonProperty(JSON_PROPERTY_REQUIRE_AUTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequireAuth(Boolean requireAuth) { + this.requireAuth = requireAuth; + } + + + public SendAMessageRequest thumbnail1(String thumbnail1) { + this.thumbnail1 = thumbnail1; + return this; + } + + /** + * Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. + * @return thumbnail1 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE.") + @JsonProperty(JSON_PROPERTY_THUMBNAIL1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getThumbnail1() { + return thumbnail1; + } + + + @JsonProperty(JSON_PROPERTY_THUMBNAIL1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThumbnail1(String thumbnail1) { + this.thumbnail1 = thumbnail1; + } + + + public SendAMessageRequest thumbnail2(String thumbnail2) { + this.thumbnail2 = thumbnail2; + return this; + } + + /** + * Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. + * @return thumbnail2 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE.") + @JsonProperty(JSON_PROPERTY_THUMBNAIL2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getThumbnail2() { + return thumbnail2; + } + + + @JsonProperty(JSON_PROPERTY_THUMBNAIL2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThumbnail2(String thumbnail2) { + this.thumbnail2 = thumbnail2; + } + + + public SendAMessageRequest thumbnail3(String thumbnail3) { + this.thumbnail3 = thumbnail3; + return this; + } + + /** + * Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. + * @return thumbnail3 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE.") + @JsonProperty(JSON_PROPERTY_THUMBNAIL3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getThumbnail3() { + return thumbnail3; + } + + + @JsonProperty(JSON_PROPERTY_THUMBNAIL3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThumbnail3(String thumbnail3) { + this.thumbnail3 = thumbnail3; + } + + + public SendAMessageRequest thumbnails(List thumbnails) { + this.thumbnails = thumbnails; + return this; + } + + public SendAMessageRequest addThumbnailsItem(String thumbnailsItem) { + if (this.thumbnails == null) { + this.thumbnails = new ArrayList<>(); + } + this.thumbnails.add(thumbnailsItem); + return this; + } + + /** + * Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE. + * @return thumbnails + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the URL of the thumbnail of the file. * This property is available when message_type is FILE.") + @JsonProperty(JSON_PROPERTY_THUMBNAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getThumbnails() { + return thumbnails; + } + + + @JsonProperty(JSON_PROPERTY_THUMBNAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThumbnails(List thumbnails) { + this.thumbnails = thumbnails; + } + + + public SendAMessageRequest apnsBundleId(String apnsBundleId) { + this.apnsBundleId = apnsBundleId; + return this; + } + + /** + * Get apnsBundleId + * @return apnsBundleId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_APNS_BUNDLE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getApnsBundleId() { + return apnsBundleId; + } + + + @JsonProperty(JSON_PROPERTY_APNS_BUNDLE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setApnsBundleId(String apnsBundleId) { + this.apnsBundleId = apnsBundleId; + } + + + public SendAMessageRequest appleCriticalAlertOptions(Object appleCriticalAlertOptions) { + this.appleCriticalAlertOptions = appleCriticalAlertOptions; + return this; + } + + /** + * Get appleCriticalAlertOptions + * @return appleCriticalAlertOptions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getAppleCriticalAlertOptions() { + return appleCriticalAlertOptions; + } + + + @JsonProperty(JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAppleCriticalAlertOptions(Object appleCriticalAlertOptions) { + this.appleCriticalAlertOptions = appleCriticalAlertOptions; + } + + + public SendAMessageRequest createdAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public SendAMessageRequest customType(String customType) { + this.customType = customType; + return this; + } + + /** + * Get customType + * @return customType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CUSTOM_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCustomType() { + return customType; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOM_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCustomType(String customType) { + this.customType = customType; + } + + + public SendAMessageRequest data(String data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(String data) { + this.data = data; + } + + + public SendAMessageRequest dedupId(String dedupId) { + this.dedupId = dedupId; + return this; + } + + /** + * Get dedupId + * @return dedupId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DEDUP_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDedupId() { + return dedupId; + } + + + @JsonProperty(JSON_PROPERTY_DEDUP_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDedupId(String dedupId) { + this.dedupId = dedupId; + } + + + public SendAMessageRequest includePollDetails(Boolean includePollDetails) { + this.includePollDetails = includePollDetails; + return this; + } + + /** + * Get includePollDetails + * @return includePollDetails + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INCLUDE_POLL_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIncludePollDetails() { + return includePollDetails; + } + + + @JsonProperty(JSON_PROPERTY_INCLUDE_POLL_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIncludePollDetails(Boolean includePollDetails) { + this.includePollDetails = includePollDetails; + } + + + public SendAMessageRequest isSilent(Boolean isSilent) { + this.isSilent = isSilent; + return this; + } + + /** + * Get isSilent + * @return isSilent + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IS_SILENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsSilent() { + return isSilent; + } + + + @JsonProperty(JSON_PROPERTY_IS_SILENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSilent(Boolean isSilent) { + this.isSilent = isSilent; + } + + + public SendAMessageRequest markAsRead(Boolean markAsRead) { + this.markAsRead = markAsRead; + return this; + } + + /** + * Get markAsRead + * @return markAsRead + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getMarkAsRead() { + return markAsRead; + } + + + @JsonProperty(JSON_PROPERTY_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMarkAsRead(Boolean markAsRead) { + this.markAsRead = markAsRead; + } + + + public SendAMessageRequest mentionType(MentionTypeEnum mentionType) { + this.mentionType = mentionType; + return this; + } + + /** + * Get mentionType + * @return mentionType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MENTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public MentionTypeEnum getMentionType() { + return mentionType; + } + + + @JsonProperty(JSON_PROPERTY_MENTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMentionType(MentionTypeEnum mentionType) { + this.mentionType = mentionType; + } + + + public SendAMessageRequest mentionedUserIds(List mentionedUserIds) { + this.mentionedUserIds = mentionedUserIds; + return this; + } + + public SendAMessageRequest addMentionedUserIdsItem(String mentionedUserIdsItem) { + if (this.mentionedUserIds == null) { + this.mentionedUserIds = new ArrayList<>(); + } + this.mentionedUserIds.add(mentionedUserIdsItem); + return this; + } + + /** + * Get mentionedUserIds + * @return mentionedUserIds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MENTIONED_USER_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getMentionedUserIds() { + return mentionedUserIds; + } + + + @JsonProperty(JSON_PROPERTY_MENTIONED_USER_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMentionedUserIds(List mentionedUserIds) { + this.mentionedUserIds = mentionedUserIds; + } + + + public SendAMessageRequest sendPush(Boolean sendPush) { + this.sendPush = sendPush; + return this; + } + + /** + * Get sendPush + * @return sendPush + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SEND_PUSH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSendPush() { + return sendPush; + } + + + @JsonProperty(JSON_PROPERTY_SEND_PUSH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSendPush(Boolean sendPush) { + this.sendPush = sendPush; + } + + + public SendAMessageRequest sortedMetaarray(List sortedMetaarray) { + this.sortedMetaarray = sortedMetaarray; + return this; + } + + public SendAMessageRequest addSortedMetaarrayItem(SendbirdSortedMetaarrayInner sortedMetaarrayItem) { + if (this.sortedMetaarray == null) { + this.sortedMetaarray = new ArrayList<>(); + } + this.sortedMetaarray.add(sortedMetaarrayItem); + return this; + } + + /** + * Get sortedMetaarray + * @return sortedMetaarray + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SORTED_METAARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getSortedMetaarray() { + return sortedMetaarray; + } + + + @JsonProperty(JSON_PROPERTY_SORTED_METAARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSortedMetaarray(List sortedMetaarray) { + this.sortedMetaarray = sortedMetaarray; + } + + + public SendAMessageRequest sound(String sound) { + this.sound = sound; + return this; + } + + /** + * Get sound + * @return sound + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SOUND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSound() { + return sound; + } + + + @JsonProperty(JSON_PROPERTY_SOUND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSound(String sound) { + this.sound = sound; + } + + + public SendAMessageRequest volume(BigDecimal volume) { + this.volume = volume; + return this; + } + + /** + * Get volume + * @return volume + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_VOLUME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getVolume() { + return volume; + } + + + @JsonProperty(JSON_PROPERTY_VOLUME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVolume(BigDecimal volume) { + this.volume = volume; + } + + + /** + * Return true if this sendAMessage_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SendAMessageRequest sendAMessageRequest = (SendAMessageRequest) o; + return Objects.equals(this.messageType, sendAMessageRequest.messageType) && + Objects.equals(this.userId, sendAMessageRequest.userId) && + Objects.equals(this.message, sendAMessageRequest.message) && + Objects.equals(this.pushMessageTemplate, sendAMessageRequest.pushMessageTemplate) && + Objects.equals(this.pollId, sendAMessageRequest.pollId) && + Objects.equals(this.files, sendAMessageRequest.files) && + Objects.equals(this.requireAuth, sendAMessageRequest.requireAuth) && + Objects.equals(this.thumbnail1, sendAMessageRequest.thumbnail1) && + Objects.equals(this.thumbnail2, sendAMessageRequest.thumbnail2) && + Objects.equals(this.thumbnail3, sendAMessageRequest.thumbnail3) && + Objects.equals(this.thumbnails, sendAMessageRequest.thumbnails) && + Objects.equals(this.apnsBundleId, sendAMessageRequest.apnsBundleId) && + Objects.equals(this.appleCriticalAlertOptions, sendAMessageRequest.appleCriticalAlertOptions) && + Objects.equals(this.createdAt, sendAMessageRequest.createdAt) && + Objects.equals(this.customType, sendAMessageRequest.customType) && + Objects.equals(this.data, sendAMessageRequest.data) && + Objects.equals(this.dedupId, sendAMessageRequest.dedupId) && + Objects.equals(this.includePollDetails, sendAMessageRequest.includePollDetails) && + Objects.equals(this.isSilent, sendAMessageRequest.isSilent) && + Objects.equals(this.markAsRead, sendAMessageRequest.markAsRead) && + Objects.equals(this.mentionType, sendAMessageRequest.mentionType) && + Objects.equals(this.mentionedUserIds, sendAMessageRequest.mentionedUserIds) && + Objects.equals(this.sendPush, sendAMessageRequest.sendPush) && + Objects.equals(this.sortedMetaarray, sendAMessageRequest.sortedMetaarray) && + Objects.equals(this.sound, sendAMessageRequest.sound) && + Objects.equals(this.volume, sendAMessageRequest.volume); + } + + @Override + public int hashCode() { + return Objects.hash(messageType, userId, message, pushMessageTemplate, pollId, files, requireAuth, thumbnail1, thumbnail2, thumbnail3, thumbnails, apnsBundleId, appleCriticalAlertOptions, createdAt, customType, data, dedupId, includePollDetails, isSilent, markAsRead, mentionType, mentionedUserIds, sendPush, sortedMetaarray, sound, volume); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SendAMessageRequest {\n"); + sb.append(" messageType: ").append(toIndentedString(messageType)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" pushMessageTemplate: ").append(toIndentedString(pushMessageTemplate)).append("\n"); + sb.append(" pollId: ").append(toIndentedString(pollId)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" requireAuth: ").append(toIndentedString(requireAuth)).append("\n"); + sb.append(" thumbnail1: ").append(toIndentedString(thumbnail1)).append("\n"); + sb.append(" thumbnail2: ").append(toIndentedString(thumbnail2)).append("\n"); + sb.append(" thumbnail3: ").append(toIndentedString(thumbnail3)).append("\n"); + sb.append(" thumbnails: ").append(toIndentedString(thumbnails)).append("\n"); + sb.append(" apnsBundleId: ").append(toIndentedString(apnsBundleId)).append("\n"); + sb.append(" appleCriticalAlertOptions: ").append(toIndentedString(appleCriticalAlertOptions)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" customType: ").append(toIndentedString(customType)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" dedupId: ").append(toIndentedString(dedupId)).append("\n"); + sb.append(" includePollDetails: ").append(toIndentedString(includePollDetails)).append("\n"); + sb.append(" isSilent: ").append(toIndentedString(isSilent)).append("\n"); + sb.append(" markAsRead: ").append(toIndentedString(markAsRead)).append("\n"); + sb.append(" mentionType: ").append(toIndentedString(mentionType)).append("\n"); + sb.append(" mentionedUserIds: ").append(toIndentedString(mentionedUserIds)).append("\n"); + sb.append(" sendPush: ").append(toIndentedString(sendPush)).append("\n"); + sb.append(" sortedMetaarray: ").append(toIndentedString(sortedMetaarray)).append("\n"); + sb.append(" sound: ").append(toIndentedString(sound)).append("\n"); + sb.append(" volume: ").append(toIndentedString(volume)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } } diff --git a/src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplate.java b/src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplate.java new file mode 100644 index 00000000..8f11f0f0 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplate.java @@ -0,0 +1,251 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplateOneOf; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + +import com.fasterxml.jackson.core.type.TypeReference; + +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.MapperFeature; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import org.sendbird.client.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +@JsonDeserialize(using = SendAMessageRequestPushMessageTemplate.SendAMessageRequestPushMessageTemplateDeserializer.class) +@JsonSerialize(using = SendAMessageRequestPushMessageTemplate.SendAMessageRequestPushMessageTemplateSerializer.class) +public class SendAMessageRequestPushMessageTemplate extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SendAMessageRequestPushMessageTemplate.class.getName()); + + public static class SendAMessageRequestPushMessageTemplateSerializer extends StdSerializer { + public SendAMessageRequestPushMessageTemplateSerializer(Class t) { + super(t); + } + + public SendAMessageRequestPushMessageTemplateSerializer() { + this(null); + } + + @Override + public void serialize(SendAMessageRequestPushMessageTemplate value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class SendAMessageRequestPushMessageTemplateDeserializer extends StdDeserializer { + public SendAMessageRequestPushMessageTemplateDeserializer() { + this(SendAMessageRequestPushMessageTemplate.class); + } + + public SendAMessageRequestPushMessageTemplateDeserializer(Class vc) { + super(vc); + } + + @Override + public SendAMessageRequestPushMessageTemplate deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize SendAMessageRequestPushMessageTemplateOneOf + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (SendAMessageRequestPushMessageTemplateOneOf.class.equals(Integer.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Long.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Float.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Double.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Boolean.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((SendAMessageRequestPushMessageTemplateOneOf.class.equals(Integer.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((SendAMessageRequestPushMessageTemplateOneOf.class.equals(Float.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (SendAMessageRequestPushMessageTemplateOneOf.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (SendAMessageRequestPushMessageTemplateOneOf.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SendAMessageRequestPushMessageTemplateOneOf.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SendAMessageRequestPushMessageTemplateOneOf'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SendAMessageRequestPushMessageTemplateOneOf'", e); + } + + // deserialize String + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (String.class.equals(Integer.class) || String.class.equals(Long.class) || String.class.equals(Float.class) || String.class.equals(Double.class) || String.class.equals(Boolean.class) || String.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((String.class.equals(Integer.class) || String.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((String.class.equals(Float.class) || String.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (String.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (String.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'String'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'String'", e); + } + + if (match == 1) { + SendAMessageRequestPushMessageTemplate ret = new SendAMessageRequestPushMessageTemplate(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for SendAMessageRequestPushMessageTemplate: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public SendAMessageRequestPushMessageTemplate getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "SendAMessageRequestPushMessageTemplate cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map schemas = new HashMap(); + + public SendAMessageRequestPushMessageTemplate() { + super("oneOf", Boolean.FALSE); + } + + public SendAMessageRequestPushMessageTemplate(SendAMessageRequestPushMessageTemplateOneOf o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public SendAMessageRequestPushMessageTemplate(String o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SendAMessageRequestPushMessageTemplateOneOf", new GenericType() { + }); + schemas.put("String", new GenericType() { + }); + JSON.registerDescendants(SendAMessageRequestPushMessageTemplate.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map getSchemas() { + return SendAMessageRequestPushMessageTemplate.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * SendAMessageRequestPushMessageTemplateOneOf, String + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(SendAMessageRequestPushMessageTemplateOneOf.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be SendAMessageRequestPushMessageTemplateOneOf, String"); + } + + /** + * Get the actual instance, which can be the following: + * SendAMessageRequestPushMessageTemplateOneOf, String + * + * @return The actual instance (SendAMessageRequestPushMessageTemplateOneOf, String) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `SendAMessageRequestPushMessageTemplateOneOf`. If the actual instance is not `SendAMessageRequestPushMessageTemplateOneOf`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SendAMessageRequestPushMessageTemplateOneOf` + * @throws ClassCastException if the instance is not `SendAMessageRequestPushMessageTemplateOneOf` + */ + public SendAMessageRequestPushMessageTemplateOneOf getSendAMessageRequestPushMessageTemplateOneOf() throws ClassCastException { + return (SendAMessageRequestPushMessageTemplateOneOf)super.getActualInstance(); + } + + /** + * Get the actual instance of `String`. If the actual instance is not `String`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `String` + * @throws ClassCastException if the instance is not `String` + */ + public String getString() throws ClassCastException { + return (String)super.getActualInstance(); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.java b/src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOf.java similarity index 78% rename from src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.java rename to src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOf.java index eea7af4b..9f788f29 100644 --- a/src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.java +++ b/src/main/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOf.java @@ -29,25 +29,25 @@ /** - * SendTextMessageRequestBodyPushMessageTemplateOneOf + * SendAMessageRequestPushMessageTemplateOneOf */ @JsonPropertyOrder({ - SendTextMessageRequestBodyPushMessageTemplateOneOf.JSON_PROPERTY_TITLE, - SendTextMessageRequestBodyPushMessageTemplateOneOf.JSON_PROPERTY_BODY + SendAMessageRequestPushMessageTemplateOneOf.JSON_PROPERTY_TITLE, + SendAMessageRequestPushMessageTemplateOneOf.JSON_PROPERTY_BODY }) -@JsonTypeName("sendTextMessageRequestBody_push_message_template_oneOf") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") -public class SendTextMessageRequestBodyPushMessageTemplateOneOf { +@JsonTypeName("sendAMessage_request_push_message_template_oneOf") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +public class SendAMessageRequestPushMessageTemplateOneOf { public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_BODY = "body"; private String body; - public SendTextMessageRequestBodyPushMessageTemplateOneOf() { + public SendAMessageRequestPushMessageTemplateOneOf() { } - public SendTextMessageRequestBodyPushMessageTemplateOneOf title(String title) { + public SendAMessageRequestPushMessageTemplateOneOf title(String title) { this.title = title; return this; } @@ -73,7 +73,7 @@ public void setTitle(String title) { } - public SendTextMessageRequestBodyPushMessageTemplateOneOf body(String body) { + public SendAMessageRequestPushMessageTemplateOneOf body(String body) { this.body = body; return this; } @@ -100,7 +100,7 @@ public void setBody(String body) { /** - * Return true if this sendTextMessageRequestBody_push_message_template_oneOf object is equal to o. + * Return true if this sendAMessage_request_push_message_template_oneOf object is equal to o. */ @Override public boolean equals(Object o) { @@ -110,9 +110,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SendTextMessageRequestBodyPushMessageTemplateOneOf sendTextMessageRequestBodyPushMessageTemplateOneOf = (SendTextMessageRequestBodyPushMessageTemplateOneOf) o; - return Objects.equals(this.title, sendTextMessageRequestBodyPushMessageTemplateOneOf.title) && - Objects.equals(this.body, sendTextMessageRequestBodyPushMessageTemplateOneOf.body); + SendAMessageRequestPushMessageTemplateOneOf sendAMessageRequestPushMessageTemplateOneOf = (SendAMessageRequestPushMessageTemplateOneOf) o; + return Objects.equals(this.title, sendAMessageRequestPushMessageTemplateOneOf.title) && + Objects.equals(this.body, sendAMessageRequestPushMessageTemplateOneOf.body); } @Override @@ -123,7 +123,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SendTextMessageRequestBodyPushMessageTemplateOneOf {\n"); + sb.append("class SendAMessageRequestPushMessageTemplateOneOf {\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/openapitools/client/model/SendAdminMessageRequestBody.java b/src/main/java/org/openapitools/client/model/SendAdminMessageRequestBody.java index 5456cc74..4e79f727 100644 --- a/src/main/java/org/openapitools/client/model/SendAdminMessageRequestBody.java +++ b/src/main/java/org/openapitools/client/model/SendAdminMessageRequestBody.java @@ -50,7 +50,7 @@ SendAdminMessageRequestBody.JSON_PROPERTY_SORTED_METAARRAY }) @JsonTypeName("sendAdminMessageRequestBody") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendAdminMessageRequestBody { public static final String JSON_PROPERTY_APNS_BUNDLE_ID = "apns_bundle_id"; private String apnsBundleId; diff --git a/src/main/java/org/openapitools/client/model/SendBirdFile.java b/src/main/java/org/openapitools/client/model/SendBirdFile.java index afd44915..8d6e1f40 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdFile.java +++ b/src/main/java/org/openapitools/client/model/SendBirdFile.java @@ -42,8 +42,7 @@ SendbirdFile.JSON_PROPERTY_THUMBNAILS, SendbirdFile.JSON_PROPERTY_REQUIRE_AUTH }) -@JsonTypeName("Sendbird.File") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdFile { public static final String JSON_PROPERTY_URL = "url"; private String url; @@ -231,7 +230,7 @@ public void setRequireAuth(Boolean requireAuth) { /** - * Return true if this Sendbird.File object is equal to o. + * Return true if this SendbirdFile object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java index 09925dd4..55e9b0eb 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java @@ -30,8 +30,8 @@ import java.util.Map; import org.openapitools.client.model.SendbirdBasicUserInfo; import org.openapitools.client.model.SendbirdDisappearingMessage; +import org.openapitools.client.model.SendbirdGroupChannelLastMessage; import org.openapitools.client.model.SendbirdMember; -import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdPushTriggerOption; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.jackson.nullable.JsonNullable; @@ -92,8 +92,7 @@ SendbirdGroupChannel.JSON_PROPERTY_UNREAD_MESSAGE_COUNT, SendbirdGroupChannel.JSON_PROPERTY_USER_LAST_READ }) -@JsonTypeName("Sendbird.GroupChannel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdGroupChannel { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; @@ -220,7 +219,7 @@ public static HiddenStateEnum fromValue(String value) { private SendbirdBasicUserInfo inviter; public static final String JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED = "is_access_code_required"; - private Boolean isAccessCodeRequired; + private JsonNullable isAccessCodeRequired = JsonNullable.undefined(); public static final String JSON_PROPERTY_IS_BROADCAST = "is_broadcast"; private Boolean isBroadcast; @@ -256,10 +255,10 @@ public static HiddenStateEnum fromValue(String value) { private Integer joinedMemberCount; public static final String JSON_PROPERTY_JOINED_TS = "joined_ts"; - private Long joinedTs; + private JsonNullable joinedTs = JsonNullable.undefined(); public static final String JSON_PROPERTY_LAST_MESSAGE = "last_message"; - private JsonNullable lastMessage = JsonNullable.undefined(); + private SendbirdGroupChannelLastMessage lastMessage; public static final String JSON_PROPERTY_MAX_LENGTH_MESSAGE = "max_length_message"; private Integer maxLengthMessage; @@ -314,7 +313,7 @@ public static MemberStateEnum fromValue(String value) { private Integer messageSurvivalSeconds; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); /** * Gets or Sets myRole @@ -800,7 +799,7 @@ public void setInviter(SendbirdBasicUserInfo inviter) { public SendbirdGroupChannel isAccessCodeRequired(Boolean isAccessCodeRequired) { - this.isAccessCodeRequired = isAccessCodeRequired; + this.isAccessCodeRequired = JsonNullable.of(isAccessCodeRequired); return this; } @@ -810,20 +809,28 @@ public SendbirdGroupChannel isAccessCodeRequired(Boolean isAccessCodeRequired) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Boolean getIsAccessCodeRequired() { - return isAccessCodeRequired; + return isAccessCodeRequired.orElse(null); } - @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsAccessCodeRequired(Boolean isAccessCodeRequired) { + + public JsonNullable getIsAccessCodeRequired_JsonNullable() { + return isAccessCodeRequired; + } + + @JsonProperty(JSON_PROPERTY_IS_ACCESS_CODE_REQUIRED) + public void setIsAccessCodeRequired_JsonNullable(JsonNullable isAccessCodeRequired) { this.isAccessCodeRequired = isAccessCodeRequired; } + public void setIsAccessCodeRequired(Boolean isAccessCodeRequired) { + this.isAccessCodeRequired = JsonNullable.of(isAccessCodeRequired); + } + public SendbirdGroupChannel isBroadcast(Boolean isBroadcast) { this.isBroadcast = isBroadcast; @@ -1112,7 +1119,7 @@ public void setJoinedMemberCount(Integer joinedMemberCount) { public SendbirdGroupChannel joinedTs(Long joinedTs) { - this.joinedTs = joinedTs; + this.joinedTs = JsonNullable.of(joinedTs); return this; } @@ -1122,23 +1129,31 @@ public SendbirdGroupChannel joinedTs(Long joinedTs) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_JOINED_TS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Long getJoinedTs() { - return joinedTs; + return joinedTs.orElse(null); } - @JsonProperty(JSON_PROPERTY_JOINED_TS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJoinedTs(Long joinedTs) { + + public JsonNullable getJoinedTs_JsonNullable() { + return joinedTs; + } + + @JsonProperty(JSON_PROPERTY_JOINED_TS) + public void setJoinedTs_JsonNullable(JsonNullable joinedTs) { this.joinedTs = joinedTs; } + public void setJoinedTs(Long joinedTs) { + this.joinedTs = JsonNullable.of(joinedTs); + } + - public SendbirdGroupChannel lastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); + public SendbirdGroupChannel lastMessage(SendbirdGroupChannelLastMessage lastMessage) { + this.lastMessage = lastMessage; return this; } @@ -1148,28 +1163,20 @@ public SendbirdGroupChannel lastMessage(SendbirdMessageResponse lastMessage) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonIgnore - - public SendbirdMessageResponse getLastMessage() { - return lastMessage.orElse(null); - } - @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getLastMessage_JsonNullable() { + public SendbirdGroupChannelLastMessage getLastMessage() { return lastMessage; } - + + @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) - public void setLastMessage_JsonNullable(JsonNullable lastMessage) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastMessage(SendbirdGroupChannelLastMessage lastMessage) { this.lastMessage = lastMessage; } - public void setLastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); - } - public SendbirdGroupChannel maxLengthMessage(Integer maxLengthMessage) { this.maxLengthMessage = maxLengthMessage; @@ -1310,7 +1317,7 @@ public void setMessageSurvivalSeconds(Integer messageSurvivalSeconds) { public SendbirdGroupChannel metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -1320,20 +1327,28 @@ public SendbirdGroupChannel metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + public SendbirdGroupChannel myRole(MyRoleEnum myRole) { this.myRole = myRole; @@ -1578,7 +1593,7 @@ public void setUserLastRead(Long userLastRead) { /** - * Return true if this Sendbird.GroupChannel object is equal to o. + * Return true if this SendbirdGroupChannel object is equal to o. */ @Override public boolean equals(Object o) { @@ -1605,7 +1620,7 @@ public boolean equals(Object o) { Objects.equals(this.ignoreProfanityFilter, sendbirdGroupChannel.ignoreProfanityFilter) && Objects.equals(this.invitedAt, sendbirdGroupChannel.invitedAt) && Objects.equals(this.inviter, sendbirdGroupChannel.inviter) && - Objects.equals(this.isAccessCodeRequired, sendbirdGroupChannel.isAccessCodeRequired) && + equalsNullable(this.isAccessCodeRequired, sendbirdGroupChannel.isAccessCodeRequired) && Objects.equals(this.isBroadcast, sendbirdGroupChannel.isBroadcast) && Objects.equals(this.isDiscoverable, sendbirdGroupChannel.isDiscoverable) && Objects.equals(this.isDistinct, sendbirdGroupChannel.isDistinct) && @@ -1617,14 +1632,14 @@ public boolean equals(Object o) { Objects.equals(this.isPushEnabled, sendbirdGroupChannel.isPushEnabled) && Objects.equals(this.isSuper, sendbirdGroupChannel.isSuper) && Objects.equals(this.joinedMemberCount, sendbirdGroupChannel.joinedMemberCount) && - Objects.equals(this.joinedTs, sendbirdGroupChannel.joinedTs) && - equalsNullable(this.lastMessage, sendbirdGroupChannel.lastMessage) && + equalsNullable(this.joinedTs, sendbirdGroupChannel.joinedTs) && + Objects.equals(this.lastMessage, sendbirdGroupChannel.lastMessage) && Objects.equals(this.maxLengthMessage, sendbirdGroupChannel.maxLengthMessage) && Objects.equals(this.memberCount, sendbirdGroupChannel.memberCount) && Objects.equals(this.memberState, sendbirdGroupChannel.memberState) && Objects.equals(this.members, sendbirdGroupChannel.members) && Objects.equals(this.messageSurvivalSeconds, sendbirdGroupChannel.messageSurvivalSeconds) && - Objects.equals(this.metadata, sendbirdGroupChannel.metadata) && + equalsNullable(this.metadata, sendbirdGroupChannel.metadata) && Objects.equals(this.myRole, sendbirdGroupChannel.myRole) && Objects.equals(this.name, sendbirdGroupChannel.name) && Objects.equals(this.pushTriggerOption, sendbirdGroupChannel.pushTriggerOption) && @@ -1642,7 +1657,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(channelUrl, countPreference, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, hiddenState, ignoreProfanityFilter, invitedAt, inviter, isAccessCodeRequired, isBroadcast, isDiscoverable, isDistinct, isEphemeral, isExclusive, isHidden, isMuted, isPublic, isPushEnabled, isSuper, joinedMemberCount, joinedTs, hashCodeNullable(lastMessage), maxLengthMessage, memberCount, memberState, members, messageSurvivalSeconds, metadata, myRole, name, pushTriggerOption, readReceipt, smsFallback, tsMessageOffset, unreadMentionCount, unreadMessageCount, userLastRead); + return Objects.hash(channelUrl, countPreference, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, hiddenState, ignoreProfanityFilter, invitedAt, inviter, hashCodeNullable(isAccessCodeRequired), isBroadcast, isDiscoverable, isDistinct, isEphemeral, isExclusive, isHidden, isMuted, isPublic, isPushEnabled, isSuper, joinedMemberCount, hashCodeNullable(joinedTs), lastMessage, maxLengthMessage, memberCount, memberState, members, messageSurvivalSeconds, hashCodeNullable(metadata), myRole, name, pushTriggerOption, readReceipt, smsFallback, tsMessageOffset, unreadMentionCount, unreadMessageCount, userLastRead); } private static int hashCodeNullable(JsonNullable a) { diff --git a/src/main/java/org/openapitools/client/model/SendBirdMember.java b/src/main/java/org/openapitools/client/model/SendBirdMember.java index a3f4dbb8..5c4671c1 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdMember.java +++ b/src/main/java/org/openapitools/client/model/SendBirdMember.java @@ -62,8 +62,7 @@ SendbirdMember.JSON_PROPERTY_STATE, SendbirdMember.JSON_PROPERTY_USER_ID }) -@JsonTypeName("Sendbird.Member") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdMember { public static final String JSON_PROPERTY_DELIVERED_TS = "delivered_ts"; private Long deliveredTs; @@ -96,7 +95,7 @@ public class SendbirdMember { private Long lastSeenAt; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); public static final String JSON_PROPERTY_MUTED_DESCRIPTION = "muted_description"; private String mutedDescription; @@ -105,7 +104,7 @@ public class SendbirdMember { private Long mutedEndAt; public static final String JSON_PROPERTY_NICKNAME = "nickname"; - private String nickname; + private JsonNullable nickname = JsonNullable.undefined(); public static final String JSON_PROPERTY_PUSH_ENABLED = "push_enabled"; private Boolean pushEnabled; @@ -114,7 +113,7 @@ public class SendbirdMember { private SendbirdPushTriggerOption pushTriggerOption; public static final String JSON_PROPERTY_PROFILE_URL = "profile_url"; - private String profileUrl; + private String profileUrl = ""; public static final String JSON_PROPERTY_REQUIRE_AUTH_FOR_PROFILE_IMAGE = "require_auth_for_profile_image"; private Boolean requireAuthForProfileImage; @@ -497,7 +496,7 @@ public void setLastSeenAt(Long lastSeenAt) { public SendbirdMember metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -507,20 +506,28 @@ public SendbirdMember metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + public SendbirdMember mutedDescription(String mutedDescription) { this.mutedDescription = mutedDescription; @@ -575,7 +582,7 @@ public void setMutedEndAt(Long mutedEndAt) { public SendbirdMember nickname(String nickname) { - this.nickname = nickname; + this.nickname = JsonNullable.of(nickname); return this; } @@ -585,20 +592,28 @@ public SendbirdMember nickname(String nickname) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NICKNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getNickname() { - return nickname; + return nickname.orElse(null); } - @JsonProperty(JSON_PROPERTY_NICKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNickname(String nickname) { + + public JsonNullable getNickname_JsonNullable() { + return nickname; + } + + @JsonProperty(JSON_PROPERTY_NICKNAME) + public void setNickname_JsonNullable(JsonNullable nickname) { this.nickname = nickname; } + public void setNickname(String nickname) { + this.nickname = JsonNullable.of(nickname); + } + public SendbirdMember pushEnabled(Boolean pushEnabled) { this.pushEnabled = pushEnabled; @@ -825,7 +840,7 @@ public void setUserId(String userId) { /** - * Return true if this Sendbird.Member object is equal to o. + * Return true if this SendbirdMember object is equal to o. */ @Override public boolean equals(Object o) { @@ -846,10 +861,10 @@ public boolean equals(Object o) { Objects.equals(this.isMuted, sendbirdMember.isMuted) && Objects.equals(this.isOnline, sendbirdMember.isOnline) && Objects.equals(this.lastSeenAt, sendbirdMember.lastSeenAt) && - Objects.equals(this.metadata, sendbirdMember.metadata) && + equalsNullable(this.metadata, sendbirdMember.metadata) && Objects.equals(this.mutedDescription, sendbirdMember.mutedDescription) && Objects.equals(this.mutedEndAt, sendbirdMember.mutedEndAt) && - Objects.equals(this.nickname, sendbirdMember.nickname) && + equalsNullable(this.nickname, sendbirdMember.nickname) && Objects.equals(this.pushEnabled, sendbirdMember.pushEnabled) && Objects.equals(this.pushTriggerOption, sendbirdMember.pushTriggerOption) && Objects.equals(this.profileUrl, sendbirdMember.profileUrl) && @@ -866,7 +881,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(deliveredTs, doNotDisturb, hashCodeNullable(friendDiscoveryKey), hashCodeNullable(friendName), isActive, isBlockedByMe, isBlockingMe, isMuted, isOnline, lastSeenAt, metadata, mutedDescription, mutedEndAt, nickname, pushEnabled, pushTriggerOption, profileUrl, requireAuthForProfileImage, readTs, hashCodeNullable(role), hashCodeNullable(state), userId); + return Objects.hash(deliveredTs, doNotDisturb, hashCodeNullable(friendDiscoveryKey), hashCodeNullable(friendName), isActive, isBlockedByMe, isBlockingMe, isMuted, isOnline, lastSeenAt, hashCodeNullable(metadata), mutedDescription, mutedEndAt, hashCodeNullable(nickname), pushEnabled, pushTriggerOption, profileUrl, requireAuthForProfileImage, readTs, hashCodeNullable(role), hashCodeNullable(state), userId); } private static int hashCodeNullable(JsonNullable a) { diff --git a/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java b/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java index 4e0777ad..e0607a14 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java @@ -27,8 +27,8 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.SendbirdBasicUserInfo; -import org.openapitools.client.model.SendbirdExtendedMessagePayload; import org.openapitools.client.model.SendbirdFile; +import org.openapitools.client.model.SendbirdMessageResponseExtendedMessagePayload; import org.openapitools.client.model.SendbirdMessageResponseMessageEvents; import org.openapitools.client.model.SendbirdParentMessageInfo; import org.openapitools.client.model.SendbirdReaction; @@ -76,8 +76,7 @@ SendbirdMessageResponse.JSON_PROPERTY_MESSAGE_EVENTS, SendbirdMessageResponse.JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD }) -@JsonTypeName("Sendbird.MessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdMessageResponse { public static final String JSON_PROPERTY_REQUIRE_AUTH = "require_auth"; private Boolean requireAuth; @@ -146,7 +145,7 @@ public class SendbirdMessageResponse { private String channelUrl; public static final String JSON_PROPERTY_MESSAGE_ID = "message_id"; - private Integer messageId; + private Long messageId; public static final String JSON_PROPERTY_SORTED_METAARRAY = "sorted_metaarray"; private List sortedMetaarray = null; @@ -167,7 +166,7 @@ public class SendbirdMessageResponse { private JsonNullable messageEvents = JsonNullable.undefined(); public static final String JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD = "extended_message_payload"; - private SendbirdExtendedMessagePayload extendedMessagePayload; + private SendbirdMessageResponseExtendedMessagePayload extendedMessagePayload; public SendbirdMessageResponse() { } @@ -768,7 +767,7 @@ public void setChannelUrl(String channelUrl) { } - public SendbirdMessageResponse messageId(Integer messageId) { + public SendbirdMessageResponse messageId(Long messageId) { this.messageId = messageId; return this; } @@ -782,14 +781,14 @@ public SendbirdMessageResponse messageId(Integer messageId) { @JsonProperty(JSON_PROPERTY_MESSAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getMessageId() { + public Long getMessageId() { return messageId; } @JsonProperty(JSON_PROPERTY_MESSAGE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessageId(Integer messageId) { + public void setMessageId(Long messageId) { this.messageId = messageId; } @@ -966,7 +965,7 @@ public void setMessageEvents(SendbirdMessageResponseMessageEvents messageEvents) } - public SendbirdMessageResponse extendedMessagePayload(SendbirdExtendedMessagePayload extendedMessagePayload) { + public SendbirdMessageResponse extendedMessagePayload(SendbirdMessageResponseExtendedMessagePayload extendedMessagePayload) { this.extendedMessagePayload = extendedMessagePayload; return this; } @@ -980,20 +979,20 @@ public SendbirdMessageResponse extendedMessagePayload(SendbirdExtendedMessagePay @JsonProperty(JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SendbirdExtendedMessagePayload getExtendedMessagePayload() { + public SendbirdMessageResponseExtendedMessagePayload getExtendedMessagePayload() { return extendedMessagePayload; } @JsonProperty(JSON_PROPERTY_EXTENDED_MESSAGE_PAYLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExtendedMessagePayload(SendbirdExtendedMessagePayload extendedMessagePayload) { + public void setExtendedMessagePayload(SendbirdMessageResponseExtendedMessagePayload extendedMessagePayload) { this.extendedMessagePayload = extendedMessagePayload; } /** - * Return true if this Sendbird.MessageResponse object is equal to o. + * Return true if this SendbirdMessageResponse object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java b/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java index ac23a047..4139eded 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java +++ b/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java @@ -27,6 +27,10 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.SendbirdBasicUserInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -49,8 +53,7 @@ SendbirdOpenChannel.JSON_PROPERTY_PARTICIPANT_COUNT, SendbirdOpenChannel.JSON_PROPERTY_METADATA }) -@JsonTypeName("Sendbird.OpenChannel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdOpenChannel { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; @@ -89,7 +92,7 @@ public class SendbirdOpenChannel { private Integer participantCount; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); public SendbirdOpenChannel() { } @@ -415,7 +418,7 @@ public void setParticipantCount(Integer participantCount) { public SendbirdOpenChannel metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -425,23 +428,31 @@ public SendbirdOpenChannel metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + /** - * Return true if this Sendbird.OpenChannel object is equal to o. + * Return true if this SendbirdOpenChannel object is equal to o. */ @Override public boolean equals(Object o) { @@ -464,12 +475,23 @@ public boolean equals(Object o) { Objects.equals(this.name, sendbirdOpenChannel.name) && Objects.equals(this.operators, sendbirdOpenChannel.operators) && Objects.equals(this.participantCount, sendbirdOpenChannel.participantCount) && - Objects.equals(this.metadata, sendbirdOpenChannel.metadata); + equalsNullable(this.metadata, sendbirdOpenChannel.metadata); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(channelUrl, coverUrl, createdAt, customType, data, freeze, isDynamicPartitioned, isEphemeral, maxLengthMessage, name, operators, participantCount, metadata); + return Objects.hash(channelUrl, coverUrl, createdAt, customType, data, freeze, isDynamicPartitioned, isEphemeral, maxLengthMessage, name, operators, participantCount, hashCodeNullable(metadata)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/SendBirdParentMessageInfo.java b/src/main/java/org/openapitools/client/model/SendBirdParentMessageInfo.java index f6ec261b..f3bf2a2c 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdParentMessageInfo.java +++ b/src/main/java/org/openapitools/client/model/SendBirdParentMessageInfo.java @@ -28,10 +28,6 @@ import java.util.List; import org.openapitools.client.model.SendbirdFile; import org.openapitools.client.model.SendbirdUser; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -48,8 +44,7 @@ SendbirdParentMessageInfo.JSON_PROPERTY_FILE, SendbirdParentMessageInfo.JSON_PROPERTY_FILES }) -@JsonTypeName("Sendbird.ParentMessageInfo") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdParentMessageInfo { public static final String JSON_PROPERTY_CUSTOM_TYPE = "custom_type"; private String customType; @@ -64,7 +59,7 @@ public class SendbirdParentMessageInfo { private Long ts; public static final String JSON_PROPERTY_USER = "user"; - private JsonNullable user = JsonNullable.undefined(); + private SendbirdUser user; public static final String JSON_PROPERTY_FILE = "file"; private SendbirdFile _file; @@ -180,7 +175,7 @@ public void setTs(Long ts) { public SendbirdParentMessageInfo user(SendbirdUser user) { - this.user = JsonNullable.of(user); + this.user = user; return this; } @@ -190,26 +185,18 @@ public SendbirdParentMessageInfo user(SendbirdUser user) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonIgnore - - public SendbirdUser getUser() { - return user.orElse(null); - } - @JsonProperty(JSON_PROPERTY_USER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getUser_JsonNullable() { + public SendbirdUser getUser() { return user; } - - @JsonProperty(JSON_PROPERTY_USER) - public void setUser_JsonNullable(JsonNullable user) { - this.user = user; - } + + @JsonProperty(JSON_PROPERTY_USER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUser(SendbirdUser user) { - this.user = JsonNullable.of(user); + this.user = user; } @@ -274,7 +261,7 @@ public void setFiles(List files) { /** - * Return true if this Sendbird.ParentMessageInfo object is equal to o. + * Return true if this SendbirdParentMessageInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -289,25 +276,14 @@ public boolean equals(Object o) { Objects.equals(this.message, sendbirdParentMessageInfo.message) && Objects.equals(this.type, sendbirdParentMessageInfo.type) && Objects.equals(this.ts, sendbirdParentMessageInfo.ts) && - equalsNullable(this.user, sendbirdParentMessageInfo.user) && + Objects.equals(this.user, sendbirdParentMessageInfo.user) && Objects.equals(this._file, sendbirdParentMessageInfo._file) && Objects.equals(this.files, sendbirdParentMessageInfo.files); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { - return Objects.hash(customType, message, type, ts, hashCodeNullable(user), _file, files); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(customType, message, type, ts, user, _file, files); } @Override diff --git a/src/main/java/org/openapitools/client/model/SendBirdReaction.java b/src/main/java/org/openapitools/client/model/SendBirdReaction.java index 577a27dc..fa14ead2 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdReaction.java +++ b/src/main/java/org/openapitools/client/model/SendBirdReaction.java @@ -38,8 +38,7 @@ SendbirdReaction.JSON_PROPERTY_UPDATED_AT, SendbirdReaction.JSON_PROPERTY_USER_IDS }) -@JsonTypeName("Sendbird.Reaction") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdReaction { public static final String JSON_PROPERTY_KEY = "key"; private String key; @@ -140,7 +139,7 @@ public void setUserIds(List userIds) { /** - * Return true if this Sendbird.Reaction object is equal to o. + * Return true if this SendbirdReaction object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendBirdUser.java b/src/main/java/org/openapitools/client/model/SendBirdUser.java index 608863b5..e8c56517 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdUser.java +++ b/src/main/java/org/openapitools/client/model/SendBirdUser.java @@ -59,11 +59,9 @@ SendbirdUser.JSON_PROPERTY_UNREAD_CHANNEL_COUNT, SendbirdUser.JSON_PROPERTY_UNREAD_MESSAGE_COUNT, SendbirdUser.JSON_PROPERTY_PHONE_NUMBER, - SendbirdUser.JSON_PROPERTY_IS_CREATED, - SendbirdUser.JSON_PROPERTY_SESSION_TOKENS + SendbirdUser.JSON_PROPERTY_IS_CREATED }) -@JsonTypeName("Sendbird.User") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdUser { public static final String JSON_PROPERTY_ACCESS_TOKEN = "access_token"; private String accessToken; @@ -72,7 +70,7 @@ public class SendbirdUser { private Long createdAt; public static final String JSON_PROPERTY_DISCOVERY_KEYS = "discovery_keys"; - private List discoveryKeys = null; + private JsonNullable> discoveryKeys = JsonNullable.>undefined(); public static final String JSON_PROPERTY_HAS_EVER_LOGGED_IN = "has_ever_logged_in"; private Boolean hasEverLoggedIn; @@ -96,16 +94,16 @@ public class SendbirdUser { private String locale; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); public static final String JSON_PROPERTY_NICKNAME = "nickname"; - private String nickname; + private JsonNullable nickname = JsonNullable.undefined(); public static final String JSON_PROPERTY_PREFERRED_LANGUAGES = "preferred_languages"; - private List preferredLanguages = null; + private JsonNullable> preferredLanguages = JsonNullable.>undefined(); public static final String JSON_PROPERTY_PROFILE_URL = "profile_url"; - private String profileUrl; + private String profileUrl = ""; public static final String JSON_PROPERTY_REQUIRE_AUTH_FOR_PROFILE_IMAGE = "require_auth_for_profile_image"; private Boolean requireAuthForProfileImage; @@ -165,9 +163,6 @@ public static StateEnum fromValue(String value) { public static final String JSON_PROPERTY_IS_CREATED = "is_created"; private Boolean isCreated; - public static final String JSON_PROPERTY_SESSION_TOKENS = "session_tokens"; - private List sessionTokens = null; - public SendbirdUser() { } @@ -224,15 +219,19 @@ public void setCreatedAt(Long createdAt) { public SendbirdUser discoveryKeys(List discoveryKeys) { - this.discoveryKeys = discoveryKeys; + this.discoveryKeys = JsonNullable.>of(discoveryKeys); return this; } public SendbirdUser addDiscoveryKeysItem(String discoveryKeysItem) { - if (this.discoveryKeys == null) { - this.discoveryKeys = new ArrayList<>(); + if (this.discoveryKeys == null || !this.discoveryKeys.isPresent()) { + this.discoveryKeys = JsonNullable.>of(new ArrayList<>()); + } + try { + this.discoveryKeys.get().add(discoveryKeysItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.discoveryKeys.add(discoveryKeysItem); return this; } @@ -242,20 +241,28 @@ public SendbirdUser addDiscoveryKeysItem(String discoveryKeysItem) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public List getDiscoveryKeys() { - return discoveryKeys; + return discoveryKeys.orElse(null); } - @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDiscoveryKeys(List discoveryKeys) { + + public JsonNullable> getDiscoveryKeys_JsonNullable() { + return discoveryKeys; + } + + @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) + public void setDiscoveryKeys_JsonNullable(JsonNullable> discoveryKeys) { this.discoveryKeys = discoveryKeys; } + public void setDiscoveryKeys(List discoveryKeys) { + this.discoveryKeys = JsonNullable.>of(discoveryKeys); + } + public SendbirdUser hasEverLoggedIn(Boolean hasEverLoggedIn) { this.hasEverLoggedIn = hasEverLoggedIn; @@ -440,7 +447,7 @@ public void setLocale(String locale) { public SendbirdUser metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -450,23 +457,31 @@ public SendbirdUser metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + public SendbirdUser nickname(String nickname) { - this.nickname = nickname; + this.nickname = JsonNullable.of(nickname); return this; } @@ -476,31 +491,43 @@ public SendbirdUser nickname(String nickname) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NICKNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getNickname() { - return nickname; + return nickname.orElse(null); } - @JsonProperty(JSON_PROPERTY_NICKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNickname(String nickname) { + + public JsonNullable getNickname_JsonNullable() { + return nickname; + } + + @JsonProperty(JSON_PROPERTY_NICKNAME) + public void setNickname_JsonNullable(JsonNullable nickname) { this.nickname = nickname; } + public void setNickname(String nickname) { + this.nickname = JsonNullable.of(nickname); + } + public SendbirdUser preferredLanguages(List preferredLanguages) { - this.preferredLanguages = preferredLanguages; + this.preferredLanguages = JsonNullable.>of(preferredLanguages); return this; } public SendbirdUser addPreferredLanguagesItem(String preferredLanguagesItem) { - if (this.preferredLanguages == null) { - this.preferredLanguages = new ArrayList<>(); + if (this.preferredLanguages == null || !this.preferredLanguages.isPresent()) { + this.preferredLanguages = JsonNullable.>of(new ArrayList<>()); + } + try { + this.preferredLanguages.get().add(preferredLanguagesItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.preferredLanguages.add(preferredLanguagesItem); return this; } @@ -510,20 +537,28 @@ public SendbirdUser addPreferredLanguagesItem(String preferredLanguagesItem) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PREFERRED_LANGUAGES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public List getPreferredLanguages() { - return preferredLanguages; + return preferredLanguages.orElse(null); } - @JsonProperty(JSON_PROPERTY_PREFERRED_LANGUAGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreferredLanguages(List preferredLanguages) { + + public JsonNullable> getPreferredLanguages_JsonNullable() { + return preferredLanguages; + } + + @JsonProperty(JSON_PROPERTY_PREFERRED_LANGUAGES) + public void setPreferredLanguages_JsonNullable(JsonNullable> preferredLanguages) { this.preferredLanguages = preferredLanguages; } + public void setPreferredLanguages(List preferredLanguages) { + this.preferredLanguages = JsonNullable.>of(preferredLanguages); + } + public SendbirdUser profileUrl(String profileUrl) { this.profileUrl = profileUrl; @@ -741,42 +776,8 @@ public void setIsCreated(Boolean isCreated) { } - public SendbirdUser sessionTokens(List sessionTokens) { - this.sessionTokens = sessionTokens; - return this; - } - - public SendbirdUser addSessionTokensItem(String sessionTokensItem) { - if (this.sessionTokens == null) { - this.sessionTokens = new ArrayList<>(); - } - this.sessionTokens.add(sessionTokensItem); - return this; - } - - /** - * Get sessionTokens - * @return sessionTokens - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SESSION_TOKENS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getSessionTokens() { - return sessionTokens; - } - - - @JsonProperty(JSON_PROPERTY_SESSION_TOKENS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSessionTokens(List sessionTokens) { - this.sessionTokens = sessionTokens; - } - - /** - * Return true if this Sendbird.User object is equal to o. + * Return true if this SendbirdUser object is equal to o. */ @Override public boolean equals(Object o) { @@ -789,7 +790,7 @@ public boolean equals(Object o) { SendbirdUser sendbirdUser = (SendbirdUser) o; return Objects.equals(this.accessToken, sendbirdUser.accessToken) && Objects.equals(this.createdAt, sendbirdUser.createdAt) && - Objects.equals(this.discoveryKeys, sendbirdUser.discoveryKeys) && + equalsNullable(this.discoveryKeys, sendbirdUser.discoveryKeys) && Objects.equals(this.hasEverLoggedIn, sendbirdUser.hasEverLoggedIn) && Objects.equals(this.isActive, sendbirdUser.isActive) && Objects.equals(this.isHideMeFromFriends, sendbirdUser.isHideMeFromFriends) && @@ -797,9 +798,9 @@ public boolean equals(Object o) { Objects.equals(this.isShadowBlocked, sendbirdUser.isShadowBlocked) && Objects.equals(this.lastSeenAt, sendbirdUser.lastSeenAt) && Objects.equals(this.locale, sendbirdUser.locale) && - Objects.equals(this.metadata, sendbirdUser.metadata) && - Objects.equals(this.nickname, sendbirdUser.nickname) && - Objects.equals(this.preferredLanguages, sendbirdUser.preferredLanguages) && + equalsNullable(this.metadata, sendbirdUser.metadata) && + equalsNullable(this.nickname, sendbirdUser.nickname) && + equalsNullable(this.preferredLanguages, sendbirdUser.preferredLanguages) && Objects.equals(this.profileUrl, sendbirdUser.profileUrl) && Objects.equals(this.requireAuthForProfileImage, sendbirdUser.requireAuthForProfileImage) && Objects.equals(this.userId, sendbirdUser.userId) && @@ -807,8 +808,7 @@ public boolean equals(Object o) { Objects.equals(this.unreadChannelCount, sendbirdUser.unreadChannelCount) && Objects.equals(this.unreadMessageCount, sendbirdUser.unreadMessageCount) && Objects.equals(this.phoneNumber, sendbirdUser.phoneNumber) && - Objects.equals(this.isCreated, sendbirdUser.isCreated) && - Objects.equals(this.sessionTokens, sendbirdUser.sessionTokens); + Objects.equals(this.isCreated, sendbirdUser.isCreated); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -817,7 +817,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accessToken, createdAt, discoveryKeys, hasEverLoggedIn, isActive, isHideMeFromFriends, isOnline, isShadowBlocked, lastSeenAt, locale, metadata, nickname, preferredLanguages, profileUrl, requireAuthForProfileImage, userId, hashCodeNullable(state), unreadChannelCount, unreadMessageCount, phoneNumber, isCreated, sessionTokens); + return Objects.hash(accessToken, createdAt, hashCodeNullable(discoveryKeys), hasEverLoggedIn, isActive, isHideMeFromFriends, isOnline, isShadowBlocked, lastSeenAt, locale, hashCodeNullable(metadata), hashCodeNullable(nickname), hashCodeNullable(preferredLanguages), profileUrl, requireAuthForProfileImage, userId, hashCodeNullable(state), unreadChannelCount, unreadMessageCount, phoneNumber, isCreated); } private static int hashCodeNullable(JsonNullable a) { @@ -852,7 +852,6 @@ public String toString() { sb.append(" unreadMessageCount: ").append(toIndentedString(unreadMessageCount)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" isCreated: ").append(toIndentedString(isCreated)).append("\n"); - sb.append(" sessionTokens: ").append(toIndentedString(sessionTokens)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/openapitools/client/model/SendFileMessageRequestBody.java b/src/main/java/org/openapitools/client/model/SendFileMessageRequestBody.java index 486624d8..4db78649 100644 --- a/src/main/java/org/openapitools/client/model/SendFileMessageRequestBody.java +++ b/src/main/java/org/openapitools/client/model/SendFileMessageRequestBody.java @@ -60,7 +60,7 @@ SendFileMessageRequestBody.JSON_PROPERTY_VOLUME }) @JsonTypeName("sendFileMessageRequestBody") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendFileMessageRequestBody { public static final String JSON_PROPERTY_APNS_BUNDLE_ID = "apns_bundle_id"; private String apnsBundleId; diff --git a/src/main/java/org/openapitools/client/model/SendTextMessageRequestBody.java b/src/main/java/org/openapitools/client/model/SendTextMessageRequestBody.java index 8cda2925..0a032a65 100644 --- a/src/main/java/org/openapitools/client/model/SendTextMessageRequestBody.java +++ b/src/main/java/org/openapitools/client/model/SendTextMessageRequestBody.java @@ -58,7 +58,7 @@ SendTextMessageRequestBody.JSON_PROPERTY_VOLUME }) @JsonTypeName("sendTextMessageRequestBody") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendTextMessageRequestBody { public static final String JSON_PROPERTY_APNS_BUNDLE_ID = "apns_bundle_id"; private String apnsBundleId; diff --git a/src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplate.java b/src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplate.java index ec6dc12d..1a758089 100644 --- a/src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplate.java +++ b/src/main/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplate.java @@ -24,7 +24,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import org.openapitools.client.model.SendTextMessageRequestBodyPushMessageTemplateOneOf; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplateOneOf; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -55,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.sendbird.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") @JsonDeserialize(using = SendTextMessageRequestBodyPushMessageTemplate.SendTextMessageRequestBodyPushMessageTemplateDeserializer.class) @JsonSerialize(using = SendTextMessageRequestBodyPushMessageTemplate.SendTextMessageRequestBodyPushMessageTemplateSerializer.class) public class SendTextMessageRequestBodyPushMessageTemplate extends AbstractOpenApiSchema { @@ -92,30 +92,30 @@ public SendTextMessageRequestBodyPushMessageTemplate deserialize(JsonParser jp, boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize SendTextMessageRequestBodyPushMessageTemplateOneOf + // deserialize SendAMessageRequestPushMessageTemplateOneOf try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Integer.class) || SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Long.class) || SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Float.class) || SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Double.class) || SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Boolean.class) || SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(String.class)) { + if (SendAMessageRequestPushMessageTemplateOneOf.class.equals(Integer.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Long.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Float.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Double.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Boolean.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { - attemptParsing |= ((SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Integer.class) || SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Float.class) || SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (SendTextMessageRequestBodyPushMessageTemplateOneOf.class.equals(String.class) && token == JsonToken.VALUE_STRING); + attemptParsing |= ((SendAMessageRequestPushMessageTemplateOneOf.class.equals(Integer.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((SendAMessageRequestPushMessageTemplateOneOf.class.equals(Float.class) || SendAMessageRequestPushMessageTemplateOneOf.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (SendAMessageRequestPushMessageTemplateOneOf.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (SendAMessageRequestPushMessageTemplateOneOf.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SendTextMessageRequestBodyPushMessageTemplateOneOf.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(SendAMessageRequestPushMessageTemplateOneOf.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'SendTextMessageRequestBodyPushMessageTemplateOneOf'"); + log.log(Level.FINER, "Input data matches schema 'SendAMessageRequestPushMessageTemplateOneOf'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SendTextMessageRequestBodyPushMessageTemplateOneOf'", e); + log.log(Level.FINER, "Input data does not match schema 'SendAMessageRequestPushMessageTemplateOneOf'", e); } // deserialize String @@ -168,7 +168,7 @@ public SendTextMessageRequestBodyPushMessageTemplate() { super("oneOf", Boolean.FALSE); } - public SendTextMessageRequestBodyPushMessageTemplate(SendTextMessageRequestBodyPushMessageTemplateOneOf o) { + public SendTextMessageRequestBodyPushMessageTemplate(SendAMessageRequestPushMessageTemplateOneOf o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } @@ -179,7 +179,7 @@ public SendTextMessageRequestBodyPushMessageTemplate(String o) { } static { - schemas.put("SendTextMessageRequestBodyPushMessageTemplateOneOf", new GenericType() { + schemas.put("SendAMessageRequestPushMessageTemplateOneOf", new GenericType() { }); schemas.put("String", new GenericType() { }); @@ -194,14 +194,14 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * SendTextMessageRequestBodyPushMessageTemplateOneOf, String + * SendAMessageRequestPushMessageTemplateOneOf, String * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(SendTextMessageRequestBodyPushMessageTemplateOneOf.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(SendAMessageRequestPushMessageTemplateOneOf.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } @@ -211,14 +211,14 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be SendTextMessageRequestBodyPushMessageTemplateOneOf, String"); + throw new RuntimeException("Invalid instance type. Must be SendAMessageRequestPushMessageTemplateOneOf, String"); } /** * Get the actual instance, which can be the following: - * SendTextMessageRequestBodyPushMessageTemplateOneOf, String + * SendAMessageRequestPushMessageTemplateOneOf, String * - * @return The actual instance (SendTextMessageRequestBodyPushMessageTemplateOneOf, String) + * @return The actual instance (SendAMessageRequestPushMessageTemplateOneOf, String) */ @Override public Object getActualInstance() { @@ -226,14 +226,14 @@ public Object getActualInstance() { } /** - * Get the actual instance of `SendTextMessageRequestBodyPushMessageTemplateOneOf`. If the actual instance is not `SendTextMessageRequestBodyPushMessageTemplateOneOf`, + * Get the actual instance of `SendAMessageRequestPushMessageTemplateOneOf`. If the actual instance is not `SendAMessageRequestPushMessageTemplateOneOf`, * the ClassCastException will be thrown. * - * @return The actual instance of `SendTextMessageRequestBodyPushMessageTemplateOneOf` - * @throws ClassCastException if the instance is not `SendTextMessageRequestBodyPushMessageTemplateOneOf` + * @return The actual instance of `SendAMessageRequestPushMessageTemplateOneOf` + * @throws ClassCastException if the instance is not `SendAMessageRequestPushMessageTemplateOneOf` */ - public SendTextMessageRequestBodyPushMessageTemplateOneOf getSendTextMessageRequestBodyPushMessageTemplateOneOf() throws ClassCastException { - return (SendTextMessageRequestBodyPushMessageTemplateOneOf)super.getActualInstance(); + public SendAMessageRequestPushMessageTemplateOneOf getSendAMessageRequestPushMessageTemplateOneOf() throws ClassCastException { + return (SendAMessageRequestPushMessageTemplateOneOf)super.getActualInstance(); } /** diff --git a/src/main/java/org/openapitools/client/model/SendbirdBasicUserInfo.java b/src/main/java/org/openapitools/client/model/SendbirdBasicUserInfo.java index befac684..e6461ba3 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdBasicUserInfo.java +++ b/src/main/java/org/openapitools/client/model/SendbirdBasicUserInfo.java @@ -24,6 +24,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -41,8 +45,7 @@ SendbirdBasicUserInfo.JSON_PROPERTY_PROFILE_URL, SendbirdBasicUserInfo.JSON_PROPERTY_METADATA }) -@JsonTypeName("Sendbird.BasicUserInfo") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdBasicUserInfo { public static final String JSON_PROPERTY_REQUIRE_AUTH_FOR_PROFILE_IMAGE = "require_auth_for_profile_image"; private Boolean requireAuthForProfileImage; @@ -94,16 +97,16 @@ public static RoleEnum fromValue(String value) { private RoleEnum role; public static final String JSON_PROPERTY_NICKNAME = "nickname"; - private String nickname; + private JsonNullable nickname = JsonNullable.undefined(); public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; public static final String JSON_PROPERTY_PROFILE_URL = "profile_url"; - private String profileUrl; + private String profileUrl = ""; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private JsonNullable metadata = JsonNullable.undefined(); public SendbirdBasicUserInfo() { } @@ -213,7 +216,7 @@ public void setRole(RoleEnum role) { public SendbirdBasicUserInfo nickname(String nickname) { - this.nickname = nickname; + this.nickname = JsonNullable.of(nickname); return this; } @@ -223,20 +226,28 @@ public SendbirdBasicUserInfo nickname(String nickname) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NICKNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getNickname() { - return nickname; + return nickname.orElse(null); } - @JsonProperty(JSON_PROPERTY_NICKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNickname(String nickname) { + + public JsonNullable getNickname_JsonNullable() { + return nickname; + } + + @JsonProperty(JSON_PROPERTY_NICKNAME) + public void setNickname_JsonNullable(JsonNullable nickname) { this.nickname = nickname; } + public void setNickname(String nickname) { + this.nickname = JsonNullable.of(nickname); + } + public SendbirdBasicUserInfo userId(String userId) { this.userId = userId; @@ -291,7 +302,7 @@ public void setProfileUrl(String profileUrl) { public SendbirdBasicUserInfo metadata(Object metadata) { - this.metadata = metadata; + this.metadata = JsonNullable.of(metadata); return this; } @@ -301,23 +312,31 @@ public SendbirdBasicUserInfo metadata(Object metadata) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public Object getMetadata() { - return metadata; + return metadata.orElse(null); } - @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + + public JsonNullable getMetadata_JsonNullable() { + return metadata; + } + + @JsonProperty(JSON_PROPERTY_METADATA) + public void setMetadata_JsonNullable(JsonNullable metadata) { this.metadata = metadata; } + public void setMetadata(Object metadata) { + this.metadata = JsonNullable.of(metadata); + } + /** - * Return true if this Sendbird.BasicUserInfo object is equal to o. + * Return true if this SendbirdBasicUserInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -332,15 +351,26 @@ public boolean equals(Object o) { Objects.equals(this.isActive, sendbirdBasicUserInfo.isActive) && Objects.equals(this.isBlockedByMe, sendbirdBasicUserInfo.isBlockedByMe) && Objects.equals(this.role, sendbirdBasicUserInfo.role) && - Objects.equals(this.nickname, sendbirdBasicUserInfo.nickname) && + equalsNullable(this.nickname, sendbirdBasicUserInfo.nickname) && Objects.equals(this.userId, sendbirdBasicUserInfo.userId) && Objects.equals(this.profileUrl, sendbirdBasicUserInfo.profileUrl) && - Objects.equals(this.metadata, sendbirdBasicUserInfo.metadata); + equalsNullable(this.metadata, sendbirdBasicUserInfo.metadata); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(requireAuthForProfileImage, isActive, isBlockedByMe, role, nickname, userId, profileUrl, metadata); + return Objects.hash(requireAuthForProfileImage, isActive, isBlockedByMe, role, hashCodeNullable(nickname), userId, profileUrl, hashCodeNullable(metadata)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/SendbirdDisappearingMessage.java b/src/main/java/org/openapitools/client/model/SendbirdDisappearingMessage.java index a68da037..f64f286a 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdDisappearingMessage.java +++ b/src/main/java/org/openapitools/client/model/SendbirdDisappearingMessage.java @@ -35,8 +35,7 @@ SendbirdDisappearingMessage.JSON_PROPERTY_MESSAGE_SURVIVAL_SECONDS, SendbirdDisappearingMessage.JSON_PROPERTY_IS_TRIGGERED_BY_MESSAGE_READ }) -@JsonTypeName("Sendbird.DisappearingMessage") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdDisappearingMessage { public static final String JSON_PROPERTY_MESSAGE_SURVIVAL_SECONDS = "message_survival_seconds"; private Integer messageSurvivalSeconds; @@ -100,7 +99,7 @@ public void setIsTriggeredByMessageRead(Boolean isTriggeredByMessageRead) { /** - * Return true if this Sendbird.DisappearingMessage object is equal to o. + * Return true if this SendbirdDisappearingMessage object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendbirdExtendedMessagePayload.java b/src/main/java/org/openapitools/client/model/SendbirdExtendedMessagePayload.java index 4f361991..9bf5e53f 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdExtendedMessagePayload.java +++ b/src/main/java/org/openapitools/client/model/SendbirdExtendedMessagePayload.java @@ -38,8 +38,7 @@ SendbirdExtendedMessagePayload.JSON_PROPERTY_CUSTOM_VIEW, SendbirdExtendedMessagePayload.JSON_PROPERTY_SUGGESTED_REPLIES }) -@JsonTypeName("Sendbird.ExtendedMessagePayload") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdExtendedMessagePayload { public static final String JSON_PROPERTY_CUSTOM_VIEW = "custom_view"; private Object customView; @@ -111,7 +110,7 @@ public void setSuggestedReplies(List suggestedReplies) { /** - * Return true if this Sendbird.ExtendedMessagePayload object is equal to o. + * Return true if this SendbirdExtendedMessagePayload object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetail.java b/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetail.java index d1ef8030..c0d3f83b 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetail.java +++ b/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetail.java @@ -35,10 +35,6 @@ import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.client.model.SendbirdUser; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -81,8 +77,7 @@ SendbirdGroupChannelDetail.JSON_PROPERTY_UNREAD_MENTION_COUNT, SendbirdGroupChannelDetail.JSON_PROPERTY_UNREAD_MESSAGE_COUNT }) -@JsonTypeName("Sendbird.GroupChannelDetail") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdGroupChannelDetail { public static final String JSON_PROPERTY_CHANNEL = "channel"; private SendbirdGroupChannelDetailChannel channel; @@ -151,7 +146,7 @@ public class SendbirdGroupChannelDetail { private Integer joinedMemberCount; public static final String JSON_PROPERTY_LAST_MESSAGE = "last_message"; - private JsonNullable lastMessage = JsonNullable.undefined(); + private SendbirdMessageResponse lastMessage; public static final String JSON_PROPERTY_MAX_LENGTH_MESSAGE = "max_length_message"; private Integer maxLengthMessage; @@ -767,7 +762,7 @@ public void setJoinedMemberCount(Integer joinedMemberCount) { public SendbirdGroupChannelDetail lastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); + this.lastMessage = lastMessage; return this; } @@ -777,26 +772,18 @@ public SendbirdGroupChannelDetail lastMessage(SendbirdMessageResponse lastMessag **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonIgnore - - public SendbirdMessageResponse getLastMessage() { - return lastMessage.orElse(null); - } - @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getLastMessage_JsonNullable() { + public SendbirdMessageResponse getLastMessage() { return lastMessage; } - - @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) - public void setLastMessage_JsonNullable(JsonNullable lastMessage) { - this.lastMessage = lastMessage; - } + + @JsonProperty(JSON_PROPERTY_LAST_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastMessage(SendbirdMessageResponse lastMessage) { - this.lastMessage = JsonNullable.of(lastMessage); + this.lastMessage = lastMessage; } @@ -1085,7 +1072,7 @@ public void setUnreadMessageCount(Integer unreadMessageCount) { /** - * Return true if this Sendbird.GroupChannelDetail object is equal to o. + * Return true if this SendbirdGroupChannelDetail object is equal to o. */ @Override public boolean equals(Object o) { @@ -1118,7 +1105,7 @@ public boolean equals(Object o) { Objects.equals(this.isPublic, sendbirdGroupChannelDetail.isPublic) && Objects.equals(this.isSuper, sendbirdGroupChannelDetail.isSuper) && Objects.equals(this.joinedMemberCount, sendbirdGroupChannelDetail.joinedMemberCount) && - equalsNullable(this.lastMessage, sendbirdGroupChannelDetail.lastMessage) && + Objects.equals(this.lastMessage, sendbirdGroupChannelDetail.lastMessage) && Objects.equals(this.maxLengthMessage, sendbirdGroupChannelDetail.maxLengthMessage) && Objects.equals(this.memberCount, sendbirdGroupChannelDetail.memberCount) && Objects.equals(this.members, sendbirdGroupChannelDetail.members) && @@ -1131,20 +1118,9 @@ public boolean equals(Object o) { Objects.equals(this.unreadMessageCount, sendbirdGroupChannelDetail.unreadMessageCount); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { - return Objects.hash(channel, channelUrl, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, id, ignoreProfanityFilter, isAccessCodeRequired, isBroadcast, isDiscoverable, isDistinct, isEphemeral, isPublic, isSuper, joinedMemberCount, hashCodeNullable(lastMessage), maxLengthMessage, memberCount, members, messageSurvivalSeconds, name, operators, readReceipt, smsFallback, unreadMentionCount, unreadMessageCount); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(channel, channelUrl, coverUrl, createdAt, createdBy, customType, data, deliveryReceipt, disappearingMessage, freeze, hasAiBot, hasBot, id, ignoreProfanityFilter, isAccessCodeRequired, isBroadcast, isDiscoverable, isDistinct, isEphemeral, isPublic, isSuper, joinedMemberCount, lastMessage, maxLengthMessage, memberCount, members, messageSurvivalSeconds, name, operators, readReceipt, smsFallback, unreadMentionCount, unreadMessageCount); } @Override diff --git a/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetailChannel.java b/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetailChannel.java index 8f875191..5a338e38 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetailChannel.java +++ b/src/main/java/org/openapitools/client/model/SendbirdGroupChannelDetailChannel.java @@ -41,8 +41,8 @@ SendbirdGroupChannelDetailChannel.JSON_PROPERTY_MEMBER_COUNT, SendbirdGroupChannelDetailChannel.JSON_PROPERTY_NAME }) -@JsonTypeName("Sendbird_GroupChannelDetail_channel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@JsonTypeName("SendbirdGroupChannelDetail_channel") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdGroupChannelDetailChannel { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; @@ -280,7 +280,7 @@ public void setName(String name) { /** - * Return true if this Sendbird_GroupChannelDetail_channel object is equal to o. + * Return true if this SendbirdGroupChannelDetail_channel object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendbirdGroupChannelLastMessage.java b/src/main/java/org/openapitools/client/model/SendbirdGroupChannelLastMessage.java new file mode 100644 index 00000000..9bbf0b27 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/SendbirdGroupChannelLastMessage.java @@ -0,0 +1,215 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.client.model.SendbirdBasicUserInfo; +import org.openapitools.client.model.SendbirdFile; +import org.openapitools.client.model.SendbirdMessageResponse; +import org.openapitools.client.model.SendbirdMessageResponseExtendedMessagePayload; +import org.openapitools.client.model.SendbirdMessageResponseMessageEvents; +import org.openapitools.client.model.SendbirdParentMessageInfo; +import org.openapitools.client.model.SendbirdReaction; +import org.openapitools.client.model.SendbirdSortedMetaarrayInner; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + +import com.fasterxml.jackson.core.type.TypeReference; + +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.MapperFeature; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import org.sendbird.client.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +@JsonDeserialize(using = SendbirdGroupChannelLastMessage.SendbirdGroupChannelLastMessageDeserializer.class) +@JsonSerialize(using = SendbirdGroupChannelLastMessage.SendbirdGroupChannelLastMessageSerializer.class) +public class SendbirdGroupChannelLastMessage extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SendbirdGroupChannelLastMessage.class.getName()); + + public static class SendbirdGroupChannelLastMessageSerializer extends StdSerializer { + public SendbirdGroupChannelLastMessageSerializer(Class t) { + super(t); + } + + public SendbirdGroupChannelLastMessageSerializer() { + this(null); + } + + @Override + public void serialize(SendbirdGroupChannelLastMessage value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class SendbirdGroupChannelLastMessageDeserializer extends StdDeserializer { + public SendbirdGroupChannelLastMessageDeserializer() { + this(SendbirdGroupChannelLastMessage.class); + } + + public SendbirdGroupChannelLastMessageDeserializer(Class vc) { + super(vc); + } + + @Override + public SendbirdGroupChannelLastMessage deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize SendbirdMessageResponse + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (SendbirdMessageResponse.class.equals(Integer.class) || SendbirdMessageResponse.class.equals(Long.class) || SendbirdMessageResponse.class.equals(Float.class) || SendbirdMessageResponse.class.equals(Double.class) || SendbirdMessageResponse.class.equals(Boolean.class) || SendbirdMessageResponse.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((SendbirdMessageResponse.class.equals(Integer.class) || SendbirdMessageResponse.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((SendbirdMessageResponse.class.equals(Float.class) || SendbirdMessageResponse.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (SendbirdMessageResponse.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (SendbirdMessageResponse.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SendbirdMessageResponse.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SendbirdMessageResponse'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SendbirdMessageResponse'", e); + } + + if (match == 1) { + SendbirdGroupChannelLastMessage ret = new SendbirdGroupChannelLastMessage(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for SendbirdGroupChannelLastMessage: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public SendbirdGroupChannelLastMessage getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "SendbirdGroupChannelLastMessage cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map schemas = new HashMap(); + + public SendbirdGroupChannelLastMessage() { + super("oneOf", Boolean.FALSE); + } + + public SendbirdGroupChannelLastMessage(SendbirdMessageResponse o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SendbirdMessageResponse", new GenericType() { + }); + JSON.registerDescendants(SendbirdGroupChannelLastMessage.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map getSchemas() { + return SendbirdGroupChannelLastMessage.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * SendbirdMessageResponse + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(SendbirdMessageResponse.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be SendbirdMessageResponse"); + } + + /** + * Get the actual instance, which can be the following: + * SendbirdMessageResponse + * + * @return The actual instance (SendbirdMessageResponse) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `SendbirdMessageResponse`. If the actual instance is not `SendbirdMessageResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SendbirdMessageResponse` + * @throws ClassCastException if the instance is not `SendbirdMessageResponse` + */ + public SendbirdMessageResponse getSendbirdMessageResponse() throws ClassCastException { + return (SendbirdMessageResponse)super.getActualInstance(); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayload.java b/src/main/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayload.java new file mode 100644 index 00000000..49d357a9 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayload.java @@ -0,0 +1,204 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.client.model.SendbirdExtendedMessagePayload; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + +import com.fasterxml.jackson.core.type.TypeReference; + +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.MapperFeature; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import org.sendbird.client.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +@JsonDeserialize(using = SendbirdMessageResponseExtendedMessagePayload.SendbirdMessageResponseExtendedMessagePayloadDeserializer.class) +@JsonSerialize(using = SendbirdMessageResponseExtendedMessagePayload.SendbirdMessageResponseExtendedMessagePayloadSerializer.class) +public class SendbirdMessageResponseExtendedMessagePayload extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SendbirdMessageResponseExtendedMessagePayload.class.getName()); + + public static class SendbirdMessageResponseExtendedMessagePayloadSerializer extends StdSerializer { + public SendbirdMessageResponseExtendedMessagePayloadSerializer(Class t) { + super(t); + } + + public SendbirdMessageResponseExtendedMessagePayloadSerializer() { + this(null); + } + + @Override + public void serialize(SendbirdMessageResponseExtendedMessagePayload value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class SendbirdMessageResponseExtendedMessagePayloadDeserializer extends StdDeserializer { + public SendbirdMessageResponseExtendedMessagePayloadDeserializer() { + this(SendbirdMessageResponseExtendedMessagePayload.class); + } + + public SendbirdMessageResponseExtendedMessagePayloadDeserializer(Class vc) { + super(vc); + } + + @Override + public SendbirdMessageResponseExtendedMessagePayload deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize SendbirdExtendedMessagePayload + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (SendbirdExtendedMessagePayload.class.equals(Integer.class) || SendbirdExtendedMessagePayload.class.equals(Long.class) || SendbirdExtendedMessagePayload.class.equals(Float.class) || SendbirdExtendedMessagePayload.class.equals(Double.class) || SendbirdExtendedMessagePayload.class.equals(Boolean.class) || SendbirdExtendedMessagePayload.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((SendbirdExtendedMessagePayload.class.equals(Integer.class) || SendbirdExtendedMessagePayload.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((SendbirdExtendedMessagePayload.class.equals(Float.class) || SendbirdExtendedMessagePayload.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (SendbirdExtendedMessagePayload.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (SendbirdExtendedMessagePayload.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(SendbirdExtendedMessagePayload.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'SendbirdExtendedMessagePayload'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SendbirdExtendedMessagePayload'", e); + } + + if (match == 1) { + SendbirdMessageResponseExtendedMessagePayload ret = new SendbirdMessageResponseExtendedMessagePayload(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for SendbirdMessageResponseExtendedMessagePayload: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public SendbirdMessageResponseExtendedMessagePayload getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "SendbirdMessageResponseExtendedMessagePayload cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map schemas = new HashMap(); + + public SendbirdMessageResponseExtendedMessagePayload() { + super("oneOf", Boolean.FALSE); + } + + public SendbirdMessageResponseExtendedMessagePayload(SendbirdExtendedMessagePayload o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SendbirdExtendedMessagePayload", new GenericType() { + }); + JSON.registerDescendants(SendbirdMessageResponseExtendedMessagePayload.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map getSchemas() { + return SendbirdMessageResponseExtendedMessagePayload.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * SendbirdExtendedMessagePayload + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(SendbirdExtendedMessagePayload.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be SendbirdExtendedMessagePayload"); + } + + /** + * Get the actual instance, which can be the following: + * SendbirdExtendedMessagePayload + * + * @return The actual instance (SendbirdExtendedMessagePayload) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `SendbirdExtendedMessagePayload`. If the actual instance is not `SendbirdExtendedMessagePayload`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SendbirdExtendedMessagePayload` + * @throws ClassCastException if the instance is not `SendbirdExtendedMessagePayload` + */ + public SendbirdExtendedMessagePayload getSendbirdExtendedMessagePayload() throws ClassCastException { + return (SendbirdExtendedMessagePayload)super.getActualInstance(); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/SendbirdMessageResponseMessageEvents.java b/src/main/java/org/openapitools/client/model/SendbirdMessageResponseMessageEvents.java index 1a039826..b4a8bd8a 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdMessageResponseMessageEvents.java +++ b/src/main/java/org/openapitools/client/model/SendbirdMessageResponseMessageEvents.java @@ -37,8 +37,8 @@ SendbirdMessageResponseMessageEvents.JSON_PROPERTY_UPDATE_MENTION_COUNT, SendbirdMessageResponseMessageEvents.JSON_PROPERTY_UPDATE_LAST_MESSAGE }) -@JsonTypeName("Sendbird_MessageResponse_message_events") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@JsonTypeName("SendbirdMessageResponse_message_events") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdMessageResponseMessageEvents { public static final String JSON_PROPERTY_SEND_PUSH_NOTIFICATION = "send_push_notification"; private String sendPushNotification; @@ -160,7 +160,7 @@ public void setUpdateLastMessage(Boolean updateLastMessage) { /** - * Return true if this Sendbird_MessageResponse_message_events object is equal to o. + * Return true if this SendbirdMessageResponse_message_events object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendbirdPushTriggerOption.java b/src/main/java/org/openapitools/client/model/SendbirdPushTriggerOption.java index c8af774e..68573110 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdPushTriggerOption.java +++ b/src/main/java/org/openapitools/client/model/SendbirdPushTriggerOption.java @@ -25,7 +25,7 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * Gets or Sets Sendbird.PushTriggerOption + * Gets or Sets SendbirdPushTriggerOption */ public enum SendbirdPushTriggerOption { diff --git a/src/main/java/org/openapitools/client/model/SendbirdSmsFallback.java b/src/main/java/org/openapitools/client/model/SendbirdSmsFallback.java index 08cc0ca8..7a6d0f0f 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdSmsFallback.java +++ b/src/main/java/org/openapitools/client/model/SendbirdSmsFallback.java @@ -37,8 +37,7 @@ SendbirdSmsFallback.JSON_PROPERTY_WAIT_SECONDS, SendbirdSmsFallback.JSON_PROPERTY_EXCLUDE_USER_IDS }) -@JsonTypeName("Sendbird.SmsFallback") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdSmsFallback { public static final String JSON_PROPERTY_WAIT_SECONDS = "wait_seconds"; private Integer waitSeconds; @@ -110,7 +109,7 @@ public void setExcludeUserIds(List excludeUserIds) { /** - * Return true if this Sendbird.SmsFallback object is equal to o. + * Return true if this SendbirdSmsFallback object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendbirdSortedMetaarrayInner.java b/src/main/java/org/openapitools/client/model/SendbirdSortedMetaarrayInner.java index e3507ae4..1b26b1db 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdSortedMetaarrayInner.java +++ b/src/main/java/org/openapitools/client/model/SendbirdSortedMetaarrayInner.java @@ -37,8 +37,8 @@ SendbirdSortedMetaarrayInner.JSON_PROPERTY_KEY, SendbirdSortedMetaarrayInner.JSON_PROPERTY_VALUE }) -@JsonTypeName("Sendbird_SortedMetaarray_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@JsonTypeName("SendbirdSortedMetaarray_inner") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdSortedMetaarrayInner { public static final String JSON_PROPERTY_KEY = "key"; private String key; @@ -110,7 +110,7 @@ public void setValue(List value) { /** - * Return true if this Sendbird_SortedMetaarray_inner object is equal to o. + * Return true if this SendbirdSortedMetaarray_inner object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/SendbirdThumbnail.java b/src/main/java/org/openapitools/client/model/SendbirdThumbnail.java index ec82d167..89f9152b 100644 --- a/src/main/java/org/openapitools/client/model/SendbirdThumbnail.java +++ b/src/main/java/org/openapitools/client/model/SendbirdThumbnail.java @@ -39,8 +39,7 @@ SendbirdThumbnail.JSON_PROPERTY_URL, SendbirdThumbnail.JSON_PROPERTY_WIDTH }) -@JsonTypeName("Sendbird.Thumbnail") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class SendbirdThumbnail { public static final String JSON_PROPERTY_HEIGHT = "height"; private Integer height; @@ -220,7 +219,7 @@ public void setWidth(Integer width) { /** - * Return true if this Sendbird.Thumbnail object is equal to o. + * Return true if this SendbirdThumbnail object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/org/openapitools/client/model/StartTypingIndicatorsRequest.java b/src/main/java/org/openapitools/client/model/StartTypingIndicatorsRequest.java index 9dabddf0..10125875 100644 --- a/src/main/java/org/openapitools/client/model/StartTypingIndicatorsRequest.java +++ b/src/main/java/org/openapitools/client/model/StartTypingIndicatorsRequest.java @@ -37,7 +37,7 @@ StartTypingIndicatorsRequest.JSON_PROPERTY_USER_IDS }) @JsonTypeName("startTypingIndicators_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class StartTypingIndicatorsRequest { public static final String JSON_PROPERTY_USER_IDS = "user_ids"; private List userIds = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/UpdateAChannelMetadataRequest.java b/src/main/java/org/openapitools/client/model/UpdateAChannelMetadataRequest.java index 83ec507f..031812c5 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAChannelMetadataRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateAChannelMetadataRequest.java @@ -36,7 +36,7 @@ UpdateAChannelMetadataRequest.JSON_PROPERTY_UPSERT }) @JsonTypeName("updateAChannelMetadata_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateAChannelMetadataRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; private Object metadata; @@ -56,7 +56,7 @@ public UpdateAChannelMetadataRequest metadata(Object metadata) { * Get metadata * @return metadata **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/src/main/java/org/openapitools/client/model/UpdateAGroupChannelRequest.java b/src/main/java/org/openapitools/client/model/UpdateAGroupChannelRequest.java index 873b8c03..c0f76fc9 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAGroupChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateAGroupChannelRequest.java @@ -27,6 +27,10 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -47,10 +51,10 @@ UpdateAGroupChannelRequest.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("updateAGroupChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateAGroupChannelRequest { public static final String JSON_PROPERTY_ACCESS_CODE = "access_code"; - private String accessCode; + private JsonNullable accessCode = JsonNullable.undefined(); public static final String JSON_PROPERTY_COVER_FILE = "cover_file"; private File coverFile; @@ -83,7 +87,7 @@ public UpdateAGroupChannelRequest() { } public UpdateAGroupChannelRequest accessCode(String accessCode) { - this.accessCode = accessCode; + this.accessCode = JsonNullable.of(accessCode); return this; } @@ -93,20 +97,28 @@ public UpdateAGroupChannelRequest accessCode(String accessCode) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getAccessCode() { - return accessCode; + return accessCode.orElse(null); } - @JsonProperty(JSON_PROPERTY_ACCESS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccessCode(String accessCode) { + + public JsonNullable getAccessCode_JsonNullable() { + return accessCode; + } + + @JsonProperty(JSON_PROPERTY_ACCESS_CODE) + public void setAccessCode_JsonNullable(JsonNullable accessCode) { this.accessCode = accessCode; } + public void setAccessCode(String accessCode) { + this.accessCode = JsonNullable.of(accessCode); + } + public UpdateAGroupChannelRequest coverFile(File coverFile) { this.coverFile = coverFile; @@ -362,7 +374,7 @@ public boolean equals(Object o) { return false; } UpdateAGroupChannelRequest updateAGroupChannelRequest = (UpdateAGroupChannelRequest) o; - return Objects.equals(this.accessCode, updateAGroupChannelRequest.accessCode) && + return equalsNullable(this.accessCode, updateAGroupChannelRequest.accessCode) && Objects.equals(this.coverFile, updateAGroupChannelRequest.coverFile) && Objects.equals(this.coverUrl, updateAGroupChannelRequest.coverUrl) && Objects.equals(this.customType, updateAGroupChannelRequest.customType) && @@ -374,9 +386,20 @@ public boolean equals(Object o) { Objects.equals(this.operatorIds, updateAGroupChannelRequest.operatorIds); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(accessCode, coverFile, coverUrl, customType, data, isDistinct, isPublic, isSuper, name, operatorIds); + return Objects.hash(hashCodeNullable(accessCode), coverFile, coverUrl, customType, data, isDistinct, isPublic, isSuper, name, operatorIds); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/UpdateAMessageRequest.java b/src/main/java/org/openapitools/client/model/UpdateAMessageRequest.java index f2e3e7d1..41bcf3f2 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAMessageRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateAMessageRequest.java @@ -43,7 +43,7 @@ UpdateAMessageRequest.JSON_PROPERTY_MESSAGE_TYPE }) @JsonTypeName("updateAMessage_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateAMessageRequest { public static final String JSON_PROPERTY_CUSTOM_TYPE = "custom_type"; private String customType; diff --git a/src/main/java/org/openapitools/client/model/UpdateAUserRequest.java b/src/main/java/org/openapitools/client/model/UpdateAUserRequest.java index e230abf2..ae9443d1 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAUserRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateAUserRequest.java @@ -27,6 +27,10 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import org.sendbird.client.JSON; @@ -46,10 +50,10 @@ UpdateAUserRequest.JSON_PROPERTY_PROFILE_URL }) @JsonTypeName("updateAUser_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateAUserRequest { public static final String JSON_PROPERTY_DISCOVERY_KEYS = "discovery_keys"; - private List discoveryKeys = null; + private JsonNullable> discoveryKeys = JsonNullable.>undefined(); public static final String JSON_PROPERTY_IS_ACTIVE = "is_active"; private Boolean isActive; @@ -64,30 +68,34 @@ public class UpdateAUserRequest { private Boolean leaveAllWhenDeactivated; public static final String JSON_PROPERTY_NICKNAME = "nickname"; - private String nickname; + private JsonNullable nickname = JsonNullable.undefined(); public static final String JSON_PROPERTY_PREFERRED_LANGUAGES = "preferred_languages"; - private List preferredLanguages = null; + private JsonNullable> preferredLanguages = JsonNullable.>undefined(); public static final String JSON_PROPERTY_PROFILE_FILE = "profile_file"; private File profileFile; public static final String JSON_PROPERTY_PROFILE_URL = "profile_url"; - private String profileUrl; + private JsonNullable profileUrl = JsonNullable.undefined(); public UpdateAUserRequest() { } public UpdateAUserRequest discoveryKeys(List discoveryKeys) { - this.discoveryKeys = discoveryKeys; + this.discoveryKeys = JsonNullable.>of(discoveryKeys); return this; } public UpdateAUserRequest addDiscoveryKeysItem(String discoveryKeysItem) { - if (this.discoveryKeys == null) { - this.discoveryKeys = new ArrayList<>(); + if (this.discoveryKeys == null || !this.discoveryKeys.isPresent()) { + this.discoveryKeys = JsonNullable.>of(new ArrayList<>()); + } + try { + this.discoveryKeys.get().add(discoveryKeysItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.discoveryKeys.add(discoveryKeysItem); return this; } @@ -97,20 +105,28 @@ public UpdateAUserRequest addDiscoveryKeysItem(String discoveryKeysItem) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public List getDiscoveryKeys() { - return discoveryKeys; + return discoveryKeys.orElse(null); } - @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDiscoveryKeys(List discoveryKeys) { + + public JsonNullable> getDiscoveryKeys_JsonNullable() { + return discoveryKeys; + } + + @JsonProperty(JSON_PROPERTY_DISCOVERY_KEYS) + public void setDiscoveryKeys_JsonNullable(JsonNullable> discoveryKeys) { this.discoveryKeys = discoveryKeys; } + public void setDiscoveryKeys(List discoveryKeys) { + this.discoveryKeys = JsonNullable.>of(discoveryKeys); + } + public UpdateAUserRequest isActive(Boolean isActive) { this.isActive = isActive; @@ -217,7 +233,7 @@ public void setLeaveAllWhenDeactivated(Boolean leaveAllWhenDeactivated) { public UpdateAUserRequest nickname(String nickname) { - this.nickname = nickname; + this.nickname = JsonNullable.of(nickname); return this; } @@ -227,31 +243,43 @@ public UpdateAUserRequest nickname(String nickname) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NICKNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getNickname() { - return nickname; + return nickname.orElse(null); } - @JsonProperty(JSON_PROPERTY_NICKNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNickname(String nickname) { + + public JsonNullable getNickname_JsonNullable() { + return nickname; + } + + @JsonProperty(JSON_PROPERTY_NICKNAME) + public void setNickname_JsonNullable(JsonNullable nickname) { this.nickname = nickname; } + public void setNickname(String nickname) { + this.nickname = JsonNullable.of(nickname); + } + public UpdateAUserRequest preferredLanguages(List preferredLanguages) { - this.preferredLanguages = preferredLanguages; + this.preferredLanguages = JsonNullable.>of(preferredLanguages); return this; } public UpdateAUserRequest addPreferredLanguagesItem(String preferredLanguagesItem) { - if (this.preferredLanguages == null) { - this.preferredLanguages = new ArrayList<>(); + if (this.preferredLanguages == null || !this.preferredLanguages.isPresent()) { + this.preferredLanguages = JsonNullable.>of(new ArrayList<>()); + } + try { + this.preferredLanguages.get().add(preferredLanguagesItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.preferredLanguages.add(preferredLanguagesItem); return this; } @@ -261,20 +289,28 @@ public UpdateAUserRequest addPreferredLanguagesItem(String preferredLanguagesIte **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PREFERRED_LANGUAGES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public List getPreferredLanguages() { - return preferredLanguages; + return preferredLanguages.orElse(null); } - @JsonProperty(JSON_PROPERTY_PREFERRED_LANGUAGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreferredLanguages(List preferredLanguages) { + + public JsonNullable> getPreferredLanguages_JsonNullable() { + return preferredLanguages; + } + + @JsonProperty(JSON_PROPERTY_PREFERRED_LANGUAGES) + public void setPreferredLanguages_JsonNullable(JsonNullable> preferredLanguages) { this.preferredLanguages = preferredLanguages; } + public void setPreferredLanguages(List preferredLanguages) { + this.preferredLanguages = JsonNullable.>of(preferredLanguages); + } + public UpdateAUserRequest profileFile(File profileFile) { this.profileFile = profileFile; @@ -303,7 +339,7 @@ public void setProfileFile(File profileFile) { public UpdateAUserRequest profileUrl(String profileUrl) { - this.profileUrl = profileUrl; + this.profileUrl = JsonNullable.of(profileUrl); return this; } @@ -313,20 +349,28 @@ public UpdateAUserRequest profileUrl(String profileUrl) { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PROFILE_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonIgnore public String getProfileUrl() { - return profileUrl; + return profileUrl.orElse(null); } - @JsonProperty(JSON_PROPERTY_PROFILE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProfileUrl(String profileUrl) { + + public JsonNullable getProfileUrl_JsonNullable() { + return profileUrl; + } + + @JsonProperty(JSON_PROPERTY_PROFILE_URL) + public void setProfileUrl_JsonNullable(JsonNullable profileUrl) { this.profileUrl = profileUrl; } + public void setProfileUrl(String profileUrl) { + this.profileUrl = JsonNullable.of(profileUrl); + } + /** * Return true if this updateAUser_request object is equal to o. @@ -340,20 +384,31 @@ public boolean equals(Object o) { return false; } UpdateAUserRequest updateAUserRequest = (UpdateAUserRequest) o; - return Objects.equals(this.discoveryKeys, updateAUserRequest.discoveryKeys) && + return equalsNullable(this.discoveryKeys, updateAUserRequest.discoveryKeys) && Objects.equals(this.isActive, updateAUserRequest.isActive) && Objects.equals(this.issueAccessToken, updateAUserRequest.issueAccessToken) && Objects.equals(this.lastSeenAt, updateAUserRequest.lastSeenAt) && Objects.equals(this.leaveAllWhenDeactivated, updateAUserRequest.leaveAllWhenDeactivated) && - Objects.equals(this.nickname, updateAUserRequest.nickname) && - Objects.equals(this.preferredLanguages, updateAUserRequest.preferredLanguages) && + equalsNullable(this.nickname, updateAUserRequest.nickname) && + equalsNullable(this.preferredLanguages, updateAUserRequest.preferredLanguages) && Objects.equals(this.profileFile, updateAUserRequest.profileFile) && - Objects.equals(this.profileUrl, updateAUserRequest.profileUrl); + equalsNullable(this.profileUrl, updateAUserRequest.profileUrl); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(discoveryKeys, isActive, issueAccessToken, lastSeenAt, leaveAllWhenDeactivated, nickname, preferredLanguages, profileFile, profileUrl); + return Objects.hash(hashCodeNullable(discoveryKeys), isActive, issueAccessToken, lastSeenAt, leaveAllWhenDeactivated, hashCodeNullable(nickname), hashCodeNullable(preferredLanguages), profileFile, hashCodeNullable(profileUrl)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/src/main/java/org/openapitools/client/model/UpdateAnOpenChannelRequest.java b/src/main/java/org/openapitools/client/model/UpdateAnOpenChannelRequest.java index 1048845e..318c2a73 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAnOpenChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateAnOpenChannelRequest.java @@ -43,7 +43,7 @@ UpdateAnOpenChannelRequest.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("updateAnOpenChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateAnOpenChannelRequest { public static final String JSON_PROPERTY_COVER_FILE = "cover_file"; private File coverFile; diff --git a/src/main/java/org/openapitools/client/model/UpdateBotByIdData.java b/src/main/java/org/openapitools/client/model/UpdateBotByIdData.java new file mode 100644 index 00000000..65b1bc51 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/UpdateBotByIdData.java @@ -0,0 +1,337 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + + +/** + * UpdateBotByIdData + */ +@JsonPropertyOrder({ + UpdateBotByIdData.JSON_PROPERTY_BOT_USERID, + UpdateBotByIdData.JSON_PROPERTY_BOT_NICKNAME, + UpdateBotByIdData.JSON_PROPERTY_BOT_PROFILE_URL, + UpdateBotByIdData.JSON_PROPERTY_BOT_CALLBACK_URL, + UpdateBotByIdData.JSON_PROPERTY_IS_PRIVACY_MODE, + UpdateBotByIdData.JSON_PROPERTY_ENABLE_MARK_AS_READ, + UpdateBotByIdData.JSON_PROPERTY_SHOW_MEMBER, + UpdateBotByIdData.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE +}) +@JsonTypeName("updateBotByIdData") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +public class UpdateBotByIdData { + public static final String JSON_PROPERTY_BOT_USERID = "bot_userid"; + private String botUserid; + + public static final String JSON_PROPERTY_BOT_NICKNAME = "bot_nickname"; + private String botNickname; + + public static final String JSON_PROPERTY_BOT_PROFILE_URL = "bot_profile_url"; + private String botProfileUrl; + + public static final String JSON_PROPERTY_BOT_CALLBACK_URL = "bot_callback_url"; + private String botCallbackUrl; + + public static final String JSON_PROPERTY_IS_PRIVACY_MODE = "is_privacy_mode"; + private Boolean isPrivacyMode; + + public static final String JSON_PROPERTY_ENABLE_MARK_AS_READ = "enable_mark_as_read"; + private Boolean enableMarkAsRead; + + public static final String JSON_PROPERTY_SHOW_MEMBER = "show_member"; + private Boolean showMember; + + public static final String JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE = "channel_invitation_preference"; + private Integer channelInvitationPreference; + + public UpdateBotByIdData() { + } + + public UpdateBotByIdData botUserid(String botUserid) { + this.botUserid = botUserid; + return this; + } + + /** + * Specifies the ID of the bot to update. + * @return botUserid + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the ID of the bot to update.") + @JsonProperty(JSON_PROPERTY_BOT_USERID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getBotUserid() { + return botUserid; + } + + + @JsonProperty(JSON_PROPERTY_BOT_USERID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBotUserid(String botUserid) { + this.botUserid = botUserid; + } + + + public UpdateBotByIdData botNickname(String botNickname) { + this.botNickname = botNickname; + return this; + } + + /** + * Specifies the bot's nickname. The length is limited to 80 characters. + * @return botNickname + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the bot's nickname. The length is limited to 80 characters.") + @JsonProperty(JSON_PROPERTY_BOT_NICKNAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getBotNickname() { + return botNickname; + } + + + @JsonProperty(JSON_PROPERTY_BOT_NICKNAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBotNickname(String botNickname) { + this.botNickname = botNickname; + } + + + public UpdateBotByIdData botProfileUrl(String botProfileUrl) { + this.botProfileUrl = botProfileUrl; + return this; + } + + /** + * Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. + * @return botProfileUrl + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the URL of the bot's profile image. The size is limited to 2,048 characters.") + @JsonProperty(JSON_PROPERTY_BOT_PROFILE_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getBotProfileUrl() { + return botProfileUrl; + } + + + @JsonProperty(JSON_PROPERTY_BOT_PROFILE_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBotProfileUrl(String botProfileUrl) { + this.botProfileUrl = botProfileUrl; + } + + + public UpdateBotByIdData botCallbackUrl(String botCallbackUrl) { + this.botCallbackUrl = botCallbackUrl; + return this; + } + + /** + * Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. + * @return botCallbackUrl + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters.") + @JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getBotCallbackUrl() { + return botCallbackUrl; + } + + + @JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBotCallbackUrl(String botCallbackUrl) { + this.botCallbackUrl = botCallbackUrl; + } + + + public UpdateBotByIdData isPrivacyMode(Boolean isPrivacyMode) { + this.isPrivacyMode = isPrivacyMode; + return this; + } + + /** + * In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. + * @return isPrivacyMode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded.") + @JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getIsPrivacyMode() { + return isPrivacyMode; + } + + + @JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIsPrivacyMode(Boolean isPrivacyMode) { + this.isPrivacyMode = isPrivacyMode; + } + + + public UpdateBotByIdData enableMarkAsRead(Boolean enableMarkAsRead) { + this.enableMarkAsRead = enableMarkAsRead; + return this; + } + + /** + * Determines whether to mark the bot's message as read upon sending it. (Default: true) + * @return enableMarkAsRead + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Determines whether to mark the bot's message as read upon sending it. (Default: true)") + @JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getEnableMarkAsRead() { + return enableMarkAsRead; + } + + + @JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEnableMarkAsRead(Boolean enableMarkAsRead) { + this.enableMarkAsRead = enableMarkAsRead; + } + + + public UpdateBotByIdData showMember(Boolean showMember) { + this.showMember = showMember; + return this; + } + + /** + * Determines whether to include information about the members of each channel in a callback response. (Default: false) + * @return showMember + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Determines whether to include information about the members of each channel in a callback response. (Default: false)") + @JsonProperty(JSON_PROPERTY_SHOW_MEMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getShowMember() { + return showMember; + } + + + @JsonProperty(JSON_PROPERTY_SHOW_MEMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setShowMember(Boolean showMember) { + this.showMember = showMember; + } + + + public UpdateBotByIdData channelInvitationPreference(Integer channelInvitationPreference) { + this.channelInvitationPreference = channelInvitationPreference; + return this; + } + + /** + * Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) + * @return channelInvitationPreference + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0)") + @JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getChannelInvitationPreference() { + return channelInvitationPreference; + } + + + @JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setChannelInvitationPreference(Integer channelInvitationPreference) { + this.channelInvitationPreference = channelInvitationPreference; + } + + + /** + * Return true if this updateBotByIdData object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateBotByIdData updateBotByIdData = (UpdateBotByIdData) o; + return Objects.equals(this.botUserid, updateBotByIdData.botUserid) && + Objects.equals(this.botNickname, updateBotByIdData.botNickname) && + Objects.equals(this.botProfileUrl, updateBotByIdData.botProfileUrl) && + Objects.equals(this.botCallbackUrl, updateBotByIdData.botCallbackUrl) && + Objects.equals(this.isPrivacyMode, updateBotByIdData.isPrivacyMode) && + Objects.equals(this.enableMarkAsRead, updateBotByIdData.enableMarkAsRead) && + Objects.equals(this.showMember, updateBotByIdData.showMember) && + Objects.equals(this.channelInvitationPreference, updateBotByIdData.channelInvitationPreference); + } + + @Override + public int hashCode() { + return Objects.hash(botUserid, botNickname, botProfileUrl, botCallbackUrl, isPrivacyMode, enableMarkAsRead, showMember, channelInvitationPreference); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBotByIdData {\n"); + sb.append(" botUserid: ").append(toIndentedString(botUserid)).append("\n"); + sb.append(" botNickname: ").append(toIndentedString(botNickname)).append("\n"); + sb.append(" botProfileUrl: ").append(toIndentedString(botProfileUrl)).append("\n"); + sb.append(" botCallbackUrl: ").append(toIndentedString(botCallbackUrl)).append("\n"); + sb.append(" isPrivacyMode: ").append(toIndentedString(isPrivacyMode)).append("\n"); + sb.append(" enableMarkAsRead: ").append(toIndentedString(enableMarkAsRead)).append("\n"); + sb.append(" showMember: ").append(toIndentedString(showMember)).append("\n"); + sb.append(" channelInvitationPreference: ").append(toIndentedString(channelInvitationPreference)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java b/src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java new file mode 100644 index 00000000..a87ae5ff --- /dev/null +++ b/src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java @@ -0,0 +1,274 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.ViewBotByIdResponseBot; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + + +/** + * UpdateBotByIdResponse + */ +@JsonPropertyOrder({ + UpdateBotByIdResponse.JSON_PROPERTY_BOT, + UpdateBotByIdResponse.JSON_PROPERTY_BOT_CALLBACK_URL, + UpdateBotByIdResponse.JSON_PROPERTY_ENABLE_MARK_AS_READ, + UpdateBotByIdResponse.JSON_PROPERTY_IS_PRIVACY_MODE, + UpdateBotByIdResponse.JSON_PROPERTY_SHOW_MEMBER, + UpdateBotByIdResponse.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE +}) +@JsonTypeName("updateBotByIdResponse") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +public class UpdateBotByIdResponse { + public static final String JSON_PROPERTY_BOT = "bot"; + private ViewBotByIdResponseBot bot; + + public static final String JSON_PROPERTY_BOT_CALLBACK_URL = "bot_callback_url"; + private String botCallbackUrl; + + public static final String JSON_PROPERTY_ENABLE_MARK_AS_READ = "enable_mark_as_read"; + private Boolean enableMarkAsRead; + + public static final String JSON_PROPERTY_IS_PRIVACY_MODE = "is_privacy_mode"; + private Boolean isPrivacyMode; + + public static final String JSON_PROPERTY_SHOW_MEMBER = "show_member"; + private Boolean showMember; + + public static final String JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE = "channel_invitation_preference"; + private Integer channelInvitationPreference; + + public UpdateBotByIdResponse() { + } + + public UpdateBotByIdResponse bot(ViewBotByIdResponseBot bot) { + this.bot = bot; + return this; + } + + /** + * Get bot + * @return bot + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ViewBotByIdResponseBot getBot() { + return bot; + } + + + @JsonProperty(JSON_PROPERTY_BOT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBot(ViewBotByIdResponseBot bot) { + this.bot = bot; + } + + + public UpdateBotByIdResponse botCallbackUrl(String botCallbackUrl) { + this.botCallbackUrl = botCallbackUrl; + return this; + } + + /** + * Get botCallbackUrl + * @return botCallbackUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBotCallbackUrl() { + return botCallbackUrl; + } + + + @JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotCallbackUrl(String botCallbackUrl) { + this.botCallbackUrl = botCallbackUrl; + } + + + public UpdateBotByIdResponse enableMarkAsRead(Boolean enableMarkAsRead) { + this.enableMarkAsRead = enableMarkAsRead; + return this; + } + + /** + * Get enableMarkAsRead + * @return enableMarkAsRead + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getEnableMarkAsRead() { + return enableMarkAsRead; + } + + + @JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEnableMarkAsRead(Boolean enableMarkAsRead) { + this.enableMarkAsRead = enableMarkAsRead; + } + + + public UpdateBotByIdResponse isPrivacyMode(Boolean isPrivacyMode) { + this.isPrivacyMode = isPrivacyMode; + return this; + } + + /** + * Get isPrivacyMode + * @return isPrivacyMode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsPrivacyMode() { + return isPrivacyMode; + } + + + @JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsPrivacyMode(Boolean isPrivacyMode) { + this.isPrivacyMode = isPrivacyMode; + } + + + public UpdateBotByIdResponse showMember(Boolean showMember) { + this.showMember = showMember; + return this; + } + + /** + * Get showMember + * @return showMember + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHOW_MEMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getShowMember() { + return showMember; + } + + + @JsonProperty(JSON_PROPERTY_SHOW_MEMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setShowMember(Boolean showMember) { + this.showMember = showMember; + } + + + public UpdateBotByIdResponse channelInvitationPreference(Integer channelInvitationPreference) { + this.channelInvitationPreference = channelInvitationPreference; + return this; + } + + /** + * Get channelInvitationPreference + * @return channelInvitationPreference + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getChannelInvitationPreference() { + return channelInvitationPreference; + } + + + @JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setChannelInvitationPreference(Integer channelInvitationPreference) { + this.channelInvitationPreference = channelInvitationPreference; + } + + + /** + * Return true if this updateBotByIdResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateBotByIdResponse updateBotByIdResponse = (UpdateBotByIdResponse) o; + return Objects.equals(this.bot, updateBotByIdResponse.bot) && + Objects.equals(this.botCallbackUrl, updateBotByIdResponse.botCallbackUrl) && + Objects.equals(this.enableMarkAsRead, updateBotByIdResponse.enableMarkAsRead) && + Objects.equals(this.isPrivacyMode, updateBotByIdResponse.isPrivacyMode) && + Objects.equals(this.showMember, updateBotByIdResponse.showMember) && + Objects.equals(this.channelInvitationPreference, updateBotByIdResponse.channelInvitationPreference); + } + + @Override + public int hashCode() { + return Objects.hash(bot, botCallbackUrl, enableMarkAsRead, isPrivacyMode, showMember, channelInvitationPreference); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBotByIdResponse {\n"); + sb.append(" bot: ").append(toIndentedString(bot)).append("\n"); + sb.append(" botCallbackUrl: ").append(toIndentedString(botCallbackUrl)).append("\n"); + sb.append(" enableMarkAsRead: ").append(toIndentedString(enableMarkAsRead)).append("\n"); + sb.append(" isPrivacyMode: ").append(toIndentedString(isPrivacyMode)).append("\n"); + sb.append(" showMember: ").append(toIndentedString(showMember)).append("\n"); + sb.append(" channelInvitationPreference: ").append(toIndentedString(channelInvitationPreference)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceRequest.java b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceRequest.java index 4ec0b713..a33417b4 100644 --- a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceRequest.java @@ -35,7 +35,7 @@ UpdateChannelInvitationPreferenceRequest.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("updateChannelInvitationPreference_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateChannelInvitationPreferenceRequest { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java index 87e77d9b..0ae94a64 100644 --- a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java @@ -35,7 +35,7 @@ UpdateChannelInvitationPreferenceResponse.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("updateChannelInvitationPreferenceResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateChannelInvitationPreferenceResponse { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfAChannelRequest.java b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfAChannelRequest.java index a2704f0d..df5333c0 100644 --- a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfAChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfAChannelRequest.java @@ -35,7 +35,7 @@ UpdateCountPreferenceOfAChannelRequest.JSON_PROPERTY_COUNT_PREFERENCE }) @JsonTypeName("updateCountPreferenceOfAChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateCountPreferenceOfAChannelRequest { /** * Gets or Sets countPreference diff --git a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java index b5a724fb..e1312f0e 100644 --- a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java @@ -35,7 +35,7 @@ UpdateCountPreferenceOfChannelByUrlResponse.JSON_PROPERTY_COUNT_PREFERENCE }) @JsonTypeName("updateCountPreferenceOfChannelByUrlResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateCountPreferenceOfChannelByUrlResponse { /** * Gets or Sets countPreference diff --git a/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageRequest.java b/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageRequest.java index 9b8089dd..3f405236 100644 --- a/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageRequest.java @@ -40,7 +40,7 @@ UpdateExtraDataInAMessageRequest.JSON_PROPERTY_UPSERT }) @JsonTypeName("updateExtraDataInAMessage_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateExtraDataInAMessageRequest { public static final String JSON_PROPERTY_MODE = "mode"; private String mode; diff --git a/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageResponse.java b/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageResponse.java index 8e284281..2d9b3f8f 100644 --- a/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateExtraDataInAMessageResponse.java @@ -38,7 +38,7 @@ UpdateExtraDataInAMessageResponse.JSON_PROPERTY_SORTED_METAARRAY }) @JsonTypeName("updateExtraDataInAMessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdateExtraDataInAMessageResponse { public static final String JSON_PROPERTY_SORTED_METAARRAY = "sorted_metaarray"; private List sortedMetaarray = null; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelRequest.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelRequest.java index b2b052e1..0bfd4e33 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelRequest.java @@ -36,7 +36,7 @@ UpdatePushPreferencesForAChannelRequest.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("updatePushPreferencesForAChannel_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdatePushPreferencesForAChannelRequest { /** * The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: - default (default): Indicates that a user's notifications trigger setting applies to the specified channel. - all: Indicates that a user receives notifications for all new messages. - mention_only: Indicates that a user only receives notifications for mentioned messages. - off: Indicates that a user doesn't receive any notifications. diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelResponse.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelResponse.java index de6f7aad..e03f1112 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForAChannelResponse.java @@ -38,7 +38,7 @@ UpdatePushPreferencesForAChannelResponse.JSON_PROPERTY_PUSH_TRIGGER_OPTION }) @JsonTypeName("updatePushPreferencesForAChannelResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdatePushPreferencesForAChannelResponse { public static final String JSON_PROPERTY_ENABLE = "enable"; private Boolean enable; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesRequest.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesRequest.java index 51e4fb9f..1a9fddbd 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesRequest.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesRequest.java @@ -51,7 +51,7 @@ UpdatePushPreferencesRequest.JSON_PROPERTY_TIMEZONE }) @JsonTypeName("updatePushPreferences_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdatePushPreferencesRequest { public static final String JSON_PROPERTY_BLOCK_PUSH_FROM_BOTS = "block_push_from_bots"; private Boolean blockPushFromBots; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java index e877d846..3c23b92d 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java @@ -51,7 +51,7 @@ UpdatePushPreferencesResponse.JSON_PROPERTY_TIMEZONE }) @JsonTypeName("updatePushPreferencesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UpdatePushPreferencesResponse { public static final String JSON_PROPERTY_BLOCK_PUSH_FROM_BOTS = "block_push_from_bots"; private Boolean blockPushFromBots; diff --git a/src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java b/src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java new file mode 100644 index 00000000..310ad98e --- /dev/null +++ b/src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java @@ -0,0 +1,274 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.ViewBotByIdResponseBot; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + + +/** + * ViewBotByIdResponse + */ +@JsonPropertyOrder({ + ViewBotByIdResponse.JSON_PROPERTY_BOT, + ViewBotByIdResponse.JSON_PROPERTY_BOT_CALLBACK_URL, + ViewBotByIdResponse.JSON_PROPERTY_ENABLE_MARK_AS_READ, + ViewBotByIdResponse.JSON_PROPERTY_IS_PRIVACY_MODE, + ViewBotByIdResponse.JSON_PROPERTY_SHOW_MEMBER, + ViewBotByIdResponse.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE +}) +@JsonTypeName("viewBotByIdResponse") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +public class ViewBotByIdResponse { + public static final String JSON_PROPERTY_BOT = "bot"; + private ViewBotByIdResponseBot bot; + + public static final String JSON_PROPERTY_BOT_CALLBACK_URL = "bot_callback_url"; + private String botCallbackUrl; + + public static final String JSON_PROPERTY_ENABLE_MARK_AS_READ = "enable_mark_as_read"; + private Boolean enableMarkAsRead; + + public static final String JSON_PROPERTY_IS_PRIVACY_MODE = "is_privacy_mode"; + private Boolean isPrivacyMode; + + public static final String JSON_PROPERTY_SHOW_MEMBER = "show_member"; + private Boolean showMember; + + public static final String JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE = "channel_invitation_preference"; + private Integer channelInvitationPreference; + + public ViewBotByIdResponse() { + } + + public ViewBotByIdResponse bot(ViewBotByIdResponseBot bot) { + this.bot = bot; + return this; + } + + /** + * Get bot + * @return bot + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ViewBotByIdResponseBot getBot() { + return bot; + } + + + @JsonProperty(JSON_PROPERTY_BOT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBot(ViewBotByIdResponseBot bot) { + this.bot = bot; + } + + + public ViewBotByIdResponse botCallbackUrl(String botCallbackUrl) { + this.botCallbackUrl = botCallbackUrl; + return this; + } + + /** + * Get botCallbackUrl + * @return botCallbackUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBotCallbackUrl() { + return botCallbackUrl; + } + + + @JsonProperty(JSON_PROPERTY_BOT_CALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotCallbackUrl(String botCallbackUrl) { + this.botCallbackUrl = botCallbackUrl; + } + + + public ViewBotByIdResponse enableMarkAsRead(Boolean enableMarkAsRead) { + this.enableMarkAsRead = enableMarkAsRead; + return this; + } + + /** + * Get enableMarkAsRead + * @return enableMarkAsRead + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getEnableMarkAsRead() { + return enableMarkAsRead; + } + + + @JsonProperty(JSON_PROPERTY_ENABLE_MARK_AS_READ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEnableMarkAsRead(Boolean enableMarkAsRead) { + this.enableMarkAsRead = enableMarkAsRead; + } + + + public ViewBotByIdResponse isPrivacyMode(Boolean isPrivacyMode) { + this.isPrivacyMode = isPrivacyMode; + return this; + } + + /** + * Get isPrivacyMode + * @return isPrivacyMode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsPrivacyMode() { + return isPrivacyMode; + } + + + @JsonProperty(JSON_PROPERTY_IS_PRIVACY_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsPrivacyMode(Boolean isPrivacyMode) { + this.isPrivacyMode = isPrivacyMode; + } + + + public ViewBotByIdResponse showMember(Boolean showMember) { + this.showMember = showMember; + return this; + } + + /** + * Get showMember + * @return showMember + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHOW_MEMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getShowMember() { + return showMember; + } + + + @JsonProperty(JSON_PROPERTY_SHOW_MEMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setShowMember(Boolean showMember) { + this.showMember = showMember; + } + + + public ViewBotByIdResponse channelInvitationPreference(Integer channelInvitationPreference) { + this.channelInvitationPreference = channelInvitationPreference; + return this; + } + + /** + * Get channelInvitationPreference + * @return channelInvitationPreference + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getChannelInvitationPreference() { + return channelInvitationPreference; + } + + + @JsonProperty(JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setChannelInvitationPreference(Integer channelInvitationPreference) { + this.channelInvitationPreference = channelInvitationPreference; + } + + + /** + * Return true if this viewBotByIdResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewBotByIdResponse viewBotByIdResponse = (ViewBotByIdResponse) o; + return Objects.equals(this.bot, viewBotByIdResponse.bot) && + Objects.equals(this.botCallbackUrl, viewBotByIdResponse.botCallbackUrl) && + Objects.equals(this.enableMarkAsRead, viewBotByIdResponse.enableMarkAsRead) && + Objects.equals(this.isPrivacyMode, viewBotByIdResponse.isPrivacyMode) && + Objects.equals(this.showMember, viewBotByIdResponse.showMember) && + Objects.equals(this.channelInvitationPreference, viewBotByIdResponse.channelInvitationPreference); + } + + @Override + public int hashCode() { + return Objects.hash(bot, botCallbackUrl, enableMarkAsRead, isPrivacyMode, showMember, channelInvitationPreference); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewBotByIdResponse {\n"); + sb.append(" bot: ").append(toIndentedString(bot)).append("\n"); + sb.append(" botCallbackUrl: ").append(toIndentedString(botCallbackUrl)).append("\n"); + sb.append(" enableMarkAsRead: ").append(toIndentedString(enableMarkAsRead)).append("\n"); + sb.append(" isPrivacyMode: ").append(toIndentedString(isPrivacyMode)).append("\n"); + sb.append(" showMember: ").append(toIndentedString(showMember)).append("\n"); + sb.append(" channelInvitationPreference: ").append(toIndentedString(channelInvitationPreference)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/ViewBotByIdResponseBot.java b/src/main/java/org/openapitools/client/model/ViewBotByIdResponseBot.java new file mode 100644 index 00000000..f51b6762 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/ViewBotByIdResponseBot.java @@ -0,0 +1,273 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.sendbird.client.JSON; + + +/** + * ViewBotByIdResponseBot + */ +@JsonPropertyOrder({ + ViewBotByIdResponseBot.JSON_PROPERTY_BOT_TOKEN, + ViewBotByIdResponseBot.JSON_PROPERTY_BOT_PROFILE_URL, + ViewBotByIdResponseBot.JSON_PROPERTY_BOT_USERID, + ViewBotByIdResponseBot.JSON_PROPERTY_BOT_NICKNAME, + ViewBotByIdResponseBot.JSON_PROPERTY_BOT_TYPE, + ViewBotByIdResponseBot.JSON_PROPERTY_BOT_METADATA +}) +@JsonTypeName("viewBotByIdResponse_bot") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") +public class ViewBotByIdResponseBot { + public static final String JSON_PROPERTY_BOT_TOKEN = "bot_token"; + private String botToken; + + public static final String JSON_PROPERTY_BOT_PROFILE_URL = "bot_profile_url"; + private String botProfileUrl; + + public static final String JSON_PROPERTY_BOT_USERID = "bot_userid"; + private String botUserid; + + public static final String JSON_PROPERTY_BOT_NICKNAME = "bot_nickname"; + private String botNickname; + + public static final String JSON_PROPERTY_BOT_TYPE = "bot_type"; + private String botType; + + public static final String JSON_PROPERTY_BOT_METADATA = "bot_metadata"; + private Object botMetadata; + + public ViewBotByIdResponseBot() { + } + + public ViewBotByIdResponseBot botToken(String botToken) { + this.botToken = botToken; + return this; + } + + /** + * Get botToken + * @return botToken + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBotToken() { + return botToken; + } + + + @JsonProperty(JSON_PROPERTY_BOT_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotToken(String botToken) { + this.botToken = botToken; + } + + + public ViewBotByIdResponseBot botProfileUrl(String botProfileUrl) { + this.botProfileUrl = botProfileUrl; + return this; + } + + /** + * Get botProfileUrl + * @return botProfileUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_PROFILE_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBotProfileUrl() { + return botProfileUrl; + } + + + @JsonProperty(JSON_PROPERTY_BOT_PROFILE_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotProfileUrl(String botProfileUrl) { + this.botProfileUrl = botProfileUrl; + } + + + public ViewBotByIdResponseBot botUserid(String botUserid) { + this.botUserid = botUserid; + return this; + } + + /** + * Get botUserid + * @return botUserid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_USERID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBotUserid() { + return botUserid; + } + + + @JsonProperty(JSON_PROPERTY_BOT_USERID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotUserid(String botUserid) { + this.botUserid = botUserid; + } + + + public ViewBotByIdResponseBot botNickname(String botNickname) { + this.botNickname = botNickname; + return this; + } + + /** + * Get botNickname + * @return botNickname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_NICKNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBotNickname() { + return botNickname; + } + + + @JsonProperty(JSON_PROPERTY_BOT_NICKNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotNickname(String botNickname) { + this.botNickname = botNickname; + } + + + public ViewBotByIdResponseBot botType(String botType) { + this.botType = botType; + return this; + } + + /** + * Get botType + * @return botType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBotType() { + return botType; + } + + + @JsonProperty(JSON_PROPERTY_BOT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotType(String botType) { + this.botType = botType; + } + + + public ViewBotByIdResponseBot botMetadata(Object botMetadata) { + this.botMetadata = botMetadata; + return this; + } + + /** + * Get botMetadata + * @return botMetadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BOT_METADATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getBotMetadata() { + return botMetadata; + } + + + @JsonProperty(JSON_PROPERTY_BOT_METADATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBotMetadata(Object botMetadata) { + this.botMetadata = botMetadata; + } + + + /** + * Return true if this viewBotByIdResponse_bot object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewBotByIdResponseBot viewBotByIdResponseBot = (ViewBotByIdResponseBot) o; + return Objects.equals(this.botToken, viewBotByIdResponseBot.botToken) && + Objects.equals(this.botProfileUrl, viewBotByIdResponseBot.botProfileUrl) && + Objects.equals(this.botUserid, viewBotByIdResponseBot.botUserid) && + Objects.equals(this.botNickname, viewBotByIdResponseBot.botNickname) && + Objects.equals(this.botType, viewBotByIdResponseBot.botType) && + Objects.equals(this.botMetadata, viewBotByIdResponseBot.botMetadata); + } + + @Override + public int hashCode() { + return Objects.hash(botToken, botProfileUrl, botUserid, botNickname, botType, botMetadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewBotByIdResponseBot {\n"); + sb.append(" botToken: ").append(toIndentedString(botToken)).append("\n"); + sb.append(" botProfileUrl: ").append(toIndentedString(botProfileUrl)).append("\n"); + sb.append(" botUserid: ").append(toIndentedString(botUserid)).append("\n"); + sb.append(" botNickname: ").append(toIndentedString(botNickname)).append("\n"); + sb.append(" botType: ").append(toIndentedString(botType)).append("\n"); + sb.append(" botMetadata: ").append(toIndentedString(botMetadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfAChannelResponse.java b/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfAChannelResponse.java index e2c6576a..72c44117 100644 --- a/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfAChannelResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfAChannelResponse.java @@ -35,7 +35,7 @@ ViewCountPreferenceOfAChannelResponse.JSON_PROPERTY_COUNT_PREFERENCE }) @JsonTypeName("viewCountPreferenceOfAChannelResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ViewCountPreferenceOfAChannelResponse { /** * Gets or Sets countPreference diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java index 8d65024a..fb60a1c5 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java @@ -35,7 +35,7 @@ ViewNumberOfChannelsWithUnreadMessagesResponse.JSON_PROPERTY_UNREAD_COUNT }) @JsonTypeName("viewNumberOfChannelsWithUnreadMessagesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ViewNumberOfChannelsWithUnreadMessagesResponse { public static final String JSON_PROPERTY_UNREAD_COUNT = "unread_count"; private Integer unreadCount; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java index e4dd7ce9..8b70d6e8 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java @@ -35,7 +35,7 @@ ViewNumberOfDailyActiveUsersResponse.JSON_PROPERTY_DAU }) @JsonTypeName("viewNumberOfDailyActiveUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ViewNumberOfDailyActiveUsersResponse { public static final String JSON_PROPERTY_DAU = "dau"; private Integer dau; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java index 0388523a..31a8d0e9 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java @@ -35,7 +35,7 @@ ViewNumberOfMonthlyActiveUsersResponse.JSON_PROPERTY_MAU }) @JsonTypeName("viewNumberOfMonthlyActiveUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ViewNumberOfMonthlyActiveUsersResponse { public static final String JSON_PROPERTY_MAU = "mau"; private Integer mau; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java index 431beabc..bb2484a0 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java @@ -35,7 +35,7 @@ ViewNumberOfUnreadMessagesResponse.JSON_PROPERTY_UNREAD_COUNT }) @JsonTypeName("viewNumberOfUnreadMessagesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ViewNumberOfUnreadMessagesResponse { public static final String JSON_PROPERTY_UNREAD_COUNT = "unread_count"; private Integer unreadCount; diff --git a/src/main/java/org/openapitools/client/model/ViewPushPreferencesForAChannelResponse.java b/src/main/java/org/openapitools/client/model/ViewPushPreferencesForAChannelResponse.java index 7f19a67e..a324320e 100644 --- a/src/main/java/org/openapitools/client/model/ViewPushPreferencesForAChannelResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewPushPreferencesForAChannelResponse.java @@ -38,7 +38,7 @@ ViewPushPreferencesForAChannelResponse.JSON_PROPERTY_PUSH_TRIGGER_OPTION }) @JsonTypeName("viewPushPreferencesForAChannelResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ViewPushPreferencesForAChannelResponse { public static final String JSON_PROPERTY_ENABLE = "enable"; private Boolean enable; diff --git a/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java b/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java index d2385cd9..1ae27750 100644 --- a/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java @@ -51,7 +51,7 @@ ViewPushPreferencesResponse.JSON_PROPERTY_TIMEZONE }) @JsonTypeName("viewPushPreferencesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ViewPushPreferencesResponse { public static final String JSON_PROPERTY_BLOCK_PUSH_FROM_BOTS = "block_push_from_bots"; private Boolean blockPushFromBots; diff --git a/src/main/java/org/sendbird/client/ApiClient.java b/src/main/java/org/sendbird/client/ApiClient.java index 11388a21..b17501c9 100644 --- a/src/main/java/org/sendbird/client/ApiClient.java +++ b/src/main/java/org/sendbird/client/ApiClient.java @@ -66,7 +66,7 @@ /** *

ApiClient class.

*/ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ApiClient extends JavaTimeFormatter { protected Map defaultHeaderMap = new HashMap(); protected Map defaultCookieMap = new HashMap(); @@ -127,7 +127,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.0.0/java"); + setUserAgent("OpenAPI-Generator/2.1.1/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/src/main/java/org/sendbird/client/ApiException.java b/src/main/java/org/sendbird/client/ApiException.java index 5dc5e014..083c12b6 100644 --- a/src/main/java/org/sendbird/client/ApiException.java +++ b/src/main/java/org/sendbird/client/ApiException.java @@ -19,7 +19,7 @@ /** * API Exception */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/sendbird/client/Configuration.java b/src/main/java/org/sendbird/client/Configuration.java index 945ad37e..a3d01cc2 100644 --- a/src/main/java/org/sendbird/client/Configuration.java +++ b/src/main/java/org/sendbird/client/Configuration.java @@ -13,7 +13,7 @@ package org.sendbird.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/org/sendbird/client/JSON.java b/src/main/java/org/sendbird/client/JSON.java index af6392c7..c3423f15 100644 --- a/src/main/java/org/sendbird/client/JSON.java +++ b/src/main/java/org/sendbird/client/JSON.java @@ -15,7 +15,7 @@ import javax.ws.rs.core.GenericType; import javax.ws.rs.ext.ContextResolver; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class JSON implements ContextResolver { private ObjectMapper mapper; diff --git a/src/main/java/org/sendbird/client/JSON.java-e b/src/main/java/org/sendbird/client/JSON.java-e deleted file mode 100644 index 24699203..00000000 --- a/src/main/java/org/sendbird/client/JSON.java-e +++ /dev/null @@ -1,249 +0,0 @@ -package org.sendbird.client; - -import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import org.openapitools.jackson.nullable.JsonNullableModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import org.openapitools.client.model.*; - -import java.text.DateFormat; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.ext.ContextResolver; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") -public class JSON implements ContextResolver { - private ObjectMapper mapper; - - public JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.setDateFormat(new RFC3339DateFormat()); - mapper.registerModule(new JavaTimeModule()); - JsonNullableModule jnm = new JsonNullableModule(); - mapper.registerModule(jnm); - } - - /** - * Set the date format for JSON (de)serialization with Date properties. - * @param dateFormat Date format - */ - public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); - } - - @Override - public ObjectMapper getContext(Class type) { - return mapper; - } - - /** - * Get the object mapper - * - * @return object mapper - */ - public ObjectMapper getMapper() { return mapper; } - - /** - * Returns the target model class that should be used to deserialize the input data. - * The discriminator mappings are used to determine the target model class. - * - * @param node The input data. - * @param modelClass The class that contains the discriminator mappings. - */ - public static Class getClassForElement(JsonNode node, Class modelClass) { - ClassDiscriminatorMapping cdm = modelDiscriminators.get(modelClass); - if (cdm != null) { - return cdm.getClassForElement(node, new HashSet>()); - } - return null; - } - - /** - * Helper class to register the discriminator mappings. - */ - private static class ClassDiscriminatorMapping { - // The model class name. - Class modelClass; - // The name of the discriminator property. - String discriminatorName; - // The discriminator mappings for a model class. - Map> discriminatorMappings; - - // Constructs a new class discriminator. - ClassDiscriminatorMapping(Class cls, String propertyName, Map> mappings) { - modelClass = cls; - discriminatorName = propertyName; - discriminatorMappings = new HashMap>(); - if (mappings != null) { - discriminatorMappings.putAll(mappings); - } - } - - // Return the name of the discriminator property for this model class. - String getDiscriminatorPropertyName() { - return discriminatorName; - } - - // Return the discriminator value or null if the discriminator is not - // present in the payload. - String getDiscriminatorValue(JsonNode node) { - // Determine the value of the discriminator property in the input data. - if (discriminatorName != null) { - // Get the value of the discriminator property, if present in the input payload. - node = node.get(discriminatorName); - if (node != null && node.isValueNode()) { - String discrValue = node.asText(); - if (discrValue != null) { - return discrValue; - } - } - } - return null; - } - - /** - * Returns the target model class that should be used to deserialize the input data. - * This function can be invoked for anyOf/oneOf composed models with discriminator mappings. - * The discriminator mappings are used to determine the target model class. - * - * @param node The input data. - * @param visitedClasses The set of classes that have already been visited. - */ - Class getClassForElement(JsonNode node, Set> visitedClasses) { - if (visitedClasses.contains(modelClass)) { - // Class has already been visited. - return null; - } - // Determine the value of the discriminator property in the input data. - String discrValue = getDiscriminatorValue(node); - if (discrValue == null) { - return null; - } - Class cls = discriminatorMappings.get(discrValue); - // It may not be sufficient to return this cls directly because that target class - // may itself be a composed schema, possibly with its own discriminator. - visitedClasses.add(modelClass); - for (Class childClass : discriminatorMappings.values()) { - ClassDiscriminatorMapping childCdm = modelDiscriminators.get(childClass); - if (childCdm == null) { - continue; - } - if (!discriminatorName.equals(childCdm.discriminatorName)) { - discrValue = getDiscriminatorValue(node); - if (discrValue == null) { - continue; - } - } - if (childCdm != null) { - // Recursively traverse the discriminator mappings. - Class childDiscr = childCdm.getClassForElement(node, visitedClasses); - if (childDiscr != null) { - return childDiscr; - } - } - } - return cls; - } - } - - /** - * Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy. - * - * The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy, - * so it's not possible to use the instanceof keyword. - * - * @param modelClass A OpenAPI model class. - * @param inst The instance object. - */ - public static boolean isInstanceOf(Class modelClass, Object inst, Set> visitedClasses) { - if (modelClass.isInstance(inst)) { - // This handles the 'allOf' use case with single parent inheritance. - return true; - } - if (visitedClasses.contains(modelClass)) { - // This is to prevent infinite recursion when the composed schemas have - // a circular dependency. - return false; - } - visitedClasses.add(modelClass); - - // Traverse the oneOf/anyOf composed schemas. - Map descendants = modelDescendants.get(modelClass); - if (descendants != null) { - for (GenericType childType : descendants.values()) { - if (isInstanceOf(childType.getRawType(), inst, visitedClasses)) { - return true; - } - } - } - return false; - } - - /** - * A map of discriminators for all model classes. - */ - private static Map, ClassDiscriminatorMapping> modelDiscriminators = new HashMap, ClassDiscriminatorMapping>(); - - /** - * A map of oneOf/anyOf descendants for each model class. - */ - private static Map, Map> modelDescendants = new HashMap, Map>(); - - /** - * Register a model class discriminator. - * - * @param modelClass the model class - * @param discriminatorPropertyName the name of the discriminator property - * @param mappings a map with the discriminator mappings. - */ - public static void registerDiscriminator(Class modelClass, String discriminatorPropertyName, Map> mappings) { - ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings); - modelDiscriminators.put(modelClass, m); - } - - /** - * Register the oneOf/anyOf descendants of the modelClass. - * - * @param modelClass the model class - * @param descendants a map of oneOf/anyOf descendants. - */ - public static void registerDescendants(Class modelClass, Map descendants) { - modelDescendants.put(modelClass, descendants); - } - - private static JSON json; - - static - { - json = new JSON(); - } - - /** - * Get the default JSON instance. - * - * @return the default JSON instance - */ - public static JSON getDefault() { - return json; - } - - /** - * Set the default JSON instance. - * - * @param json JSON instance to be used - */ - public static void setDefault(JSON json) { - JSON.json = json; - } -} diff --git a/src/main/java/org/sendbird/client/JavaTimeFormatter.java b/src/main/java/org/sendbird/client/JavaTimeFormatter.java index 1f145862..3371adb3 100644 --- a/src/main/java/org/sendbird/client/JavaTimeFormatter.java +++ b/src/main/java/org/sendbird/client/JavaTimeFormatter.java @@ -20,7 +20,7 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class JavaTimeFormatter { private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; diff --git a/src/main/java/org/sendbird/client/Pair.java b/src/main/java/org/sendbird/client/Pair.java index 1bbdb70d..93b4a925 100644 --- a/src/main/java/org/sendbird/client/Pair.java +++ b/src/main/java/org/sendbird/client/Pair.java @@ -13,7 +13,7 @@ package org.sendbird.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/sendbird/client/StringUtil.java b/src/main/java/org/sendbird/client/StringUtil.java index fa5d748c..dda0cf4b 100644 --- a/src/main/java/org/sendbird/client/StringUtil.java +++ b/src/main/java/org/sendbird/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/sendbird/client/api/AnnouncementApi.java b/src/main/java/org/sendbird/client/api/AnnouncementApi.java index 2dbec14c..128835e0 100644 --- a/src/main/java/org/sendbird/client/api/AnnouncementApi.java +++ b/src/main/java/org/sendbird/client/api/AnnouncementApi.java @@ -16,7 +16,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class AnnouncementApi { private ApiClient apiClient; diff --git a/src/main/java/org/sendbird/client/api/BotApi.java b/src/main/java/org/sendbird/client/api/BotApi.java index a7c2bc7b..9b83cc9d 100644 --- a/src/main/java/org/sendbird/client/api/BotApi.java +++ b/src/main/java/org/sendbird/client/api/BotApi.java @@ -8,20 +8,26 @@ import javax.ws.rs.core.GenericType; +import java.math.BigDecimal; import org.openapitools.client.model.CreateABotRequest; import org.openapitools.client.model.CreateABotResponse; +import java.io.File; import org.openapitools.client.model.JoinChannelsRequest; import org.openapitools.client.model.ListBotsResponse; -import org.openapitools.client.model.SendABotMessageRequest; +import org.openapitools.client.model.SendABotMessageResponse; +import org.openapitools.client.model.SendbirdExtendedMessagePayload; import org.openapitools.client.model.SendbirdGroupChannelDetail; -import org.openapitools.client.model.SendbirdMessageResponse; +import org.openapitools.client.model.SendbirdSortedMetaarrayInner; +import org.openapitools.client.model.UpdateBotByIdData; +import org.openapitools.client.model.UpdateBotByIdResponse; +import org.openapitools.client.model.ViewBotByIdResponse; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class BotApi { private ApiClient apiClient; @@ -160,6 +166,112 @@ public APIcreateABotRequest createABot() throws ApiException { return new APIcreateABotRequest(); } +private ApiResponse deleteBotByIdWithHttpInfo(String botUserid, String apiToken) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'botUserid' is set + if (botUserid == null) { + throw new ApiException(400, "Missing the required parameter 'botUserid' when calling deleteBotById"); + } + + // create path and map variables + String localVarPath = "/v3/bots/{bot_userid}" + .replaceAll("\\{" + "bot_userid" + "\\}", apiClient.escapeString(botUserid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + if (apiToken != null) + localVarHeaderParams.put("Api-Token", apiClient.parameterToString(apiToken)); + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("BotApi.deleteBotById", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + + public class APIdeleteBotByIdRequest { + private String botUserid; + private String apiToken; + + private APIdeleteBotByIdRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (optional) + * @return APIdeleteBotByIdRequest + */ + public APIdeleteBotByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteBotById request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteBotById request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteBotByIdWithHttpInfo(botUserid, apiToken); + } + } + + /** + * Delete a bot + * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- + * @param botUserid (required) + * @return deleteBotByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIdeleteBotByIdRequest deleteBotById(String botUserid) throws ApiException { + return new APIdeleteBotByIdRequest(botUserid); + } + private ApiResponse joinChannelsWithHttpInfo(String botUserid, String apiToken, JoinChannelsRequest joinChannelsRequest) throws ApiException { Object localVarPostBody = joinChannelsRequest; @@ -619,14 +731,24 @@ public APIlistBotsRequest listBots() throws ApiException { return new APIlistBotsRequest(); } -private ApiResponse sendABotMessageWithHttpInfo(String botUserid, String apiToken, SendABotMessageRequest sendABotMessageRequest) throws ApiException { - Object localVarPostBody = sendABotMessageRequest; +private ApiResponse sendABotMessageWithHttpInfo(String botUserid, String messageType, String channelUrl, String apiToken, String message, List mentioned, SendbirdExtendedMessagePayload extendedMessagePayload, File _file, Boolean requireAuth, String mentionType, List mentionedUserIds, Boolean isSilent, List sortedMetaarray, String apnsBundleId, Object appleCriticalAlertOptions, String sound, BigDecimal volume, Long createdAt, String customType, String data, String dedupId, Boolean markAsRead, Boolean sendPush) throws ApiException { + Object localVarPostBody = null; // verify the required parameter 'botUserid' is set if (botUserid == null) { throw new ApiException(400, "Missing the required parameter 'botUserid' when calling sendABotMessage"); } + // verify the required parameter 'messageType' is set + if (messageType == null) { + throw new ApiException(400, "Missing the required parameter 'messageType' when calling sendABotMessage"); + } + + // verify the required parameter 'channelUrl' is set + if (channelUrl == null) { + throw new ApiException(400, "Missing the required parameter 'channelUrl' when calling sendABotMessage"); + } + // create path and map variables String localVarPath = "/v3/bots/{bot_userid}/send" .replaceAll("\\{" + "bot_userid" + "\\}", apiClient.escapeString(botUserid.toString())); @@ -642,20 +764,62 @@ private ApiResponse sendABotMessageWithHttpInfo(String localVarHeaderParams.put("api-token", apiClient.parameterToString(apiToken)); - + if (messageType != null) + localVarFormParams.put("message_type", messageType); +if (channelUrl != null) + localVarFormParams.put("channel_url", channelUrl); +if (message != null) + localVarFormParams.put("message", message); +if (mentioned != null) + localVarFormParams.put("mentioned", mentioned); +if (extendedMessagePayload != null) + localVarFormParams.put("extended_message_payload", extendedMessagePayload); +if (_file != null) + localVarFormParams.put("file", _file); +if (requireAuth != null) + localVarFormParams.put("require_auth", requireAuth); +if (mentionType != null) + localVarFormParams.put("mention_type", mentionType); +if (mentionedUserIds != null) + localVarFormParams.put("mentioned_user_ids", mentionedUserIds); +if (isSilent != null) + localVarFormParams.put("is_silent", isSilent); +if (sortedMetaarray != null) + localVarFormParams.put("sorted_metaarray", sortedMetaarray); +if (apnsBundleId != null) + localVarFormParams.put("apns_bundle_id", apnsBundleId); +if (appleCriticalAlertOptions != null) + localVarFormParams.put("apple_critical_alert_options", appleCriticalAlertOptions); +if (sound != null) + localVarFormParams.put("sound", sound); +if (volume != null) + localVarFormParams.put("volume", volume); +if (createdAt != null) + localVarFormParams.put("created_at", createdAt); +if (customType != null) + localVarFormParams.put("custom_type", customType); +if (data != null) + localVarFormParams.put("data", data); +if (dedupId != null) + localVarFormParams.put("dedup_id", dedupId); +if (markAsRead != null) + localVarFormParams.put("mark_as_read", markAsRead); +if (sendPush != null) + localVarFormParams.put("send_push", sendPush); + final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - "application/json" + "multipart/form-data" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("BotApi.sendABotMessage", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -664,13 +828,53 @@ private ApiResponse sendABotMessageWithHttpInfo(String public class APIsendABotMessageRequest { private String botUserid; + private String messageType; + private String channelUrl; private String apiToken; - private SendABotMessageRequest sendABotMessageRequest; + private String message; + private List mentioned; + private SendbirdExtendedMessagePayload extendedMessagePayload; + private File _file; + private Boolean requireAuth; + private String mentionType; + private List mentionedUserIds; + private Boolean isSilent; + private List sortedMetaarray; + private String apnsBundleId; + private Object appleCriticalAlertOptions; + private String sound; + private BigDecimal volume; + private Long createdAt; + private String customType; + private String data; + private String dedupId; + private Boolean markAsRead; + private Boolean sendPush; private APIsendABotMessageRequest(String botUserid) { this.botUserid = botUserid; } + /** + * Set messageType + * @param messageType Specifies the type of message to send. MESG for text message, FILE for file message. (required) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest messageType(String messageType) { + this.messageType = messageType; + return this; + } + + /** + * Set channelUrl + * @param channelUrl Specifies the URL of the channel to send the message to. (required) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest channelUrl(String channelUrl) { + this.channelUrl = channelUrl; + return this; + } + /** * Set apiToken * @param apiToken (optional) @@ -682,18 +886,198 @@ public APIsendABotMessageRequest apiToken(String apiToken) { } /** - * Set sendABotMessageRequest - * @param sendABotMessageRequest (optional) + * Set message + * @param message Specifies the content of the message. * This property is required when message_type is MESG. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest message(String message) { + this.message = message; + return this; + } + + /** + * Set mentioned + * @param mentioned * This property is available when message_type is MESG. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest mentioned(List mentioned) { + this.mentioned = mentioned; + return this; + } + + /** + * Set extendedMessagePayload + * @param extendedMessagePayload (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest extendedMessagePayload(SendbirdExtendedMessagePayload extendedMessagePayload) { + this.extendedMessagePayload = extendedMessagePayload; + return this; + } + + /** + * Set _file + * @param _file When sending a single file with a message, specifies the data of the file to upload to the Sendbird server in raw binary format. When sending a request containing a file, change the value of the content-type header to multipart/form-data;boundary={your_unique_boundary_string} in the request. * This property is required when message_type is FILE. * This doesn't allow a converted base64-encoded string from a file as its value. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest _file(File _file) { + this._file = _file; + return this; + } + + /** + * Set requireAuth + * @param requireAuth Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest requireAuth(Boolean requireAuth) { + this.requireAuth = requireAuth; + return this; + } + + /** + * Set mentionType + * @param mentionType * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest mentionType(String mentionType) { + this.mentionType = mentionType; + return this; + } + + /** + * Set mentionedUserIds + * @param mentionedUserIds * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest mentionedUserIds(List mentionedUserIds) { + this.mentionedUserIds = mentionedUserIds; + return this; + } + + /** + * Set isSilent + * @param isSilent * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest isSilent(Boolean isSilent) { + this.isSilent = isSilent; + return this; + } + + /** + * Set sortedMetaarray + * @param sortedMetaarray (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest sortedMetaarray(List sortedMetaarray) { + this.sortedMetaarray = sortedMetaarray; + return this; + } + + /** + * Set apnsBundleId + * @param apnsBundleId * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest apnsBundleId(String apnsBundleId) { + this.apnsBundleId = apnsBundleId; + return this; + } + + /** + * Set appleCriticalAlertOptions + * @param appleCriticalAlertOptions * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest appleCriticalAlertOptions(Object appleCriticalAlertOptions) { + this.appleCriticalAlertOptions = appleCriticalAlertOptions; + return this; + } + + /** + * Set sound + * @param sound * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest sound(String sound) { + this.sound = sound; + return this; + } + + /** + * Set volume + * @param volume * This property is available when message_type is FILE. (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest volume(BigDecimal volume) { + this.volume = volume; + return this; + } + + /** + * Set createdAt + * @param createdAt (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest createdAt(Long createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Set customType + * @param customType (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest customType(String customType) { + this.customType = customType; + return this; + } + + /** + * Set data + * @param data (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest data(String data) { + this.data = data; + return this; + } + + /** + * Set dedupId + * @param dedupId (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest dedupId(String dedupId) { + this.dedupId = dedupId; + return this; + } + + /** + * Set markAsRead + * @param markAsRead (optional) + * @return APIsendABotMessageRequest + */ + public APIsendABotMessageRequest markAsRead(Boolean markAsRead) { + this.markAsRead = markAsRead; + return this; + } + + /** + * Set sendPush + * @param sendPush (optional) * @return APIsendABotMessageRequest */ - public APIsendABotMessageRequest sendABotMessageRequest(SendABotMessageRequest sendABotMessageRequest) { - this.sendABotMessageRequest = sendABotMessageRequest; + public APIsendABotMessageRequest sendPush(Boolean sendPush) { + this.sendPush = sendPush; return this; } /** * Execute sendABotMessage request - * @return SendbirdMessageResponse + * @return SendABotMessageResponse * @throws ApiException if fails to make API call * @http.response.details @@ -703,13 +1087,13 @@ public APIsendABotMessageRequest sendABotMessageRequest(SendABotMessageRequest s */ - public SendbirdMessageResponse execute() throws ApiException { + public SendABotMessageResponse execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute sendABotMessage request with HTTP info returned - * @return ApiResponse<SendbirdMessageResponse> + * @return ApiResponse<SendABotMessageResponse> * @throws ApiException if fails to make API call * @http.response.details
@@ -718,8 +1102,8 @@ public SendbirdMessageResponse execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return sendABotMessageWithHttpInfo(botUserid, apiToken, sendABotMessageRequest); + public ApiResponse executeWithHttpInfo() throws ApiException { + return sendABotMessageWithHttpInfo(botUserid, messageType, channelUrl, apiToken, message, mentioned, extendedMessagePayload, _file, requireAuth, mentionType, mentionedUserIds, isSilent, sortedMetaarray, apnsBundleId, appleCriticalAlertOptions, sound, volume, createdAt, customType, data, dedupId, markAsRead, sendPush); } } @@ -735,4 +1119,227 @@ public ApiResponse executeWithHttpInfo() throws ApiExce public APIsendABotMessageRequest sendABotMessage(String botUserid) throws ApiException { return new APIsendABotMessageRequest(botUserid); } + +private ApiResponse updateBotByIdWithHttpInfo(String botUserid, String apiToken, UpdateBotByIdData updateBotByIdData) throws ApiException { + Object localVarPostBody = updateBotByIdData; + + // verify the required parameter 'botUserid' is set + if (botUserid == null) { + throw new ApiException(400, "Missing the required parameter 'botUserid' when calling updateBotById"); + } + + // create path and map variables + String localVarPath = "/v3/bots/{bot_userid}" + .replaceAll("\\{" + "bot_userid" + "\\}", apiClient.escapeString(botUserid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + if (apiToken != null) + localVarHeaderParams.put("Api-Token", apiClient.parameterToString(apiToken)); + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("BotApi.updateBotById", localVarPath, "PUT", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + + public class APIupdateBotByIdRequest { + private String botUserid; + private String apiToken; + private UpdateBotByIdData updateBotByIdData; + + private APIupdateBotByIdRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (optional) + * @return APIupdateBotByIdRequest + */ + public APIupdateBotByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateBotByIdData + * @param updateBotByIdData (optional) + * @return APIupdateBotByIdRequest + */ + public APIupdateBotByIdRequest updateBotByIdData(UpdateBotByIdData updateBotByIdData) { + this.updateBotByIdData = updateBotByIdData; + return this; + } + + /** + * Execute updateBotById request + * @return UpdateBotByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateBotByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateBotById request with HTTP info returned + * @return ApiResponse<UpdateBotByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateBotByIdWithHttpInfo(botUserid, apiToken, updateBotByIdData); + } + } + + /** + * Update a bot + * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- + * @param botUserid (required) + * @return updateBotByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIupdateBotByIdRequest updateBotById(String botUserid) throws ApiException { + return new APIupdateBotByIdRequest(botUserid); + } + +private ApiResponse viewBotByIdWithHttpInfo(String botUserid, String apiToken) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'botUserid' is set + if (botUserid == null) { + throw new ApiException(400, "Missing the required parameter 'botUserid' when calling viewBotById"); + } + + // create path and map variables + String localVarPath = "/v3/bots/{bot_userid}" + .replaceAll("\\{" + "bot_userid" + "\\}", apiClient.escapeString(botUserid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + if (apiToken != null) + localVarHeaderParams.put("Api-Token", apiClient.parameterToString(apiToken)); + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("BotApi.viewBotById", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + + public class APIviewBotByIdRequest { + private String botUserid; + private String apiToken; + + private APIviewBotByIdRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (optional) + * @return APIviewBotByIdRequest + */ + public APIviewBotByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewBotById request + * @return ViewBotByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewBotByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewBotById request with HTTP info returned + * @return ApiResponse<ViewBotByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewBotByIdWithHttpInfo(botUserid, apiToken); + } + } + + /** + * View a bot + * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- + * @param botUserid (required) + * @return viewBotByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewBotByIdRequest viewBotById(String botUserid) throws ApiException { + return new APIviewBotByIdRequest(botUserid); + } } diff --git a/src/main/java/org/sendbird/client/api/GroupChannelApi.java b/src/main/java/org/sendbird/client/api/GroupChannelApi.java index 8b04fb29..eee64b10 100644 --- a/src/main/java/org/sendbird/client/api/GroupChannelApi.java +++ b/src/main/java/org/sendbird/client/api/GroupChannelApi.java @@ -32,7 +32,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class GroupChannelApi { private ApiClient apiClient; diff --git a/src/main/java/org/sendbird/client/api/MessageApi.java b/src/main/java/org/sendbird/client/api/MessageApi.java index c715e9b1..6461d401 100644 --- a/src/main/java/org/sendbird/client/api/MessageApi.java +++ b/src/main/java/org/sendbird/client/api/MessageApi.java @@ -25,7 +25,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MessageApi { private ApiClient apiClient; @@ -56,7 +56,7 @@ public void setApiClient(ApiClient apiClient) { } -private ApiResponse addExtraDataToAMessageWithHttpInfo(String channelType, String channelUrl, String messageId, String apiToken, AddExtraDataToAMessageRequest addExtraDataToAMessageRequest) throws ApiException { +private ApiResponse addExtraDataToAMessageWithHttpInfo(String channelType, String channelUrl, Long messageId, String apiToken, AddExtraDataToAMessageRequest addExtraDataToAMessageRequest) throws ApiException { Object localVarPostBody = addExtraDataToAMessageRequest; // verify the required parameter 'channelType' is set @@ -114,11 +114,11 @@ private ApiResponse addExtraDataToAMessageWithHt public class APIaddExtraDataToAMessageRequest { private String channelType; private String channelUrl; - private String messageId; + private Long messageId; private String apiToken; private AddExtraDataToAMessageRequest addExtraDataToAMessageRequest; - private APIaddExtraDataToAMessageRequest(String channelType, String channelUrl, String messageId) { + private APIaddExtraDataToAMessageRequest(String channelType, String channelUrl, Long messageId) { this.channelType = channelType; this.channelUrl = channelUrl; this.messageId = messageId; @@ -187,11 +187,11 @@ public ApiResponse executeWithHttpInfo() throws */ - public APIaddExtraDataToAMessageRequest addExtraDataToAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + public APIaddExtraDataToAMessageRequest addExtraDataToAMessage(String channelType, String channelUrl, Long messageId) throws ApiException { return new APIaddExtraDataToAMessageRequest(channelType, channelUrl, messageId); } -private ApiResponse deleteAMessageWithHttpInfo(String channelType, String channelUrl, String messageId, String apiToken) throws ApiException { +private ApiResponse deleteAMessageWithHttpInfo(String channelType, String channelUrl, Long messageId, String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'channelType' is set @@ -249,10 +249,10 @@ private ApiResponse deleteAMessageWithHttpInfo(String channelType, Strin public class APIdeleteAMessageRequest { private String channelType; private String channelUrl; - private String messageId; + private Long messageId; private String apiToken; - private APIdeleteAMessageRequest(String channelType, String channelUrl, String messageId) { + private APIdeleteAMessageRequest(String channelType, String channelUrl, Long messageId) { this.channelType = channelType; this.channelUrl = channelUrl; this.messageId = messageId; @@ -311,11 +311,11 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ - public APIdeleteAMessageRequest deleteAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + public APIdeleteAMessageRequest deleteAMessage(String channelType, String channelUrl, Long messageId) throws ApiException { return new APIdeleteAMessageRequest(channelType, channelUrl, messageId); } -private ApiResponse getAMessageWithHttpInfo(String channelType, String channelUrl, String messageId, Boolean includeReactions, Boolean includeThreadInfo, Boolean includeParentMessageInfo, Boolean includePollDetails, Boolean withSortedMetaArray, String apiToken) throws ApiException { +private ApiResponse getAMessageWithHttpInfo(String channelType, String channelUrl, Long messageId, Boolean includeReactions, Boolean includeThreadInfo, Boolean includeParentMessageInfo, Boolean includePollDetails, Boolean withSortedMetaArray, String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'channelType' is set @@ -378,7 +378,7 @@ private ApiResponse getAMessageWithHttpInfo(String chan public class APIgetAMessageRequest { private String channelType; private String channelUrl; - private String messageId; + private Long messageId; private Boolean includeReactions; private Boolean includeThreadInfo; private Boolean includeParentMessageInfo; @@ -386,7 +386,7 @@ public class APIgetAMessageRequest { private Boolean withSortedMetaArray; private String apiToken; - private APIgetAMessageRequest(String channelType, String channelUrl, String messageId) { + private APIgetAMessageRequest(String channelType, String channelUrl, Long messageId) { this.channelType = channelType; this.channelUrl = channelUrl; this.messageId = messageId; @@ -495,7 +495,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExce */ - public APIgetAMessageRequest getAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + public APIgetAMessageRequest getAMessage(String channelType, String channelUrl, Long messageId) throws ApiException { return new APIgetAMessageRequest(channelType, channelUrl, messageId); } @@ -1213,7 +1213,7 @@ public APImigrateMessagesRequest migrateMessages(String targetChannelUrl) throws return new APImigrateMessagesRequest(targetChannelUrl); } -private ApiResponse removeExtraDataFromAMessageWithHttpInfo(String channelType, String channelUrl, String messageId, String keys, String apiToken) throws ApiException { +private ApiResponse removeExtraDataFromAMessageWithHttpInfo(String channelType, String channelUrl, Long messageId, String keys, String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'channelType' is set @@ -1272,11 +1272,11 @@ private ApiResponse removeExtraDataFromAMessageWithHttpInfo(String chann public class APIremoveExtraDataFromAMessageRequest { private String channelType; private String channelUrl; - private String messageId; + private Long messageId; private String keys; private String apiToken; - private APIremoveExtraDataFromAMessageRequest(String channelType, String channelUrl, String messageId) { + private APIremoveExtraDataFromAMessageRequest(String channelType, String channelUrl, Long messageId) { this.channelType = channelType; this.channelUrl = channelUrl; this.messageId = messageId; @@ -1345,7 +1345,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ - public APIremoveExtraDataFromAMessageRequest removeExtraDataFromAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + public APIremoveExtraDataFromAMessageRequest removeExtraDataFromAMessage(String channelType, String channelUrl, Long messageId) throws ApiException { return new APIremoveExtraDataFromAMessageRequest(channelType, channelUrl, messageId); } @@ -1475,7 +1475,7 @@ public APIsendAMessageRequest sendAMessage(String channelType, String channelUrl return new APIsendAMessageRequest(channelType, channelUrl); } -private ApiResponse updateAMessageWithHttpInfo(String channelType, String channelUrl, String messageId, String apiToken, UpdateAMessageRequest updateAMessageRequest) throws ApiException { +private ApiResponse updateAMessageWithHttpInfo(String channelType, String channelUrl, Long messageId, String apiToken, UpdateAMessageRequest updateAMessageRequest) throws ApiException { Object localVarPostBody = updateAMessageRequest; // verify the required parameter 'channelType' is set @@ -1533,11 +1533,11 @@ private ApiResponse updateAMessageWithHttpInfo(String c public class APIupdateAMessageRequest { private String channelType; private String channelUrl; - private String messageId; + private Long messageId; private String apiToken; private UpdateAMessageRequest updateAMessageRequest; - private APIupdateAMessageRequest(String channelType, String channelUrl, String messageId) { + private APIupdateAMessageRequest(String channelType, String channelUrl, Long messageId) { this.channelType = channelType; this.channelUrl = channelUrl; this.messageId = messageId; @@ -1606,11 +1606,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExce */ - public APIupdateAMessageRequest updateAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + public APIupdateAMessageRequest updateAMessage(String channelType, String channelUrl, Long messageId) throws ApiException { return new APIupdateAMessageRequest(channelType, channelUrl, messageId); } -private ApiResponse updateExtraDataInAMessageWithHttpInfo(String channelType, String channelUrl, String messageId, String apiToken, UpdateExtraDataInAMessageRequest updateExtraDataInAMessageRequest) throws ApiException { +private ApiResponse updateExtraDataInAMessageWithHttpInfo(String channelType, String channelUrl, Long messageId, String apiToken, UpdateExtraDataInAMessageRequest updateExtraDataInAMessageRequest) throws ApiException { Object localVarPostBody = updateExtraDataInAMessageRequest; // verify the required parameter 'channelType' is set @@ -1668,11 +1668,11 @@ private ApiResponse updateExtraDataInAMessage public class APIupdateExtraDataInAMessageRequest { private String channelType; private String channelUrl; - private String messageId; + private Long messageId; private String apiToken; private UpdateExtraDataInAMessageRequest updateExtraDataInAMessageRequest; - private APIupdateExtraDataInAMessageRequest(String channelType, String channelUrl, String messageId) { + private APIupdateExtraDataInAMessageRequest(String channelType, String channelUrl, Long messageId) { this.channelType = channelType; this.channelUrl = channelUrl; this.messageId = messageId; @@ -1741,7 +1741,7 @@ public ApiResponse executeWithHttpInfo() thro */ - public APIupdateExtraDataInAMessageRequest updateExtraDataInAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + public APIupdateExtraDataInAMessageRequest updateExtraDataInAMessage(String channelType, String channelUrl, Long messageId) throws ApiException { return new APIupdateExtraDataInAMessageRequest(channelType, channelUrl, messageId); } } diff --git a/src/main/java/org/sendbird/client/api/MetadataApi.java b/src/main/java/org/sendbird/client/api/MetadataApi.java index 243119d3..f2314071 100644 --- a/src/main/java/org/sendbird/client/api/MetadataApi.java +++ b/src/main/java/org/sendbird/client/api/MetadataApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class MetadataApi { private ApiClient apiClient; diff --git a/src/main/java/org/sendbird/client/api/ModerationApi.java b/src/main/java/org/sendbird/client/api/ModerationApi.java index 8338dec1..098b3252 100644 --- a/src/main/java/org/sendbird/client/api/ModerationApi.java +++ b/src/main/java/org/sendbird/client/api/ModerationApi.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ModerationApi { private ApiClient apiClient; @@ -158,7 +158,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException /** * Block a user - * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) + * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated with the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) * @param userId (Required) (required) * @return blockAUserRequest * @throws ApiException if fails to make API call diff --git a/src/main/java/org/sendbird/client/api/OpenChannelApi.java b/src/main/java/org/sendbird/client/api/OpenChannelApi.java index 2d1d7022..18173c6b 100644 --- a/src/main/java/org/sendbird/client/api/OpenChannelApi.java +++ b/src/main/java/org/sendbird/client/api/OpenChannelApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class OpenChannelApi { private ApiClient apiClient; diff --git a/src/main/java/org/sendbird/client/api/StatisticsApi.java b/src/main/java/org/sendbird/client/api/StatisticsApi.java index 7feade35..d38a0ea5 100644 --- a/src/main/java/org/sendbird/client/api/StatisticsApi.java +++ b/src/main/java/org/sendbird/client/api/StatisticsApi.java @@ -16,7 +16,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class StatisticsApi { private ApiClient apiClient; diff --git a/src/main/java/org/sendbird/client/api/UserApi.java b/src/main/java/org/sendbird/client/api/UserApi.java index 95ad710a..ded9ec21 100644 --- a/src/main/java/org/sendbird/client/api/UserApi.java +++ b/src/main/java/org/sendbird/client/api/UserApi.java @@ -45,7 +45,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class UserApi { private ApiClient apiClient; diff --git a/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java b/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java index 4a67e1b0..342e9b81 100644 --- a/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java b/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java index 181d26fe..a9d2a7a5 100644 --- a/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java +++ b/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java b/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java index 0bf4bf54..81ab50e8 100644 --- a/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-16T11:20:47.026559+07:00[Asia/Jakarta]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-10-17T09:55:58.534222+09:00[Asia/Seoul]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/test/java/org/openapitools/client/model/AcceptAnInvitationRequestTest.java b/src/test/java/org/openapitools/client/model/AcceptAnInvitationRequestTest.java index 5f317ced..81de6d9c 100644 --- a/src/test/java/org/openapitools/client/model/AcceptAnInvitationRequestTest.java +++ b/src/test/java/org/openapitools/client/model/AcceptAnInvitationRequestTest.java @@ -20,6 +20,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/CreateABotResponseTest.java b/src/test/java/org/openapitools/client/model/CreateABotResponseTest.java index 8b8f6411..1d50851f 100644 --- a/src/test/java/org/openapitools/client/model/CreateABotResponseTest.java +++ b/src/test/java/org/openapitools/client/model/CreateABotResponseTest.java @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.CreateABotResponseBot; -import org.openapitools.client.model.CreateABotResponseBotStyle; +import org.openapitools.client.model.ListBotsResponseBotsInnerBotStyle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/CreateAGroupChannelRequestTest.java b/src/test/java/org/openapitools/client/model/CreateAGroupChannelRequestTest.java index 359c23cf..ab6c47a0 100644 --- a/src/test/java/org/openapitools/client/model/CreateAGroupChannelRequestTest.java +++ b/src/test/java/org/openapitools/client/model/CreateAGroupChannelRequestTest.java @@ -24,6 +24,10 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.SendbirdUser; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/CreateAUserRequestTest.java b/src/test/java/org/openapitools/client/model/CreateAUserRequestTest.java index c2d8bc57..9662a104 100644 --- a/src/test/java/org/openapitools/client/model/CreateAUserRequestTest.java +++ b/src/test/java/org/openapitools/client/model/CreateAUserRequestTest.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/GetAGroupChannelResponseTest.java b/src/test/java/org/openapitools/client/model/GetAGroupChannelResponseTest.java index 97e385f9..8d8e41a2 100644 --- a/src/test/java/org/openapitools/client/model/GetAGroupChannelResponseTest.java +++ b/src/test/java/org/openapitools/client/model/GetAGroupChannelResponseTest.java @@ -29,8 +29,8 @@ import org.openapitools.client.model.SendbirdDisappearingMessage; import org.openapitools.client.model.SendbirdGroupChannel; import org.openapitools.client.model.SendbirdGroupChannelDetailChannel; +import org.openapitools.client.model.SendbirdGroupChannelLastMessage; import org.openapitools.client.model.SendbirdMember; -import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdPushTriggerOption; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/src/test/java/org/openapitools/client/model/InviteAsMembersResponseTest.java b/src/test/java/org/openapitools/client/model/InviteAsMembersResponseTest.java index 02c6ea0d..d6dde7d0 100644 --- a/src/test/java/org/openapitools/client/model/InviteAsMembersResponseTest.java +++ b/src/test/java/org/openapitools/client/model/InviteAsMembersResponseTest.java @@ -28,8 +28,8 @@ import org.openapitools.client.model.SendbirdBasicUserInfo; import org.openapitools.client.model.SendbirdDisappearingMessage; import org.openapitools.client.model.SendbirdGroupChannel; +import org.openapitools.client.model.SendbirdGroupChannelLastMessage; import org.openapitools.client.model.SendbirdMember; -import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdPushTriggerOption; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.client.model.SendbirdUser; diff --git a/src/test/java/org/openapitools/client/model/JoinAChannelRequestTest.java b/src/test/java/org/openapitools/client/model/JoinAChannelRequestTest.java index fb226949..76c2578c 100644 --- a/src/test/java/org/openapitools/client/model/JoinAChannelRequestTest.java +++ b/src/test/java/org/openapitools/client/model/JoinAChannelRequestTest.java @@ -20,6 +20,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerAiTest.java b/src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerAiTest.java deleted file mode 100644 index 051e87ec..00000000 --- a/src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerAiTest.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Sendbird Platform SDK - * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ListBotsResponseBotsInnerAi - */ -public class ListBotsResponseBotsInnerAiTest { - private final ListBotsResponseBotsInnerAi model = new ListBotsResponseBotsInnerAi(); - - /** - * Model tests for ListBotsResponseBotsInnerAi - */ - @Test - public void testListBotsResponseBotsInnerAi() { - // TODO: test ListBotsResponseBotsInnerAi - } - - /** - * Test the property 'backend' - */ - @Test - public void backendTest() { - // TODO: test backend - } - - /** - * Test the property 'feedback' - */ - @Test - public void feedbackTest() { - // TODO: test feedback - } - - /** - * Test the property 'frequencyPenalty' - */ - @Test - public void frequencyPenaltyTest() { - // TODO: test frequencyPenalty - } - - /** - * Test the property 'instructionMode' - */ - @Test - public void instructionModeTest() { - // TODO: test instructionMode - } - - /** - * Test the property 'maxTokens' - */ - @Test - public void maxTokensTest() { - // TODO: test maxTokens - } - - /** - * Test the property 'model' - */ - @Test - public void modelTest() { - // TODO: test model - } - - /** - * Test the property 'presencePenalty' - */ - @Test - public void presencePenaltyTest() { - // TODO: test presencePenalty - } - - /** - * Test the property 'stream' - */ - @Test - public void streamTest() { - // TODO: test stream - } - - /** - * Test the property 'systemMessage' - */ - @Test - public void systemMessageTest() { - // TODO: test systemMessage - } - - /** - * Test the property 'systemMessageForContextPrefix' - */ - @Test - public void systemMessageForContextPrefixTest() { - // TODO: test systemMessageForContextPrefix - } - - /** - * Test the property 'temperature' - */ - @Test - public void temperatureTest() { - // TODO: test temperature - } - - /** - * Test the property 'topP' - */ - @Test - public void topPTest() { - // TODO: test topP - } - -} diff --git a/src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerTest.java b/src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerTest.java index 3539097a..fee12fc0 100644 --- a/src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerTest.java +++ b/src/test/java/org/openapitools/client/model/ListBotsResponseBotsInnerTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; -import org.openapitools.client.model.ListBotsResponseBotsInnerAi; import org.openapitools.client.model.ListBotsResponseBotsInnerBot; import org.openapitools.client.model.ListBotsResponseBotsInnerBotStyle; import org.openapitools.client.model.ListBotsResponseBotsInnerFirstMessagesInner; @@ -46,14 +45,6 @@ public void testListBotsResponseBotsInner() { // TODO: test ListBotsResponseBotsInner } - /** - * Test the property 'ai' - */ - @Test - public void aiTest() { - // TODO: test ai - } - /** * Test the property 'bot' */ diff --git a/src/test/java/org/openapitools/client/model/SendABotMessageRequestTest.java b/src/test/java/org/openapitools/client/model/SendABotMessageRequestTest.java deleted file mode 100644 index 06454bdd..00000000 --- a/src/test/java/org/openapitools/client/model/SendABotMessageRequestTest.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Sendbird Platform SDK - * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import org.openapitools.client.model.SendbirdExtendedMessagePayload; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for SendABotMessageRequest - */ -public class SendABotMessageRequestTest { - private final SendABotMessageRequest model = new SendABotMessageRequest(); - - /** - * Model tests for SendABotMessageRequest - */ - @Test - public void testSendABotMessageRequest() { - // TODO: test SendABotMessageRequest - } - - /** - * Test the property 'channelUrl' - */ - @Test - public void channelUrlTest() { - // TODO: test channelUrl - } - - /** - * Test the property 'createdAt' - */ - @Test - public void createdAtTest() { - // TODO: test createdAt - } - - /** - * Test the property 'customType' - */ - @Test - public void customTypeTest() { - // TODO: test customType - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'dedupId' - */ - @Test - public void dedupIdTest() { - // TODO: test dedupId - } - - /** - * Test the property 'extendedMessagePayload' - */ - @Test - public void extendedMessagePayloadTest() { - // TODO: test extendedMessagePayload - } - - /** - * Test the property 'markAsRead' - */ - @Test - public void markAsReadTest() { - // TODO: test markAsRead - } - - /** - * Test the property 'mentioned' - */ - @Test - public void mentionedTest() { - // TODO: test mentioned - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'sendPush' - */ - @Test - public void sendPushTest() { - // TODO: test sendPush - } - -} diff --git a/src/test/java/org/openapitools/client/model/SendABotMessageResponseTest.java b/src/test/java/org/openapitools/client/model/SendABotMessageResponseTest.java new file mode 100644 index 00000000..361c470d --- /dev/null +++ b/src/test/java/org/openapitools/client/model/SendABotMessageResponseTest.java @@ -0,0 +1,51 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.SendbirdMessageResponse; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SendABotMessageResponse + */ +public class SendABotMessageResponseTest { + private final SendABotMessageResponse model = new SendABotMessageResponse(); + + /** + * Model tests for SendABotMessageResponse + */ + @Test + public void testSendABotMessageResponse() { + // TODO: test SendABotMessageResponse + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + +} diff --git a/src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateOneOfTest.java b/src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOfTest.java similarity index 73% rename from src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateOneOfTest.java rename to src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOfTest.java index 93b5ea8a..ce39817c 100644 --- a/src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateOneOfTest.java +++ b/src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateOneOfTest.java @@ -26,17 +26,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for SendTextMessageRequestBodyPushMessageTemplateOneOf + * Model tests for SendAMessageRequestPushMessageTemplateOneOf */ -public class SendTextMessageRequestBodyPushMessageTemplateOneOfTest { - private final SendTextMessageRequestBodyPushMessageTemplateOneOf model = new SendTextMessageRequestBodyPushMessageTemplateOneOf(); +public class SendAMessageRequestPushMessageTemplateOneOfTest { + private final SendAMessageRequestPushMessageTemplateOneOf model = new SendAMessageRequestPushMessageTemplateOneOf(); /** - * Model tests for SendTextMessageRequestBodyPushMessageTemplateOneOf + * Model tests for SendAMessageRequestPushMessageTemplateOneOf */ @Test - public void testSendTextMessageRequestBodyPushMessageTemplateOneOf() { - // TODO: test SendTextMessageRequestBodyPushMessageTemplateOneOf + public void testSendAMessageRequestPushMessageTemplateOneOf() { + // TODO: test SendAMessageRequestPushMessageTemplateOneOf } /** diff --git a/src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateTest.java b/src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateTest.java new file mode 100644 index 00000000..728e9816 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/SendAMessageRequestPushMessageTemplateTest.java @@ -0,0 +1,59 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplateOneOf; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SendAMessageRequestPushMessageTemplate + */ +public class SendAMessageRequestPushMessageTemplateTest { + private final SendAMessageRequestPushMessageTemplate model = new SendAMessageRequestPushMessageTemplate(); + + /** + * Model tests for SendAMessageRequestPushMessageTemplate + */ + @Test + public void testSendAMessageRequestPushMessageTemplate() { + // TODO: test SendAMessageRequestPushMessageTemplate + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'body' + */ + @Test + public void bodyTest() { + // TODO: test body + } + +} diff --git a/src/test/java/org/openapitools/client/model/SendAMessageRequestTest.java b/src/test/java/org/openapitools/client/model/SendAMessageRequestTest.java index f3513704..696eee1a 100644 --- a/src/test/java/org/openapitools/client/model/SendAMessageRequestTest.java +++ b/src/test/java/org/openapitools/client/model/SendAMessageRequestTest.java @@ -23,10 +23,7 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; -import org.openapitools.client.model.SendAdminMessageRequestBody; -import org.openapitools.client.model.SendFileMessageRequestBody; -import org.openapitools.client.model.SendTextMessageRequestBody; -import org.openapitools.client.model.SendTextMessageRequestBodyPushMessageTemplate; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplate; import org.openapitools.client.model.SendbirdFile; import org.openapitools.client.model.SendbirdSortedMetaarrayInner; @@ -49,203 +46,211 @@ public void testSendAMessageRequest() { } /** - * Test the property 'apnsBundleId' + * Test the property 'messageType' */ @Test - public void apnsBundleIdTest() { - // TODO: test apnsBundleId + public void messageTypeTest() { + // TODO: test messageType } /** - * Test the property 'appleCriticalAlertOptions' + * Test the property 'userId' */ @Test - public void appleCriticalAlertOptionsTest() { - // TODO: test appleCriticalAlertOptions + public void userIdTest() { + // TODO: test userId } /** - * Test the property 'createdAt' + * Test the property 'message' */ @Test - public void createdAtTest() { - // TODO: test createdAt + public void messageTest() { + // TODO: test message } /** - * Test the property 'customType' + * Test the property 'pushMessageTemplate' */ @Test - public void customTypeTest() { - // TODO: test customType + public void pushMessageTemplateTest() { + // TODO: test pushMessageTemplate } /** - * Test the property 'data' + * Test the property 'pollId' */ @Test - public void dataTest() { - // TODO: test data + public void pollIdTest() { + // TODO: test pollId } /** - * Test the property 'dedupId' + * Test the property 'files' */ @Test - public void dedupIdTest() { - // TODO: test dedupId + public void filesTest() { + // TODO: test files } /** - * Test the property 'includePollDetails' + * Test the property 'requireAuth' */ @Test - public void includePollDetailsTest() { - // TODO: test includePollDetails + public void requireAuthTest() { + // TODO: test requireAuth } /** - * Test the property 'isSilent' + * Test the property 'thumbnail1' */ @Test - public void isSilentTest() { - // TODO: test isSilent + public void thumbnail1Test() { + // TODO: test thumbnail1 } /** - * Test the property 'markAsRead' + * Test the property 'thumbnail2' */ @Test - public void markAsReadTest() { - // TODO: test markAsRead + public void thumbnail2Test() { + // TODO: test thumbnail2 } /** - * Test the property 'mentionType' + * Test the property 'thumbnail3' */ @Test - public void mentionTypeTest() { - // TODO: test mentionType + public void thumbnail3Test() { + // TODO: test thumbnail3 } /** - * Test the property 'mentionedUserIds' + * Test the property 'thumbnails' */ @Test - public void mentionedUserIdsTest() { - // TODO: test mentionedUserIds + public void thumbnailsTest() { + // TODO: test thumbnails } /** - * Test the property 'message' + * Test the property 'apnsBundleId' */ @Test - public void messageTest() { - // TODO: test message + public void apnsBundleIdTest() { + // TODO: test apnsBundleId } /** - * Test the property 'messageType' + * Test the property 'appleCriticalAlertOptions' */ @Test - public void messageTypeTest() { - // TODO: test messageType + public void appleCriticalAlertOptionsTest() { + // TODO: test appleCriticalAlertOptions } /** - * Test the property 'pollId' + * Test the property 'createdAt' */ @Test - public void pollIdTest() { - // TODO: test pollId + public void createdAtTest() { + // TODO: test createdAt } /** - * Test the property 'pushMessageTemplate' + * Test the property 'customType' */ @Test - public void pushMessageTemplateTest() { - // TODO: test pushMessageTemplate + public void customTypeTest() { + // TODO: test customType } /** - * Test the property 'sendPush' + * Test the property 'data' */ @Test - public void sendPushTest() { - // TODO: test sendPush + public void dataTest() { + // TODO: test data } /** - * Test the property 'sortedMetaarray' + * Test the property 'dedupId' */ @Test - public void sortedMetaarrayTest() { - // TODO: test sortedMetaarray + public void dedupIdTest() { + // TODO: test dedupId } /** - * Test the property 'sound' + * Test the property 'includePollDetails' */ @Test - public void soundTest() { - // TODO: test sound + public void includePollDetailsTest() { + // TODO: test includePollDetails } /** - * Test the property 'volume' + * Test the property 'isSilent' */ @Test - public void volumeTest() { - // TODO: test volume + public void isSilentTest() { + // TODO: test isSilent } /** - * Test the property 'files' + * Test the property 'markAsRead' */ @Test - public void filesTest() { - // TODO: test files + public void markAsReadTest() { + // TODO: test markAsRead } /** - * Test the property 'requireAuth' + * Test the property 'mentionType' */ @Test - public void requireAuthTest() { - // TODO: test requireAuth + public void mentionTypeTest() { + // TODO: test mentionType } /** - * Test the property 'thumbnail1' + * Test the property 'mentionedUserIds' */ @Test - public void thumbnail1Test() { - // TODO: test thumbnail1 + public void mentionedUserIdsTest() { + // TODO: test mentionedUserIds } /** - * Test the property 'thumbnail2' + * Test the property 'sendPush' */ @Test - public void thumbnail2Test() { - // TODO: test thumbnail2 + public void sendPushTest() { + // TODO: test sendPush } /** - * Test the property 'thumbnail3' + * Test the property 'sortedMetaarray' */ @Test - public void thumbnail3Test() { - // TODO: test thumbnail3 + public void sortedMetaarrayTest() { + // TODO: test sortedMetaarray } /** - * Test the property 'thumbnails' + * Test the property 'sound' */ @Test - public void thumbnailsTest() { - // TODO: test thumbnails + public void soundTest() { + // TODO: test sound + } + + /** + * Test the property 'volume' + */ + @Test + public void volumeTest() { + // TODO: test volume } } diff --git a/src/test/java/org/openapitools/client/model/SendBirdGroupChannelTest.java b/src/test/java/org/openapitools/client/model/SendBirdGroupChannelTest.java index 4290ec11..d3371fb0 100644 --- a/src/test/java/org/openapitools/client/model/SendBirdGroupChannelTest.java +++ b/src/test/java/org/openapitools/client/model/SendBirdGroupChannelTest.java @@ -26,8 +26,8 @@ import java.util.Map; import org.openapitools.client.model.SendbirdBasicUserInfo; import org.openapitools.client.model.SendbirdDisappearingMessage; +import org.openapitools.client.model.SendbirdGroupChannelLastMessage; import org.openapitools.client.model.SendbirdMember; -import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdPushTriggerOption; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/src/test/java/org/openapitools/client/model/SendBirdMessageResponseTest.java b/src/test/java/org/openapitools/client/model/SendBirdMessageResponseTest.java index 67991aba..fd2de0ba 100644 --- a/src/test/java/org/openapitools/client/model/SendBirdMessageResponseTest.java +++ b/src/test/java/org/openapitools/client/model/SendBirdMessageResponseTest.java @@ -23,8 +23,8 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.SendbirdBasicUserInfo; -import org.openapitools.client.model.SendbirdExtendedMessagePayload; import org.openapitools.client.model.SendbirdFile; +import org.openapitools.client.model.SendbirdMessageResponseExtendedMessagePayload; import org.openapitools.client.model.SendbirdMessageResponseMessageEvents; import org.openapitools.client.model.SendbirdParentMessageInfo; import org.openapitools.client.model.SendbirdReaction; diff --git a/src/test/java/org/openapitools/client/model/SendBirdOpenChannelTest.java b/src/test/java/org/openapitools/client/model/SendBirdOpenChannelTest.java index 4c6c3725..4b786e59 100644 --- a/src/test/java/org/openapitools/client/model/SendBirdOpenChannelTest.java +++ b/src/test/java/org/openapitools/client/model/SendBirdOpenChannelTest.java @@ -23,6 +23,10 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.SendbirdBasicUserInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/SendBirdParentMessageInfoTest.java b/src/test/java/org/openapitools/client/model/SendBirdParentMessageInfoTest.java index 22a4fcd1..445a641d 100644 --- a/src/test/java/org/openapitools/client/model/SendBirdParentMessageInfoTest.java +++ b/src/test/java/org/openapitools/client/model/SendBirdParentMessageInfoTest.java @@ -24,10 +24,6 @@ import java.util.List; import org.openapitools.client.model.SendbirdFile; import org.openapitools.client.model.SendbirdUser; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/SendBirdUserTest.java b/src/test/java/org/openapitools/client/model/SendBirdUserTest.java index a8af26fd..d786b5ad 100644 --- a/src/test/java/org/openapitools/client/model/SendBirdUserTest.java +++ b/src/test/java/org/openapitools/client/model/SendBirdUserTest.java @@ -213,12 +213,4 @@ public void isCreatedTest() { // TODO: test isCreated } - /** - * Test the property 'sessionTokens' - */ - @Test - public void sessionTokensTest() { - // TODO: test sessionTokens - } - } diff --git a/src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateTest.java b/src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateTest.java index 1d979d68..b6faaeac 100644 --- a/src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateTest.java +++ b/src/test/java/org/openapitools/client/model/SendTextMessageRequestBodyPushMessageTemplateTest.java @@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import org.openapitools.client.model.SendTextMessageRequestBodyPushMessageTemplateOneOf; +import org.openapitools.client.model.SendAMessageRequestPushMessageTemplateOneOf; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/SendbirdBasicUserInfoTest.java b/src/test/java/org/openapitools/client/model/SendbirdBasicUserInfoTest.java index 04122b4f..4b4511d6 100644 --- a/src/test/java/org/openapitools/client/model/SendbirdBasicUserInfoTest.java +++ b/src/test/java/org/openapitools/client/model/SendbirdBasicUserInfoTest.java @@ -20,6 +20,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/SendbirdGroupChannelDetailTest.java b/src/test/java/org/openapitools/client/model/SendbirdGroupChannelDetailTest.java index 22cd6139..bb4059b3 100644 --- a/src/test/java/org/openapitools/client/model/SendbirdGroupChannelDetailTest.java +++ b/src/test/java/org/openapitools/client/model/SendbirdGroupChannelDetailTest.java @@ -20,7 +20,6 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -32,10 +31,6 @@ import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.SendbirdSmsFallback; import org.openapitools.client.model.SendbirdUser; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/SendbirdGroupChannelLastMessageTest.java b/src/test/java/org/openapitools/client/model/SendbirdGroupChannelLastMessageTest.java new file mode 100644 index 00000000..558deee8 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/SendbirdGroupChannelLastMessageTest.java @@ -0,0 +1,296 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.client.model.SendbirdBasicUserInfo; +import org.openapitools.client.model.SendbirdFile; +import org.openapitools.client.model.SendbirdMessageResponse; +import org.openapitools.client.model.SendbirdMessageResponseExtendedMessagePayload; +import org.openapitools.client.model.SendbirdMessageResponseMessageEvents; +import org.openapitools.client.model.SendbirdParentMessageInfo; +import org.openapitools.client.model.SendbirdReaction; +import org.openapitools.client.model.SendbirdSortedMetaarrayInner; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SendbirdGroupChannelLastMessage + */ +public class SendbirdGroupChannelLastMessageTest { + private final SendbirdGroupChannelLastMessage model = new SendbirdGroupChannelLastMessage(); + + /** + * Model tests for SendbirdGroupChannelLastMessage + */ + @Test + public void testSendbirdGroupChannelLastMessage() { + // TODO: test SendbirdGroupChannelLastMessage + } + + /** + * Test the property 'requireAuth' + */ + @Test + public void requireAuthTest() { + // TODO: test requireAuth + } + + /** + * Test the property 'messageSurvivalSeconds' + */ + @Test + public void messageSurvivalSecondsTest() { + // TODO: test messageSurvivalSeconds + } + + /** + * Test the property 'customType' + */ + @Test + public void customTypeTest() { + // TODO: test customType + } + + /** + * Test the property 'mentionedUsers' + */ + @Test + public void mentionedUsersTest() { + // TODO: test mentionedUsers + } + + /** + * Test the property 'translations' + */ + @Test + public void translationsTest() { + // TODO: test translations + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'isOpMsg' + */ + @Test + public void isOpMsgTest() { + // TODO: test isOpMsg + } + + /** + * Test the property 'reactions' + */ + @Test + public void reactionsTest() { + // TODO: test reactions + } + + /** + * Test the property 'isRemoved' + */ + @Test + public void isRemovedTest() { + // TODO: test isRemoved + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + + /** + * Test the property '_file' + */ + @Test + public void _fileTest() { + // TODO: test _file + } + + /** + * Test the property 'files' + */ + @Test + public void filesTest() { + // TODO: test files + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'messageRetentionHour' + */ + @Test + public void messageRetentionHourTest() { + // TODO: test messageRetentionHour + } + + /** + * Test the property 'silent' + */ + @Test + public void silentTest() { + // TODO: test silent + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'channelType' + */ + @Test + public void channelTypeTest() { + // TODO: test channelType + } + + /** + * Test the property 'reqId' + */ + @Test + public void reqIdTest() { + // TODO: test reqId + } + + /** + * Test the property 'mentionType' + */ + @Test + public void mentionTypeTest() { + // TODO: test mentionType + } + + /** + * Test the property 'channelUrl' + */ + @Test + public void channelUrlTest() { + // TODO: test channelUrl + } + + /** + * Test the property 'messageId' + */ + @Test + public void messageIdTest() { + // TODO: test messageId + } + + /** + * Test the property 'sortedMetaarray' + */ + @Test + public void sortedMetaarrayTest() { + // TODO: test sortedMetaarray + } + + /** + * Test the property 'threadInfo' + */ + @Test + public void threadInfoTest() { + // TODO: test threadInfo + } + + /** + * Test the property 'parentMessageId' + */ + @Test + public void parentMessageIdTest() { + // TODO: test parentMessageId + } + + /** + * Test the property 'parentMessageInfo' + */ + @Test + public void parentMessageInfoTest() { + // TODO: test parentMessageInfo + } + + /** + * Test the property 'isReplyToChannel' + */ + @Test + public void isReplyToChannelTest() { + // TODO: test isReplyToChannel + } + + /** + * Test the property 'messageEvents' + */ + @Test + public void messageEventsTest() { + // TODO: test messageEvents + } + + /** + * Test the property 'extendedMessagePayload' + */ + @Test + public void extendedMessagePayloadTest() { + // TODO: test extendedMessagePayload + } + +} diff --git a/src/test/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayloadTest.java b/src/test/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayloadTest.java new file mode 100644 index 00000000..24f6c117 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/SendbirdMessageResponseExtendedMessagePayloadTest.java @@ -0,0 +1,61 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.openapitools.client.model.SendbirdExtendedMessagePayload; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SendbirdMessageResponseExtendedMessagePayload + */ +public class SendbirdMessageResponseExtendedMessagePayloadTest { + private final SendbirdMessageResponseExtendedMessagePayload model = new SendbirdMessageResponseExtendedMessagePayload(); + + /** + * Model tests for SendbirdMessageResponseExtendedMessagePayload + */ + @Test + public void testSendbirdMessageResponseExtendedMessagePayload() { + // TODO: test SendbirdMessageResponseExtendedMessagePayload + } + + /** + * Test the property 'customView' + */ + @Test + public void customViewTest() { + // TODO: test customView + } + + /** + * Test the property 'suggestedReplies' + */ + @Test + public void suggestedRepliesTest() { + // TODO: test suggestedReplies + } + +} diff --git a/src/test/java/org/openapitools/client/model/UpdateAGroupChannelRequestTest.java b/src/test/java/org/openapitools/client/model/UpdateAGroupChannelRequestTest.java index 7fe2134b..c4bd82d8 100644 --- a/src/test/java/org/openapitools/client/model/UpdateAGroupChannelRequestTest.java +++ b/src/test/java/org/openapitools/client/model/UpdateAGroupChannelRequestTest.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/UpdateAUserRequestTest.java b/src/test/java/org/openapitools/client/model/UpdateAUserRequestTest.java index 88373692..e0951f39 100644 --- a/src/test/java/org/openapitools/client/model/UpdateAUserRequestTest.java +++ b/src/test/java/org/openapitools/client/model/UpdateAUserRequestTest.java @@ -23,6 +23,10 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/UpdateBotByIdDataTest.java b/src/test/java/org/openapitools/client/model/UpdateBotByIdDataTest.java new file mode 100644 index 00000000..a2dd8f1f --- /dev/null +++ b/src/test/java/org/openapitools/client/model/UpdateBotByIdDataTest.java @@ -0,0 +1,106 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateBotByIdData + */ +public class UpdateBotByIdDataTest { + private final UpdateBotByIdData model = new UpdateBotByIdData(); + + /** + * Model tests for UpdateBotByIdData + */ + @Test + public void testUpdateBotByIdData() { + // TODO: test UpdateBotByIdData + } + + /** + * Test the property 'botUserid' + */ + @Test + public void botUseridTest() { + // TODO: test botUserid + } + + /** + * Test the property 'botNickname' + */ + @Test + public void botNicknameTest() { + // TODO: test botNickname + } + + /** + * Test the property 'botProfileUrl' + */ + @Test + public void botProfileUrlTest() { + // TODO: test botProfileUrl + } + + /** + * Test the property 'botCallbackUrl' + */ + @Test + public void botCallbackUrlTest() { + // TODO: test botCallbackUrl + } + + /** + * Test the property 'isPrivacyMode' + */ + @Test + public void isPrivacyModeTest() { + // TODO: test isPrivacyMode + } + + /** + * Test the property 'enableMarkAsRead' + */ + @Test + public void enableMarkAsReadTest() { + // TODO: test enableMarkAsRead + } + + /** + * Test the property 'showMember' + */ + @Test + public void showMemberTest() { + // TODO: test showMember + } + + /** + * Test the property 'channelInvitationPreference' + */ + @Test + public void channelInvitationPreferenceTest() { + // TODO: test channelInvitationPreference + } + +} diff --git a/src/test/java/org/openapitools/client/model/UpdateBotByIdResponseTest.java b/src/test/java/org/openapitools/client/model/UpdateBotByIdResponseTest.java new file mode 100644 index 00000000..609e541c --- /dev/null +++ b/src/test/java/org/openapitools/client/model/UpdateBotByIdResponseTest.java @@ -0,0 +1,91 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.ViewBotByIdResponseBot; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateBotByIdResponse + */ +public class UpdateBotByIdResponseTest { + private final UpdateBotByIdResponse model = new UpdateBotByIdResponse(); + + /** + * Model tests for UpdateBotByIdResponse + */ + @Test + public void testUpdateBotByIdResponse() { + // TODO: test UpdateBotByIdResponse + } + + /** + * Test the property 'bot' + */ + @Test + public void botTest() { + // TODO: test bot + } + + /** + * Test the property 'botCallbackUrl' + */ + @Test + public void botCallbackUrlTest() { + // TODO: test botCallbackUrl + } + + /** + * Test the property 'enableMarkAsRead' + */ + @Test + public void enableMarkAsReadTest() { + // TODO: test enableMarkAsRead + } + + /** + * Test the property 'isPrivacyMode' + */ + @Test + public void isPrivacyModeTest() { + // TODO: test isPrivacyMode + } + + /** + * Test the property 'showMember' + */ + @Test + public void showMemberTest() { + // TODO: test showMember + } + + /** + * Test the property 'channelInvitationPreference' + */ + @Test + public void channelInvitationPreferenceTest() { + // TODO: test channelInvitationPreference + } + +} diff --git a/src/test/java/org/openapitools/client/model/CreateABotResponseBotStyleTest.java b/src/test/java/org/openapitools/client/model/ViewBotByIdResponseBotTest.java similarity index 54% rename from src/test/java/org/openapitools/client/model/CreateABotResponseBotStyleTest.java rename to src/test/java/org/openapitools/client/model/ViewBotByIdResponseBotTest.java index 3f3d23b4..524609af 100644 --- a/src/test/java/org/openapitools/client/model/CreateABotResponseBotStyleTest.java +++ b/src/test/java/org/openapitools/client/model/ViewBotByIdResponseBotTest.java @@ -20,60 +20,71 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import org.openapitools.client.model.ListBotsResponseBotsInnerBotStyleColor; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; /** - * Model tests for CreateABotResponseBotStyle + * Model tests for ViewBotByIdResponseBot */ -public class CreateABotResponseBotStyleTest { - private final CreateABotResponseBotStyle model = new CreateABotResponseBotStyle(); +public class ViewBotByIdResponseBotTest { + private final ViewBotByIdResponseBot model = new ViewBotByIdResponseBot(); /** - * Model tests for CreateABotResponseBotStyle + * Model tests for ViewBotByIdResponseBot */ @Test - public void testCreateABotResponseBotStyle() { - // TODO: test CreateABotResponseBotStyle + public void testViewBotByIdResponseBot() { + // TODO: test ViewBotByIdResponseBot } /** - * Test the property 'autoOpen' + * Test the property 'botToken' */ @Test - public void autoOpenTest() { - // TODO: test autoOpen + public void botTokenTest() { + // TODO: test botToken } /** - * Test the property 'color' + * Test the property 'botProfileUrl' */ @Test - public void colorTest() { - // TODO: test color + public void botProfileUrlTest() { + // TODO: test botProfileUrl } /** - * Test the property 'toggleButtonType' + * Test the property 'botUserid' */ @Test - public void toggleButtonTypeTest() { - // TODO: test toggleButtonType + public void botUseridTest() { + // TODO: test botUserid } /** - * Test the property 'toggleButtonUrl' + * Test the property 'botNickname' */ @Test - public void toggleButtonUrlTest() { - // TODO: test toggleButtonUrl + public void botNicknameTest() { + // TODO: test botNickname + } + + /** + * Test the property 'botType' + */ + @Test + public void botTypeTest() { + // TODO: test botType + } + + /** + * Test the property 'botMetadata' + */ + @Test + public void botMetadataTest() { + // TODO: test botMetadata } } diff --git a/src/test/java/org/openapitools/client/model/ViewBotByIdResponseTest.java b/src/test/java/org/openapitools/client/model/ViewBotByIdResponseTest.java new file mode 100644 index 00000000..01bc40b2 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/ViewBotByIdResponseTest.java @@ -0,0 +1,91 @@ +/* + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.client.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.client.model.ViewBotByIdResponseBot; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ViewBotByIdResponse + */ +public class ViewBotByIdResponseTest { + private final ViewBotByIdResponse model = new ViewBotByIdResponse(); + + /** + * Model tests for ViewBotByIdResponse + */ + @Test + public void testViewBotByIdResponse() { + // TODO: test ViewBotByIdResponse + } + + /** + * Test the property 'bot' + */ + @Test + public void botTest() { + // TODO: test bot + } + + /** + * Test the property 'botCallbackUrl' + */ + @Test + public void botCallbackUrlTest() { + // TODO: test botCallbackUrl + } + + /** + * Test the property 'enableMarkAsRead' + */ + @Test + public void enableMarkAsReadTest() { + // TODO: test enableMarkAsRead + } + + /** + * Test the property 'isPrivacyMode' + */ + @Test + public void isPrivacyModeTest() { + // TODO: test isPrivacyMode + } + + /** + * Test the property 'showMember' + */ + @Test + public void showMemberTest() { + // TODO: test showMember + } + + /** + * Test the property 'channelInvitationPreference' + */ + @Test + public void channelInvitationPreferenceTest() { + // TODO: test channelInvitationPreference + } + +} diff --git a/src/test/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponseTest.java b/src/test/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponseTest.java index 109e66bf..0e209e35 100644 --- a/src/test/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponseTest.java +++ b/src/test/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponseTest.java @@ -20,7 +20,6 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponseTest.java b/src/test/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponseTest.java index 3c46cf67..79c511e1 100644 --- a/src/test/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponseTest.java +++ b/src/test/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponseTest.java @@ -20,7 +20,6 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/sendbird/client/api/BotApiTest.java b/src/test/java/org/sendbird/client/api/BotApiTest.java index 022a687f..31ea4c6b 100644 --- a/src/test/java/org/sendbird/client/api/BotApiTest.java +++ b/src/test/java/org/sendbird/client/api/BotApiTest.java @@ -15,13 +15,19 @@ import org.sendbird.client.*; import org.sendbird.client.auth.*; +import java.math.BigDecimal; import org.openapitools.client.model.CreateABotRequest; import org.openapitools.client.model.CreateABotResponse; +import java.io.File; import org.openapitools.client.model.JoinChannelsRequest; import org.openapitools.client.model.ListBotsResponse; -import org.openapitools.client.model.SendABotMessageRequest; +import org.openapitools.client.model.SendABotMessageResponse; +import org.openapitools.client.model.SendbirdExtendedMessagePayload; import org.openapitools.client.model.SendbirdGroupChannelDetail; -import org.openapitools.client.model.SendbirdMessageResponse; +import org.openapitools.client.model.SendbirdSortedMetaarrayInner; +import org.openapitools.client.model.UpdateBotByIdData; +import org.openapitools.client.model.UpdateBotByIdResponse; +import org.openapitools.client.model.ViewBotByIdResponse; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; @@ -57,6 +63,23 @@ public void createABotTest() throws ApiException { // TODO: test validations } + /** + * Delete a bot + * + * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteBotByIdTest() throws ApiException { + //String botUserid = null; + //String apiToken = null; + //Object response = api.deleteBotById(botUserid) + // .apiToken(apiToken) + // .execute(); + // TODO: test validations + } + /** * Join channels * @@ -140,12 +163,88 @@ public void listBotsTest() throws ApiException { */ @Test public void sendABotMessageTest() throws ApiException { + //String botUserid = null; + //String messageType = null; + //String channelUrl = null; + //String apiToken = null; + //String message = null; + //List mentioned = null; + //SendbirdExtendedMessagePayload extendedMessagePayload = null; + //File _file = null; + //Boolean requireAuth = null; + //String mentionType = null; + //List mentionedUserIds = null; + //Boolean isSilent = null; + //List sortedMetaarray = null; + //String apnsBundleId = null; + //Object appleCriticalAlertOptions = null; + //String sound = null; + //BigDecimal volume = null; + //Long createdAt = null; + //String customType = null; + //String data = null; + //String dedupId = null; + //Boolean markAsRead = null; + //Boolean sendPush = null; + //SendABotMessageResponse response = api.sendABotMessage(botUserid) + // .messageType(messageType) + // .channelUrl(channelUrl) + // .apiToken(apiToken) + // .message(message) + // .mentioned(mentioned) + // .extendedMessagePayload(extendedMessagePayload) + // ._file(_file) + // .requireAuth(requireAuth) + // .mentionType(mentionType) + // .mentionedUserIds(mentionedUserIds) + // .isSilent(isSilent) + // .sortedMetaarray(sortedMetaarray) + // .apnsBundleId(apnsBundleId) + // .appleCriticalAlertOptions(appleCriticalAlertOptions) + // .sound(sound) + // .volume(volume) + // .createdAt(createdAt) + // .customType(customType) + // .data(data) + // .dedupId(dedupId) + // .markAsRead(markAsRead) + // .sendPush(sendPush) + // .execute(); + // TODO: test validations + } + + /** + * Update a bot + * + * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateBotByIdTest() throws ApiException { + //String botUserid = null; + //String apiToken = null; + //UpdateBotByIdData updateBotByIdData = null; + //UpdateBotByIdResponse response = api.updateBotById(botUserid) + // .apiToken(apiToken) + // .updateBotByIdData(updateBotByIdData) + // .execute(); + // TODO: test validations + } + + /** + * View a bot + * + * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- + * + * @throws ApiException if the Api call fails + */ + @Test + public void viewBotByIdTest() throws ApiException { //String botUserid = null; //String apiToken = null; - //SendABotMessageRequest sendABotMessageRequest = null; - //SendbirdMessageResponse response = api.sendABotMessage(botUserid) + //ViewBotByIdResponse response = api.viewBotById(botUserid) // .apiToken(apiToken) - // .sendABotMessageRequest(sendABotMessageRequest) // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java b/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java index 1d4b7d1c..3c22a061 100644 --- a/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java +++ b/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java @@ -292,12 +292,6 @@ public void listChannelsTest() throws ApiException { //String metacounterValueLt = null; //String metacounterValueLte = null; //Boolean includeSortedMetaarrayInLastMessage = null; - //String customType = null; - //Boolean readReceipt = null; - //Boolean member = null; - //Boolean isDistinct = null; - //String membersIn = null; - //String userId = null; //GroupChatListChannelsResponse response = api.listChannels() // .apiToken(apiToken) // .token(token) @@ -336,12 +330,6 @@ public void listChannelsTest() throws ApiException { // .metacounterValueLt(metacounterValueLt) // .metacounterValueLte(metacounterValueLte) // .includeSortedMetaarrayInLastMessage(includeSortedMetaarrayInLastMessage) - // .customType(customType) - // .readReceipt(readReceipt) - // .member(member) - // .isDistinct(isDistinct) - // .membersIn(membersIn) - // .userId(userId) // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/MessageApiTest.java b/src/test/java/org/sendbird/client/api/MessageApiTest.java index a203a982..eb874426 100644 --- a/src/test/java/org/sendbird/client/api/MessageApiTest.java +++ b/src/test/java/org/sendbird/client/api/MessageApiTest.java @@ -20,6 +20,7 @@ import org.openapitools.client.model.GetTotalNumberOfMessagesInAChannelResponse; import org.openapitools.client.model.ListMessagesResponse; import org.openapitools.client.model.MarkChannelMessagesAsReadRequest; +import org.openapitools.client.model.MigrateMessagesRequest; import org.openapitools.client.model.SendAMessageRequest; import org.openapitools.client.model.SendbirdMessageResponse; import org.openapitools.client.model.UpdateAMessageRequest; @@ -53,7 +54,7 @@ public class MessageApiTest { public void addExtraDataToAMessageTest() throws ApiException { //String channelType = null; //String channelUrl = null; - //String messageId = null; + //Long messageId = null; //String apiToken = null; //AddExtraDataToAMessageRequest addExtraDataToAMessageRequest = null; //AddExtraDataToAMessageResponse response = api.addExtraDataToAMessage(channelType, channelUrl, messageId) @@ -74,7 +75,7 @@ public void addExtraDataToAMessageTest() throws ApiException { public void deleteAMessageTest() throws ApiException { //String channelType = null; //String channelUrl = null; - //String messageId = null; + //Long messageId = null; //String apiToken = null; //Object response = api.deleteAMessage(channelType, channelUrl, messageId) // .apiToken(apiToken) @@ -93,7 +94,7 @@ public void deleteAMessageTest() throws ApiException { public void getAMessageTest() throws ApiException { //String channelType = null; //String channelUrl = null; - //String messageId = null; + //Long messageId = null; //Boolean includeReactions = null; //Boolean includeThreadInfo = null; //Boolean includeParentMessageInfo = null; @@ -217,10 +218,10 @@ public void markChannelMessagesAsReadTest() throws ApiException { public void migrateMessagesTest() throws ApiException { //String targetChannelUrl = null; //String apiToken = null; - //Object body = null; + //MigrateMessagesRequest migrateMessagesRequest = null; //Object response = api.migrateMessages(targetChannelUrl) // .apiToken(apiToken) - // .body(body) + // .migrateMessagesRequest(migrateMessagesRequest) // .execute(); // TODO: test validations } @@ -236,7 +237,7 @@ public void migrateMessagesTest() throws ApiException { public void removeExtraDataFromAMessageTest() throws ApiException { //String channelType = null; //String channelUrl = null; - //String messageId = null; + //Long messageId = null; //String keys = null; //String apiToken = null; //Object response = api.removeExtraDataFromAMessage(channelType, channelUrl, messageId) @@ -277,7 +278,7 @@ public void sendAMessageTest() throws ApiException { public void updateAMessageTest() throws ApiException { //String channelType = null; //String channelUrl = null; - //String messageId = null; + //Long messageId = null; //String apiToken = null; //UpdateAMessageRequest updateAMessageRequest = null; //SendbirdMessageResponse response = api.updateAMessage(channelType, channelUrl, messageId) @@ -298,7 +299,7 @@ public void updateAMessageTest() throws ApiException { public void updateExtraDataInAMessageTest() throws ApiException { //String channelType = null; //String channelUrl = null; - //String messageId = null; + //Long messageId = null; //String apiToken = null; //UpdateExtraDataInAMessageRequest updateExtraDataInAMessageRequest = null; //UpdateExtraDataInAMessageResponse response = api.updateExtraDataInAMessage(channelType, channelUrl, messageId) diff --git a/src/test/java/org/sendbird/client/api/MetadataApiTest.java b/src/test/java/org/sendbird/client/api/MetadataApiTest.java index 9309169b..fe56334a 100644 --- a/src/test/java/org/sendbird/client/api/MetadataApiTest.java +++ b/src/test/java/org/sendbird/client/api/MetadataApiTest.java @@ -68,8 +68,7 @@ public void deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadataTest() t //String channelUrl = null; //String key = null; //String apiToken = null; - //Object response = api.deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType, channelUrl) - // .key(key) + //Object response = api.deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType, channelUrl, key) // .apiToken(apiToken) // .execute(); // TODO: test validations diff --git a/src/test/java/org/sendbird/client/api/ModerationApiTest.java b/src/test/java/org/sendbird/client/api/ModerationApiTest.java index 80dc3340..f3b67ca2 100644 --- a/src/test/java/org/sendbird/client/api/ModerationApiTest.java +++ b/src/test/java/org/sendbird/client/api/ModerationApiTest.java @@ -42,7 +42,7 @@ public class ModerationApiTest { /** * Block a user * - * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) + * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated with the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/org/sendbird/client/api/UserApiTest.java b/src/test/java/org/sendbird/client/api/UserApiTest.java index d67bbdcd..8f52d5b8 100644 --- a/src/test/java/org/sendbird/client/api/UserApiTest.java +++ b/src/test/java/org/sendbird/client/api/UserApiTest.java @@ -229,6 +229,9 @@ public void listMyGroupChannelsTest() throws ApiException { //String queryType = null; //String membersNickname = null; //String membersNicknameContains = null; + //String membersNicknameStartswith = null; + //String searchQuery = null; + //String searchFields = null; //String metadataKey = null; //String metadataValues = null; //String metadataValueStartswith = null; @@ -239,12 +242,9 @@ public void listMyGroupChannelsTest() throws ApiException { //String metacounterValueLt = null; //String metacounterValueLte = null; //Boolean includeSortedMetaarrayInLastMessage = null; - //String customType = null; - //Boolean readReceipt = null; - //Boolean member = null; - //Boolean isDistinct = null; - //String membersIn = null; - //String userId2 = null; + //String hiddenMode = null; + //String unreadFilter = null; + //String memberStateFilter = null; //ListMyGroupChannelsResponse response = api.listMyGroupChannels(userId) // .apiToken(apiToken) // .token(token) @@ -273,6 +273,9 @@ public void listMyGroupChannelsTest() throws ApiException { // .queryType(queryType) // .membersNickname(membersNickname) // .membersNicknameContains(membersNicknameContains) + // .membersNicknameStartswith(membersNicknameStartswith) + // .searchQuery(searchQuery) + // .searchFields(searchFields) // .metadataKey(metadataKey) // .metadataValues(metadataValues) // .metadataValueStartswith(metadataValueStartswith) @@ -283,12 +286,9 @@ public void listMyGroupChannelsTest() throws ApiException { // .metacounterValueLt(metacounterValueLt) // .metacounterValueLte(metacounterValueLte) // .includeSortedMetaarrayInLastMessage(includeSortedMetaarrayInLastMessage) - // .customType(customType) - // .readReceipt(readReceipt) - // .member(member) - // .isDistinct(isDistinct) - // .membersIn(membersIn) - // .userId2(userId2) + // .hiddenMode(hiddenMode) + // .unreadFilter(unreadFilter) + // .memberStateFilter(memberStateFilter) // .execute(); // TODO: test validations }