Skip to content

Commit

Permalink
Upgrade Python SDK to spec 1.16.7
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Mar 22, 2024
1 parent 6377dc7 commit 1e60e4a
Show file tree
Hide file tree
Showing 150 changed files with 219 additions and 169 deletions.
16 changes: 12 additions & 4 deletions docs/GroupsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_group_invites**
> list[GroupMember] get_group_invites(group_id)
> list[GroupMember] get_group_invites(group_id, n=n, offset=offset)
Get Group Invites Sent

Expand Down Expand Up @@ -1629,10 +1629,12 @@ with vrchatapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = vrchatapi.GroupsApi(api_client)
group_id = 'grp_00000000-0000-0000-0000-000000000000' # str | Must be a valid group ID.
n = 60 # int | The number of objects to return. (optional) (default to 60)
offset = 56 # int | A zero-based offset from the default object sorting from where search results start. (optional)

try:
# Get Group Invites Sent
api_response = api_instance.get_group_invites(group_id)
api_response = api_instance.get_group_invites(group_id, n=n, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->get_group_invites: %s\n" % e)
Expand All @@ -1643,6 +1645,8 @@ with vrchatapi.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**group_id** | **str**| Must be a valid group ID. |
**n** | **int**| The number of objects to return. | [optional] [default to 60]
**offset** | **int**| A zero-based offset from the default object sorting from where search results start. | [optional]

### Return type

Expand Down Expand Up @@ -1903,7 +1907,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_group_requests**
> list[GroupMember] get_group_requests(group_id)
> list[GroupMember] get_group_requests(group_id, n=n, offset=offset)
Get Group Join Requests

Expand Down Expand Up @@ -1940,10 +1944,12 @@ with vrchatapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = vrchatapi.GroupsApi(api_client)
group_id = 'grp_00000000-0000-0000-0000-000000000000' # str | Must be a valid group ID.
n = 60 # int | The number of objects to return. (optional) (default to 60)
offset = 56 # int | A zero-based offset from the default object sorting from where search results start. (optional)

try:
# Get Group Join Requests
api_response = api_instance.get_group_requests(group_id)
api_response = api_instance.get_group_requests(group_id, n=n, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupsApi->get_group_requests: %s\n" % e)
Expand All @@ -1954,6 +1960,8 @@ with vrchatapi.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**group_id** | **str**| Must be a valid group ID. |
**n** | **int**| The number of objects to return. | [optional] [default to 60]
**offset** | **int**| A zero-based offset from the default object sorting from where search results start. | [optional]

### Return type

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@openapitools/openapi-generator-cli": "^2.9.0"
"@openapitools/openapi-generator-cli": "^2.13.1"
}
}
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
# Enter a context with an instance of the API client
with vrchatapi.ApiClient(configuration) as api_client:
# Set our User-Agent as per VRChat Usage Policy
api_client.user_agent = "MyProject/1.0 [email protected]"
# Instantiate instances of API classes
auth_api = authentication_api.AuthenticationApi(api_client)
Expand All @@ -73,15 +75,15 @@
print("Logged in as:", current_user.display_name)
```
See [example.py](https://github.com/vrchatapi/vrchatapi-python/blob/main/example.py) for more example usage on getting started.
See [Examples](https://github.com/vrchatapi/vrchatapi-python/blob/main/examples/README.md) for more example usage on getting started.
## Contributing
Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand All @@ -90,7 +92,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "vrchatapi"
VERSION = "1.16.6"
VERSION = "1.16.7"
# To install the library, run the following
#
# python setup.py install
Expand Down Expand Up @@ -160,6 +162,8 @@
# Enter a context with an instance of the API client
with vrchatapi.ApiClient(configuration) as api_client:
# Set our User-Agent as per VRChat Usage Policy
api_client.user_agent = "MyProject/1.0 [email protected]"
# Instantiate instances of API classes
auth_api = authentication_api.AuthenticationApi(api_client)
Expand All @@ -184,7 +188,7 @@
print("Logged in as:", current_user.display_name)
```
See [example.py](https://github.com/vrchatapi/vrchatapi-python/blob/main/example.py) for more example usage on getting started.
See [Examples](https://github.com/vrchatapi/vrchatapi-python/blob/main/examples/README.md) for more example usage on getting started.
## Contributing
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/authentication_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/avatars_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/economy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/favorites_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/friends_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
46 changes: 43 additions & 3 deletions vrchatapi/api/groups_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -3089,6 +3089,10 @@ def get_group_invites(self, group_id, **kwargs): # noqa: E501
:param group_id: Must be a valid group ID. (required)
:type group_id: str
:param n: The number of objects to return.
:type n: int
:param offset: A zero-based offset from the default object sorting from where search results start.
:type offset: int
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -3119,6 +3123,10 @@ def get_group_invites_with_http_info(self, group_id, **kwargs): # noqa: E501
:param group_id: Must be a valid group ID. (required)
:type group_id: str
:param n: The number of objects to return.
:type n: int
:param offset: A zero-based offset from the default object sorting from where search results start.
:type offset: int
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down Expand Up @@ -3146,7 +3154,9 @@ def get_group_invites_with_http_info(self, group_id, **kwargs): # noqa: E501
local_var_params = locals()

all_params = [
'group_id'
'group_id',
'n',
'offset'
]
all_params.extend(
[
Expand All @@ -3172,13 +3182,23 @@ def get_group_invites_with_http_info(self, group_id, **kwargs): # noqa: E501
if self.api_client.client_side_validation and local_var_params.get('group_id') is None: # noqa: E501
raise ApiValueError("Missing the required parameter `group_id` when calling `get_group_invites`") # noqa: E501

if self.api_client.client_side_validation and 'n' in local_var_params and local_var_params['n'] > 100: # noqa: E501
raise ApiValueError("Invalid value for parameter `n` when calling `get_group_invites`, must be a value less than or equal to `100`") # noqa: E501
if self.api_client.client_side_validation and 'n' in local_var_params and local_var_params['n'] < 1: # noqa: E501
raise ApiValueError("Invalid value for parameter `n` when calling `get_group_invites`, must be a value greater than or equal to `1`") # noqa: E501
if self.api_client.client_side_validation and 'offset' in local_var_params and local_var_params['offset'] < 0: # noqa: E501
raise ApiValueError("Invalid value for parameter `offset` when calling `get_group_invites`, must be a value greater than or equal to `0`") # noqa: E501
collection_formats = {}

path_params = {}
if 'group_id' in local_var_params:
path_params['groupId'] = local_var_params['group_id'] # noqa: E501

query_params = []
if local_var_params.get('n') is not None: # noqa: E501
query_params.append(('n', local_var_params['n'])) # noqa: E501
if local_var_params.get('offset') is not None: # noqa: E501
query_params.append(('offset', local_var_params['offset'])) # noqa: E501

header_params = dict(local_var_params.get('_headers', {}))

Expand Down Expand Up @@ -3685,6 +3705,10 @@ def get_group_requests(self, group_id, **kwargs): # noqa: E501
:param group_id: Must be a valid group ID. (required)
:type group_id: str
:param n: The number of objects to return.
:type n: int
:param offset: A zero-based offset from the default object sorting from where search results start.
:type offset: int
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -3715,6 +3739,10 @@ def get_group_requests_with_http_info(self, group_id, **kwargs): # noqa: E501
:param group_id: Must be a valid group ID. (required)
:type group_id: str
:param n: The number of objects to return.
:type n: int
:param offset: A zero-based offset from the default object sorting from where search results start.
:type offset: int
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down Expand Up @@ -3742,7 +3770,9 @@ def get_group_requests_with_http_info(self, group_id, **kwargs): # noqa: E501
local_var_params = locals()

all_params = [
'group_id'
'group_id',
'n',
'offset'
]
all_params.extend(
[
Expand All @@ -3768,13 +3798,23 @@ def get_group_requests_with_http_info(self, group_id, **kwargs): # noqa: E501
if self.api_client.client_side_validation and local_var_params.get('group_id') is None: # noqa: E501
raise ApiValueError("Missing the required parameter `group_id` when calling `get_group_requests`") # noqa: E501

if self.api_client.client_side_validation and 'n' in local_var_params and local_var_params['n'] > 100: # noqa: E501
raise ApiValueError("Invalid value for parameter `n` when calling `get_group_requests`, must be a value less than or equal to `100`") # noqa: E501
if self.api_client.client_side_validation and 'n' in local_var_params and local_var_params['n'] < 1: # noqa: E501
raise ApiValueError("Invalid value for parameter `n` when calling `get_group_requests`, must be a value greater than or equal to `1`") # noqa: E501
if self.api_client.client_side_validation and 'offset' in local_var_params and local_var_params['offset'] < 0: # noqa: E501
raise ApiValueError("Invalid value for parameter `offset` when calling `get_group_requests`, must be a value greater than or equal to `0`") # noqa: E501
collection_formats = {}

path_params = {}
if 'group_id' in local_var_params:
path_params['groupId'] = local_var_params['group_id'] # noqa: E501

query_params = []
if local_var_params.get('n') is not None: # noqa: E501
query_params.append(('n', local_var_params['n'])) # noqa: E501
if local_var_params.get('offset') is not None: # noqa: E501
query_params.append(('offset', local_var_params['offset'])) # noqa: E501

header_params = dict(local_var_params.get('_headers', {}))

Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/instances_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/invite_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/notifications_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/permissions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/playermoderation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion vrchatapi/api/system_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
VRChat API Documentation
The version of the OpenAPI document: 1.16.6
The version of the OpenAPI document: 1.16.7
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Loading

0 comments on commit 1e60e4a

Please sign in to comment.