From 0f5ba98772f6bb3254ccf2d071072ec0d79981a9 Mon Sep 17 00:00:00 2001 From: Foorack Date: Fri, 8 Oct 2021 12:05:31 +0200 Subject: [PATCH] Upgrade Rust SDK to spec 1.4.1 --- .openapi-generator/FILES | 26 +- Cargo.toml | 2 +- docs/{Config.md => ApiConfig.md} | 125 +++++----- docs/ApiEventConfig.md | 20 ++ docs/AuthenticationApi.md | 36 ++- docs/Avatar.md | 4 +- docs/AvatarsApi.md | 6 +- docs/ConfigEvents.md | 20 -- docs/CurrentUser.md | 76 +++--- ...nfigDownloadUrls.md => DownloadUrlList.md} | 8 +- ...DynamicWorldRows.md => DynamicWorldRow.md} | 16 +- docs/Favorite.md | 4 +- docs/FavoriteGroup.md | 10 +- docs/File.md | 4 +- docs/FileData.md | 10 +- docs/FileVersion.md | 12 +- docs/FriendStatus.md | 2 +- docs/Instance.md | 6 +- docs/InstancePlatforms.md | 4 +- docs/InviteApi.md | 38 +-- docs/InviteMessage.md | 6 +- ...onfigAnnouncements.md => InviteRequest.md} | 5 +- docs/InviteResponse.md | 11 + docs/LimitedUser.md | 18 +- docs/LimitedWorld.md | 28 +-- docs/Notification.md | 8 +- docs/Permission.md | 6 +- docs/PlayerModeration.md | 12 +- docs/PublicAnnouncement.md | 12 + docs/Response.md | 2 +- docs/SystemApi.md | 70 +++++- docs/UnityPackage.md | 10 +- docs/User.md | 31 ++- docs/UserExists.md | 11 + docs/World.md | 22 +- docs/WorldsApi.md | 12 +- src/apis/authentication_api.rs | 51 +++- src/apis/avatars_api.rs | 2 +- src/apis/configuration.rs | 2 +- src/apis/favorites_api.rs | 2 +- src/apis/files_api.rs | 2 +- src/apis/friends_api.rs | 2 +- src/apis/invite_api.rs | 32 +-- src/apis/notifications_api.rs | 2 +- src/apis/permissions_api.rs | 2 +- src/apis/playermoderation_api.rs | 2 +- src/apis/system_api.rs | 88 ++++++- src/apis/users_api.rs | 2 +- src/apis/worlds_api.rs | 2 +- src/models/{config.rs => api_config.rs} | 108 ++++---- .../{config_events.rs => api_event_config.rs} | 30 +-- src/models/avatar.rs | 12 +- src/models/avatar_unity_package_url_object.rs | 2 +- src/models/current_user.rs | 234 +++++++++--------- src/models/deployment_group.rs | 2 +- src/models/developer_type.rs | 2 +- ..._download_urls.rs => download_url_list.rs} | 14 +- ...mic_world_rows.rs => dynamic_world_row.rs} | 14 +- src/models/error.rs | 2 +- src/models/favorite.rs | 16 +- src/models/favorite_group.rs | 34 +-- src/models/favorite_group_visibility.rs | 2 +- src/models/favorite_type.rs | 2 +- src/models/file.rs | 16 +- src/models/file_data.rs | 18 +- src/models/file_status.rs | 2 +- src/models/file_version.rs | 36 +-- src/models/friend_status.rs | 10 +- src/models/inline_object.rs | 2 +- src/models/inline_object_1.rs | 2 +- src/models/inline_object_10.rs | 2 +- src/models/inline_object_11.rs | 2 +- src/models/inline_object_12.rs | 2 +- src/models/inline_object_13.rs | 2 +- src/models/inline_object_2.rs | 2 +- src/models/inline_object_3.rs | 2 +- src/models/inline_object_4.rs | 2 +- src/models/inline_object_5.rs | 2 +- src/models/inline_object_6.rs | 2 +- src/models/inline_object_7.rs | 2 +- src/models/inline_object_8.rs | 2 +- src/models/inline_object_9.rs | 2 +- src/models/inline_response_200.rs | 2 +- src/models/inline_response_200_1.rs | 2 +- src/models/inline_response_200_2.rs | 2 +- src/models/inline_response_200_3.rs | 2 +- src/models/inline_response_200_4.rs | 2 +- src/models/inline_response_200_5.rs | 2 +- src/models/inline_response_200_6.rs | 2 +- src/models/inline_response_400.rs | 2 +- src/models/instance.rs | 10 +- src/models/instance_platforms.rs | 8 +- src/models/invite_message.rs | 22 +- src/models/invite_message_type.rs | 2 +- src/models/invite_request.rs | 27 ++ src/models/invite_response.rs | 27 ++ src/models/limited_unity_package.rs | 2 +- src/models/limited_user.rs | 54 ++-- src/models/limited_world.rs | 84 +++---- src/models/mime_type.rs | 2 +- src/models/mod.rs | 26 +- src/models/notification.rs | 30 +-- src/models/notification_type.rs | 2 +- src/models/past_display_name.rs | 2 +- src/models/permission.rs | 22 +- src/models/player_moderation.rs | 40 +-- src/models/player_moderation_type.rs | 2 +- ...nnouncements.rs => public_announcement.rs} | 12 +- src/models/release_status.rs | 2 +- src/models/response.rs | 6 +- src/models/success.rs | 2 +- src/models/unity_package.rs | 36 +-- src/models/user.rs | 97 ++++---- src/models/user_exists.rs | 30 +++ src/models/user_state.rs | 2 +- src/models/user_status.rs | 2 +- src/models/world.rs | 22 +- 117 files changed, 1221 insertions(+), 836 deletions(-) rename docs/{Config.md => ApiConfig.md} (56%) create mode 100644 docs/ApiEventConfig.md delete mode 100644 docs/ConfigEvents.md rename docs/{ConfigDownloadUrls.md => DownloadUrlList.md} (77%) rename docs/{ConfigDynamicWorldRows.md => DynamicWorldRow.md} (52%) rename docs/{ConfigAnnouncements.md => InviteRequest.md} (67%) create mode 100644 docs/InviteResponse.md create mode 100644 docs/PublicAnnouncement.md create mode 100644 docs/UserExists.md rename src/models/{config.rs => api_config.rs} (68%) rename src/models/{config_events.rs => api_event_config.rs} (59%) rename src/models/{config_download_urls.rs => download_url_list.rs} (68%) rename src/models/{config_dynamic_world_rows.rs => dynamic_world_row.rs} (74%) create mode 100644 src/models/invite_request.rs create mode 100644 src/models/invite_response.rs rename src/models/{config_announcements.rs => public_announcement.rs} (62%) create mode 100644 src/models/user_exists.rs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 15f743f..c4211cd 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,18 +1,17 @@ .gitignore .travis.yml Cargo.toml +docs/ApiConfig.md +docs/ApiEventConfig.md docs/AuthenticationApi.md docs/Avatar.md docs/AvatarUnityPackageUrlObject.md docs/AvatarsApi.md -docs/Config.md -docs/ConfigAnnouncements.md -docs/ConfigDownloadUrls.md -docs/ConfigDynamicWorldRows.md -docs/ConfigEvents.md docs/CurrentUser.md docs/DeploymentGroup.md docs/DeveloperType.md +docs/DownloadUrlList.md +docs/DynamicWorldRow.md docs/Error.md docs/Favorite.md docs/FavoriteGroup.md @@ -53,6 +52,8 @@ docs/InstancePlatforms.md docs/InviteApi.md docs/InviteMessage.md docs/InviteMessageType.md +docs/InviteRequest.md +docs/InviteResponse.md docs/LimitedUnityPackage.md docs/LimitedUser.md docs/LimitedWorld.md @@ -66,12 +67,14 @@ docs/PermissionsApi.md docs/PlayerModeration.md docs/PlayerModerationType.md docs/PlayermoderationApi.md +docs/PublicAnnouncement.md docs/ReleaseStatus.md docs/Response.md docs/Success.md docs/SystemApi.md docs/UnityPackage.md docs/User.md +docs/UserExists.md docs/UserState.md docs/UserStatus.md docs/UsersApi.md @@ -93,16 +96,15 @@ src/apis/system_api.rs src/apis/users_api.rs src/apis/worlds_api.rs src/lib.rs +src/models/api_config.rs +src/models/api_event_config.rs src/models/avatar.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/deployment_group.rs src/models/developer_type.rs +src/models/download_url_list.rs +src/models/dynamic_world_row.rs src/models/error.rs src/models/favorite.rs src/models/favorite_group.rs @@ -139,6 +141,8 @@ src/models/instance.rs src/models/instance_platforms.rs src/models/invite_message.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_user.rs src/models/limited_world.rs @@ -150,11 +154,13 @@ src/models/past_display_name.rs src/models/permission.rs src/models/player_moderation.rs src/models/player_moderation_type.rs +src/models/public_announcement.rs src/models/release_status.rs src/models/response.rs src/models/success.rs src/models/unity_package.rs src/models/user.rs +src/models/user_exists.rs src/models/user_state.rs src/models/user_status.rs src/models/world.rs diff --git a/Cargo.toml b/Cargo.toml index 521fe8e..17e346b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vrchatapi" -version = "1.3.0" +version = "1.4.1" authors = ["OpenAPI Generator team and contributors"] license = "MIT" edition = "2018" diff --git a/docs/Config.md b/docs/ApiConfig.md similarity index 56% rename from docs/Config.md rename to docs/ApiConfig.md index fccc107..c688649 100644 --- a/docs/Config.md +++ b/docs/ApiConfig.md @@ -1,84 +1,89 @@ -# Config +# ApiConfig ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | **String** | VRChat's office address | [readonly] -**announcements** | [**Vec**](Config_announcements.md) | Public Announcements | [readonly] -**api_key** | **String** | apiKey to be used for all other requests | [readonly] -**app_name** | **String** | Game name | [readonly][default to VrChat] -**build_version_tag** | **String** | Build tag of the API server | [readonly] -**client_api_key** | **String** | apiKey to be used for all other requests | [readonly] -**client_bps_ceiling** | Option<**f32**> | Unknown | [optional] -**client_disconnect_timeout** | Option<**f32**> | Unknown | [optional] -**client_reserved_player_bps** | Option<**f32**> | Unknown | [optional] -**client_sent_count_allowance** | Option<**f32**> | Unknown | [optional] -**contact_email** | **String** | VRChat's contact email | [readonly] -**copyright_email** | **String** | VRChat's copyright-issues-related email | [readonly] -**current_tos_version** | **f32** | Current version number of the Terms of Service | [readonly] +**voice_enable_degradation** | **bool** | Unknown, probably voice optimization testing | [default to false] +**voice_enable_receiver_limiting** | **bool** | Unknown, probably voice optimization testing | [default to true] +**address** | **String** | VRChat's office address | +**announcements** | [**Vec**](Public_Announcement.md) | Public Announcements | +**api_key** | **String** | apiKey to be used for all other requests | +**app_name** | **String** | Game name | [default to VrChat] +**build_version_tag** | **String** | Build tag of the API server | +**client_api_key** | **String** | apiKey to be used for all other requests | +**client_bps_ceiling** | **i32** | Unknown | [default to 18432] +**client_disconnect_timeout** | **i32** | Unknown | [default to 30000] +**client_reserved_player_bps** | **i32** | Unknown | [default to 7168] +**client_sent_count_allowance** | **i32** | Unknown | [default to 15] +**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** | | **deployment_group** | [**crate::models::DeploymentGroup**](DeploymentGroup.md) | | -**dev_app_version_standalone** | **String** | Version number for game development build | [readonly] -**dev_download_link_windows** | **String** | Developer Download link | [readonly] -**dev_sdk_url** | **String** | Link to download the development SDK, use downloadUrls instead | [readonly] -**dev_sdk_version** | **String** | Version of the development SDK | [readonly] -**dev_server_version_standalone** | **String** | Version number for server development build | [readonly] +**dev_app_version_standalone** | **String** | Version number for game development build | +**dev_download_link_windows** | **String** | Developer Download link | +**dev_sdk_url** | **String** | Link to download the development SDK, use downloadUrls instead | +**dev_sdk_version** | **String** | Version of the development SDK | +**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_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_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_event_stream** | **bool** | Toggles if Analytics should be disabled (this sreportedly not used in the Client) | [default to false] +**disable_email** | **bool** | Unknown | [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_hello** | Option<**bool**> | Unknown | [optional][default to false] -**disable_registration** | **bool** | Toggles if new user account registration should be disabled | [default to false] +**disable_frontend_builds** | **bool** | Unknown, probably toggles compilation of frontend web builds? So internal flag? | [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_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_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_urls** | [**crate::models::ConfigDownloadUrls**](Config_downloadUrls.md) | | -**dynamic_world_rows** | [**Vec**](Config_dynamicWorldRows.md) | Array of DynamicWorldRow objects, used by the game to display the list of world rows | [readonly] -**events** | [**crate::models::ConfigEvents**](Config_events.md) | | -**gear_demo_room_id** | **String** | Unknown | [readonly] -**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] +**download_link_windows** | **String** | Download link for game on the Oculus Rift website. | +**download_urls** | [**crate::models::DownloadUrlList**](DownloadURLList.md) | | +**dynamic_world_rows** | [**Vec**](DynamicWorldRow.md) | Array of DynamicWorldRow objects, used by the game to display the list of world rows | +**events** | [**crate::models::ApiEventConfig**](APIEventConfig.md) | | +**gear_demo_room_id** | **String** | Unknown | **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** | | -**jobs_email** | **String** | VRChat's job application email | [readonly] -**message_of_the_day** | **String** | MOTD | [readonly] -**moderation_email** | **String** | VRChat's moderation related email | [readonly] -**moderation_query_period** | **f32** | 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] -**plugin** | **String** | Extra [plugin](https://doc.photonengine.com/en-us/server/current/plugins/manual) to run in each instance | [readonly] -**release_app_version_standalone** | **String** | Version number for game release build | [readonly] -**release_sdk_url** | **String** | Link to download the release SDK | [readonly] -**release_sdk_version** | **String** | Version of the release SDK | [readonly] -**release_server_version_standalone** | **String** | Version number for server release build | [readonly] -**sdk_developer_faq_url** | **String** | Link to the developer FAQ | [readonly] -**sdk_discord_url** | **String** | Link to the official VRChat Discord | [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 | [readonly] -**sdk_unity_version** | **String** | Unity version supported by the SDK | [readonly] -**server_name** | **String** | Server name of the API server currently responding | [readonly] -**support_email** | **String** | VRChat's support email | [readonly] +**jobs_email** | **String** | VRChat's job application email | +**message_of_the_day** | **String** | MOTD | +**moderation_email** | **String** | VRChat's moderation related email | +**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 | +**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 | +**release_sdk_url** | **String** | Link to download the release SDK | +**release_sdk_version** | **String** | Version of the release SDK | +**release_server_version_standalone** | **String** | Version number for server release build | +**sdk_developer_faq_url** | **String** | Link to the developer FAQ | +**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 | +**sdk_unity_version** | **String** | Unity version supported by the SDK | +**server_name** | **String** | Server name of the API server currently responding | +**support_email** | **String** | VRChat's support email | **time_out_world_id** | **String** | | **tutorial_world_id** | **String** | | -**update_rate_ms_maximum** | **f32** | Unknown | [readonly] -**update_rate_ms_minimum** | **f32** | Unknown | [readonly] -**update_rate_ms_normal** | **f32** | Unknown | [readonly] -**update_rate_ms_udon_manual** | **f32** | Unknown | [readonly] -**upload_analysis_percent** | **f32** | Unknown | [readonly] -**url_list** | **Vec** | List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game | [readonly] +**update_rate_ms_maximum** | **i32** | Unknown | +**update_rate_ms_minimum** | **i32** | Unknown | +**update_rate_ms_normal** | **i32** | Unknown | +**update_rate_ms_udon_manual** | **i32** | Unknown | +**upload_analysis_percent** | **i32** | Unknown | +**url_list** | **Vec** | List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game | **use_reliable_udp_for_voice** | **bool** | Unknown | [default to false] -**user_update_period** | **f32** | Unknown | [readonly] -**user_verification_delay** | **f32** | Unknown | [readonly] -**user_verification_retry** | **f32** | Unknown | [readonly] -**user_verification_timeout** | **f32** | Unknown | [readonly] -**vive_windows_url** | **String** | Download link for game on the Steam website. | [readonly] -**white_listed_asset_urls** | **Vec** | List of allowed URLs that are allowed to host avatar assets | [readonly] -**world_update_period** | **f32** | Unknown | [readonly] -**youtubedl_hash** | **String** | Currently used youtube-dl.exe hash in SHA-256-delimited format | [readonly] -**youtubedl_version** | **String** | Currently used youtube-dl.exe version | [readonly] +**user_update_period** | **i32** | Unknown | +**user_verification_delay** | **i32** | Unknown | +**user_verification_retry** | **i32** | Unknown | +**user_verification_timeout** | **i32** | Unknown | +**vive_windows_url** | **String** | Download link for game on the Steam website. | +**white_listed_asset_urls** | **Vec** | List of allowed URLs that are allowed to host avatar assets | +**world_update_period** | **i32** | Unknown | +**youtubedl_hash** | **String** | Currently used youtube-dl.exe hash in SHA-256-delimited format | +**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) diff --git a/docs/ApiEventConfig.md b/docs/ApiEventConfig.md new file mode 100644 index 0000000..60fc2c1 --- /dev/null +++ b/docs/ApiEventConfig.md @@ -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) + + diff --git a/docs/AuthenticationApi.md b/docs/AuthenticationApi.md index bba0dff..bcd6071 100644 --- a/docs/AuthenticationApi.md +++ b/docs/AuthenticationApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1* 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 [**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 @@ -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 > crate::models::CurrentUser delete_user(user_id) @@ -48,7 +82,7 @@ Name | Type | Description | Required | Notes > crate::models::CurrentUser get_current_user() 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 diff --git a/docs/Avatar.md b/docs/Avatar.md index 4b94a05..e42e1e8 100644 --- a/docs/Avatar.md +++ b/docs/Avatar.md @@ -17,11 +17,11 @@ Name | Type | Description | Notes **release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | | **tags** | **Vec** | | **thumbnail_image_url** | **String** | | -**unity_packages** | [**Vec**](UnityPackage.md) | | **unity_package_url** | **String** | | **unity_package_url_object** | [**crate::models::AvatarUnityPackageUrlObject**](Avatar_unityPackageUrlObject.md) | | +**unity_packages** | [**Vec**](UnityPackage.md) | | **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) diff --git a/docs/AvatarsApi.md b/docs/AvatarsApi.md index 07c66f3..f6050a3 100644 --- a/docs/AvatarsApi.md +++ b/docs/AvatarsApi.md @@ -124,7 +124,7 @@ Name | Type | Description | Required | Notes **search** | Option<**String**> | Filters by world name. | | **tag** | Option<**String**> | Tags to include (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. | | **min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | | **platform** | Option<**String**> | The platform the asset supports. | | @@ -161,13 +161,13 @@ Name | Type | Description | Required | Notes **featured** | Option<**String**> | Filters on featured results. | | **sort** | Option<**String**> | | |[default to popularity] **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] **order** | Option<**String**> | | |[default to descending] **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). | | **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. | | **min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | | **platform** | Option<**String**> | The platform the asset supports. | | diff --git a/docs/ConfigEvents.md b/docs/ConfigEvents.md deleted file mode 100644 index 4c72bea..0000000 --- a/docs/ConfigEvents.md +++ /dev/null @@ -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) - - diff --git a/docs/CurrentUser.md b/docs/CurrentUser.md index fa99ea1..88e5c6c 100644 --- a/docs/CurrentUser.md +++ b/docs/CurrentUser.md @@ -4,52 +4,52 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | -**username** | **String** | | -**display_name** | **String** | | -**user_icon** | **String** | | +**accepted_tos_version** | **i32** | | +**account_deletion_date** | Option<[**String**](string.md)> | | [optional] +**active_friends** | Option<**Vec**> | | [optional] +**allow_avatar_copying** | **bool** | | **bio** | **String** | | **bio_links** | **Vec** | | -**profile_pic_override** | **String** | | -**status_description** | **String** | | -**past_display_names** | [**Vec**](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** | | -**status_first_time** | **bool** | | -**friends** | **Vec** | | -**friend_group_names** | **Vec** | Always empty array. | -**current_avatar_image_url** | **String** | | -**current_avatar_thumbnail_image_url** | **String** | | -**fallback_avatar** | **String** | | **current_avatar** | **String** | | **current_avatar_asset_url** | **String** | | -**account_deletion_date** | Option<[**String**](string.md)> | | [optional] -**accepted_tos_version** | **f32** | | -**steam_id** | **String** | | -**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** | | +**current_avatar_image_url** | **String** | | +**current_avatar_thumbnail_image_url** | **String** | | +**date_joined** | [**String**](string.md) | | **developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | | +**display_name** | **String** | | +**email_verified** | **bool** | | +**fallback_avatar** | Option<**String**> | | [optional] +**friend_group_names** | **Vec** | Always empty array. | +**friend_key** | **String** | | +**friends** | **Vec** | | +**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_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** | | -**status** | [**crate::models::UserStatus**](UserStatus.md) | | -**date_joined** | [**String**](string.md) | | [readonly] -**is_friend** | **bool** | | [default to false] -**friend_key** | **String** | | -**online_friends** | Option<**Vec**> | | [optional] -**active_friends** | Option<**Vec**> | | [optional] +**obfuscated_email** | **String** | | +**obfuscated_pending_email** | **String** | | +**oculus_id** | **String** | | **offline_friends** | Option<**Vec**> | | [optional] +**online_friends** | Option<**Vec**> | | [optional] +**past_display_names** | [**Vec**](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** | | +**steam_details** | [**serde_json::Value**](.md) | | +**steam_id** | **String** | | +**tags** | **Vec** | | +**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) diff --git a/docs/ConfigDownloadUrls.md b/docs/DownloadUrlList.md similarity index 77% rename from docs/ConfigDownloadUrls.md rename to docs/DownloadUrlList.md index bd8f984..d3c1e78 100644 --- a/docs/ConfigDownloadUrls.md +++ b/docs/DownloadUrlList.md @@ -1,12 +1,12 @@ -# ConfigDownloadUrls +# DownloadUrlList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sdk2** | **String** | Download link for legacy SDK2 | [readonly] -**sdk3_avatars** | **String** | Download link for SDK3 for Avatars | [readonly] -**sdk3_worlds** | **String** | Download link for SDK3 for Worlds | [readonly] +**sdk2** | **String** | Download link for legacy SDK2 | +**sdk3_avatars** | **String** | Download link for SDK3 for Avatars | +**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) diff --git a/docs/ConfigDynamicWorldRows.md b/docs/DynamicWorldRow.md similarity index 52% rename from docs/ConfigDynamicWorldRows.md rename to docs/DynamicWorldRow.md index 11a24f9..1414b2b 100644 --- a/docs/ConfigDynamicWorldRows.md +++ b/docs/DynamicWorldRow.md @@ -1,16 +1,16 @@ -# ConfigDynamicWorldRows +# DynamicWorldRow ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**index** | **f32** | | [readonly] -**name** | **String** | | [readonly] -**platform** | **String** | | [readonly] -**sort_heading** | **String** | | [readonly] -**sort_order** | **String** | | [readonly] -**sort_ownership** | **String** | | [readonly] -**tag** | Option<**String**> | Tag to filter worlds for this row | [optional][readonly] +**index** | **i32** | | +**name** | **String** | | +**platform** | **String** | | +**sort_heading** | **String** | | +**sort_order** | **String** | | +**sort_ownership** | **String** | | +**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) diff --git a/docs/Favorite.md b/docs/Favorite.md index 8fcef8b..8518c84 100644 --- a/docs/Favorite.md +++ b/docs/Favorite.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | -**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | | **favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. | +**id** | **String** | | **tags** | **Vec** | | +**_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) diff --git a/docs/FavoriteGroup.md b/docs/FavoriteGroup.md index e5dd29d..743e1d6 100644 --- a/docs/FavoriteGroup.md +++ b/docs/FavoriteGroup.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | -**owner_id** | **String** | | -**owner_display_name** | **String** | | -**name** | **String** | | **display_name** | **String** | | +**id** | **String** | | +**name** | **String** | | +**owner_display_name** | **String** | | +**owner_id** | **String** | | +**tags** | **Vec** | | **_type** | [**crate::models::FavoriteType**](FavoriteType.md) | | **visibility** | [**crate::models::FavoriteGroupVisibility**](FavoriteGroupVisibility.md) | | -**tags** | **Vec** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/File.md b/docs/File.md index 2e19084..ee0cb6a 100644 --- a/docs/File.md +++ b/docs/File.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**extension** | **String** | | **id** | **String** | | +**mime_type** | [**crate::models::MimeType**](MIMEType.md) | | **name** | **String** | | **owner_id** | **String** | | -**mime_type** | [**crate::models::MimeType**](MIMEType.md) | | -**extension** | **String** | | **tags** | **Vec** | | **versions** | [**Vec**](FileVersion.md) | | diff --git a/docs/FileData.md b/docs/FileData.md index 96beb13..c0ebfa6 100644 --- a/docs/FileData.md +++ b/docs/FileData.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**file_name** | **String** | | -**url** | **String** | | -**md5** | **String** | | -**size_in_bytes** | **f32** | | -**status** | [**crate::models::FileStatus**](FileStatus.md) | | **category** | **String** | | [readonly] +**file_name** | **String** | | +**md5** | **String** | | +**size_in_bytes** | **i32** | | +**status** | [**crate::models::FileStatus**](FileStatus.md) | | **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) diff --git a/docs/FileVersion.md b/docs/FileVersion.md index d4ca6c2..8c024d8 100644 --- a/docs/FileVersion.md +++ b/docs/FileVersion.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version** | **f32** | Incremental version counter, can only be increased. | [default to 0] -**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] +**created_at** | **String** | | **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) diff --git a/docs/FriendStatus.md b/docs/FriendStatus.md index 4b1aaea..1e63535 100644 --- a/docs/FriendStatus.md +++ b/docs/FriendStatus.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**incoming_request** | **bool** | | [default to false] **is_friend** | **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) diff --git a/docs/Instance.md b/docs/Instance.md index 9f215e7..79fd589 100644 --- a/docs/Instance.md +++ b/docs/Instance.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | | [default to true] **can_request_invite** | **bool** | | [default to true] -**capacity** | **f32** | | -**client_number** | **String** | | +**capacity** | **i32** | | +**client_number** | **i32** | | **full** | **bool** | | [default to false] **id** | **String** | | **instance_id** | **String** | | **location** | **String** | | -**n_users** | **f32** | | +**n_users** | **i32** | | **name** | **String** | | **nonce** | Option<**String**> | | [optional] **owner_id** | **String** | | diff --git a/docs/InstancePlatforms.md b/docs/InstancePlatforms.md index a73ce42..160ab8b 100644 --- a/docs/InstancePlatforms.md +++ b/docs/InstancePlatforms.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**android** | **f32** | | -**standalonewindows** | **f32** | | +**android** | **i32** | | +**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) diff --git a/docs/InviteApi.md b/docs/InviteApi.md index 18e4158..aed857a 100644 --- a/docs/InviteApi.md +++ b/docs/InviteApi.md @@ -4,22 +4,22 @@ All URIs are relative to *https://api.vrchat.cloud/api/1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_invite_message**](InviteApi.md#get_invite_message) | **GET** /message/{userId}/message/{messageId} | Get Invite Messages -[**get_invite_messages**](InviteApi.md#get_invite_messages) | **GET** /message/{userId}/message | List 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}/{messageType} | List Invite Messages [**invite_user**](InviteApi.md#invite_user) | **POST** /invite/{userId} | Invite User [**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 -[**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 -> 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 -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 @@ -27,6 +27,7 @@ Returns a single Invite Message. This returns the exact same information but les Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **user_id** | **String** | | [required] | +**message_type** | **String** | | [required] | **message_id** | **i32** | | [required] | ### Return type @@ -47,10 +48,10 @@ Name | Type | Description | Required | Notes ## get_invite_messages -> Vec get_invite_messages(user_id) +> Vec get_invite_messages(user_id, message_type) 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 @@ -58,6 +59,7 @@ Returns a list of all that users Invite Messages. Admin Credentials are required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **user_id** | **String** | | [required] | +**message_type** | **String** | | [required] | ### Return type @@ -77,7 +79,7 @@ Name | Type | Description | Required | Notes ## invite_user -> crate::models::Notification invite_user(user_id) +> crate::models::Notification invite_user(user_id, invite_request) Invite User 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 ------------- | ------------- | ------------- | ------------- | ------------- **user_id** | **String** | | [required] | +**invite_request** | Option<[**InviteRequest**](InviteRequest.md)> | Instance ID when inviting a user. | | ### Return type @@ -99,7 +102,7 @@ Name | Type | Description | Required | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: 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) @@ -137,10 +140,10 @@ Name | Type | Description | Required | Notes ## reset_invite_message -> Vec reset_invite_message(user_id, message_id) +> Vec reset_invite_message(user_id, message_type, message_id) 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 @@ -148,6 +151,7 @@ Resets a single Invite Message back to it's original message, and then returns a Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **user_id** | **String** | | [required] | +**message_type** | **String** | | [required] | **message_id** | **i32** | | [required] | ### Return type @@ -168,7 +172,7 @@ Name | Type | Description | Required | Notes ## respond_invite -> crate::models::Notification respond_invite(notification_id) +> crate::models::Notification respond_invite(notification_id, invite_response) Respond Invite Sends a world invite to a user. @@ -179,6 +183,7 @@ Sends a world invite to a user. Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **notification_id** | **String** | | [required] | +**invite_response** | Option<[**InviteResponse**](InviteResponse.md)> | Instance ID when inviting a user. | | ### Return type @@ -190,7 +195,7 @@ Name | Type | Description | Required | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: 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) @@ -198,10 +203,10 @@ Name | Type | Description | Required | Notes ## update_invite_message -> Vec update_invite_message(user_id, message_id) +> Vec update_invite_message(user_id, message_type, message_id) 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 @@ -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 ------------- | ------------- | ------------- | ------------- | ------------- **user_id** | **String** | | [required] | +**message_type** | **String** | | [required] | **message_id** | **i32** | | [required] | ### Return type diff --git a/docs/InviteMessage.md b/docs/InviteMessage.md index 8ed2525..e18b2f4 100644 --- a/docs/InviteMessage.md +++ b/docs/InviteMessage.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**can_be_updated** | **bool** | | [default to true] **id** | **String** | | -**slot** | **i32** | | **message** | **String** | | **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] -**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) diff --git a/docs/ConfigAnnouncements.md b/docs/InviteRequest.md similarity index 67% rename from docs/ConfigAnnouncements.md rename to docs/InviteRequest.md index 449183b..a22e2ca 100644 --- a/docs/ConfigAnnouncements.md +++ b/docs/InviteRequest.md @@ -1,11 +1,10 @@ -# ConfigAnnouncements +# InviteRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Announcement name | [readonly] -**text** | **String** | Announcement text | [readonly] +**instance_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) diff --git a/docs/InviteResponse.md b/docs/InviteResponse.md new file mode 100644 index 0000000..239f9e9 --- /dev/null +++ b/docs/InviteResponse.md @@ -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) + + diff --git a/docs/LimitedUser.md b/docs/LimitedUser.md index da10401..637261c 100644 --- a/docs/LimitedUser.md +++ b/docs/LimitedUser.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | -**username** | **String** | | -**display_name** | **String** | | **bio** | Option<**String**> | | [optional] -**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**](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`. | -**status** | [**crate::models::UserStatus**](UserStatus.md) | | +**display_name** | **String** | | +**fallback_avatar** | **String** | | +**id** | **String** | | **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** | <- 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) diff --git a/docs/LimitedWorld.md b/docs/LimitedWorld.md index 9d3e952..198b493 100644 --- a/docs/LimitedWorld.md +++ b/docs/LimitedWorld.md @@ -4,25 +4,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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** | | -**favorites** | **f32** | | +**capacity** | **i32** | | **created_at** | **String** | | -**updated_at** | **String** | | -**publication_date** | **String** | | [readonly] +**favorites** | **i32** | | [default to 0] +**heat** | **i32** | | [default to 0] +**id** | **String** | | +**image_url** | **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** | | +**thumbnail_image_url** | **String** | | **unity_packages** | [**Vec**](LimitedUnityPackage.md) | | -**popularity** | **f32** | | -**heat** | **f32** | | -**occupants** | **f32** | | +**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) diff --git a/docs/Notification.md b/docs/Notification.md index a5ed04b..2762ec4 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -4,14 +4,14 @@ 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** | | +**message** | **String** | | +**seen** | **bool** | | [default to false] **sender_user_id** | **String** | | **sender_username** | **String** | | **_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) diff --git a/docs/Permission.md b/docs/Permission.md index ead8c4f..4a0c2ac 100644 --- a/docs/Permission.md +++ b/docs/Permission.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | -**owner_id** | **String** | | -**name** | **String** | | **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) diff --git a/docs/PlayerModeration.md b/docs/PlayerModeration.md index dde1e5c..997da86 100644 --- a/docs/PlayerModeration.md +++ b/docs/PlayerModeration.md @@ -4,13 +4,13 @@ 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** | | +**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) diff --git a/docs/PublicAnnouncement.md b/docs/PublicAnnouncement.md new file mode 100644 index 0000000..cc6590b --- /dev/null +++ b/docs/PublicAnnouncement.md @@ -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) + + diff --git a/docs/Response.md b/docs/Response.md index df454be..f92562b 100644 --- a/docs/Response.md +++ b/docs/Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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) diff --git a/docs/SystemApi.md b/docs/SystemApi.md index 216f3e7..9dbfd32 100644 --- a/docs/SystemApi.md +++ b/docs/SystemApi.md @@ -5,15 +5,17 @@ All URIs are relative to *https://api.vrchat.cloud/api/1* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_config**](SystemApi.md#get_config) | **GET** /config | Fetch API Config +[**get_css**](SystemApi.md#get_css) | **GET** /css/app.js | Download Frontend CSS [**get_current_online_users**](SystemApi.md#get_current_online_users) | **GET** /visits | Current Online Users [**get_health**](SystemApi.md#get_health) | **GET** /health | Check API Health +[**get_java_script**](SystemApi.md#get_java_script) | **GET** /js/app.js | Download Frontend JavaScript [**get_system_time**](SystemApi.md#get_system_time) | **GET** /time | Current System Time ## get_config -> crate::models::Config get_config() +> crate::models::ApiConfig get_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. @@ -24,7 +26,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::Config**](Config.md) +[**crate::models::ApiConfig**](APIConfig.md) ### 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) +## 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 > i32 get_current_online_users() @@ -70,7 +103,7 @@ No authorization required > crate::models::InlineResponse2002 get_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 @@ -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) +## 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 > String get_system_time() diff --git a/docs/UnityPackage.md b/docs/UnityPackage.md index 7a83776..0639cae 100644 --- a/docs/UnityPackage.md +++ b/docs/UnityPackage.md @@ -4,16 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | **asset_url** | Option<**String**> | | [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_object** | Option<[**serde_json::Value**](.md)> | | [optional] +**unity_sort_number** | Option<**i32**> | | [optional] **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) diff --git a/docs/User.md b/docs/User.md index 9d7bf53..c488416 100644 --- a/docs/User.md +++ b/docs/User.md @@ -4,30 +4,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | -**username** | **String** | | -**display_name** | **String** | | -**user_icon** | **String** | | +**allow_avatar_copying** | **bool** | | **bio** | **String** | | **bio_links** | **Vec** | | -**profile_pic_override** | **String** | | -**status_description** | **String** | | **current_avatar_image_url** | **String** | | **current_avatar_thumbnail_image_url** | **String** | | -**fallback_avatar** | **String** | | -**state** | [**crate::models::UserState**](UserState.md) | | -**tags** | **Vec** | | +**date_joined** | [**String**](string.md) | | [readonly] **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_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) | | -**date_joined** | [**String**](string.md) | | [readonly] -**is_friend** | **bool** | | -**friend_key** | **String** | | -**world_id** | **String** | | -**instance_id** | **String** | | -**location** | **String** | | +**status_description** | **String** | | +**tags** | **Vec** | | +**user_icon** | **String** | | +**username** | **String** | | +**world_id** | 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) diff --git a/docs/UserExists.md b/docs/UserExists.md new file mode 100644 index 0000000..17b947c --- /dev/null +++ b/docs/UserExists.md @@ -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) + + diff --git a/docs/World.md b/docs/World.md index 13b1a33..5c4e58c 100644 --- a/docs/World.md +++ b/docs/World.md @@ -7,26 +7,26 @@ Name | Type | Description | Notes **asset_url** | **String** | | **asset_url_object** | [**serde_json::Value**](.md) | | **author_id** | **String** | | -**author_name** | **String** | | [readonly] -**capacity** | **f32** | | [readonly] -**created_at** | **String** | | [readonly] +**author_name** | **String** | | +**capacity** | **i32** | | +**created_at** | **String** | | **description** | **String** | | -**favorites** | Option<**f32**> | | [optional][readonly][default to 0] +**favorites** | Option<**i32**> | | [optional][default to 0] **featured** | **bool** | | [default to false] -**heat** | **f32** | | [readonly][default to 0] +**heat** | **i32** | | [default to 0] **id** | **String** | | **image_url** | **String** | | **instances** | Option<[**Vec>**](array.md)> | | [optional] **labs_publication_date** | **String** | | **name** | **String** | | **namespace** | **String** | | -**occupants** | Option<**f32**> | | [optional][readonly][default to 0] +**occupants** | Option<**i32**> | | [optional][default to 0] **organization** | **String** | | [default to vrchat] **plugin_url_object** | [**serde_json::Value**](.md) | | -**popularity** | **f32** | | [readonly][default to 0] +**popularity** | **i32** | | [default to 0] **preview_youtube_id** | Option<**String**> | | [optional] -**private_occupants** | Option<**f32**> | | [optional][readonly][default to 0] -**public_occupants** | Option<**f32**> | | [optional][readonly][default to 0] +**private_occupants** | Option<**i32**> | | [optional][default to 0] +**public_occupants** | Option<**i32**> | | [optional][default to 0] **publication_date** | **String** | | **release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | | **tags** | **Vec** | | @@ -34,8 +34,8 @@ Name | Type | Description | Notes **unity_package_url_object** | [**serde_json::Value**](.md) | | **unity_packages** | [**Vec**](UnityPackage.md) | | **updated_at** | **String** | | -**version** | **f32** | | [default to 0] -**visits** | **f32** | | [readonly][default to 0] +**version** | **i32** | | [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) diff --git a/docs/WorldsApi.md b/docs/WorldsApi.md index 408ac85..b8c9fed 100644 --- a/docs/WorldsApi.md +++ b/docs/WorldsApi.md @@ -100,7 +100,7 @@ Name | Type | Description | Required | Notes **search** | Option<**String**> | Filters by world name. | | **tag** | Option<**String**> | Tags to include (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. | | **min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | | **platform** | Option<**String**> | The platform the asset supports. | | @@ -141,7 +141,7 @@ Name | Type | Description | Required | Notes **search** | Option<**String**> | Filters by world name. | | **tag** | Option<**String**> | Tags to include (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. | | **min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | | **platform** | Option<**String**> | The platform the asset supports. | | @@ -183,7 +183,7 @@ Name | Type | Description | Required | Notes **search** | Option<**String**> | Filters by world name. | | **tag** | Option<**String**> | Tags to include (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. | | **min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | | **platform** | Option<**String**> | The platform the asset supports. | | @@ -225,7 +225,7 @@ Name | Type | Description | Required | Notes ### Authorization -No authorization required +[apiKeyCookie](../README.md#apiKeyCookie) ### HTTP request headers @@ -371,14 +371,14 @@ Name | Type | Description | Required | Notes **featured** | Option<**String**> | Filters on featured results. | | **sort** | Option<**String**> | | |[default to popularity] **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] **order** | Option<**String**> | | |[default to descending] **offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | | **search** | Option<**String**> | Filters by world name. | | **tag** | Option<**String**> | Tags to include (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. | | **min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | | **platform** | Option<**String**> | The platform the asset supports. | | diff --git a/src/apis/authentication_api.rs b/src/apis/authentication_api.rs index 6c93deb..217eced 100644 --- a/src/apis/authentication_api.rs +++ b/src/apis/authentication_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -14,6 +14,14 @@ use crate::apis::ResponseContent; 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` #[derive(Debug, Clone, Serialize, Deserialize)] #[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> { + + 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 = 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. pub fn delete_user(configuration: &configuration::Configuration, user_id: &str) -> Result> { @@ -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> { let local_var_client = &configuration.client; diff --git a/src/apis/avatars_api.rs b/src/apis/avatars_api.rs index 3446df5..8c68d01 100644 --- a/src/apis/avatars_api.rs +++ b/src/apis/avatars_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/configuration.rs b/src/apis/configuration.rs index 0c2fb99..92cd94b 100644 --- a/src/apis/configuration.rs +++ b/src/apis/configuration.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/favorites_api.rs b/src/apis/favorites_api.rs index c48a982..a1928fb 100644 --- a/src/apis/favorites_api.rs +++ b/src/apis/favorites_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/files_api.rs b/src/apis/files_api.rs index 47f51f7..b983a23 100644 --- a/src/apis/files_api.rs +++ b/src/apis/files_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/friends_api.rs b/src/apis/friends_api.rs index e884110..fdd9d91 100644 --- a/src/apis/friends_api.rs +++ b/src/apis/friends_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/invite_api.rs b/src/apis/invite_api.rs index dc0726b..2df1184 100644 --- a/src/apis/invite_api.rs +++ b/src/apis/invite_api.rs @@ -2,7 +2,7 @@ * 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 * 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! -pub fn get_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result> { +/// 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_type: &str, message_id: i32) -> Result> { 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()); 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! -pub fn get_invite_messages(configuration: &configuration::Configuration, user_id: &str) -> Result, Error> { +/// 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, message_type: &str) -> Result, Error> { 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()); 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. -pub fn invite_user(configuration: &configuration::Configuration, user_id: &str) -> Result> { +pub fn invite_user(configuration: &configuration::Configuration, user_id: &str, invite_request: Option) -> Result> { 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 { 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 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. -pub fn reset_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result, 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_type: &str, message_id: i32) -> Result, Error> { 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()); 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. -pub fn respond_invite(configuration: &configuration::Configuration, notification_id: &str) -> Result> { +pub fn respond_invite(configuration: &configuration::Configuration, notification_id: &str, invite_response: Option) -> Result> { 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 { 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 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. -pub fn update_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result, 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_type: &str, message_id: i32) -> Result, Error> { 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()); if let Some(ref local_var_user_agent) = configuration.user_agent { diff --git a/src/apis/notifications_api.rs b/src/apis/notifications_api.rs index 635d906..d7d5a2e 100644 --- a/src/apis/notifications_api.rs +++ b/src/apis/notifications_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/permissions_api.rs b/src/apis/permissions_api.rs index ea10b05..5400b89 100644 --- a/src/apis/permissions_api.rs +++ b/src/apis/permissions_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/playermoderation_api.rs b/src/apis/playermoderation_api.rs index 18d46b8..84c5e82 100644 --- a/src/apis/playermoderation_api.rs +++ b/src/apis/playermoderation_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/system_api.rs b/src/apis/system_api.rs index 8c6be23..5e65004 100644 --- a/src/apis/system_api.rs +++ b/src/apis/system_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -21,6 +21,14 @@ pub enum GetConfigError { 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` #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -35,6 +43,14 @@ pub enum GetHealthError { 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` #[derive(Debug, Clone, Serialize, Deserialize)] #[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. -pub fn get_config(configuration: &configuration::Configuration, ) -> Result> { +pub fn get_config(configuration: &configuration::Configuration, ) -> Result> { let local_var_client = &configuration.client; @@ -70,6 +86,39 @@ pub fn get_config(configuration: &configuration::Configuration, ) -> Result, branch: Option<&str>) -> Result> { + + 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 = 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. pub fn get_current_online_users(configuration: &configuration::Configuration, ) -> Result> { @@ -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> { let local_var_client = &configuration.client; @@ -124,6 +173,39 @@ pub fn get_health(configuration: &configuration::Configuration, ) -> Result, branch: Option<&str>) -> Result> { + + 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 = 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. pub fn get_system_time(configuration: &configuration::Configuration, ) -> Result> { diff --git a/src/apis/users_api.rs b/src/apis/users_api.rs index 23a0b5b..1667908 100644 --- a/src/apis/users_api.rs +++ b/src/apis/users_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/apis/worlds_api.rs b/src/apis/worlds_api.rs index d12a6b8..02e252e 100644 --- a/src/apis/worlds_api.rs +++ b/src/apis/worlds_api.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/config.rs b/src/models/api_config.rs similarity index 68% rename from src/models/config.rs rename to src/models/api_config.rs index f5fc081..257c652 100644 --- a/src/models/config.rs +++ b/src/models/api_config.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -11,13 +11,19 @@ #[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 #[serde(rename = "address")] pub address: String, /// Public Announcements #[serde(rename = "announcements")] - pub announcements: Vec, + pub announcements: Vec, /// apiKey to be used for all other requests #[serde(rename = "apiKey")] pub api_key: String, @@ -31,17 +37,17 @@ pub struct Config { #[serde(rename = "clientApiKey")] pub client_api_key: String, /// Unknown - #[serde(rename = "clientBPSCeiling", skip_serializing_if = "Option::is_none")] - pub client_bps_ceiling: Option, + #[serde(rename = "clientBPSCeiling")] + pub client_bps_ceiling: i32, /// Unknown - #[serde(rename = "clientDisconnectTimeout", skip_serializing_if = "Option::is_none")] - pub client_disconnect_timeout: Option, + #[serde(rename = "clientDisconnectTimeout")] + pub client_disconnect_timeout: i32, /// Unknown - #[serde(rename = "clientReservedPlayerBPS", skip_serializing_if = "Option::is_none")] - pub client_reserved_player_bps: Option, + #[serde(rename = "clientReservedPlayerBPS")] + pub client_reserved_player_bps: i32, /// Unknown - #[serde(rename = "clientSentCountAllowance", skip_serializing_if = "Option::is_none")] - pub client_sent_count_allowance: Option, + #[serde(rename = "clientSentCountAllowance")] + pub client_sent_count_allowance: i32, /// VRChat's contact email #[serde(rename = "contactEmail")] pub contact_email: String, @@ -50,7 +56,7 @@ pub struct Config { pub copyright_email: String, /// Current version number of the Terms of Service #[serde(rename = "currentTOSVersion")] - pub current_tos_version: f32, + pub current_tos_version: i32, #[serde(rename = "defaultAvatar")] pub default_avatar: String, #[serde(rename = "deploymentGroup")] @@ -70,6 +76,9 @@ pub struct Config { /// Version number for server development build #[serde(rename = "devServerVersionStandalone")] 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 #[serde(rename = "disableAvatarCopying")] pub disable_avatar_copying: bool, @@ -83,18 +92,24 @@ pub struct Config { #[serde(rename = "disableCommunityLabsPromotion")] pub disable_community_labs_promotion: bool, /// Unknown - #[serde(rename = "disableEmail", skip_serializing_if = "Option::is_none")] - pub disable_email: Option, - /// Toggles if Analytics should be disabled (this sreportedly not used in the Client) + #[serde(rename = "disableEmail")] + pub disable_email: bool, + /// Toggles if Analytics should be disabled. #[serde(rename = "disableEventStream")] 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. #[serde(rename = "disableFeedbackGating")] 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 - #[serde(rename = "disableHello", skip_serializing_if = "Option::is_none")] - pub disable_hello: Option, - /// Toggles if new user account registration should be disabled + #[serde(rename = "disableHello")] + pub disable_hello: bool, + /// 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")] pub disable_registration: bool, /// 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")] pub download_link_windows: String, #[serde(rename = "downloadUrls")] - pub download_urls: Box, + pub download_urls: Box, /// Array of DynamicWorldRow objects, used by the game to display the list of world rows #[serde(rename = "dynamicWorldRows")] - pub dynamic_world_rows: Vec, + pub dynamic_world_rows: Vec, #[serde(rename = "events")] - pub events: Box, + pub events: Box, /// Unknown #[serde(rename = "gearDemoRoomId")] 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 #[serde(rename = "homepageRedirectTarget")] pub homepage_redirect_target: String, - #[serde(rename = "homeWorldId")] - pub home_world_id: String, #[serde(rename = "hubWorldId")] pub hub_world_id: String, /// VRChat's job application email @@ -140,7 +155,7 @@ pub struct Config { pub moderation_email: String, /// Unknown #[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 #[serde(rename = "notAllowedToSelectAvatarInPrivateWorldMessage")] pub not_allowed_to_select_avatar_in_private_world_message: String, @@ -183,19 +198,19 @@ pub struct Config { pub tutorial_world_id: String, /// Unknown #[serde(rename = "updateRateMsMaximum")] - pub update_rate_ms_maximum: f32, + pub update_rate_ms_maximum: i32, /// Unknown #[serde(rename = "updateRateMsMinimum")] - pub update_rate_ms_minimum: f32, + pub update_rate_ms_minimum: i32, /// Unknown #[serde(rename = "updateRateMsNormal")] - pub update_rate_ms_normal: f32, + pub update_rate_ms_normal: i32, /// Unknown #[serde(rename = "updateRateMsUdonManual")] - pub update_rate_ms_udon_manual: f32, + pub update_rate_ms_udon_manual: i32, /// Unknown #[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 #[serde(rename = "urlList")] pub url_list: Vec, @@ -204,16 +219,16 @@ pub struct Config { pub use_reliable_udp_for_voice: bool, /// Unknown #[serde(rename = "userUpdatePeriod")] - pub user_update_period: f32, + pub user_update_period: i32, /// Unknown #[serde(rename = "userVerificationDelay")] - pub user_verification_delay: f32, + pub user_verification_delay: i32, /// Unknown #[serde(rename = "userVerificationRetry")] - pub user_verification_retry: f32, + pub user_verification_retry: i32, /// Unknown #[serde(rename = "userVerificationTimeout")] - pub user_verification_timeout: f32, + pub user_verification_timeout: i32, /// Download link for game on the Steam website. #[serde(rename = "viveWindowsUrl")] pub vive_windows_url: String, @@ -222,7 +237,7 @@ pub struct Config { pub white_listed_asset_urls: Vec, /// Unknown #[serde(rename = "worldUpdatePeriod")] - pub world_update_period: f32, + pub world_update_period: i32, /// Currently used youtube-dl.exe hash in SHA-256-delimited format #[serde(rename = "youtubedl-hash")] pub youtubedl_hash: String, @@ -231,19 +246,21 @@ pub struct Config { pub youtubedl_version: String, } -impl Config { - pub fn new(address: String, announcements: Vec, 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, 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, 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, world_update_period: f32, youtubedl_hash: String, youtubedl_version: String) -> Config { - Config { +impl ApiConfig { + pub fn new(voice_enable_degradation: bool, voice_enable_receiver_limiting: bool, address: String, announcements: Vec, 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, 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, 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, world_update_period: i32, youtubedl_hash: String, youtubedl_version: String) -> ApiConfig { + ApiConfig { + voice_enable_degradation, + voice_enable_receiver_limiting, address, announcements, api_key, app_name, build_version_tag, client_api_key, - client_bps_ceiling: None, - client_disconnect_timeout: None, - client_reserved_player_bps: None, - client_sent_count_allowance: None, + client_bps_ceiling, + client_disconnect_timeout, + client_reserved_player_bps, + client_sent_count_allowance, contact_email, copyright_email, current_tos_version, @@ -254,14 +271,17 @@ impl Config { dev_sdk_url, dev_sdk_version, dev_server_version_standalone, + dis_countdown, disable_avatar_copying, disable_avatar_gating, disable_community_labs, disable_community_labs_promotion, - disable_email: None, + disable_email, disable_event_stream, disable_feedback_gating, - disable_hello: None, + disable_frontend_builds, + disable_hello, + disable_oculus_subs, disable_registration, disable_steam_networking, disable_two_factor_auth, @@ -272,8 +292,8 @@ impl Config { dynamic_world_rows, events: Box::new(events), gear_demo_room_id, - homepage_redirect_target, home_world_id, + homepage_redirect_target, hub_world_id, jobs_email, message_of_the_day, diff --git a/src/models/config_events.rs b/src/models/api_event_config.rs similarity index 59% rename from src/models/config_events.rs rename to src/models/api_event_config.rs index f94cee7..45f39b8 100644 --- a/src/models/config_events.rs +++ b/src/models/api_event_config.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -11,42 +11,42 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigEvents { +pub struct ApiEventConfig { /// Unknown #[serde(rename = "distanceClose")] - pub distance_close: f32, + pub distance_close: i32, /// Unknown #[serde(rename = "distanceFactor")] - pub distance_factor: f32, + pub distance_factor: i32, /// Unknown #[serde(rename = "distanceFar")] - pub distance_far: f32, + pub distance_far: i32, /// Unknown #[serde(rename = "groupDistance")] - pub group_distance: f32, + pub group_distance: i32, /// Unknown #[serde(rename = "maximumBunchSize")] - pub maximum_bunch_size: f32, + pub maximum_bunch_size: i32, /// Unknown #[serde(rename = "notVisibleFactor")] - pub not_visible_factor: f32, + pub not_visible_factor: i32, /// Unknown #[serde(rename = "playerOrderBucketSize")] - pub player_order_bucket_size: f32, + pub player_order_bucket_size: i32, /// Unknown #[serde(rename = "playerOrderFactor")] - pub player_order_factor: f32, + pub player_order_factor: i32, /// Unknown #[serde(rename = "slowUpdateFactorThreshold")] - pub slow_update_factor_threshold: f32, + pub slow_update_factor_threshold: i32, /// Unknown #[serde(rename = "viewSegmentLength")] - pub view_segment_length: f32, + pub view_segment_length: i32, } -impl ConfigEvents { - 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 { - ConfigEvents { +impl ApiEventConfig { + 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 { + ApiEventConfig { distance_close, distance_factor, distance_far, diff --git a/src/models/avatar.rs b/src/models/avatar.rs index bd262ba..734753c 100644 --- a/src/models/avatar.rs +++ b/src/models/avatar.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -40,20 +40,20 @@ pub struct Avatar { pub tags: Vec, #[serde(rename = "thumbnailImageUrl")] pub thumbnail_image_url: String, - #[serde(rename = "unityPackages")] - pub unity_packages: Vec, #[serde(rename = "unityPackageUrl")] pub unity_package_url: String, #[serde(rename = "unityPackageUrlObject")] pub unity_package_url_object: Box, + #[serde(rename = "unityPackages")] + pub unity_packages: Vec, #[serde(rename = "updated_at")] pub updated_at: String, #[serde(rename = "version")] - pub version: f32, + pub version: i32, } 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, thumbnail_image_url: String, unity_packages: Vec, 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, thumbnail_image_url: String, unity_package_url: String, unity_package_url_object: crate::models::AvatarUnityPackageUrlObject, unity_packages: Vec, updated_at: String, version: i32) -> Avatar { Avatar { asset_url: None, asset_url_object: None, @@ -68,9 +68,9 @@ impl Avatar { release_status, tags, thumbnail_image_url, - unity_packages, unity_package_url, unity_package_url_object: Box::new(unity_package_url_object), + unity_packages, updated_at, version, } diff --git a/src/models/avatar_unity_package_url_object.rs b/src/models/avatar_unity_package_url_object.rs index e88218d..2b7161e 100644 --- a/src/models/avatar_unity_package_url_object.rs +++ b/src/models/avatar_unity_package_url_object.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/current_user.rs b/src/models/current_user.rs index cc804b2..a35779e 100644 --- a/src/models/current_user.rs +++ b/src/models/current_user.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,151 +12,151 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CurrentUser { - #[serde(rename = "id")] - pub id: String, - #[serde(rename = "username")] - pub username: String, - #[serde(rename = "displayName")] - pub display_name: String, - #[serde(rename = "userIcon")] - pub user_icon: String, + #[serde(rename = "acceptedTOSVersion")] + pub accepted_tos_version: i32, + #[serde(rename = "accountDeletionDate", skip_serializing_if = "Option::is_none")] + pub account_deletion_date: Option, + #[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")] + pub active_friends: Option>, + #[serde(rename = "allowAvatarCopying")] + pub allow_avatar_copying: bool, #[serde(rename = "bio")] pub bio: String, #[serde(rename = "bioLinks")] pub bio_links: Vec, - #[serde(rename = "profilePicOverride")] - pub profile_pic_override: String, - #[serde(rename = "statusDescription")] - pub status_description: String, - #[serde(rename = "pastDisplayNames")] - pub past_display_names: Vec, - #[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, - #[serde(rename = "statusFirstTime")] - pub status_first_time: bool, - #[serde(rename = "friends")] - pub friends: Vec, - /// Always empty array. - #[serde(rename = "friendGroupNames")] - pub friend_group_names: Vec, - #[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")] pub current_avatar: String, #[serde(rename = "currentAvatarAssetUrl")] pub current_avatar_asset_url: String, - #[serde(rename = "accountDeletionDate", skip_serializing_if = "Option::is_none")] - pub account_deletion_date: Option, - #[serde(rename = "acceptedTOSVersion")] - pub accepted_tos_version: f32, - #[serde(rename = "steamId")] - pub steam_id: 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, + #[serde(rename = "currentAvatarImageUrl")] + pub current_avatar_image_url: String, + #[serde(rename = "currentAvatarThumbnailImageUrl")] + pub current_avatar_thumbnail_image_url: String, + #[serde(rename = "date_joined")] + pub date_joined: String, #[serde(rename = "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, + /// Always empty array. + #[serde(rename = "friendGroupNames")] + pub friend_group_names: Vec, + #[serde(rename = "friendKey")] + pub friend_key: String, + #[serde(rename = "friends")] + pub friends: Vec, + #[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")] 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`. #[serde(rename = "last_platform")] pub last_platform: String, - #[serde(rename = "allowAvatarCopying")] - pub allow_avatar_copying: bool, - #[serde(rename = "status")] - pub status: crate::models::UserStatus, - #[serde(rename = "date_joined")] - pub date_joined: 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>, - #[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")] - pub active_friends: Option>, + #[serde(rename = "obfuscatedEmail")] + pub obfuscated_email: String, + #[serde(rename = "obfuscatedPendingEmail")] + pub obfuscated_pending_email: String, + #[serde(rename = "oculusId")] + pub oculus_id: String, #[serde(rename = "offlineFriends", skip_serializing_if = "Option::is_none")] pub offline_friends: Option>, + #[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")] + pub online_friends: Option>, + #[serde(rename = "pastDisplayNames")] + pub past_display_names: Vec, + #[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, + #[serde(rename = "steamDetails")] + pub steam_details: serde_json::Value, + #[serde(rename = "steamId")] + pub steam_id: String, + #[serde(rename = "tags")] + pub tags: Vec, + #[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 { - pub fn new(id: String, username: String, display_name: String, user_icon: String, bio: String, bio_links: Vec, profile_pic_override: String, status_description: String, past_display_names: Vec, 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, status_first_time: bool, friends: Vec, friend_group_names: Vec, 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, 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, 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, friend_key: String, friends: Vec, 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, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec, steam_details: serde_json::Value, steam_id: String, tags: Vec, two_factor_auth_enabled: bool, unsubscribe: bool, user_icon: String, username: String) -> CurrentUser { CurrentUser { - id, - username, - display_name, - user_icon, + accepted_tos_version, + account_deletion_date: None, + active_friends: None, + allow_avatar_copying, bio, 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_asset_url, - account_deletion_date: None, - accepted_tos_version, - steam_id, - steam_details, - oculus_id, - has_logged_in_from_client, - home_location, - two_factor_auth_enabled, - state, - tags, + current_avatar_image_url, + current_avatar_thumbnail_image_url, + date_joined, 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_platform, - allow_avatar_copying, - status, - date_joined, - is_friend, - friend_key, - online_friends: None, - active_friends: None, + obfuscated_email, + obfuscated_pending_email, + oculus_id, 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, } } } diff --git a/src/models/deployment_group.rs b/src/models/deployment_group.rs index 36ef6bd..7ce7b7a 100644 --- a/src/models/deployment_group.rs +++ b/src/models/deployment_group.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/developer_type.rs b/src/models/developer_type.rs index 22c1b47..7dca74b 100644 --- a/src/models/developer_type.rs +++ b/src/models/developer_type.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/config_download_urls.rs b/src/models/download_url_list.rs similarity index 68% rename from src/models/config_download_urls.rs rename to src/models/download_url_list.rs index 2cc89c9..3cf2905 100644 --- a/src/models/config_download_urls.rs +++ b/src/models/download_url_list.rs @@ -2,17 +2,17 @@ * 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 * 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)] -pub struct ConfigDownloadUrls { +pub struct DownloadUrlList { /// Download link for legacy SDK2 #[serde(rename = "sdk2")] pub sdk2: String, @@ -24,10 +24,10 @@ pub struct ConfigDownloadUrls { pub sdk3_worlds: String, } -impl ConfigDownloadUrls { - /// Download links for various development assets - pub fn new(sdk2: String, sdk3_avatars: String, sdk3_worlds: String) -> ConfigDownloadUrls { - ConfigDownloadUrls { +impl DownloadUrlList { + /// Download links for various development assets. + pub fn new(sdk2: String, sdk3_avatars: String, sdk3_worlds: String) -> DownloadUrlList { + DownloadUrlList { sdk2, sdk3_avatars, sdk3_worlds, diff --git a/src/models/config_dynamic_world_rows.rs b/src/models/dynamic_world_row.rs similarity index 74% rename from src/models/config_dynamic_world_rows.rs rename to src/models/dynamic_world_row.rs index afe6f17..ec0a996 100644 --- a/src/models/config_dynamic_world_rows.rs +++ b/src/models/dynamic_world_row.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -11,9 +11,9 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigDynamicWorldRows { +pub struct DynamicWorldRow { #[serde(rename = "index")] - pub index: f32, + pub index: i32, #[serde(rename = "name")] pub name: String, #[serde(rename = "platform")] @@ -24,14 +24,14 @@ pub struct ConfigDynamicWorldRows { pub sort_order: String, #[serde(rename = "sortOwnership")] 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")] pub tag: Option, } -impl ConfigDynamicWorldRows { - pub fn new(index: f32, name: String, platform: String, sort_heading: String, sort_order: String, sort_ownership: String) -> ConfigDynamicWorldRows { - ConfigDynamicWorldRows { +impl DynamicWorldRow { + pub fn new(index: i32, name: String, platform: String, sort_heading: String, sort_order: String, sort_ownership: String) -> DynamicWorldRow { + DynamicWorldRow { index, name, platform, diff --git a/src/models/error.rs b/src/models/error.rs index 083bfe6..0d96b07 100644 --- a/src/models/error.rs +++ b/src/models/error.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/favorite.rs b/src/models/favorite.rs index 24d9de4..2c0c023 100644 --- a/src/models/favorite.rs +++ b/src/models/favorite.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,24 +12,24 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Favorite { - #[serde(rename = "id")] - pub id: String, - #[serde(rename = "type")] - pub _type: crate::models::FavoriteType, /// MUST be either AvatarID, UserID or WorldID. #[serde(rename = "favoriteId")] pub favorite_id: String, + #[serde(rename = "id")] + pub id: String, #[serde(rename = "tags")] pub tags: Vec, + #[serde(rename = "type")] + pub _type: crate::models::FavoriteType, } impl Favorite { - pub fn new(id: String, _type: crate::models::FavoriteType, favorite_id: String, tags: Vec) -> Favorite { + pub fn new(favorite_id: String, id: String, tags: Vec, _type: crate::models::FavoriteType) -> Favorite { Favorite { - id, - _type, favorite_id, + id, tags, + _type, } } } diff --git a/src/models/favorite_group.rs b/src/models/favorite_group.rs index 72d3fdf..10150bb 100644 --- a/src/models/favorite_group.rs +++ b/src/models/favorite_group.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,35 +12,35 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] 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")] 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, #[serde(rename = "type")] pub _type: crate::models::FavoriteType, #[serde(rename = "visibility")] pub visibility: crate::models::FavoriteGroupVisibility, - #[serde(rename = "tags")] - pub tags: Vec, } 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) -> FavoriteGroup { + pub fn new(display_name: String, id: String, name: String, owner_display_name: String, owner_id: String, tags: Vec, _type: crate::models::FavoriteType, visibility: crate::models::FavoriteGroupVisibility) -> FavoriteGroup { FavoriteGroup { - id, - owner_id, - owner_display_name, - name, display_name, + id, + name, + owner_display_name, + owner_id, + tags, _type, visibility, - tags, } } } diff --git a/src/models/favorite_group_visibility.rs b/src/models/favorite_group_visibility.rs index a52459a..69b9716 100644 --- a/src/models/favorite_group_visibility.rs +++ b/src/models/favorite_group_visibility.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/favorite_type.rs b/src/models/favorite_type.rs index c103461..3a7b19e 100644 --- a/src/models/favorite_type.rs +++ b/src/models/favorite_type.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/file.rs b/src/models/file.rs index 7ebefe6..f191973 100644 --- a/src/models/file.rs +++ b/src/models/file.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,16 +12,16 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct File { + #[serde(rename = "extension")] + pub extension: String, #[serde(rename = "id")] pub id: String, + #[serde(rename = "mimeType")] + pub mime_type: crate::models::MimeType, #[serde(rename = "name")] pub name: String, #[serde(rename = "ownerId")] pub owner_id: String, - #[serde(rename = "mimeType")] - pub mime_type: crate::models::MimeType, - #[serde(rename = "extension")] - pub extension: String, #[serde(rename = "tags")] pub tags: Vec, #[serde(rename = "versions")] @@ -29,13 +29,13 @@ pub struct File { } impl File { - pub fn new(id: String, name: String, owner_id: String, mime_type: crate::models::MimeType, extension: String, tags: Vec, versions: Vec) -> File { + pub fn new(extension: String, id: String, mime_type: crate::models::MimeType, name: String, owner_id: String, tags: Vec, versions: Vec) -> File { File { + extension, id, + mime_type, name, owner_id, - mime_type, - extension, tags, versions, } diff --git a/src/models/file_data.rs b/src/models/file_data.rs index 9494276..5a1e3c4 100644 --- a/src/models/file_data.rs +++ b/src/models/file_data.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,32 +12,32 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FileData { + #[serde(rename = "category")] + pub category: Category, #[serde(rename = "fileName")] pub file_name: String, - #[serde(rename = "url")] - pub url: String, #[serde(rename = "md5")] pub md5: String, #[serde(rename = "sizeInBytes")] - pub size_in_bytes: f32, + pub size_in_bytes: i32, #[serde(rename = "status")] pub status: crate::models::FileStatus, - #[serde(rename = "category")] - pub category: Category, #[serde(rename = "uploadId")] pub upload_id: String, + #[serde(rename = "url")] + pub url: String, } 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 { + category, file_name, - url, md5, size_in_bytes, status, - category, upload_id, + url, } } } diff --git a/src/models/file_status.rs b/src/models/file_status.rs index e2e9275..467c721 100644 --- a/src/models/file_status.rs +++ b/src/models/file_status.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/file_version.rs b/src/models/file_version.rs index c2c3109..1b0928c 100644 --- a/src/models/file_version.rs +++ b/src/models/file_version.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,34 +12,34 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] 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")] pub created_at: String, - #[serde(rename = "file", skip_serializing_if = "Option::is_none")] - pub file: Option>, - #[serde(rename = "delta", skip_serializing_if = "Option::is_none")] - pub delta: Option>, - #[serde(rename = "signature", skip_serializing_if = "Option::is_none")] - pub signature: Option>, /// Usually only present if `true` #[serde(rename = "deleted", skip_serializing_if = "Option::is_none")] pub deleted: Option, + #[serde(rename = "delta", skip_serializing_if = "Option::is_none")] + pub delta: Option>, + #[serde(rename = "file", skip_serializing_if = "Option::is_none")] + pub file: Option>, + #[serde(rename = "signature", skip_serializing_if = "Option::is_none")] + pub signature: Option>, + #[serde(rename = "status")] + pub status: crate::models::FileStatus, + /// Incremental version counter, can only be increased. + #[serde(rename = "version")] + pub version: i32, } 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 { - version, - status, created_at, - file: None, - delta: None, - signature: None, deleted: None, + delta: None, + file: None, + signature: None, + status, + version, } } } diff --git a/src/models/friend_status.rs b/src/models/friend_status.rs index 47d29bb..1a1a430 100644 --- a/src/models/friend_status.rs +++ b/src/models/friend_status.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,20 +12,20 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FriendStatus { + #[serde(rename = "incomingRequest")] + pub incoming_request: bool, #[serde(rename = "isFriend")] pub is_friend: bool, #[serde(rename = "outgoingRequest")] pub outgoing_request: bool, - #[serde(rename = "incomingRequest")] - pub incoming_request: bool, } 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 { + incoming_request, is_friend, outgoing_request, - incoming_request, } } } diff --git a/src/models/inline_object.rs b/src/models/inline_object.rs index 6ed5254..e8ac1c4 100644 --- a/src/models/inline_object.rs +++ b/src/models/inline_object.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_1.rs b/src/models/inline_object_1.rs index bc21f97..509128a 100644 --- a/src/models/inline_object_1.rs +++ b/src/models/inline_object_1.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_10.rs b/src/models/inline_object_10.rs index 023df5f..d28c6ad 100644 --- a/src/models/inline_object_10.rs +++ b/src/models/inline_object_10.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_11.rs b/src/models/inline_object_11.rs index fe20ef3..15a3aae 100644 --- a/src/models/inline_object_11.rs +++ b/src/models/inline_object_11.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_12.rs b/src/models/inline_object_12.rs index 24cea44..2dac907 100644 --- a/src/models/inline_object_12.rs +++ b/src/models/inline_object_12.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_13.rs b/src/models/inline_object_13.rs index 7c2c21f..2c2f3f4 100644 --- a/src/models/inline_object_13.rs +++ b/src/models/inline_object_13.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_2.rs b/src/models/inline_object_2.rs index 0bd3b11..81d0acc 100644 --- a/src/models/inline_object_2.rs +++ b/src/models/inline_object_2.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_3.rs b/src/models/inline_object_3.rs index d747343..512fc59 100644 --- a/src/models/inline_object_3.rs +++ b/src/models/inline_object_3.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_4.rs b/src/models/inline_object_4.rs index 78629d6..86a9a98 100644 --- a/src/models/inline_object_4.rs +++ b/src/models/inline_object_4.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_5.rs b/src/models/inline_object_5.rs index 8ddce08..348142c 100644 --- a/src/models/inline_object_5.rs +++ b/src/models/inline_object_5.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_6.rs b/src/models/inline_object_6.rs index 98f7598..1947571 100644 --- a/src/models/inline_object_6.rs +++ b/src/models/inline_object_6.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_7.rs b/src/models/inline_object_7.rs index 12eb103..aa79227 100644 --- a/src/models/inline_object_7.rs +++ b/src/models/inline_object_7.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_8.rs b/src/models/inline_object_8.rs index a225ab1..1ec6d3a 100644 --- a/src/models/inline_object_8.rs +++ b/src/models/inline_object_8.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_object_9.rs b/src/models/inline_object_9.rs index 8b3096e..d31c1d2 100644 --- a/src/models/inline_object_9.rs +++ b/src/models/inline_object_9.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_200.rs b/src/models/inline_response_200.rs index f01a90e..e91f21c 100644 --- a/src/models/inline_response_200.rs +++ b/src/models/inline_response_200.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_200_1.rs b/src/models/inline_response_200_1.rs index e2002ee..e67ab91 100644 --- a/src/models/inline_response_200_1.rs +++ b/src/models/inline_response_200_1.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_200_2.rs b/src/models/inline_response_200_2.rs index 28164fd..f2def57 100644 --- a/src/models/inline_response_200_2.rs +++ b/src/models/inline_response_200_2.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_200_3.rs b/src/models/inline_response_200_3.rs index eea3205..f6c55d1 100644 --- a/src/models/inline_response_200_3.rs +++ b/src/models/inline_response_200_3.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_200_4.rs b/src/models/inline_response_200_4.rs index a36cd56..3648130 100644 --- a/src/models/inline_response_200_4.rs +++ b/src/models/inline_response_200_4.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_200_5.rs b/src/models/inline_response_200_5.rs index ddb5ff4..fe1d9cb 100644 --- a/src/models/inline_response_200_5.rs +++ b/src/models/inline_response_200_5.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_200_6.rs b/src/models/inline_response_200_6.rs index abb8ae8..489db92 100644 --- a/src/models/inline_response_200_6.rs +++ b/src/models/inline_response_200_6.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/inline_response_400.rs b/src/models/inline_response_400.rs index 7c47f4e..3a2117f 100644 --- a/src/models/inline_response_400.rs +++ b/src/models/inline_response_400.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/instance.rs b/src/models/instance.rs index efcb1c8..7e4b9f6 100644 --- a/src/models/instance.rs +++ b/src/models/instance.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -17,9 +17,9 @@ pub struct Instance { #[serde(rename = "canRequestInvite")] pub can_request_invite: bool, #[serde(rename = "capacity")] - pub capacity: f32, + pub capacity: i32, #[serde(rename = "clientNumber")] - pub client_number: String, + pub client_number: i32, #[serde(rename = "full")] pub full: bool, #[serde(rename = "id")] @@ -29,7 +29,7 @@ pub struct Instance { #[serde(rename = "location")] pub location: String, #[serde(rename = "n_users")] - pub n_users: f32, + pub n_users: i32, #[serde(rename = "name")] pub name: String, #[serde(rename = "nonce", skip_serializing_if = "Option::is_none")] @@ -61,7 +61,7 @@ pub struct 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, _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, _type: String, world_id: String) -> Instance { Instance { active, can_request_invite, diff --git a/src/models/instance_platforms.rs b/src/models/instance_platforms.rs index 011b272..31c2e5d 100644 --- a/src/models/instance_platforms.rs +++ b/src/models/instance_platforms.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -13,13 +13,13 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InstancePlatforms { #[serde(rename = "android")] - pub android: f32, + pub android: i32, #[serde(rename = "standalonewindows")] - pub standalonewindows: f32, + pub standalonewindows: i32, } impl InstancePlatforms { - pub fn new(android: f32, standalonewindows: f32) -> InstancePlatforms { + pub fn new(android: i32, standalonewindows: i32) -> InstancePlatforms { InstancePlatforms { android, standalonewindows, diff --git a/src/models/invite_message.rs b/src/models/invite_message.rs index 6c380c5..c7115fc 100644 --- a/src/models/invite_message.rs +++ b/src/models/invite_message.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,33 +12,33 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InviteMessage { + #[serde(rename = "canBeUpdated")] + pub can_be_updated: bool, #[serde(rename = "id")] pub id: String, - #[serde(rename = "slot")] - pub slot: i32, #[serde(rename = "message")] pub message: String, #[serde(rename = "messageType")] pub message_type: crate::models::InviteMessageType, - #[serde(rename = "updatedAt")] - pub updated_at: String, /// Changes to 60 when updated, although probably server-side configurable. #[serde(rename = "remainingCooldownMinutes")] pub remaining_cooldown_minutes: i32, - #[serde(rename = "canBeUpdated")] - pub can_be_updated: bool, + #[serde(rename = "slot")] + pub slot: i32, + #[serde(rename = "updatedAt")] + pub updated_at: String, } 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 { + can_be_updated, id, - slot, message, message_type, - updated_at, remaining_cooldown_minutes, - can_be_updated, + slot, + updated_at, } } } diff --git a/src/models/invite_message_type.rs b/src/models/invite_message_type.rs index 48aa8f7..4280cf1 100644 --- a/src/models/invite_message_type.rs +++ b/src/models/invite_message_type.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/invite_request.rs b/src/models/invite_request.rs new file mode 100644 index 0000000..3349eb6 --- /dev/null +++ b/src/models/invite_request.rs @@ -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, + } + } +} + + diff --git a/src/models/invite_response.rs b/src/models/invite_response.rs new file mode 100644 index 0000000..315b5dd --- /dev/null +++ b/src/models/invite_response.rs @@ -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, + } + } +} + + diff --git a/src/models/limited_unity_package.rs b/src/models/limited_unity_package.rs index 5cee1f9..c109c1c 100644 --- a/src/models/limited_unity_package.rs +++ b/src/models/limited_unity_package.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/limited_user.rs b/src/models/limited_user.rs index 1aa1ea3..9810736 100644 --- a/src/models/limited_user.rs +++ b/src/models/limited_user.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,58 +12,58 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] 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")] pub bio: Option, - #[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")] 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 = "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`. #[serde(rename = "last_platform")] pub last_platform: String, + #[serde(rename = "profilePicOverride")] + pub profile_pic_override: String, #[serde(rename = "status")] pub status: crate::models::UserStatus, - #[serde(rename = "isFriend")] - pub is_friend: bool, + #[serde(rename = "statusDescription")] + pub status_description: String, /// <- Always empty. #[serde(rename = "tags")] pub tags: Vec, + #[serde(rename = "userIcon")] + pub user_icon: String, + #[serde(rename = "username")] + pub username: String, } 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) -> 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, user_icon: String, username: String) -> LimitedUser { LimitedUser { - id, - username, - display_name, bio: None, - user_icon, - profile_pic_override, - status_description, current_avatar_image_url, current_avatar_thumbnail_image_url, - fallback_avatar, developer_type, - last_platform, - status, + display_name, + fallback_avatar, + id, is_friend, + last_platform, + profile_pic_override, + status, + status_description, tags, + user_icon, + username, } } } diff --git a/src/models/limited_world.rs b/src/models/limited_world.rs index 19b1037..3ec9932 100644 --- a/src/models/limited_world.rs +++ b/src/models/limited_world.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,68 +12,68 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LimitedWorld { - #[serde(rename = "id")] - pub id: String, - #[serde(rename = "name")] - pub name: String, #[serde(rename = "authorId")] pub author_id: String, #[serde(rename = "authorName")] pub author_name: String, #[serde(rename = "capacity")] - pub capacity: f32, - #[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, - #[serde(rename = "favorites")] - pub favorites: f32, + pub capacity: i32, #[serde(rename = "created_at")] pub created_at: String, - #[serde(rename = "updated_at")] - pub updated_at: String, - #[serde(rename = "publicationDate")] - pub publication_date: String, + #[serde(rename = "favorites")] + pub favorites: i32, + #[serde(rename = "heat")] + pub heat: i32, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "imageUrl")] + pub image_url: String, #[serde(rename = "labsPublicationDate")] 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, + #[serde(rename = "thumbnailImageUrl")] + pub thumbnail_image_url: String, #[serde(rename = "unityPackages")] pub unity_packages: Vec, - #[serde(rename = "popularity")] - pub popularity: f32, - #[serde(rename = "heat")] - pub heat: f32, - #[serde(rename = "occupants")] - pub occupants: f32, + #[serde(rename = "updated_at")] + pub updated_at: String, } 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, favorites: f32, created_at: String, updated_at: String, publication_date: String, labs_publication_date: String, unity_packages: Vec, 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, thumbnail_image_url: String, unity_packages: Vec, updated_at: String) -> LimitedWorld { LimitedWorld { - id, - name, author_id, author_name, capacity, - image_url, - thumbnail_image_url, - release_status, - organization, - tags, - favorites, created_at, - updated_at, - publication_date, - labs_publication_date, - unity_packages, - popularity, + favorites, heat, + id, + image_url, + labs_publication_date, + name, occupants, + organization, + popularity, + publication_date, + release_status, + tags, + thumbnail_image_url, + unity_packages, + updated_at, } } } diff --git a/src/models/mime_type.rs b/src/models/mime_type.rs index 14701d7..5a08fa1 100644 --- a/src/models/mime_type.rs +++ b/src/models/mime_type.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/mod.rs b/src/models/mod.rs index f1209ce..bac62ae 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,23 +1,21 @@ +pub mod api_config; +pub use self::api_config::ApiConfig; +pub mod api_event_config; +pub use self::api_event_config::ApiEventConfig; pub mod avatar; pub use self::avatar::Avatar; pub mod avatar_unity_package_url_object; pub use self::avatar_unity_package_url_object::AvatarUnityPackageUrlObject; -pub mod config; -pub use self::config::Config; -pub mod config_announcements; -pub use self::config_announcements::ConfigAnnouncements; -pub mod config_download_urls; -pub use self::config_download_urls::ConfigDownloadUrls; -pub mod config_dynamic_world_rows; -pub use self::config_dynamic_world_rows::ConfigDynamicWorldRows; -pub mod config_events; -pub use self::config_events::ConfigEvents; pub mod current_user; pub use self::current_user::CurrentUser; pub mod deployment_group; pub use self::deployment_group::DeploymentGroup; pub mod developer_type; pub use self::developer_type::DeveloperType; +pub mod download_url_list; +pub use self::download_url_list::DownloadUrlList; +pub mod dynamic_world_row; +pub use self::dynamic_world_row::DynamicWorldRow; pub mod error; pub use self::error::Error; pub mod favorite; @@ -90,6 +88,10 @@ pub mod invite_message; pub use self::invite_message::InviteMessage; pub mod invite_message_type; pub use self::invite_message_type::InviteMessageType; +pub mod invite_request; +pub use self::invite_request::InviteRequest; +pub mod invite_response; +pub use self::invite_response::InviteResponse; pub mod limited_unity_package; pub use self::limited_unity_package::LimitedUnityPackage; pub mod limited_user; @@ -110,6 +112,8 @@ pub mod player_moderation; pub use self::player_moderation::PlayerModeration; pub mod player_moderation_type; pub use self::player_moderation_type::PlayerModerationType; +pub mod public_announcement; +pub use self::public_announcement::PublicAnnouncement; pub mod release_status; pub use self::release_status::ReleaseStatus; pub mod response; @@ -120,6 +124,8 @@ pub mod unity_package; pub use self::unity_package::UnityPackage; pub mod user; pub use self::user::User; +pub mod user_exists; +pub use self::user_exists::UserExists; pub mod user_state; pub use self::user_state::UserState; pub mod user_status; diff --git a/src/models/notification.rs b/src/models/notification.rs index ec9837b..d83c4b8 100644 --- a/src/models/notification.rs +++ b/src/models/notification.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,36 +12,36 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Notification { + #[serde(rename = "created_at")] + pub created_at: 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. + #[serde(rename = "details")] + pub details: String, #[serde(rename = "id")] pub id: String, + #[serde(rename = "message")] + pub message: String, + #[serde(rename = "seen")] + pub seen: bool, #[serde(rename = "senderUserId")] pub sender_user_id: String, #[serde(rename = "senderUsername")] pub sender_username: String, #[serde(rename = "type")] pub _type: crate::models::NotificationType, - #[serde(rename = "message")] - pub message: 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. - #[serde(rename = "details")] - pub details: String, - #[serde(rename = "seen")] - pub seen: bool, - #[serde(rename = "created_at")] - pub created_at: String, } impl Notification { - pub fn new(id: String, sender_user_id: String, sender_username: String, _type: crate::models::NotificationType, message: String, details: String, seen: bool, created_at: String) -> Notification { + pub fn new(created_at: String, details: String, id: String, message: String, seen: bool, sender_user_id: String, sender_username: String, _type: crate::models::NotificationType) -> Notification { Notification { + created_at, + details, id, + message, + seen, sender_user_id, sender_username, _type, - message, - details, - seen, - created_at, } } } diff --git a/src/models/notification_type.rs b/src/models/notification_type.rs index add9433..6fa417e 100644 --- a/src/models/notification_type.rs +++ b/src/models/notification_type.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/past_display_name.rs b/src/models/past_display_name.rs index 0c8f081..23005c0 100644 --- a/src/models/past_display_name.rs +++ b/src/models/past_display_name.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/permission.rs b/src/models/permission.rs index 716b604..aa0ec79 100644 --- a/src/models/permission.rs +++ b/src/models/permission.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,23 +12,23 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Permission { - #[serde(rename = "id")] - pub id: String, - #[serde(rename = "ownerId")] - pub owner_id: String, - #[serde(rename = "name")] - pub name: String, #[serde(rename = "data", skip_serializing_if = "Option::is_none")] pub data: Option, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "ownerId")] + pub owner_id: String, } impl Permission { - pub fn new(id: String, owner_id: String, name: String) -> Permission { + pub fn new(id: String, name: String, owner_id: String) -> Permission { Permission { - id, - owner_id, - name, data: None, + id, + name, + owner_id, } } } diff --git a/src/models/player_moderation.rs b/src/models/player_moderation.rs index f44da5f..b503afc 100644 --- a/src/models/player_moderation.rs +++ b/src/models/player_moderation.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,32 +12,32 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PlayerModeration { - #[serde(rename = "id")] - pub id: String, - #[serde(rename = "type")] - pub _type: crate::models::PlayerModerationType, - #[serde(rename = "sourceUserId")] - pub source_user_id: String, - #[serde(rename = "sourceDisplayName")] - pub source_display_name: String, - #[serde(rename = "targetUserId")] - pub target_user_id: String, - #[serde(rename = "targetDisplayName")] - pub target_display_name: String, #[serde(rename = "created")] pub created: String, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "sourceDisplayName")] + pub source_display_name: String, + #[serde(rename = "sourceUserId")] + pub source_user_id: String, + #[serde(rename = "targetDisplayName")] + pub target_display_name: String, + #[serde(rename = "targetUserId")] + pub target_user_id: String, + #[serde(rename = "type")] + pub _type: crate::models::PlayerModerationType, } impl PlayerModeration { - pub fn new(id: String, _type: crate::models::PlayerModerationType, source_user_id: String, source_display_name: String, target_user_id: String, target_display_name: String, created: String) -> PlayerModeration { + pub fn new(created: String, id: String, source_display_name: String, source_user_id: String, target_display_name: String, target_user_id: String, _type: crate::models::PlayerModerationType) -> PlayerModeration { PlayerModeration { - id, - _type, - source_user_id, - source_display_name, - target_user_id, - target_display_name, created, + id, + source_display_name, + source_user_id, + target_display_name, + target_user_id, + _type, } } } diff --git a/src/models/player_moderation_type.rs b/src/models/player_moderation_type.rs index c880feb..3fd7074 100644 --- a/src/models/player_moderation_type.rs +++ b/src/models/player_moderation_type.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/config_announcements.rs b/src/models/public_announcement.rs similarity index 62% rename from src/models/config_announcements.rs rename to src/models/public_announcement.rs index a0f132d..f119f63 100644 --- a/src/models/config_announcements.rs +++ b/src/models/public_announcement.rs @@ -2,17 +2,17 @@ * 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 * Generated by: https://openapi-generator.tech */ -/// ConfigAnnouncements : Public Announcement +/// PublicAnnouncement : Public Announcement #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigAnnouncements { +pub struct PublicAnnouncement { /// Announcement name #[serde(rename = "name")] pub name: String, @@ -21,10 +21,10 @@ pub struct ConfigAnnouncements { pub text: String, } -impl ConfigAnnouncements { +impl PublicAnnouncement { /// Public Announcement - pub fn new(name: String, text: String) -> ConfigAnnouncements { - ConfigAnnouncements { + pub fn new(name: String, text: String) -> PublicAnnouncement { + PublicAnnouncement { name, text, } diff --git a/src/models/release_status.rs b/src/models/release_status.rs index 1048839..8bb302f 100644 --- a/src/models/release_status.rs +++ b/src/models/release_status.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/response.rs b/src/models/response.rs index efedb59..d279276 100644 --- a/src/models/response.rs +++ b/src/models/response.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -15,11 +15,11 @@ pub struct Response { #[serde(rename = "message", skip_serializing_if = "Option::is_none")] pub message: Option, #[serde(rename = "status_code")] - pub status_code: f32, + pub status_code: i32, } impl Response { - pub fn new(status_code: f32) -> Response { + pub fn new(status_code: i32) -> Response { Response { message: None, status_code, diff --git a/src/models/success.rs b/src/models/success.rs index 0e87fb9..ce369f1 100644 --- a/src/models/success.rs +++ b/src/models/success.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/unity_package.rs b/src/models/unity_package.rs index 328ed66..8cbcc80 100644 --- a/src/models/unity_package.rs +++ b/src/models/unity_package.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,42 +12,42 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UnityPackage { - #[serde(rename = "id")] - pub id: String, #[serde(rename = "assetUrl", skip_serializing_if = "Option::is_none")] pub asset_url: Option, #[serde(rename = "assetUrlObject", skip_serializing_if = "Option::is_none")] pub asset_url_object: Option, + #[serde(rename = "assetVersion")] + pub asset_version: i32, + #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] + pub created_at: Option, + #[serde(rename = "id")] + pub id: 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`. + #[serde(rename = "platform")] + pub platform: String, #[serde(rename = "pluginUrl", skip_serializing_if = "Option::is_none")] pub plugin_url: Option, #[serde(rename = "pluginUrlObject", skip_serializing_if = "Option::is_none")] pub plugin_url_object: Option, + #[serde(rename = "unitySortNumber", skip_serializing_if = "Option::is_none")] + pub unity_sort_number: Option, #[serde(rename = "unityVersion")] pub unity_version: String, - #[serde(rename = "unitySortNumber", skip_serializing_if = "Option::is_none")] - pub unity_sort_number: Option, - #[serde(rename = "assetVersion")] - pub asset_version: f32, - /// 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 = "platform")] - pub platform: String, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, } impl UnityPackage { - pub fn new(id: String, unity_version: String, asset_version: f32, platform: String) -> UnityPackage { + pub fn new(asset_version: i32, id: String, platform: String, unity_version: String) -> UnityPackage { UnityPackage { - id, asset_url: None, asset_url_object: None, + asset_version, + created_at: None, + id, + platform, plugin_url: None, plugin_url_object: None, - unity_version, unity_sort_number: None, - asset_version, - platform, - created_at: None, + unity_version, } } } diff --git a/src/models/user.rs b/src/models/user.rs index 662a2c9..a978b12 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -12,84 +12,81 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct User { - #[serde(rename = "id")] - pub id: String, - #[serde(rename = "username")] - pub username: String, - #[serde(rename = "displayName")] - pub display_name: String, - #[serde(rename = "userIcon")] - pub user_icon: String, + #[serde(rename = "allowAvatarCopying")] + pub allow_avatar_copying: bool, #[serde(rename = "bio")] pub bio: String, #[serde(rename = "bioLinks")] pub bio_links: Vec, - #[serde(rename = "profilePicOverride")] - pub profile_pic_override: String, - #[serde(rename = "statusDescription")] - pub status_description: 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 = "state")] - pub state: crate::models::UserState, - #[serde(rename = "tags")] - pub tags: Vec, + #[serde(rename = "date_joined")] + pub date_joined: String, #[serde(rename = "developerType")] pub developer_type: crate::models::DeveloperType, + #[serde(rename = "displayName")] + pub display_name: String, + #[serde(rename = "friendKey")] + pub friend_key: String, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "instanceId", skip_serializing_if = "Option::is_none")] + pub instance_id: Option, + #[serde(rename = "isFriend")] + pub is_friend: bool, #[serde(rename = "last_login")] 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`. #[serde(rename = "last_platform")] pub last_platform: String, - #[serde(rename = "allowAvatarCopying")] - pub allow_avatar_copying: bool, + #[serde(rename = "location", skip_serializing_if = "Option::is_none")] + pub location: Option, + #[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 = "date_joined")] - pub date_joined: String, - #[serde(rename = "isFriend")] - pub is_friend: bool, - #[serde(rename = "friendKey")] - pub friend_key: String, - #[serde(rename = "worldId")] - pub world_id: String, - #[serde(rename = "instanceId")] - pub instance_id: String, - #[serde(rename = "location")] - pub location: String, + #[serde(rename = "statusDescription")] + pub status_description: String, + #[serde(rename = "tags")] + pub tags: Vec, + #[serde(rename = "userIcon")] + pub user_icon: String, + #[serde(rename = "username")] + pub username: String, + #[serde(rename = "worldId", skip_serializing_if = "Option::is_none")] + pub world_id: Option, } impl User { - pub fn new(id: String, username: String, display_name: String, user_icon: String, bio: String, bio_links: Vec, profile_pic_override: String, status_description: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, fallback_avatar: String, state: crate::models::UserState, tags: Vec, 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, world_id: String, instance_id: String, location: String) -> User { + pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, friend_key: String, id: String, is_friend: bool, last_login: String, last_platform: String, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, tags: Vec, user_icon: String, username: String) -> User { User { - id, - username, - display_name, - user_icon, + allow_avatar_copying, bio, bio_links, - profile_pic_override, - status_description, current_avatar_image_url, current_avatar_thumbnail_image_url, - fallback_avatar, - state, - tags, + date_joined, developer_type, + display_name, + friend_key, + id, + instance_id: None, + is_friend, last_login, last_platform, - allow_avatar_copying, + location: None, + profile_pic_override, + state, status, - date_joined, - is_friend, - friend_key, - world_id, - instance_id, - location, + status_description, + tags, + user_icon, + username, + world_id: None, } } } diff --git a/src/models/user_exists.rs b/src/models/user_exists.rs new file mode 100644 index 0000000..d6e5c2e --- /dev/null +++ b/src/models/user_exists.rs @@ -0,0 +1,30 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.4.1 + * Contact: me@ruby.js.org + * Generated by: https://openapi-generator.tech + */ + +/// UserExists : Status object representing if a queried user by username or userId exists or not. This model is primarily used by the `/auth/exists` endpoint, which in turn is used during registration. Please see the documentation on that endpoint for more information on usage. + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct UserExists { + /// Status if a user exist with that username or userId. + #[serde(rename = "userExists")] + pub user_exists: bool, +} + +impl UserExists { + /// Status object representing if a queried user by username or userId exists or not. This model is primarily used by the `/auth/exists` endpoint, which in turn is used during registration. Please see the documentation on that endpoint for more information on usage. + pub fn new(user_exists: bool) -> UserExists { + UserExists { + user_exists, + } + } +} + + diff --git a/src/models/user_state.rs b/src/models/user_state.rs index bbf4f57..097765c 100644 --- a/src/models/user_state.rs +++ b/src/models/user_state.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/user_status.rs b/src/models/user_status.rs index a669ece..357e2a8 100644 --- a/src/models/user_status.rs +++ b/src/models/user_status.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ diff --git a/src/models/world.rs b/src/models/world.rs index 5fbb326..c58fc95 100644 --- a/src/models/world.rs +++ b/src/models/world.rs @@ -2,7 +2,7 @@ * 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 * Generated by: https://openapi-generator.tech */ @@ -21,17 +21,17 @@ pub struct World { #[serde(rename = "authorName")] pub author_name: String, #[serde(rename = "capacity")] - pub capacity: f32, + pub capacity: i32, #[serde(rename = "created_at")] pub created_at: String, #[serde(rename = "description")] pub description: String, #[serde(rename = "favorites", skip_serializing_if = "Option::is_none")] - pub favorites: Option, + pub favorites: Option, #[serde(rename = "featured")] pub featured: bool, #[serde(rename = "heat")] - pub heat: f32, + pub heat: i32, #[serde(rename = "id")] pub id: String, #[serde(rename = "imageUrl")] @@ -45,19 +45,19 @@ pub struct World { #[serde(rename = "namespace")] pub namespace: String, #[serde(rename = "occupants", skip_serializing_if = "Option::is_none")] - pub occupants: Option, + pub occupants: Option, #[serde(rename = "organization")] pub organization: String, #[serde(rename = "pluginUrlObject")] pub plugin_url_object: serde_json::Value, #[serde(rename = "popularity")] - pub popularity: f32, + pub popularity: i32, #[serde(rename = "previewYoutubeId", skip_serializing_if = "Option::is_none")] pub preview_youtube_id: Option, #[serde(rename = "privateOccupants", skip_serializing_if = "Option::is_none")] - pub private_occupants: Option, + pub private_occupants: Option, #[serde(rename = "publicOccupants", skip_serializing_if = "Option::is_none")] - pub public_occupants: Option, + pub public_occupants: Option, #[serde(rename = "publicationDate")] pub publication_date: String, #[serde(rename = "releaseStatus")] @@ -73,13 +73,13 @@ pub struct World { #[serde(rename = "updated_at")] pub updated_at: String, #[serde(rename = "version")] - pub version: f32, + pub version: i32, #[serde(rename = "visits")] - pub visits: f32, + pub visits: i32, } impl World { - pub fn new(asset_url: String, asset_url_object: serde_json::Value, author_id: String, author_name: String, capacity: f32, created_at: String, description: String, featured: bool, heat: f32, id: String, image_url: String, labs_publication_date: String, name: String, namespace: String, organization: String, plugin_url_object: serde_json::Value, popularity: f32, publication_date: String, release_status: crate::models::ReleaseStatus, tags: Vec, thumbnail_image_url: String, unity_package_url_object: serde_json::Value, unity_packages: Vec, updated_at: String, version: f32, visits: f32) -> World { + pub fn new(asset_url: String, asset_url_object: serde_json::Value, author_id: String, author_name: String, capacity: i32, created_at: String, description: String, featured: bool, heat: i32, id: String, image_url: String, labs_publication_date: String, name: String, namespace: String, organization: String, plugin_url_object: serde_json::Value, popularity: i32, publication_date: String, release_status: crate::models::ReleaseStatus, tags: Vec, thumbnail_image_url: String, unity_package_url_object: serde_json::Value, unity_packages: Vec, updated_at: String, version: i32, visits: i32) -> World { World { asset_url, asset_url_object,