Skip to content

Commit b6b359e

Browse files
James RobertsonJames Robertson
authored andcommitted
update to version 1.0.7
1 parent bda0868 commit b6b359e

File tree

10 files changed

+84
-23
lines changed

10 files changed

+84
-23
lines changed

docs/GcCreateChannelData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**user_ids** | **[str]** | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The users below and this property can be used interchangeably. |
8-
**users** | **[str]** | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably. | [optional]
8+
**users** | [**[SendBirdUser]**](SendBirdUser.md) | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably. | [optional]
99
**name** | **str** | Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel) | [optional]
1010
**channel_url** | **str** | Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. | [optional]
1111
**cover_url** | **str** | Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters. | [optional]

docs/GroupChannelApi.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,44 @@ with sendbird_platform_sdk.ApiClient() as api_client:
298298
"user_ids_example",
299299
],
300300
users=[
301-
"users_example",
301+
SendBirdUser(
302+
require_auth_for_profile_image=True,
303+
is_online=True,
304+
user_id="user_id_example",
305+
access_token="access_token_example",
306+
has_ever_logged_in=True,
307+
is_active=True,
308+
last_seen_at=1,
309+
nickname="nickname_example",
310+
discovery_keys=[
311+
"discovery_keys_example",
312+
],
313+
session_tokens=[
314+
"session_tokens_example",
315+
],
316+
preferred_languages=[
317+
"preferred_languages_example",
318+
],
319+
profile_url="profile_url_example",
320+
created_at=1,
321+
phone_number="phone_number_example",
322+
local="local_example",
323+
locale="locale_example",
324+
is_hide_me_from_friends=True,
325+
is_shadow_blocked=True,
326+
is_created=True,
327+
metadata=SBObject(
328+
constructor=Function(
329+
arguments=None,
330+
caller=Function(),
331+
length=3.14,
332+
prototype=None,
333+
),
334+
),
335+
description="description_example",
336+
end_at=3.14,
337+
start_at=3.14,
338+
),
302339
],
303340
name="name_example",
304341
channel_url="channel_url_example",

docs/SendBirdMember.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Name | Type | Description | Notes
88
**friend_discovery_key** | **str** | | [optional]
99
**friend_name** | **str** | | [optional]
1010
**is_active** | **bool** | | [optional]
11-
**is_blocked_by_me** | **bool** | | [optional]
12-
**is_blocking_me** | **bool** | | [optional]
1311
**is_muted** | **bool** | | [optional]
1412
**last_seen_at** | **int** | | [optional]
1513
**meta_data** | [**SBObject**](SBObject.md) | | [optional]
@@ -18,8 +16,13 @@ Name | Type | Description | Notes
1816
**preferred_languages** | **[str]** | | [optional]
1917
**profile_url** | **str** | | [optional]
2018
**require_auth** | **bool** | | [optional]
19+
**require_auth_for_profile_image** | **bool** | | [optional]
20+
**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
21+
**is_online** | **bool** | | [optional]
22+
**muted_end_at** | **float** | | [optional]
23+
**muted_description** | **str** | | [optional]
2124
**restriction_info** | [**SendBirdRestrictionInfo**](SendBirdRestrictionInfo.md) | | [optional]
22-
**role** | **str** | | [optional]
25+
**role** | **str, none_type** | | [optional]
2326
**state** | **str** | | [optional]
2427
**user_id** | **str** | | [optional]
2528
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

sendbird_platform_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212

13-
__version__ = "1.0.6"
13+
__version__ = "1.0.7"
1414

1515
# import ApiClient
1616
from sendbird_platform_sdk.api_client import ApiClient

sendbird_platform_sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7676
self.default_headers[header_name] = header_value
7777
self.cookie = cookie
7878
# Set default User-Agent.
79-
self.user_agent = 'OpenAPI-Generator/1.0.6/python'
79+
self.user_agent = 'OpenAPI-Generator/1.0.7/python'
8080

8181
def __enter__(self):
8282
return self

sendbird_platform_sdk/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def to_debug_report(self):
380380
"OS: {env}\n"\
381381
"Python Version: {pyversion}\n"\
382382
"Version of the API: 1.0.0\n"\
383-
"SDK Package Version: 1.0.6".\
383+
"SDK Package Version: 1.0.7".\
384384
format(env=sys.platform, pyversion=sys.version)
385385

386386
def get_host_settings(self):

sendbird_platform_sdk/model/gc_create_channel_data.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
from sendbird_platform_sdk.exceptions import ApiAttributeError
3030

3131

32+
def lazy_import():
33+
from sendbird_platform_sdk.model.send_bird_user import SendBirdUser
34+
globals()['SendBirdUser'] = SendBirdUser
35+
3236

3337
class GcCreateChannelData(ModelNormal):
3438
"""NOTE: This class is auto generated by OpenAPI Generator.
@@ -66,6 +70,7 @@ def additional_properties_type():
6670
This must be a method because a model may have properties that are
6771
of type self, this must run after the class is loaded
6872
"""
73+
lazy_import()
6974
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
7075

7176
_nullable = False
@@ -80,9 +85,10 @@ def openapi_types():
8085
openapi_types (dict): The key is attribute name
8186
and the value is attribute type.
8287
"""
88+
lazy_import()
8389
return {
8490
'user_ids': ([str],), # noqa: E501
85-
'users': ([str],), # noqa: E501
91+
'users': ([SendBirdUser],), # noqa: E501
8692
'name': (str,), # noqa: E501
8793
'channel_url': (str,), # noqa: E501
8894
'cover_url': (str,), # noqa: E501
@@ -173,7 +179,7 @@ def _from_openapi_data(cls, user_ids, *args, **kwargs): # noqa: E501
173179
Animal class but this time we won't travel
174180
through its discriminator because we passed in
175181
_visited_composed_classes = (Animal,)
176-
users ([str]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
182+
users ([SendBirdUser]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
177183
name (str): Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel). [optional] # noqa: E501
178184
channel_url (str): Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated.. [optional] # noqa: E501
179185
cover_url (str): Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters.. [optional] # noqa: E501
@@ -280,7 +286,7 @@ def __init__(self, user_ids, *args, **kwargs): # noqa: E501
280286
Animal class but this time we won't travel
281287
through its discriminator because we passed in
282288
_visited_composed_classes = (Animal,)
283-
users ([str]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
289+
users ([SendBirdUser]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
284290
name (str): Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel). [optional] # noqa: E501
285291
channel_url (str): Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated.. [optional] # noqa: E501
286292
cover_url (str): Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters.. [optional] # noqa: E501

sendbird_platform_sdk/model/send_bird_member.py

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class SendBirdMember(ModelNormal):
6262

6363
allowed_values = {
6464
('role',): {
65+
'None': None,
6566
'NONE': "none",
6667
'OPERATOR': "operator",
6768
},
@@ -101,8 +102,6 @@ def openapi_types():
101102
'friend_discovery_key': (str,), # noqa: E501
102103
'friend_name': (str,), # noqa: E501
103104
'is_active': (bool,), # noqa: E501
104-
'is_blocked_by_me': (bool,), # noqa: E501
105-
'is_blocking_me': (bool,), # noqa: E501
106105
'is_muted': (bool,), # noqa: E501
107106
'last_seen_at': (int,), # noqa: E501
108107
'meta_data': (SBObject,), # noqa: E501
@@ -111,8 +110,13 @@ def openapi_types():
111110
'preferred_languages': ([str],), # noqa: E501
112111
'profile_url': (str,), # noqa: E501
113112
'require_auth': (bool,), # noqa: E501
113+
'require_auth_for_profile_image': (bool,), # noqa: E501
114+
'metadata': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501
115+
'is_online': (bool,), # noqa: E501
116+
'muted_end_at': (float,), # noqa: E501
117+
'muted_description': (str,), # noqa: E501
114118
'restriction_info': (SendBirdRestrictionInfo,), # noqa: E501
115-
'role': (str,), # noqa: E501
119+
'role': (str, none_type,), # noqa: E501
116120
'state': (str,), # noqa: E501
117121
'user_id': (str,), # noqa: E501
118122
}
@@ -127,8 +131,6 @@ def discriminator():
127131
'friend_discovery_key': 'friend_discovery_key', # noqa: E501
128132
'friend_name': 'friend_name', # noqa: E501
129133
'is_active': 'is_active', # noqa: E501
130-
'is_blocked_by_me': 'is_blocked_by_me', # noqa: E501
131-
'is_blocking_me': 'is_blocking_me', # noqa: E501
132134
'is_muted': 'is_muted', # noqa: E501
133135
'last_seen_at': 'last_seen_at', # noqa: E501
134136
'meta_data': 'meta_data', # noqa: E501
@@ -137,6 +139,11 @@ def discriminator():
137139
'preferred_languages': 'preferred_languages', # noqa: E501
138140
'profile_url': 'profile_url', # noqa: E501
139141
'require_auth': 'require_auth', # noqa: E501
142+
'require_auth_for_profile_image': 'require_auth_for_profile_image', # noqa: E501
143+
'metadata': 'metadata', # noqa: E501
144+
'is_online': 'is_online', # noqa: E501
145+
'muted_end_at': 'muted_end_at', # noqa: E501
146+
'muted_description': 'muted_description', # noqa: E501
140147
'restriction_info': 'restriction_info', # noqa: E501
141148
'role': 'role', # noqa: E501
142149
'state': 'state', # noqa: E501
@@ -188,8 +195,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
188195
friend_discovery_key (str): [optional] # noqa: E501
189196
friend_name (str): [optional] # noqa: E501
190197
is_active (bool): [optional] # noqa: E501
191-
is_blocked_by_me (bool): [optional] # noqa: E501
192-
is_blocking_me (bool): [optional] # noqa: E501
193198
is_muted (bool): [optional] # noqa: E501
194199
last_seen_at (int): [optional] # noqa: E501
195200
meta_data (SBObject): [optional] # noqa: E501
@@ -198,8 +203,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
198203
preferred_languages ([str]): [optional] # noqa: E501
199204
profile_url (str): [optional] # noqa: E501
200205
require_auth (bool): [optional] # noqa: E501
206+
require_auth_for_profile_image (bool): [optional] # noqa: E501
207+
metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501
208+
is_online (bool): [optional] # noqa: E501
209+
muted_end_at (float): [optional] # noqa: E501
210+
muted_description (str): [optional] # noqa: E501
201211
restriction_info (SendBirdRestrictionInfo): [optional] # noqa: E501
202-
role (str): [optional] # noqa: E501
212+
role (str, none_type): [optional] # noqa: E501
203213
state (str): [optional] # noqa: E501
204214
user_id (str): [optional] # noqa: E501
205215
"""
@@ -291,8 +301,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
291301
friend_discovery_key (str): [optional] # noqa: E501
292302
friend_name (str): [optional] # noqa: E501
293303
is_active (bool): [optional] # noqa: E501
294-
is_blocked_by_me (bool): [optional] # noqa: E501
295-
is_blocking_me (bool): [optional] # noqa: E501
296304
is_muted (bool): [optional] # noqa: E501
297305
last_seen_at (int): [optional] # noqa: E501
298306
meta_data (SBObject): [optional] # noqa: E501
@@ -301,8 +309,13 @@ def __init__(self, *args, **kwargs): # noqa: E501
301309
preferred_languages ([str]): [optional] # noqa: E501
302310
profile_url (str): [optional] # noqa: E501
303311
require_auth (bool): [optional] # noqa: E501
312+
require_auth_for_profile_image (bool): [optional] # noqa: E501
313+
metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501
314+
is_online (bool): [optional] # noqa: E501
315+
muted_end_at (float): [optional] # noqa: E501
316+
muted_description (str): [optional] # noqa: E501
304317
restriction_info (SendBirdRestrictionInfo): [optional] # noqa: E501
305-
role (str): [optional] # noqa: E501
318+
role (str, none_type): [optional] # noqa: E501
306319
state (str): [optional] # noqa: E501
307320
user_id (str): [optional] # noqa: E501
308321
"""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from setuptools import setup, find_packages # noqa: H301
1212

1313
NAME = "sendbird_platform_sdk"
14-
VERSION = "1.0.6"
14+
VERSION = "1.0.7"
1515
# To install the library, run the following
1616
#
1717
# python setup.py install

test/test_gc_create_channel_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import unittest
1313

1414
import sendbird_platform_sdk
15+
from sendbird_platform_sdk.model.send_bird_user import SendBirdUser
16+
globals()['SendBirdUser'] = SendBirdUser
1517
from sendbird_platform_sdk.model.gc_create_channel_data import GcCreateChannelData
1618

1719

0 commit comments

Comments
 (0)