mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Upgrade Rust SDK to spec 1.3.0
This commit is contained in:
@ -24,6 +24,7 @@ docs/FileData.md
|
|||||||
docs/FileStatus.md
|
docs/FileStatus.md
|
||||||
docs/FileVersion.md
|
docs/FileVersion.md
|
||||||
docs/FilesApi.md
|
docs/FilesApi.md
|
||||||
|
docs/FriendStatus.md
|
||||||
docs/FriendsApi.md
|
docs/FriendsApi.md
|
||||||
docs/InlineObject.md
|
docs/InlineObject.md
|
||||||
docs/InlineObject1.md
|
docs/InlineObject1.md
|
||||||
@ -46,10 +47,12 @@ docs/InlineResponse2003.md
|
|||||||
docs/InlineResponse2004.md
|
docs/InlineResponse2004.md
|
||||||
docs/InlineResponse2005.md
|
docs/InlineResponse2005.md
|
||||||
docs/InlineResponse2006.md
|
docs/InlineResponse2006.md
|
||||||
docs/InlineResponse2007.md
|
docs/InlineResponse400.md
|
||||||
docs/InlineResponse403.md
|
|
||||||
docs/Instance.md
|
docs/Instance.md
|
||||||
docs/InstancePlatforms.md
|
docs/InstancePlatforms.md
|
||||||
|
docs/InviteApi.md
|
||||||
|
docs/InviteMessage.md
|
||||||
|
docs/InviteMessageType.md
|
||||||
docs/LimitedUnityPackage.md
|
docs/LimitedUnityPackage.md
|
||||||
docs/LimitedUser.md
|
docs/LimitedUser.md
|
||||||
docs/LimitedWorld.md
|
docs/LimitedWorld.md
|
||||||
@ -60,7 +63,6 @@ docs/NotificationsApi.md
|
|||||||
docs/PastDisplayName.md
|
docs/PastDisplayName.md
|
||||||
docs/Permission.md
|
docs/Permission.md
|
||||||
docs/PermissionsApi.md
|
docs/PermissionsApi.md
|
||||||
docs/Platform.md
|
|
||||||
docs/PlayerModeration.md
|
docs/PlayerModeration.md
|
||||||
docs/PlayerModerationType.md
|
docs/PlayerModerationType.md
|
||||||
docs/PlayermoderationApi.md
|
docs/PlayermoderationApi.md
|
||||||
@ -82,6 +84,7 @@ src/apis/configuration.rs
|
|||||||
src/apis/favorites_api.rs
|
src/apis/favorites_api.rs
|
||||||
src/apis/files_api.rs
|
src/apis/files_api.rs
|
||||||
src/apis/friends_api.rs
|
src/apis/friends_api.rs
|
||||||
|
src/apis/invite_api.rs
|
||||||
src/apis/mod.rs
|
src/apis/mod.rs
|
||||||
src/apis/notifications_api.rs
|
src/apis/notifications_api.rs
|
||||||
src/apis/permissions_api.rs
|
src/apis/permissions_api.rs
|
||||||
@ -109,6 +112,7 @@ src/models/file.rs
|
|||||||
src/models/file_data.rs
|
src/models/file_data.rs
|
||||||
src/models/file_status.rs
|
src/models/file_status.rs
|
||||||
src/models/file_version.rs
|
src/models/file_version.rs
|
||||||
|
src/models/friend_status.rs
|
||||||
src/models/inline_object.rs
|
src/models/inline_object.rs
|
||||||
src/models/inline_object_1.rs
|
src/models/inline_object_1.rs
|
||||||
src/models/inline_object_10.rs
|
src/models/inline_object_10.rs
|
||||||
@ -130,10 +134,11 @@ src/models/inline_response_200_3.rs
|
|||||||
src/models/inline_response_200_4.rs
|
src/models/inline_response_200_4.rs
|
||||||
src/models/inline_response_200_5.rs
|
src/models/inline_response_200_5.rs
|
||||||
src/models/inline_response_200_6.rs
|
src/models/inline_response_200_6.rs
|
||||||
src/models/inline_response_200_7.rs
|
src/models/inline_response_400.rs
|
||||||
src/models/inline_response_403.rs
|
|
||||||
src/models/instance.rs
|
src/models/instance.rs
|
||||||
src/models/instance_platforms.rs
|
src/models/instance_platforms.rs
|
||||||
|
src/models/invite_message.rs
|
||||||
|
src/models/invite_message_type.rs
|
||||||
src/models/limited_unity_package.rs
|
src/models/limited_unity_package.rs
|
||||||
src/models/limited_user.rs
|
src/models/limited_user.rs
|
||||||
src/models/limited_world.rs
|
src/models/limited_world.rs
|
||||||
@ -143,7 +148,6 @@ src/models/notification.rs
|
|||||||
src/models/notification_type.rs
|
src/models/notification_type.rs
|
||||||
src/models/past_display_name.rs
|
src/models/past_display_name.rs
|
||||||
src/models/permission.rs
|
src/models/permission.rs
|
||||||
src/models/platform.rs
|
|
||||||
src/models/player_moderation.rs
|
src/models/player_moderation.rs
|
||||||
src/models/player_moderation_type.rs
|
src/models/player_moderation_type.rs
|
||||||
src/models/release_status.rs
|
src/models/release_status.rs
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "vrchatapi"
|
name = "vrchatapi"
|
||||||
version = "1.1.2"
|
version = "1.3.0"
|
||||||
authors = ["OpenAPI Generator team and contributors"]
|
authors = ["OpenAPI Generator team and contributors"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**asset_url** | Option<**String**> | Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`. | [optional]
|
**asset_url** | Option<**String**> | Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`. | [optional]
|
||||||
**asset_url_object** | Option<[**serde_json::Value**](.md)> | Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. | [optional]
|
**asset_url_object** | Option<[**serde_json::Value**](.md)> | Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. | [optional]
|
||||||
**author_id** | **String** | | [readonly]
|
**author_id** | **String** | |
|
||||||
**author_name** | **String** | | [readonly]
|
**author_name** | **String** | | [readonly]
|
||||||
**created_at** | **String** | | [readonly]
|
**created_at** | **String** | | [readonly]
|
||||||
**description** | **String** | |
|
**description** | **String** | |
|
||||||
|
@ -106,7 +106,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## get_favorited_avatars
|
## get_favorited_avatars
|
||||||
|
|
||||||
> get_favorited_avatars(featured, sort, n, order, offset, search, tag, notag, release_status, max_unity_version, min_unity_version, platform, user_id)
|
> Vec<crate::models::Avatar> get_favorited_avatars(featured, sort, n, order, offset, search, tag, notag, release_status, max_unity_version, min_unity_version, platform, user_id)
|
||||||
List Favorited Avatars
|
List Favorited Avatars
|
||||||
|
|
||||||
Search and list favorited avatars by query filters.
|
Search and list favorited avatars by query filters.
|
||||||
@ -132,7 +132,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
(empty response body)
|
[**Vec<crate::models::Avatar>**](Avatar.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [readonly]
|
**id** | **String** | |
|
||||||
**username** | **String** | |
|
**username** | **String** | |
|
||||||
**display_name** | **String** | |
|
**display_name** | **String** | |
|
||||||
**user_icon** | **String** | |
|
**user_icon** | **String** | |
|
||||||
@ -41,7 +41,7 @@ Name | Type | Description | Notes
|
|||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
||||||
**last_login** | **String** | |
|
**last_login** | **String** | |
|
||||||
**last_platform** | [**crate::models::Platform**](Platform.md) | |
|
**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`. |
|
||||||
**allow_avatar_copying** | **bool** | |
|
**allow_avatar_copying** | **bool** | |
|
||||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||||
**date_joined** | [**String**](string.md) | | [readonly]
|
**date_joined** | [**String**](string.md) | | [readonly]
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [readonly]
|
**id** | **String** | |
|
||||||
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||||
**favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. |
|
**favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. |
|
||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [readonly]
|
**id** | **String** | |
|
||||||
**owner_id** | **String** | | [readonly]
|
**owner_id** | **String** | |
|
||||||
**owner_display_name** | **String** | |
|
**owner_display_name** | **String** | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**display_name** | **String** | |
|
**display_name** | **String** | |
|
||||||
|
@ -47,7 +47,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## clear_favorite_group
|
## clear_favorite_group
|
||||||
|
|
||||||
> crate::models::Error clear_favorite_group(favorite_group_type, favorite_group_name, user_id)
|
> crate::models::Success clear_favorite_group(favorite_group_type, favorite_group_name, user_id)
|
||||||
Clear Favorite Group
|
Clear Favorite Group
|
||||||
|
|
||||||
Clear ALL contents of a specific favorite group.
|
Clear ALL contents of a specific favorite group.
|
||||||
@ -63,7 +63,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::Error**](Error.md)
|
[**crate::models::Success**](Success.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## remove_favorite
|
## remove_favorite
|
||||||
|
|
||||||
> crate::models::Error remove_favorite(favorite_id)
|
> crate::models::Success remove_favorite(favorite_id)
|
||||||
Remove Favorite
|
Remove Favorite
|
||||||
|
|
||||||
Remove a favorite from your favorites list.
|
Remove a favorite from your favorites list.
|
||||||
@ -220,7 +220,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::Error**](Error.md)
|
[**crate::models::Success**](Success.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [readonly]
|
**id** | **String** | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**owner_id** | **String** | | [readonly]
|
**owner_id** | **String** | |
|
||||||
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
|
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
|
||||||
**extension** | **String** | |
|
**extension** | **String** | |
|
||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
|
@ -235,7 +235,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## get_file_data_upload_status
|
## get_file_data_upload_status
|
||||||
|
|
||||||
> crate::models::InlineResponse2004 get_file_data_upload_status(file_id, version_id, file_type)
|
> crate::models::InlineResponse2003 get_file_data_upload_status(file_id, version_id, file_type)
|
||||||
Check FileData Upload Status
|
Check FileData Upload Status
|
||||||
|
|
||||||
Retrieves the upload status for file upload. Can currently only be accessed when `status` is `waiting`. Trying to access it on a file version already uploaded currently times out.
|
Retrieves the upload status for file upload. Can currently only be accessed when `status` is `waiting`. Trying to access it on a file version already uploaded currently times out.
|
||||||
@ -251,7 +251,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::InlineResponse2004**](inline_response_200_4.md)
|
[**crate::models::InlineResponse2003**](inline_response_200_3.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -300,7 +300,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## start_file_data_upload
|
## start_file_data_upload
|
||||||
|
|
||||||
> crate::models::InlineResponse2005 start_file_data_upload(file_id, version_id, file_type, part_number)
|
> crate::models::InlineResponse2004 start_file_data_upload(file_id, version_id, file_type, part_number)
|
||||||
Start FileData Upload
|
Start FileData Upload
|
||||||
|
|
||||||
Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1.
|
Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1.
|
||||||
@ -317,7 +317,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::InlineResponse2005**](inline_response_200_5.md)
|
[**crate::models::InlineResponse2004**](inline_response_200_4.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# InlineResponse2007
|
# FriendStatus
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**can_pubilsh** | **bool** | | [readonly][default to true]
|
**is_friend** | **bool** | | [default to false]
|
||||||
|
**outgoing_request** | **bool** | | [default to false]
|
||||||
|
**incoming_request** | **bool** | | [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)
|
||||||
|
|
@ -74,7 +74,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## get_friend_status
|
## get_friend_status
|
||||||
|
|
||||||
> crate::models::InlineResponse2003 get_friend_status(user_id)
|
> crate::models::FriendStatus get_friend_status(user_id)
|
||||||
Check Friend Status
|
Check Friend Status
|
||||||
|
|
||||||
Retrieve if the user is currently a friend with a given user, if they have an outgoing friend request, and if they have an incoming friend request. The proper way to receive and accept friend request is by checking if the user has an incoming `Notification` of type `friendRequest`, and then accepting that notification.
|
Retrieve if the user is currently a friend with a given user, if they have an outgoing friend request, and if they have an incoming friend request. The proper way to receive and accept friend request is by checking if the user has an incoming `Notification` of type `friendRequest`, and then accepting that notification.
|
||||||
@ -88,7 +88,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::InlineResponse2003**](inline_response_200_3.md)
|
[**crate::models::FriendStatus**](FriendStatus.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**moderated** | **String** | | [readonly]
|
**moderated** | **String** | |
|
||||||
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**moderated** | Option<**String**> | | [optional][readonly]
|
**moderated** | Option<**String**> | | [optional]
|
||||||
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -6,14 +6,14 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**asset_url** | **String** | |
|
**asset_url** | **String** | |
|
||||||
**asset_version** | Option<**String**> | | [optional]
|
**asset_version** | Option<**String**> | | [optional]
|
||||||
**author_id** | Option<**String**> | | [optional][readonly]
|
**author_id** | Option<**String**> | | [optional]
|
||||||
**author_name** | Option<**String**> | | [optional]
|
**author_name** | Option<**String**> | | [optional]
|
||||||
**capacity** | Option<**i32**> | | [optional][default to 16]
|
**capacity** | Option<**i32**> | | [optional][default to 16]
|
||||||
**description** | Option<**String**> | | [optional]
|
**description** | Option<**String**> | | [optional]
|
||||||
**id** | Option<**String**> | | [optional]
|
**id** | Option<**String**> | | [optional]
|
||||||
**image_url** | **String** | |
|
**image_url** | **String** | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**platform** | Option<[**crate::models::Platform**](Platform.md)> | | [optional]
|
**platform** | 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`. | [optional]
|
||||||
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||||
**tags** | Option<**Vec<String>**> | | [optional]
|
**tags** | Option<**Vec<String>**> | | [optional]
|
||||||
**unity_package_url** | Option<**String**> | | [optional]
|
**unity_package_url** | Option<**String**> | | [optional]
|
||||||
|
@ -6,14 +6,14 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**asset_url** | Option<**String**> | | [optional]
|
**asset_url** | Option<**String**> | | [optional]
|
||||||
**asset_version** | Option<**String**> | | [optional]
|
**asset_version** | Option<**String**> | | [optional]
|
||||||
**author_id** | Option<**String**> | | [optional][readonly]
|
**author_id** | Option<**String**> | | [optional]
|
||||||
**author_name** | Option<**String**> | | [optional]
|
**author_name** | Option<**String**> | | [optional]
|
||||||
**capacity** | Option<**i32**> | | [optional][default to 16]
|
**capacity** | Option<**i32**> | | [optional][default to 16]
|
||||||
**description** | Option<**String**> | | [optional]
|
**description** | Option<**String**> | | [optional]
|
||||||
**id** | Option<**String**> | | [optional]
|
**id** | Option<**String**> | | [optional]
|
||||||
**image_url** | Option<**String**> | | [optional]
|
**image_url** | Option<**String**> | | [optional]
|
||||||
**name** | Option<**String**> | | [optional]
|
**name** | Option<**String**> | | [optional]
|
||||||
**platform** | Option<[**crate::models::Platform**](Platform.md)> | | [optional]
|
**platform** | 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`. | [optional]
|
||||||
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||||
**tags** | Option<**Vec<String>**> | | [optional]
|
**tags** | Option<**Vec<String>**> | | [optional]
|
||||||
**unity_package_url** | Option<**String**> | | [optional]
|
**unity_package_url** | Option<**String**> | | [optional]
|
||||||
|
@ -4,9 +4,12 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**is_friend** | **bool** | | [default to false]
|
**upload_id** | **String** | | [readonly]
|
||||||
**outgoing_request** | **bool** | | [default to false]
|
**file_name** | **String** | | [readonly]
|
||||||
**incoming_request** | **bool** | | [default to false]
|
**next_part_number** | **f32** | | [readonly]
|
||||||
|
**max_parts** | **f32** | | [readonly]
|
||||||
|
**parts** | [**Vec<serde_json::Value>**](serde_json::Value.md) | | [readonly]
|
||||||
|
**etags** | [**Vec<serde_json::Value>**](serde_json::Value.md) | Unknown | [readonly]
|
||||||
|
|
||||||
[[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)
|
||||||
|
|
||||||
|
@ -4,12 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**upload_id** | **String** | | [readonly]
|
**url** | **String** | |
|
||||||
**file_name** | **String** | | [readonly]
|
|
||||||
**next_part_number** | **f32** | | [readonly]
|
|
||||||
**max_parts** | **f32** | | [readonly]
|
|
||||||
**parts** | [**Vec<serde_json::Value>**](serde_json::Value.md) | | [readonly]
|
|
||||||
**etags** | [**Vec<serde_json::Value>**](serde_json::Value.md) | Unknown | [readonly]
|
|
||||||
|
|
||||||
[[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)
|
||||||
|
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**url** | **String** | |
|
**id** | **String** | |
|
||||||
|
**metadata** | [**serde_json::Value**](.md) | | [readonly]
|
||||||
|
|
||||||
[[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)
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
**can_pubilsh** | **bool** | | [readonly][default to true]
|
||||||
**metadata** | [**serde_json::Value**](.md) | | [readonly]
|
|
||||||
|
|
||||||
[[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)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# InlineResponse403
|
# InlineResponse400
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|||||||
**n_users** | **f32** | |
|
**n_users** | **f32** | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**nonce** | Option<**String**> | | [optional]
|
**nonce** | Option<**String**> | | [optional]
|
||||||
**owner_id** | **String** | | [readonly]
|
**owner_id** | **String** | |
|
||||||
**permanent** | **bool** | | [default to false]
|
**permanent** | **bool** | | [default to false]
|
||||||
**photon_region** | **String** | |
|
**photon_region** | **String** | |
|
||||||
**platforms** | [**crate::models::InstancePlatforms**](Instance_platforms.md) | |
|
**platforms** | [**crate::models::InstancePlatforms**](Instance_platforms.md) | |
|
||||||
|
228
docs/InviteApi.md
Normal file
228
docs/InviteApi.md
Normal file
@ -0,0 +1,228 @@
|
|||||||
|
# \InviteApi
|
||||||
|
|
||||||
|
All URIs are relative to *https://api.vrchat.cloud/api/1*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**get_invite_message**](InviteApi.md#get_invite_message) | **GET** /message/{userId}/message/{messageId} | Get Invite Messages
|
||||||
|
[**get_invite_messages**](InviteApi.md#get_invite_messages) | **GET** /message/{userId}/message | List Invite Messages
|
||||||
|
[**invite_user**](InviteApi.md#invite_user) | **POST** /invite/{userId} | Invite User
|
||||||
|
[**request_invite**](InviteApi.md#request_invite) | **POST** /requestInvite/{userId} | Request Invite
|
||||||
|
[**reset_invite_message**](InviteApi.md#reset_invite_message) | **DELETE** /message/{userId}/message/{messageId} | Reset Invite Message
|
||||||
|
[**respond_invite**](InviteApi.md#respond_invite) | **POST** /invite/{notificationId}/response | Respond Invite
|
||||||
|
[**update_invite_message**](InviteApi.md#update_invite_message) | **PUT** /message/{userId}/message/{messageId} | Update Invite Message
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## get_invite_message
|
||||||
|
|
||||||
|
> crate::models::InviteMessage get_invite_message(user_id, message_id)
|
||||||
|
Get Invite Messages
|
||||||
|
|
||||||
|
Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**user_id** | **String** | | [required] |
|
||||||
|
**message_id** | **i32** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**crate::models::InviteMessage**](InviteMessage.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [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_invite_messages
|
||||||
|
|
||||||
|
> Vec<crate::models::InviteMessage> get_invite_messages(user_id)
|
||||||
|
List Invite Messages
|
||||||
|
|
||||||
|
Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**user_id** | **String** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**Vec<crate::models::InviteMessage>**](InviteMessage.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [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)
|
||||||
|
|
||||||
|
|
||||||
|
## invite_user
|
||||||
|
|
||||||
|
> crate::models::Notification invite_user(user_id)
|
||||||
|
Invite User
|
||||||
|
|
||||||
|
Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**user_id** | **String** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**crate::models::Notification**](Notification.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [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)
|
||||||
|
|
||||||
|
|
||||||
|
## request_invite
|
||||||
|
|
||||||
|
> crate::models::Notification request_invite(user_id)
|
||||||
|
Request Invite
|
||||||
|
|
||||||
|
Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**user_id** | **String** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**crate::models::Notification**](Notification.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [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)
|
||||||
|
|
||||||
|
|
||||||
|
## reset_invite_message
|
||||||
|
|
||||||
|
> Vec<crate::models::InviteMessage> reset_invite_message(user_id, message_id)
|
||||||
|
Reset Invite Message
|
||||||
|
|
||||||
|
Resets a single Invite Message back to it's original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**user_id** | **String** | | [required] |
|
||||||
|
**message_id** | **i32** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**Vec<crate::models::InviteMessage>**](InviteMessage.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [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)
|
||||||
|
|
||||||
|
|
||||||
|
## respond_invite
|
||||||
|
|
||||||
|
> crate::models::Notification respond_invite(notification_id)
|
||||||
|
Respond Invite
|
||||||
|
|
||||||
|
Sends a world invite to a user.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**notification_id** | **String** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**crate::models::Notification**](Notification.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [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)
|
||||||
|
|
||||||
|
|
||||||
|
## update_invite_message
|
||||||
|
|
||||||
|
> Vec<crate::models::InviteMessage> update_invite_message(user_id, message_id)
|
||||||
|
Update Invite Message
|
||||||
|
|
||||||
|
Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**user_id** | **String** | | [required] |
|
||||||
|
**message_id** | **i32** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**Vec<crate::models::InviteMessage>**](InviteMessage.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [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)
|
||||||
|
|
17
docs/InviteMessage.md
Normal file
17
docs/InviteMessage.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# InviteMessage
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | |
|
||||||
|
**slot** | **i32** | |
|
||||||
|
**message** | **String** | |
|
||||||
|
**message_type** | [**crate::models::InviteMessageType**](InviteMessageType.md) | |
|
||||||
|
**updated_at** | **String** | |
|
||||||
|
**remaining_cooldown_minutes** | **i32** | Changes to 60 when updated, although probably server-side configurable. | [default to 0]
|
||||||
|
**can_be_updated** | **bool** | | [default to true]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
# Platform
|
# InviteMessageType
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**platform** | [**crate::models::Platform**](Platform.md) | |
|
**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`. |
|
||||||
**unity_version** | **String** | |
|
**unity_version** | **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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [readonly]
|
**id** | **String** | |
|
||||||
**username** | **String** | |
|
**username** | **String** | |
|
||||||
**display_name** | **String** | |
|
**display_name** | **String** | |
|
||||||
**bio** | Option<**String**> | | [optional]
|
**bio** | Option<**String**> | | [optional]
|
||||||
@ -15,10 +15,9 @@ Name | Type | Description | Notes
|
|||||||
**current_avatar_thumbnail_image_url** | **String** | |
|
**current_avatar_thumbnail_image_url** | **String** | |
|
||||||
**fallback_avatar** | **String** | |
|
**fallback_avatar** | **String** | |
|
||||||
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
||||||
**last_platform** | [**crate::models::Platform**](Platform.md) | |
|
**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`. |
|
||||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||||
**is_friend** | **bool** | |
|
**is_friend** | **bool** | |
|
||||||
**location** | **String** | |
|
|
||||||
**tags** | **Vec<String>** | <- Always empty. |
|
**tags** | **Vec<String>** | <- Always empty. |
|
||||||
|
|
||||||
[[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,13 +5,13 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
**sender_user_id** | **String** | | [readonly]
|
**sender_user_id** | **String** | |
|
||||||
**sender_username** | **String** | |
|
**sender_username** | **String** | |
|
||||||
**_type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
**_type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
||||||
**message** | **String** | |
|
**message** | **String** | |
|
||||||
**details** | **String** | **NOTICE:** This is not a JSON object, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. | [default to {}]
|
**details** | **String** | **NOTICE:** This is not a JSON object, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. | [default to {}]
|
||||||
**seen** | **bool** | | [default to false]
|
**seen** | **bool** | | [default to false]
|
||||||
**created_at** | **String** | | [readonly]
|
**created_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)
|
[[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,7 +5,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
**owner_id** | **String** | | [readonly]
|
**owner_id** | **String** | |
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**data** | Option<[**serde_json::Value**](.md)> | | [optional]
|
**data** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||||
|
|
||||||
|
@ -6,9 +6,9 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
||||||
**source_user_id** | **String** | | [readonly]
|
**source_user_id** | **String** | |
|
||||||
**source_display_name** | **String** | |
|
**source_display_name** | **String** | |
|
||||||
**target_user_id** | **String** | | [readonly]
|
**target_user_id** | **String** | |
|
||||||
**target_display_name** | **String** | |
|
**target_display_name** | **String** | |
|
||||||
**created** | **String** | |
|
**created** | **String** | |
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
## delete_player_moderation
|
## delete_player_moderation
|
||||||
|
|
||||||
> crate::models::Error delete_player_moderation(player_moderation_id)
|
> crate::models::Success delete_player_moderation(player_moderation_id)
|
||||||
Delete Player Moderation
|
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.
|
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.
|
||||||
@ -56,7 +56,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::Error**](Error.md)
|
[**crate::models::Success**](Success.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## unmoderate_user
|
## unmoderate_user
|
||||||
|
|
||||||
> crate::models::Error unmoderate_user(inline_object13)
|
> crate::models::Success unmoderate_user(inline_object13)
|
||||||
Unmoderate User
|
Unmoderate User
|
||||||
|
|
||||||
Removes a player moderation previously added through `moderateUser`. E.g if you previuosly have shown their avatar, but now want to reset it to default.
|
Removes a player moderation previously added through `moderateUser`. E.g if you previuosly have shown their avatar, but now want to reset it to default.
|
||||||
@ -177,7 +177,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::Error**](Error.md)
|
[**crate::models::Success**](Success.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**message** | **String** | |
|
**message** | Option<**String**> | | [optional]
|
||||||
**status_code** | **f32** | |
|
**status_code** | **f32** | |
|
||||||
|
|
||||||
[[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)
|
||||||
|
@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|||||||
**unity_version** | **String** | | [default to 5.3.4p1]
|
**unity_version** | **String** | | [default to 5.3.4p1]
|
||||||
**unity_sort_number** | Option<**f32**> | | [optional]
|
**unity_sort_number** | Option<**f32**> | | [optional]
|
||||||
**asset_version** | **f32** | |
|
**asset_version** | **f32** | |
|
||||||
**platform** | [**crate::models::Platform**](Platform.md) | |
|
**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`. |
|
||||||
**created_at** | Option<**String**> | | [optional]
|
**created_at** | 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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [readonly]
|
**id** | **String** | |
|
||||||
**username** | **String** | |
|
**username** | **String** | |
|
||||||
**display_name** | **String** | |
|
**display_name** | **String** | |
|
||||||
**user_icon** | **String** | |
|
**user_icon** | **String** | |
|
||||||
@ -19,7 +19,7 @@ Name | Type | Description | Notes
|
|||||||
**tags** | **Vec<String>** | |
|
**tags** | **Vec<String>** | |
|
||||||
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
||||||
**last_login** | **String** | |
|
**last_login** | **String** | |
|
||||||
**last_platform** | [**crate::models::Platform**](Platform.md) | |
|
**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`. |
|
||||||
**allow_avatar_copying** | **bool** | |
|
**allow_avatar_copying** | **bool** | |
|
||||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||||
**date_joined** | [**String**](string.md) | | [readonly]
|
**date_joined** | [**String**](string.md) | | [readonly]
|
||||||
|
@ -6,7 +6,6 @@ Method | HTTP request | Description
|
|||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**get_user**](UsersApi.md#get_user) | **GET** /users/{userId} | Get User by ID
|
[**get_user**](UsersApi.md#get_user) | **GET** /users/{userId} | Get User by ID
|
||||||
[**get_user_by_name**](UsersApi.md#get_user_by_name) | **GET** /users/{username}/name | Get User by Username
|
[**get_user_by_name**](UsersApi.md#get_user_by_name) | **GET** /users/{username}/name | Get User by Username
|
||||||
[**search_active_users**](UsersApi.md#search_active_users) | **GET** /users/active | Search Active Users
|
|
||||||
[**search_users**](UsersApi.md#search_users) | **GET** /users | Search All Users
|
[**search_users**](UsersApi.md#search_users) | **GET** /users | Search All Users
|
||||||
[**update_user**](UsersApi.md#update_user) | **PUT** /users/{userId} | Update User Info
|
[**update_user**](UsersApi.md#update_user) | **PUT** /users/{userId} | Update User Info
|
||||||
|
|
||||||
@ -72,39 +71,6 @@ 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)
|
[[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)
|
||||||
|
|
||||||
|
|
||||||
## search_active_users
|
|
||||||
|
|
||||||
> Vec<crate::models::LimitedUser> search_active_users(search, developer_type, offset, n)
|
|
||||||
Search Active Users
|
|
||||||
|
|
||||||
Search and list any Active users by text query. **Has been locked down and now always respond with \"Invalid Admin Credentials\".**
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Required | Notes
|
|
||||||
------------- | ------------- | ------------- | ------------- | -------------
|
|
||||||
**search** | **String** | Username to search for | [required] |
|
|
||||||
**developer_type** | Option<**String**> | Active user by developer type, none for normal users and internal for moderators | |
|
|
||||||
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
|
|
||||||
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**Vec<crate::models::LimitedUser>**](LimitedUser.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[apiKeyCookie](../README.md#apiKeyCookie), [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)
|
|
||||||
|
|
||||||
|
|
||||||
## search_users
|
## search_users
|
||||||
|
|
||||||
> Vec<crate::models::LimitedUser> search_users(search, developer_type, n, offset)
|
> Vec<crate::models::LimitedUser> search_users(search, developer_type, n, offset)
|
||||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**asset_url** | **String** | |
|
**asset_url** | **String** | |
|
||||||
**asset_url_object** | [**serde_json::Value**](.md) | |
|
**asset_url_object** | [**serde_json::Value**](.md) | |
|
||||||
**author_id** | **String** | | [readonly]
|
**author_id** | **String** | |
|
||||||
**author_name** | **String** | | [readonly]
|
**author_name** | **String** | | [readonly]
|
||||||
**capacity** | **f32** | | [readonly]
|
**capacity** | **f32** | | [readonly]
|
||||||
**created_at** | **String** | | [readonly]
|
**created_at** | **String** | | [readonly]
|
||||||
|
@ -268,7 +268,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## get_world_metadata
|
## get_world_metadata
|
||||||
|
|
||||||
> crate::models::InlineResponse2006 get_world_metadata(world_id)
|
> crate::models::InlineResponse2005 get_world_metadata(world_id)
|
||||||
Get World Metadata
|
Get World Metadata
|
||||||
|
|
||||||
Return a worlds custom metadata. This is currently believed to be unused. Metadata can be set with `updateWorld` and can be any arbitrary object.
|
Return a worlds custom metadata. This is currently believed to be unused. Metadata can be set with `updateWorld` and can be any arbitrary object.
|
||||||
@ -282,7 +282,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::InlineResponse2006**](inline_response_200_6.md)
|
[**crate::models::InlineResponse2005**](inline_response_200_5.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -298,7 +298,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
## get_world_publish_status
|
## get_world_publish_status
|
||||||
|
|
||||||
> crate::models::InlineResponse2007 get_world_publish_status(world_id)
|
> crate::models::InlineResponse2006 get_world_publish_status(world_id)
|
||||||
Get World Publish Status
|
Get World Publish Status
|
||||||
|
|
||||||
Returns a worlds publish status.
|
Returns a worlds publish status.
|
||||||
@ -312,7 +312,7 @@ Name | Type | Description | Required | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**crate::models::InlineResponse2007**](inline_response_200_7.md)
|
[**crate::models::InlineResponse2006**](inline_response_200_6.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# Generate Client
|
# Generate Client
|
||||||
rm src/apis src/models docs -rf
|
rm src/apis src/models docs -rf
|
||||||
|
|
||||||
openapi-generator-cli generate \
|
java -jar ../foo-openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
||||||
-g rust \
|
-g rust \
|
||||||
--additional-properties=packageName=vrchatapi,packageVersion=1.0.4,supportAsync=false \
|
--additional-properties=packageName=vrchatapi,supportAsync=false \
|
||||||
--git-user-id=vrchatapi \
|
--git-user-id=vrchatapi \
|
||||||
--git-repo-id=vrchatapi-rust \
|
--git-repo-id=vrchatapi-rust \
|
||||||
-o . \
|
-o . \
|
||||||
|
@ -38,14 +38,14 @@ git add .
|
|||||||
git commit -m "$release_note"
|
git commit -m "$release_note"
|
||||||
|
|
||||||
# Sets the new remote
|
# Sets the new remote
|
||||||
git_remote=`git remote`
|
git_remote=$(git remote)
|
||||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||||
|
|
||||||
if [ "$GIT_TOKEN" = "" ]; then
|
if [ "$GIT_TOKEN" = "" ]; then
|
||||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
else
|
else
|
||||||
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -45,6 +45,7 @@ pub enum GetAvatarError {
|
|||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum GetFavoritedAvatarsError {
|
pub enum GetFavoritedAvatarsError {
|
||||||
Status401(crate::models::Error),
|
Status401(crate::models::Error),
|
||||||
|
Status403(crate::models::Error),
|
||||||
UnknownValue(serde_json::Value),
|
UnknownValue(serde_json::Value),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,7 +159,7 @@ pub fn get_avatar(configuration: &configuration::Configuration, avatar_id: &str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Search and list favorited avatars by query filters.
|
/// Search and list favorited avatars by query filters.
|
||||||
pub fn get_favorited_avatars(configuration: &configuration::Configuration, featured: Option<&str>, sort: Option<&str>, n: Option<i32>, order: Option<&str>, offset: Option<i32>, search: Option<&str>, tag: Option<&str>, notag: Option<&str>, release_status: Option<&str>, max_unity_version: Option<&str>, min_unity_version: Option<&str>, platform: Option<&str>, user_id: Option<&str>) -> Result<(), Error<GetFavoritedAvatarsError>> {
|
pub fn get_favorited_avatars(configuration: &configuration::Configuration, featured: Option<&str>, sort: Option<&str>, n: Option<i32>, order: Option<&str>, offset: Option<i32>, search: Option<&str>, tag: Option<&str>, notag: Option<&str>, release_status: Option<&str>, max_unity_version: Option<&str>, min_unity_version: Option<&str>, platform: Option<&str>, user_id: Option<&str>) -> Result<Vec<crate::models::Avatar>, Error<GetFavoritedAvatarsError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -215,7 +216,7 @@ pub fn get_favorited_avatars(configuration: &configuration::Configuration, featu
|
|||||||
let local_var_content = local_var_resp.text()?;
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
Ok(())
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
} else {
|
} else {
|
||||||
let local_var_entity: Option<GetFavoritedAvatarsError> = serde_json::from_str(&local_var_content).ok();
|
let local_var_entity: Option<GetFavoritedAvatarsError> = serde_json::from_str(&local_var_content).ok();
|
||||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -108,7 +108,7 @@ pub fn add_favorite(configuration: &configuration::Configuration, inline_object8
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Clear ALL contents of a specific favorite group.
|
/// Clear ALL contents of a specific favorite group.
|
||||||
pub fn clear_favorite_group(configuration: &configuration::Configuration, favorite_group_type: &str, favorite_group_name: &str, user_id: &str) -> Result<crate::models::Error, Error<ClearFavoriteGroupError>> {
|
pub fn clear_favorite_group(configuration: &configuration::Configuration, favorite_group_type: &str, favorite_group_name: &str, user_id: &str) -> Result<crate::models::Success, Error<ClearFavoriteGroupError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ pub fn get_favorites(configuration: &configuration::Configuration, n: Option<i32
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Remove a favorite from your favorites list.
|
/// Remove a favorite from your favorites list.
|
||||||
pub fn remove_favorite(configuration: &configuration::Configuration, favorite_id: &str) -> Result<crate::models::Error, Error<RemoveFavoriteError>> {
|
pub fn remove_favorite(configuration: &configuration::Configuration, favorite_id: &str) -> Result<crate::models::Success, Error<RemoveFavoriteError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -283,7 +283,7 @@ pub fn get_file(configuration: &configuration::Configuration, file_id: &str) ->
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieves the upload status for file upload. Can currently only be accessed when `status` is `waiting`. Trying to access it on a file version already uploaded currently times out.
|
/// Retrieves the upload status for file upload. Can currently only be accessed when `status` is `waiting`. Trying to access it on a file version already uploaded currently times out.
|
||||||
pub fn get_file_data_upload_status(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str) -> Result<crate::models::InlineResponse2004, Error<GetFileDataUploadStatusError>> {
|
pub fn get_file_data_upload_status(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str) -> Result<crate::models::InlineResponse2003, Error<GetFileDataUploadStatusError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -349,7 +349,7 @@ pub fn get_files(configuration: &configuration::Configuration, tag: Option<&str>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1.
|
/// Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1.
|
||||||
pub fn start_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, part_number: i32) -> Result<crate::models::InlineResponse2005, Error<StartFileDataUploadError>> {
|
pub fn start_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, part_number: i32) -> Result<crate::models::InlineResponse2004, Error<StartFileDataUploadError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -113,7 +113,7 @@ pub fn friend(configuration: &configuration::Configuration, user_id: &str) -> Re
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve if the user is currently a friend with a given user, if they have an outgoing friend request, and if they have an incoming friend request. The proper way to receive and accept friend request is by checking if the user has an incoming `Notification` of type `friendRequest`, and then accepting that notification.
|
/// Retrieve if the user is currently a friend with a given user, if they have an outgoing friend request, and if they have an incoming friend request. The proper way to receive and accept friend request is by checking if the user has an incoming `Notification` of type `friendRequest`, and then accepting that notification.
|
||||||
pub fn get_friend_status(configuration: &configuration::Configuration, user_id: &str) -> Result<crate::models::InlineResponse2003, Error<GetFriendStatusError>> {
|
pub fn get_friend_status(configuration: &configuration::Configuration, user_id: &str) -> Result<crate::models::FriendStatus, Error<GetFriendStatusError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
268
src/apis/invite_api.rs
Normal file
268
src/apis/invite_api.rs
Normal file
@ -0,0 +1,268 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.3.0
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
use reqwest;
|
||||||
|
|
||||||
|
use crate::apis::ResponseContent;
|
||||||
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
|
||||||
|
/// struct for typed errors of method `get_invite_message`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum GetInviteMessageError {
|
||||||
|
Status400(crate::models::InlineResponse400),
|
||||||
|
Status401(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `get_invite_messages`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum GetInviteMessagesError {
|
||||||
|
Status400(crate::models::InlineResponse400),
|
||||||
|
Status401(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `invite_user`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum InviteUserError {
|
||||||
|
Status403(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `request_invite`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum RequestInviteError {
|
||||||
|
Status403(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `reset_invite_message`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum ResetInviteMessageError {
|
||||||
|
Status400(crate::models::InlineResponse400),
|
||||||
|
Status401(crate::models::InlineResponse400),
|
||||||
|
Status429(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `respond_invite`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum RespondInviteError {
|
||||||
|
Status400(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `update_invite_message`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum UpdateInviteMessageError {
|
||||||
|
Status400(crate::models::InlineResponse400),
|
||||||
|
Status401(crate::models::InlineResponse400),
|
||||||
|
Status429(crate::models::InlineResponse400),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
|
||||||
|
pub fn get_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result<crate::models::InviteMessage, Error<GetInviteMessageError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/message/{userId}/message/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageId=message_id);
|
||||||
|
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_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<GetInviteMessageError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
|
||||||
|
pub fn get_invite_messages(configuration: &configuration::Configuration, user_id: &str) -> Result<Vec<crate::models::InviteMessage>, Error<GetInviteMessagesError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/message/{userId}/message", configuration.base_path, userId=crate::apis::urlencode(user_id));
|
||||||
|
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_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<GetInviteMessagesError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
||||||
|
pub fn invite_user(configuration: &configuration::Configuration, user_id: &str) -> Result<crate::models::Notification, Error<InviteUserError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/invite/{userId}", configuration.base_path, userId=crate::apis::urlencode(user_id));
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<InviteUserError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
|
||||||
|
pub fn request_invite(configuration: &configuration::Configuration, user_id: &str) -> Result<crate::models::Notification, Error<RequestInviteError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/requestInvite/{userId}", configuration.base_path, userId=crate::apis::urlencode(user_id));
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<RequestInviteError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Resets a single Invite Message back to it's original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
||||||
|
pub fn reset_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result<Vec<crate::models::InviteMessage>, Error<ResetInviteMessageError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/message/{userId}/message/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageId=message_id);
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<ResetInviteMessageError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sends a world invite to a user.
|
||||||
|
pub fn respond_invite(configuration: &configuration::Configuration, notification_id: &str) -> Result<crate::models::Notification, Error<RespondInviteError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/invite/{notificationId}/response", configuration.base_path, notificationId=crate::apis::urlencode(notification_id));
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<RespondInviteError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
|
||||||
|
pub fn update_invite_message(configuration: &configuration::Configuration, user_id: &str, message_id: i32) -> Result<Vec<crate::models::InviteMessage>, Error<UpdateInviteMessageError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/message/{userId}/message/{messageId}", configuration.base_path, userId=crate::apis::urlencode(user_id), messageId=message_id);
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<UpdateInviteMessageError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -66,6 +66,7 @@ pub mod avatars_api;
|
|||||||
pub mod favorites_api;
|
pub mod favorites_api;
|
||||||
pub mod files_api;
|
pub mod files_api;
|
||||||
pub mod friends_api;
|
pub mod friends_api;
|
||||||
|
pub mod invite_api;
|
||||||
pub mod notifications_api;
|
pub mod notifications_api;
|
||||||
pub mod permissions_api;
|
pub mod permissions_api;
|
||||||
pub mod playermoderation_api;
|
pub mod playermoderation_api;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -93,7 +93,7 @@ pub fn clear_all_player_moderations(configuration: &configuration::Configuration
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 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.
|
/// 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.
|
||||||
pub fn delete_player_moderation(configuration: &configuration::Configuration, player_moderation_id: &str) -> Result<crate::models::Error, Error<DeletePlayerModerationError>> {
|
pub fn delete_player_moderation(configuration: &configuration::Configuration, player_moderation_id: &str) -> Result<crate::models::Success, Error<DeletePlayerModerationError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ pub fn moderate_user(configuration: &configuration::Configuration, inline_object
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Removes a player moderation previously added through `moderateUser`. E.g if you previuosly have shown their avatar, but now want to reset it to default.
|
/// Removes a player moderation previously added through `moderateUser`. E.g if you previuosly have shown their avatar, but now want to reset it to default.
|
||||||
pub fn unmoderate_user(configuration: &configuration::Configuration, inline_object13: Option<crate::models::InlineObject13>) -> Result<crate::models::Error, Error<UnmoderateUserError>> {
|
pub fn unmoderate_user(configuration: &configuration::Configuration, inline_object13: Option<crate::models::InlineObject13>) -> Result<crate::models::Success, Error<UnmoderateUserError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -30,14 +30,6 @@ pub enum GetUserByNameError {
|
|||||||
UnknownValue(serde_json::Value),
|
UnknownValue(serde_json::Value),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// struct for typed errors of method `search_active_users`
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
||||||
#[serde(untagged)]
|
|
||||||
pub enum SearchActiveUsersError {
|
|
||||||
Status403(crate::models::InlineResponse403),
|
|
||||||
UnknownValue(serde_json::Value),
|
|
||||||
}
|
|
||||||
|
|
||||||
/// struct for typed errors of method `search_users`
|
/// struct for typed errors of method `search_users`
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
@ -109,43 +101,6 @@ pub fn get_user_by_name(configuration: &configuration::Configuration, username:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Search and list any Active users by text query. **Has been locked down and now always respond with \"Invalid Admin Credentials\".**
|
|
||||||
pub fn search_active_users(configuration: &configuration::Configuration, search: &str, developer_type: Option<&str>, offset: Option<i32>, n: Option<i32>) -> Result<Vec<crate::models::LimitedUser>, Error<SearchActiveUsersError>> {
|
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
|
||||||
|
|
||||||
let local_var_uri_str = format!("{}/users/active", configuration.base_path);
|
|
||||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
|
||||||
|
|
||||||
local_var_req_builder = local_var_req_builder.query(&[("search", &search.to_string())]);
|
|
||||||
if let Some(ref local_var_str) = developer_type {
|
|
||||||
local_var_req_builder = local_var_req_builder.query(&[("developerType", &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_str) = n {
|
|
||||||
local_var_req_builder = local_var_req_builder.query(&[("n", &local_var_str.to_string())]);
|
|
||||||
}
|
|
||||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
|
||||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
|
||||||
}
|
|
||||||
|
|
||||||
let local_var_req = local_var_req_builder.build()?;
|
|
||||||
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
|
||||||
|
|
||||||
let local_var_status = local_var_resp.status();
|
|
||||||
let local_var_content = local_var_resp.text()?;
|
|
||||||
|
|
||||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
|
||||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
|
||||||
} else {
|
|
||||||
let local_var_entity: Option<SearchActiveUsersError> = serde_json::from_str(&local_var_content).ok();
|
|
||||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
|
||||||
Err(Error::ResponseError(local_var_error))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Search and list any users by text query
|
/// Search and list any users by text query
|
||||||
pub fn search_users(configuration: &configuration::Configuration, search: Option<&str>, developer_type: Option<&str>, n: Option<i32>, offset: Option<i32>) -> Result<Vec<crate::models::LimitedUser>, Error<SearchUsersError>> {
|
pub fn search_users(configuration: &configuration::Configuration, search: Option<&str>, developer_type: Option<&str>, n: Option<i32>, offset: Option<i32>) -> Result<Vec<crate::models::LimitedUser>, Error<SearchUsersError>> {
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -432,7 +432,7 @@ pub fn get_world_instance(configuration: &configuration::Configuration, world_id
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Return a worlds custom metadata. This is currently believed to be unused. Metadata can be set with `updateWorld` and can be any arbitrary object.
|
/// Return a worlds custom metadata. This is currently believed to be unused. Metadata can be set with `updateWorld` and can be any arbitrary object.
|
||||||
pub fn get_world_metadata(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::InlineResponse2006, Error<GetWorldMetadataError>> {
|
pub fn get_world_metadata(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::InlineResponse2005, Error<GetWorldMetadataError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
@ -459,7 +459,7 @@ pub fn get_world_metadata(configuration: &configuration::Configuration, world_id
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a worlds publish status.
|
/// Returns a worlds publish status.
|
||||||
pub fn get_world_publish_status(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::InlineResponse2007, Error<GetWorldPublishStatusError>> {
|
pub fn get_world_publish_status(configuration: &configuration::Configuration, world_id: &str) -> Result<crate::models::InlineResponse2006, Error<GetWorldPublishStatusError>> {
|
||||||
|
|
||||||
let local_var_client = &configuration.client;
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -87,8 +87,9 @@ pub struct CurrentUser {
|
|||||||
pub developer_type: crate::models::DeveloperType,
|
pub developer_type: crate::models::DeveloperType,
|
||||||
#[serde(rename = "last_login")]
|
#[serde(rename = "last_login")]
|
||||||
pub last_login: String,
|
pub last_login: 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`.
|
||||||
#[serde(rename = "last_platform")]
|
#[serde(rename = "last_platform")]
|
||||||
pub last_platform: crate::models::Platform,
|
pub last_platform: String,
|
||||||
#[serde(rename = "allowAvatarCopying")]
|
#[serde(rename = "allowAvatarCopying")]
|
||||||
pub allow_avatar_copying: bool,
|
pub allow_avatar_copying: bool,
|
||||||
#[serde(rename = "status")]
|
#[serde(rename = "status")]
|
||||||
@ -108,7 +109,7 @@ pub struct CurrentUser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl CurrentUser {
|
impl CurrentUser {
|
||||||
pub fn new(id: String, username: String, display_name: String, user_icon: String, bio: String, bio_links: Vec<String>, profile_pic_override: String, status_description: String, past_display_names: Vec<crate::models::PastDisplayName>, has_email: bool, has_pending_email: bool, obfuscated_email: String, obfuscated_pending_email: String, email_verified: bool, has_birthday: bool, unsubscribe: bool, status_history: Vec<String>, status_first_time: bool, friends: Vec<String>, friend_group_names: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, fallback_avatar: String, current_avatar: String, current_avatar_asset_url: String, accepted_tos_version: f32, steam_id: String, steam_details: serde_json::Value, oculus_id: String, has_logged_in_from_client: bool, home_location: String, two_factor_auth_enabled: bool, state: crate::models::UserState, tags: Vec<String>, developer_type: crate::models::DeveloperType, last_login: String, last_platform: crate::models::Platform, allow_avatar_copying: bool, status: crate::models::UserStatus, date_joined: String, is_friend: bool, friend_key: String) -> CurrentUser {
|
pub fn new(id: String, username: String, display_name: String, user_icon: String, bio: String, bio_links: Vec<String>, profile_pic_override: String, status_description: String, past_display_names: Vec<crate::models::PastDisplayName>, has_email: bool, has_pending_email: bool, obfuscated_email: String, obfuscated_pending_email: String, email_verified: bool, has_birthday: bool, unsubscribe: bool, status_history: Vec<String>, status_first_time: bool, friends: Vec<String>, friend_group_names: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, fallback_avatar: String, current_avatar: String, current_avatar_asset_url: String, accepted_tos_version: f32, steam_id: String, steam_details: serde_json::Value, oculus_id: String, has_logged_in_from_client: bool, home_location: String, two_factor_auth_enabled: bool, state: crate::models::UserState, tags: Vec<String>, developer_type: crate::models::DeveloperType, last_login: String, last_platform: String, allow_avatar_copying: bool, status: crate::models::UserStatus, date_joined: String, is_friend: bool, friend_key: String) -> CurrentUser {
|
||||||
CurrentUser {
|
CurrentUser {
|
||||||
id,
|
id,
|
||||||
username,
|
username,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
33
src/models/friend_status.rs
Normal file
33
src/models/friend_status.rs
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.3.0
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
pub struct FriendStatus {
|
||||||
|
#[serde(rename = "isFriend")]
|
||||||
|
pub is_friend: bool,
|
||||||
|
#[serde(rename = "outgoingRequest")]
|
||||||
|
pub outgoing_request: bool,
|
||||||
|
#[serde(rename = "incomingRequest")]
|
||||||
|
pub incoming_request: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl FriendStatus {
|
||||||
|
pub fn new(is_friend: bool, outgoing_request: bool, incoming_request: bool) -> FriendStatus {
|
||||||
|
FriendStatus {
|
||||||
|
is_friend,
|
||||||
|
outgoing_request,
|
||||||
|
incoming_request,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -30,8 +30,9 @@ pub struct InlineObject6 {
|
|||||||
pub image_url: String,
|
pub image_url: String,
|
||||||
#[serde(rename = "name")]
|
#[serde(rename = "name")]
|
||||||
pub name: String,
|
pub name: 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`.
|
||||||
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
|
||||||
pub platform: Option<crate::models::Platform>,
|
pub platform: Option<String>,
|
||||||
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
||||||
pub release_status: Option<crate::models::ReleaseStatus>,
|
pub release_status: Option<crate::models::ReleaseStatus>,
|
||||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -30,8 +30,9 @@ pub struct InlineObject7 {
|
|||||||
pub image_url: Option<String>,
|
pub image_url: Option<String>,
|
||||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||||
pub name: Option<String>,
|
pub name: 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`.
|
||||||
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
|
||||||
pub platform: Option<crate::models::Platform>,
|
pub platform: Option<String>,
|
||||||
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
||||||
pub release_status: Option<crate::models::ReleaseStatus>,
|
pub release_status: Option<crate::models::ReleaseStatus>,
|
||||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,20 +12,30 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct InlineResponse2003 {
|
pub struct InlineResponse2003 {
|
||||||
#[serde(rename = "isFriend")]
|
#[serde(rename = "uploadId")]
|
||||||
pub is_friend: bool,
|
pub upload_id: String,
|
||||||
#[serde(rename = "outgoingRequest")]
|
#[serde(rename = "fileName")]
|
||||||
pub outgoing_request: bool,
|
pub file_name: String,
|
||||||
#[serde(rename = "incomingRequest")]
|
#[serde(rename = "nextPartNumber")]
|
||||||
pub incoming_request: bool,
|
pub next_part_number: f32,
|
||||||
|
#[serde(rename = "maxParts")]
|
||||||
|
pub max_parts: f32,
|
||||||
|
#[serde(rename = "parts")]
|
||||||
|
pub parts: Vec<serde_json::Value>,
|
||||||
|
/// Unknown
|
||||||
|
#[serde(rename = "etags")]
|
||||||
|
pub etags: Vec<serde_json::Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InlineResponse2003 {
|
impl InlineResponse2003 {
|
||||||
pub fn new(is_friend: bool, outgoing_request: bool, incoming_request: bool) -> InlineResponse2003 {
|
pub fn new(upload_id: String, file_name: String, next_part_number: f32, max_parts: f32, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> InlineResponse2003 {
|
||||||
InlineResponse2003 {
|
InlineResponse2003 {
|
||||||
is_friend,
|
upload_id,
|
||||||
outgoing_request,
|
file_name,
|
||||||
incoming_request,
|
next_part_number,
|
||||||
|
max_parts,
|
||||||
|
parts,
|
||||||
|
etags,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,30 +12,14 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct InlineResponse2004 {
|
pub struct InlineResponse2004 {
|
||||||
#[serde(rename = "uploadId")]
|
#[serde(rename = "url")]
|
||||||
pub upload_id: String,
|
pub url: String,
|
||||||
#[serde(rename = "fileName")]
|
|
||||||
pub file_name: String,
|
|
||||||
#[serde(rename = "nextPartNumber")]
|
|
||||||
pub next_part_number: f32,
|
|
||||||
#[serde(rename = "maxParts")]
|
|
||||||
pub max_parts: f32,
|
|
||||||
#[serde(rename = "parts")]
|
|
||||||
pub parts: Vec<serde_json::Value>,
|
|
||||||
/// Unknown
|
|
||||||
#[serde(rename = "etags")]
|
|
||||||
pub etags: Vec<serde_json::Value>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InlineResponse2004 {
|
impl InlineResponse2004 {
|
||||||
pub fn new(upload_id: String, file_name: String, next_part_number: f32, max_parts: f32, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> InlineResponse2004 {
|
pub fn new(url: String) -> InlineResponse2004 {
|
||||||
InlineResponse2004 {
|
InlineResponse2004 {
|
||||||
upload_id,
|
url,
|
||||||
file_name,
|
|
||||||
next_part_number,
|
|
||||||
max_parts,
|
|
||||||
parts,
|
|
||||||
etags,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,14 +12,17 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct InlineResponse2005 {
|
pub struct InlineResponse2005 {
|
||||||
#[serde(rename = "url")]
|
#[serde(rename = "id")]
|
||||||
pub url: String,
|
pub id: String,
|
||||||
|
#[serde(rename = "metadata")]
|
||||||
|
pub metadata: serde_json::Value,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InlineResponse2005 {
|
impl InlineResponse2005 {
|
||||||
pub fn new(url: String) -> InlineResponse2005 {
|
pub fn new(id: String, metadata: serde_json::Value) -> InlineResponse2005 {
|
||||||
InlineResponse2005 {
|
InlineResponse2005 {
|
||||||
url,
|
id,
|
||||||
|
metadata,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -12,17 +12,14 @@
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct InlineResponse2006 {
|
pub struct InlineResponse2006 {
|
||||||
#[serde(rename = "id")]
|
#[serde(rename = "canPubilsh")]
|
||||||
pub id: String,
|
pub can_pubilsh: bool,
|
||||||
#[serde(rename = "metadata")]
|
|
||||||
pub metadata: serde_json::Value,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InlineResponse2006 {
|
impl InlineResponse2006 {
|
||||||
pub fn new(id: String, metadata: serde_json::Value) -> InlineResponse2006 {
|
pub fn new(can_pubilsh: bool) -> InlineResponse2006 {
|
||||||
InlineResponse2006 {
|
InlineResponse2006 {
|
||||||
id,
|
can_pubilsh,
|
||||||
metadata,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
/*
|
|
||||||
* VRChat API Documentation
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.1.2
|
|
||||||
* Contact: me@ruby.js.org
|
|
||||||
* Generated by: https://openapi-generator.tech
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
|
||||||
pub struct InlineResponse2007 {
|
|
||||||
#[serde(rename = "canPubilsh")]
|
|
||||||
pub can_pubilsh: bool,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl InlineResponse2007 {
|
|
||||||
pub fn new(can_pubilsh: bool) -> InlineResponse2007 {
|
|
||||||
InlineResponse2007 {
|
|
||||||
can_pubilsh,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
@ -11,14 +11,14 @@
|
|||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct InlineResponse403 {
|
pub struct InlineResponse400 {
|
||||||
#[serde(rename = "error")]
|
#[serde(rename = "error")]
|
||||||
pub error: Box<crate::models::Error>,
|
pub error: Box<crate::models::Error>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InlineResponse403 {
|
impl InlineResponse400 {
|
||||||
pub fn new(error: crate::models::Error) -> InlineResponse403 {
|
pub fn new(error: crate::models::Error) -> InlineResponse400 {
|
||||||
InlineResponse403 {
|
InlineResponse400 {
|
||||||
error: Box::new(error),
|
error: Box::new(error),
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* VRChat API Documentation
|
* VRChat API Documentation
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.1.2
|
* The version of the OpenAPI document: 1.3.0
|
||||||
* Contact: me@ruby.js.org
|
* Contact: me@ruby.js.org
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
*/
|
*/
|
||||||
|
46
src/models/invite_message.rs
Normal file
46
src/models/invite_message.rs
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.3.0
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
pub struct InviteMessage {
|
||||||
|
#[serde(rename = "id")]
|
||||||
|
pub id: String,
|
||||||
|
#[serde(rename = "slot")]
|
||||||
|
pub slot: i32,
|
||||||
|
#[serde(rename = "message")]
|
||||||
|
pub message: String,
|
||||||
|
#[serde(rename = "messageType")]
|
||||||
|
pub message_type: crate::models::InviteMessageType,
|
||||||
|
#[serde(rename = "updatedAt")]
|
||||||
|
pub updated_at: String,
|
||||||
|
/// Changes to 60 when updated, although probably server-side configurable.
|
||||||
|
#[serde(rename = "remainingCooldownMinutes")]
|
||||||
|
pub remaining_cooldown_minutes: i32,
|
||||||
|
#[serde(rename = "canBeUpdated")]
|
||||||
|
pub can_be_updated: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl InviteMessage {
|
||||||
|
pub fn new(id: String, slot: i32, message: String, message_type: crate::models::InviteMessageType, updated_at: String, remaining_cooldown_minutes: i32, can_be_updated: bool) -> InviteMessage {
|
||||||
|
InviteMessage {
|
||||||
|
id,
|
||||||
|
slot,
|
||||||
|
message,
|
||||||
|
message_type,
|
||||||
|
updated_at,
|
||||||
|
remaining_cooldown_minutes,
|
||||||
|
can_be_updated,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
29
src/models/invite_message_type.rs
Normal file
29
src/models/invite_message_type.rs
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.3.0
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||||
|
pub enum InviteMessageType {
|
||||||
|
#[serde(rename = "message")]
|
||||||
|
Message,
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ToString for InviteMessageType {
|
||||||
|
fn to_string(&self) -> String {
|
||||||
|
match self {
|
||||||
|
Self::Message => String::from("message"),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user