Upgrade Rust SDK to spec 1.16.7

This commit is contained in:
VRCCat
2024-03-22 06:33:27 +00:00
parent 540380355d
commit f291971620
7 changed files with 33 additions and 17 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "vrchatapi" name = "vrchatapi"
version = "1.16.6" version = "1.16.7"
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

@ -671,7 +671,7 @@ Name | Type | Description | Required | Notes
## get_group_invites ## get_group_invites
> Vec<crate::models::GroupMember> get_group_invites(group_id) > Vec<crate::models::GroupMember> get_group_invites(group_id, n, offset)
Get Group Invites Sent Get Group Invites Sent
Returns a list of members that have been invited to the Group. Returns a list of members that have been invited to the Group.
@ -682,6 +682,8 @@ Returns a list of members that have been invited to the Group.
Name | Type | Description | Required | Notes Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] | **group_id** | **String** | Must be a valid group ID. | [required] |
**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. | |
### Return type ### Return type
@ -795,7 +797,7 @@ Name | Type | Description | Required | Notes
## get_group_requests ## get_group_requests
> Vec<crate::models::GroupMember> get_group_requests(group_id) > Vec<crate::models::GroupMember> get_group_requests(group_id, n, offset)
Get Group Join Requests Get Group Join Requests
Returns a list of members that have requested to join the Group. Returns a list of members that have requested to join the Group.
@ -806,6 +808,8 @@ Returns a list of members that have requested to join the Group.
Name | Type | Description | Required | Notes Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] | **group_id** | **String** | Must be a valid group ID. | [required] |
**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. | |
### Return type ### Return type

14
package-lock.json generated
View File

@ -5,7 +5,7 @@
"packages": { "packages": {
"": { "": {
"dependencies": { "dependencies": {
"@openapitools/openapi-generator-cli": "^2.9.0" "@openapitools/openapi-generator-cli": "^2.13.1"
} }
}, },
"node_modules/@lukeed/csprng": { "node_modules/@lukeed/csprng": {
@ -110,9 +110,9 @@
} }
}, },
"node_modules/@openapitools/openapi-generator-cli": { "node_modules/@openapitools/openapi-generator-cli": {
"version": "2.9.0", "version": "2.13.1",
"resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.9.0.tgz", "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.1.tgz",
"integrity": "sha512-KQpftKeiMoH5aEI/amOVLFGkGeT3DyA7Atj7v7l8xT3O9xnIUpoDmMg0WBTEh+NHxEwEAITQNDzr+JLjkXVaKw==", "integrity": "sha512-WJB6MsFXlA69mpKCuR3hBsdFr7MptNhoIGlyvoYEorBQEg3cd6n1gACHx0fz20B3e03/imvorQlNMsrHTIeU9w==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@nestjs/axios": "3.0.1", "@nestjs/axios": "3.0.1",
@ -1223,9 +1223,9 @@
} }
}, },
"@openapitools/openapi-generator-cli": { "@openapitools/openapi-generator-cli": {
"version": "2.9.0", "version": "2.13.1",
"resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.9.0.tgz", "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.1.tgz",
"integrity": "sha512-KQpftKeiMoH5aEI/amOVLFGkGeT3DyA7Atj7v7l8xT3O9xnIUpoDmMg0WBTEh+NHxEwEAITQNDzr+JLjkXVaKw==", "integrity": "sha512-WJB6MsFXlA69mpKCuR3hBsdFr7MptNhoIGlyvoYEorBQEg3cd6n1gACHx0fz20B3e03/imvorQlNMsrHTIeU9w==",
"requires": { "requires": {
"@nestjs/axios": "3.0.1", "@nestjs/axios": "3.0.1",
"@nestjs/common": "10.3.0", "@nestjs/common": "10.3.0",

View File

@ -1,5 +1,5 @@
{ {
"dependencies": { "dependencies": {
"@openapitools/openapi-generator-cli": "^2.9.0" "@openapitools/openapi-generator-cli": "^2.13.1"
} }
} }

View File

@ -949,7 +949,7 @@ pub fn get_group_gallery_images(configuration: &configuration::Configuration, gr
} }
/// Returns a list of members that have been invited to the Group. /// Returns a list of members that have been invited to the Group.
pub fn get_group_invites(configuration: &configuration::Configuration, group_id: &str) -> Result<Vec<crate::models::GroupMember>, Error<GetGroupInvitesError>> { pub fn get_group_invites(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>) -> Result<Vec<crate::models::GroupMember>, Error<GetGroupInvitesError>> {
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;
@ -957,6 +957,12 @@ pub fn get_group_invites(configuration: &configuration::Configuration, group_id:
let local_var_uri_str = format!("{}/groups/{groupId}/invites", local_var_configuration.base_path, groupId=crate::apis::urlencode(group_id)); let local_var_uri_str = format!("{}/groups/{groupId}/invites", local_var_configuration.base_path, groupId=crate::apis::urlencode(group_id));
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
if let Some(ref local_var_str) = n {
local_var_req_builder = local_var_req_builder.query(&[("n", &local_var_str.to_string())]);
}
if let Some(ref local_var_str) = offset {
local_var_req_builder = local_var_req_builder.query(&[("offset", &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());
} }
@ -1070,7 +1076,7 @@ pub fn get_group_permissions(configuration: &configuration::Configuration, group
} }
/// Returns a list of members that have requested to join the Group. /// Returns a list of members that have requested to join the Group.
pub fn get_group_requests(configuration: &configuration::Configuration, group_id: &str) -> Result<Vec<crate::models::GroupMember>, Error<GetGroupRequestsError>> { pub fn get_group_requests(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>) -> Result<Vec<crate::models::GroupMember>, Error<GetGroupRequestsError>> {
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;
@ -1078,6 +1084,12 @@ pub fn get_group_requests(configuration: &configuration::Configuration, group_id
let local_var_uri_str = format!("{}/groups/{groupId}/requests", local_var_configuration.base_path, groupId=crate::apis::urlencode(group_id)); let local_var_uri_str = format!("{}/groups/{groupId}/requests", local_var_configuration.base_path, groupId=crate::apis::urlencode(group_id));
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
if let Some(ref local_var_str) = n {
local_var_req_builder = local_var_req_builder.query(&[("n", &local_var_str.to_string())]);
}
if let Some(ref local_var_str) = offset {
local_var_req_builder = local_var_req_builder.query(&[("offset", &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

@ -42,8 +42,8 @@ pub struct GroupLimitedMember {
/// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.
#[serde(rename = "managerNotes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] #[serde(rename = "managerNotes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub manager_notes: Option<Option<String>>, pub manager_notes: Option<Option<String>>,
#[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 = "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>,
} }

View File

@ -44,8 +44,8 @@ pub struct GroupMember {
/// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.
#[serde(rename = "managerNotes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] #[serde(rename = "managerNotes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub manager_notes: Option<Option<String>>, pub manager_notes: Option<Option<String>>,
#[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 = "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>,
} }