mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Upgrade Rust SDK to spec 1.5.0
This commit is contained in:
@ -1,11 +1,17 @@
|
||||
.travis.yml
|
||||
Cargo.toml
|
||||
docs/AddFavoriteRequest.md
|
||||
docs/ApiConfig.md
|
||||
docs/ApiEventConfig.md
|
||||
docs/ApiHealth.md
|
||||
docs/AuthenticationApi.md
|
||||
docs/Avatar.md
|
||||
docs/AvatarUnityPackageUrlObject.md
|
||||
docs/AvatarsApi.md
|
||||
docs/CreateAvatarRequest.md
|
||||
docs/CreateFileRequest.md
|
||||
docs/CreateFileVersionRequest.md
|
||||
docs/CreateWorldRequest.md
|
||||
docs/CurrentUser.md
|
||||
docs/DeploymentGroup.md
|
||||
docs/DeveloperType.md
|
||||
@ -20,32 +26,13 @@ docs/FavoritesApi.md
|
||||
docs/File.md
|
||||
docs/FileData.md
|
||||
docs/FileStatus.md
|
||||
docs/FileUploadUrl.md
|
||||
docs/FileVersion.md
|
||||
docs/FileVersionUploadStatus.md
|
||||
docs/FilesApi.md
|
||||
docs/FinishFileDataUploadRequest.md
|
||||
docs/FriendStatus.md
|
||||
docs/FriendsApi.md
|
||||
docs/InlineObject.md
|
||||
docs/InlineObject1.md
|
||||
docs/InlineObject10.md
|
||||
docs/InlineObject11.md
|
||||
docs/InlineObject12.md
|
||||
docs/InlineObject13.md
|
||||
docs/InlineObject2.md
|
||||
docs/InlineObject3.md
|
||||
docs/InlineObject4.md
|
||||
docs/InlineObject5.md
|
||||
docs/InlineObject6.md
|
||||
docs/InlineObject7.md
|
||||
docs/InlineObject8.md
|
||||
docs/InlineObject9.md
|
||||
docs/InlineResponse200.md
|
||||
docs/InlineResponse2001.md
|
||||
docs/InlineResponse2002.md
|
||||
docs/InlineResponse2003.md
|
||||
docs/InlineResponse2004.md
|
||||
docs/InlineResponse2005.md
|
||||
docs/InlineResponse2006.md
|
||||
docs/InlineResponse400.md
|
||||
docs/Instance.md
|
||||
docs/InstancePlatforms.md
|
||||
docs/InviteApi.md
|
||||
@ -57,6 +44,7 @@ docs/LimitedUnityPackage.md
|
||||
docs/LimitedUser.md
|
||||
docs/LimitedWorld.md
|
||||
docs/MimeType.md
|
||||
docs/ModerateUserRequest.md
|
||||
docs/Notification.md
|
||||
docs/NotificationType.md
|
||||
docs/NotificationsApi.md
|
||||
@ -71,13 +59,22 @@ docs/ReleaseStatus.md
|
||||
docs/Response.md
|
||||
docs/Success.md
|
||||
docs/SystemApi.md
|
||||
docs/TwoFactorAuthCode.md
|
||||
docs/UnityPackage.md
|
||||
docs/UpdateAvatarRequest.md
|
||||
docs/UpdateFavoriteGroupRequest.md
|
||||
docs/UpdateUserRequest.md
|
||||
docs/UpdateWorldRequest.md
|
||||
docs/User.md
|
||||
docs/UserExists.md
|
||||
docs/UserState.md
|
||||
docs/UserStatus.md
|
||||
docs/UsersApi.md
|
||||
docs/Verify2FaResult.md
|
||||
docs/VerifyAuthTokenResult.md
|
||||
docs/World.md
|
||||
docs/WorldMetadata.md
|
||||
docs/WorldPublishStatus.md
|
||||
docs/WorldsApi.md
|
||||
git_push.sh
|
||||
src/apis/authentication_api.rs
|
||||
@ -95,10 +92,16 @@ src/apis/system_api.rs
|
||||
src/apis/users_api.rs
|
||||
src/apis/worlds_api.rs
|
||||
src/lib.rs
|
||||
src/models/add_favorite_request.rs
|
||||
src/models/api_config.rs
|
||||
src/models/api_event_config.rs
|
||||
src/models/api_health.rs
|
||||
src/models/avatar.rs
|
||||
src/models/avatar_unity_package_url_object.rs
|
||||
src/models/create_avatar_request.rs
|
||||
src/models/create_file_request.rs
|
||||
src/models/create_file_version_request.rs
|
||||
src/models/create_world_request.rs
|
||||
src/models/current_user.rs
|
||||
src/models/deployment_group.rs
|
||||
src/models/developer_type.rs
|
||||
@ -112,30 +115,11 @@ src/models/favorite_type.rs
|
||||
src/models/file.rs
|
||||
src/models/file_data.rs
|
||||
src/models/file_status.rs
|
||||
src/models/file_upload_url.rs
|
||||
src/models/file_version.rs
|
||||
src/models/file_version_upload_status.rs
|
||||
src/models/finish_file_data_upload_request.rs
|
||||
src/models/friend_status.rs
|
||||
src/models/inline_object.rs
|
||||
src/models/inline_object_1.rs
|
||||
src/models/inline_object_10.rs
|
||||
src/models/inline_object_11.rs
|
||||
src/models/inline_object_12.rs
|
||||
src/models/inline_object_13.rs
|
||||
src/models/inline_object_2.rs
|
||||
src/models/inline_object_3.rs
|
||||
src/models/inline_object_4.rs
|
||||
src/models/inline_object_5.rs
|
||||
src/models/inline_object_6.rs
|
||||
src/models/inline_object_7.rs
|
||||
src/models/inline_object_8.rs
|
||||
src/models/inline_object_9.rs
|
||||
src/models/inline_response_200.rs
|
||||
src/models/inline_response_200_1.rs
|
||||
src/models/inline_response_200_2.rs
|
||||
src/models/inline_response_200_3.rs
|
||||
src/models/inline_response_200_4.rs
|
||||
src/models/inline_response_200_5.rs
|
||||
src/models/inline_response_200_6.rs
|
||||
src/models/inline_response_400.rs
|
||||
src/models/instance.rs
|
||||
src/models/instance_platforms.rs
|
||||
src/models/invite_message.rs
|
||||
@ -147,6 +131,7 @@ src/models/limited_user.rs
|
||||
src/models/limited_world.rs
|
||||
src/models/mime_type.rs
|
||||
src/models/mod.rs
|
||||
src/models/moderate_user_request.rs
|
||||
src/models/notification.rs
|
||||
src/models/notification_type.rs
|
||||
src/models/past_display_name.rs
|
||||
@ -157,9 +142,18 @@ src/models/public_announcement.rs
|
||||
src/models/release_status.rs
|
||||
src/models/response.rs
|
||||
src/models/success.rs
|
||||
src/models/two_factor_auth_code.rs
|
||||
src/models/unity_package.rs
|
||||
src/models/update_avatar_request.rs
|
||||
src/models/update_favorite_group_request.rs
|
||||
src/models/update_user_request.rs
|
||||
src/models/update_world_request.rs
|
||||
src/models/user.rs
|
||||
src/models/user_exists.rs
|
||||
src/models/user_state.rs
|
||||
src/models/user_status.rs
|
||||
src/models/verify2_fa_result.rs
|
||||
src/models/verify_auth_token_result.rs
|
||||
src/models/world.rs
|
||||
src/models/world_metadata.rs
|
||||
src/models/world_publish_status.rs
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "vrchatapi"
|
||||
version = "1.4.2"
|
||||
version = "1.5.0"
|
||||
authors = ["OpenAPI Generator team and contributors"]
|
||||
license = "MIT"
|
||||
edition = "2018"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject8
|
||||
# AddFavoriteRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineResponse2002
|
||||
# ApiHealth
|
||||
|
||||
## Properties
|
||||
|
@ -133,7 +133,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
## verify2_fa
|
||||
|
||||
> crate::models::InlineResponse2001 verify2_fa(inline_object)
|
||||
> crate::models::Verify2FaResult verify2_fa(two_factor_auth_code)
|
||||
Verify 2FA code
|
||||
|
||||
Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
||||
@ -143,11 +143,11 @@ Finishes the login sequence with a normal 2FA-generated code for accounts with 2
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object** | Option<[**InlineObject**](InlineObject.md)> | | |
|
||||
**two_factor_auth_code** | Option<[**TwoFactorAuthCode**](TwoFactorAuthCode.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse2001**](inline_response_200_1.md)
|
||||
[**crate::models::Verify2FaResult**](Verify2FAResult.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -163,7 +163,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## verify_auth_token
|
||||
|
||||
> crate::models::InlineResponse200 verify_auth_token()
|
||||
> crate::models::VerifyAuthTokenResult verify_auth_token()
|
||||
Verify Auth Token
|
||||
|
||||
Verify whether the currently provided Auth Token is valid.
|
||||
@ -174,7 +174,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse200**](inline_response_200.md)
|
||||
[**crate::models::VerifyAuthTokenResult**](VerifyAuthTokenResult.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -190,7 +190,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
## verify_recovery_code
|
||||
|
||||
> crate::models::InlineResponse2001 verify_recovery_code(inline_object1)
|
||||
> crate::models::Verify2FaResult verify_recovery_code(two_factor_auth_code)
|
||||
Verify 2FA code with Recovery code
|
||||
|
||||
Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
||||
@ -200,11 +200,11 @@ Finishes the login sequence with an OTP (One Time Password) recovery code for ac
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object1** | Option<[**InlineObject1**](InlineObject1.md)> | | |
|
||||
**two_factor_auth_code** | Option<[**TwoFactorAuthCode**](TwoFactorAuthCode.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse2001**](inline_response_200_1.md)
|
||||
[**crate::models::Verify2FaResult**](Verify2FAResult.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
@ -10,13 +10,14 @@ Method | HTTP request | Description
|
||||
[**get_favorited_avatars**](AvatarsApi.md#get_favorited_avatars) | **GET** /avatars/favorites | List Favorited Avatars
|
||||
[**search_avatars**](AvatarsApi.md#search_avatars) | **GET** /avatars | Search Avatars
|
||||
[**select_avatar**](AvatarsApi.md#select_avatar) | **PUT** /avatars/{avatarId}/select | Select Avatar
|
||||
[**select_fallback_avatar**](AvatarsApi.md#select_fallback_avatar) | **PUT** /avatars/{avatarId}/selectFallback | Select Fallback Avatar
|
||||
[**update_avatar**](AvatarsApi.md#update_avatar) | **PUT** /avatars/{avatarId} | Update Avatar
|
||||
|
||||
|
||||
|
||||
## create_avatar
|
||||
|
||||
> crate::models::Avatar create_avatar(inline_object10)
|
||||
> crate::models::Avatar create_avatar(create_avatar_request)
|
||||
Create Avatar
|
||||
|
||||
Create an avatar. It's possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
|
||||
@ -26,7 +27,7 @@ Create an avatar. It's possible to optionally specify a ID if you want a custom
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object10** | Option<[**InlineObject10**](InlineObject10.md)> | | |
|
||||
**create_avatar_request** | Option<[**CreateAvatarRequest**](CreateAvatarRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -218,9 +219,39 @@ Name | Type | Description | Required | 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)
|
||||
|
||||
|
||||
## select_fallback_avatar
|
||||
|
||||
> crate::models::CurrentUser select_fallback_avatar(avatar_id)
|
||||
Select Fallback Avatar
|
||||
|
||||
Switches into that avatar as your fallback avatar.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**avatar_id** | **String** | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::CurrentUser**](CurrentUser.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[apiKeyCookie](../README.md#apiKeyCookie), [authCookie](../README.md#authCookie)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[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)
|
||||
|
||||
|
||||
## update_avatar
|
||||
|
||||
> crate::models::Avatar update_avatar(avatar_id, inline_object11)
|
||||
> crate::models::Avatar update_avatar(avatar_id, update_avatar_request)
|
||||
Update Avatar
|
||||
|
||||
Update information about a specific avatar.
|
||||
@ -231,7 +262,7 @@ Update information about a specific avatar.
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**avatar_id** | **String** | | [required] |
|
||||
**inline_object11** | Option<[**InlineObject11**](InlineObject11.md)> | | |
|
||||
**update_avatar_request** | Option<[**UpdateAvatarRequest**](UpdateAvatarRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject10
|
||||
# CreateAvatarRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject3
|
||||
# CreateFileRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject4
|
||||
# CreateFileVersionRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,14 +1,14 @@
|
||||
# InlineObject6
|
||||
# CreateWorldRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**asset_url** | **String** | |
|
||||
**asset_version** | Option<**String**> | | [optional]
|
||||
**asset_version** | Option<**i32**> | | [optional]
|
||||
**author_id** | Option<**String**> | | [optional]
|
||||
**author_name** | Option<**String**> | | [optional]
|
||||
**capacity** | Option<**i32**> | | [optional][default to 16]
|
||||
**capacity** | Option<**i32**> | | [optional]
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**id** | Option<**String**> | | [optional]
|
||||
**image_url** | **String** | |
|
@ -17,17 +17,17 @@ Method | HTTP request | Description
|
||||
|
||||
## add_favorite
|
||||
|
||||
> crate::models::Favorite add_favorite(inline_object8)
|
||||
> crate::models::Favorite add_favorite(add_favorite_request)
|
||||
Add Favorite
|
||||
|
||||
Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatar4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
||||
Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatars4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object8** | Option<[**InlineObject8**](InlineObject8.md)> | | |
|
||||
**add_favorite_request** | Option<[**AddFavoriteRequest**](AddFavoriteRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -236,7 +236,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## update_favorite_group
|
||||
|
||||
> update_favorite_group(favorite_group_type, favorite_group_name, user_id, inline_object9)
|
||||
> update_favorite_group(favorite_group_type, favorite_group_name, user_id, update_favorite_group_request)
|
||||
Update Favorite Group
|
||||
|
||||
Update information about a specific favorite group.
|
||||
@ -249,7 +249,7 @@ Name | Type | Description | Required | Notes
|
||||
**favorite_group_type** | **String** | The type of group to fetch, must be a valid FavoriteType. | [required] |
|
||||
**favorite_group_name** | **String** | | [required] |
|
||||
**user_id** | **String** | | [required] |
|
||||
**inline_object9** | Option<[**InlineObject9**](InlineObject9.md)> | | |
|
||||
**update_favorite_group_request** | Option<[**UpdateFavoriteGroupRequest**](UpdateFavoriteGroupRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**category** | **String** | | [readonly]
|
||||
**category** | **String** | | [readonly][default to Category_Queued]
|
||||
**file_name** | **String** | |
|
||||
**md5** | **String** | |
|
||||
**size_in_bytes** | **i32** | |
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineResponse2004
|
||||
# FileUploadUrl
|
||||
|
||||
## Properties
|
||||
|
@ -1,15 +1,15 @@
|
||||
# InlineResponse2003
|
||||
# FileVersionUploadStatus
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**upload_id** | **String** | | [readonly]
|
||||
**file_name** | **String** | | [readonly]
|
||||
**next_part_number** | **f32** | | [readonly]
|
||||
**max_parts** | **f32** | | [readonly]
|
||||
**parts** | [**Vec<serde_json::Value>**](serde_json::Value.md) | | [readonly]
|
||||
**etags** | [**Vec<serde_json::Value>**](serde_json::Value.md) | Unknown | [readonly]
|
||||
**upload_id** | **String** | |
|
||||
**file_name** | **String** | |
|
||||
**next_part_number** | **f32** | |
|
||||
**max_parts** | **f32** | |
|
||||
**parts** | [**Vec<serde_json::Value>**](serde_json::Value.md) | |
|
||||
**etags** | [**Vec<serde_json::Value>**](serde_json::Value.md) | Unknown |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -19,7 +19,7 @@ Method | HTTP request | Description
|
||||
|
||||
## create_file
|
||||
|
||||
> crate::models::File create_file(inline_object3)
|
||||
> crate::models::File create_file(create_file_request)
|
||||
Create File
|
||||
|
||||
Creates a new File object
|
||||
@ -29,7 +29,7 @@ Creates a new File object
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object3** | Option<[**InlineObject3**](InlineObject3.md)> | | |
|
||||
**create_file_request** | Option<[**CreateFileRequest**](CreateFileRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -49,7 +49,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## create_file_version
|
||||
|
||||
> crate::models::File create_file_version(file_id, inline_object4)
|
||||
> crate::models::File create_file_version(file_id, create_file_version_request)
|
||||
Create File Version
|
||||
|
||||
Creates a new FileVersion. Once a Version has been created, proceed to the `/file/{fileId}/{versionId}/file/start` endpoint to start a file upload.
|
||||
@ -60,7 +60,7 @@ Creates a new FileVersion. Once a Version has been created, proceed to the `/fil
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**file_id** | **String** | | [required] |
|
||||
**inline_object4** | Option<[**InlineObject4**](InlineObject4.md)> | | |
|
||||
**create_file_version_request** | Option<[**CreateFileVersionRequest**](CreateFileVersionRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -172,7 +172,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## finish_file_data_upload
|
||||
|
||||
> crate::models::File finish_file_data_upload(file_id, version_id, file_type, inline_object5)
|
||||
> crate::models::File finish_file_data_upload(file_id, version_id, file_type, finish_file_data_upload_request)
|
||||
Finish FileData Upload
|
||||
|
||||
Finish an upload of a FileData. This will mark it as \"complete\". After uploading the `file` for Avatars and Worlds you then have to upload a `signature` file.
|
||||
@ -185,7 +185,7 @@ Name | Type | Description | Required | Notes
|
||||
**file_id** | **String** | | [required] |
|
||||
**version_id** | **i32** | | [required] |
|
||||
**file_type** | **String** | | [required] |
|
||||
**inline_object5** | Option<[**InlineObject5**](InlineObject5.md)> | | |
|
||||
**finish_file_data_upload_request** | Option<[**FinishFileDataUploadRequest**](FinishFileDataUploadRequest.md)> | Please see documentation on ETag's: [https://teppen.io/2018/06/23/aws_s3_etags/](https://teppen.io/2018/06/23/aws_s3_etags/) ETag's should NOT be present when uploading a `signature`. | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -235,7 +235,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## get_file_data_upload_status
|
||||
|
||||
> crate::models::InlineResponse2003 get_file_data_upload_status(file_id, version_id, file_type)
|
||||
> crate::models::FileVersionUploadStatus get_file_data_upload_status(file_id, version_id, file_type)
|
||||
Check FileData Upload Status
|
||||
|
||||
Retrieves the upload status for file upload. Can currently only be accessed when `status` is `waiting`. Trying to access it on a file version already uploaded currently times out.
|
||||
@ -251,7 +251,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse2003**](inline_response_200_3.md)
|
||||
[**crate::models::FileVersionUploadStatus**](FileVersionUploadStatus.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -300,7 +300,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## start_file_data_upload
|
||||
|
||||
> crate::models::InlineResponse2004 start_file_data_upload(file_id, version_id, file_type, part_number)
|
||||
> crate::models::FileUploadUrl start_file_data_upload(file_id, version_id, file_type, part_number)
|
||||
Start FileData Upload
|
||||
|
||||
Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1.
|
||||
@ -317,7 +317,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse2004**](inline_response_200_4.md)
|
||||
[**crate::models::FileUploadUrl**](FileUploadURL.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject5
|
||||
# FinishFileDataUploadRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,12 +0,0 @@
|
||||
# InlineObject13
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**moderated** | Option<**String**> | | [optional]
|
||||
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
# InlineResponse2006
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**can_pubilsh** | **bool** | | [readonly][default to true]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
# InlineResponse400
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**error** | [**crate::models::Error**](Error.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -90,7 +90,7 @@ Sends an invite to a user. Returns the Notification of type `invite` that was se
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**user_id** | **String** | | [required] |
|
||||
**invite_request** | Option<[**InviteRequest**](InviteRequest.md)> | Instance ID when inviting a user. | |
|
||||
**invite_request** | Option<[**InviteRequest**](InviteRequest.md)> | Slot number of the Invite Message to use when inviting a user. | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -175,7 +175,7 @@ Name | Type | Description | Required | Notes
|
||||
> crate::models::Notification respond_invite(notification_id, invite_response)
|
||||
Respond Invite
|
||||
|
||||
Sends a world invite to a user.
|
||||
Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
@ -19,6 +19,8 @@ Name | Type | Description | Notes
|
||||
**tags** | **Vec<String>** | <- Always empty. |
|
||||
**user_icon** | **String** | |
|
||||
**username** | **String** | |
|
||||
**location** | Option<**String**> | | [optional]
|
||||
**friend_key** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject12
|
||||
# ModerateUserRequest
|
||||
|
||||
## Properties
|
||||
|
@ -8,7 +8,7 @@ Method | HTTP request | Description
|
||||
[**clear_notifications**](NotificationsApi.md#clear_notifications) | **PUT** /auth/user/notifications/clear | Clear All Notifications
|
||||
[**delete_notification**](NotificationsApi.md#delete_notification) | **PUT** /auth/user/notifications/{notificationId}/hide | Delete Notification
|
||||
[**get_notifications**](NotificationsApi.md#get_notifications) | **GET** /auth/user/notifications | List Notifications
|
||||
[**mark_notification_as_read**](NotificationsApi.md#mark_notification_as_read) | **PUT** /auth/user/notifications/{notificationId}/see | Mark As Read
|
||||
[**mark_notification_as_read**](NotificationsApi.md#mark_notification_as_read) | **PUT** /auth/user/notifications/{notificationId}/see | Mark Notification As Read
|
||||
|
||||
|
||||
|
||||
@ -137,7 +137,7 @@ Name | Type | Description | Required | Notes
|
||||
## mark_notification_as_read
|
||||
|
||||
> crate::models::Notification mark_notification_as_read(notification_id)
|
||||
Mark As Read
|
||||
Mark Notification As Read
|
||||
|
||||
Mark a notification as seen.
|
||||
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**data** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||
**id** | **String** | |
|
||||
**name** | **String** | |
|
||||
**owner_id** | **String** | |
|
||||
**data** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,7 +4,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**get_assigned_permissions**](PermissionsApi.md#get_assigned_permissions) | **GET** /auth/permissions | Get Assigned Permission
|
||||
[**get_assigned_permissions**](PermissionsApi.md#get_assigned_permissions) | **GET** /auth/permissions | Get Assigned Permissions
|
||||
[**get_permission**](PermissionsApi.md#get_permission) | **GET** /permissions/{permissionId} | Get Permission
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ Method | HTTP request | Description
|
||||
## get_assigned_permissions
|
||||
|
||||
> Vec<crate::models::Permission> get_assigned_permissions()
|
||||
Get Assigned Permission
|
||||
Get Assigned Permissions
|
||||
|
||||
Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
|
||||
|
||||
|
@ -133,7 +133,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## moderate_user
|
||||
|
||||
> crate::models::PlayerModeration moderate_user(inline_object12)
|
||||
> crate::models::PlayerModeration moderate_user(moderate_user_request)
|
||||
Moderate User
|
||||
|
||||
Moderate a user, e.g. unmute them or show their avatar.
|
||||
@ -143,7 +143,7 @@ Moderate a user, e.g. unmute them or show their avatar.
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object12** | Option<[**InlineObject12**](InlineObject12.md)> | | |
|
||||
**moderate_user_request** | Option<[**ModerateUserRequest**](ModerateUserRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -163,17 +163,17 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## unmoderate_user
|
||||
|
||||
> crate::models::Success unmoderate_user(inline_object13)
|
||||
> crate::models::Success unmoderate_user(moderate_user_request)
|
||||
Unmoderate User
|
||||
|
||||
Removes a player moderation previously added through `moderateUser`. E.g if you previuosly have shown their avatar, but now want to reset it to default.
|
||||
Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object13** | Option<[**InlineObject13**](InlineObject13.md)> | | |
|
||||
**moderate_user_request** | Option<[**ModerateUserRequest**](ModerateUserRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -5,10 +5,10 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**get_config**](SystemApi.md#get_config) | **GET** /config | Fetch API Config
|
||||
[**get_css**](SystemApi.md#get_css) | **GET** /css/app.js | Download Frontend CSS
|
||||
[**get_css**](SystemApi.md#get_css) | **GET** /css/app.js | Download CSS
|
||||
[**get_current_online_users**](SystemApi.md#get_current_online_users) | **GET** /visits | Current Online Users
|
||||
[**get_health**](SystemApi.md#get_health) | **GET** /health | Check API Health
|
||||
[**get_java_script**](SystemApi.md#get_java_script) | **GET** /js/app.js | Download Frontend JavaScript
|
||||
[**get_java_script**](SystemApi.md#get_java_script) | **GET** /js/app.js | Download JavaScript
|
||||
[**get_system_time**](SystemApi.md#get_system_time) | **GET** /time | Current System Time
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ No authorization required
|
||||
## get_css
|
||||
|
||||
> String get_css(variant, branch)
|
||||
Download Frontend CSS
|
||||
Download CSS
|
||||
|
||||
Fetches the CSS code to the frontend React website.
|
||||
|
||||
@ -100,7 +100,7 @@ No authorization required
|
||||
|
||||
## get_health
|
||||
|
||||
> crate::models::InlineResponse2002 get_health()
|
||||
> crate::models::ApiHealth get_health()
|
||||
Check API Health
|
||||
|
||||
~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
|
||||
@ -111,7 +111,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse2002**](inline_response_200_2.md)
|
||||
[**crate::models::ApiHealth**](APIHealth.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -128,7 +128,7 @@ No authorization required
|
||||
## get_java_script
|
||||
|
||||
> String get_java_script(variant, branch)
|
||||
Download Frontend JavaScript
|
||||
Download JavaScript
|
||||
|
||||
Fetches the JavaScript code to the frontend React website.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject
|
||||
# TwoFactorAuthCode
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject11
|
||||
# UpdateAvatarRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject9
|
||||
# UpdateFavoriteGroupRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject2
|
||||
# UpdateUserRequest
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineObject7
|
||||
# UpdateWorldRequest
|
||||
|
||||
## Properties
|
||||
|
||||
@ -8,9 +8,8 @@ Name | Type | Description | Notes
|
||||
**asset_version** | Option<**String**> | | [optional]
|
||||
**author_id** | Option<**String**> | | [optional]
|
||||
**author_name** | Option<**String**> | | [optional]
|
||||
**capacity** | Option<**i32**> | | [optional][default to 16]
|
||||
**capacity** | Option<**i32**> | | [optional]
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**id** | Option<**String**> | | [optional]
|
||||
**image_url** | Option<**String**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**platform** | Option<**String**> | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional]
|
@ -106,7 +106,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## update_user
|
||||
|
||||
> crate::models::CurrentUser update_user(user_id, inline_object2)
|
||||
> crate::models::CurrentUser update_user(user_id, update_user_request)
|
||||
Update User Info
|
||||
|
||||
Update a users information such as the email and birthday.
|
||||
@ -117,7 +117,7 @@ Update a users information such as the email and birthday.
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**user_id** | **String** | | [required] |
|
||||
**inline_object2** | Option<[**InlineObject2**](InlineObject2.md)> | | |
|
||||
**update_user_request** | Option<[**UpdateUserRequest**](UpdateUserRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineResponse2001
|
||||
# Verify2FaResult
|
||||
|
||||
## Properties
|
||||
|
@ -1,4 +1,4 @@
|
||||
# InlineResponse200
|
||||
# VerifyAuthTokenResult
|
||||
|
||||
## Properties
|
||||
|
@ -1,11 +1,11 @@
|
||||
# InlineResponse2005
|
||||
# WorldMetadata
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | |
|
||||
**metadata** | [**serde_json::Value**](.md) | | [readonly]
|
||||
**metadata** | [**serde_json::Value**](.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +1,10 @@
|
||||
# InlineObject1
|
||||
# WorldPublishStatus
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**code** | **String** | |
|
||||
**can_pubilsh** | **bool** | | [default to true]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -22,7 +22,7 @@ Method | HTTP request | Description
|
||||
|
||||
## create_world
|
||||
|
||||
> crate::models::World create_world(inline_object6)
|
||||
> crate::models::World create_world(create_world_request)
|
||||
Create World
|
||||
|
||||
Create a new world. This endpoint requires `assetUrl` to be a valid File object with `.vrcw` file extension, and `imageUrl` to be a valid File object with an image file extension.
|
||||
@ -32,7 +32,7 @@ Create a new world. This endpoint requires `assetUrl` to be a valid File object
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**inline_object6** | Option<[**InlineObject6**](InlineObject6.md)> | | |
|
||||
**create_world_request** | Option<[**CreateWorldRequest**](CreateWorldRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -268,7 +268,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## get_world_metadata
|
||||
|
||||
> crate::models::InlineResponse2005 get_world_metadata(world_id)
|
||||
> crate::models::WorldMetadata get_world_metadata(world_id)
|
||||
Get World Metadata
|
||||
|
||||
Return a worlds custom metadata. This is currently believed to be unused. Metadata can be set with `updateWorld` and can be any arbitrary object.
|
||||
@ -282,7 +282,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse2005**](inline_response_200_5.md)
|
||||
[**crate::models::WorldMetadata**](WorldMetadata.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -298,7 +298,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## get_world_publish_status
|
||||
|
||||
> crate::models::InlineResponse2006 get_world_publish_status(world_id)
|
||||
> crate::models::WorldPublishStatus get_world_publish_status(world_id)
|
||||
Get World Publish Status
|
||||
|
||||
Returns a worlds publish status.
|
||||
@ -312,7 +312,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::InlineResponse2006**](inline_response_200_6.md)
|
||||
[**crate::models::WorldPublishStatus**](WorldPublishStatus.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -431,7 +431,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## update_world
|
||||
|
||||
> crate::models::World update_world(world_id, inline_object7)
|
||||
> crate::models::World update_world(world_id, update_world_request)
|
||||
Update World
|
||||
|
||||
Update information about a specific World.
|
||||
@ -442,7 +442,7 @@ Update information about a specific World.
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**world_id** | **String** | | [required] |
|
||||
**inline_object7** | Option<[**InlineObject7**](InlineObject7.md)> | | |
|
||||
**update_world_request** | Option<[**UpdateWorldRequest**](UpdateWorldRequest.md)> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -198,7 +198,7 @@ pub fn logout(configuration: &configuration::Configuration, ) -> Result<crate::m
|
||||
}
|
||||
|
||||
/// Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
||||
pub fn verify2_fa(configuration: &configuration::Configuration, inline_object: Option<crate::models::InlineObject>) -> Result<crate::models::InlineResponse2001, Error<Verify2FaError>> {
|
||||
pub fn verify2_fa(configuration: &configuration::Configuration, two_factor_auth_code: Option<crate::models::TwoFactorAuthCode>) -> Result<crate::models::Verify2FaResult, Error<Verify2FaError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -209,7 +209,7 @@ pub fn verify2_fa(configuration: &configuration::Configuration, inline_object: O
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object);
|
||||
local_var_req_builder = local_var_req_builder.json(&two_factor_auth_code);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -227,7 +227,7 @@ pub fn verify2_fa(configuration: &configuration::Configuration, inline_object: O
|
||||
}
|
||||
|
||||
/// Verify whether the currently provided Auth Token is valid.
|
||||
pub fn verify_auth_token(configuration: &configuration::Configuration, ) -> Result<crate::models::InlineResponse200, Error<VerifyAuthTokenError>> {
|
||||
pub fn verify_auth_token(configuration: &configuration::Configuration, ) -> Result<crate::models::VerifyAuthTokenResult, Error<VerifyAuthTokenError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -255,7 +255,7 @@ pub fn verify_auth_token(configuration: &configuration::Configuration, ) -> Resu
|
||||
}
|
||||
|
||||
/// Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
||||
pub fn verify_recovery_code(configuration: &configuration::Configuration, inline_object1: Option<crate::models::InlineObject1>) -> Result<crate::models::InlineResponse2001, Error<VerifyRecoveryCodeError>> {
|
||||
pub fn verify_recovery_code(configuration: &configuration::Configuration, two_factor_auth_code: Option<crate::models::TwoFactorAuthCode>) -> Result<crate::models::Verify2FaResult, Error<VerifyRecoveryCodeError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -266,7 +266,7 @@ pub fn verify_recovery_code(configuration: &configuration::Configuration, inline
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object1);
|
||||
local_var_req_builder = local_var_req_builder.json(&two_factor_auth_code);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
|
@ -65,6 +65,16 @@ pub enum SelectAvatarError {
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`select_fallback_avatar`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum SelectFallbackAvatarError {
|
||||
Status401(crate::models::Error),
|
||||
Status403(crate::models::Error),
|
||||
Status404(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`update_avatar`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
@ -76,7 +86,7 @@ pub enum UpdateAvatarError {
|
||||
|
||||
|
||||
/// Create an avatar. It's possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
|
||||
pub fn create_avatar(configuration: &configuration::Configuration, inline_object10: Option<crate::models::InlineObject10>) -> Result<crate::models::Avatar, Error<CreateAvatarError>> {
|
||||
pub fn create_avatar(configuration: &configuration::Configuration, create_avatar_request: Option<crate::models::CreateAvatarRequest>) -> Result<crate::models::Avatar, Error<CreateAvatarError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -87,7 +97,7 @@ pub fn create_avatar(configuration: &configuration::Configuration, inline_object
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object10);
|
||||
local_var_req_builder = local_var_req_builder.json(&create_avatar_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -322,8 +332,36 @@ pub fn select_avatar(configuration: &configuration::Configuration, avatar_id: &s
|
||||
}
|
||||
}
|
||||
|
||||
/// Switches into that avatar as your fallback avatar.
|
||||
pub fn select_fallback_avatar(configuration: &configuration::Configuration, avatar_id: &str) -> Result<crate::models::CurrentUser, Error<SelectFallbackAvatarError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/avatars/{avatarId}/selectFallback", local_var_configuration.base_path, avatarId=crate::apis::urlencode(avatar_id));
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text()?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<SelectFallbackAvatarError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Update information about a specific avatar.
|
||||
pub fn update_avatar(configuration: &configuration::Configuration, avatar_id: &str, inline_object11: Option<crate::models::InlineObject11>) -> Result<crate::models::Avatar, Error<UpdateAvatarError>> {
|
||||
pub fn update_avatar(configuration: &configuration::Configuration, avatar_id: &str, update_avatar_request: Option<crate::models::UpdateAvatarRequest>) -> Result<crate::models::Avatar, Error<UpdateAvatarError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -334,7 +372,7 @@ pub fn update_avatar(configuration: &configuration::Configuration, avatar_id: &s
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object11);
|
||||
local_var_req_builder = local_var_req_builder.json(&update_avatar_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
|
@ -78,8 +78,8 @@ pub enum UpdateFavoriteGroupError {
|
||||
}
|
||||
|
||||
|
||||
/// Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatar4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
||||
pub fn add_favorite(configuration: &configuration::Configuration, inline_object8: Option<crate::models::InlineObject8>) -> Result<crate::models::Favorite, Error<AddFavoriteError>> {
|
||||
/// Add a new favorite. Friend groups are named `group_0` through `group_3`. Avatar and World groups are named `avatars1` to `avatars4` and `worlds1` to `worlds4`. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
|
||||
pub fn add_favorite(configuration: &configuration::Configuration, add_favorite_request: Option<crate::models::AddFavoriteRequest>) -> Result<crate::models::Favorite, Error<AddFavoriteError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -90,7 +90,7 @@ pub fn add_favorite(configuration: &configuration::Configuration, inline_object8
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object8);
|
||||
local_var_req_builder = local_var_req_builder.json(&add_favorite_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -297,7 +297,7 @@ pub fn remove_favorite(configuration: &configuration::Configuration, favorite_id
|
||||
}
|
||||
|
||||
/// Update information about a specific favorite group.
|
||||
pub fn update_favorite_group(configuration: &configuration::Configuration, favorite_group_type: &str, favorite_group_name: &str, user_id: &str, inline_object9: Option<crate::models::InlineObject9>) -> Result<(), Error<UpdateFavoriteGroupError>> {
|
||||
pub fn update_favorite_group(configuration: &configuration::Configuration, favorite_group_type: &str, favorite_group_name: &str, user_id: &str, update_favorite_group_request: Option<crate::models::UpdateFavoriteGroupRequest>) -> Result<(), Error<UpdateFavoriteGroupError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -308,7 +308,7 @@ pub fn update_favorite_group(configuration: &configuration::Configuration, favor
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object9);
|
||||
local_var_req_builder = local_var_req_builder.json(&update_favorite_group_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
|
@ -90,7 +90,7 @@ pub enum StartFileDataUploadError {
|
||||
|
||||
|
||||
/// Creates a new File object
|
||||
pub fn create_file(configuration: &configuration::Configuration, inline_object3: Option<crate::models::InlineObject3>) -> Result<crate::models::File, Error<CreateFileError>> {
|
||||
pub fn create_file(configuration: &configuration::Configuration, create_file_request: Option<crate::models::CreateFileRequest>) -> Result<crate::models::File, Error<CreateFileError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -101,7 +101,7 @@ pub fn create_file(configuration: &configuration::Configuration, inline_object3:
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object3);
|
||||
local_var_req_builder = local_var_req_builder.json(&create_file_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -119,7 +119,7 @@ pub fn create_file(configuration: &configuration::Configuration, inline_object3:
|
||||
}
|
||||
|
||||
/// Creates a new FileVersion. Once a Version has been created, proceed to the `/file/{fileId}/{versionId}/file/start` endpoint to start a file upload.
|
||||
pub fn create_file_version(configuration: &configuration::Configuration, file_id: &str, inline_object4: Option<crate::models::InlineObject4>) -> Result<crate::models::File, Error<CreateFileVersionError>> {
|
||||
pub fn create_file_version(configuration: &configuration::Configuration, file_id: &str, create_file_version_request: Option<crate::models::CreateFileVersionRequest>) -> Result<crate::models::File, Error<CreateFileVersionError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -130,7 +130,7 @@ pub fn create_file_version(configuration: &configuration::Configuration, file_id
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object4);
|
||||
local_var_req_builder = local_var_req_builder.json(&create_file_version_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -232,7 +232,7 @@ pub fn download_file_version(configuration: &configuration::Configuration, file_
|
||||
}
|
||||
|
||||
/// Finish an upload of a FileData. This will mark it as \"complete\". After uploading the `file` for Avatars and Worlds you then have to upload a `signature` file.
|
||||
pub fn finish_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, inline_object5: Option<crate::models::InlineObject5>) -> Result<crate::models::File, Error<FinishFileDataUploadError>> {
|
||||
pub fn finish_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, finish_file_data_upload_request: Option<crate::models::FinishFileDataUploadRequest>) -> Result<crate::models::File, Error<FinishFileDataUploadError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -243,7 +243,7 @@ pub fn finish_file_data_upload(configuration: &configuration::Configuration, fil
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object5);
|
||||
local_var_req_builder = local_var_req_builder.json(&finish_file_data_upload_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -289,7 +289,7 @@ pub fn get_file(configuration: &configuration::Configuration, file_id: &str) ->
|
||||
}
|
||||
|
||||
/// Retrieves the upload status for file upload. Can currently only be accessed when `status` is `waiting`. Trying to access it on a file version already uploaded currently times out.
|
||||
pub fn get_file_data_upload_status(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str) -> Result<crate::models::InlineResponse2003, Error<GetFileDataUploadStatusError>> {
|
||||
pub fn get_file_data_upload_status(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str) -> Result<crate::models::FileVersionUploadStatus, Error<GetFileDataUploadStatusError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -357,7 +357,7 @@ pub fn get_files(configuration: &configuration::Configuration, tag: Option<&str>
|
||||
}
|
||||
|
||||
/// Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1.
|
||||
pub fn start_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, part_number: i32) -> Result<crate::models::InlineResponse2004, Error<StartFileDataUploadError>> {
|
||||
pub fn start_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, part_number: i32) -> Result<crate::models::FileUploadUrl, Error<StartFileDataUploadError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
@ -17,8 +17,8 @@ use super::{Error, configuration};
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum GetInviteMessageError {
|
||||
Status400(crate::models::InlineResponse400),
|
||||
Status401(crate::models::InlineResponse400),
|
||||
Status400(crate::models::Error),
|
||||
Status401(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -26,8 +26,8 @@ pub enum GetInviteMessageError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum GetInviteMessagesError {
|
||||
Status400(crate::models::InlineResponse400),
|
||||
Status401(crate::models::InlineResponse400),
|
||||
Status400(crate::models::Error),
|
||||
Status401(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ pub enum GetInviteMessagesError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum InviteUserError {
|
||||
Status403(crate::models::InlineResponse400),
|
||||
Status403(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ pub enum InviteUserError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RequestInviteError {
|
||||
Status403(crate::models::InlineResponse400),
|
||||
Status403(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -51,9 +51,9 @@ pub enum RequestInviteError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ResetInviteMessageError {
|
||||
Status400(crate::models::InlineResponse400),
|
||||
Status401(crate::models::InlineResponse400),
|
||||
Status429(crate::models::InlineResponse400),
|
||||
Status400(crate::models::Error),
|
||||
Status401(crate::models::Error),
|
||||
Status429(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ pub enum ResetInviteMessageError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum RespondInviteError {
|
||||
Status400(crate::models::InlineResponse400),
|
||||
Status400(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -69,9 +69,9 @@ pub enum RespondInviteError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum UpdateInviteMessageError {
|
||||
Status400(crate::models::InlineResponse400),
|
||||
Status401(crate::models::InlineResponse400),
|
||||
Status429(crate::models::InlineResponse400),
|
||||
Status400(crate::models::Error),
|
||||
Status401(crate::models::Error),
|
||||
Status429(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -217,7 +217,7 @@ pub fn reset_invite_message(configuration: &configuration::Configuration, user_i
|
||||
}
|
||||
}
|
||||
|
||||
/// Sends a world invite to a user.
|
||||
/// Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
||||
pub fn respond_invite(configuration: &configuration::Configuration, notification_id: &str, invite_response: Option<crate::models::InviteResponse>) -> Result<crate::models::Notification, Error<RespondInviteError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
|
@ -183,7 +183,7 @@ pub fn get_player_moderations(configuration: &configuration::Configuration, _typ
|
||||
}
|
||||
|
||||
/// Moderate a user, e.g. unmute them or show their avatar.
|
||||
pub fn moderate_user(configuration: &configuration::Configuration, inline_object12: Option<crate::models::InlineObject12>) -> Result<crate::models::PlayerModeration, Error<ModerateUserError>> {
|
||||
pub fn moderate_user(configuration: &configuration::Configuration, moderate_user_request: Option<crate::models::ModerateUserRequest>) -> Result<crate::models::PlayerModeration, Error<ModerateUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -194,7 +194,7 @@ pub fn moderate_user(configuration: &configuration::Configuration, inline_object
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object12);
|
||||
local_var_req_builder = local_var_req_builder.json(&moderate_user_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -211,8 +211,8 @@ pub fn moderate_user(configuration: &configuration::Configuration, inline_object
|
||||
}
|
||||
}
|
||||
|
||||
/// Removes a player moderation previously added through `moderateUser`. E.g if you previuosly have shown their avatar, but now want to reset it to default.
|
||||
pub fn unmoderate_user(configuration: &configuration::Configuration, inline_object13: Option<crate::models::InlineObject13>) -> Result<crate::models::Success, Error<UnmoderateUserError>> {
|
||||
/// Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
|
||||
pub fn unmoderate_user(configuration: &configuration::Configuration, moderate_user_request: Option<crate::models::ModerateUserRequest>) -> Result<crate::models::Success, Error<UnmoderateUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -223,7 +223,7 @@ pub fn unmoderate_user(configuration: &configuration::Configuration, inline_obje
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object13);
|
||||
local_var_req_builder = local_var_req_builder.json(&moderate_user_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
|
@ -24,7 +24,7 @@ pub enum GetConfigError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum GetCssError {
|
||||
Status400(crate::models::InlineResponse400),
|
||||
Status400(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ pub enum GetHealthError {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum GetJavaScriptError {
|
||||
Status400(crate::models::InlineResponse400),
|
||||
Status400(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ pub fn get_current_online_users(configuration: &configuration::Configuration, )
|
||||
}
|
||||
|
||||
/// ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
|
||||
pub fn get_health(configuration: &configuration::Configuration, ) -> Result<crate::models::InlineResponse2002, Error<GetHealthError>> {
|
||||
pub fn get_health(configuration: &configuration::Configuration, ) -> Result<crate::models::ApiHealth, Error<GetHealthError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
@ -143,7 +143,7 @@ pub fn search_users(configuration: &configuration::Configuration, search: Option
|
||||
}
|
||||
|
||||
/// Update a users information such as the email and birthday.
|
||||
pub fn update_user(configuration: &configuration::Configuration, user_id: &str, inline_object2: Option<crate::models::InlineObject2>) -> Result<crate::models::CurrentUser, Error<UpdateUserError>> {
|
||||
pub fn update_user(configuration: &configuration::Configuration, user_id: &str, update_user_request: Option<crate::models::UpdateUserRequest>) -> Result<crate::models::CurrentUser, Error<UpdateUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -154,7 +154,7 @@ pub fn update_user(configuration: &configuration::Configuration, user_id: &str,
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object2);
|
||||
local_var_req_builder = local_var_req_builder.json(&update_user_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
|
@ -127,7 +127,7 @@ pub enum UpdateWorldError {
|
||||
|
||||
|
||||
/// Create a new world. This endpoint requires `assetUrl` to be a valid File object with `.vrcw` file extension, and `imageUrl` to be a valid File object with an image file extension.
|
||||
pub fn create_world(configuration: &configuration::Configuration, inline_object6: Option<crate::models::InlineObject6>) -> Result<crate::models::World, Error<CreateWorldError>> {
|
||||
pub fn create_world(configuration: &configuration::Configuration, create_world_request: Option<crate::models::CreateWorldRequest>) -> Result<crate::models::World, Error<CreateWorldError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -138,7 +138,7 @@ pub fn create_world(configuration: &configuration::Configuration, inline_object6
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object6);
|
||||
local_var_req_builder = local_var_req_builder.json(&create_world_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
@ -438,7 +438,7 @@ pub fn get_world_instance(configuration: &configuration::Configuration, world_id
|
||||
}
|
||||
|
||||
/// Return a worlds custom metadata. This is currently believed to be unused. Metadata can be set with `updateWorld` and can be any arbitrary object.
|
||||
pub fn get_world_metadata(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::InlineResponse2005, Error<GetWorldMetadataError>> {
|
||||
pub fn get_world_metadata(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::WorldMetadata, Error<GetWorldMetadataError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -466,7 +466,7 @@ pub fn get_world_metadata(configuration: &configuration::Configuration, world_id
|
||||
}
|
||||
|
||||
/// Returns a worlds publish status.
|
||||
pub fn get_world_publish_status(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::InlineResponse2006, Error<GetWorldPublishStatusError>> {
|
||||
pub fn get_world_publish_status(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::WorldPublishStatus, Error<GetWorldPublishStatusError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -620,7 +620,7 @@ pub fn unpublish_world(configuration: &configuration::Configuration, world_id: &
|
||||
}
|
||||
|
||||
/// Update information about a specific World.
|
||||
pub fn update_world(configuration: &configuration::Configuration, world_id: &str, inline_object7: Option<crate::models::InlineObject7>) -> Result<crate::models::World, Error<UpdateWorldError>> {
|
||||
pub fn update_world(configuration: &configuration::Configuration, world_id: &str, update_world_request: Option<crate::models::UpdateWorldRequest>) -> Result<crate::models::World, Error<UpdateWorldError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -631,7 +631,7 @@ pub fn update_world(configuration: &configuration::Configuration, world_id: &str
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&inline_object7);
|
||||
local_var_req_builder = local_var_req_builder.json(&update_world_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject8 {
|
||||
pub struct AddFavoriteRequest {
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::FavoriteType,
|
||||
/// Must be either AvatarID, WorldID or UserID.
|
||||
@ -21,9 +21,9 @@ pub struct InlineObject8 {
|
||||
pub tags: Vec<String>,
|
||||
}
|
||||
|
||||
impl InlineObject8 {
|
||||
pub fn new(_type: crate::models::FavoriteType, favorite_id: String, tags: Vec<String>) -> InlineObject8 {
|
||||
InlineObject8 {
|
||||
impl AddFavoriteRequest {
|
||||
pub fn new(_type: crate::models::FavoriteType, favorite_id: String, tags: Vec<String>) -> AddFavoriteRequest {
|
||||
AddFavoriteRequest {
|
||||
_type,
|
||||
favorite_id,
|
||||
tags,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse2002 {
|
||||
pub struct ApiHealth {
|
||||
#[serde(rename = "ok")]
|
||||
pub ok: bool,
|
||||
#[serde(rename = "serverName")]
|
||||
@ -19,9 +19,9 @@ pub struct InlineResponse2002 {
|
||||
pub build_version_tag: String,
|
||||
}
|
||||
|
||||
impl InlineResponse2002 {
|
||||
pub fn new(ok: bool, server_name: String, build_version_tag: String) -> InlineResponse2002 {
|
||||
InlineResponse2002 {
|
||||
impl ApiHealth {
|
||||
pub fn new(ok: bool, server_name: String, build_version_tag: String) -> ApiHealth {
|
||||
ApiHealth {
|
||||
ok,
|
||||
server_name,
|
||||
build_version_tag,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject10 {
|
||||
pub struct CreateAvatarRequest {
|
||||
#[serde(rename = "assetUrl", skip_serializing_if = "Option::is_none")]
|
||||
pub asset_url: Option<String>,
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
@ -31,9 +31,9 @@ pub struct InlineObject10 {
|
||||
pub unity_package_url: Option<String>,
|
||||
}
|
||||
|
||||
impl InlineObject10 {
|
||||
pub fn new(name: String, image_url: String) -> InlineObject10 {
|
||||
InlineObject10 {
|
||||
impl CreateAvatarRequest {
|
||||
pub fn new(name: String, image_url: String) -> CreateAvatarRequest {
|
||||
CreateAvatarRequest {
|
||||
asset_url: None,
|
||||
id: None,
|
||||
name,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject3 {
|
||||
pub struct CreateFileRequest {
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
#[serde(rename = "mimeType")]
|
||||
@ -21,9 +21,9 @@ pub struct InlineObject3 {
|
||||
pub tags: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl InlineObject3 {
|
||||
pub fn new(name: String, mime_type: crate::models::MimeType, extension: String) -> InlineObject3 {
|
||||
InlineObject3 {
|
||||
impl CreateFileRequest {
|
||||
pub fn new(name: String, mime_type: crate::models::MimeType, extension: String) -> CreateFileRequest {
|
||||
CreateFileRequest {
|
||||
name,
|
||||
mime_type,
|
||||
extension,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject4 {
|
||||
pub struct CreateFileVersionRequest {
|
||||
#[serde(rename = "signatureMd5")]
|
||||
pub signature_md5: String,
|
||||
#[serde(rename = "signatureSizeInBytes")]
|
||||
@ -21,9 +21,9 @@ pub struct InlineObject4 {
|
||||
pub file_size_in_bytes: Option<f32>,
|
||||
}
|
||||
|
||||
impl InlineObject4 {
|
||||
pub fn new(signature_md5: String, signature_size_in_bytes: f32) -> InlineObject4 {
|
||||
InlineObject4 {
|
||||
impl CreateFileVersionRequest {
|
||||
pub fn new(signature_md5: String, signature_size_in_bytes: f32) -> CreateFileVersionRequest {
|
||||
CreateFileVersionRequest {
|
||||
signature_md5,
|
||||
signature_size_in_bytes,
|
||||
file_md5: None,
|
@ -10,11 +10,11 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject6 {
|
||||
pub struct CreateWorldRequest {
|
||||
#[serde(rename = "assetUrl")]
|
||||
pub asset_url: String,
|
||||
#[serde(rename = "assetVersion", skip_serializing_if = "Option::is_none")]
|
||||
pub asset_version: Option<String>,
|
||||
pub asset_version: Option<i32>,
|
||||
#[serde(rename = "authorId", skip_serializing_if = "Option::is_none")]
|
||||
pub author_id: Option<String>,
|
||||
#[serde(rename = "authorName", skip_serializing_if = "Option::is_none")]
|
||||
@ -42,9 +42,9 @@ pub struct InlineObject6 {
|
||||
pub unity_version: Option<String>,
|
||||
}
|
||||
|
||||
impl InlineObject6 {
|
||||
pub fn new(asset_url: String, image_url: String, name: String) -> InlineObject6 {
|
||||
InlineObject6 {
|
||||
impl CreateWorldRequest {
|
||||
pub fn new(asset_url: String, image_url: String, name: String) -> CreateWorldRequest {
|
||||
CreateWorldRequest {
|
||||
asset_url,
|
||||
asset_version: None,
|
||||
author_id: None,
|
@ -10,14 +10,14 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse2004 {
|
||||
pub struct FileUploadUrl {
|
||||
#[serde(rename = "url")]
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
impl InlineResponse2004 {
|
||||
pub fn new(url: String) -> InlineResponse2004 {
|
||||
InlineResponse2004 {
|
||||
impl FileUploadUrl {
|
||||
pub fn new(url: String) -> FileUploadUrl {
|
||||
FileUploadUrl {
|
||||
url,
|
||||
}
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse2003 {
|
||||
pub struct FileVersionUploadStatus {
|
||||
#[serde(rename = "uploadId")]
|
||||
pub upload_id: String,
|
||||
#[serde(rename = "fileName")]
|
||||
@ -26,9 +26,9 @@ pub struct InlineResponse2003 {
|
||||
pub etags: Vec<serde_json::Value>,
|
||||
}
|
||||
|
||||
impl InlineResponse2003 {
|
||||
pub fn new(upload_id: String, file_name: String, next_part_number: f32, max_parts: f32, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> InlineResponse2003 {
|
||||
InlineResponse2003 {
|
||||
impl FileVersionUploadStatus {
|
||||
pub fn new(upload_id: String, file_name: String, next_part_number: f32, max_parts: f32, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> FileVersionUploadStatus {
|
||||
FileVersionUploadStatus {
|
||||
upload_id,
|
||||
file_name,
|
||||
next_part_number,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject5 {
|
||||
pub struct FinishFileDataUploadRequest {
|
||||
/// Array of ETags uploaded.
|
||||
#[serde(rename = "etags", skip_serializing_if = "Option::is_none")]
|
||||
pub etags: Option<Vec<String>>,
|
||||
@ -22,9 +22,9 @@ pub struct InlineObject5 {
|
||||
pub max_parts: String,
|
||||
}
|
||||
|
||||
impl InlineObject5 {
|
||||
pub fn new(next_part_number: String, max_parts: String) -> InlineObject5 {
|
||||
InlineObject5 {
|
||||
impl FinishFileDataUploadRequest {
|
||||
pub fn new(next_part_number: String, max_parts: String) -> FinishFileDataUploadRequest {
|
||||
FinishFileDataUploadRequest {
|
||||
etags: None,
|
||||
next_part_number,
|
||||
max_parts,
|
@ -1,26 +0,0 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ruby.js.org
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject1 {
|
||||
#[serde(rename = "code")]
|
||||
pub code: String,
|
||||
}
|
||||
|
||||
impl InlineObject1 {
|
||||
pub fn new(code: String) -> InlineObject1 {
|
||||
InlineObject1 {
|
||||
code,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,29 +0,0 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ruby.js.org
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject13 {
|
||||
#[serde(rename = "moderated", skip_serializing_if = "Option::is_none")]
|
||||
pub moderated: Option<String>,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::PlayerModerationType,
|
||||
}
|
||||
|
||||
impl InlineObject13 {
|
||||
pub fn new(_type: crate::models::PlayerModerationType) -> InlineObject13 {
|
||||
InlineObject13 {
|
||||
moderated: None,
|
||||
_type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,26 +0,0 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ruby.js.org
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse400 {
|
||||
#[serde(rename = "error")]
|
||||
pub error: Box<crate::models::Error>,
|
||||
}
|
||||
|
||||
impl InlineResponse400 {
|
||||
pub fn new(error: crate::models::Error) -> InlineResponse400 {
|
||||
InlineResponse400 {
|
||||
error: Box::new(error),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -12,6 +12,12 @@
|
||||
pub enum InviteMessageType {
|
||||
#[serde(rename = "message")]
|
||||
Message,
|
||||
#[serde(rename = "response")]
|
||||
Response,
|
||||
#[serde(rename = "request")]
|
||||
Request,
|
||||
#[serde(rename = "requestResponse")]
|
||||
RequestResponse,
|
||||
|
||||
}
|
||||
|
||||
@ -19,6 +25,9 @@ impl ToString for InviteMessageType {
|
||||
fn to_string(&self) -> String {
|
||||
match self {
|
||||
Self::Message => String::from("message"),
|
||||
Self::Response => String::from("response"),
|
||||
Self::Request => String::from("request"),
|
||||
Self::RequestResponse => String::from("requestResponse"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -43,6 +43,10 @@ pub struct LimitedUser {
|
||||
pub user_icon: String,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "location", skip_serializing_if = "Option::is_none")]
|
||||
pub location: Option<String>,
|
||||
#[serde(rename = "friendKey", skip_serializing_if = "Option::is_none")]
|
||||
pub friend_key: Option<String>,
|
||||
}
|
||||
|
||||
impl LimitedUser {
|
||||
@ -63,6 +67,8 @@ impl LimitedUser {
|
||||
tags,
|
||||
user_icon,
|
||||
username,
|
||||
location: None,
|
||||
friend_key: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,23 @@
|
||||
pub mod add_favorite_request;
|
||||
pub use self::add_favorite_request::AddFavoriteRequest;
|
||||
pub mod api_config;
|
||||
pub use self::api_config::ApiConfig;
|
||||
pub mod api_event_config;
|
||||
pub use self::api_event_config::ApiEventConfig;
|
||||
pub mod api_health;
|
||||
pub use self::api_health::ApiHealth;
|
||||
pub mod avatar;
|
||||
pub use self::avatar::Avatar;
|
||||
pub mod avatar_unity_package_url_object;
|
||||
pub use self::avatar_unity_package_url_object::AvatarUnityPackageUrlObject;
|
||||
pub mod create_avatar_request;
|
||||
pub use self::create_avatar_request::CreateAvatarRequest;
|
||||
pub mod create_file_request;
|
||||
pub use self::create_file_request::CreateFileRequest;
|
||||
pub mod create_file_version_request;
|
||||
pub use self::create_file_version_request::CreateFileVersionRequest;
|
||||
pub mod create_world_request;
|
||||
pub use self::create_world_request::CreateWorldRequest;
|
||||
pub mod current_user;
|
||||
pub use self::current_user::CurrentUser;
|
||||
pub mod deployment_group;
|
||||
@ -32,54 +44,16 @@ pub mod file_data;
|
||||
pub use self::file_data::FileData;
|
||||
pub mod file_status;
|
||||
pub use self::file_status::FileStatus;
|
||||
pub mod file_upload_url;
|
||||
pub use self::file_upload_url::FileUploadUrl;
|
||||
pub mod file_version;
|
||||
pub use self::file_version::FileVersion;
|
||||
pub mod file_version_upload_status;
|
||||
pub use self::file_version_upload_status::FileVersionUploadStatus;
|
||||
pub mod finish_file_data_upload_request;
|
||||
pub use self::finish_file_data_upload_request::FinishFileDataUploadRequest;
|
||||
pub mod friend_status;
|
||||
pub use self::friend_status::FriendStatus;
|
||||
pub mod inline_object;
|
||||
pub use self::inline_object::InlineObject;
|
||||
pub mod inline_object_1;
|
||||
pub use self::inline_object_1::InlineObject1;
|
||||
pub mod inline_object_10;
|
||||
pub use self::inline_object_10::InlineObject10;
|
||||
pub mod inline_object_11;
|
||||
pub use self::inline_object_11::InlineObject11;
|
||||
pub mod inline_object_12;
|
||||
pub use self::inline_object_12::InlineObject12;
|
||||
pub mod inline_object_13;
|
||||
pub use self::inline_object_13::InlineObject13;
|
||||
pub mod inline_object_2;
|
||||
pub use self::inline_object_2::InlineObject2;
|
||||
pub mod inline_object_3;
|
||||
pub use self::inline_object_3::InlineObject3;
|
||||
pub mod inline_object_4;
|
||||
pub use self::inline_object_4::InlineObject4;
|
||||
pub mod inline_object_5;
|
||||
pub use self::inline_object_5::InlineObject5;
|
||||
pub mod inline_object_6;
|
||||
pub use self::inline_object_6::InlineObject6;
|
||||
pub mod inline_object_7;
|
||||
pub use self::inline_object_7::InlineObject7;
|
||||
pub mod inline_object_8;
|
||||
pub use self::inline_object_8::InlineObject8;
|
||||
pub mod inline_object_9;
|
||||
pub use self::inline_object_9::InlineObject9;
|
||||
pub mod inline_response_200;
|
||||
pub use self::inline_response_200::InlineResponse200;
|
||||
pub mod inline_response_200_1;
|
||||
pub use self::inline_response_200_1::InlineResponse2001;
|
||||
pub mod inline_response_200_2;
|
||||
pub use self::inline_response_200_2::InlineResponse2002;
|
||||
pub mod inline_response_200_3;
|
||||
pub use self::inline_response_200_3::InlineResponse2003;
|
||||
pub mod inline_response_200_4;
|
||||
pub use self::inline_response_200_4::InlineResponse2004;
|
||||
pub mod inline_response_200_5;
|
||||
pub use self::inline_response_200_5::InlineResponse2005;
|
||||
pub mod inline_response_200_6;
|
||||
pub use self::inline_response_200_6::InlineResponse2006;
|
||||
pub mod inline_response_400;
|
||||
pub use self::inline_response_400::InlineResponse400;
|
||||
pub mod instance;
|
||||
pub use self::instance::Instance;
|
||||
pub mod instance_platforms;
|
||||
@ -100,6 +74,8 @@ pub mod limited_world;
|
||||
pub use self::limited_world::LimitedWorld;
|
||||
pub mod mime_type;
|
||||
pub use self::mime_type::MimeType;
|
||||
pub mod moderate_user_request;
|
||||
pub use self::moderate_user_request::ModerateUserRequest;
|
||||
pub mod notification;
|
||||
pub use self::notification::Notification;
|
||||
pub mod notification_type;
|
||||
@ -120,8 +96,18 @@ pub mod response;
|
||||
pub use self::response::Response;
|
||||
pub mod success;
|
||||
pub use self::success::Success;
|
||||
pub mod two_factor_auth_code;
|
||||
pub use self::two_factor_auth_code::TwoFactorAuthCode;
|
||||
pub mod unity_package;
|
||||
pub use self::unity_package::UnityPackage;
|
||||
pub mod update_avatar_request;
|
||||
pub use self::update_avatar_request::UpdateAvatarRequest;
|
||||
pub mod update_favorite_group_request;
|
||||
pub use self::update_favorite_group_request::UpdateFavoriteGroupRequest;
|
||||
pub mod update_user_request;
|
||||
pub use self::update_user_request::UpdateUserRequest;
|
||||
pub mod update_world_request;
|
||||
pub use self::update_world_request::UpdateWorldRequest;
|
||||
pub mod user;
|
||||
pub use self::user::User;
|
||||
pub mod user_exists;
|
||||
@ -130,5 +116,13 @@ pub mod user_state;
|
||||
pub use self::user_state::UserState;
|
||||
pub mod user_status;
|
||||
pub use self::user_status::UserStatus;
|
||||
pub mod verify2_fa_result;
|
||||
pub use self::verify2_fa_result::Verify2FaResult;
|
||||
pub mod verify_auth_token_result;
|
||||
pub use self::verify_auth_token_result::VerifyAuthTokenResult;
|
||||
pub mod world;
|
||||
pub use self::world::World;
|
||||
pub mod world_metadata;
|
||||
pub use self::world_metadata::WorldMetadata;
|
||||
pub mod world_publish_status;
|
||||
pub use self::world_publish_status::WorldPublishStatus;
|
||||
|
@ -10,16 +10,16 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject12 {
|
||||
pub struct ModerateUserRequest {
|
||||
#[serde(rename = "moderated")]
|
||||
pub moderated: String,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::PlayerModerationType,
|
||||
}
|
||||
|
||||
impl InlineObject12 {
|
||||
pub fn new(moderated: String, _type: crate::models::PlayerModerationType) -> InlineObject12 {
|
||||
InlineObject12 {
|
||||
impl ModerateUserRequest {
|
||||
pub fn new(moderated: String, _type: crate::models::PlayerModerationType) -> ModerateUserRequest {
|
||||
ModerateUserRequest {
|
||||
moderated,
|
||||
_type,
|
||||
}
|
@ -11,23 +11,23 @@
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct Permission {
|
||||
#[serde(rename = "data", skip_serializing_if = "Option::is_none")]
|
||||
pub data: Option<serde_json::Value>,
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
#[serde(rename = "ownerId")]
|
||||
pub owner_id: String,
|
||||
#[serde(rename = "data", skip_serializing_if = "Option::is_none")]
|
||||
pub data: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
impl Permission {
|
||||
pub fn new(id: String, name: String, owner_id: String) -> Permission {
|
||||
Permission {
|
||||
data: None,
|
||||
id,
|
||||
name,
|
||||
owner_id,
|
||||
data: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,14 +10,14 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject {
|
||||
pub struct TwoFactorAuthCode {
|
||||
#[serde(rename = "code")]
|
||||
pub code: String,
|
||||
}
|
||||
|
||||
impl InlineObject {
|
||||
pub fn new(code: String) -> InlineObject {
|
||||
InlineObject {
|
||||
impl TwoFactorAuthCode {
|
||||
pub fn new(code: String) -> TwoFactorAuthCode {
|
||||
TwoFactorAuthCode {
|
||||
code,
|
||||
}
|
||||
}
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject11 {
|
||||
pub struct UpdateAvatarRequest {
|
||||
#[serde(rename = "assetUrl", skip_serializing_if = "Option::is_none")]
|
||||
pub asset_url: Option<String>,
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
@ -31,9 +31,9 @@ pub struct InlineObject11 {
|
||||
pub unity_package_url: Option<String>,
|
||||
}
|
||||
|
||||
impl InlineObject11 {
|
||||
pub fn new() -> InlineObject11 {
|
||||
InlineObject11 {
|
||||
impl UpdateAvatarRequest {
|
||||
pub fn new() -> UpdateAvatarRequest {
|
||||
UpdateAvatarRequest {
|
||||
asset_url: None,
|
||||
id: None,
|
||||
name: None,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject9 {
|
||||
pub struct UpdateFavoriteGroupRequest {
|
||||
#[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
|
||||
pub display_name: Option<String>,
|
||||
#[serde(rename = "visibility", skip_serializing_if = "Option::is_none")]
|
||||
@ -20,9 +20,9 @@ pub struct InlineObject9 {
|
||||
pub tags: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl InlineObject9 {
|
||||
pub fn new() -> InlineObject9 {
|
||||
InlineObject9 {
|
||||
impl UpdateFavoriteGroupRequest {
|
||||
pub fn new() -> UpdateFavoriteGroupRequest {
|
||||
UpdateFavoriteGroupRequest {
|
||||
display_name: None,
|
||||
visibility: None,
|
||||
tags: None,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject2 {
|
||||
pub struct UpdateUserRequest {
|
||||
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
|
||||
pub email: Option<String>,
|
||||
#[serde(rename = "birthday", skip_serializing_if = "Option::is_none")]
|
||||
@ -32,9 +32,9 @@ pub struct InlineObject2 {
|
||||
pub user_icon: Option<String>,
|
||||
}
|
||||
|
||||
impl InlineObject2 {
|
||||
pub fn new() -> InlineObject2 {
|
||||
InlineObject2 {
|
||||
impl UpdateUserRequest {
|
||||
pub fn new() -> UpdateUserRequest {
|
||||
UpdateUserRequest {
|
||||
email: None,
|
||||
birthday: None,
|
||||
accepted_tos_version: None,
|
@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineObject7 {
|
||||
pub struct UpdateWorldRequest {
|
||||
#[serde(rename = "assetUrl", skip_serializing_if = "Option::is_none")]
|
||||
pub asset_url: Option<String>,
|
||||
#[serde(rename = "assetVersion", skip_serializing_if = "Option::is_none")]
|
||||
@ -23,8 +23,6 @@ pub struct InlineObject7 {
|
||||
pub capacity: Option<i32>,
|
||||
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
|
||||
pub description: Option<String>,
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<String>,
|
||||
#[serde(rename = "imageUrl", skip_serializing_if = "Option::is_none")]
|
||||
pub image_url: Option<String>,
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
@ -42,16 +40,15 @@ pub struct InlineObject7 {
|
||||
pub unity_version: Option<String>,
|
||||
}
|
||||
|
||||
impl InlineObject7 {
|
||||
pub fn new() -> InlineObject7 {
|
||||
InlineObject7 {
|
||||
impl UpdateWorldRequest {
|
||||
pub fn new() -> UpdateWorldRequest {
|
||||
UpdateWorldRequest {
|
||||
asset_url: None,
|
||||
asset_version: None,
|
||||
author_id: None,
|
||||
author_name: None,
|
||||
capacity: None,
|
||||
description: None,
|
||||
id: None,
|
||||
image_url: None,
|
||||
name: None,
|
||||
platform: None,
|
@ -10,14 +10,14 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse2001 {
|
||||
pub struct Verify2FaResult {
|
||||
#[serde(rename = "verified")]
|
||||
pub verified: bool,
|
||||
}
|
||||
|
||||
impl InlineResponse2001 {
|
||||
pub fn new(verified: bool) -> InlineResponse2001 {
|
||||
InlineResponse2001 {
|
||||
impl Verify2FaResult {
|
||||
pub fn new(verified: bool) -> Verify2FaResult {
|
||||
Verify2FaResult {
|
||||
verified,
|
||||
}
|
||||
}
|
@ -10,16 +10,16 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse200 {
|
||||
pub struct VerifyAuthTokenResult {
|
||||
#[serde(rename = "ok")]
|
||||
pub ok: bool,
|
||||
#[serde(rename = "token")]
|
||||
pub token: String,
|
||||
}
|
||||
|
||||
impl InlineResponse200 {
|
||||
pub fn new(ok: bool, token: String) -> InlineResponse200 {
|
||||
InlineResponse200 {
|
||||
impl VerifyAuthTokenResult {
|
||||
pub fn new(ok: bool, token: String) -> VerifyAuthTokenResult {
|
||||
VerifyAuthTokenResult {
|
||||
ok,
|
||||
token,
|
||||
}
|
@ -10,16 +10,16 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse2005 {
|
||||
pub struct WorldMetadata {
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
#[serde(rename = "metadata")]
|
||||
pub metadata: serde_json::Value,
|
||||
}
|
||||
|
||||
impl InlineResponse2005 {
|
||||
pub fn new(id: String, metadata: serde_json::Value) -> InlineResponse2005 {
|
||||
InlineResponse2005 {
|
||||
impl WorldMetadata {
|
||||
pub fn new(id: String, metadata: serde_json::Value) -> WorldMetadata {
|
||||
WorldMetadata {
|
||||
id,
|
||||
metadata,
|
||||
}
|
@ -10,14 +10,14 @@
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct InlineResponse2006 {
|
||||
pub struct WorldPublishStatus {
|
||||
#[serde(rename = "canPubilsh")]
|
||||
pub can_pubilsh: bool,
|
||||
}
|
||||
|
||||
impl InlineResponse2006 {
|
||||
pub fn new(can_pubilsh: bool) -> InlineResponse2006 {
|
||||
InlineResponse2006 {
|
||||
impl WorldPublishStatus {
|
||||
pub fn new(can_pubilsh: bool) -> WorldPublishStatus {
|
||||
WorldPublishStatus {
|
||||
can_pubilsh,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user