Skip to content

Commit 1ab966c

Browse files
committed
Upgrade Python SDK to spec 1.16.6
1 parent 23e8977 commit 1ab966c

File tree

153 files changed

+939
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+939
-171
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ docs/PlayerModerationType.md
9999
docs/PlayermoderationApi.md
100100
docs/Region.md
101101
docs/ReleaseStatus.md
102+
docs/RepresentedGroup.md
102103
docs/RequestInviteRequest.md
103104
docs/RespondGroupJoinRequest.md
104105
docs/Response.md
@@ -253,6 +254,7 @@ vrchatapi/models/player_moderation.py
253254
vrchatapi/models/player_moderation_type.py
254255
vrchatapi/models/region.py
255256
vrchatapi/models/release_status.py
257+
vrchatapi/models/represented_group.py
256258
vrchatapi/models/request_invite_request.py
257259
vrchatapi/models/respond_group_join_request.py
258260
vrchatapi/models/response.py

docs/CreateAvatarRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**release_status** | [**ReleaseStatus**](ReleaseStatus.md) | | [optional]
1414
**version** | **float** | | [optional] [default to 1]
1515
**unity_package_url** | **str** | | [optional]
16+
**unity_version** | **str** | | [optional] [default to '5.3.4p1']
1617

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

docs/GroupAuditLogEntry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**created_at** | **datetime** | | [optional]
99
**group_id** | **str** | | [optional]
1010
**actor_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]
11-
**actor_displayname** | **str** | | [optional]
11+
**actor_display_name** | **str** | | [optional]
1212
**target_id** | **str** | Typically GroupID or GroupRoleID, but could be other types of IDs. | [optional]
1313
**event_type** | **str** | The type of event that occurred. This is a string that is prefixed with the type of object that the event occurred on. For example, a group role update event would be prefixed with `group.role`. | [optional] [default to 'group.update']
1414
**description** | **str** | A human-readable description of the event. | [optional]

docs/RepresentedGroup.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# RepresentedGroup
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **str** | | [optional]
8+
**short_code** | **str** | | [optional]
9+
**discriminator** | **str** | | [optional]
10+
**description** | **str** | | [optional]
11+
**icon_id** | **str** | | [optional]
12+
**icon_url** | **str** | | [optional]
13+
**banner_id** | **str** | | [optional]
14+
**banner_url** | **str** | | [optional]
15+
**privacy** | [**GroupPrivacy**](GroupPrivacy.md) | | [optional]
16+
**owner_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]
17+
**member_count** | **int** | | [optional]
18+
**group_id** | **str** | | [optional]
19+
**member_visibility** | [**GroupUserVisibility**](GroupUserVisibility.md) | | [optional]
20+
**is_representing** | **bool** | | [optional]
21+
22+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
23+
24+

docs/UpdateAvatarRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**release_status** | [**ReleaseStatus**](ReleaseStatus.md) | | [optional]
1414
**version** | **float** | | [optional] [default to 1]
1515
**unity_package_url** | **str** | | [optional]
16+
**unity_version** | **str** | | [optional] [default to '5.3.4p1']
1617

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

docs/UsersApi.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**get_user_by_name**](UsersApi.md#get_user_by_name) | **GET** /users/{username}/name | Get User by Username
99
[**get_user_group_requests**](UsersApi.md#get_user_group_requests) | **GET** /users/{userId}/groups/requested | Get User Group Requests
1010
[**get_user_groups**](UsersApi.md#get_user_groups) | **GET** /users/{userId}/groups | Get User Groups
11+
[**get_user_represented_group**](UsersApi.md#get_user_represented_group) | **GET** /users/{userId}/groups/represented | Get user's current represented group
1112
[**search_users**](UsersApi.md#search_users) | **GET** /users | Search All Users
1213
[**update_user**](UsersApi.md#update_user) | **PUT** /users/{userId} | Update User Info
1314

@@ -308,6 +309,80 @@ Name | Type | Description | Notes
308309

309310
[[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)
310311

312+
# **get_user_represented_group**
313+
> RepresentedGroup get_user_represented_group(user_id)
314+
315+
Get user's current represented group
316+
317+
Returns the current group that the user is currently representing
318+
319+
### Example
320+
321+
* Api Key Authentication (authCookie):
322+
```python
323+
from __future__ import print_function
324+
import time
325+
import vrchatapi
326+
from vrchatapi.rest import ApiException
327+
from pprint import pprint
328+
# Defining the host is optional and defaults to https://api.vrchat.cloud/api/1
329+
# See configuration.py for a list of all supported configuration parameters.
330+
configuration = vrchatapi.Configuration(
331+
host = "https://api.vrchat.cloud/api/1"
332+
)
333+
334+
# The client must configure the authentication and authorization parameters
335+
# in accordance with the API server security policy.
336+
# Examples for each auth method are provided below, use the example that
337+
# satisfies your auth use case.
338+
339+
# Configure API key authorization: authCookie
340+
configuration.api_key['authCookie'] = 'YOUR_API_KEY'
341+
342+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
343+
# configuration.api_key_prefix['authCookie'] = 'Bearer'
344+
345+
# Enter a context with an instance of the API client
346+
with vrchatapi.ApiClient(configuration) as api_client:
347+
# Create an instance of the API class
348+
api_instance = vrchatapi.UsersApi(api_client)
349+
user_id = 'user_id_example' # str | Must be a valid user ID.
350+
351+
try:
352+
# Get user's current represented group
353+
api_response = api_instance.get_user_represented_group(user_id)
354+
pprint(api_response)
355+
except ApiException as e:
356+
print("Exception when calling UsersApi->get_user_represented_group: %s\n" % e)
357+
```
358+
359+
### Parameters
360+
361+
Name | Type | Description | Notes
362+
------------- | ------------- | ------------- | -------------
363+
**user_id** | **str**| Must be a valid user ID. |
364+
365+
### Return type
366+
367+
[**RepresentedGroup**](RepresentedGroup.md)
368+
369+
### Authorization
370+
371+
[authCookie](../README.md#authCookie)
372+
373+
### HTTP request headers
374+
375+
- **Content-Type**: Not defined
376+
- **Accept**: application/json
377+
378+
### HTTP response details
379+
| Status code | Description | Response headers |
380+
|-------------|-------------|------------------|
381+
**200** | OK | - |
382+
**401** | Error response due to missing auth cookie. | - |
383+
384+
[[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)
385+
311386
# **search_users**
312387
> list[LimitedUser] search_users(search=search, developer_type=developer_type, n=n, offset=offset)
313388

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
8282
Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.
8383
84-
The version of the OpenAPI document: 1.16.5
84+
The version of the OpenAPI document: 1.16.6
8585
Contact: vrchatapi.lpv0t@aries.fyi
8686
Generated by: https://openapi-generator.tech
8787
"""
@@ -90,7 +90,7 @@
9090
from setuptools import setup, find_packages # noqa: H301
9191

9292
NAME = "vrchatapi"
93-
VERSION = "1.16.5"
93+
VERSION = "1.16.6"
9494
# To install the library, run the following
9595
#
9696
# python setup.py install

vrchatapi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
VRChat API Documentation
77
88
9-
The version of the OpenAPI document: 1.16.5
9+
The version of the OpenAPI document: 1.16.6
1010
Contact: vrchatapi.lpv0t@aries.fyi
1111
Generated by: https://openapi-generator.tech
1212
"""
@@ -131,6 +131,7 @@
131131
from vrchatapi.models.player_moderation_type import PlayerModerationType
132132
from vrchatapi.models.region import Region
133133
from vrchatapi.models.release_status import ReleaseStatus
134+
from vrchatapi.models.represented_group import RepresentedGroup
134135
from vrchatapi.models.request_invite_request import RequestInviteRequest
135136
from vrchatapi.models.respond_group_join_request import RespondGroupJoinRequest
136137
from vrchatapi.models.response import Response

vrchatapi/api/authentication_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VRChat API Documentation
55
66
7-
The version of the OpenAPI document: 1.16.5
7+
The version of the OpenAPI document: 1.16.6
88
Contact: vrchatapi.lpv0t@aries.fyi
99
Generated by: https://openapi-generator.tech
1010
"""

vrchatapi/api/avatars_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VRChat API Documentation
55
66
7-
The version of the OpenAPI document: 1.16.5
7+
The version of the OpenAPI document: 1.16.6
88
Contact: vrchatapi.lpv0t@aries.fyi
99
Generated by: https://openapi-generator.tech
1010
"""

0 commit comments

Comments
 (0)