Upgrade Rust SDK to spec 1.18.3

This commit is contained in:
VRCCat
2024-09-17 18:40:15 +00:00
parent a0c6ed9f6e
commit a615f366e5
27 changed files with 67 additions and 39 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "vrchatapi" name = "vrchatapi"
version = "1.18.1" version = "1.18.3"
authors = ["vrchatapi.lpv0t@aries.fyi"] authors = ["vrchatapi.lpv0t@aries.fyi"]
description = "VRChat API Client for Rust" description = "VRChat API Client for Rust"
license = "MIT" license = "MIT"

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**tags** | Option<**Vec<String>**> | | [optional] **tags** | Option<**Vec<String>**> | | [optional]
**image_url** | **String** | | **image_url** | **String** | |
**release_status** | Option<[**models::ReleaseStatus**](ReleaseStatus.md)> | | [optional] **release_status** | Option<[**models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
**version** | Option<**f64**> | | [optional][default to 1] **version** | Option<**i32**> | | [optional][default to 1]
**unity_package_url** | Option<**String**> | | [optional] **unity_package_url** | Option<**String**> | | [optional]
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1] **unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]

View File

@ -5,9 +5,9 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**signature_md5** | **String** | | **signature_md5** | **String** | |
**signature_size_in_bytes** | **f64** | | **signature_size_in_bytes** | **i32** | |
**file_md5** | Option<**String**> | | [optional] **file_md5** | Option<**String**> | | [optional]
**file_size_in_bytes** | Option<**f64**> | | [optional] **file_size_in_bytes** | Option<**i32**> | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -55,6 +55,8 @@ Name | Type | Description | Notes
**profile_pic_override** | **String** | | **profile_pic_override** | **String** | |
**profile_pic_override_thumbnail** | **String** | | **profile_pic_override_thumbnail** | **String** | |
**pronouns** | **String** | | **pronouns** | **String** | |
**queued_instance** | Option<**String**> | | [optional]
**receive_mobile_invitations** | Option<**bool**> | | [optional]
**state** | [**models::UserState**](UserState.md) | | **state** | [**models::UserState**](UserState.md) | |
**status** | [**models::UserStatus**](UserStatus.md) | | **status** | [**models::UserStatus**](UserStatus.md) | |
**status_description** | **String** | | **status_description** | **String** | |

View File

@ -5,6 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**avatar_thumbnail** | Option<**String**> | | [optional] **avatar_thumbnail** | Option<**String**> | | [optional]
**current_avatar_tags** | Option<**String**> | | [optional]
**display_name** | Option<**String**> | | [optional] **display_name** | Option<**String**> | | [optional]
**groups** | Option<**Vec<String>**> | | [optional] **groups** | Option<**Vec<String>**> | | [optional]
**id** | Option<**String**> | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **id** | Option<**String**> | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
@ -16,6 +17,7 @@ Name | Type | Description | Notes
**status** | Option<**String**> | either a UserStatus or empty string | [optional] **status** | Option<**String**> | either a UserStatus or empty string | [optional]
**traveling_to_instance** | Option<**String**> | | [optional] **traveling_to_instance** | Option<**String**> | | [optional]
**traveling_to_world** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] **traveling_to_world** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
**user_icon** | Option<**String**> | | [optional]
**world** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] **world** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -6,8 +6,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**upload_id** | **String** | | **upload_id** | **String** | |
**file_name** | **String** | | **file_name** | **String** | |
**next_part_number** | **f64** | | **next_part_number** | **i32** | |
**max_parts** | **f64** | | **max_parts** | **i32** | |
**parts** | [**Vec<serde_json::Value>**](serde_json::Value.md) | | **parts** | [**Vec<serde_json::Value>**](serde_json::Value.md) | |
**etags** | [**Vec<serde_json::Value>**](serde_json::Value.md) | Unknown | **etags** | [**Vec<serde_json::Value>**](serde_json::Value.md) | Unknown |

View File

@ -831,7 +831,7 @@ Name | Type | Description | Required | Notes
## get_group_members ## get_group_members
> Vec<models::GroupMember> get_group_members(group_id, n, offset, sort) > Vec<models::GroupMember> get_group_members(group_id, n, offset, sort, role_id)
List Group Members List Group Members
Returns a List of all **other** Group Members. This endpoint will never return the user calling the endpoint. Information about the user calling the endpoint must be found in the `myMember` field of the Group object. Returns a List of all **other** Group Members. This endpoint will never return the user calling the endpoint. Information about the user calling the endpoint must be found in the `myMember` field of the Group object.
@ -845,6 +845,7 @@ Name | Type | Description | Required | Notes
**n** | Option<**i32**> | The number of objects to return. | |[default to 60] **n** | Option<**i32**> | The number of objects to return. | |[default to 60]
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | | **offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
**sort** | Option<[**GroupSearchSort**](.md)> | The sort order of Group Member results | | **sort** | Option<[**GroupSearchSort**](.md)> | The sort order of Group Member results | |
**role_id** | Option<**String**> | Only returns members with a specific groupRoleId | |
### Return type ### Return type

View File

@ -13,7 +13,7 @@ Name | Type | Description | Notes
**amount** | **f64** | | **amount** | **f64** | |
**description** | **String** | | **description** | **String** | |
**period** | [**models::SubscriptionPeriod**](SubscriptionPeriod.md) | | **period** | [**models::SubscriptionPeriod**](SubscriptionPeriod.md) | |
**tier** | **f64** | | **tier** | **i32** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -5,11 +5,11 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**agreement_id** | **String** | | **agreement_id** | **String** | |
**item_id** | **f64** | | **item_id** | **i32** | |
**agreement** | **String** | | **agreement** | **String** | |
**status** | **String** | This is NOT TransactionStatus, but whatever Steam return. | **status** | **String** | This is NOT TransactionStatus, but whatever Steam return. |
**period** | **String** | | **period** | **String** | |
**frequency** | **f64** | | **frequency** | **i32** | |
**billing_type** | **String** | | **billing_type** | **String** | |
**start_date** | **String** | | **start_date** | **String** | |
**end_date** | **String** | | **end_date** | **String** | |
@ -20,8 +20,8 @@ Name | Type | Description | Notes
**last_payment** | **String** | | **last_payment** | **String** | |
**last_amount** | **f64** | | **last_amount** | **f64** | |
**last_amount_vat** | **f64** | | **last_amount_vat** | **f64** | |
**outstanding** | **f64** | | **outstanding** | **i32** | |
**failed_attempts** | **f64** | | **failed_attempts** | **i32** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,6 +9,7 @@ Name | Type | Description | Notes
**asset_url_object** | Option<[**serde_json::Value**](.md)> | | [optional] **asset_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
**asset_version** | **i32** | | **asset_version** | **i32** | |
**created_at** | Option<**String**> | | [optional] **created_at** | Option<**String**> | | [optional]
**impostorizer_version** | Option<**String**> | | [optional]
**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`. | **platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. |
**plugin_url** | Option<**String**> | | [optional] **plugin_url** | Option<**String**> | | [optional]
**plugin_url_object** | Option<[**serde_json::Value**](.md)> | | [optional] **plugin_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**tags** | Option<**Vec<String>**> | | [optional] **tags** | Option<**Vec<String>**> | | [optional]
**image_url** | Option<**String**> | | [optional] **image_url** | Option<**String**> | | [optional]
**release_status** | Option<[**models::ReleaseStatus**](ReleaseStatus.md)> | | [optional] **release_status** | Option<[**models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
**version** | Option<**f64**> | | [optional][default to 1] **version** | Option<**i32**> | | [optional][default to 1]
**unity_package_url** | Option<**String**> | | [optional] **unity_package_url** | Option<**String**> | | [optional]
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1] **unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]

View File

@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**email** | Option<**String**> | | [optional] **email** | Option<**String**> | | [optional]
**birthday** | Option<[**String**](string.md)> | | [optional] **birthday** | Option<[**String**](string.md)> | | [optional]
**accepted_tos_version** | Option<**f64**> | | [optional] **accepted_tos_version** | Option<**i32**> | | [optional]
**tags** | Option<**Vec<String>**> | | [optional] **tags** | Option<**Vec<String>**> | | [optional]
**status** | Option<[**models::UserStatus**](UserStatus.md)> | | [optional] **status** | Option<[**models::UserStatus**](UserStatus.md)> | | [optional]
**status_description** | Option<**String**> | | [optional] **status_description** | Option<**String**> | | [optional]

View File

@ -21,10 +21,11 @@ Name | Type | Description | Notes
**is_friend** | **bool** | Either their `friendKey`, or empty string if you are not friends. Unknown usage. | **is_friend** | **bool** | Either their `friendKey`, or empty string if you are not friends. Unknown usage. |
**last_activity** | **String** | Either a date-time or empty string. | **last_activity** | **String** | Either a date-time or empty string. |
**last_login** | **String** | Either a date-time or empty string. | **last_login** | **String** | Either a date-time or empty string. |
**last_mobile** | Option<**String**> | | [optional]
**last_platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **last_platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. |
**location** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] **location** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
**note** | Option<**String**> | | [optional] **note** | Option<**String**> | | [optional]
**platform** | **String** | | **platform** | Option<**String**> | | [optional]
**profile_pic_override** | **String** | | **profile_pic_override** | **String** | |
**profile_pic_override_thumbnail** | **String** | | **profile_pic_override_thumbnail** | **String** | |
**pronouns** | **String** | | **pronouns** | **String** | |

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**amount** | **f64** | | **amount** | **f64** | |
**description** | **String** | | **description** | **String** | |
**period** | [**models::SubscriptionPeriod**](SubscriptionPeriod.md) | | **period** | [**models::SubscriptionPeriod**](SubscriptionPeriod.md) | |
**tier** | **f64** | | **tier** | **i32** | |
**active** | **bool** | | [default to true] **active** | **bool** | | [default to true]
**status** | [**models::TransactionStatus**](TransactionStatus.md) | | **status** | [**models::TransactionStatus**](TransactionStatus.md) | |
**starts** | Option<**String**> | | [optional] **starts** | Option<**String**> | | [optional]

View File

@ -1145,7 +1145,7 @@ pub async fn get_group_member(configuration: &configuration::Configuration, grou
} }
/// Returns a List of all **other** Group Members. This endpoint will never return the user calling the endpoint. Information about the user calling the endpoint must be found in the `myMember` field of the Group object. /// Returns a List of all **other** Group Members. This endpoint will never return the user calling the endpoint. Information about the user calling the endpoint must be found in the `myMember` field of the Group object.
pub async fn get_group_members(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>, sort: Option<models::GroupSearchSort>) -> Result<Vec<models::GroupMember>, Error<GetGroupMembersError>> { pub async fn get_group_members(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>, sort: Option<models::GroupSearchSort>, role_id: Option<&str>) -> Result<Vec<models::GroupMember>, Error<GetGroupMembersError>> {
let local_var_configuration = configuration; let local_var_configuration = configuration;
let local_var_client = &local_var_configuration.client; let local_var_client = &local_var_configuration.client;
@ -1162,6 +1162,9 @@ pub async fn get_group_members(configuration: &configuration::Configuration, gro
if let Some(ref local_var_str) = sort { if let Some(ref local_var_str) = sort {
local_var_req_builder = local_var_req_builder.query(&[("sort", &local_var_str.to_string())]); local_var_req_builder = local_var_req_builder.query(&[("sort", &local_var_str.to_string())]);
} }
if let Some(ref local_var_str) = role_id {
local_var_req_builder = local_var_req_builder.query(&[("roleId", &local_var_str.to_string())]);
}
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
} }

View File

@ -26,7 +26,7 @@ pub struct CreateAvatarRequest {
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")] #[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
pub release_status: Option<models::ReleaseStatus>, pub release_status: Option<models::ReleaseStatus>,
#[serde(rename = "version", skip_serializing_if = "Option::is_none")] #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
pub version: Option<f64>, pub version: Option<i32>,
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")] #[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]
pub unity_package_url: Option<String>, pub unity_package_url: Option<String>,
#[serde(rename = "unityVersion", skip_serializing_if = "Option::is_none")] #[serde(rename = "unityVersion", skip_serializing_if = "Option::is_none")]

View File

@ -14,15 +14,15 @@ pub struct CreateFileVersionRequest {
#[serde(rename = "signatureMd5")] #[serde(rename = "signatureMd5")]
pub signature_md5: String, pub signature_md5: String,
#[serde(rename = "signatureSizeInBytes")] #[serde(rename = "signatureSizeInBytes")]
pub signature_size_in_bytes: f64, pub signature_size_in_bytes: i32,
#[serde(rename = "fileMd5", skip_serializing_if = "Option::is_none")] #[serde(rename = "fileMd5", skip_serializing_if = "Option::is_none")]
pub file_md5: Option<String>, pub file_md5: Option<String>,
#[serde(rename = "fileSizeInBytes", skip_serializing_if = "Option::is_none")] #[serde(rename = "fileSizeInBytes", skip_serializing_if = "Option::is_none")]
pub file_size_in_bytes: Option<f64>, pub file_size_in_bytes: Option<i32>,
} }
impl CreateFileVersionRequest { impl CreateFileVersionRequest {
pub fn new(signature_md5: String, signature_size_in_bytes: f64) -> CreateFileVersionRequest { pub fn new(signature_md5: String, signature_size_in_bytes: i32) -> CreateFileVersionRequest {
CreateFileVersionRequest { CreateFileVersionRequest {
signature_md5, signature_md5,
signature_size_in_bytes, signature_size_in_bytes,

View File

@ -119,6 +119,10 @@ pub struct CurrentUser {
pub profile_pic_override_thumbnail: String, pub profile_pic_override_thumbnail: String,
#[serde(rename = "pronouns")] #[serde(rename = "pronouns")]
pub pronouns: String, pub pronouns: String,
#[serde(rename = "queuedInstance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub queued_instance: Option<Option<String>>,
#[serde(rename = "receiveMobileInvitations", skip_serializing_if = "Option::is_none")]
pub receive_mobile_invitations: Option<bool>,
#[serde(rename = "state")] #[serde(rename = "state")]
pub state: models::UserState, pub state: models::UserState,
#[serde(rename = "status")] #[serde(rename = "status")]
@ -204,6 +208,8 @@ impl CurrentUser {
profile_pic_override, profile_pic_override,
profile_pic_override_thumbnail, profile_pic_override_thumbnail,
pronouns, pronouns,
queued_instance: None,
receive_mobile_invitations: None,
state, state,
status, status,
status_description, status_description,

View File

@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize};
pub struct CurrentUserPresence { pub struct CurrentUserPresence {
#[serde(rename = "avatarThumbnail", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] #[serde(rename = "avatarThumbnail", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub avatar_thumbnail: Option<Option<String>>, pub avatar_thumbnail: Option<Option<String>>,
#[serde(rename = "currentAvatarTags", skip_serializing_if = "Option::is_none")]
pub current_avatar_tags: Option<String>,
#[serde(rename = "displayName", skip_serializing_if = "Option::is_none")] #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>, pub display_name: Option<String>,
#[serde(rename = "groups", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] #[serde(rename = "groups", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
@ -40,6 +42,8 @@ pub struct CurrentUserPresence {
/// WorldID be \"offline\" on User profiles if you are not friends with that user. /// WorldID be \"offline\" on User profiles if you are not friends with that user.
#[serde(rename = "travelingToWorld", skip_serializing_if = "Option::is_none")] #[serde(rename = "travelingToWorld", skip_serializing_if = "Option::is_none")]
pub traveling_to_world: Option<String>, pub traveling_to_world: Option<String>,
#[serde(rename = "userIcon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub user_icon: Option<Option<String>>,
/// WorldID be \"offline\" on User profiles if you are not friends with that user. /// WorldID be \"offline\" on User profiles if you are not friends with that user.
#[serde(rename = "world", skip_serializing_if = "Option::is_none")] #[serde(rename = "world", skip_serializing_if = "Option::is_none")]
pub world: Option<String>, pub world: Option<String>,
@ -49,6 +53,7 @@ impl CurrentUserPresence {
pub fn new() -> CurrentUserPresence { pub fn new() -> CurrentUserPresence {
CurrentUserPresence { CurrentUserPresence {
avatar_thumbnail: None, avatar_thumbnail: None,
current_avatar_tags: None,
display_name: None, display_name: None,
groups: None, groups: None,
id: None, id: None,
@ -60,6 +65,7 @@ impl CurrentUserPresence {
status: None, status: None,
traveling_to_instance: None, traveling_to_instance: None,
traveling_to_world: None, traveling_to_world: None,
user_icon: None,
world: None, world: None,
} }
} }

View File

@ -17,9 +17,9 @@ pub struct FileVersionUploadStatus {
#[serde(rename = "fileName")] #[serde(rename = "fileName")]
pub file_name: String, pub file_name: String,
#[serde(rename = "nextPartNumber")] #[serde(rename = "nextPartNumber")]
pub next_part_number: f64, pub next_part_number: i32,
#[serde(rename = "maxParts")] #[serde(rename = "maxParts")]
pub max_parts: f64, pub max_parts: i32,
#[serde(rename = "parts")] #[serde(rename = "parts")]
pub parts: Vec<serde_json::Value>, pub parts: Vec<serde_json::Value>,
/// Unknown /// Unknown
@ -28,7 +28,7 @@ pub struct FileVersionUploadStatus {
} }
impl FileVersionUploadStatus { impl FileVersionUploadStatus {
pub fn new(upload_id: String, file_name: String, next_part_number: f64, max_parts: f64, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> FileVersionUploadStatus { pub fn new(upload_id: String, file_name: String, next_part_number: i32, max_parts: i32, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> FileVersionUploadStatus {
FileVersionUploadStatus { FileVersionUploadStatus {
upload_id, upload_id,
file_name, file_name,

View File

@ -31,11 +31,11 @@ pub struct Subscription {
#[serde(rename = "period")] #[serde(rename = "period")]
pub period: models::SubscriptionPeriod, pub period: models::SubscriptionPeriod,
#[serde(rename = "tier")] #[serde(rename = "tier")]
pub tier: f64, pub tier: i32,
} }
impl Subscription { impl Subscription {
pub fn new(id: String, steam_item_id: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: f64) -> Subscription { pub fn new(id: String, steam_item_id: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: i32) -> Subscription {
Subscription { Subscription {
id, id,
steam_item_id, steam_item_id,

View File

@ -15,7 +15,7 @@ pub struct TransactionAgreement {
#[serde(rename = "agreementId")] #[serde(rename = "agreementId")]
pub agreement_id: String, pub agreement_id: String,
#[serde(rename = "itemId")] #[serde(rename = "itemId")]
pub item_id: f64, pub item_id: i32,
#[serde(rename = "agreement")] #[serde(rename = "agreement")]
pub agreement: String, pub agreement: String,
/// This is NOT TransactionStatus, but whatever Steam return. /// This is NOT TransactionStatus, but whatever Steam return.
@ -24,7 +24,7 @@ pub struct TransactionAgreement {
#[serde(rename = "period")] #[serde(rename = "period")]
pub period: String, pub period: String,
#[serde(rename = "frequency")] #[serde(rename = "frequency")]
pub frequency: f64, pub frequency: i32,
#[serde(rename = "billingType")] #[serde(rename = "billingType")]
pub billing_type: String, pub billing_type: String,
#[serde(rename = "startDate")] #[serde(rename = "startDate")]
@ -46,14 +46,14 @@ pub struct TransactionAgreement {
#[serde(rename = "lastAmountVat")] #[serde(rename = "lastAmountVat")]
pub last_amount_vat: f64, pub last_amount_vat: f64,
#[serde(rename = "outstanding")] #[serde(rename = "outstanding")]
pub outstanding: f64, pub outstanding: i32,
#[serde(rename = "failedAttempts")] #[serde(rename = "failedAttempts")]
pub failed_attempts: f64, pub failed_attempts: i32,
} }
impl TransactionAgreement { impl TransactionAgreement {
/// Represents a single Transaction, which is likely between VRChat and Steam. /// Represents a single Transaction, which is likely between VRChat and Steam.
pub fn new(agreement_id: String, item_id: f64, agreement: String, status: String, period: String, frequency: f64, billing_type: String, start_date: String, end_date: String, recurring_amt: f64, currency: String, time_created: String, next_payment: String, last_payment: String, last_amount: f64, last_amount_vat: f64, outstanding: f64, failed_attempts: f64) -> TransactionAgreement { pub fn new(agreement_id: String, item_id: i32, agreement: String, status: String, period: String, frequency: i32, billing_type: String, start_date: String, end_date: String, recurring_amt: f64, currency: String, time_created: String, next_payment: String, last_payment: String, last_amount: f64, last_amount_vat: f64, outstanding: i32, failed_attempts: i32) -> TransactionAgreement {
TransactionAgreement { TransactionAgreement {
agreement_id, agreement_id,
item_id, item_id,

View File

@ -22,6 +22,8 @@ pub struct UnityPackage {
pub asset_version: i32, pub asset_version: i32,
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>, pub created_at: Option<String>,
#[serde(rename = "impostorizerVersion", skip_serializing_if = "Option::is_none")]
pub impostorizer_version: Option<String>,
/// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
#[serde(rename = "platform")] #[serde(rename = "platform")]
pub platform: String, pub platform: String,
@ -49,6 +51,7 @@ impl UnityPackage {
asset_url_object: None, asset_url_object: None,
asset_version, asset_version,
created_at: None, created_at: None,
impostorizer_version: None,
platform, platform,
plugin_url: None, plugin_url: None,
plugin_url_object: None, plugin_url_object: None,

View File

@ -26,7 +26,7 @@ pub struct UpdateAvatarRequest {
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")] #[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
pub release_status: Option<models::ReleaseStatus>, pub release_status: Option<models::ReleaseStatus>,
#[serde(rename = "version", skip_serializing_if = "Option::is_none")] #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
pub version: Option<f64>, pub version: Option<i32>,
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")] #[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]
pub unity_package_url: Option<String>, pub unity_package_url: Option<String>,
#[serde(rename = "unityVersion", skip_serializing_if = "Option::is_none")] #[serde(rename = "unityVersion", skip_serializing_if = "Option::is_none")]

View File

@ -16,7 +16,7 @@ pub struct UpdateUserRequest {
#[serde(rename = "birthday", skip_serializing_if = "Option::is_none")] #[serde(rename = "birthday", skip_serializing_if = "Option::is_none")]
pub birthday: Option<String>, pub birthday: Option<String>,
#[serde(rename = "acceptedTOSVersion", skip_serializing_if = "Option::is_none")] #[serde(rename = "acceptedTOSVersion", skip_serializing_if = "Option::is_none")]
pub accepted_tos_version: Option<f64>, pub accepted_tos_version: Option<i32>,
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")] #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
#[serde(rename = "status", skip_serializing_if = "Option::is_none")] #[serde(rename = "status", skip_serializing_if = "Option::is_none")]

View File

@ -53,6 +53,8 @@ pub struct User {
/// Either a date-time or empty string. /// Either a date-time or empty string.
#[serde(rename = "last_login")] #[serde(rename = "last_login")]
pub last_login: String, pub last_login: String,
#[serde(rename = "last_mobile", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_mobile: Option<Option<String>>,
/// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
#[serde(rename = "last_platform")] #[serde(rename = "last_platform")]
pub last_platform: String, pub last_platform: String,
@ -61,8 +63,8 @@ pub struct User {
pub location: Option<String>, pub location: Option<String>,
#[serde(rename = "note", skip_serializing_if = "Option::is_none")] #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
pub note: Option<String>, pub note: Option<String>,
#[serde(rename = "platform")] #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
pub platform: String, pub platform: Option<String>,
#[serde(rename = "profilePicOverride")] #[serde(rename = "profilePicOverride")]
pub profile_pic_override: String, pub profile_pic_override: String,
#[serde(rename = "profilePicOverrideThumbnail")] #[serde(rename = "profilePicOverrideThumbnail")]
@ -94,7 +96,7 @@ pub struct User {
} }
impl User { impl User {
pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec<String>, date_joined: String, developer_type: models::DeveloperType, display_name: String, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, platform: String, profile_pic_override: String, profile_pic_override_thumbnail: String, pronouns: String, state: models::UserState, status: models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User { pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec<String>, date_joined: String, developer_type: models::DeveloperType, display_name: String, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, profile_pic_override: String, profile_pic_override_thumbnail: String, pronouns: String, state: models::UserState, status: models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User {
User { User {
allow_avatar_copying, allow_avatar_copying,
badges: None, badges: None,
@ -113,10 +115,11 @@ impl User {
is_friend, is_friend,
last_activity, last_activity,
last_login, last_login,
last_mobile: None,
last_platform, last_platform,
location: None, location: None,
note: None, note: None,
platform, platform: None,
profile_pic_override, profile_pic_override,
profile_pic_override_thumbnail, profile_pic_override_thumbnail,
pronouns, pronouns,

View File

@ -28,7 +28,7 @@ pub struct UserSubscription {
#[serde(rename = "period")] #[serde(rename = "period")]
pub period: models::SubscriptionPeriod, pub period: models::SubscriptionPeriod,
#[serde(rename = "tier")] #[serde(rename = "tier")]
pub tier: f64, pub tier: i32,
#[serde(rename = "active")] #[serde(rename = "active")]
pub active: bool, pub active: bool,
#[serde(rename = "status")] #[serde(rename = "status")]
@ -48,7 +48,7 @@ pub struct UserSubscription {
} }
impl UserSubscription { impl UserSubscription {
pub fn new(id: String, transaction_id: String, store: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: f64, active: bool, status: models::TransactionStatus, expires: String, created_at: String, updated_at: String, license_groups: Vec<String>, is_gift: bool) -> UserSubscription { pub fn new(id: String, transaction_id: String, store: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: i32, active: bool, status: models::TransactionStatus, expires: String, created_at: String, updated_at: String, license_groups: Vec<String>, is_gift: bool) -> UserSubscription {
UserSubscription { UserSubscription {
id, id,
transaction_id, transaction_id,