Skip to content

Commit ee7f6f1

Browse files
committed
Upgrade Python SDK to spec 1.18.1
1 parent 5f9f321 commit ee7f6f1

File tree

10 files changed

+60
-36
lines changed

10 files changed

+60
-36
lines changed

docs/Group.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Name | Type | Description | Notes
2222
**member_count_synced_at** | **datetime** | | [optional]
2323
**is_verified** | **bool** | | [optional] [default to False]
2424
**join_state** | [**GroupJoinState**](GroupJoinState.md) | | [optional]
25-
**tags** | **list[str]** | | [optional]
25+
**tags** | **list[str]** | | [optional]
2626
**transfer_target_id** | **str** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
27-
**galleries** | [**list[GroupGallery]**](GroupGallery.md) | | [optional]
27+
**galleries** | [**list[GroupGallery]**](GroupGallery.md) | | [optional]
2828
**created_at** | **datetime** | | [optional]
2929
**updated_at** | **datetime** | | [optional]
3030
**last_post_created_at** | **datetime** | | [optional]

docs/UserExists.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Status object representing if a queried user by username or userId exists or not
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**user_exists** | **bool** | Status if a user exist with that username or userId. | [default to False]
9+
**name_ok** | **bool** | Is the username valid? | [default to False]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1112

docs/UserSubscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**tier** | **float** | |
1616
**active** | **bool** | | [default to True]
1717
**status** | [**TransactionStatus**](TransactionStatus.md) | |
18-
**starts** | **datetime** | | [optional]
18+
**starts** | **str** | | [optional]
1919
**expires** | **datetime** | |
2020
**created_at** | **datetime** | |
2121
**updated_at** | **datetime** | |

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"@openapitools/openapi-generator-cli": "^2.13.4"
3+
"@openapitools/openapi-generator-cli": "^2.13.5"
44
}
55
}

vrchatapi/models/group.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ def __init__(self, id=None, name=None, short_code=None, discriminator=None, desc
174174
self.created_at = created_at
175175
if updated_at is not None:
176176
self.updated_at = updated_at
177-
if last_post_created_at is not None:
178-
self.last_post_created_at = last_post_created_at
177+
self.last_post_created_at = last_post_created_at
179178
if online_member_count is not None:
180179
self.online_member_count = online_member_count
181180
if membership_status is not None:
@@ -568,7 +567,6 @@ def join_state(self, join_state):
568567
def tags(self):
569568
"""Gets the tags of this Group. # noqa: E501
570569
571-
# noqa: E501
572570
573571
:return: The tags of this Group. # noqa: E501
574572
:rtype: list[str]
@@ -579,7 +577,6 @@ def tags(self):
579577
def tags(self, tags):
580578
"""Sets the tags of this Group.
581579
582-
# noqa: E501
583580
584581
:param tags: The tags of this Group. # noqa: E501
585582
:type tags: list[str]
@@ -614,7 +611,6 @@ def transfer_target_id(self, transfer_target_id):
614611
def galleries(self):
615612
"""Gets the galleries of this Group. # noqa: E501
616613
617-
# noqa: E501
618614
619615
:return: The galleries of this Group. # noqa: E501
620616
:rtype: list[GroupGallery]
@@ -625,7 +621,6 @@ def galleries(self):
625621
def galleries(self, galleries):
626622
"""Sets the galleries of this Group.
627623
628-
# noqa: E501
629624
630625
:param galleries: The galleries of this Group. # noqa: E501
631626
:type galleries: list[GroupGallery]

vrchatapi/models/group_my_member.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ def __init__(self, id=None, group_id=None, user_id=None, role_ids=None, accepted
114114
self.user_id = user_id
115115
if role_ids is not None:
116116
self.role_ids = role_ids
117-
if accepted_by_display_name is not None:
118-
self.accepted_by_display_name = accepted_by_display_name
117+
self.accepted_by_display_name = accepted_by_display_name
119118
if accepted_by_id is not None:
120119
self.accepted_by_id = accepted_by_id
121120
if created_at is not None:
@@ -137,8 +136,7 @@ def __init__(self, id=None, group_id=None, user_id=None, role_ids=None, accepted
137136
self.has2_fa = has2_fa
138137
if has_joined_from_purchase is not None:
139138
self.has_joined_from_purchase = has_joined_from_purchase
140-
if last_post_read_at is not None:
141-
self.last_post_read_at = last_post_read_at
139+
self.last_post_read_at = last_post_read_at
142140
if m_role_ids is not None:
143141
self.m_role_ids = m_role_ids
144142
if permissions is not None:

vrchatapi/models/instance_region.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ class InstanceRegion(object):
3535
USE = "use"
3636
EU = "eu"
3737
JP = "jp"
38+
UNKNOWN = "unknown"
3839

39-
allowable_values = [US, USE, EU, JP] # noqa: E501
40+
allowable_values = [US, USE, EU, JP, UNKNOWN] # noqa: E501
4041

4142
"""
4243
Attributes:

vrchatapi/models/user_exists.py

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,27 @@ class UserExists(object):
3636
and the value is json key in definition.
3737
"""
3838
openapi_types = {
39-
'user_exists': 'bool'
39+
'user_exists': 'bool',
40+
'name_ok': 'bool'
4041
}
4142

4243
attribute_map = {
43-
'user_exists': 'userExists'
44+
'user_exists': 'userExists',
45+
'name_ok': 'nameOk'
4446
}
4547

46-
def __init__(self, user_exists=False, local_vars_configuration=None): # noqa: E501
48+
def __init__(self, user_exists=False, name_ok=False, local_vars_configuration=None): # noqa: E501
4749
"""UserExists - a model defined in OpenAPI""" # noqa: E501
4850
if local_vars_configuration is None:
4951
local_vars_configuration = Configuration.get_default_copy()
5052
self.local_vars_configuration = local_vars_configuration
5153

5254
self._user_exists = None
55+
self._name_ok = None
5356
self.discriminator = None
5457

5558
self.user_exists = user_exists
59+
self.name_ok = name_ok
5660

5761
@property
5862
def user_exists(self):
@@ -79,6 +83,31 @@ def user_exists(self, user_exists):
7983

8084
self._user_exists = user_exists
8185

86+
@property
87+
def name_ok(self):
88+
"""Gets the name_ok of this UserExists. # noqa: E501
89+
90+
Is the username valid? # noqa: E501
91+
92+
:return: The name_ok of this UserExists. # noqa: E501
93+
:rtype: bool
94+
"""
95+
return self._name_ok
96+
97+
@name_ok.setter
98+
def name_ok(self, name_ok):
99+
"""Sets the name_ok of this UserExists.
100+
101+
Is the username valid? # noqa: E501
102+
103+
:param name_ok: The name_ok of this UserExists. # noqa: E501
104+
:type name_ok: bool
105+
"""
106+
if self.local_vars_configuration.client_side_validation and name_ok is None: # noqa: E501
107+
raise ValueError("Invalid value for `name_ok`, must not be `None`") # noqa: E501
108+
109+
self._name_ok = name_ok
110+
82111
def to_dict(self, serialize=False):
83112
"""Returns the model properties as a dict"""
84113
result = {}

vrchatapi/models/user_subscription.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class UserSubscription(object):
4646
'tier': 'float',
4747
'active': 'bool',
4848
'status': 'TransactionStatus',
49-
'starts': 'datetime',
49+
'starts': 'str',
5050
'expires': 'datetime',
5151
'created_at': 'datetime',
5252
'updated_at': 'datetime',
@@ -361,7 +361,7 @@ def starts(self):
361361
362362
363363
:return: The starts of this UserSubscription. # noqa: E501
364-
:rtype: datetime
364+
:rtype: str
365365
"""
366366
return self._starts
367367

@@ -371,7 +371,7 @@ def starts(self, starts):
371371
372372
373373
:param starts: The starts of this UserSubscription. # noqa: E501
374-
:type starts: datetime
374+
:type starts: str
375375
"""
376376

377377
self._starts = starts

0 commit comments

Comments
 (0)