Skip to content

Commit 4968235

Browse files
committed
Upgrade Python SDK to spec 1.21.1.dev12
1 parent 4989230 commit 4968235

14 files changed

Lines changed: 240 additions & 31 deletions

‎.openapi-generator/FILES‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ docs/CreateProductRequest.md
8888
docs/CreatePropRequest.md
8989
docs/CreateWorldRequest.md
9090
docs/CurrentUser.md
91-
docs/CurrentUserPlatformHistoryInner.md
9291
docs/CurrentUserPresence.md
9392
docs/DeclineGroupInviteRequest.md
9493
docs/DeveloperType.md
@@ -262,6 +261,7 @@ docs/PerformanceRatings.md
262261
docs/Permission.md
263262
docs/PermissionData.md
264263
docs/PlatformBuildInfo.md
264+
docs/PlatformHistoryEntry.md
265265
docs/PlayerModeration.md
266266
docs/PlayerModerationType.md
267267
docs/PlayermoderationApi.md
@@ -504,7 +504,6 @@ vrchatapi/models/create_product_request.py
504504
vrchatapi/models/create_prop_request.py
505505
vrchatapi/models/create_world_request.py
506506
vrchatapi/models/current_user.py
507-
vrchatapi/models/current_user_platform_history_inner.py
508507
vrchatapi/models/current_user_presence.py
509508
vrchatapi/models/decline_group_invite_request.py
510509
vrchatapi/models/developer_type.py
@@ -667,6 +666,7 @@ vrchatapi/models/performance_ratings.py
667666
vrchatapi/models/permission.py
668667
vrchatapi/models/permission_data.py
669668
vrchatapi/models/platform_build_info.py
669+
vrchatapi/models/platform_history_entry.py
670670
vrchatapi/models/player_moderation.py
671671
vrchatapi/models/player_moderation_type.py
672672
vrchatapi/models/print_files.py

‎docs/APIConfigProfileDefaults.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# APIConfigProfileDefaults
22

3-
Default profile theme colours, each a hex RGB triplet without a leading `#`.
3+
Default profile theme colors.
44

55
## Properties
66
Name | Type | Description | Notes

‎docs/CurrentUser.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**age_verification_status** | [**AgeVerificationStatus**](AgeVerificationStatus.md) | |
1313
**age_verified** | **bool** | `true` if, user is age verified (not 18+). |
1414
**allow_avatar_copying** | **bool** | |
15-
**apple_details** | **object** | | [optional]
15+
**apple_details** | **object** | Details of an account on another service linked to this one. | [optional]
1616
**apple_id** | **str** | | [optional]
1717
**auth_token** | **str** | The auth token for NEWLY REGISTERED ACCOUNTS ONLY (/auth/register) | [optional]
1818
**banner_color** | **str** | Six hexadecimal digits, without a leading `#`. May be empty. | [optional]
@@ -35,7 +35,7 @@ Name | Type | Description | Notes
3535
**friend_key** | **str** | |
3636
**friend_request_status** | **str** | State of a friend request between the caller and this user. VRChat sends the string `\"null\"`, not JSON `null`. | [optional]
3737
**friends** | **list[str]** | |
38-
**google_details** | **object** | | [optional]
38+
**google_details** | **object** | Details of an account on another service linked to this one. | [optional]
3939
**google_id** | **str** | | [optional]
4040
**has_birthday** | **bool** | |
4141
**has_discord_friends_opt_out** | **bool** | | [optional]
@@ -70,7 +70,7 @@ Name | Type | Description | Notes
7070
**personalization_opt_out** | **bool** | | [optional]
7171
**pico_id** | **str** | | [optional]
7272
**platform** | **str** | | [optional]
73-
**platform_history** | [**list[CurrentUserPlatformHistoryInner]**](CurrentUserPlatformHistoryInner.md) | | [optional]
73+
**platform_history** | [**list[PlatformHistoryEntry]**](PlatformHistoryEntry.md) | | [optional]
7474
**presence** | [**CurrentUserPresence**](CurrentUserPresence.md) | | [optional]
7575
**profile_effect** | **str** | | [optional]
7676
**pronouns** | **str** | |
@@ -82,14 +82,14 @@ Name | Type | Description | Notes
8282
**status_description** | **str** | |
8383
**status_first_time** | **bool** | |
8484
**status_history** | **list[str]** | |
85-
**steam_details** | **object** | |
85+
**steam_details** | **object** | Details of an account on another service linked to this one. |
8686
**steam_id** | **str** | |
8787
**tags** | **list[str]** | |
8888
**temporary_expiry_date** | **object** | | [optional]
8989
**traveling_to_instance** | **str** | | [optional]
9090
**traveling_to_location** | **str** | | [optional]
9191
**traveling_to_world** | **str** | | [optional]
92-
**twitch_details** | **object** | | [optional]
92+
**twitch_details** | **object** | Details of an account on another service linked to this one. | [optional]
9393
**twitch_id** | **str** | | [optional]
9494
**two_factor_auth_enabled** | **bool** | |
9595
**two_factor_auth_enabled_date** | **datetime** | | [optional]

‎docs/InventoryApi.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Method | HTTP request | Description
77
[**consume_own_inventory_item**](InventoryApi.md#consume_own_inventory_item) | **PUT** /inventory/{inventoryItemId}/consume | Consume Own Inventory Item
88
[**delete_own_inventory_item**](InventoryApi.md#delete_own_inventory_item) | **DELETE** /inventory/{inventoryItemId} | Delete Own Inventory Item
99
[**equip_own_inventory_item**](InventoryApi.md#equip_own_inventory_item) | **PUT** /inventory/{inventoryItemId}/equip | Equip Own Inventory Item
10-
[**get_cosmetic_index**](InventoryApi.md#get_cosmetic_index) | **GET** /cosmetics/index/{itemType} | List Cosmetics
10+
[**get_cosmetics**](InventoryApi.md#get_cosmetics) | **GET** /cosmetics/index/{itemType} | List Cosmetics
1111
[**get_inventory**](InventoryApi.md#get_inventory) | **GET** /inventory | Get Inventory
1212
[**get_inventory_collections**](InventoryApi.md#get_inventory_collections) | **GET** /inventory/collections | List Inventory Collections
1313
[**get_inventory_drops**](InventoryApi.md#get_inventory_drops) | **GET** /inventory/drops | List Inventory Drops
@@ -249,8 +249,8 @@ Name | Type | Description | Notes
249249

250250
[[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)
251251

252-
# **get_cosmetic_index**
253-
> list[InventoryTemplate] get_cosmetic_index(item_type)
252+
# **get_cosmetics**
253+
> list[InventoryTemplate] get_cosmetics(item_type)
254254
255255
List Cosmetics
256256

@@ -290,10 +290,10 @@ with vrchatapi.ApiClient(configuration) as api_client:
290290

291291
try:
292292
# List Cosmetics
293-
api_response = api_instance.get_cosmetic_index(item_type)
293+
api_response = api_instance.get_cosmetics(item_type)
294294
pprint(api_response)
295295
except ApiException as e:
296-
print("Exception when calling InventoryApi->get_cosmetic_index: %s\n" % e)
296+
print("Exception when calling InventoryApi->get_cosmetics: %s\n" % e)
297297
```
298298

299299
### Parameters

‎docs/PlatformHistoryEntry.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# PlatformHistoryEntry
2+
3+
A platform the user was recorded on, and when.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**is_mobile** | **bool** | | [optional]
9+
**platform** | **str** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional]
10+
**recorded** | **datetime** | | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

‎docs/User.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**age_verification_status** | [**AgeVerificationStatus**](AgeVerificationStatus.md) | |
1212
**age_verified** | **bool** | `true` if, user is age verified (not 18+). |
1313
**allow_avatar_copying** | **bool** | | [default to True]
14-
**apple_details** | **dict(str, object)** | | [optional]
14+
**apple_details** | **object** | Details of an account on another service linked to this one. | [optional]
1515
**banner_color** | **str** | Six hexadecimal digits, without a leading `#`. May be empty. | [optional]
1616
**banner_type** | **str** | | [optional]
1717
**banner_url** | **str** | | [optional]

‎docs/WorldFavoriteList.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WorldFavoriteList
22

3-
A world favorite group summarised for a public profile, with a sample of its worlds' thumbnails.
3+
A world favorite group as a public profile lists it, with a sample of its worlds' thumbnails.
44

55
## Properties
66
Name | Type | Description | Notes

‎setup.py‎

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

9494
NAME = "vrchatapi"
95-
VERSION = "1.21.1.dev7"
95+
VERSION = "1.21.1.dev12"
9696
# To install the library, run the following
9797
#
9898
# python setup.py install

‎vrchatapi/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
from vrchatapi.models.create_prop_request import CreatePropRequest
134134
from vrchatapi.models.create_world_request import CreateWorldRequest
135135
from vrchatapi.models.current_user import CurrentUser
136-
from vrchatapi.models.current_user_platform_history_inner import CurrentUserPlatformHistoryInner
137136
from vrchatapi.models.current_user_presence import CurrentUserPresence
138137
from vrchatapi.models.decline_group_invite_request import DeclineGroupInviteRequest
139138
from vrchatapi.models.developer_type import DeveloperType
@@ -296,6 +295,7 @@
296295
from vrchatapi.models.permission import Permission
297296
from vrchatapi.models.permission_data import PermissionData
298297
from vrchatapi.models.platform_build_info import PlatformBuildInfo
298+
from vrchatapi.models.platform_history_entry import PlatformHistoryEntry
299299
from vrchatapi.models.player_moderation import PlayerModeration
300300
from vrchatapi.models.player_moderation_type import PlayerModerationType
301301
from vrchatapi.models.print_files import PrintFiles

‎vrchatapi/api/inventory_api.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -467,14 +467,14 @@ def equip_own_inventory_item_with_http_info(self, inventory_item_id, **kwargs):
467467
collection_formats=collection_formats,
468468
_request_auth=local_var_params.get('_request_auth'))
469469

470-
def get_cosmetic_index(self, item_type, **kwargs): # noqa: E501
470+
def get_cosmetics(self, item_type, **kwargs): # noqa: E501
471471
"""List Cosmetics # noqa: E501
472472
473473
List every cosmetic of a kind that VRChat has published, whether or not the caller owns it. # noqa: E501
474474
This method makes a synchronous HTTP request by default. To make an
475475
asynchronous HTTP request, please pass async_req=True
476476
477-
>>> thread = api.get_cosmetic_index(item_type, async_req=True)
477+
>>> thread = api.get_cosmetics(item_type, async_req=True)
478478
>>> result = thread.get()
479479
480480
:param item_type: The kind of cosmetic to list. (required)
@@ -495,16 +495,16 @@ def get_cosmetic_index(self, item_type, **kwargs): # noqa: E501
495495
:rtype: list[InventoryTemplate]
496496
"""
497497
kwargs['_return_http_data_only'] = True
498-
return self.get_cosmetic_index_with_http_info(item_type, **kwargs) # noqa: E501
498+
return self.get_cosmetics_with_http_info(item_type, **kwargs) # noqa: E501
499499

500-
def get_cosmetic_index_with_http_info(self, item_type, **kwargs): # noqa: E501
500+
def get_cosmetics_with_http_info(self, item_type, **kwargs): # noqa: E501
501501
"""List Cosmetics # noqa: E501
502502
503503
List every cosmetic of a kind that VRChat has published, whether or not the caller owns it. # noqa: E501
504504
This method makes a synchronous HTTP request by default. To make an
505505
asynchronous HTTP request, please pass async_req=True
506506
507-
>>> thread = api.get_cosmetic_index_with_http_info(item_type, async_req=True)
507+
>>> thread = api.get_cosmetics_with_http_info(item_type, async_req=True)
508508
>>> result = thread.get()
509509
510510
:param item_type: The kind of cosmetic to list. (required)
@@ -554,13 +554,13 @@ def get_cosmetic_index_with_http_info(self, item_type, **kwargs): # noqa: E501
554554
if key not in all_params:
555555
raise ApiTypeError(
556556
"Got an unexpected keyword argument '%s'"
557-
" to method get_cosmetic_index" % key
557+
" to method get_cosmetics" % key
558558
)
559559
local_var_params[key] = val
560560
del local_var_params['kwargs']
561561
# verify the required parameter 'item_type' is set
562562
if self.api_client.client_side_validation and local_var_params.get('item_type') is None: # noqa: E501
563-
raise ApiValueError("Missing the required parameter `item_type` when calling `get_cosmetic_index`") # noqa: E501
563+
raise ApiValueError("Missing the required parameter `item_type` when calling `get_cosmetics`") # noqa: E501
564564

565565
collection_formats = {}
566566

0 commit comments

Comments
 (0)