diff --git a/Cargo.toml b/Cargo.toml index a02c39e..4a20654 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vrchatapi" -version = "1.7.6" +version = "1.7.7" authors = ["OpenAPI Generator team and contributors"] license = "MIT" edition = "2018" diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index 4b087bc..e4f675f 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -111,7 +111,7 @@ Retrieve all of the current user's notifications. Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**_type** | Option<**String**> | Only send notifications of this type (can use `all` for all). | | +**_type** | Option<**String**> | Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated. | | **sent** | Option<**bool**> | Return notifications sent by the user. Must be false or omitted. | | **hidden** | Option<**bool**> | Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`. | | **after** | Option<**String**> | Only return notifications sent after this Date. Ignored if type is `friendRequest`. | | diff --git a/docs/World.md b/docs/World.md index 1806ca4..81f0de3 100644 --- a/docs/World.md +++ b/docs/World.md @@ -14,16 +14,16 @@ Name | Type | Description | Notes **heat** | **i32** | | [default to 0] **id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **image_url** | **String** | | -**instances** | Option<[**Vec>**](array.md)> | | [optional] +**instances** | Option<[**Vec>**](array.md)> | Will always be an empty list when unauthenticated. | [optional] **labs_publication_date** | **String** | | **name** | **String** | | **namespace** | **String** | | -**occupants** | Option<**i32**> | | [optional][default to 0] +**occupants** | Option<**i32**> | Will always be `0` when unauthenticated. | [optional][default to 0] **organization** | **String** | | [default to vrchat] **popularity** | **i32** | | [default to 0] **preview_youtube_id** | Option<**String**> | | [optional] -**private_occupants** | Option<**i32**> | | [optional][default to 0] -**public_occupants** | Option<**i32**> | | [optional][default to 0] +**private_occupants** | Option<**i32**> | Will always be `0` when unauthenticated. | [optional][default to 0] +**public_occupants** | Option<**i32**> | Will always be `0` when unauthenticated. | [optional][default to 0] **publication_date** | **String** | | **release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | | **tags** | **Vec** | | diff --git a/docs/WorldsApi.md b/docs/WorldsApi.md index 315da76..52869c5 100644 --- a/docs/WorldsApi.md +++ b/docs/WorldsApi.md @@ -210,7 +210,7 @@ Name | Type | Description | Required | Notes > crate::models::World get_world(world_id) Get World by ID -Get information about a specific World. +Get information about a specific World. Works unauthenticated but when so will always return `0` for certain fields. ### Parameters diff --git a/src/apis/worlds_api.rs b/src/apis/worlds_api.rs index e7a245c..eba4e03 100644 --- a/src/apis/worlds_api.rs +++ b/src/apis/worlds_api.rs @@ -381,7 +381,7 @@ pub fn get_recent_worlds(configuration: &configuration::Configuration, featured: } } -/// Get information about a specific World. +/// Get information about a specific World. Works unauthenticated but when so will always return `0` for certain fields. pub fn get_world(configuration: &configuration::Configuration, world_id: &str) -> Result> { let local_var_configuration = configuration; diff --git a/src/models/world.rs b/src/models/world.rs index 846bdcc..c3b68d4 100644 --- a/src/models/world.rs +++ b/src/models/world.rs @@ -33,6 +33,7 @@ pub struct World { pub id: String, #[serde(rename = "imageUrl")] pub image_url: String, + /// Will always be an empty list when unauthenticated. #[serde(rename = "instances", skip_serializing_if = "Option::is_none")] pub instances: Option>>, #[serde(rename = "labsPublicationDate")] @@ -41,6 +42,7 @@ pub struct World { pub name: String, #[serde(rename = "namespace")] pub namespace: String, + /// Will always be `0` when unauthenticated. #[serde(rename = "occupants", skip_serializing_if = "Option::is_none")] pub occupants: Option, #[serde(rename = "organization")] @@ -49,8 +51,10 @@ pub struct World { pub popularity: i32, #[serde(rename = "previewYoutubeId", skip_serializing_if = "Option::is_none")] pub preview_youtube_id: Option, + /// Will always be `0` when unauthenticated. #[serde(rename = "privateOccupants", skip_serializing_if = "Option::is_none")] pub private_occupants: Option, + /// Will always be `0` when unauthenticated. #[serde(rename = "publicOccupants", skip_serializing_if = "Option::is_none")] pub public_occupants: Option, #[serde(rename = "publicationDate")]