mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Upgrade Rust SDK to spec 1.18.1
This commit is contained in:
@ -8,6 +8,7 @@
|
|||||||
| Use | use |
|
| Use | use |
|
||||||
| Eu | eu |
|
| Eu | eu |
|
||||||
| Jp | jp |
|
| Jp | jp |
|
||||||
|
| Unknown | 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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**user_exists** | **bool** | Status if a user exist with that username or userId. | [default to false]
|
**user_exists** | **bool** | Status if a user exist with that username or userId. | [default to false]
|
||||||
|
**name_ok** | **bool** | Is the username valid? | [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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
30
package-lock.json
generated
30
package-lock.json
generated
@ -5,7 +5,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@openapitools/openapi-generator-cli": "^2.13.4"
|
"@openapitools/openapi-generator-cli": "^2.13.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@lukeed/csprng": {
|
"node_modules/@lukeed/csprng": {
|
||||||
@ -109,16 +109,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@openapitools/openapi-generator-cli": {
|
"node_modules/@openapitools/openapi-generator-cli": {
|
||||||
"version": "2.13.4",
|
"version": "2.13.5",
|
||||||
"resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz",
|
"resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.5.tgz",
|
||||||
"integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==",
|
"integrity": "sha512-9VgeKOTiiatKSwZDKKB3C86cW8tN9eDcFohotD4eisdK38UQswk/4Ysoq9KChRCbymjoMp6AIDHPtK1DQ2fTgw==",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nestjs/axios": "3.0.2",
|
"@nestjs/axios": "3.0.2",
|
||||||
"@nestjs/common": "10.3.0",
|
"@nestjs/common": "10.3.0",
|
||||||
"@nestjs/core": "10.3.0",
|
"@nestjs/core": "10.3.0",
|
||||||
"@nuxtjs/opencollective": "0.3.2",
|
"@nuxtjs/opencollective": "0.3.2",
|
||||||
"axios": "1.6.8",
|
"axios": "1.7.4",
|
||||||
"chalk": "4.1.2",
|
"chalk": "4.1.2",
|
||||||
"commander": "8.3.0",
|
"commander": "8.3.0",
|
||||||
"compare-versions": "4.1.4",
|
"compare-versions": "4.1.4",
|
||||||
@ -197,9 +197,9 @@
|
|||||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||||
},
|
},
|
||||||
"node_modules/axios": {
|
"node_modules/axios": {
|
||||||
"version": "1.6.8",
|
"version": "1.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
|
||||||
"integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
|
"integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.6",
|
"follow-redirects": "^1.15.6",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
@ -1267,15 +1267,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@openapitools/openapi-generator-cli": {
|
"@openapitools/openapi-generator-cli": {
|
||||||
"version": "2.13.4",
|
"version": "2.13.5",
|
||||||
"resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz",
|
"resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.5.tgz",
|
||||||
"integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==",
|
"integrity": "sha512-9VgeKOTiiatKSwZDKKB3C86cW8tN9eDcFohotD4eisdK38UQswk/4Ysoq9KChRCbymjoMp6AIDHPtK1DQ2fTgw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@nestjs/axios": "3.0.2",
|
"@nestjs/axios": "3.0.2",
|
||||||
"@nestjs/common": "10.3.0",
|
"@nestjs/common": "10.3.0",
|
||||||
"@nestjs/core": "10.3.0",
|
"@nestjs/core": "10.3.0",
|
||||||
"@nuxtjs/opencollective": "0.3.2",
|
"@nuxtjs/opencollective": "0.3.2",
|
||||||
"axios": "1.6.8",
|
"axios": "1.7.4",
|
||||||
"chalk": "4.1.2",
|
"chalk": "4.1.2",
|
||||||
"commander": "8.3.0",
|
"commander": "8.3.0",
|
||||||
"compare-versions": "4.1.4",
|
"compare-versions": "4.1.4",
|
||||||
@ -1326,9 +1326,9 @@
|
|||||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||||
},
|
},
|
||||||
"axios": {
|
"axios": {
|
||||||
"version": "1.6.8",
|
"version": "1.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
|
||||||
"integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
|
"integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"follow-redirects": "^1.15.6",
|
"follow-redirects": "^1.15.6",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@openapitools/openapi-generator-cli": "^2.13.4"
|
"@openapitools/openapi-generator-cli": "^2.13.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,8 +59,8 @@ pub struct Group {
|
|||||||
pub created_at: Option<String>,
|
pub created_at: Option<String>,
|
||||||
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
|
||||||
pub updated_at: Option<String>,
|
pub updated_at: Option<String>,
|
||||||
#[serde(rename = "lastPostCreatedAt", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "lastPostCreatedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||||
pub last_post_created_at: Option<String>,
|
pub last_post_created_at: Option<Option<String>>,
|
||||||
#[serde(rename = "onlineMemberCount", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "onlineMemberCount", skip_serializing_if = "Option::is_none")]
|
||||||
pub online_member_count: Option<i32>,
|
pub online_member_count: Option<i32>,
|
||||||
#[serde(rename = "membershipStatus", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "membershipStatus", skip_serializing_if = "Option::is_none")]
|
||||||
|
@ -20,8 +20,8 @@ pub struct GroupMyMember {
|
|||||||
pub user_id: Option<String>,
|
pub user_id: Option<String>,
|
||||||
#[serde(rename = "roleIds", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "roleIds", skip_serializing_if = "Option::is_none")]
|
||||||
pub role_ids: Option<Vec<String>>,
|
pub role_ids: Option<Vec<String>>,
|
||||||
#[serde(rename = "acceptedByDisplayName", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "acceptedByDisplayName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||||
pub accepted_by_display_name: Option<String>,
|
pub accepted_by_display_name: Option<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.
|
/// 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.
|
||||||
#[serde(rename = "acceptedById", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "acceptedById", skip_serializing_if = "Option::is_none")]
|
||||||
pub accepted_by_id: Option<String>,
|
pub accepted_by_id: Option<String>,
|
||||||
@ -45,8 +45,8 @@ pub struct GroupMyMember {
|
|||||||
pub has2_fa: Option<bool>,
|
pub has2_fa: Option<bool>,
|
||||||
#[serde(rename = "hasJoinedFromPurchase", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "hasJoinedFromPurchase", skip_serializing_if = "Option::is_none")]
|
||||||
pub has_joined_from_purchase: Option<bool>,
|
pub has_joined_from_purchase: Option<bool>,
|
||||||
#[serde(rename = "lastPostReadAt", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "lastPostReadAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||||
pub last_post_read_at: Option<String>,
|
pub last_post_read_at: Option<Option<String>>,
|
||||||
#[serde(rename = "mRoleIds", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "mRoleIds", skip_serializing_if = "Option::is_none")]
|
||||||
pub m_role_ids: Option<Vec<String>>,
|
pub m_role_ids: Option<Vec<String>>,
|
||||||
#[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
|
||||||
|
@ -21,6 +21,8 @@ pub enum InstanceRegion {
|
|||||||
Eu,
|
Eu,
|
||||||
#[serde(rename = "jp")]
|
#[serde(rename = "jp")]
|
||||||
Jp,
|
Jp,
|
||||||
|
#[serde(rename = "unknown")]
|
||||||
|
Unknown,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,6 +33,7 @@ impl std::fmt::Display for InstanceRegion {
|
|||||||
Self::Use => write!(f, "use"),
|
Self::Use => write!(f, "use"),
|
||||||
Self::Eu => write!(f, "eu"),
|
Self::Eu => write!(f, "eu"),
|
||||||
Self::Jp => write!(f, "jp"),
|
Self::Jp => write!(f, "jp"),
|
||||||
|
Self::Unknown => write!(f, "unknown"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,13 +15,17 @@ pub struct UserExists {
|
|||||||
/// Status if a user exist with that username or userId.
|
/// Status if a user exist with that username or userId.
|
||||||
#[serde(rename = "userExists")]
|
#[serde(rename = "userExists")]
|
||||||
pub user_exists: bool,
|
pub user_exists: bool,
|
||||||
|
/// Is the username valid?
|
||||||
|
#[serde(rename = "nameOk")]
|
||||||
|
pub name_ok: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl UserExists {
|
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.
|
/// 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 {
|
pub fn new(user_exists: bool, name_ok: bool) -> UserExists {
|
||||||
UserExists {
|
UserExists {
|
||||||
user_exists,
|
user_exists,
|
||||||
|
name_ok,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user