From 548324ab820592bf94a9d4e140a46b55769ed4f3 Mon Sep 17 00:00:00 2001 From: Foorack Date: Fri, 8 Oct 2021 12:38:13 +0200 Subject: [PATCH] Upgrade Rust SDK to spec 1.4.2 --- Cargo.toml | 2 +- docs/Instance.md | 4 ++-- generate.sh | 2 ++ src/apis/authentication_api.rs | 1 - src/apis/avatars_api.rs | 1 - src/apis/configuration.rs | 1 - src/apis/favorites_api.rs | 1 - src/apis/files_api.rs | 1 - src/apis/friends_api.rs | 1 - src/apis/invite_api.rs | 1 - src/apis/notifications_api.rs | 1 - src/apis/permissions_api.rs | 1 - src/apis/playermoderation_api.rs | 1 - src/apis/system_api.rs | 1 - src/apis/users_api.rs | 1 - src/apis/worlds_api.rs | 1 - src/models/api_config.rs | 1 - src/models/api_event_config.rs | 1 - src/models/avatar.rs | 1 - src/models/avatar_unity_package_url_object.rs | 1 - src/models/current_user.rs | 1 - src/models/deployment_group.rs | 1 - src/models/developer_type.rs | 1 - src/models/download_url_list.rs | 1 - src/models/dynamic_world_row.rs | 1 - src/models/error.rs | 1 - src/models/favorite.rs | 1 - src/models/favorite_group.rs | 1 - src/models/favorite_group_visibility.rs | 1 - src/models/favorite_type.rs | 1 - src/models/file.rs | 1 - src/models/file_data.rs | 1 - src/models/file_status.rs | 1 - src/models/file_version.rs | 1 - src/models/friend_status.rs | 1 - src/models/inline_object.rs | 1 - src/models/inline_object_1.rs | 1 - src/models/inline_object_10.rs | 1 - src/models/inline_object_11.rs | 1 - src/models/inline_object_12.rs | 1 - src/models/inline_object_13.rs | 1 - src/models/inline_object_2.rs | 1 - src/models/inline_object_3.rs | 1 - src/models/inline_object_4.rs | 1 - src/models/inline_object_5.rs | 1 - src/models/inline_object_6.rs | 1 - src/models/inline_object_7.rs | 1 - src/models/inline_object_8.rs | 1 - src/models/inline_object_9.rs | 1 - src/models/inline_response_200.rs | 1 - src/models/inline_response_200_1.rs | 1 - src/models/inline_response_200_2.rs | 1 - src/models/inline_response_200_3.rs | 1 - src/models/inline_response_200_4.rs | 1 - src/models/inline_response_200_5.rs | 1 - src/models/inline_response_200_6.rs | 1 - src/models/inline_response_400.rs | 1 - src/models/instance.rs | 11 +++++------ src/models/instance_platforms.rs | 1 - src/models/invite_message.rs | 1 - src/models/invite_message_type.rs | 1 - src/models/invite_request.rs | 1 - src/models/invite_response.rs | 1 - src/models/limited_unity_package.rs | 1 - src/models/limited_user.rs | 1 - src/models/limited_world.rs | 1 - src/models/mime_type.rs | 1 - src/models/notification.rs | 1 - src/models/notification_type.rs | 1 - src/models/past_display_name.rs | 1 - src/models/permission.rs | 1 - src/models/player_moderation.rs | 1 - src/models/player_moderation_type.rs | 1 - src/models/public_announcement.rs | 1 - src/models/release_status.rs | 1 - src/models/response.rs | 1 - src/models/success.rs | 1 - src/models/unity_package.rs | 1 - src/models/user.rs | 1 - src/models/user_exists.rs | 1 - src/models/user_state.rs | 1 - src/models/user_status.rs | 1 - src/models/world.rs | 1 - 83 files changed, 10 insertions(+), 88 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 17e346b..5495bf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vrchatapi" -version = "1.4.1" +version = "1.4.2" authors = ["OpenAPI Generator team and contributors"] license = "MIT" edition = "2018" diff --git a/docs/Instance.md b/docs/Instance.md index 79fd589..81643bb 100644 --- a/docs/Instance.md +++ b/docs/Instance.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **active** | **bool** | | [default to true] **can_request_invite** | **bool** | | [default to true] **capacity** | **i32** | | -**client_number** | **i32** | | +**client_number** | **String** | | **full** | **bool** | | [default to false] **id** | **String** | | **instance_id** | **String** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes **n_users** | **i32** | | **name** | **String** | | **nonce** | Option<**String**> | | [optional] -**owner_id** | **String** | | +**owner_id** | Option<**String**> | | [optional] **permanent** | **bool** | | [default to false] **photon_region** | **String** | | **platforms** | [**crate::models::InstancePlatforms**](Instance_platforms.md) | | diff --git a/generate.sh b/generate.sh index dac798c..b7ad04b 100755 --- a/generate.sh +++ b/generate.sh @@ -18,6 +18,8 @@ sed -i '/^edition = "2018"/a description="VRChat API Library for Rust"' Cargo.to # Remove messily pasted markdown at top of every file find src -type f -exec sed -i '/VRChat API Banner/d' {} \; +# Remove openapi version in every file +find src -type f -exec sed -i '/The version of the OpenAPI document/d' {} \; # Cookie storage sed -i 's/Client::new()/Client::builder().cookie_store(true).build().unwrap()/g' src/apis/configuration.rs diff --git a/src/apis/authentication_api.rs b/src/apis/authentication_api.rs index 217eced..42d4f68 100644 --- a/src/apis/authentication_api.rs +++ b/src/apis/authentication_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/avatars_api.rs b/src/apis/avatars_api.rs index 8c68d01..3b31d05 100644 --- a/src/apis/avatars_api.rs +++ b/src/apis/avatars_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 1a835a7..769d6f5 100644 --- a/src/apis/configuration.rs +++ b/src/apis/configuration.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 a1928fb..b5e8922 100644 --- a/src/apis/favorites_api.rs +++ b/src/apis/favorites_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 b983a23..79aa4ab 100644 --- a/src/apis/files_api.rs +++ b/src/apis/files_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 fdd9d91..4f668a6 100644 --- a/src/apis/friends_api.rs +++ b/src/apis/friends_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 2df1184..1c56e46 100644 --- a/src/apis/invite_api.rs +++ b/src/apis/invite_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/notifications_api.rs b/src/apis/notifications_api.rs index d7d5a2e..e4c0cba 100644 --- a/src/apis/notifications_api.rs +++ b/src/apis/notifications_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 5400b89..47ba78c 100644 --- a/src/apis/permissions_api.rs +++ b/src/apis/permissions_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 84c5e82..28c3161 100644 --- a/src/apis/playermoderation_api.rs +++ b/src/apis/playermoderation_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 5e65004..ba2db27 100644 --- a/src/apis/system_api.rs +++ b/src/apis/system_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/users_api.rs b/src/apis/users_api.rs index 1667908..3572b53 100644 --- a/src/apis/users_api.rs +++ b/src/apis/users_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 02e252e..3fc2f73 100644 --- a/src/apis/worlds_api.rs +++ b/src/apis/worlds_api.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/api_config.rs b/src/models/api_config.rs index 257c652..2288ab4 100644 --- a/src/models/api_config.rs +++ b/src/models/api_config.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/api_event_config.rs b/src/models/api_event_config.rs index 45f39b8..288a172 100644 --- a/src/models/api_event_config.rs +++ b/src/models/api_event_config.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/avatar.rs b/src/models/avatar.rs index 734753c..a555dca 100644 --- a/src/models/avatar.rs +++ b/src/models/avatar.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/avatar_unity_package_url_object.rs b/src/models/avatar_unity_package_url_object.rs index 2b7161e..5b96be1 100644 --- a/src/models/avatar_unity_package_url_object.rs +++ b/src/models/avatar_unity_package_url_object.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 a35779e..d4d5130 100644 --- a/src/models/current_user.rs +++ b/src/models/current_user.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/deployment_group.rs b/src/models/deployment_group.rs index 7ce7b7a..1d01769 100644 --- a/src/models/deployment_group.rs +++ b/src/models/deployment_group.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 7dca74b..57d480c 100644 --- a/src/models/developer_type.rs +++ b/src/models/developer_type.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/download_url_list.rs b/src/models/download_url_list.rs index 3cf2905..d67b50b 100644 --- a/src/models/download_url_list.rs +++ b/src/models/download_url_list.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/dynamic_world_row.rs b/src/models/dynamic_world_row.rs index ec0a996..6cd8f5b 100644 --- a/src/models/dynamic_world_row.rs +++ b/src/models/dynamic_world_row.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/error.rs b/src/models/error.rs index 0d96b07..a80019f 100644 --- a/src/models/error.rs +++ b/src/models/error.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 2c0c023..972040c 100644 --- a/src/models/favorite.rs +++ b/src/models/favorite.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_group.rs b/src/models/favorite_group.rs index 10150bb..d0e7839 100644 --- a/src/models/favorite_group.rs +++ b/src/models/favorite_group.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_group_visibility.rs b/src/models/favorite_group_visibility.rs index 69b9716..32a8983 100644 --- a/src/models/favorite_group_visibility.rs +++ b/src/models/favorite_group_visibility.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 3a7b19e..3afee8a 100644 --- a/src/models/favorite_type.rs +++ b/src/models/favorite_type.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 f191973..2eac615 100644 --- a/src/models/file.rs +++ b/src/models/file.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_data.rs b/src/models/file_data.rs index 5a1e3c4..1438d54 100644 --- a/src/models/file_data.rs +++ b/src/models/file_data.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_status.rs b/src/models/file_status.rs index 467c721..bca849d 100644 --- a/src/models/file_status.rs +++ b/src/models/file_status.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 1b0928c..8b9dc6f 100644 --- a/src/models/file_version.rs +++ b/src/models/file_version.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/friend_status.rs b/src/models/friend_status.rs index 1a1a430..ac6d825 100644 --- a/src/models/friend_status.rs +++ b/src/models/friend_status.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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.rs b/src/models/inline_object.rs index e8ac1c4..cdea362 100644 --- a/src/models/inline_object.rs +++ b/src/models/inline_object.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 509128a..b576ae8 100644 --- a/src/models/inline_object_1.rs +++ b/src/models/inline_object_1.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 d28c6ad..fe91ea6 100644 --- a/src/models/inline_object_10.rs +++ b/src/models/inline_object_10.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 15a3aae..fe72f4f 100644 --- a/src/models/inline_object_11.rs +++ b/src/models/inline_object_11.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 2dac907..abb33fb 100644 --- a/src/models/inline_object_12.rs +++ b/src/models/inline_object_12.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 2c2f3f4..8edbc89 100644 --- a/src/models/inline_object_13.rs +++ b/src/models/inline_object_13.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 81d0acc..a49cb71 100644 --- a/src/models/inline_object_2.rs +++ b/src/models/inline_object_2.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 512fc59..e87f19d 100644 --- a/src/models/inline_object_3.rs +++ b/src/models/inline_object_3.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 86a9a98..1e2ec4b 100644 --- a/src/models/inline_object_4.rs +++ b/src/models/inline_object_4.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 348142c..a6b45ef 100644 --- a/src/models/inline_object_5.rs +++ b/src/models/inline_object_5.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 1947571..f4e43de 100644 --- a/src/models/inline_object_6.rs +++ b/src/models/inline_object_6.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 aa79227..528f762 100644 --- a/src/models/inline_object_7.rs +++ b/src/models/inline_object_7.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 1ec6d3a..f6f31aa 100644 --- a/src/models/inline_object_8.rs +++ b/src/models/inline_object_8.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 d31c1d2..7f427d2 100644 --- a/src/models/inline_object_9.rs +++ b/src/models/inline_object_9.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 e91f21c..79bf3af 100644 --- a/src/models/inline_response_200.rs +++ b/src/models/inline_response_200.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 e67ab91..f6735af 100644 --- a/src/models/inline_response_200_1.rs +++ b/src/models/inline_response_200_1.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 f2def57..0b2e01c 100644 --- a/src/models/inline_response_200_2.rs +++ b/src/models/inline_response_200_2.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 f6c55d1..b914883 100644 --- a/src/models/inline_response_200_3.rs +++ b/src/models/inline_response_200_3.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 3648130..9712ebd 100644 --- a/src/models/inline_response_200_4.rs +++ b/src/models/inline_response_200_4.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 fe1d9cb..dbdfb10 100644 --- a/src/models/inline_response_200_5.rs +++ b/src/models/inline_response_200_5.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 489db92..187b9ef 100644 --- a/src/models/inline_response_200_6.rs +++ b/src/models/inline_response_200_6.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 3a2117f..5d58281 100644 --- a/src/models/inline_response_400.rs +++ b/src/models/inline_response_400.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 7e4b9f6..9701190 100644 --- a/src/models/instance.rs +++ b/src/models/instance.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.4.1 * Contact: me@ruby.js.org * Generated by: https://openapi-generator.tech */ @@ -19,7 +18,7 @@ pub struct Instance { #[serde(rename = "capacity")] pub capacity: i32, #[serde(rename = "clientNumber")] - pub client_number: i32, + pub client_number: String, #[serde(rename = "full")] pub full: bool, #[serde(rename = "id")] @@ -34,8 +33,8 @@ pub struct Instance { pub name: String, #[serde(rename = "nonce", skip_serializing_if = "Option::is_none")] pub nonce: Option, - #[serde(rename = "ownerId")] - pub owner_id: String, + #[serde(rename = "ownerId", skip_serializing_if = "Option::is_none")] + pub owner_id: Option, #[serde(rename = "permanent")] pub permanent: bool, #[serde(rename = "photonRegion")] @@ -61,7 +60,7 @@ pub struct Instance { } impl 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 { + pub fn new(active: bool, can_request_invite: bool, capacity: i32, client_number: String, full: bool, id: String, instance_id: String, location: String, n_users: i32, name: 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, @@ -74,7 +73,7 @@ impl Instance { n_users, name, nonce: None, - owner_id, + owner_id: None, permanent, photon_region, platforms: Box::new(platforms), diff --git a/src/models/instance_platforms.rs b/src/models/instance_platforms.rs index 31c2e5d..b2200ad 100644 --- a/src/models/instance_platforms.rs +++ b/src/models/instance_platforms.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_message.rs b/src/models/invite_message.rs index c7115fc..06d20c2 100644 --- a/src/models/invite_message.rs +++ b/src/models/invite_message.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_message_type.rs b/src/models/invite_message_type.rs index 4280cf1..ad21e35 100644 --- a/src/models/invite_message_type.rs +++ b/src/models/invite_message_type.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 index 3349eb6..cdaac76 100644 --- a/src/models/invite_request.rs +++ b/src/models/invite_request.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_response.rs b/src/models/invite_response.rs index 315b5dd..9be2b65 100644 --- a/src/models/invite_response.rs +++ b/src/models/invite_response.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_unity_package.rs b/src/models/limited_unity_package.rs index c109c1c..edc6aa8 100644 --- a/src/models/limited_unity_package.rs +++ b/src/models/limited_unity_package.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 9810736..5e6cd76 100644 --- a/src/models/limited_user.rs +++ b/src/models/limited_user.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_world.rs b/src/models/limited_world.rs index 3ec9932..825e584 100644 --- a/src/models/limited_world.rs +++ b/src/models/limited_world.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/mime_type.rs b/src/models/mime_type.rs index 5a08fa1..f6b7c13 100644 --- a/src/models/mime_type.rs +++ b/src/models/mime_type.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/notification.rs b/src/models/notification.rs index d83c4b8..5528f1f 100644 --- a/src/models/notification.rs +++ b/src/models/notification.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/notification_type.rs b/src/models/notification_type.rs index 6fa417e..e544b80 100644 --- a/src/models/notification_type.rs +++ b/src/models/notification_type.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 23005c0..28b3f77 100644 --- a/src/models/past_display_name.rs +++ b/src/models/past_display_name.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 aa0ec79..6a4b39e 100644 --- a/src/models/permission.rs +++ b/src/models/permission.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/player_moderation.rs b/src/models/player_moderation.rs index b503afc..54f2a94 100644 --- a/src/models/player_moderation.rs +++ b/src/models/player_moderation.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/player_moderation_type.rs b/src/models/player_moderation_type.rs index 3fd7074..96fc9ed 100644 --- a/src/models/player_moderation_type.rs +++ b/src/models/player_moderation_type.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/public_announcement.rs b/src/models/public_announcement.rs index f119f63..ce67d68 100644 --- a/src/models/public_announcement.rs +++ b/src/models/public_announcement.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/release_status.rs b/src/models/release_status.rs index 8bb302f..9ef7568 100644 --- a/src/models/release_status.rs +++ b/src/models/release_status.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 d279276..d4df4fb 100644 --- a/src/models/response.rs +++ b/src/models/response.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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/success.rs b/src/models/success.rs index ce369f1..cf331ff 100644 --- a/src/models/success.rs +++ b/src/models/success.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 8cbcc80..f3b1d60 100644 --- a/src/models/unity_package.rs +++ b/src/models/unity_package.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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.rs b/src/models/user.rs index a978b12..b9e1fab 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_exists.rs b/src/models/user_exists.rs index d6e5c2e..a4c3061 100644 --- a/src/models/user_exists.rs +++ b/src/models/user_exists.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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_state.rs b/src/models/user_state.rs index 097765c..744a290 100644 --- a/src/models/user_state.rs +++ b/src/models/user_state.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 357e2a8..5a33e8d 100644 --- a/src/models/user_status.rs +++ b/src/models/user_status.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * 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 c58fc95..442db41 100644 --- a/src/models/world.rs +++ b/src/models/world.rs @@ -2,7 +2,6 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.4.1 * Contact: me@ruby.js.org * Generated by: https://openapi-generator.tech */