mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Upgrade Rust SDK to spec 1.4.1
This commit is contained in:
@ -1,18 +1,17 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
.travis.yml
|
.travis.yml
|
||||||
Cargo.toml
|
Cargo.toml
|
||||||
|
docs/ApiConfig.md
|
||||||
|
docs/ApiEventConfig.md
|
||||||
docs/AuthenticationApi.md
|
docs/AuthenticationApi.md
|
||||||
docs/Avatar.md
|
docs/Avatar.md
|
||||||
docs/AvatarUnityPackageUrlObject.md
|
docs/AvatarUnityPackageUrlObject.md
|
||||||
docs/AvatarsApi.md
|
docs/AvatarsApi.md
|
||||||
docs/Config.md
|
|
||||||
docs/ConfigAnnouncements.md
|
|
||||||
docs/ConfigDownloadUrls.md
|
|
||||||
docs/ConfigDynamicWorldRows.md
|
|
||||||
docs/ConfigEvents.md
|
|
||||||
docs/CurrentUser.md
|
docs/CurrentUser.md
|
||||||
docs/DeploymentGroup.md
|
docs/DeploymentGroup.md
|
||||||
docs/DeveloperType.md
|
docs/DeveloperType.md
|
||||||
|
docs/DownloadUrlList.md
|
||||||
|
docs/DynamicWorldRow.md
|
||||||
docs/Error.md
|
docs/Error.md
|
||||||
docs/Favorite.md
|
docs/Favorite.md
|
||||||
docs/FavoriteGroup.md
|
docs/FavoriteGroup.md
|
||||||
@ -53,6 +52,8 @@ docs/InstancePlatforms.md
|
|||||||
docs/InviteApi.md
|
docs/InviteApi.md
|
||||||
docs/InviteMessage.md
|
docs/InviteMessage.md
|
||||||
docs/InviteMessageType.md
|
docs/InviteMessageType.md
|
||||||
|
docs/InviteRequest.md
|
||||||
|
docs/InviteResponse.md
|
||||||
docs/LimitedUnityPackage.md
|
docs/LimitedUnityPackage.md
|
||||||
docs/LimitedUser.md
|
docs/LimitedUser.md
|
||||||
docs/LimitedWorld.md
|
docs/LimitedWorld.md
|
||||||
@ -66,12 +67,14 @@ docs/PermissionsApi.md
|
|||||||
docs/PlayerModeration.md
|
docs/PlayerModeration.md
|
||||||
docs/PlayerModerationType.md
|
docs/PlayerModerationType.md
|
||||||
docs/PlayermoderationApi.md
|
docs/PlayermoderationApi.md
|
||||||
|
docs/PublicAnnouncement.md
|
||||||
docs/ReleaseStatus.md
|
docs/ReleaseStatus.md
|
||||||
docs/Response.md
|
docs/Response.md
|
||||||
docs/Success.md
|
docs/Success.md
|
||||||
docs/SystemApi.md
|
docs/SystemApi.md
|
||||||
docs/UnityPackage.md
|
docs/UnityPackage.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
|
docs/UserExists.md
|
||||||
docs/UserState.md
|
docs/UserState.md
|
||||||
docs/UserStatus.md
|
docs/UserStatus.md
|
||||||
docs/UsersApi.md
|
docs/UsersApi.md
|
||||||
@ -93,16 +96,15 @@ src/apis/system_api.rs
|
|||||||
src/apis/users_api.rs
|
src/apis/users_api.rs
|
||||||
src/apis/worlds_api.rs
|
src/apis/worlds_api.rs
|
||||||
src/lib.rs
|
src/lib.rs
|
||||||
|
src/models/api_config.rs
|
||||||
|
src/models/api_event_config.rs
|
||||||
src/models/avatar.rs
|
src/models/avatar.rs
|
||||||
src/models/avatar_unity_package_url_object.rs
|
src/models/avatar_unity_package_url_object.rs
|
||||||
src/models/config.rs
|
|
||||||
src/models/config_announcements.rs
|
|
||||||
src/models/config_download_urls.rs
|
|
||||||
src/models/config_dynamic_world_rows.rs
|
|
||||||
src/models/config_events.rs
|
|
||||||
src/models/current_user.rs
|
src/models/current_user.rs
|
||||||
src/models/deployment_group.rs
|
src/models/deployment_group.rs
|
||||||
src/models/developer_type.rs
|
src/models/developer_type.rs
|
||||||
|
src/models/download_url_list.rs
|
||||||
|
src/models/dynamic_world_row.rs
|
||||||
src/models/error.rs
|
src/models/error.rs
|
||||||
src/models/favorite.rs
|
src/models/favorite.rs
|
||||||
src/models/favorite_group.rs
|
src/models/favorite_group.rs
|
||||||
@ -139,6 +141,8 @@ src/models/instance.rs
|
|||||||
src/models/instance_platforms.rs
|
src/models/instance_platforms.rs
|
||||||
src/models/invite_message.rs
|
src/models/invite_message.rs
|
||||||
src/models/invite_message_type.rs
|
src/models/invite_message_type.rs
|
||||||
|
src/models/invite_request.rs
|
||||||
|
src/models/invite_response.rs
|
||||||
src/models/limited_unity_package.rs
|
src/models/limited_unity_package.rs
|
||||||
src/models/limited_user.rs
|
src/models/limited_user.rs
|
||||||
src/models/limited_world.rs
|
src/models/limited_world.rs
|
||||||
@ -150,11 +154,13 @@ src/models/past_display_name.rs
|
|||||||
src/models/permission.rs
|
src/models/permission.rs
|
||||||
src/models/player_moderation.rs
|
src/models/player_moderation.rs
|
||||||
src/models/player_moderation_type.rs
|
src/models/player_moderation_type.rs
|
||||||
|
src/models/public_announcement.rs
|
||||||
src/models/release_status.rs
|
src/models/release_status.rs
|
||||||
src/models/response.rs
|
src/models/response.rs
|
||||||
src/models/success.rs
|
src/models/success.rs
|
||||||
src/models/unity_package.rs
|
src/models/unity_package.rs
|
||||||
src/models/user.rs
|
src/models/user.rs
|
||||||
|
src/models/user_exists.rs
|
||||||
src/models/user_state.rs
|
src/models/user_state.rs
|
||||||
src/models/user_status.rs
|
src/models/user_status.rs
|
||||||
src/models/world.rs
|
src/models/world.rs
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "vrchatapi"
|
name = "vrchatapi"
|
||||||
version = "1.3.0"
|
version = "1.4.1"
|
||||||
authors = ["OpenAPI Generator team and contributors"]
|
authors = ["OpenAPI Generator team and contributors"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -1,84 +1,89 @@
|
|||||||
# Config
|
# ApiConfig
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**address** | **String** | VRChat's office address | [readonly]
|
**voice_enable_degradation** | **bool** | Unknown, probably voice optimization testing | [default to false]
|
||||||
**announcements** | [**Vec<crate::models::ConfigAnnouncements>**](Config_announcements.md) | Public Announcements | [readonly]
|
**voice_enable_receiver_limiting** | **bool** | Unknown, probably voice optimization testing | [default to true]
|
||||||
**api_key** | **String** | apiKey to be used for all other requests | [readonly]
|
**address** | **String** | VRChat's office address |
|
||||||
**app_name** | **String** | Game name | [readonly][default to VrChat]
|
**announcements** | [**Vec<crate::models::PublicAnnouncement>**](Public_Announcement.md) | Public Announcements |
|
||||||
**build_version_tag** | **String** | Build tag of the API server | [readonly]
|
**api_key** | **String** | apiKey to be used for all other requests |
|
||||||
**client_api_key** | **String** | apiKey to be used for all other requests | [readonly]
|
**app_name** | **String** | Game name | [default to VrChat]
|
||||||
**client_bps_ceiling** | Option<**f32**> | Unknown | [optional]
|
**build_version_tag** | **String** | Build tag of the API server |
|
||||||
**client_disconnect_timeout** | Option<**f32**> | Unknown | [optional]
|
**client_api_key** | **String** | apiKey to be used for all other requests |
|
||||||
**client_reserved_player_bps** | Option<**f32**> | Unknown | [optional]
|
**client_bps_ceiling** | **i32** | Unknown | [default to 18432]
|
||||||
**client_sent_count_allowance** | Option<**f32**> | Unknown | [optional]
|
**client_disconnect_timeout** | **i32** | Unknown | [default to 30000]
|
||||||
**contact_email** | **String** | VRChat's contact email | [readonly]
|
**client_reserved_player_bps** | **i32** | Unknown | [default to 7168]
|
||||||
**copyright_email** | **String** | VRChat's copyright-issues-related email | [readonly]
|
**client_sent_count_allowance** | **i32** | Unknown | [default to 15]
|
||||||
**current_tos_version** | **f32** | Current version number of the Terms of Service | [readonly]
|
**contact_email** | **String** | VRChat's contact email |
|
||||||
|
**copyright_email** | **String** | VRChat's copyright-issues-related email |
|
||||||
|
**current_tos_version** | **i32** | Current version number of the Terms of Service |
|
||||||
**default_avatar** | **String** | |
|
**default_avatar** | **String** | |
|
||||||
**deployment_group** | [**crate::models::DeploymentGroup**](DeploymentGroup.md) | |
|
**deployment_group** | [**crate::models::DeploymentGroup**](DeploymentGroup.md) | |
|
||||||
**dev_app_version_standalone** | **String** | Version number for game development build | [readonly]
|
**dev_app_version_standalone** | **String** | Version number for game development build |
|
||||||
**dev_download_link_windows** | **String** | Developer Download link | [readonly]
|
**dev_download_link_windows** | **String** | Developer Download link |
|
||||||
**dev_sdk_url** | **String** | Link to download the development SDK, use downloadUrls instead | [readonly]
|
**dev_sdk_url** | **String** | Link to download the development SDK, use downloadUrls instead |
|
||||||
**dev_sdk_version** | **String** | Version of the development SDK | [readonly]
|
**dev_sdk_version** | **String** | Version of the development SDK |
|
||||||
**dev_server_version_standalone** | **String** | Version number for server development build | [readonly]
|
**dev_server_version_standalone** | **String** | Version number for server development build |
|
||||||
|
**dis_countdown** | **String** | Unknown, \"dis\" maybe for disconnect? |
|
||||||
**disable_avatar_copying** | **bool** | Toggles if copying avatars should be disabled | [default to false]
|
**disable_avatar_copying** | **bool** | Toggles if copying avatars should be disabled | [default to false]
|
||||||
**disable_avatar_gating** | **bool** | Toggles if avatar gating should be disabled. Avatar gating restricts uploading of avatars to people with the `system_avatar_access` Tag or `admin_avatar_access` Tag | [default to false]
|
**disable_avatar_gating** | **bool** | Toggles if avatar gating should be disabled. Avatar gating restricts uploading of avatars to people with the `system_avatar_access` Tag or `admin_avatar_access` Tag | [default to false]
|
||||||
**disable_community_labs** | **bool** | Toggles if the Community Labs should be disabled | [default to false]
|
**disable_community_labs** | **bool** | Toggles if the Community Labs should be disabled | [default to false]
|
||||||
**disable_community_labs_promotion** | **bool** | Toggles if promotion out of Community Labs should be disabled | [default to false]
|
**disable_community_labs_promotion** | **bool** | Toggles if promotion out of Community Labs should be disabled | [default to false]
|
||||||
**disable_email** | Option<**bool**> | Unknown | [optional][default to false]
|
**disable_email** | **bool** | Unknown | [default to false]
|
||||||
**disable_event_stream** | **bool** | Toggles if Analytics should be disabled (this sreportedly not used in the Client) | [default to false]
|
**disable_event_stream** | **bool** | Toggles if Analytics should be disabled. | [default to false]
|
||||||
**disable_feedback_gating** | **bool** | Toggles if feedback gating should be disabled. Feedback gating restricts submission of feedback (reporting a World or User) to people with the `system_feedback_access` Tag. | [default to false]
|
**disable_feedback_gating** | **bool** | Toggles if feedback gating should be disabled. Feedback gating restricts submission of feedback (reporting a World or User) to people with the `system_feedback_access` Tag. | [default to false]
|
||||||
**disable_hello** | Option<**bool**> | Unknown | [optional][default to false]
|
**disable_frontend_builds** | **bool** | Unknown, probably toggles compilation of frontend web builds? So internal flag? | [default to false]
|
||||||
**disable_registration** | **bool** | Toggles if new user account registration should be disabled | [default to false]
|
**disable_hello** | **bool** | Unknown | [default to false]
|
||||||
|
**disable_oculus_subs** | **bool** | Toggles if signing up for Subscriptions in Oculus is disabled or not. | [default to false]
|
||||||
|
**disable_registration** | **bool** | Toggles if new user account registration should be disabled. | [default to false]
|
||||||
**disable_steam_networking** | **bool** | Toggles if Steam Networking should be disabled. VRChat these days uses Photon Unity Networking (PUN) instead. | [default to true]
|
**disable_steam_networking** | **bool** | Toggles if Steam Networking should be disabled. VRChat these days uses Photon Unity Networking (PUN) instead. | [default to true]
|
||||||
**disable_two_factor_auth** | **bool** | Toggles if 2FA should be disabled. | [default to false]
|
**disable_two_factor_auth** | **bool** | Toggles if 2FA should be disabled. | [default to false]
|
||||||
**disable_udon** | **bool** | Toggles if Udon should be universally disabled in-game. | [default to false]
|
**disable_udon** | **bool** | Toggles if Udon should be universally disabled in-game. | [default to false]
|
||||||
**disable_upgrade_account** | **bool** | Toggles if account upgrading \"linking with Steam/Oculus\" should be disabled. | [default to false]
|
**disable_upgrade_account** | **bool** | Toggles if account upgrading \"linking with Steam/Oculus\" should be disabled. | [default to false]
|
||||||
**download_link_windows** | **String** | Download link for game on the Oculus Rift website. | [readonly]
|
**download_link_windows** | **String** | Download link for game on the Oculus Rift website. |
|
||||||
**download_urls** | [**crate::models::ConfigDownloadUrls**](Config_downloadUrls.md) | |
|
**download_urls** | [**crate::models::DownloadUrlList**](DownloadURLList.md) | |
|
||||||
**dynamic_world_rows** | [**Vec<crate::models::ConfigDynamicWorldRows>**](Config_dynamicWorldRows.md) | Array of DynamicWorldRow objects, used by the game to display the list of world rows | [readonly]
|
**dynamic_world_rows** | [**Vec<crate::models::DynamicWorldRow>**](DynamicWorldRow.md) | Array of DynamicWorldRow objects, used by the game to display the list of world rows |
|
||||||
**events** | [**crate::models::ConfigEvents**](Config_events.md) | |
|
**events** | [**crate::models::ApiEventConfig**](APIEventConfig.md) | |
|
||||||
**gear_demo_room_id** | **String** | Unknown | [readonly]
|
**gear_demo_room_id** | **String** | Unknown |
|
||||||
**homepage_redirect_target** | **String** | Redirect target if you try to open the base API domain in your browser | [readonly][default to https://hello.vrchat.com]
|
|
||||||
**home_world_id** | **String** | |
|
**home_world_id** | **String** | |
|
||||||
|
**homepage_redirect_target** | **String** | Redirect target if you try to open the base API domain in your browser | [default to https://hello.vrchat.com]
|
||||||
**hub_world_id** | **String** | |
|
**hub_world_id** | **String** | |
|
||||||
**jobs_email** | **String** | VRChat's job application email | [readonly]
|
**jobs_email** | **String** | VRChat's job application email |
|
||||||
**message_of_the_day** | **String** | MOTD | [readonly]
|
**message_of_the_day** | **String** | MOTD |
|
||||||
**moderation_email** | **String** | VRChat's moderation related email | [readonly]
|
**moderation_email** | **String** | VRChat's moderation related email |
|
||||||
**moderation_query_period** | **f32** | Unknown |
|
**moderation_query_period** | **i32** | Unknown |
|
||||||
**not_allowed_to_select_avatar_in_private_world_message** | **String** | Used in-game to notify a user they aren't allowed to select avatars in private worlds | [readonly]
|
**not_allowed_to_select_avatar_in_private_world_message** | **String** | Used in-game to notify a user they aren't allowed to select avatars in private worlds |
|
||||||
**plugin** | **String** | Extra [plugin](https://doc.photonengine.com/en-us/server/current/plugins/manual) to run in each instance | [readonly]
|
**plugin** | **String** | Extra [plugin](https://doc.photonengine.com/en-us/server/current/plugins/manual) to run in each instance |
|
||||||
**release_app_version_standalone** | **String** | Version number for game release build | [readonly]
|
**release_app_version_standalone** | **String** | Version number for game release build |
|
||||||
**release_sdk_url** | **String** | Link to download the release SDK | [readonly]
|
**release_sdk_url** | **String** | Link to download the release SDK |
|
||||||
**release_sdk_version** | **String** | Version of the release SDK | [readonly]
|
**release_sdk_version** | **String** | Version of the release SDK |
|
||||||
**release_server_version_standalone** | **String** | Version number for server release build | [readonly]
|
**release_server_version_standalone** | **String** | Version number for server release build |
|
||||||
**sdk_developer_faq_url** | **String** | Link to the developer FAQ | [readonly]
|
**sdk_developer_faq_url** | **String** | Link to the developer FAQ |
|
||||||
**sdk_discord_url** | **String** | Link to the official VRChat Discord | [readonly]
|
**sdk_discord_url** | **String** | Link to the official VRChat Discord |
|
||||||
**sdk_not_allowed_to_publish_message** | **String** | Used in the SDK to notify a user they aren't allowed to upload avatars/worlds yet | [readonly]
|
**sdk_not_allowed_to_publish_message** | **String** | Used in the SDK to notify a user they aren't allowed to upload avatars/worlds yet |
|
||||||
**sdk_unity_version** | **String** | Unity version supported by the SDK | [readonly]
|
**sdk_unity_version** | **String** | Unity version supported by the SDK |
|
||||||
**server_name** | **String** | Server name of the API server currently responding | [readonly]
|
**server_name** | **String** | Server name of the API server currently responding |
|
||||||
**support_email** | **String** | VRChat's support email | [readonly]
|
**support_email** | **String** | VRChat's support email |
|
||||||
**time_out_world_id** | **String** | |
|
**time_out_world_id** | **String** | |
|
||||||
**tutorial_world_id** | **String** | |
|
**tutorial_world_id** | **String** | |
|
||||||
**update_rate_ms_maximum** | **f32** | Unknown | [readonly]
|
**update_rate_ms_maximum** | **i32** | Unknown |
|
||||||
**update_rate_ms_minimum** | **f32** | Unknown | [readonly]
|
**update_rate_ms_minimum** | **i32** | Unknown |
|
||||||
**update_rate_ms_normal** | **f32** | Unknown | [readonly]
|
**update_rate_ms_normal** | **i32** | Unknown |
|
||||||
**update_rate_ms_udon_manual** | **f32** | Unknown | [readonly]
|
**update_rate_ms_udon_manual** | **i32** | Unknown |
|
||||||
**upload_analysis_percent** | **f32** | Unknown | [readonly]
|
**upload_analysis_percent** | **i32** | Unknown |
|
||||||
**url_list** | **Vec<String>** | List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game | [readonly]
|
**url_list** | **Vec<String>** | List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game |
|
||||||
**use_reliable_udp_for_voice** | **bool** | Unknown | [default to false]
|
**use_reliable_udp_for_voice** | **bool** | Unknown | [default to false]
|
||||||
**user_update_period** | **f32** | Unknown | [readonly]
|
**user_update_period** | **i32** | Unknown |
|
||||||
**user_verification_delay** | **f32** | Unknown | [readonly]
|
**user_verification_delay** | **i32** | Unknown |
|
||||||
**user_verification_retry** | **f32** | Unknown | [readonly]
|
**user_verification_retry** | **i32** | Unknown |
|
||||||
**user_verification_timeout** | **f32** | Unknown | [readonly]
|
**user_verification_timeout** | **i32** | Unknown |
|
||||||
**vive_windows_url** | **String** | Download link for game on the Steam website. | [readonly]
|
**vive_windows_url** | **String** | Download link for game on the Steam website. |
|
||||||
**white_listed_asset_urls** | **Vec<String>** | List of allowed URLs that are allowed to host avatar assets | [readonly]
|
**white_listed_asset_urls** | **Vec<String>** | List of allowed URLs that are allowed to host avatar assets |
|
||||||
**world_update_period** | **f32** | Unknown | [readonly]
|
**world_update_period** | **i32** | Unknown |
|
||||||
**youtubedl_hash** | **String** | Currently used youtube-dl.exe hash in SHA-256-delimited format | [readonly]
|
**youtubedl_hash** | **String** | Currently used youtube-dl.exe hash in SHA-256-delimited format |
|
||||||
**youtubedl_version** | **String** | Currently used youtube-dl.exe version | [readonly]
|
**youtubedl_version** | **String** | Currently used youtube-dl.exe version |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
20
docs/ApiEventConfig.md
Normal file
20
docs/ApiEventConfig.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# ApiEventConfig
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**distance_close** | **i32** | Unknown |
|
||||||
|
**distance_factor** | **i32** | Unknown |
|
||||||
|
**distance_far** | **i32** | Unknown |
|
||||||
|
**group_distance** | **i32** | Unknown |
|
||||||
|
**maximum_bunch_size** | **i32** | Unknown |
|
||||||
|
**not_visible_factor** | **i32** | Unknown |
|
||||||
|
**player_order_bucket_size** | **i32** | Unknown |
|
||||||
|
**player_order_factor** | **i32** | Unknown |
|
||||||
|
**slow_update_factor_threshold** | **i32** | Unknown |
|
||||||
|
**view_segment_length** | **i32** | 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)
|
||||||
|
|
||||||
|
|
@ -4,6 +4,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
|
|||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
[**check_user_exists**](AuthenticationApi.md#check_user_exists) | **GET** /auth/exists | Check User Exists
|
||||||
[**delete_user**](AuthenticationApi.md#delete_user) | **PUT** /user/{userId}/delete | Delete User
|
[**delete_user**](AuthenticationApi.md#delete_user) | **PUT** /user/{userId}/delete | Delete User
|
||||||
[**get_current_user**](AuthenticationApi.md#get_current_user) | **GET** /auth/user | Login and/or Get Current User Info
|
[**get_current_user**](AuthenticationApi.md#get_current_user) | **GET** /auth/user | Login and/or Get Current User Info
|
||||||
[**logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout
|
[**logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout
|
||||||
@ -13,6 +14,39 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## check_user_exists
|
||||||
|
|
||||||
|
> crate::models::UserExists check_user_exists(email, display_name, user_id, exclude_user_id)
|
||||||
|
Check User Exists
|
||||||
|
|
||||||
|
Checks if a user by a given `username`, `displayName` or `email` exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the `excludeUserId` is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** `username`, `displayName` **or** `email` query parameter. Although they can be combined - in addition with `excludeUserId` (generally to exclude yourself) - to further fine-tune the search.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**email** | Option<**String**> | Filter by email. | |
|
||||||
|
**display_name** | Option<**String**> | Filter by displayName. | |
|
||||||
|
**user_id** | Option<**String**> | Filter by UserID. | |
|
||||||
|
**exclude_user_id** | Option<**String**> | Exclude by UserID. | |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**crate::models::UserExists**](UserExists.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie)
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
|
||||||
## delete_user
|
## delete_user
|
||||||
|
|
||||||
> crate::models::CurrentUser delete_user(user_id)
|
> crate::models::CurrentUser delete_user(user_id)
|
||||||
@ -48,7 +82,7 @@ Name | Type | Description | Required | Notes
|
|||||||
> crate::models::CurrentUser get_current_user()
|
> crate::models::CurrentUser get_current_user()
|
||||||
Login and/or Get Current User Info
|
Login and/or Get Current User Info
|
||||||
|
|
||||||
Login and/or Get user data from your VRChat account. If `Authorization` header is present then a new login session will be generated, and a new `auth` cookie is returned. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie whenever you can, and avoid sending the Authorization header unless strictly neccesary. While the exact number of simultaneous open sessions is secret, expect to **very fast** run into the rate-limit and be temporarily blocked from making new sessions until the old ones expire.
|
This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
|
@ -17,11 +17,11 @@ Name | Type | Description | Notes
|
|||||||
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
**thumbnail_image_url** | **String** | |
|
**thumbnail_image_url** | **String** | |
|
||||||
**unity_packages** | [**Vec<crate::models::UnityPackage>**](UnityPackage.md) | |
|
|
||||||
**unity_package_url** | **String** | |
|
**unity_package_url** | **String** | |
|
||||||
**unity_package_url_object** | [**crate::models::AvatarUnityPackageUrlObject**](Avatar_unityPackageUrlObject.md) | |
|
**unity_package_url_object** | [**crate::models::AvatarUnityPackageUrlObject**](Avatar_unityPackageUrlObject.md) | |
|
||||||
|
**unity_packages** | [**Vec<crate::models::UnityPackage>**](UnityPackage.md) | |
|
||||||
**updated_at** | **String** | |
|
**updated_at** | **String** | |
|
||||||
**version** | **f32** | | [readonly][default to 0]
|
**version** | **i32** | | [readonly][default to 0]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ Name | Type | Description | Required | Notes
|
|||||||
**search** | Option<**String**> | Filters by world name. | |
|
**search** | Option<**String**> | Filters by world name. | |
|
||||||
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
||||||
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
||||||
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to hidden]
|
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to public]
|
||||||
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
||||||
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
||||||
**platform** | Option<**String**> | The platform the asset supports. | |
|
**platform** | Option<**String**> | The platform the asset supports. | |
|
||||||
@ -161,13 +161,13 @@ Name | Type | Description | Required | Notes
|
|||||||
**featured** | Option<**String**> | Filters on featured results. | |
|
**featured** | Option<**String**> | Filters on featured results. | |
|
||||||
**sort** | Option<**String**> | | |[default to popularity]
|
**sort** | Option<**String**> | | |[default to popularity]
|
||||||
**user** | Option<**String**> | Set to `me` for searching own avatars. | |
|
**user** | Option<**String**> | Set to `me` for searching own avatars. | |
|
||||||
**user_id** | Option<**String**> | Filter by author UserID | |
|
**user_id** | Option<**String**> | Filter by UserID. | |
|
||||||
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
|
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
|
||||||
**order** | Option<**String**> | | |[default to descending]
|
**order** | Option<**String**> | | |[default to descending]
|
||||||
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
|
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
|
||||||
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
||||||
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
||||||
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to hidden]
|
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to public]
|
||||||
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
||||||
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
||||||
**platform** | Option<**String**> | The platform the asset supports. | |
|
**platform** | Option<**String**> | The platform the asset supports. | |
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
# ConfigEvents
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**distance_close** | **f32** | Unknown | [readonly]
|
|
||||||
**distance_factor** | **f32** | Unknown | [readonly]
|
|
||||||
**distance_far** | **f32** | Unknown | [readonly]
|
|
||||||
**group_distance** | **f32** | Unknown | [readonly]
|
|
||||||
**maximum_bunch_size** | **f32** | Unknown | [readonly]
|
|
||||||
**not_visible_factor** | **f32** | Unknown | [readonly]
|
|
||||||
**player_order_bucket_size** | **f32** | Unknown | [readonly]
|
|
||||||
**player_order_factor** | **f32** | Unknown | [readonly]
|
|
||||||
**slow_update_factor_threshold** | **f32** | Unknown | [readonly]
|
|
||||||
**view_segment_length** | **f32** | Unknown | [readonly]
|
|
||||||
|
|
||||||
[[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,52 +4,52 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
**accepted_tos_version** | **i32** | |
|
||||||
**username** | **String** | |
|
**account_deletion_date** | Option<[**String**](string.md)> | | [optional]
|
||||||
**display_name** | **String** | |
|
**active_friends** | Option<**Vec<String>**> | | [optional]
|
||||||
**user_icon** | **String** | |
|
**allow_avatar_copying** | **bool** | |
|
||||||
**bio** | **String** | |
|
**bio** | **String** | |
|
||||||
**bio_links** | **Vec<String>** | |
|
**bio_links** | **Vec<String>** | |
|
||||||
**profile_pic_override** | **String** | |
|
|
||||||
**status_description** | **String** | |
|
|
||||||
**past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | |
|
|
||||||
**has_email** | **bool** | |
|
|
||||||
**has_pending_email** | **bool** | |
|
|
||||||
**obfuscated_email** | **String** | |
|
|
||||||
**obfuscated_pending_email** | **String** | |
|
|
||||||
**email_verified** | **bool** | |
|
|
||||||
**has_birthday** | **bool** | |
|
|
||||||
**unsubscribe** | **bool** | |
|
|
||||||
**status_history** | **Vec<String>** | |
|
|
||||||
**status_first_time** | **bool** | |
|
|
||||||
**friends** | **Vec<String>** | |
|
|
||||||
**friend_group_names** | **Vec<String>** | Always empty array. |
|
|
||||||
**current_avatar_image_url** | **String** | |
|
|
||||||
**current_avatar_thumbnail_image_url** | **String** | |
|
|
||||||
**fallback_avatar** | **String** | |
|
|
||||||
**current_avatar** | **String** | |
|
**current_avatar** | **String** | |
|
||||||
**current_avatar_asset_url** | **String** | |
|
**current_avatar_asset_url** | **String** | |
|
||||||
**account_deletion_date** | Option<[**String**](string.md)> | | [optional]
|
**current_avatar_image_url** | **String** | |
|
||||||
**accepted_tos_version** | **f32** | |
|
**current_avatar_thumbnail_image_url** | **String** | |
|
||||||
**steam_id** | **String** | |
|
**date_joined** | [**String**](string.md) | |
|
||||||
**steam_details** | [**serde_json::Value**](.md) | |
|
|
||||||
**oculus_id** | **String** | |
|
|
||||||
**has_logged_in_from_client** | **bool** | |
|
|
||||||
**home_location** | **String** | |
|
|
||||||
**two_factor_auth_enabled** | **bool** | |
|
|
||||||
**state** | [**crate::models::UserState**](UserState.md) | |
|
|
||||||
**tags** | **Vec<String>** | |
|
|
||||||
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
||||||
|
**display_name** | **String** | |
|
||||||
|
**email_verified** | **bool** | |
|
||||||
|
**fallback_avatar** | Option<**String**> | | [optional]
|
||||||
|
**friend_group_names** | **Vec<String>** | Always empty array. |
|
||||||
|
**friend_key** | **String** | |
|
||||||
|
**friends** | **Vec<String>** | |
|
||||||
|
**has_birthday** | **bool** | |
|
||||||
|
**has_email** | **bool** | |
|
||||||
|
**has_logged_in_from_client** | **bool** | |
|
||||||
|
**has_pending_email** | **bool** | |
|
||||||
|
**home_location** | **String** | |
|
||||||
|
**id** | **String** | |
|
||||||
|
**is_friend** | **bool** | | [default to false]
|
||||||
**last_login** | **String** | |
|
**last_login** | **String** | |
|
||||||
**last_platform** | **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`. |
|
**last_platform** | **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`. |
|
||||||
**allow_avatar_copying** | **bool** | |
|
**obfuscated_email** | **String** | |
|
||||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
**obfuscated_pending_email** | **String** | |
|
||||||
**date_joined** | [**String**](string.md) | | [readonly]
|
**oculus_id** | **String** | |
|
||||||
**is_friend** | **bool** | | [default to false]
|
|
||||||
**friend_key** | **String** | |
|
|
||||||
**online_friends** | Option<**Vec<String>**> | | [optional]
|
|
||||||
**active_friends** | Option<**Vec<String>**> | | [optional]
|
|
||||||
**offline_friends** | Option<**Vec<String>**> | | [optional]
|
**offline_friends** | Option<**Vec<String>**> | | [optional]
|
||||||
|
**online_friends** | Option<**Vec<String>**> | | [optional]
|
||||||
|
**past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | |
|
||||||
|
**profile_pic_override** | **String** | |
|
||||||
|
**state** | [**crate::models::UserState**](UserState.md) | |
|
||||||
|
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||||
|
**status_description** | **String** | |
|
||||||
|
**status_first_time** | **bool** | |
|
||||||
|
**status_history** | **Vec<String>** | |
|
||||||
|
**steam_details** | [**serde_json::Value**](.md) | |
|
||||||
|
**steam_id** | **String** | |
|
||||||
|
**tags** | **Vec<String>** | |
|
||||||
|
**two_factor_auth_enabled** | **bool** | |
|
||||||
|
**unsubscribe** | **bool** | |
|
||||||
|
**user_icon** | **String** | |
|
||||||
|
**username** | **String** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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,12 +1,12 @@
|
|||||||
# ConfigDownloadUrls
|
# DownloadUrlList
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**sdk2** | **String** | Download link for legacy SDK2 | [readonly]
|
**sdk2** | **String** | Download link for legacy SDK2 |
|
||||||
**sdk3_avatars** | **String** | Download link for SDK3 for Avatars | [readonly]
|
**sdk3_avatars** | **String** | Download link for SDK3 for Avatars |
|
||||||
**sdk3_worlds** | **String** | Download link for SDK3 for Worlds | [readonly]
|
**sdk3_worlds** | **String** | Download link for SDK3 for Worlds |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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,16 +1,16 @@
|
|||||||
# ConfigDynamicWorldRows
|
# DynamicWorldRow
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**index** | **f32** | | [readonly]
|
**index** | **i32** | |
|
||||||
**name** | **String** | | [readonly]
|
**name** | **String** | |
|
||||||
**platform** | **String** | | [readonly]
|
**platform** | **String** | |
|
||||||
**sort_heading** | **String** | | [readonly]
|
**sort_heading** | **String** | |
|
||||||
**sort_order** | **String** | | [readonly]
|
**sort_order** | **String** | |
|
||||||
**sort_ownership** | **String** | | [readonly]
|
**sort_ownership** | **String** | |
|
||||||
**tag** | Option<**String**> | Tag to filter worlds for this row | [optional][readonly]
|
**tag** | Option<**String**> | Tag to filter worlds for this row. Not always present. | [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)
|
[[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,10 +4,10 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
|
||||||
**favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. |
|
**favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. |
|
||||||
|
**id** | **String** | |
|
||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
|
**_type** | [**crate::models::FavoriteType**](FavoriteType.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)
|
[[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,14 +4,14 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**owner_id** | **String** | |
|
|
||||||
**owner_display_name** | **String** | |
|
|
||||||
**name** | **String** | |
|
|
||||||
**display_name** | **String** | |
|
**display_name** | **String** | |
|
||||||
|
**id** | **String** | |
|
||||||
|
**name** | **String** | |
|
||||||
|
**owner_display_name** | **String** | |
|
||||||
|
**owner_id** | **String** | |
|
||||||
|
**tags** | **Vec<String>** | |
|
||||||
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||||
**visibility** | [**crate::models::FavoriteGroupVisibility**](FavoriteGroupVisibility.md) | |
|
**visibility** | [**crate::models::FavoriteGroupVisibility**](FavoriteGroupVisibility.md) | |
|
||||||
**tags** | **Vec<String>** | |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**extension** | **String** | |
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
|
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**owner_id** | **String** | |
|
**owner_id** | **String** | |
|
||||||
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
|
|
||||||
**extension** | **String** | |
|
|
||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
**versions** | [**Vec<crate::models::FileVersion>**](FileVersion.md) | |
|
**versions** | [**Vec<crate::models::FileVersion>**](FileVersion.md) | |
|
||||||
|
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**file_name** | **String** | |
|
|
||||||
**url** | **String** | |
|
|
||||||
**md5** | **String** | |
|
|
||||||
**size_in_bytes** | **f32** | |
|
|
||||||
**status** | [**crate::models::FileStatus**](FileStatus.md) | |
|
|
||||||
**category** | **String** | | [readonly]
|
**category** | **String** | | [readonly]
|
||||||
|
**file_name** | **String** | |
|
||||||
|
**md5** | **String** | |
|
||||||
|
**size_in_bytes** | **i32** | |
|
||||||
|
**status** | [**crate::models::FileStatus**](FileStatus.md) | |
|
||||||
**upload_id** | **String** | | [default to ]
|
**upload_id** | **String** | | [default to ]
|
||||||
|
**url** | **String** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**version** | **f32** | Incremental version counter, can only be increased. | [default to 0]
|
**created_at** | **String** | |
|
||||||
**status** | [**crate::models::FileStatus**](FileStatus.md) | |
|
|
||||||
**created_at** | **String** | | [readonly]
|
|
||||||
**file** | Option<[**crate::models::FileData**](FileData.md)> | | [optional]
|
|
||||||
**delta** | Option<[**crate::models::FileData**](FileData.md)> | | [optional]
|
|
||||||
**signature** | Option<[**crate::models::FileData**](FileData.md)> | | [optional]
|
|
||||||
**deleted** | Option<**bool**> | Usually only present if `true` | [optional][default to true]
|
**deleted** | Option<**bool**> | Usually only present if `true` | [optional][default to true]
|
||||||
|
**delta** | Option<[**crate::models::FileData**](FileData.md)> | | [optional]
|
||||||
|
**file** | Option<[**crate::models::FileData**](FileData.md)> | | [optional]
|
||||||
|
**signature** | Option<[**crate::models::FileData**](FileData.md)> | | [optional]
|
||||||
|
**status** | [**crate::models::FileStatus**](FileStatus.md) | |
|
||||||
|
**version** | **i32** | Incremental version counter, can only be increased. | [default to 0]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**incoming_request** | **bool** | | [default to false]
|
||||||
**is_friend** | **bool** | | [default to false]
|
**is_friend** | **bool** | | [default to false]
|
||||||
**outgoing_request** | **bool** | | [default to false]
|
**outgoing_request** | **bool** | | [default to false]
|
||||||
**incoming_request** | **bool** | | [default to false]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -6,13 +6,13 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**active** | **bool** | | [default to true]
|
**active** | **bool** | | [default to true]
|
||||||
**can_request_invite** | **bool** | | [default to true]
|
**can_request_invite** | **bool** | | [default to true]
|
||||||
**capacity** | **f32** | |
|
**capacity** | **i32** | |
|
||||||
**client_number** | **String** | |
|
**client_number** | **i32** | |
|
||||||
**full** | **bool** | | [default to false]
|
**full** | **bool** | | [default to false]
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
**instance_id** | **String** | |
|
**instance_id** | **String** | |
|
||||||
**location** | **String** | |
|
**location** | **String** | |
|
||||||
**n_users** | **f32** | |
|
**n_users** | **i32** | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**nonce** | Option<**String**> | | [optional]
|
**nonce** | Option<**String**> | | [optional]
|
||||||
**owner_id** | **String** | |
|
**owner_id** | **String** | |
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**android** | **f32** | |
|
**android** | **i32** | |
|
||||||
**standalonewindows** | **f32** | |
|
**standalonewindows** | **i32** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,22 +4,22 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
|
|||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**get_invite_message**](InviteApi.md#get_invite_message) | **GET** /message/{userId}/message/{messageId} | Get Invite Messages
|
[**get_invite_message**](InviteApi.md#get_invite_message) | **GET** /message/{userId}/{messageType}/{messageId} | Get Invite Messages
|
||||||
[**get_invite_messages**](InviteApi.md#get_invite_messages) | **GET** /message/{userId}/message | List Invite Messages
|
[**get_invite_messages**](InviteApi.md#get_invite_messages) | **GET** /message/{userId}/{messageType} | List Invite Messages
|
||||||
[**invite_user**](InviteApi.md#invite_user) | **POST** /invite/{userId} | Invite User
|
[**invite_user**](InviteApi.md#invite_user) | **POST** /invite/{userId} | Invite User
|
||||||
[**request_invite**](InviteApi.md#request_invite) | **POST** /requestInvite/{userId} | Request Invite
|
[**request_invite**](InviteApi.md#request_invite) | **POST** /requestInvite/{userId} | Request Invite
|
||||||
[**reset_invite_message**](InviteApi.md#reset_invite_message) | **DELETE** /message/{userId}/message/{messageId} | Reset Invite Message
|
[**reset_invite_message**](InviteApi.md#reset_invite_message) | **DELETE** /message/{userId}/{messageType}/{messageId} | Reset Invite Message
|
||||||
[**respond_invite**](InviteApi.md#respond_invite) | **POST** /invite/{notificationId}/response | Respond Invite
|
[**respond_invite**](InviteApi.md#respond_invite) | **POST** /invite/{notificationId}/response | Respond Invite
|
||||||
[**update_invite_message**](InviteApi.md#update_invite_message) | **PUT** /message/{userId}/message/{messageId} | Update Invite Message
|
[**update_invite_message**](InviteApi.md#update_invite_message) | **PUT** /message/{userId}/{messageType}/{messageId} | Update Invite Message
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## get_invite_message
|
## get_invite_message
|
||||||
|
|
||||||
> crate::models::InviteMessage get_invite_message(user_id, message_id)
|
> crate::models::InviteMessage get_invite_message(user_id, message_type, message_id)
|
||||||
Get Invite Messages
|
Get Invite Messages
|
||||||
|
|
||||||
Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
|
Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
@ -27,6 +27,7 @@ Returns a single Invite Message. This returns the exact same information but les
|
|||||||
Name | Type | Description | Required | Notes
|
Name | Type | Description | Required | Notes
|
||||||
------------- | ------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
**user_id** | **String** | | [required] |
|
**user_id** | **String** | | [required] |
|
||||||
|
**message_type** | **String** | | [required] |
|
||||||
**message_id** | **i32** | | [required] |
|
**message_id** | **i32** | | [required] |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
@ -47,10 +48,10 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## get_invite_messages
|
## get_invite_messages
|
||||||
|
|
||||||
> Vec<crate::models::InviteMessage> get_invite_messages(user_id)
|
> Vec<crate::models::InviteMessage> get_invite_messages(user_id, message_type)
|
||||||
List Invite Messages
|
List Invite Messages
|
||||||
|
|
||||||
Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
|
Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
@ -58,6 +59,7 @@ Returns a list of all that users Invite Messages. Admin Credentials are required
|
|||||||
Name | Type | Description | Required | Notes
|
Name | Type | Description | Required | Notes
|
||||||
------------- | ------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
**user_id** | **String** | | [required] |
|
**user_id** | **String** | | [required] |
|
||||||
|
**message_type** | **String** | | [required] |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -77,7 +79,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## invite_user
|
## invite_user
|
||||||
|
|
||||||
> crate::models::Notification invite_user(user_id)
|
> crate::models::Notification invite_user(user_id, invite_request)
|
||||||
Invite User
|
Invite User
|
||||||
|
|
||||||
Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
||||||
@ -88,6 +90,7 @@ Sends an invite to a user. Returns the Notification of type `invite` that was se
|
|||||||
Name | Type | Description | Required | Notes
|
Name | Type | Description | Required | Notes
|
||||||
------------- | ------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
**user_id** | **String** | | [required] |
|
**user_id** | **String** | | [required] |
|
||||||
|
**invite_request** | Option<[**InviteRequest**](InviteRequest.md)> | Instance ID when inviting a user. | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -99,7 +102,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/json
|
- **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)
|
[[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)
|
||||||
@ -137,10 +140,10 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## reset_invite_message
|
## reset_invite_message
|
||||||
|
|
||||||
> Vec<crate::models::InviteMessage> reset_invite_message(user_id, message_id)
|
> Vec<crate::models::InviteMessage> reset_invite_message(user_id, message_type, message_id)
|
||||||
Reset Invite Message
|
Reset Invite Message
|
||||||
|
|
||||||
Resets a single Invite Message back to it's original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
Resets a single Invite Message back to it's original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
@ -148,6 +151,7 @@ Resets a single Invite Message back to it's original message, and then returns a
|
|||||||
Name | Type | Description | Required | Notes
|
Name | Type | Description | Required | Notes
|
||||||
------------- | ------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
**user_id** | **String** | | [required] |
|
**user_id** | **String** | | [required] |
|
||||||
|
**message_type** | **String** | | [required] |
|
||||||
**message_id** | **i32** | | [required] |
|
**message_id** | **i32** | | [required] |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
@ -168,7 +172,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## respond_invite
|
## respond_invite
|
||||||
|
|
||||||
> crate::models::Notification respond_invite(notification_id)
|
> crate::models::Notification respond_invite(notification_id, invite_response)
|
||||||
Respond Invite
|
Respond Invite
|
||||||
|
|
||||||
Sends a world invite to a user.
|
Sends a world invite to a user.
|
||||||
@ -179,6 +183,7 @@ Sends a world invite to a user.
|
|||||||
Name | Type | Description | Required | Notes
|
Name | Type | Description | Required | Notes
|
||||||
------------- | ------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
**notification_id** | **String** | | [required] |
|
**notification_id** | **String** | | [required] |
|
||||||
|
**invite_response** | Option<[**InviteResponse**](InviteResponse.md)> | Instance ID when inviting a user. | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -190,7 +195,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/json
|
- **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)
|
[[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)
|
||||||
@ -198,10 +203,10 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## update_invite_message
|
## update_invite_message
|
||||||
|
|
||||||
> Vec<crate::models::InviteMessage> update_invite_message(user_id, message_id)
|
> Vec<crate::models::InviteMessage> update_invite_message(user_id, message_type, message_id)
|
||||||
Update Invite Message
|
Update Invite Message
|
||||||
|
|
||||||
Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
@ -209,6 +214,7 @@ Updates a single Invite Message and then returns a list of all of them. Admin Cr
|
|||||||
Name | Type | Description | Required | Notes
|
Name | Type | Description | Required | Notes
|
||||||
------------- | ------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
**user_id** | **String** | | [required] |
|
**user_id** | **String** | | [required] |
|
||||||
|
**message_type** | **String** | | [required] |
|
||||||
**message_id** | **i32** | | [required] |
|
**message_id** | **i32** | | [required] |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**can_be_updated** | **bool** | | [default to true]
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
**slot** | **i32** | |
|
|
||||||
**message** | **String** | |
|
**message** | **String** | |
|
||||||
**message_type** | [**crate::models::InviteMessageType**](InviteMessageType.md) | |
|
**message_type** | [**crate::models::InviteMessageType**](InviteMessageType.md) | |
|
||||||
**updated_at** | **String** | |
|
|
||||||
**remaining_cooldown_minutes** | **i32** | Changes to 60 when updated, although probably server-side configurable. | [default to 0]
|
**remaining_cooldown_minutes** | **i32** | Changes to 60 when updated, although probably server-side configurable. | [default to 0]
|
||||||
**can_be_updated** | **bool** | | [default to true]
|
**slot** | **i32** | |
|
||||||
|
**updated_at** | **String** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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 +1,10 @@
|
|||||||
# ConfigAnnouncements
|
# InviteRequest
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **String** | Announcement name | [readonly]
|
**instance_id** | **String** | |
|
||||||
**text** | **String** | Announcement text | [readonly]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
11
docs/InviteResponse.md
Normal file
11
docs/InviteResponse.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# InviteResponse
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**response_slot** | **i32** | |
|
||||||
|
|
||||||
|
[[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,21 +4,21 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**username** | **String** | |
|
|
||||||
**display_name** | **String** | |
|
|
||||||
**bio** | Option<**String**> | | [optional]
|
**bio** | Option<**String**> | | [optional]
|
||||||
**user_icon** | **String** | |
|
|
||||||
**profile_pic_override** | **String** | |
|
|
||||||
**status_description** | **String** | |
|
|
||||||
**current_avatar_image_url** | **String** | |
|
**current_avatar_image_url** | **String** | |
|
||||||
**current_avatar_thumbnail_image_url** | **String** | |
|
**current_avatar_thumbnail_image_url** | **String** | |
|
||||||
**fallback_avatar** | **String** | |
|
|
||||||
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
||||||
**last_platform** | **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`. |
|
**display_name** | **String** | |
|
||||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
**fallback_avatar** | **String** | |
|
||||||
|
**id** | **String** | |
|
||||||
**is_friend** | **bool** | |
|
**is_friend** | **bool** | |
|
||||||
|
**last_platform** | **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`. |
|
||||||
|
**profile_pic_override** | **String** | |
|
||||||
|
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||||
|
**status_description** | **String** | |
|
||||||
**tags** | **Vec<String>** | <- Always empty. |
|
**tags** | **Vec<String>** | <- Always empty. |
|
||||||
|
**user_icon** | **String** | |
|
||||||
|
**username** | **String** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,25 +4,25 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**name** | **String** | |
|
|
||||||
**author_id** | **String** | |
|
**author_id** | **String** | |
|
||||||
**author_name** | **String** | |
|
**author_name** | **String** | |
|
||||||
**capacity** | **f32** | |
|
**capacity** | **i32** | |
|
||||||
**image_url** | **String** | |
|
|
||||||
**thumbnail_image_url** | **String** | |
|
|
||||||
**release_status** | **String** | |
|
|
||||||
**organization** | **String** | |
|
|
||||||
**tags** | **Vec<String>** | |
|
|
||||||
**favorites** | **f32** | |
|
|
||||||
**created_at** | **String** | |
|
**created_at** | **String** | |
|
||||||
**updated_at** | **String** | |
|
**favorites** | **i32** | | [default to 0]
|
||||||
**publication_date** | **String** | | [readonly]
|
**heat** | **i32** | | [default to 0]
|
||||||
|
**id** | **String** | |
|
||||||
|
**image_url** | **String** | |
|
||||||
**labs_publication_date** | **String** | |
|
**labs_publication_date** | **String** | |
|
||||||
|
**name** | **String** | |
|
||||||
|
**occupants** | **i32** | | [default to 0]
|
||||||
|
**organization** | **String** | | [default to vrchat]
|
||||||
|
**popularity** | **i32** | | [default to 0]
|
||||||
|
**publication_date** | **String** | |
|
||||||
|
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
||||||
|
**tags** | **Vec<String>** | |
|
||||||
|
**thumbnail_image_url** | **String** | |
|
||||||
**unity_packages** | [**Vec<crate::models::LimitedUnityPackage>**](LimitedUnityPackage.md) | |
|
**unity_packages** | [**Vec<crate::models::LimitedUnityPackage>**](LimitedUnityPackage.md) | |
|
||||||
**popularity** | **f32** | |
|
**updated_at** | **String** | |
|
||||||
**heat** | **f32** | |
|
|
||||||
**occupants** | **f32** | |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**created_at** | **String** | |
|
||||||
|
**details** | **String** | **NOTICE:** This is not a JSON object, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. | [default to {}]
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
|
**message** | **String** | |
|
||||||
|
**seen** | **bool** | | [default to false]
|
||||||
**sender_user_id** | **String** | |
|
**sender_user_id** | **String** | |
|
||||||
**sender_username** | **String** | |
|
**sender_username** | **String** | |
|
||||||
**_type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
**_type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
||||||
**message** | **String** | |
|
|
||||||
**details** | **String** | **NOTICE:** This is not a JSON object, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. | [default to {}]
|
|
||||||
**seen** | **bool** | | [default to false]
|
|
||||||
**created_at** | **String** | |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**owner_id** | **String** | |
|
|
||||||
**name** | **String** | |
|
|
||||||
**data** | Option<[**serde_json::Value**](.md)> | | [optional]
|
**data** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||||
|
**id** | **String** | |
|
||||||
|
**name** | **String** | |
|
||||||
|
**owner_id** | **String** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
|
||||||
**source_user_id** | **String** | |
|
|
||||||
**source_display_name** | **String** | |
|
|
||||||
**target_user_id** | **String** | |
|
|
||||||
**target_display_name** | **String** | |
|
|
||||||
**created** | **String** | |
|
**created** | **String** | |
|
||||||
|
**id** | **String** | |
|
||||||
|
**source_display_name** | **String** | |
|
||||||
|
**source_user_id** | **String** | |
|
||||||
|
**target_display_name** | **String** | |
|
||||||
|
**target_user_id** | **String** | |
|
||||||
|
**_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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
12
docs/PublicAnnouncement.md
Normal file
12
docs/PublicAnnouncement.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# PublicAnnouncement
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**name** | **String** | Announcement name |
|
||||||
|
**text** | **String** | Announcement text |
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**message** | Option<**String**> | | [optional]
|
**message** | Option<**String**> | | [optional]
|
||||||
**status_code** | **f32** | |
|
**status_code** | **i32** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -5,15 +5,17 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
|
|||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**get_config**](SystemApi.md#get_config) | **GET** /config | Fetch API Config
|
[**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_current_online_users**](SystemApi.md#get_current_online_users) | **GET** /visits | Current Online Users
|
[**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_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_system_time**](SystemApi.md#get_system_time) | **GET** /time | Current System Time
|
[**get_system_time**](SystemApi.md#get_system_time) | **GET** /time | Current System Time
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## get_config
|
## get_config
|
||||||
|
|
||||||
> crate::models::Config get_config()
|
> crate::models::ApiConfig get_config()
|
||||||
Fetch API Config
|
Fetch API Config
|
||||||
|
|
||||||
API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
|
API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
|
||||||
@ -24,7 +26,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::Config**](Config.md)
|
[**crate::models::ApiConfig**](APIConfig.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -38,6 +40,37 @@ No authorization required
|
|||||||
[[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)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
## get_css
|
||||||
|
|
||||||
|
> String get_css(variant, branch)
|
||||||
|
Download Frontend CSS
|
||||||
|
|
||||||
|
Fetches the CSS code to the frontend React website.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**variant** | Option<**String**> | Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management. | |[default to public]
|
||||||
|
**branch** | Option<**String**> | Specifies which git branch the site should load frontend source code from. | |[default to main]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**String**
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: text/css, 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)
|
||||||
|
|
||||||
|
|
||||||
## get_current_online_users
|
## get_current_online_users
|
||||||
|
|
||||||
> i32 get_current_online_users()
|
> i32 get_current_online_users()
|
||||||
@ -70,7 +103,7 @@ No authorization required
|
|||||||
> crate::models::InlineResponse2002 get_health()
|
> crate::models::InlineResponse2002 get_health()
|
||||||
Check API Health
|
Check API Health
|
||||||
|
|
||||||
Gets the overall health status, the server name, and the current build version tag of the API.
|
~~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.
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
@ -92,6 +125,37 @@ No authorization required
|
|||||||
[[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)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
## get_java_script
|
||||||
|
|
||||||
|
> String get_java_script(variant, branch)
|
||||||
|
Download Frontend JavaScript
|
||||||
|
|
||||||
|
Fetches the JavaScript code to the frontend React website.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**variant** | Option<**String**> | Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management. | |[default to public]
|
||||||
|
**branch** | Option<**String**> | Specifies which git branch the site should load frontend source code from. | |[default to main]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**String**
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/javascript, 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)
|
||||||
|
|
||||||
|
|
||||||
## get_system_time
|
## get_system_time
|
||||||
|
|
||||||
> String get_system_time()
|
> String get_system_time()
|
||||||
|
@ -4,16 +4,16 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**asset_url** | Option<**String**> | | [optional]
|
**asset_url** | Option<**String**> | | [optional]
|
||||||
**asset_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
|
**asset_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||||
|
**asset_version** | **i32** | |
|
||||||
|
**created_at** | Option<**String**> | | [optional]
|
||||||
|
**id** | **String** | |
|
||||||
|
**platform** | **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`. |
|
||||||
**plugin_url** | Option<**String**> | | [optional]
|
**plugin_url** | Option<**String**> | | [optional]
|
||||||
**plugin_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
|
**plugin_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||||
|
**unity_sort_number** | Option<**i32**> | | [optional]
|
||||||
**unity_version** | **String** | | [default to 5.3.4p1]
|
**unity_version** | **String** | | [default to 5.3.4p1]
|
||||||
**unity_sort_number** | Option<**f32**> | | [optional]
|
|
||||||
**asset_version** | **f32** | |
|
|
||||||
**platform** | **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`. |
|
|
||||||
**created_at** | 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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
31
docs/User.md
31
docs/User.md
@ -4,30 +4,29 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
**allow_avatar_copying** | **bool** | |
|
||||||
**username** | **String** | |
|
|
||||||
**display_name** | **String** | |
|
|
||||||
**user_icon** | **String** | |
|
|
||||||
**bio** | **String** | |
|
**bio** | **String** | |
|
||||||
**bio_links** | **Vec<String>** | |
|
**bio_links** | **Vec<String>** | |
|
||||||
**profile_pic_override** | **String** | |
|
|
||||||
**status_description** | **String** | |
|
|
||||||
**current_avatar_image_url** | **String** | |
|
**current_avatar_image_url** | **String** | |
|
||||||
**current_avatar_thumbnail_image_url** | **String** | |
|
**current_avatar_thumbnail_image_url** | **String** | |
|
||||||
**fallback_avatar** | **String** | |
|
**date_joined** | [**String**](string.md) | | [readonly]
|
||||||
**state** | [**crate::models::UserState**](UserState.md) | |
|
|
||||||
**tags** | **Vec<String>** | |
|
|
||||||
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
||||||
|
**display_name** | **String** | |
|
||||||
|
**friend_key** | **String** | |
|
||||||
|
**id** | **String** | |
|
||||||
|
**instance_id** | Option<**String**> | | [optional]
|
||||||
|
**is_friend** | **bool** | |
|
||||||
**last_login** | **String** | |
|
**last_login** | **String** | |
|
||||||
**last_platform** | **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`. |
|
**last_platform** | **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`. |
|
||||||
**allow_avatar_copying** | **bool** | |
|
**location** | Option<**String**> | | [optional]
|
||||||
|
**profile_pic_override** | **String** | |
|
||||||
|
**state** | [**crate::models::UserState**](UserState.md) | |
|
||||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||||
**date_joined** | [**String**](string.md) | | [readonly]
|
**status_description** | **String** | |
|
||||||
**is_friend** | **bool** | |
|
**tags** | **Vec<String>** | |
|
||||||
**friend_key** | **String** | |
|
**user_icon** | **String** | |
|
||||||
**world_id** | **String** | |
|
**username** | **String** | |
|
||||||
**instance_id** | **String** | |
|
**world_id** | Option<**String**> | | [optional]
|
||||||
**location** | **String** | |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
11
docs/UserExists.md
Normal file
11
docs/UserExists.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# UserExists
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**user_exists** | **bool** | Status if a user exist with that username or userId. | [default to false]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
@ -7,26 +7,26 @@ Name | Type | Description | Notes
|
|||||||
**asset_url** | **String** | |
|
**asset_url** | **String** | |
|
||||||
**asset_url_object** | [**serde_json::Value**](.md) | |
|
**asset_url_object** | [**serde_json::Value**](.md) | |
|
||||||
**author_id** | **String** | |
|
**author_id** | **String** | |
|
||||||
**author_name** | **String** | | [readonly]
|
**author_name** | **String** | |
|
||||||
**capacity** | **f32** | | [readonly]
|
**capacity** | **i32** | |
|
||||||
**created_at** | **String** | | [readonly]
|
**created_at** | **String** | |
|
||||||
**description** | **String** | |
|
**description** | **String** | |
|
||||||
**favorites** | Option<**f32**> | | [optional][readonly][default to 0]
|
**favorites** | Option<**i32**> | | [optional][default to 0]
|
||||||
**featured** | **bool** | | [default to false]
|
**featured** | **bool** | | [default to false]
|
||||||
**heat** | **f32** | | [readonly][default to 0]
|
**heat** | **i32** | | [default to 0]
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
**image_url** | **String** | |
|
**image_url** | **String** | |
|
||||||
**instances** | Option<[**Vec<Vec<serde_json::Value>>**](array.md)> | | [optional]
|
**instances** | Option<[**Vec<Vec<serde_json::Value>>**](array.md)> | | [optional]
|
||||||
**labs_publication_date** | **String** | |
|
**labs_publication_date** | **String** | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**namespace** | **String** | |
|
**namespace** | **String** | |
|
||||||
**occupants** | Option<**f32**> | | [optional][readonly][default to 0]
|
**occupants** | Option<**i32**> | | [optional][default to 0]
|
||||||
**organization** | **String** | | [default to vrchat]
|
**organization** | **String** | | [default to vrchat]
|
||||||
**plugin_url_object** | [**serde_json::Value**](.md) | |
|
**plugin_url_object** | [**serde_json::Value**](.md) | |
|
||||||
**popularity** | **f32** | | [readonly][default to 0]
|
**popularity** | **i32** | | [default to 0]
|
||||||
**preview_youtube_id** | Option<**String**> | | [optional]
|
**preview_youtube_id** | Option<**String**> | | [optional]
|
||||||
**private_occupants** | Option<**f32**> | | [optional][readonly][default to 0]
|
**private_occupants** | Option<**i32**> | | [optional][default to 0]
|
||||||
**public_occupants** | Option<**f32**> | | [optional][readonly][default to 0]
|
**public_occupants** | Option<**i32**> | | [optional][default to 0]
|
||||||
**publication_date** | **String** | |
|
**publication_date** | **String** | |
|
||||||
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
@ -34,8 +34,8 @@ Name | Type | Description | Notes
|
|||||||
**unity_package_url_object** | [**serde_json::Value**](.md) | |
|
**unity_package_url_object** | [**serde_json::Value**](.md) | |
|
||||||
**unity_packages** | [**Vec<crate::models::UnityPackage>**](UnityPackage.md) | |
|
**unity_packages** | [**Vec<crate::models::UnityPackage>**](UnityPackage.md) | |
|
||||||
**updated_at** | **String** | |
|
**updated_at** | **String** | |
|
||||||
**version** | **f32** | | [default to 0]
|
**version** | **i32** | | [default to 0]
|
||||||
**visits** | **f32** | | [readonly][default to 0]
|
**visits** | **i32** | | [default to 0]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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)
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ Name | Type | Description | Required | Notes
|
|||||||
**search** | Option<**String**> | Filters by world name. | |
|
**search** | Option<**String**> | Filters by world name. | |
|
||||||
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
||||||
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
||||||
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to hidden]
|
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to public]
|
||||||
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
||||||
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
||||||
**platform** | Option<**String**> | The platform the asset supports. | |
|
**platform** | Option<**String**> | The platform the asset supports. | |
|
||||||
@ -141,7 +141,7 @@ Name | Type | Description | Required | Notes
|
|||||||
**search** | Option<**String**> | Filters by world name. | |
|
**search** | Option<**String**> | Filters by world name. | |
|
||||||
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
||||||
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
||||||
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to hidden]
|
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to public]
|
||||||
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
||||||
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
||||||
**platform** | Option<**String**> | The platform the asset supports. | |
|
**platform** | Option<**String**> | The platform the asset supports. | |
|
||||||
@ -183,7 +183,7 @@ Name | Type | Description | Required | Notes
|
|||||||
**search** | Option<**String**> | Filters by world name. | |
|
**search** | Option<**String**> | Filters by world name. | |
|
||||||
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
||||||
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
||||||
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to hidden]
|
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to public]
|
||||||
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
||||||
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
||||||
**platform** | Option<**String**> | The platform the asset supports. | |
|
**platform** | Option<**String**> | The platform the asset supports. | |
|
||||||
@ -225,7 +225,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[apiKeyCookie](../README.md#apiKeyCookie)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
@ -371,14 +371,14 @@ Name | Type | Description | Required | Notes
|
|||||||
**featured** | Option<**String**> | Filters on featured results. | |
|
**featured** | Option<**String**> | Filters on featured results. | |
|
||||||
**sort** | Option<**String**> | | |[default to popularity]
|
**sort** | Option<**String**> | | |[default to popularity]
|
||||||
**user** | Option<**String**> | Set to `me` for searching own worlds. | |
|
**user** | Option<**String**> | Set to `me` for searching own worlds. | |
|
||||||
**user_id** | Option<**String**> | Filter by author UserID | |
|
**user_id** | Option<**String**> | Filter by UserID. | |
|
||||||
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
|
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
|
||||||
**order** | Option<**String**> | | |[default to descending]
|
**order** | Option<**String**> | | |[default to descending]
|
||||||
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
|
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
|
||||||
**search** | Option<**String**> | Filters by world name. | |
|
**search** | Option<**String**> | Filters by world name. | |
|
||||||
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
**tag** | Option<**String**> | Tags to include (comma-separated). | |
|
||||||
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
|
||||||
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to hidden]
|
**release_status** | Option<**String**> | Filter by ReleaseStatus. | |[default to public]
|
||||||
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
|
||||||
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
|
||||||
**platform** | Option<**String**> | The platform the asset supports. | |
|
**platform** | Option<**String**> | The platform the asset supports. | |
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -14,6 +14,14 @@ use crate::apis::ResponseContent;
|
|||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
|
||||||
|
/// struct for typed errors of method `check_user_exists`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum CheckUserExistsError {
|
||||||
|
Status400(crate::models::Error),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
/// struct for typed errors of method `delete_user`
|
/// struct for typed errors of method `delete_user`
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
@ -63,6 +71,45 @@ pub enum VerifyRecoveryCodeError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// Checks if a user by a given `username`, `displayName` or `email` exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the `excludeUserId` is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** `username`, `displayName` **or** `email` query parameter. Although they can be combined - in addition with `excludeUserId` (generally to exclude yourself) - to further fine-tune the search.
|
||||||
|
pub fn check_user_exists(configuration: &configuration::Configuration, email: Option<&str>, display_name: Option<&str>, user_id: Option<&str>, exclude_user_id: Option<&str>) -> Result<crate::models::UserExists, Error<CheckUserExistsError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/auth/exists", configuration.base_path);
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_str) = email {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("email", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_str) = display_name {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("displayName", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_str) = user_id {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("userId", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_str) = exclude_user_id {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("excludeUserId", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_user_agent) = 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<CheckUserExistsError> = 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))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
|
/// Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
|
||||||
pub fn delete_user(configuration: &configuration::Configuration, user_id: &str) -> Result<crate::models::CurrentUser, Error<DeleteUserError>> {
|
pub fn delete_user(configuration: &configuration::Configuration, user_id: &str) -> Result<crate::models::CurrentUser, Error<DeleteUserError>> {
|
||||||
|
|
||||||
@ -90,7 +137,7 @@ pub fn delete_user(configuration: &configuration::Configuration, user_id: &str)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Login and/or Get user data from your VRChat account. If `Authorization` header is present then a new login session will be generated, and a new `auth` cookie is returned. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie whenever you can, and avoid sending the Authorization header unless strictly neccesary. While the exact number of simultaneous open sessions is secret, expect to **very fast** run into the rate-limit and be temporarily blocked from making new sessions until the old ones expire.
|
/// This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
||||||
pub fn get_current_user(configuration: &configuration::Configuration, ) -> Result<crate::models::CurrentUser, Error<GetCurrentUserError>> {
|
pub fn get_current_user(configuration: &configuration::Configuration, ) -> Result<crate::models::CurrentUser, Error<GetCurrentUserError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -77,12 +77,12 @@ pub enum UpdateInviteMessageError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
|
/// Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
pub fn get_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result<crate::models::InviteMessage, Error<GetInviteMessageError>> {
|
pub fn get_invite_message(configuration: &configuration::Configuration, user_id: &str, message_type: &str, message_id: i32) -> Result<crate::models::InviteMessage, Error<GetInviteMessageError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
let local_var_uri_str = format!("{}/message/{userId}/message/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageId=message_id);
|
let local_var_uri_str = format!("{}/message/{userId}/{messageType}/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageType=crate::apis::urlencode(message_type), messageId=message_id);
|
||||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||||
|
|
||||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
@ -104,12 +104,12 @@ pub fn get_invite_message(configuration: &configuration::Configuration, user_id:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
|
/// Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
pub fn get_invite_messages(configuration: &configuration::Configuration, user_id: &str) -> Result<Vec<crate::models::InviteMessage>, Error<GetInviteMessagesError>> {
|
pub fn get_invite_messages(configuration: &configuration::Configuration, user_id: &str, message_type: &str) -> Result<Vec<crate::models::InviteMessage>, Error<GetInviteMessagesError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
let local_var_uri_str = format!("{}/message/{userId}/message", configuration.base_path, userId=crate::apis::urlencode(user_id));
|
let local_var_uri_str = format!("{}/message/{userId}/{messageType}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageType=crate::apis::urlencode(message_type));
|
||||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||||
|
|
||||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
@ -132,7 +132,7 @@ pub fn get_invite_messages(configuration: &configuration::Configuration, user_id
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
/// Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
||||||
pub fn invite_user(configuration: &configuration::Configuration, user_id: &str) -> Result<crate::models::Notification, Error<InviteUserError>> {
|
pub fn invite_user(configuration: &configuration::Configuration, user_id: &str, invite_request: Option<crate::models::InviteRequest>) -> Result<crate::models::Notification, Error<InviteUserError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -142,6 +142,7 @@ pub fn invite_user(configuration: &configuration::Configuration, user_id: &str)
|
|||||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
if let Some(ref local_var_user_agent) = 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.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
}
|
}
|
||||||
|
local_var_req_builder = local_var_req_builder.json(&invite_request);
|
||||||
|
|
||||||
let local_var_req = local_var_req_builder.build()?;
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
@ -185,12 +186,12 @@ pub fn request_invite(configuration: &configuration::Configuration, user_id: &st
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Resets a single Invite Message back to it's original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
/// Resets a single Invite Message back to it's original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
pub fn reset_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result<Vec<crate::models::InviteMessage>, Error<ResetInviteMessageError>> {
|
pub fn reset_invite_message(configuration: &configuration::Configuration, user_id: &str, message_type: &str, message_id: i32) -> Result<Vec<crate::models::InviteMessage>, Error<ResetInviteMessageError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
let local_var_uri_str = format!("{}/message/{userId}/message/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageId=message_id);
|
let local_var_uri_str = format!("{}/message/{userId}/{messageType}/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageType=crate::apis::urlencode(message_type), messageId=message_id);
|
||||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||||
|
|
||||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
@ -213,7 +214,7 @@ pub fn reset_invite_message(configuration: &configuration::Configuration, user_i
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Sends a world invite to a user.
|
/// Sends a world invite to a user.
|
||||||
pub fn respond_invite(configuration: &configuration::Configuration, notification_id: &str) -> Result<crate::models::Notification, Error<RespondInviteError>> {
|
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_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -223,6 +224,7 @@ pub fn respond_invite(configuration: &configuration::Configuration, notification
|
|||||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
if let Some(ref local_var_user_agent) = 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.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
}
|
}
|
||||||
|
local_var_req_builder = local_var_req_builder.json(&invite_response);
|
||||||
|
|
||||||
let local_var_req = local_var_req_builder.build()?;
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
@ -239,12 +241,12 @@ pub fn respond_invite(configuration: &configuration::Configuration, notification
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
/// Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
||||||
pub fn update_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result<Vec<crate::models::InviteMessage>, Error<UpdateInviteMessageError>> {
|
pub fn update_invite_message(configuration: &configuration::Configuration, user_id: &str, message_type: &str, message_id: i32) -> Result<Vec<crate::models::InviteMessage>, Error<UpdateInviteMessageError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
let local_var_uri_str = format!("{}/message/{userId}/message/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageId=message_id);
|
let local_var_uri_str = format!("{}/message/{userId}/{messageType}/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageType=crate::apis::urlencode(message_type), messageId=message_id);
|
||||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
|
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) = configuration.user_agent {
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -21,6 +21,14 @@ pub enum GetConfigError {
|
|||||||
UnknownValue(serde_json::Value),
|
UnknownValue(serde_json::Value),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `get_css`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum GetCssError {
|
||||||
|
Status400(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
/// struct for typed errors of method `get_current_online_users`
|
/// struct for typed errors of method `get_current_online_users`
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
@ -35,6 +43,14 @@ pub enum GetHealthError {
|
|||||||
UnknownValue(serde_json::Value),
|
UnknownValue(serde_json::Value),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `get_java_script`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum GetJavaScriptError {
|
||||||
|
Status400(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
/// struct for typed errors of method `get_system_time`
|
/// struct for typed errors of method `get_system_time`
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
@ -44,7 +60,7 @@ pub enum GetSystemTimeError {
|
|||||||
|
|
||||||
|
|
||||||
/// API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
|
/// API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
|
||||||
pub fn get_config(configuration: &configuration::Configuration, ) -> Result<crate::models::Config, Error<GetConfigError>> {
|
pub fn get_config(configuration: &configuration::Configuration, ) -> Result<crate::models::ApiConfig, Error<GetConfigError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -70,6 +86,39 @@ pub fn get_config(configuration: &configuration::Configuration, ) -> Result<crat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Fetches the CSS code to the frontend React website.
|
||||||
|
pub fn get_css(configuration: &configuration::Configuration, variant: Option<&str>, branch: Option<&str>) -> Result<String, Error<GetCssError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/css/app.js", configuration.base_path);
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_str) = variant {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("variant", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_str) = branch {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("branch", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_user_agent) = 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<GetCssError> = 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))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns in plain format the number of currently online users. **NOTE:** The response type is not of JSON, but is an integer in plain ASCII format.
|
/// Returns in plain format the number of currently online users. **NOTE:** The response type is not of JSON, but is an integer in plain ASCII format.
|
||||||
pub fn get_current_online_users(configuration: &configuration::Configuration, ) -> Result<i32, Error<GetCurrentOnlineUsersError>> {
|
pub fn get_current_online_users(configuration: &configuration::Configuration, ) -> Result<i32, Error<GetCurrentOnlineUsersError>> {
|
||||||
|
|
||||||
@ -97,7 +146,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.
|
/// ~~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::InlineResponse2002, Error<GetHealthError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
@ -124,6 +173,39 @@ pub fn get_health(configuration: &configuration::Configuration, ) -> Result<crat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Fetches the JavaScript code to the frontend React website.
|
||||||
|
pub fn get_java_script(configuration: &configuration::Configuration, variant: Option<&str>, branch: Option<&str>) -> Result<String, Error<GetJavaScriptError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/js/app.js", configuration.base_path);
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_str) = variant {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("variant", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_str) = branch {
|
||||||
|
local_var_req_builder = local_var_req_builder.query(&[("branch", &local_var_str.to_string())]);
|
||||||
|
}
|
||||||
|
if let Some(ref local_var_user_agent) = 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<GetJavaScriptError> = 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))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns in plain format the current time of the API server. **NOTE:** The response type is not of JSON, but is a string in plain ASCII format.
|
/// Returns in plain format the current time of the API server. **NOTE:** The response type is not of JSON, but is a string in plain ASCII format.
|
||||||
pub fn get_system_time(configuration: &configuration::Configuration, ) -> Result<String, Error<GetSystemTimeError>> {
|
pub fn get_system_time(configuration: &configuration::Configuration, ) -> Result<String, Error<GetSystemTimeError>> {
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -11,13 +11,19 @@
|
|||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Config {
|
pub struct ApiConfig {
|
||||||
|
/// Unknown, probably voice optimization testing
|
||||||
|
#[serde(rename = "VoiceEnableDegradation")]
|
||||||
|
pub voice_enable_degradation: bool,
|
||||||
|
/// Unknown, probably voice optimization testing
|
||||||
|
#[serde(rename = "VoiceEnableReceiverLimiting")]
|
||||||
|
pub voice_enable_receiver_limiting: bool,
|
||||||
/// VRChat's office address
|
/// VRChat's office address
|
||||||
#[serde(rename = "address")]
|
#[serde(rename = "address")]
|
||||||
pub address: String,
|
pub address: String,
|
||||||
/// Public Announcements
|
/// Public Announcements
|
||||||
#[serde(rename = "announcements")]
|
#[serde(rename = "announcements")]
|
||||||
pub announcements: Vec<crate::models::ConfigAnnouncements>,
|
pub announcements: Vec<crate::models::PublicAnnouncement>,
|
||||||
/// apiKey to be used for all other requests
|
/// apiKey to be used for all other requests
|
||||||
#[serde(rename = "apiKey")]
|
#[serde(rename = "apiKey")]
|
||||||
pub api_key: String,
|
pub api_key: String,
|
||||||
@ -31,17 +37,17 @@ pub struct Config {
|
|||||||
#[serde(rename = "clientApiKey")]
|
#[serde(rename = "clientApiKey")]
|
||||||
pub client_api_key: String,
|
pub client_api_key: String,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "clientBPSCeiling", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "clientBPSCeiling")]
|
||||||
pub client_bps_ceiling: Option<f32>,
|
pub client_bps_ceiling: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "clientDisconnectTimeout", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "clientDisconnectTimeout")]
|
||||||
pub client_disconnect_timeout: Option<f32>,
|
pub client_disconnect_timeout: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "clientReservedPlayerBPS", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "clientReservedPlayerBPS")]
|
||||||
pub client_reserved_player_bps: Option<f32>,
|
pub client_reserved_player_bps: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "clientSentCountAllowance", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "clientSentCountAllowance")]
|
||||||
pub client_sent_count_allowance: Option<f32>,
|
pub client_sent_count_allowance: i32,
|
||||||
/// VRChat's contact email
|
/// VRChat's contact email
|
||||||
#[serde(rename = "contactEmail")]
|
#[serde(rename = "contactEmail")]
|
||||||
pub contact_email: String,
|
pub contact_email: String,
|
||||||
@ -50,7 +56,7 @@ pub struct Config {
|
|||||||
pub copyright_email: String,
|
pub copyright_email: String,
|
||||||
/// Current version number of the Terms of Service
|
/// Current version number of the Terms of Service
|
||||||
#[serde(rename = "currentTOSVersion")]
|
#[serde(rename = "currentTOSVersion")]
|
||||||
pub current_tos_version: f32,
|
pub current_tos_version: i32,
|
||||||
#[serde(rename = "defaultAvatar")]
|
#[serde(rename = "defaultAvatar")]
|
||||||
pub default_avatar: String,
|
pub default_avatar: String,
|
||||||
#[serde(rename = "deploymentGroup")]
|
#[serde(rename = "deploymentGroup")]
|
||||||
@ -70,6 +76,9 @@ pub struct Config {
|
|||||||
/// Version number for server development build
|
/// Version number for server development build
|
||||||
#[serde(rename = "devServerVersionStandalone")]
|
#[serde(rename = "devServerVersionStandalone")]
|
||||||
pub dev_server_version_standalone: String,
|
pub dev_server_version_standalone: String,
|
||||||
|
/// Unknown, \"dis\" maybe for disconnect?
|
||||||
|
#[serde(rename = "dis-countdown")]
|
||||||
|
pub dis_countdown: String,
|
||||||
/// Toggles if copying avatars should be disabled
|
/// Toggles if copying avatars should be disabled
|
||||||
#[serde(rename = "disableAvatarCopying")]
|
#[serde(rename = "disableAvatarCopying")]
|
||||||
pub disable_avatar_copying: bool,
|
pub disable_avatar_copying: bool,
|
||||||
@ -83,18 +92,24 @@ pub struct Config {
|
|||||||
#[serde(rename = "disableCommunityLabsPromotion")]
|
#[serde(rename = "disableCommunityLabsPromotion")]
|
||||||
pub disable_community_labs_promotion: bool,
|
pub disable_community_labs_promotion: bool,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "disableEmail", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "disableEmail")]
|
||||||
pub disable_email: Option<bool>,
|
pub disable_email: bool,
|
||||||
/// Toggles if Analytics should be disabled (this sreportedly not used in the Client)
|
/// Toggles if Analytics should be disabled.
|
||||||
#[serde(rename = "disableEventStream")]
|
#[serde(rename = "disableEventStream")]
|
||||||
pub disable_event_stream: bool,
|
pub disable_event_stream: bool,
|
||||||
/// Toggles if feedback gating should be disabled. Feedback gating restricts submission of feedback (reporting a World or User) to people with the `system_feedback_access` Tag.
|
/// Toggles if feedback gating should be disabled. Feedback gating restricts submission of feedback (reporting a World or User) to people with the `system_feedback_access` Tag.
|
||||||
#[serde(rename = "disableFeedbackGating")]
|
#[serde(rename = "disableFeedbackGating")]
|
||||||
pub disable_feedback_gating: bool,
|
pub disable_feedback_gating: bool,
|
||||||
|
/// Unknown, probably toggles compilation of frontend web builds? So internal flag?
|
||||||
|
#[serde(rename = "disableFrontendBuilds")]
|
||||||
|
pub disable_frontend_builds: bool,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "disableHello", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "disableHello")]
|
||||||
pub disable_hello: Option<bool>,
|
pub disable_hello: bool,
|
||||||
/// Toggles if new user account registration should be disabled
|
/// Toggles if signing up for Subscriptions in Oculus is disabled or not.
|
||||||
|
#[serde(rename = "disableOculusSubs")]
|
||||||
|
pub disable_oculus_subs: bool,
|
||||||
|
/// Toggles if new user account registration should be disabled.
|
||||||
#[serde(rename = "disableRegistration")]
|
#[serde(rename = "disableRegistration")]
|
||||||
pub disable_registration: bool,
|
pub disable_registration: bool,
|
||||||
/// Toggles if Steam Networking should be disabled. VRChat these days uses Photon Unity Networking (PUN) instead.
|
/// Toggles if Steam Networking should be disabled. VRChat these days uses Photon Unity Networking (PUN) instead.
|
||||||
@ -113,20 +128,20 @@ pub struct Config {
|
|||||||
#[serde(rename = "downloadLinkWindows")]
|
#[serde(rename = "downloadLinkWindows")]
|
||||||
pub download_link_windows: String,
|
pub download_link_windows: String,
|
||||||
#[serde(rename = "downloadUrls")]
|
#[serde(rename = "downloadUrls")]
|
||||||
pub download_urls: Box<crate::models::ConfigDownloadUrls>,
|
pub download_urls: Box<crate::models::DownloadUrlList>,
|
||||||
/// Array of DynamicWorldRow objects, used by the game to display the list of world rows
|
/// Array of DynamicWorldRow objects, used by the game to display the list of world rows
|
||||||
#[serde(rename = "dynamicWorldRows")]
|
#[serde(rename = "dynamicWorldRows")]
|
||||||
pub dynamic_world_rows: Vec<crate::models::ConfigDynamicWorldRows>,
|
pub dynamic_world_rows: Vec<crate::models::DynamicWorldRow>,
|
||||||
#[serde(rename = "events")]
|
#[serde(rename = "events")]
|
||||||
pub events: Box<crate::models::ConfigEvents>,
|
pub events: Box<crate::models::ApiEventConfig>,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "gearDemoRoomId")]
|
#[serde(rename = "gearDemoRoomId")]
|
||||||
pub gear_demo_room_id: String,
|
pub gear_demo_room_id: String,
|
||||||
|
#[serde(rename = "homeWorldId")]
|
||||||
|
pub home_world_id: String,
|
||||||
/// Redirect target if you try to open the base API domain in your browser
|
/// Redirect target if you try to open the base API domain in your browser
|
||||||
#[serde(rename = "homepageRedirectTarget")]
|
#[serde(rename = "homepageRedirectTarget")]
|
||||||
pub homepage_redirect_target: String,
|
pub homepage_redirect_target: String,
|
||||||
#[serde(rename = "homeWorldId")]
|
|
||||||
pub home_world_id: String,
|
|
||||||
#[serde(rename = "hubWorldId")]
|
#[serde(rename = "hubWorldId")]
|
||||||
pub hub_world_id: String,
|
pub hub_world_id: String,
|
||||||
/// VRChat's job application email
|
/// VRChat's job application email
|
||||||
@ -140,7 +155,7 @@ pub struct Config {
|
|||||||
pub moderation_email: String,
|
pub moderation_email: String,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "moderationQueryPeriod")]
|
#[serde(rename = "moderationQueryPeriod")]
|
||||||
pub moderation_query_period: f32,
|
pub moderation_query_period: i32,
|
||||||
/// Used in-game to notify a user they aren't allowed to select avatars in private worlds
|
/// Used in-game to notify a user they aren't allowed to select avatars in private worlds
|
||||||
#[serde(rename = "notAllowedToSelectAvatarInPrivateWorldMessage")]
|
#[serde(rename = "notAllowedToSelectAvatarInPrivateWorldMessage")]
|
||||||
pub not_allowed_to_select_avatar_in_private_world_message: String,
|
pub not_allowed_to_select_avatar_in_private_world_message: String,
|
||||||
@ -183,19 +198,19 @@ pub struct Config {
|
|||||||
pub tutorial_world_id: String,
|
pub tutorial_world_id: String,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "updateRateMsMaximum")]
|
#[serde(rename = "updateRateMsMaximum")]
|
||||||
pub update_rate_ms_maximum: f32,
|
pub update_rate_ms_maximum: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "updateRateMsMinimum")]
|
#[serde(rename = "updateRateMsMinimum")]
|
||||||
pub update_rate_ms_minimum: f32,
|
pub update_rate_ms_minimum: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "updateRateMsNormal")]
|
#[serde(rename = "updateRateMsNormal")]
|
||||||
pub update_rate_ms_normal: f32,
|
pub update_rate_ms_normal: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "updateRateMsUdonManual")]
|
#[serde(rename = "updateRateMsUdonManual")]
|
||||||
pub update_rate_ms_udon_manual: f32,
|
pub update_rate_ms_udon_manual: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "uploadAnalysisPercent")]
|
#[serde(rename = "uploadAnalysisPercent")]
|
||||||
pub upload_analysis_percent: f32,
|
pub upload_analysis_percent: i32,
|
||||||
/// List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game
|
/// List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game
|
||||||
#[serde(rename = "urlList")]
|
#[serde(rename = "urlList")]
|
||||||
pub url_list: Vec<String>,
|
pub url_list: Vec<String>,
|
||||||
@ -204,16 +219,16 @@ pub struct Config {
|
|||||||
pub use_reliable_udp_for_voice: bool,
|
pub use_reliable_udp_for_voice: bool,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "userUpdatePeriod")]
|
#[serde(rename = "userUpdatePeriod")]
|
||||||
pub user_update_period: f32,
|
pub user_update_period: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "userVerificationDelay")]
|
#[serde(rename = "userVerificationDelay")]
|
||||||
pub user_verification_delay: f32,
|
pub user_verification_delay: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "userVerificationRetry")]
|
#[serde(rename = "userVerificationRetry")]
|
||||||
pub user_verification_retry: f32,
|
pub user_verification_retry: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "userVerificationTimeout")]
|
#[serde(rename = "userVerificationTimeout")]
|
||||||
pub user_verification_timeout: f32,
|
pub user_verification_timeout: i32,
|
||||||
/// Download link for game on the Steam website.
|
/// Download link for game on the Steam website.
|
||||||
#[serde(rename = "viveWindowsUrl")]
|
#[serde(rename = "viveWindowsUrl")]
|
||||||
pub vive_windows_url: String,
|
pub vive_windows_url: String,
|
||||||
@ -222,7 +237,7 @@ pub struct Config {
|
|||||||
pub white_listed_asset_urls: Vec<String>,
|
pub white_listed_asset_urls: Vec<String>,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "worldUpdatePeriod")]
|
#[serde(rename = "worldUpdatePeriod")]
|
||||||
pub world_update_period: f32,
|
pub world_update_period: i32,
|
||||||
/// Currently used youtube-dl.exe hash in SHA-256-delimited format
|
/// Currently used youtube-dl.exe hash in SHA-256-delimited format
|
||||||
#[serde(rename = "youtubedl-hash")]
|
#[serde(rename = "youtubedl-hash")]
|
||||||
pub youtubedl_hash: String,
|
pub youtubedl_hash: String,
|
||||||
@ -231,19 +246,21 @@ pub struct Config {
|
|||||||
pub youtubedl_version: String,
|
pub youtubedl_version: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl ApiConfig {
|
||||||
pub fn new(address: String, announcements: Vec<crate::models::ConfigAnnouncements>, api_key: String, app_name: String, build_version_tag: String, client_api_key: String, contact_email: String, copyright_email: String, current_tos_version: f32, default_avatar: String, deployment_group: crate::models::DeploymentGroup, dev_app_version_standalone: String, dev_download_link_windows: String, dev_sdk_url: String, dev_sdk_version: String, dev_server_version_standalone: String, disable_avatar_copying: bool, disable_avatar_gating: bool, disable_community_labs: bool, disable_community_labs_promotion: bool, disable_event_stream: bool, disable_feedback_gating: bool, disable_registration: bool, disable_steam_networking: bool, disable_two_factor_auth: bool, disable_udon: bool, disable_upgrade_account: bool, download_link_windows: String, download_urls: crate::models::ConfigDownloadUrls, dynamic_world_rows: Vec<crate::models::ConfigDynamicWorldRows>, events: crate::models::ConfigEvents, gear_demo_room_id: String, homepage_redirect_target: String, home_world_id: String, hub_world_id: String, jobs_email: String, message_of_the_day: String, moderation_email: String, moderation_query_period: f32, not_allowed_to_select_avatar_in_private_world_message: String, plugin: String, release_app_version_standalone: String, release_sdk_url: String, release_sdk_version: String, release_server_version_standalone: String, sdk_developer_faq_url: String, sdk_discord_url: String, sdk_not_allowed_to_publish_message: String, sdk_unity_version: String, server_name: String, support_email: String, time_out_world_id: String, tutorial_world_id: String, update_rate_ms_maximum: f32, update_rate_ms_minimum: f32, update_rate_ms_normal: f32, update_rate_ms_udon_manual: f32, upload_analysis_percent: f32, url_list: Vec<String>, use_reliable_udp_for_voice: bool, user_update_period: f32, user_verification_delay: f32, user_verification_retry: f32, user_verification_timeout: f32, vive_windows_url: String, white_listed_asset_urls: Vec<String>, world_update_period: f32, youtubedl_hash: String, youtubedl_version: String) -> Config {
|
pub fn new(voice_enable_degradation: bool, voice_enable_receiver_limiting: bool, address: String, announcements: Vec<crate::models::PublicAnnouncement>, api_key: String, app_name: String, build_version_tag: String, client_api_key: String, client_bps_ceiling: i32, client_disconnect_timeout: i32, client_reserved_player_bps: i32, client_sent_count_allowance: i32, contact_email: String, copyright_email: String, current_tos_version: i32, default_avatar: String, deployment_group: crate::models::DeploymentGroup, dev_app_version_standalone: String, dev_download_link_windows: String, dev_sdk_url: String, dev_sdk_version: String, dev_server_version_standalone: String, dis_countdown: String, disable_avatar_copying: bool, disable_avatar_gating: bool, disable_community_labs: bool, disable_community_labs_promotion: bool, disable_email: bool, disable_event_stream: bool, disable_feedback_gating: bool, disable_frontend_builds: bool, disable_hello: bool, disable_oculus_subs: bool, disable_registration: bool, disable_steam_networking: bool, disable_two_factor_auth: bool, disable_udon: bool, disable_upgrade_account: bool, download_link_windows: String, download_urls: crate::models::DownloadUrlList, dynamic_world_rows: Vec<crate::models::DynamicWorldRow>, events: crate::models::ApiEventConfig, gear_demo_room_id: String, home_world_id: String, homepage_redirect_target: String, hub_world_id: String, jobs_email: String, message_of_the_day: String, moderation_email: String, moderation_query_period: i32, not_allowed_to_select_avatar_in_private_world_message: String, plugin: String, release_app_version_standalone: String, release_sdk_url: String, release_sdk_version: String, release_server_version_standalone: String, sdk_developer_faq_url: String, sdk_discord_url: String, sdk_not_allowed_to_publish_message: String, sdk_unity_version: String, server_name: String, support_email: String, time_out_world_id: String, tutorial_world_id: String, update_rate_ms_maximum: i32, update_rate_ms_minimum: i32, update_rate_ms_normal: i32, update_rate_ms_udon_manual: i32, upload_analysis_percent: i32, url_list: Vec<String>, use_reliable_udp_for_voice: bool, user_update_period: i32, user_verification_delay: i32, user_verification_retry: i32, user_verification_timeout: i32, vive_windows_url: String, white_listed_asset_urls: Vec<String>, world_update_period: i32, youtubedl_hash: String, youtubedl_version: String) -> ApiConfig {
|
||||||
Config {
|
ApiConfig {
|
||||||
|
voice_enable_degradation,
|
||||||
|
voice_enable_receiver_limiting,
|
||||||
address,
|
address,
|
||||||
announcements,
|
announcements,
|
||||||
api_key,
|
api_key,
|
||||||
app_name,
|
app_name,
|
||||||
build_version_tag,
|
build_version_tag,
|
||||||
client_api_key,
|
client_api_key,
|
||||||
client_bps_ceiling: None,
|
client_bps_ceiling,
|
||||||
client_disconnect_timeout: None,
|
client_disconnect_timeout,
|
||||||
client_reserved_player_bps: None,
|
client_reserved_player_bps,
|
||||||
client_sent_count_allowance: None,
|
client_sent_count_allowance,
|
||||||
contact_email,
|
contact_email,
|
||||||
copyright_email,
|
copyright_email,
|
||||||
current_tos_version,
|
current_tos_version,
|
||||||
@ -254,14 +271,17 @@ impl Config {
|
|||||||
dev_sdk_url,
|
dev_sdk_url,
|
||||||
dev_sdk_version,
|
dev_sdk_version,
|
||||||
dev_server_version_standalone,
|
dev_server_version_standalone,
|
||||||
|
dis_countdown,
|
||||||
disable_avatar_copying,
|
disable_avatar_copying,
|
||||||
disable_avatar_gating,
|
disable_avatar_gating,
|
||||||
disable_community_labs,
|
disable_community_labs,
|
||||||
disable_community_labs_promotion,
|
disable_community_labs_promotion,
|
||||||
disable_email: None,
|
disable_email,
|
||||||
disable_event_stream,
|
disable_event_stream,
|
||||||
disable_feedback_gating,
|
disable_feedback_gating,
|
||||||
disable_hello: None,
|
disable_frontend_builds,
|
||||||
|
disable_hello,
|
||||||
|
disable_oculus_subs,
|
||||||
disable_registration,
|
disable_registration,
|
||||||
disable_steam_networking,
|
disable_steam_networking,
|
||||||
disable_two_factor_auth,
|
disable_two_factor_auth,
|
||||||
@ -272,8 +292,8 @@ impl Config {
|
|||||||
dynamic_world_rows,
|
dynamic_world_rows,
|
||||||
events: Box::new(events),
|
events: Box::new(events),
|
||||||
gear_demo_room_id,
|
gear_demo_room_id,
|
||||||
homepage_redirect_target,
|
|
||||||
home_world_id,
|
home_world_id,
|
||||||
|
homepage_redirect_target,
|
||||||
hub_world_id,
|
hub_world_id,
|
||||||
jobs_email,
|
jobs_email,
|
||||||
message_of_the_day,
|
message_of_the_day,
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -11,42 +11,42 @@
|
|||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ConfigEvents {
|
pub struct ApiEventConfig {
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "distanceClose")]
|
#[serde(rename = "distanceClose")]
|
||||||
pub distance_close: f32,
|
pub distance_close: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "distanceFactor")]
|
#[serde(rename = "distanceFactor")]
|
||||||
pub distance_factor: f32,
|
pub distance_factor: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "distanceFar")]
|
#[serde(rename = "distanceFar")]
|
||||||
pub distance_far: f32,
|
pub distance_far: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "groupDistance")]
|
#[serde(rename = "groupDistance")]
|
||||||
pub group_distance: f32,
|
pub group_distance: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "maximumBunchSize")]
|
#[serde(rename = "maximumBunchSize")]
|
||||||
pub maximum_bunch_size: f32,
|
pub maximum_bunch_size: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "notVisibleFactor")]
|
#[serde(rename = "notVisibleFactor")]
|
||||||
pub not_visible_factor: f32,
|
pub not_visible_factor: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "playerOrderBucketSize")]
|
#[serde(rename = "playerOrderBucketSize")]
|
||||||
pub player_order_bucket_size: f32,
|
pub player_order_bucket_size: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "playerOrderFactor")]
|
#[serde(rename = "playerOrderFactor")]
|
||||||
pub player_order_factor: f32,
|
pub player_order_factor: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "slowUpdateFactorThreshold")]
|
#[serde(rename = "slowUpdateFactorThreshold")]
|
||||||
pub slow_update_factor_threshold: f32,
|
pub slow_update_factor_threshold: i32,
|
||||||
/// Unknown
|
/// Unknown
|
||||||
#[serde(rename = "viewSegmentLength")]
|
#[serde(rename = "viewSegmentLength")]
|
||||||
pub view_segment_length: f32,
|
pub view_segment_length: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ConfigEvents {
|
impl ApiEventConfig {
|
||||||
pub fn new(distance_close: f32, distance_factor: f32, distance_far: f32, group_distance: f32, maximum_bunch_size: f32, not_visible_factor: f32, player_order_bucket_size: f32, player_order_factor: f32, slow_update_factor_threshold: f32, view_segment_length: f32) -> ConfigEvents {
|
pub fn new(distance_close: i32, distance_factor: i32, distance_far: i32, group_distance: i32, maximum_bunch_size: i32, not_visible_factor: i32, player_order_bucket_size: i32, player_order_factor: i32, slow_update_factor_threshold: i32, view_segment_length: i32) -> ApiEventConfig {
|
||||||
ConfigEvents {
|
ApiEventConfig {
|
||||||
distance_close,
|
distance_close,
|
||||||
distance_factor,
|
distance_factor,
|
||||||
distance_far,
|
distance_far,
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -40,20 +40,20 @@ pub struct Avatar {
|
|||||||
pub tags: Vec<String>,
|
pub tags: Vec<String>,
|
||||||
#[serde(rename = "thumbnailImageUrl")]
|
#[serde(rename = "thumbnailImageUrl")]
|
||||||
pub thumbnail_image_url: String,
|
pub thumbnail_image_url: String,
|
||||||
#[serde(rename = "unityPackages")]
|
|
||||||
pub unity_packages: Vec<crate::models::UnityPackage>,
|
|
||||||
#[serde(rename = "unityPackageUrl")]
|
#[serde(rename = "unityPackageUrl")]
|
||||||
pub unity_package_url: String,
|
pub unity_package_url: String,
|
||||||
#[serde(rename = "unityPackageUrlObject")]
|
#[serde(rename = "unityPackageUrlObject")]
|
||||||
pub unity_package_url_object: Box<crate::models::AvatarUnityPackageUrlObject>,
|
pub unity_package_url_object: Box<crate::models::AvatarUnityPackageUrlObject>,
|
||||||
|
#[serde(rename = "unityPackages")]
|
||||||
|
pub unity_packages: Vec<crate::models::UnityPackage>,
|
||||||
#[serde(rename = "updated_at")]
|
#[serde(rename = "updated_at")]
|
||||||
pub updated_at: String,
|
pub updated_at: String,
|
||||||
#[serde(rename = "version")]
|
#[serde(rename = "version")]
|
||||||
pub version: f32,
|
pub version: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Avatar {
|
impl Avatar {
|
||||||
pub fn new(author_id: String, author_name: String, created_at: String, description: String, featured: bool, id: String, image_url: String, name: String, release_status: crate::models::ReleaseStatus, tags: Vec<String>, thumbnail_image_url: String, unity_packages: Vec<crate::models::UnityPackage>, unity_package_url: String, unity_package_url_object: crate::models::AvatarUnityPackageUrlObject, updated_at: String, version: f32) -> Avatar {
|
pub fn new(author_id: String, author_name: String, created_at: String, description: String, featured: bool, id: String, image_url: String, name: String, release_status: crate::models::ReleaseStatus, tags: Vec<String>, thumbnail_image_url: String, unity_package_url: String, unity_package_url_object: crate::models::AvatarUnityPackageUrlObject, unity_packages: Vec<crate::models::UnityPackage>, updated_at: String, version: i32) -> Avatar {
|
||||||
Avatar {
|
Avatar {
|
||||||
asset_url: None,
|
asset_url: None,
|
||||||
asset_url_object: None,
|
asset_url_object: None,
|
||||||
@ -68,9 +68,9 @@ impl Avatar {
|
|||||||
release_status,
|
release_status,
|
||||||
tags,
|
tags,
|
||||||
thumbnail_image_url,
|
thumbnail_image_url,
|
||||||
unity_packages,
|
|
||||||
unity_package_url,
|
unity_package_url,
|
||||||
unity_package_url_object: Box::new(unity_package_url_object),
|
unity_package_url_object: Box::new(unity_package_url_object),
|
||||||
|
unity_packages,
|
||||||
updated_at,
|
updated_at,
|
||||||
version,
|
version,
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,151 +12,151 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct CurrentUser {
|
pub struct CurrentUser {
|
||||||
#[serde(rename = "id")]
|
#[serde(rename = "acceptedTOSVersion")]
|
||||||
pub id: String,
|
pub accepted_tos_version: i32,
|
||||||
#[serde(rename = "username")]
|
#[serde(rename = "accountDeletionDate", skip_serializing_if = "Option::is_none")]
|
||||||
pub username: String,
|
pub account_deletion_date: Option<String>,
|
||||||
#[serde(rename = "displayName")]
|
#[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")]
|
||||||
pub display_name: String,
|
pub active_friends: Option<Vec<String>>,
|
||||||
#[serde(rename = "userIcon")]
|
#[serde(rename = "allowAvatarCopying")]
|
||||||
pub user_icon: String,
|
pub allow_avatar_copying: bool,
|
||||||
#[serde(rename = "bio")]
|
#[serde(rename = "bio")]
|
||||||
pub bio: String,
|
pub bio: String,
|
||||||
#[serde(rename = "bioLinks")]
|
#[serde(rename = "bioLinks")]
|
||||||
pub bio_links: Vec<String>,
|
pub bio_links: Vec<String>,
|
||||||
#[serde(rename = "profilePicOverride")]
|
|
||||||
pub profile_pic_override: String,
|
|
||||||
#[serde(rename = "statusDescription")]
|
|
||||||
pub status_description: String,
|
|
||||||
#[serde(rename = "pastDisplayNames")]
|
|
||||||
pub past_display_names: Vec<crate::models::PastDisplayName>,
|
|
||||||
#[serde(rename = "hasEmail")]
|
|
||||||
pub has_email: bool,
|
|
||||||
#[serde(rename = "hasPendingEmail")]
|
|
||||||
pub has_pending_email: bool,
|
|
||||||
#[serde(rename = "obfuscatedEmail")]
|
|
||||||
pub obfuscated_email: String,
|
|
||||||
#[serde(rename = "obfuscatedPendingEmail")]
|
|
||||||
pub obfuscated_pending_email: String,
|
|
||||||
#[serde(rename = "emailVerified")]
|
|
||||||
pub email_verified: bool,
|
|
||||||
#[serde(rename = "hasBirthday")]
|
|
||||||
pub has_birthday: bool,
|
|
||||||
#[serde(rename = "unsubscribe")]
|
|
||||||
pub unsubscribe: bool,
|
|
||||||
#[serde(rename = "statusHistory")]
|
|
||||||
pub status_history: Vec<String>,
|
|
||||||
#[serde(rename = "statusFirstTime")]
|
|
||||||
pub status_first_time: bool,
|
|
||||||
#[serde(rename = "friends")]
|
|
||||||
pub friends: Vec<String>,
|
|
||||||
/// Always empty array.
|
|
||||||
#[serde(rename = "friendGroupNames")]
|
|
||||||
pub friend_group_names: Vec<String>,
|
|
||||||
#[serde(rename = "currentAvatarImageUrl")]
|
|
||||||
pub current_avatar_image_url: String,
|
|
||||||
#[serde(rename = "currentAvatarThumbnailImageUrl")]
|
|
||||||
pub current_avatar_thumbnail_image_url: String,
|
|
||||||
#[serde(rename = "fallbackAvatar")]
|
|
||||||
pub fallback_avatar: String,
|
|
||||||
#[serde(rename = "currentAvatar")]
|
#[serde(rename = "currentAvatar")]
|
||||||
pub current_avatar: String,
|
pub current_avatar: String,
|
||||||
#[serde(rename = "currentAvatarAssetUrl")]
|
#[serde(rename = "currentAvatarAssetUrl")]
|
||||||
pub current_avatar_asset_url: String,
|
pub current_avatar_asset_url: String,
|
||||||
#[serde(rename = "accountDeletionDate", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "currentAvatarImageUrl")]
|
||||||
pub account_deletion_date: Option<String>,
|
pub current_avatar_image_url: String,
|
||||||
#[serde(rename = "acceptedTOSVersion")]
|
#[serde(rename = "currentAvatarThumbnailImageUrl")]
|
||||||
pub accepted_tos_version: f32,
|
pub current_avatar_thumbnail_image_url: String,
|
||||||
#[serde(rename = "steamId")]
|
#[serde(rename = "date_joined")]
|
||||||
pub steam_id: String,
|
pub date_joined: String,
|
||||||
#[serde(rename = "steamDetails")]
|
|
||||||
pub steam_details: serde_json::Value,
|
|
||||||
#[serde(rename = "oculusId")]
|
|
||||||
pub oculus_id: String,
|
|
||||||
#[serde(rename = "hasLoggedInFromClient")]
|
|
||||||
pub has_logged_in_from_client: bool,
|
|
||||||
#[serde(rename = "homeLocation")]
|
|
||||||
pub home_location: String,
|
|
||||||
#[serde(rename = "twoFactorAuthEnabled")]
|
|
||||||
pub two_factor_auth_enabled: bool,
|
|
||||||
#[serde(rename = "state")]
|
|
||||||
pub state: crate::models::UserState,
|
|
||||||
#[serde(rename = "tags")]
|
|
||||||
pub tags: Vec<String>,
|
|
||||||
#[serde(rename = "developerType")]
|
#[serde(rename = "developerType")]
|
||||||
pub developer_type: crate::models::DeveloperType,
|
pub developer_type: crate::models::DeveloperType,
|
||||||
|
#[serde(rename = "displayName")]
|
||||||
|
pub display_name: String,
|
||||||
|
#[serde(rename = "emailVerified")]
|
||||||
|
pub email_verified: bool,
|
||||||
|
#[serde(rename = "fallbackAvatar", skip_serializing_if = "Option::is_none")]
|
||||||
|
pub fallback_avatar: Option<String>,
|
||||||
|
/// Always empty array.
|
||||||
|
#[serde(rename = "friendGroupNames")]
|
||||||
|
pub friend_group_names: Vec<String>,
|
||||||
|
#[serde(rename = "friendKey")]
|
||||||
|
pub friend_key: String,
|
||||||
|
#[serde(rename = "friends")]
|
||||||
|
pub friends: Vec<String>,
|
||||||
|
#[serde(rename = "hasBirthday")]
|
||||||
|
pub has_birthday: bool,
|
||||||
|
#[serde(rename = "hasEmail")]
|
||||||
|
pub has_email: bool,
|
||||||
|
#[serde(rename = "hasLoggedInFromClient")]
|
||||||
|
pub has_logged_in_from_client: bool,
|
||||||
|
#[serde(rename = "hasPendingEmail")]
|
||||||
|
pub has_pending_email: bool,
|
||||||
|
#[serde(rename = "homeLocation")]
|
||||||
|
pub home_location: String,
|
||||||
|
#[serde(rename = "id")]
|
||||||
|
pub id: String,
|
||||||
|
#[serde(rename = "isFriend")]
|
||||||
|
pub is_friend: bool,
|
||||||
#[serde(rename = "last_login")]
|
#[serde(rename = "last_login")]
|
||||||
pub last_login: String,
|
pub last_login: 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`.
|
/// 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`.
|
||||||
#[serde(rename = "last_platform")]
|
#[serde(rename = "last_platform")]
|
||||||
pub last_platform: String,
|
pub last_platform: String,
|
||||||
#[serde(rename = "allowAvatarCopying")]
|
#[serde(rename = "obfuscatedEmail")]
|
||||||
pub allow_avatar_copying: bool,
|
pub obfuscated_email: String,
|
||||||
#[serde(rename = "status")]
|
#[serde(rename = "obfuscatedPendingEmail")]
|
||||||
pub status: crate::models::UserStatus,
|
pub obfuscated_pending_email: String,
|
||||||
#[serde(rename = "date_joined")]
|
#[serde(rename = "oculusId")]
|
||||||
pub date_joined: String,
|
pub oculus_id: String,
|
||||||
#[serde(rename = "isFriend")]
|
|
||||||
pub is_friend: bool,
|
|
||||||
#[serde(rename = "friendKey")]
|
|
||||||
pub friend_key: String,
|
|
||||||
#[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")]
|
|
||||||
pub online_friends: Option<Vec<String>>,
|
|
||||||
#[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")]
|
|
||||||
pub active_friends: Option<Vec<String>>,
|
|
||||||
#[serde(rename = "offlineFriends", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "offlineFriends", skip_serializing_if = "Option::is_none")]
|
||||||
pub offline_friends: Option<Vec<String>>,
|
pub offline_friends: Option<Vec<String>>,
|
||||||
|
#[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")]
|
||||||
|
pub online_friends: Option<Vec<String>>,
|
||||||
|
#[serde(rename = "pastDisplayNames")]
|
||||||
|
pub past_display_names: Vec<crate::models::PastDisplayName>,
|
||||||
|
#[serde(rename = "profilePicOverride")]
|
||||||
|
pub profile_pic_override: String,
|
||||||
|
#[serde(rename = "state")]
|
||||||
|
pub state: crate::models::UserState,
|
||||||
|
#[serde(rename = "status")]
|
||||||
|
pub status: crate::models::UserStatus,
|
||||||
|
#[serde(rename = "statusDescription")]
|
||||||
|
pub status_description: String,
|
||||||
|
#[serde(rename = "statusFirstTime")]
|
||||||
|
pub status_first_time: bool,
|
||||||
|
#[serde(rename = "statusHistory")]
|
||||||
|
pub status_history: Vec<String>,
|
||||||
|
#[serde(rename = "steamDetails")]
|
||||||
|
pub steam_details: serde_json::Value,
|
||||||
|
#[serde(rename = "steamId")]
|
||||||
|
pub steam_id: String,
|
||||||
|
#[serde(rename = "tags")]
|
||||||
|
pub tags: Vec<String>,
|
||||||
|
#[serde(rename = "twoFactorAuthEnabled")]
|
||||||
|
pub two_factor_auth_enabled: bool,
|
||||||
|
#[serde(rename = "unsubscribe")]
|
||||||
|
pub unsubscribe: bool,
|
||||||
|
#[serde(rename = "userIcon")]
|
||||||
|
pub user_icon: String,
|
||||||
|
#[serde(rename = "username")]
|
||||||
|
pub username: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CurrentUser {
|
impl CurrentUser {
|
||||||
pub fn new(id: String, username: String, display_name: String, user_icon: String, bio: String, bio_links: Vec<String>, profile_pic_override: String, status_description: String, past_display_names: Vec<crate::models::PastDisplayName>, has_email: bool, has_pending_email: bool, obfuscated_email: String, obfuscated_pending_email: String, email_verified: bool, has_birthday: bool, unsubscribe: bool, status_history: Vec<String>, status_first_time: bool, friends: Vec<String>, friend_group_names: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, fallback_avatar: String, current_avatar: String, current_avatar_asset_url: String, accepted_tos_version: f32, steam_id: String, steam_details: serde_json::Value, oculus_id: String, has_logged_in_from_client: bool, home_location: String, two_factor_auth_enabled: bool, state: crate::models::UserState, tags: Vec<String>, developer_type: crate::models::DeveloperType, last_login: String, last_platform: String, allow_avatar_copying: bool, status: crate::models::UserStatus, date_joined: String, is_friend: bool, friend_key: String) -> CurrentUser {
|
pub fn new(accepted_tos_version: i32, allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar: String, current_avatar_asset_url: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, email_verified: bool, friend_group_names: Vec<String>, friend_key: String, friends: Vec<String>, has_birthday: bool, has_email: bool, has_logged_in_from_client: bool, has_pending_email: bool, home_location: String, id: String, is_friend: bool, last_login: String, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec<crate::models::PastDisplayName>, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec<String>, steam_details: serde_json::Value, steam_id: String, tags: Vec<String>, two_factor_auth_enabled: bool, unsubscribe: bool, user_icon: String, username: String) -> CurrentUser {
|
||||||
CurrentUser {
|
CurrentUser {
|
||||||
id,
|
accepted_tos_version,
|
||||||
username,
|
account_deletion_date: None,
|
||||||
display_name,
|
active_friends: None,
|
||||||
user_icon,
|
allow_avatar_copying,
|
||||||
bio,
|
bio,
|
||||||
bio_links,
|
bio_links,
|
||||||
profile_pic_override,
|
|
||||||
status_description,
|
|
||||||
past_display_names,
|
|
||||||
has_email,
|
|
||||||
has_pending_email,
|
|
||||||
obfuscated_email,
|
|
||||||
obfuscated_pending_email,
|
|
||||||
email_verified,
|
|
||||||
has_birthday,
|
|
||||||
unsubscribe,
|
|
||||||
status_history,
|
|
||||||
status_first_time,
|
|
||||||
friends,
|
|
||||||
friend_group_names,
|
|
||||||
current_avatar_image_url,
|
|
||||||
current_avatar_thumbnail_image_url,
|
|
||||||
fallback_avatar,
|
|
||||||
current_avatar,
|
current_avatar,
|
||||||
current_avatar_asset_url,
|
current_avatar_asset_url,
|
||||||
account_deletion_date: None,
|
current_avatar_image_url,
|
||||||
accepted_tos_version,
|
current_avatar_thumbnail_image_url,
|
||||||
steam_id,
|
date_joined,
|
||||||
steam_details,
|
|
||||||
oculus_id,
|
|
||||||
has_logged_in_from_client,
|
|
||||||
home_location,
|
|
||||||
two_factor_auth_enabled,
|
|
||||||
state,
|
|
||||||
tags,
|
|
||||||
developer_type,
|
developer_type,
|
||||||
|
display_name,
|
||||||
|
email_verified,
|
||||||
|
fallback_avatar: None,
|
||||||
|
friend_group_names,
|
||||||
|
friend_key,
|
||||||
|
friends,
|
||||||
|
has_birthday,
|
||||||
|
has_email,
|
||||||
|
has_logged_in_from_client,
|
||||||
|
has_pending_email,
|
||||||
|
home_location,
|
||||||
|
id,
|
||||||
|
is_friend,
|
||||||
last_login,
|
last_login,
|
||||||
last_platform,
|
last_platform,
|
||||||
allow_avatar_copying,
|
obfuscated_email,
|
||||||
status,
|
obfuscated_pending_email,
|
||||||
date_joined,
|
oculus_id,
|
||||||
is_friend,
|
|
||||||
friend_key,
|
|
||||||
online_friends: None,
|
|
||||||
active_friends: None,
|
|
||||||
offline_friends: None,
|
offline_friends: None,
|
||||||
|
online_friends: None,
|
||||||
|
past_display_names,
|
||||||
|
profile_pic_override,
|
||||||
|
state,
|
||||||
|
status,
|
||||||
|
status_description,
|
||||||
|
status_first_time,
|
||||||
|
status_history,
|
||||||
|
steam_details,
|
||||||
|
steam_id,
|
||||||
|
tags,
|
||||||
|
two_factor_auth_enabled,
|
||||||
|
unsubscribe,
|
||||||
|
user_icon,
|
||||||
|
username,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,17 +2,17 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/// ConfigDownloadUrls : Download links for various development assets
|
/// DownloadUrlList : Download links for various development assets.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ConfigDownloadUrls {
|
pub struct DownloadUrlList {
|
||||||
/// Download link for legacy SDK2
|
/// Download link for legacy SDK2
|
||||||
#[serde(rename = "sdk2")]
|
#[serde(rename = "sdk2")]
|
||||||
pub sdk2: String,
|
pub sdk2: String,
|
||||||
@ -24,10 +24,10 @@ pub struct ConfigDownloadUrls {
|
|||||||
pub sdk3_worlds: String,
|
pub sdk3_worlds: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ConfigDownloadUrls {
|
impl DownloadUrlList {
|
||||||
/// Download links for various development assets
|
/// Download links for various development assets.
|
||||||
pub fn new(sdk2: String, sdk3_avatars: String, sdk3_worlds: String) -> ConfigDownloadUrls {
|
pub fn new(sdk2: String, sdk3_avatars: String, sdk3_worlds: String) -> DownloadUrlList {
|
||||||
ConfigDownloadUrls {
|
DownloadUrlList {
|
||||||
sdk2,
|
sdk2,
|
||||||
sdk3_avatars,
|
sdk3_avatars,
|
||||||
sdk3_worlds,
|
sdk3_worlds,
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ConfigDynamicWorldRows {
|
pub struct DynamicWorldRow {
|
||||||
#[serde(rename = "index")]
|
#[serde(rename = "index")]
|
||||||
pub index: f32,
|
pub index: i32,
|
||||||
#[serde(rename = "name")]
|
#[serde(rename = "name")]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
#[serde(rename = "platform")]
|
#[serde(rename = "platform")]
|
||||||
@ -24,14 +24,14 @@ pub struct ConfigDynamicWorldRows {
|
|||||||
pub sort_order: String,
|
pub sort_order: String,
|
||||||
#[serde(rename = "sortOwnership")]
|
#[serde(rename = "sortOwnership")]
|
||||||
pub sort_ownership: String,
|
pub sort_ownership: String,
|
||||||
/// Tag to filter worlds for this row
|
/// Tag to filter worlds for this row. Not always present.
|
||||||
#[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
|
||||||
pub tag: Option<String>,
|
pub tag: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ConfigDynamicWorldRows {
|
impl DynamicWorldRow {
|
||||||
pub fn new(index: f32, name: String, platform: String, sort_heading: String, sort_order: String, sort_ownership: String) -> ConfigDynamicWorldRows {
|
pub fn new(index: i32, name: String, platform: String, sort_heading: String, sort_order: String, sort_ownership: String) -> DynamicWorldRow {
|
||||||
ConfigDynamicWorldRows {
|
DynamicWorldRow {
|
||||||
index,
|
index,
|
||||||
name,
|
name,
|
||||||
platform,
|
platform,
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,24 +12,24 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Favorite {
|
pub struct Favorite {
|
||||||
#[serde(rename = "id")]
|
|
||||||
pub id: String,
|
|
||||||
#[serde(rename = "type")]
|
|
||||||
pub _type: crate::models::FavoriteType,
|
|
||||||
/// MUST be either AvatarID, UserID or WorldID.
|
/// MUST be either AvatarID, UserID or WorldID.
|
||||||
#[serde(rename = "favoriteId")]
|
#[serde(rename = "favoriteId")]
|
||||||
pub favorite_id: String,
|
pub favorite_id: String,
|
||||||
|
#[serde(rename = "id")]
|
||||||
|
pub id: String,
|
||||||
#[serde(rename = "tags")]
|
#[serde(rename = "tags")]
|
||||||
pub tags: Vec<String>,
|
pub tags: Vec<String>,
|
||||||
|
#[serde(rename = "type")]
|
||||||
|
pub _type: crate::models::FavoriteType,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Favorite {
|
impl Favorite {
|
||||||
pub fn new(id: String, _type: crate::models::FavoriteType, favorite_id: String, tags: Vec<String>) -> Favorite {
|
pub fn new(favorite_id: String, id: String, tags: Vec<String>, _type: crate::models::FavoriteType) -> Favorite {
|
||||||
Favorite {
|
Favorite {
|
||||||
id,
|
|
||||||
_type,
|
|
||||||
favorite_id,
|
favorite_id,
|
||||||
|
id,
|
||||||
tags,
|
tags,
|
||||||
|
_type,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,35 +12,35 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct FavoriteGroup {
|
pub struct FavoriteGroup {
|
||||||
#[serde(rename = "id")]
|
|
||||||
pub id: String,
|
|
||||||
#[serde(rename = "ownerId")]
|
|
||||||
pub owner_id: String,
|
|
||||||
#[serde(rename = "ownerDisplayName")]
|
|
||||||
pub owner_display_name: String,
|
|
||||||
#[serde(rename = "name")]
|
|
||||||
pub name: String,
|
|
||||||
#[serde(rename = "displayName")]
|
#[serde(rename = "displayName")]
|
||||||
pub display_name: String,
|
pub display_name: String,
|
||||||
|
#[serde(rename = "id")]
|
||||||
|
pub id: String,
|
||||||
|
#[serde(rename = "name")]
|
||||||
|
pub name: String,
|
||||||
|
#[serde(rename = "ownerDisplayName")]
|
||||||
|
pub owner_display_name: String,
|
||||||
|
#[serde(rename = "ownerId")]
|
||||||
|
pub owner_id: String,
|
||||||
|
#[serde(rename = "tags")]
|
||||||
|
pub tags: Vec<String>,
|
||||||
#[serde(rename = "type")]
|
#[serde(rename = "type")]
|
||||||
pub _type: crate::models::FavoriteType,
|
pub _type: crate::models::FavoriteType,
|
||||||
#[serde(rename = "visibility")]
|
#[serde(rename = "visibility")]
|
||||||
pub visibility: crate::models::FavoriteGroupVisibility,
|
pub visibility: crate::models::FavoriteGroupVisibility,
|
||||||
#[serde(rename = "tags")]
|
|
||||||
pub tags: Vec<String>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FavoriteGroup {
|
impl FavoriteGroup {
|
||||||
pub fn new(id: String, owner_id: String, owner_display_name: String, name: String, display_name: String, _type: crate::models::FavoriteType, visibility: crate::models::FavoriteGroupVisibility, tags: Vec<String>) -> FavoriteGroup {
|
pub fn new(display_name: String, id: String, name: String, owner_display_name: String, owner_id: String, tags: Vec<String>, _type: crate::models::FavoriteType, visibility: crate::models::FavoriteGroupVisibility) -> FavoriteGroup {
|
||||||
FavoriteGroup {
|
FavoriteGroup {
|
||||||
id,
|
|
||||||
owner_id,
|
|
||||||
owner_display_name,
|
|
||||||
name,
|
|
||||||
display_name,
|
display_name,
|
||||||
|
id,
|
||||||
|
name,
|
||||||
|
owner_display_name,
|
||||||
|
owner_id,
|
||||||
|
tags,
|
||||||
_type,
|
_type,
|
||||||
visibility,
|
visibility,
|
||||||
tags,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,16 +12,16 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct File {
|
pub struct File {
|
||||||
|
#[serde(rename = "extension")]
|
||||||
|
pub extension: String,
|
||||||
#[serde(rename = "id")]
|
#[serde(rename = "id")]
|
||||||
pub id: String,
|
pub id: String,
|
||||||
|
#[serde(rename = "mimeType")]
|
||||||
|
pub mime_type: crate::models::MimeType,
|
||||||
#[serde(rename = "name")]
|
#[serde(rename = "name")]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
#[serde(rename = "ownerId")]
|
#[serde(rename = "ownerId")]
|
||||||
pub owner_id: String,
|
pub owner_id: String,
|
||||||
#[serde(rename = "mimeType")]
|
|
||||||
pub mime_type: crate::models::MimeType,
|
|
||||||
#[serde(rename = "extension")]
|
|
||||||
pub extension: String,
|
|
||||||
#[serde(rename = "tags")]
|
#[serde(rename = "tags")]
|
||||||
pub tags: Vec<String>,
|
pub tags: Vec<String>,
|
||||||
#[serde(rename = "versions")]
|
#[serde(rename = "versions")]
|
||||||
@ -29,13 +29,13 @@ pub struct File {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl File {
|
impl File {
|
||||||
pub fn new(id: String, name: String, owner_id: String, mime_type: crate::models::MimeType, extension: String, tags: Vec<String>, versions: Vec<crate::models::FileVersion>) -> File {
|
pub fn new(extension: String, id: String, mime_type: crate::models::MimeType, name: String, owner_id: String, tags: Vec<String>, versions: Vec<crate::models::FileVersion>) -> File {
|
||||||
File {
|
File {
|
||||||
|
extension,
|
||||||
id,
|
id,
|
||||||
|
mime_type,
|
||||||
name,
|
name,
|
||||||
owner_id,
|
owner_id,
|
||||||
mime_type,
|
|
||||||
extension,
|
|
||||||
tags,
|
tags,
|
||||||
versions,
|
versions,
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,32 +12,32 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct FileData {
|
pub struct FileData {
|
||||||
|
#[serde(rename = "category")]
|
||||||
|
pub category: Category,
|
||||||
#[serde(rename = "fileName")]
|
#[serde(rename = "fileName")]
|
||||||
pub file_name: String,
|
pub file_name: String,
|
||||||
#[serde(rename = "url")]
|
|
||||||
pub url: String,
|
|
||||||
#[serde(rename = "md5")]
|
#[serde(rename = "md5")]
|
||||||
pub md5: String,
|
pub md5: String,
|
||||||
#[serde(rename = "sizeInBytes")]
|
#[serde(rename = "sizeInBytes")]
|
||||||
pub size_in_bytes: f32,
|
pub size_in_bytes: i32,
|
||||||
#[serde(rename = "status")]
|
#[serde(rename = "status")]
|
||||||
pub status: crate::models::FileStatus,
|
pub status: crate::models::FileStatus,
|
||||||
#[serde(rename = "category")]
|
|
||||||
pub category: Category,
|
|
||||||
#[serde(rename = "uploadId")]
|
#[serde(rename = "uploadId")]
|
||||||
pub upload_id: String,
|
pub upload_id: String,
|
||||||
|
#[serde(rename = "url")]
|
||||||
|
pub url: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FileData {
|
impl FileData {
|
||||||
pub fn new(file_name: String, url: String, md5: String, size_in_bytes: f32, status: crate::models::FileStatus, category: Category, upload_id: String) -> FileData {
|
pub fn new(category: Category, file_name: String, md5: String, size_in_bytes: i32, status: crate::models::FileStatus, upload_id: String, url: String) -> FileData {
|
||||||
FileData {
|
FileData {
|
||||||
|
category,
|
||||||
file_name,
|
file_name,
|
||||||
url,
|
|
||||||
md5,
|
md5,
|
||||||
size_in_bytes,
|
size_in_bytes,
|
||||||
status,
|
status,
|
||||||
category,
|
|
||||||
upload_id,
|
upload_id,
|
||||||
|
url,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,34 +12,34 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct FileVersion {
|
pub struct FileVersion {
|
||||||
/// Incremental version counter, can only be increased.
|
|
||||||
#[serde(rename = "version")]
|
|
||||||
pub version: f32,
|
|
||||||
#[serde(rename = "status")]
|
|
||||||
pub status: crate::models::FileStatus,
|
|
||||||
#[serde(rename = "created_at")]
|
#[serde(rename = "created_at")]
|
||||||
pub created_at: String,
|
pub created_at: String,
|
||||||
#[serde(rename = "file", skip_serializing_if = "Option::is_none")]
|
|
||||||
pub file: Option<Box<crate::models::FileData>>,
|
|
||||||
#[serde(rename = "delta", skip_serializing_if = "Option::is_none")]
|
|
||||||
pub delta: Option<Box<crate::models::FileData>>,
|
|
||||||
#[serde(rename = "signature", skip_serializing_if = "Option::is_none")]
|
|
||||||
pub signature: Option<Box<crate::models::FileData>>,
|
|
||||||
/// Usually only present if `true`
|
/// Usually only present if `true`
|
||||||
#[serde(rename = "deleted", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "deleted", skip_serializing_if = "Option::is_none")]
|
||||||
pub deleted: Option<bool>,
|
pub deleted: Option<bool>,
|
||||||
|
#[serde(rename = "delta", skip_serializing_if = "Option::is_none")]
|
||||||
|
pub delta: Option<Box<crate::models::FileData>>,
|
||||||
|
#[serde(rename = "file", skip_serializing_if = "Option::is_none")]
|
||||||
|
pub file: Option<Box<crate::models::FileData>>,
|
||||||
|
#[serde(rename = "signature", skip_serializing_if = "Option::is_none")]
|
||||||
|
pub signature: Option<Box<crate::models::FileData>>,
|
||||||
|
#[serde(rename = "status")]
|
||||||
|
pub status: crate::models::FileStatus,
|
||||||
|
/// Incremental version counter, can only be increased.
|
||||||
|
#[serde(rename = "version")]
|
||||||
|
pub version: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FileVersion {
|
impl FileVersion {
|
||||||
pub fn new(version: f32, status: crate::models::FileStatus, created_at: String) -> FileVersion {
|
pub fn new(created_at: String, status: crate::models::FileStatus, version: i32) -> FileVersion {
|
||||||
FileVersion {
|
FileVersion {
|
||||||
version,
|
|
||||||
status,
|
|
||||||
created_at,
|
created_at,
|
||||||
file: None,
|
|
||||||
delta: None,
|
|
||||||
signature: None,
|
|
||||||
deleted: None,
|
deleted: None,
|
||||||
|
delta: None,
|
||||||
|
file: None,
|
||||||
|
signature: None,
|
||||||
|
status,
|
||||||
|
version,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,20 +12,20 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct FriendStatus {
|
pub struct FriendStatus {
|
||||||
|
#[serde(rename = "incomingRequest")]
|
||||||
|
pub incoming_request: bool,
|
||||||
#[serde(rename = "isFriend")]
|
#[serde(rename = "isFriend")]
|
||||||
pub is_friend: bool,
|
pub is_friend: bool,
|
||||||
#[serde(rename = "outgoingRequest")]
|
#[serde(rename = "outgoingRequest")]
|
||||||
pub outgoing_request: bool,
|
pub outgoing_request: bool,
|
||||||
#[serde(rename = "incomingRequest")]
|
|
||||||
pub incoming_request: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FriendStatus {
|
impl FriendStatus {
|
||||||
pub fn new(is_friend: bool, outgoing_request: bool, incoming_request: bool) -> FriendStatus {
|
pub fn new(incoming_request: bool, is_friend: bool, outgoing_request: bool) -> FriendStatus {
|
||||||
FriendStatus {
|
FriendStatus {
|
||||||
|
incoming_request,
|
||||||
is_friend,
|
is_friend,
|
||||||
outgoing_request,
|
outgoing_request,
|
||||||
incoming_request,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -17,9 +17,9 @@ pub struct Instance {
|
|||||||
#[serde(rename = "canRequestInvite")]
|
#[serde(rename = "canRequestInvite")]
|
||||||
pub can_request_invite: bool,
|
pub can_request_invite: bool,
|
||||||
#[serde(rename = "capacity")]
|
#[serde(rename = "capacity")]
|
||||||
pub capacity: f32,
|
pub capacity: i32,
|
||||||
#[serde(rename = "clientNumber")]
|
#[serde(rename = "clientNumber")]
|
||||||
pub client_number: String,
|
pub client_number: i32,
|
||||||
#[serde(rename = "full")]
|
#[serde(rename = "full")]
|
||||||
pub full: bool,
|
pub full: bool,
|
||||||
#[serde(rename = "id")]
|
#[serde(rename = "id")]
|
||||||
@ -29,7 +29,7 @@ pub struct Instance {
|
|||||||
#[serde(rename = "location")]
|
#[serde(rename = "location")]
|
||||||
pub location: String,
|
pub location: String,
|
||||||
#[serde(rename = "n_users")]
|
#[serde(rename = "n_users")]
|
||||||
pub n_users: f32,
|
pub n_users: i32,
|
||||||
#[serde(rename = "name")]
|
#[serde(rename = "name")]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
#[serde(rename = "nonce", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "nonce", skip_serializing_if = "Option::is_none")]
|
||||||
@ -61,7 +61,7 @@ pub struct Instance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Instance {
|
impl Instance {
|
||||||
pub fn new(active: bool, can_request_invite: bool, capacity: f32, client_number: String, full: bool, id: String, instance_id: String, location: String, n_users: f32, name: String, owner_id: String, permanent: bool, photon_region: String, platforms: crate::models::InstancePlatforms, region: String, short_name: String, tags: Vec<String>, _type: String, world_id: String) -> Instance {
|
pub fn new(active: bool, can_request_invite: bool, capacity: i32, client_number: i32, full: bool, id: String, instance_id: String, location: String, n_users: i32, name: String, owner_id: String, permanent: bool, photon_region: String, platforms: crate::models::InstancePlatforms, region: String, short_name: String, tags: Vec<String>, _type: String, world_id: String) -> Instance {
|
||||||
Instance {
|
Instance {
|
||||||
active,
|
active,
|
||||||
can_request_invite,
|
can_request_invite,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -13,13 +13,13 @@
|
|||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct InstancePlatforms {
|
pub struct InstancePlatforms {
|
||||||
#[serde(rename = "android")]
|
#[serde(rename = "android")]
|
||||||
pub android: f32,
|
pub android: i32,
|
||||||
#[serde(rename = "standalonewindows")]
|
#[serde(rename = "standalonewindows")]
|
||||||
pub standalonewindows: f32,
|
pub standalonewindows: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InstancePlatforms {
|
impl InstancePlatforms {
|
||||||
pub fn new(android: f32, standalonewindows: f32) -> InstancePlatforms {
|
pub fn new(android: i32, standalonewindows: i32) -> InstancePlatforms {
|
||||||
InstancePlatforms {
|
InstancePlatforms {
|
||||||
android,
|
android,
|
||||||
standalonewindows,
|
standalonewindows,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,33 +12,33 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct InviteMessage {
|
pub struct InviteMessage {
|
||||||
|
#[serde(rename = "canBeUpdated")]
|
||||||
|
pub can_be_updated: bool,
|
||||||
#[serde(rename = "id")]
|
#[serde(rename = "id")]
|
||||||
pub id: String,
|
pub id: String,
|
||||||
#[serde(rename = "slot")]
|
|
||||||
pub slot: i32,
|
|
||||||
#[serde(rename = "message")]
|
#[serde(rename = "message")]
|
||||||
pub message: String,
|
pub message: String,
|
||||||
#[serde(rename = "messageType")]
|
#[serde(rename = "messageType")]
|
||||||
pub message_type: crate::models::InviteMessageType,
|
pub message_type: crate::models::InviteMessageType,
|
||||||
#[serde(rename = "updatedAt")]
|
|
||||||
pub updated_at: String,
|
|
||||||
/// Changes to 60 when updated, although probably server-side configurable.
|
/// Changes to 60 when updated, although probably server-side configurable.
|
||||||
#[serde(rename = "remainingCooldownMinutes")]
|
#[serde(rename = "remainingCooldownMinutes")]
|
||||||
pub remaining_cooldown_minutes: i32,
|
pub remaining_cooldown_minutes: i32,
|
||||||
#[serde(rename = "canBeUpdated")]
|
#[serde(rename = "slot")]
|
||||||
pub can_be_updated: bool,
|
pub slot: i32,
|
||||||
|
#[serde(rename = "updatedAt")]
|
||||||
|
pub updated_at: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InviteMessage {
|
impl InviteMessage {
|
||||||
pub fn new(id: String, slot: i32, message: String, message_type: crate::models::InviteMessageType, updated_at: String, remaining_cooldown_minutes: i32, can_be_updated: bool) -> InviteMessage {
|
pub fn new(can_be_updated: bool, id: String, message: String, message_type: crate::models::InviteMessageType, remaining_cooldown_minutes: i32, slot: i32, updated_at: String) -> InviteMessage {
|
||||||
InviteMessage {
|
InviteMessage {
|
||||||
|
can_be_updated,
|
||||||
id,
|
id,
|
||||||
slot,
|
|
||||||
message,
|
message,
|
||||||
message_type,
|
message_type,
|
||||||
updated_at,
|
|
||||||
remaining_cooldown_minutes,
|
remaining_cooldown_minutes,
|
||||||
can_be_updated,
|
slot,
|
||||||
|
updated_at,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
27
src/models/invite_request.rs
Normal file
27
src/models/invite_request.rs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.4.1
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
pub struct InviteRequest {
|
||||||
|
#[serde(rename = "instanceId")]
|
||||||
|
pub instance_id: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl InviteRequest {
|
||||||
|
pub fn new(instance_id: String) -> InviteRequest {
|
||||||
|
InviteRequest {
|
||||||
|
instance_id,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
27
src/models/invite_response.rs
Normal file
27
src/models/invite_response.rs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.4.1
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
pub struct InviteResponse {
|
||||||
|
#[serde(rename = "responseSlot")]
|
||||||
|
pub response_slot: i32,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl InviteResponse {
|
||||||
|
pub fn new(response_slot: i32) -> InviteResponse {
|
||||||
|
InviteResponse {
|
||||||
|
response_slot,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,58 +12,58 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct LimitedUser {
|
pub struct LimitedUser {
|
||||||
#[serde(rename = "id")]
|
|
||||||
pub id: String,
|
|
||||||
#[serde(rename = "username")]
|
|
||||||
pub username: String,
|
|
||||||
#[serde(rename = "displayName")]
|
|
||||||
pub display_name: String,
|
|
||||||
#[serde(rename = "bio", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "bio", skip_serializing_if = "Option::is_none")]
|
||||||
pub bio: Option<String>,
|
pub bio: Option<String>,
|
||||||
#[serde(rename = "userIcon")]
|
|
||||||
pub user_icon: String,
|
|
||||||
#[serde(rename = "profilePicOverride")]
|
|
||||||
pub profile_pic_override: String,
|
|
||||||
#[serde(rename = "statusDescription")]
|
|
||||||
pub status_description: String,
|
|
||||||
#[serde(rename = "currentAvatarImageUrl")]
|
#[serde(rename = "currentAvatarImageUrl")]
|
||||||
pub current_avatar_image_url: String,
|
pub current_avatar_image_url: String,
|
||||||
#[serde(rename = "currentAvatarThumbnailImageUrl")]
|
#[serde(rename = "currentAvatarThumbnailImageUrl")]
|
||||||
pub current_avatar_thumbnail_image_url: String,
|
pub current_avatar_thumbnail_image_url: String,
|
||||||
#[serde(rename = "fallbackAvatar")]
|
|
||||||
pub fallback_avatar: String,
|
|
||||||
#[serde(rename = "developerType")]
|
#[serde(rename = "developerType")]
|
||||||
pub developer_type: crate::models::DeveloperType,
|
pub developer_type: crate::models::DeveloperType,
|
||||||
|
#[serde(rename = "displayName")]
|
||||||
|
pub display_name: String,
|
||||||
|
#[serde(rename = "fallbackAvatar")]
|
||||||
|
pub fallback_avatar: String,
|
||||||
|
#[serde(rename = "id")]
|
||||||
|
pub id: String,
|
||||||
|
#[serde(rename = "isFriend")]
|
||||||
|
pub is_friend: bool,
|
||||||
/// 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`.
|
/// 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`.
|
||||||
#[serde(rename = "last_platform")]
|
#[serde(rename = "last_platform")]
|
||||||
pub last_platform: String,
|
pub last_platform: String,
|
||||||
|
#[serde(rename = "profilePicOverride")]
|
||||||
|
pub profile_pic_override: String,
|
||||||
#[serde(rename = "status")]
|
#[serde(rename = "status")]
|
||||||
pub status: crate::models::UserStatus,
|
pub status: crate::models::UserStatus,
|
||||||
#[serde(rename = "isFriend")]
|
#[serde(rename = "statusDescription")]
|
||||||
pub is_friend: bool,
|
pub status_description: String,
|
||||||
/// <- Always empty.
|
/// <- Always empty.
|
||||||
#[serde(rename = "tags")]
|
#[serde(rename = "tags")]
|
||||||
pub tags: Vec<String>,
|
pub tags: Vec<String>,
|
||||||
|
#[serde(rename = "userIcon")]
|
||||||
|
pub user_icon: String,
|
||||||
|
#[serde(rename = "username")]
|
||||||
|
pub username: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LimitedUser {
|
impl LimitedUser {
|
||||||
pub fn new(id: String, username: String, display_name: String, user_icon: String, profile_pic_override: String, status_description: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, fallback_avatar: String, developer_type: crate::models::DeveloperType, last_platform: String, status: crate::models::UserStatus, is_friend: bool, tags: Vec<String>) -> LimitedUser {
|
pub fn new(current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, developer_type: crate::models::DeveloperType, display_name: String, fallback_avatar: String, id: String, is_friend: bool, last_platform: String, profile_pic_override: String, status: crate::models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String, username: String) -> LimitedUser {
|
||||||
LimitedUser {
|
LimitedUser {
|
||||||
id,
|
|
||||||
username,
|
|
||||||
display_name,
|
|
||||||
bio: None,
|
bio: None,
|
||||||
user_icon,
|
|
||||||
profile_pic_override,
|
|
||||||
status_description,
|
|
||||||
current_avatar_image_url,
|
current_avatar_image_url,
|
||||||
current_avatar_thumbnail_image_url,
|
current_avatar_thumbnail_image_url,
|
||||||
fallback_avatar,
|
|
||||||
developer_type,
|
developer_type,
|
||||||
last_platform,
|
display_name,
|
||||||
status,
|
fallback_avatar,
|
||||||
|
id,
|
||||||
is_friend,
|
is_friend,
|
||||||
|
last_platform,
|
||||||
|
profile_pic_override,
|
||||||
|
status,
|
||||||
|
status_description,
|
||||||
tags,
|
tags,
|
||||||
|
user_icon,
|
||||||
|
username,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,68 +12,68 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct LimitedWorld {
|
pub struct LimitedWorld {
|
||||||
#[serde(rename = "id")]
|
|
||||||
pub id: String,
|
|
||||||
#[serde(rename = "name")]
|
|
||||||
pub name: String,
|
|
||||||
#[serde(rename = "authorId")]
|
#[serde(rename = "authorId")]
|
||||||
pub author_id: String,
|
pub author_id: String,
|
||||||
#[serde(rename = "authorName")]
|
#[serde(rename = "authorName")]
|
||||||
pub author_name: String,
|
pub author_name: String,
|
||||||
#[serde(rename = "capacity")]
|
#[serde(rename = "capacity")]
|
||||||
pub capacity: f32,
|
pub capacity: i32,
|
||||||
#[serde(rename = "imageUrl")]
|
|
||||||
pub image_url: String,
|
|
||||||
#[serde(rename = "thumbnailImageUrl")]
|
|
||||||
pub thumbnail_image_url: String,
|
|
||||||
#[serde(rename = "releaseStatus")]
|
|
||||||
pub release_status: String,
|
|
||||||
#[serde(rename = "organization")]
|
|
||||||
pub organization: String,
|
|
||||||
#[serde(rename = "tags")]
|
|
||||||
pub tags: Vec<String>,
|
|
||||||
#[serde(rename = "favorites")]
|
|
||||||
pub favorites: f32,
|
|
||||||
#[serde(rename = "created_at")]
|
#[serde(rename = "created_at")]
|
||||||
pub created_at: String,
|
pub created_at: String,
|
||||||
#[serde(rename = "updated_at")]
|
#[serde(rename = "favorites")]
|
||||||
pub updated_at: String,
|
pub favorites: i32,
|
||||||
#[serde(rename = "publicationDate")]
|
#[serde(rename = "heat")]
|
||||||
pub publication_date: String,
|
pub heat: i32,
|
||||||
|
#[serde(rename = "id")]
|
||||||
|
pub id: String,
|
||||||
|
#[serde(rename = "imageUrl")]
|
||||||
|
pub image_url: String,
|
||||||
#[serde(rename = "labsPublicationDate")]
|
#[serde(rename = "labsPublicationDate")]
|
||||||
pub labs_publication_date: String,
|
pub labs_publication_date: String,
|
||||||
|
#[serde(rename = "name")]
|
||||||
|
pub name: String,
|
||||||
|
#[serde(rename = "occupants")]
|
||||||
|
pub occupants: i32,
|
||||||
|
#[serde(rename = "organization")]
|
||||||
|
pub organization: String,
|
||||||
|
#[serde(rename = "popularity")]
|
||||||
|
pub popularity: i32,
|
||||||
|
#[serde(rename = "publicationDate")]
|
||||||
|
pub publication_date: String,
|
||||||
|
#[serde(rename = "releaseStatus")]
|
||||||
|
pub release_status: crate::models::ReleaseStatus,
|
||||||
|
#[serde(rename = "tags")]
|
||||||
|
pub tags: Vec<String>,
|
||||||
|
#[serde(rename = "thumbnailImageUrl")]
|
||||||
|
pub thumbnail_image_url: String,
|
||||||
#[serde(rename = "unityPackages")]
|
#[serde(rename = "unityPackages")]
|
||||||
pub unity_packages: Vec<crate::models::LimitedUnityPackage>,
|
pub unity_packages: Vec<crate::models::LimitedUnityPackage>,
|
||||||
#[serde(rename = "popularity")]
|
#[serde(rename = "updated_at")]
|
||||||
pub popularity: f32,
|
pub updated_at: String,
|
||||||
#[serde(rename = "heat")]
|
|
||||||
pub heat: f32,
|
|
||||||
#[serde(rename = "occupants")]
|
|
||||||
pub occupants: f32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LimitedWorld {
|
impl LimitedWorld {
|
||||||
pub fn new(id: String, name: String, author_id: String, author_name: String, capacity: f32, image_url: String, thumbnail_image_url: String, release_status: String, organization: String, tags: Vec<String>, favorites: f32, created_at: String, updated_at: String, publication_date: String, labs_publication_date: String, unity_packages: Vec<crate::models::LimitedUnityPackage>, popularity: f32, heat: f32, occupants: f32) -> LimitedWorld {
|
pub fn new(author_id: String, author_name: String, capacity: i32, created_at: String, favorites: i32, heat: i32, id: String, image_url: String, labs_publication_date: String, name: String, occupants: i32, organization: String, popularity: i32, publication_date: String, release_status: crate::models::ReleaseStatus, tags: Vec<String>, thumbnail_image_url: String, unity_packages: Vec<crate::models::LimitedUnityPackage>, updated_at: String) -> LimitedWorld {
|
||||||
LimitedWorld {
|
LimitedWorld {
|
||||||
id,
|
|
||||||
name,
|
|
||||||
author_id,
|
author_id,
|
||||||
author_name,
|
author_name,
|
||||||
capacity,
|
capacity,
|
||||||
image_url,
|
|
||||||
thumbnail_image_url,
|
|
||||||
release_status,
|
|
||||||
organization,
|
|
||||||
tags,
|
|
||||||
favorites,
|
|
||||||
created_at,
|
created_at,
|
||||||
updated_at,
|
favorites,
|
||||||
publication_date,
|
|
||||||
labs_publication_date,
|
|
||||||
unity_packages,
|
|
||||||
popularity,
|
|
||||||
heat,
|
heat,
|
||||||
|
id,
|
||||||
|
image_url,
|
||||||
|
labs_publication_date,
|
||||||
|
name,
|
||||||
occupants,
|
occupants,
|
||||||
|
organization,
|
||||||
|
popularity,
|
||||||
|
publication_date,
|
||||||
|
release_status,
|
||||||
|
tags,
|
||||||
|
thumbnail_image_url,
|
||||||
|
unity_packages,
|
||||||
|
updated_at,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.3.0
|
* The version of the OpenAPI document: 1.4.1
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user