From 58300e859ab75f1480dfb9df285a9436cab9307d Mon Sep 17 00:00:00 2001 From: Jerry Jeon Date: Tue, 24 Sep 2024 16:08:09 +0900 Subject: [PATCH] Updated version to 1.0.27 - Allow null for user value to prevent parsing error - Add "files" property to message object to support multiple-files message --- docs/ListMessagesResponseMessagesInner.md | 1 + docs/SendBirdMessageResponse.md | 1 + sendbird_platform_sdk/__init__.py | 2 +- sendbird_platform_sdk/api_client.py | 2 +- sendbird_platform_sdk/configuration.py | 2 +- .../model/list_messages_response_messages_inner.py | 6 ++++++ .../model/send_bird_group_channel_inviter.py | 4 ++-- sendbird_platform_sdk/model/send_bird_message_response.py | 6 ++++++ sendbird_platform_sdk/model/send_bird_user.py | 2 +- setup.py | 2 +- 10 files changed, 21 insertions(+), 7 deletions(-) diff --git a/docs/ListMessagesResponseMessagesInner.md b/docs/ListMessagesResponseMessagesInner.md index ed40c61..6ac9932 100644 --- a/docs/ListMessagesResponseMessagesInner.md +++ b/docs/ListMessagesResponseMessagesInner.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **is_removed** | **bool** | | [optional] **user** | [**SendBirdMessageResponseUser**](SendBirdMessageResponseUser.md) | | [optional] **file** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] +**files** | [**[SendBirdFile]**](SendBirdFile.md) | | [optional] **message** | **str** | | [optional] **data** | **str** | | [optional] **message_retention_hour** | **float** | | [optional] diff --git a/docs/SendBirdMessageResponse.md b/docs/SendBirdMessageResponse.md index c886208..afec5c1 100644 --- a/docs/SendBirdMessageResponse.md +++ b/docs/SendBirdMessageResponse.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **is_removed** | **bool** | | [optional] **user** | [**SendBirdMessageResponseUser**](SendBirdMessageResponseUser.md) | | [optional] **file** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] +**files** | [**[SendBirdFile]**](SendBirdFile.md) | | [optional] **message** | **str** | | [optional] **data** | **str** | | [optional] **message_retention_hour** | **float** | | [optional] diff --git a/sendbird_platform_sdk/__init__.py b/sendbird_platform_sdk/__init__.py index cf1f857..3d61edd 100644 --- a/sendbird_platform_sdk/__init__.py +++ b/sendbird_platform_sdk/__init__.py @@ -11,7 +11,7 @@ """ -__version__ = "1.0.26" +__version__ = "1.0.27" # import ApiClient from sendbird_platform_sdk.api_client import ApiClient diff --git a/sendbird_platform_sdk/api_client.py b/sendbird_platform_sdk/api_client.py index 65208f9..0bd9316 100644 --- a/sendbird_platform_sdk/api_client.py +++ b/sendbird_platform_sdk/api_client.py @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.26/python' + self.user_agent = 'OpenAPI-Generator/1.0.27/python' def __enter__(self): return self diff --git a/sendbird_platform_sdk/configuration.py b/sendbird_platform_sdk/configuration.py index a45463d..97d1703 100644 --- a/sendbird_platform_sdk/configuration.py +++ b/sendbird_platform_sdk/configuration.py @@ -381,7 +381,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 1.0.26".\ + "SDK Package Version: 1.0.27".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sendbird_platform_sdk/model/list_messages_response_messages_inner.py b/sendbird_platform_sdk/model/list_messages_response_messages_inner.py index 9364cd3..1a75f10 100644 --- a/sendbird_platform_sdk/model/list_messages_response_messages_inner.py +++ b/sendbird_platform_sdk/model/list_messages_response_messages_inner.py @@ -33,11 +33,13 @@ def lazy_import(): from sendbird_platform_sdk.model.list_messages_response_messages_inner_og_tag import ListMessagesResponseMessagesInnerOgTag from sendbird_platform_sdk.model.list_messages_response_messages_inner_sorted_metaarray_inner import ListMessagesResponseMessagesInnerSortedMetaarrayInner + from sendbird_platform_sdk.model.send_bird_file import SendBirdFile from sendbird_platform_sdk.model.send_bird_message_response_mentioned_users_inner import SendBirdMessageResponseMentionedUsersInner from sendbird_platform_sdk.model.send_bird_message_response_user import SendBirdMessageResponseUser from sendbird_platform_sdk.model.send_bird_parent_message_info import SendBirdParentMessageInfo globals()['ListMessagesResponseMessagesInnerOgTag'] = ListMessagesResponseMessagesInnerOgTag globals()['ListMessagesResponseMessagesInnerSortedMetaarrayInner'] = ListMessagesResponseMessagesInnerSortedMetaarrayInner + globals()['SendBirdFile'] = SendBirdFile globals()['SendBirdMessageResponseMentionedUsersInner'] = SendBirdMessageResponseMentionedUsersInner globals()['SendBirdMessageResponseUser'] = SendBirdMessageResponseUser globals()['SendBirdParentMessageInfo'] = SendBirdParentMessageInfo @@ -105,6 +107,7 @@ def openapi_types(): 'is_removed': (bool,), # noqa: E501 'user': (SendBirdMessageResponseUser,), # noqa: E501 'file': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'files': ([SendBirdFile],), # noqa: E501 'message': (str,), # noqa: E501 'data': (str,), # noqa: E501 'message_retention_hour': (float,), # noqa: E501 @@ -136,6 +139,7 @@ def discriminator(): 'is_removed': 'is_removed', # noqa: E501 'user': 'user', # noqa: E501 'file': 'file', # noqa: E501 + 'files': 'files', # noqa: E501 'message': 'message', # noqa: E501 'data': 'data', # noqa: E501 'message_retention_hour': 'message_retention_hour', # noqa: E501 @@ -202,6 +206,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 is_removed (bool): [optional] # noqa: E501 user (SendBirdMessageResponseUser): [optional] # noqa: E501 file ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + files ([SendBirdFile]): [optional] # noqa: E501 message (str): [optional] # noqa: E501 data (str): [optional] # noqa: E501 message_retention_hour (float): [optional] # noqa: E501 @@ -310,6 +315,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 is_removed (bool): [optional] # noqa: E501 user (SendBirdMessageResponseUser): [optional] # noqa: E501 file ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + files ([SendBirdFile]): [optional] # noqa: E501 message (str): [optional] # noqa: E501 data (str): [optional] # noqa: E501 message_retention_hour (float): [optional] # noqa: E501 diff --git a/sendbird_platform_sdk/model/send_bird_group_channel_inviter.py b/sendbird_platform_sdk/model/send_bird_group_channel_inviter.py index 7080d95..289c0b5 100644 --- a/sendbird_platform_sdk/model/send_bird_group_channel_inviter.py +++ b/sendbird_platform_sdk/model/send_bird_group_channel_inviter.py @@ -399,11 +399,11 @@ def _composed_schemas(): lazy_import() return { 'anyOf': [ - SendBirdUser, - none_type, ], 'allOf': [ ], 'oneOf': [ + SendBirdUser, + none_type, ], } diff --git a/sendbird_platform_sdk/model/send_bird_message_response.py b/sendbird_platform_sdk/model/send_bird_message_response.py index e7b854f..6e9ff87 100644 --- a/sendbird_platform_sdk/model/send_bird_message_response.py +++ b/sendbird_platform_sdk/model/send_bird_message_response.py @@ -31,9 +31,11 @@ def lazy_import(): + from sendbird_platform_sdk.model.send_bird_file import SendBirdFile from sendbird_platform_sdk.model.send_bird_message_response_mentioned_users_inner import SendBirdMessageResponseMentionedUsersInner from sendbird_platform_sdk.model.send_bird_message_response_user import SendBirdMessageResponseUser from sendbird_platform_sdk.model.send_bird_parent_message_info import SendBirdParentMessageInfo + globals()['SendBirdFile'] = SendBirdFile globals()['SendBirdMessageResponseMentionedUsersInner'] = SendBirdMessageResponseMentionedUsersInner globals()['SendBirdMessageResponseUser'] = SendBirdMessageResponseUser globals()['SendBirdParentMessageInfo'] = SendBirdParentMessageInfo @@ -102,6 +104,7 @@ def openapi_types(): 'is_removed': (bool,), # noqa: E501 'user': (SendBirdMessageResponseUser,), # noqa: E501 'file': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'files': ([SendBirdFile],), # noqa: E501 'message': (str,), # noqa: E501 'data': (str,), # noqa: E501 'message_retention_hour': (float,), # noqa: E501 @@ -137,6 +140,7 @@ def discriminator(): 'is_removed': 'is_removed', # noqa: E501 'user': 'user', # noqa: E501 'file': 'file', # noqa: E501 + 'files': 'files', # noqa: E501 'message': 'message', # noqa: E501 'data': 'data', # noqa: E501 'message_retention_hour': 'message_retention_hour', # noqa: E501 @@ -207,6 +211,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 is_removed (bool): [optional] # noqa: E501 user (SendBirdMessageResponseUser): [optional] # noqa: E501 file ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + files ([SendBirdFile]): [optional] # noqa: E501 message (str): [optional] # noqa: E501 data (str): [optional] # noqa: E501 message_retention_hour (float): [optional] # noqa: E501 @@ -319,6 +324,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 is_removed (bool): [optional] # noqa: E501 user (SendBirdMessageResponseUser): [optional] # noqa: E501 file ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 + files ([SendBirdFile]): [optional] # noqa: E501 message (str): [optional] # noqa: E501 data (str): [optional] # noqa: E501 message_retention_hour (float): [optional] # noqa: E501 diff --git a/sendbird_platform_sdk/model/send_bird_user.py b/sendbird_platform_sdk/model/send_bird_user.py index 1038ffa..1e3215f 100644 --- a/sendbird_platform_sdk/model/send_bird_user.py +++ b/sendbird_platform_sdk/model/send_bird_user.py @@ -69,7 +69,7 @@ def additional_properties_type(): """ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = False + _nullable = True @cached_property def openapi_types(): diff --git a/setup.py b/setup.py index d282856..9249c29 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "sendbird_platform_sdk" -VERSION = "1.0.26" +VERSION = "1.0.27" # To install the library, run the following # # python setup.py install