Skip to content

Commit

Permalink
Upgrade Rust SDK to spec 1.16.8
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Apr 14, 2024
1 parent f291971 commit 0bac202
Show file tree
Hide file tree
Showing 25 changed files with 137 additions and 50 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ docs/GroupAnnouncement.md
docs/GroupAuditLogEntry.md
docs/GroupGallery.md
docs/GroupGalleryImage.md
docs/GroupJoinRequestAction.md
docs/GroupJoinState.md
docs/GroupLimitedMember.md
docs/GroupMember.md
Expand Down Expand Up @@ -202,6 +203,7 @@ src/models/group_announcement.rs
src/models/group_audit_log_entry.rs
src/models/group_gallery.rs
src/models/group_gallery_image.rs
src/models/group_join_request_action.rs
src/models/group_join_state.rs
src/models/group_limited_member.rs
src/models/group_member.rs
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vrchatapi"
version = "1.16.7"
version = "1.16.8"
authors = ["[email protected]"]
description = "VRChat API Client for Rust"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions docs/AuthenticationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Finishes the login sequence with a normal 2FA-generated code for accounts with 2

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**two_factor_auth_code** | Option<[**TwoFactorAuthCode**](TwoFactorAuthCode.md)> | | |
**two_factor_auth_code** | [**TwoFactorAuthCode**](TwoFactorAuthCode.md) | | [required] |

### Return type

Expand Down Expand Up @@ -174,7 +174,7 @@ Finishes the login sequence with an 2FA email code.

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**two_factor_email_code** | Option<[**TwoFactorEmailCode**](TwoFactorEmailCode.md)> | | |
**two_factor_email_code** | [**TwoFactorEmailCode**](TwoFactorEmailCode.md) | | [required] |

### Return type

Expand Down Expand Up @@ -231,7 +231,7 @@ Finishes the login sequence with an OTP (One Time Password) recovery code for ac

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**two_factor_auth_code** | Option<[**TwoFactorAuthCode**](TwoFactorAuthCode.md)> | | |
**two_factor_auth_code** | [**TwoFactorAuthCode**](TwoFactorAuthCode.md) | | [required] |

### Return type

Expand Down
10 changes: 10 additions & 0 deletions docs/GroupJoinRequestAction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GroupJoinRequestAction

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/GroupLimitedMember.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**role_ids** | Option<**Vec<String>**> | | [optional]
**m_role_ids** | Option<**Vec<String>**> | | [optional]
**joined_at** | Option<**String**> | | [optional]
**membership_status** | Option<**String**> | | [optional]
**membership_status** | Option<[**crate::models::GroupMemberStatus**](GroupMemberStatus.md)> | | [optional]
**visibility** | Option<**String**> | | [optional]
**is_subscribed_to_announcements** | Option<**bool**> | | [optional][default to false]
**created_at** | Option<**String**> | Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/GroupMember.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**role_ids** | Option<**Vec<String>**> | | [optional]
**m_role_ids** | Option<**Vec<String>**> | | [optional]
**joined_at** | Option<**String**> | | [optional]
**membership_status** | Option<**String**> | | [optional]
**membership_status** | Option<[**crate::models::GroupMemberStatus**](GroupMemberStatus.md)> | | [optional]
**visibility** | Option<**String**> | | [optional]
**is_subscribed_to_announcements** | Option<**bool**> | | [optional][default to false]
**created_at** | Option<**String**> | Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. | [optional]
Expand Down
16 changes: 8 additions & 8 deletions docs/GroupsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] |
**group_gallery_id** | **String** | Must be a valid group gallery ID. | [required] |
**add_group_gallery_image_request** | Option<[**AddGroupGalleryImageRequest**](AddGroupGalleryImageRequest.md)> | | |
**add_group_gallery_image_request** | [**AddGroupGalleryImageRequest**](AddGroupGalleryImageRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -121,7 +121,7 @@ Bans a user from a Group.
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] |
**ban_group_member_request** | Option<[**BanGroupMemberRequest**](BanGroupMemberRequest.md)> | | |
**ban_group_member_request** | [**BanGroupMemberRequest**](BanGroupMemberRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -181,7 +181,7 @@ Creates a Group and returns a Group object. **Requires VRC+ Subscription.**

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_group_request** | Option<[**CreateGroupRequest**](CreateGroupRequest.md)> | | |
**create_group_request** | [**CreateGroupRequest**](CreateGroupRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -212,7 +212,7 @@ Creates an Announcement for a Group.
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] |
**create_group_announcement_request** | Option<[**CreateGroupAnnouncementRequest**](CreateGroupAnnouncementRequest.md)> | | |
**create_group_announcement_request** | [**CreateGroupAnnouncementRequest**](CreateGroupAnnouncementRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -243,7 +243,7 @@ Creates a gallery for a Group.
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] |
**create_group_gallery_request** | Option<[**CreateGroupGalleryRequest**](CreateGroupGalleryRequest.md)> | | |
**create_group_gallery_request** | [**CreateGroupGalleryRequest**](CreateGroupGalleryRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -274,7 +274,7 @@ Sends an invite to a user to join the group.
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] |
**create_group_invite_request** | Option<[**CreateGroupInviteRequest**](CreateGroupInviteRequest.md)> | | |
**create_group_invite_request** | [**CreateGroupInviteRequest**](CreateGroupInviteRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -305,7 +305,7 @@ Create a Group role.
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] |
**create_group_role_request** | Option<[**CreateGroupRoleRequest**](CreateGroupRoleRequest.md)> | | |
**create_group_role_request** | [**CreateGroupRoleRequest**](CreateGroupRoleRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -994,7 +994,7 @@ Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group_id** | **String** | Must be a valid group ID. | [required] |
**user_id** | **String** | Must be a valid user ID. | [required] |
**respond_group_join_request** | Option<[**RespondGroupJoinRequest**](RespondGroupJoinRequest.md)> | | |
**respond_group_join_request** | [**RespondGroupJoinRequest**](RespondGroupJoinRequest.md) | | [required] |

### Return type

Expand Down
8 changes: 8 additions & 0 deletions docs/Instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ Name | Type | Description | Notes
**hidden** | 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]
**friends** | 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]
**private** | 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]
**queue_enabled** | **bool** | |
**queue_size** | **i32** | |
**recommended_capacity** | **i32** | |
**role_restricted** | **bool** | |
**strict** | **bool** | |
**user_count** | **i32** | |
**world** | [**crate::models::World**](World.md) | |
**users** | Option<[**Vec<crate::models::LimitedUser>**](LimitedUser.md)> | The users field is present on instances created by the requesting 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)

Expand Down
4 changes: 2 additions & 2 deletions docs/InviteApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Sends an invite to a user. Returns the Notification of type `invite` that was se
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**user_id** | **String** | Must be a valid user ID. | [required] |
**invite_request** | Option<[**InviteRequest**](InviteRequest.md)> | Slot number of the Invite Message to use when inviting a user. | |
**invite_request** | [**InviteRequest**](InviteRequest.md) | Slot number of the Invite Message to use when inviting a user. | [required] |

### Return type

Expand Down Expand Up @@ -216,7 +216,7 @@ Respond to an invite request by sending a world invite to the requesting user. `
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**notification_id** | **String** | Must be a valid notification ID. | [required] |
**invite_response** | Option<[**InviteResponse**](InviteResponse.md)> | Slot number of the Response Message to use when responding to a user. | |
**invite_response** | [**InviteResponse**](InviteResponse.md) | Slot number of the Response Message to use when responding to a user. | [required] |

### Return type

Expand Down
4 changes: 2 additions & 2 deletions docs/PlayermoderationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Moderate a user, e.g. unmute them or show their avatar. Please see the [Player

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**moderate_user_request** | Option<[**ModerateUserRequest**](ModerateUserRequest.md)> | | |
**moderate_user_request** | [**ModerateUserRequest**](ModerateUserRequest.md) | | [required] |

### Return type

Expand Down Expand Up @@ -173,7 +173,7 @@ Removes a player moderation previously added through `moderateUser`. E.g if you

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**moderate_user_request** | Option<[**ModerateUserRequest**](ModerateUserRequest.md)> | | |
**moderate_user_request** | [**ModerateUserRequest**](ModerateUserRequest.md) | | [required] |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/RespondGroupJoinRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**action** | Option<**String**> | | [optional]
**action** | [**crate::models::GroupJoinRequestAction**](GroupJoinRequestAction.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)

Expand Down
2 changes: 1 addition & 1 deletion docs/World.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Name | Type | Description | Notes
**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** | |
**namespace** | Option<**String**> | | [optional]
**occupants** | Option<**i32**> | Will always be `0` when unauthenticated. | [optional][default to 0]
**organization** | **String** | | [default to vrchat]
**popularity** | **i32** | | [default to 0]
Expand Down
6 changes: 3 additions & 3 deletions src/apis/authentication_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub fn logout(configuration: &configuration::Configuration, ) -> Result<crate::m
}

/// Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
pub fn verify2_fa(configuration: &configuration::Configuration, two_factor_auth_code: Option<crate::models::TwoFactorAuthCode>) -> Result<crate::models::Verify2FaResult, Error<Verify2FaError>> {
pub fn verify2_fa(configuration: &configuration::Configuration, two_factor_auth_code: crate::models::TwoFactorAuthCode) -> Result<crate::models::Verify2FaResult, Error<Verify2FaError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -235,7 +235,7 @@ pub fn verify2_fa(configuration: &configuration::Configuration, two_factor_auth_
}

/// Finishes the login sequence with an 2FA email code.
pub fn verify2_fa_email_code(configuration: &configuration::Configuration, two_factor_email_code: Option<crate::models::TwoFactorEmailCode>) -> Result<crate::models::Verify2FaEmailCodeResult, Error<Verify2FaEmailCodeError>> {
pub fn verify2_fa_email_code(configuration: &configuration::Configuration, two_factor_email_code: crate::models::TwoFactorEmailCode) -> Result<crate::models::Verify2FaEmailCodeResult, Error<Verify2FaEmailCodeError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -292,7 +292,7 @@ pub fn verify_auth_token(configuration: &configuration::Configuration, ) -> Resu
}

/// Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
pub fn verify_recovery_code(configuration: &configuration::Configuration, two_factor_auth_code: Option<crate::models::TwoFactorAuthCode>) -> Result<crate::models::Verify2FaResult, Error<VerifyRecoveryCodeError>> {
pub fn verify_recovery_code(configuration: &configuration::Configuration, two_factor_auth_code: crate::models::TwoFactorAuthCode) -> Result<crate::models::Verify2FaResult, Error<VerifyRecoveryCodeError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down
16 changes: 8 additions & 8 deletions src/apis/groups_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ pub enum UpdateGroupRoleError {


/// Adds an image to a Group gallery.
pub fn add_group_gallery_image(configuration: &configuration::Configuration, group_id: &str, group_gallery_id: &str, add_group_gallery_image_request: Option<crate::models::AddGroupGalleryImageRequest>) -> Result<crate::models::GroupGalleryImage, Error<AddGroupGalleryImageError>> {
pub fn add_group_gallery_image(configuration: &configuration::Configuration, group_id: &str, group_gallery_id: &str, add_group_gallery_image_request: crate::models::AddGroupGalleryImageRequest) -> Result<crate::models::GroupGalleryImage, Error<AddGroupGalleryImageError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -409,7 +409,7 @@ pub fn add_group_member_role(configuration: &configuration::Configuration, group
}

/// Bans a user from a Group.
pub fn ban_group_member(configuration: &configuration::Configuration, group_id: &str, ban_group_member_request: Option<crate::models::BanGroupMemberRequest>) -> Result<crate::models::GroupMember, Error<BanGroupMemberError>> {
pub fn ban_group_member(configuration: &configuration::Configuration, group_id: &str, ban_group_member_request: crate::models::BanGroupMemberRequest) -> Result<crate::models::GroupMember, Error<BanGroupMemberError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -466,7 +466,7 @@ pub fn cancel_group_request(configuration: &configuration::Configuration, group_
}

/// Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
pub fn create_group(configuration: &configuration::Configuration, create_group_request: Option<crate::models::CreateGroupRequest>) -> Result<crate::models::Group, Error<CreateGroupError>> {
pub fn create_group(configuration: &configuration::Configuration, create_group_request: crate::models::CreateGroupRequest) -> Result<crate::models::Group, Error<CreateGroupError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -495,7 +495,7 @@ pub fn create_group(configuration: &configuration::Configuration, create_group_r
}

/// Creates an Announcement for a Group.
pub fn create_group_announcement(configuration: &configuration::Configuration, group_id: &str, create_group_announcement_request: Option<crate::models::CreateGroupAnnouncementRequest>) -> Result<crate::models::GroupAnnouncement, Error<CreateGroupAnnouncementError>> {
pub fn create_group_announcement(configuration: &configuration::Configuration, group_id: &str, create_group_announcement_request: crate::models::CreateGroupAnnouncementRequest) -> Result<crate::models::GroupAnnouncement, Error<CreateGroupAnnouncementError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -524,7 +524,7 @@ pub fn create_group_announcement(configuration: &configuration::Configuration, g
}

/// Creates a gallery for a Group.
pub fn create_group_gallery(configuration: &configuration::Configuration, group_id: &str, create_group_gallery_request: Option<crate::models::CreateGroupGalleryRequest>) -> Result<crate::models::GroupGallery, Error<CreateGroupGalleryError>> {
pub fn create_group_gallery(configuration: &configuration::Configuration, group_id: &str, create_group_gallery_request: crate::models::CreateGroupGalleryRequest) -> Result<crate::models::GroupGallery, Error<CreateGroupGalleryError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -553,7 +553,7 @@ pub fn create_group_gallery(configuration: &configuration::Configuration, group_
}

/// Sends an invite to a user to join the group.
pub fn create_group_invite(configuration: &configuration::Configuration, group_id: &str, create_group_invite_request: Option<crate::models::CreateGroupInviteRequest>) -> Result<(), Error<CreateGroupInviteError>> {
pub fn create_group_invite(configuration: &configuration::Configuration, group_id: &str, create_group_invite_request: crate::models::CreateGroupInviteRequest) -> Result<(), Error<CreateGroupInviteError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -582,7 +582,7 @@ pub fn create_group_invite(configuration: &configuration::Configuration, group_i
}

/// Create a Group role.
pub fn create_group_role(configuration: &configuration::Configuration, group_id: &str, create_group_role_request: Option<crate::models::CreateGroupRoleRequest>) -> Result<crate::models::GroupRole, Error<CreateGroupRoleError>> {
pub fn create_group_role(configuration: &configuration::Configuration, group_id: &str, create_group_role_request: crate::models::CreateGroupRoleRequest) -> Result<crate::models::GroupRole, Error<CreateGroupRoleError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down Expand Up @@ -1250,7 +1250,7 @@ pub fn remove_group_member_role(configuration: &configuration::Configuration, gr
}

/// Responds to a Group Join Request with Accept/Deny
pub fn respond_group_join_request(configuration: &configuration::Configuration, group_id: &str, user_id: &str, respond_group_join_request: Option<crate::models::RespondGroupJoinRequest>) -> Result<(), Error<RespondGroupJoinRequestError>> {
pub fn respond_group_join_request(configuration: &configuration::Configuration, group_id: &str, user_id: &str, respond_group_join_request: crate::models::RespondGroupJoinRequest) -> Result<(), Error<RespondGroupJoinRequestError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down
Loading

0 comments on commit 0bac202

Please sign in to comment.