Skip to content

Commit

Permalink
Upgrade Rust SDK to spec 1.18.6
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Oct 20, 2024
1 parent 7d12428 commit 777128e
Show file tree
Hide file tree
Showing 30 changed files with 794 additions and 195 deletions.
10 changes: 10 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ docs/Favorite.md
docs/FavoriteGroup.md
docs/FavoriteGroupVisibility.md
docs/FavoriteType.md
docs/FavoritedWorld.md
docs/FavoritesApi.md
docs/File.md
docs/FileData.md
Expand Down Expand Up @@ -98,6 +99,9 @@ docs/InviteMessage.md
docs/InviteMessageType.md
docs/InviteRequest.md
docs/InviteResponse.md
docs/Jam.md
docs/JamStateChangeDates.md
docs/JamsApi.md
docs/License.md
docs/LicenseAction.md
docs/LicenseGroup.md
Expand Down Expand Up @@ -137,6 +141,7 @@ docs/RespondGroupJoinRequest.md
docs/Response.md
docs/SentNotification.md
docs/SortOption.md
docs/Submission.md
docs/Subscription.md
docs/SubscriptionPeriod.md
docs/Success.md
Expand Down Expand Up @@ -182,6 +187,7 @@ src/apis/friends_api.rs
src/apis/groups_api.rs
src/apis/instances_api.rs
src/apis/invite_api.rs
src/apis/jams_api.rs
src/apis/mod.rs
src/apis/notifications_api.rs
src/apis/permissions_api.rs
Expand Down Expand Up @@ -235,6 +241,7 @@ src/models/favorite.rs
src/models/favorite_group.rs
src/models/favorite_group_visibility.rs
src/models/favorite_type.rs
src/models/favorited_world.rs
src/models/file.rs
src/models/file_data.rs
src/models/file_status.rs
Expand Down Expand Up @@ -279,6 +286,8 @@ src/models/invite_message.rs
src/models/invite_message_type.rs
src/models/invite_request.rs
src/models/invite_response.rs
src/models/jam.rs
src/models/jam_state_change_dates.rs
src/models/license.rs
src/models/license_action.rs
src/models/license_group.rs
Expand Down Expand Up @@ -316,6 +325,7 @@ src/models/respond_group_join_request.rs
src/models/response.rs
src/models/sent_notification.rs
src/models/sort_option.rs
src/models/submission.rs
src/models/subscription.rs
src/models/subscription_period.rs
src/models/success.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.18.5"
version = "1.18.6"
authors = ["[email protected]"]
description = "VRChat API Client for Rust"
license = "MIT"
Expand Down
38 changes: 38 additions & 0 deletions docs/FavoritedWorld.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# FavoritedWorld

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author_id** | **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. |
**author_name** | **String** | |
**capacity** | **i32** | |
**description** | **String** | |
**recommended_capacity** | Option<**i32**> | | [optional]
**created_at** | **String** | |
**favorites** | **i32** | | [default to 0]
**favorite_group** | **String** | |
**favorite_id** | **String** | |
**featured** | **bool** | | [default to false]
**visits** | Option<**i32**> | | [optional][default to 0]
**heat** | **i32** | | [default to 0]
**id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. |
**image_url** | **String** | |
**labs_publication_date** | **String** | |
**name** | **String** | |
**occupants** | **i32** | | [default to 0]
**organization** | **String** | | [default to vrchat]
**popularity** | **i32** | | [default to 0]
**preview_youtube_id** | Option<**String**> | | [optional]
**publication_date** | **String** | |
**release_status** | [**models::ReleaseStatus**](ReleaseStatus.md) | |
**tags** | **Vec<String>** | |
**thumbnail_image_url** | **String** | |
**unity_packages** | [**Vec<models::UnityPackage>**](UnityPackage.md) | |
**updated_at** | **String** | |
**udon_products** | Option<**Vec<String>**> | | [optional]
**version** | **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)


2 changes: 1 addition & 1 deletion docs/GroupMember.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**accepted_by_display_name** | Option<**String**> | | [optional]
**accepted_by_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]
**accepted_by_id** | Option<**String**> | | [optional]
**id** | Option<**String**> | | [optional]
**group_id** | Option<**String**> | | [optional]
**user_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]
Expand Down
2 changes: 1 addition & 1 deletion docs/GroupMyMember.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**user_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]
**role_ids** | Option<**Vec<String>**> | | [optional]
**accepted_by_display_name** | Option<**String**> | | [optional]
**accepted_by_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]
**accepted_by_id** | Option<**String**> | | [optional]
**created_at** | Option<**String**> | | [optional]
**manager_notes** | Option<**String**> | | [optional]
**membership_status** | Option<**String**> | | [optional]
Expand Down
20 changes: 20 additions & 0 deletions docs/Jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Jam

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | |
**id** | **String** | |
**is_visible** | **bool** | |
**more_info** | **String** | |
**state** | **String** | One of: - submissions_open - closed |
**state_change_dates** | [**models::JamStateChangeDates**](Jam_stateChangeDates.md) | |
**submission_content_gate_date** | Option<**String**> | |
**submission_content_gated** | **bool** | |
**title** | **String** | |
**updated_at** | **String** | |

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


14 changes: 14 additions & 0 deletions docs/JamStateChangeDates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# JamStateChangeDates

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**closed** | Option<**String**> | | [optional]
**submissions_closed** | Option<**String**> | | [optional]
**submissions_opened** | Option<**String**> | | [optional]
**winners_selected** | Option<**String**> | | [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)


101 changes: 101 additions & 0 deletions docs/JamsApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# \JamsApi

All URIs are relative to *https://vrchat.com/api/1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_jam**](JamsApi.md#get_jam) | **GET** /jams/{jamId} | Show jam information
[**get_jam_submissions**](JamsApi.md#get_jam_submissions) | **GET** /jams/{jamId}/submissions | Show jam submissions
[**get_jams**](JamsApi.md#get_jams) | **GET** /jams | Show jams list



## get_jam

> models::Jam get_jam(jam_id)
Show jam information

Returns a jam.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**jam_id** | **String** | Must be a valid query ID. | [required] |

### Return type

[**models::Jam**](Jam.md)

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_jam_submissions

> Vec<models::Submission> get_jam_submissions(jam_id)
Show jam submissions

Returns all submissions of a jam.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**jam_id** | **String** | Must be a valid query ID. | [required] |

### Return type

[**Vec<models::Submission>**](Submission.md)

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_jams

> Vec<models::Jam> get_jams(r#type)
Show jams list

Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. ``

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**r#type** | Option<**String**> | Only show jams of this type (`avatar` or `world`). | |

### Return type

[**Vec<models::Jam>**](Jam.md)

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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

1 change: 0 additions & 1 deletion docs/LimitedWorld.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Name | Type | Description | Notes
**preview_youtube_id** | Option<**String**> | | [optional]
**publication_date** | **String** | |
**release_status** | [**models::ReleaseStatus**](ReleaseStatus.md) | |
**store_id** | Option<**String**> | |
**tags** | **Vec<String>** | |
**thumbnail_image_url** | **String** | |
**unity_packages** | [**Vec<models::LimitedUnityPackage>**](LimitedUnityPackage.md) | |
Expand Down
31 changes: 31 additions & 0 deletions docs/NotificationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Method | HTTP request | Description
[**accept_friend_request**](NotificationsApi.md#accept_friend_request) | **PUT** /auth/user/notifications/{notificationId}/accept | Accept Friend Request
[**clear_notifications**](NotificationsApi.md#clear_notifications) | **PUT** /auth/user/notifications/clear | Clear All Notifications
[**delete_notification**](NotificationsApi.md#delete_notification) | **PUT** /auth/user/notifications/{notificationId}/hide | Delete Notification
[**get_notification**](NotificationsApi.md#get_notification) | **GET** /auth/user/notifications/{notificationId} | Show notification
[**get_notifications**](NotificationsApi.md#get_notifications) | **GET** /auth/user/notifications | List Notifications
[**mark_notification_as_read**](NotificationsApi.md#mark_notification_as_read) | **PUT** /auth/user/notifications/{notificationId}/see | Mark Notification As Read

Expand Down Expand Up @@ -99,6 +100,36 @@ Name | Type | Description | Required | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_notification

> models::Notification get_notification(notification_id)
Show notification

Get a notification by notification `not_` ID.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**notification_id** | **String** | Must be a valid notification ID. | [required] |

### Return type

[**models::Notification**](Notification.md)

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_notifications

> Vec<models::Notification> get_notifications(r#type, sent, hidden, after, n, offset)
Expand Down
62 changes: 0 additions & 62 deletions docs/PlayermoderationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**clear_all_player_moderations**](PlayermoderationApi.md#clear_all_player_moderations) | **DELETE** /auth/user/playermoderations | Clear All Player Moderations
[**delete_player_moderation**](PlayermoderationApi.md#delete_player_moderation) | **DELETE** /auth/user/playermoderations/{playerModerationId} | Delete Player Moderation
[**get_player_moderation**](PlayermoderationApi.md#get_player_moderation) | **GET** /auth/user/playermoderations/{playerModerationId} | Get Player Moderation
[**get_player_moderations**](PlayermoderationApi.md#get_player_moderations) | **GET** /auth/user/playermoderations | Search Player Moderations
[**moderate_user**](PlayermoderationApi.md#moderate_user) | **POST** /auth/user/playermoderations | Moderate User
[**unmoderate_user**](PlayermoderationApi.md#unmoderate_user) | **PUT** /auth/user/unplayermoderate | Unmoderate User
Expand Down Expand Up @@ -40,66 +38,6 @@ This endpoint does not need any parameter.
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_player_moderation

> models::Success delete_player_moderation(player_moderation_id)
Delete Player Moderation

Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**player_moderation_id** | **String** | Must be a valid `pmod_` ID. | [required] |

### Return type

[**models::Success**](Success.md)

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_player_moderation

> models::PlayerModeration get_player_moderation(player_moderation_id)
Get Player Moderation

Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**player_moderation_id** | **String** | Must be a valid `pmod_` ID. | [required] |

### Return type

[**models::PlayerModeration**](PlayerModeration.md)

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## get_player_moderations

> Vec<models::PlayerModeration> get_player_moderations(r#type, target_user_id)
Expand Down
Loading

0 comments on commit 777128e

Please sign in to comment.