Upgrade Rust SDK to spec 1.7.7

This commit is contained in:
VRCCat
2022-10-16 00:29:31 +00:00
parent 572b3ce012
commit 5257704d26
6 changed files with 12 additions and 8 deletions

View File

@ -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"

View File

@ -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`. | |

View File

@ -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<Vec<serde_json::Value>>**](array.md)> | | [optional]
**instances** | Option<[**Vec<Vec<serde_json::Value>>**](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<String>** | |

View File

@ -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

View File

@ -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<crate::models::World, Error<GetWorldError>> {
let local_var_configuration = configuration;

View File

@ -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<Vec<Vec<serde_json::Value>>>,
#[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<i32>,
#[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<String>,
/// Will always be `0` when unauthenticated.
#[serde(rename = "privateOccupants", skip_serializing_if = "Option::is_none")]
pub private_occupants: Option<i32>,
/// Will always be `0` when unauthenticated.
#[serde(rename = "publicOccupants", skip_serializing_if = "Option::is_none")]
pub public_occupants: Option<i32>,
#[serde(rename = "publicationDate")]