Skip to content

Commit

Permalink
Upgrade C# SDK to spec 1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Sep 19, 2023
1 parent 2a275be commit 377e64b
Show file tree
Hide file tree
Showing 164 changed files with 693 additions and 303 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ docs/CreateGroupRequest.md
docs/CreateGroupRoleRequest.md
docs/CreateWorldRequest.md
docs/CurrentUser.md
docs/CurrentUserPresence.md
docs/DeploymentGroup.md
docs/DeveloperType.md
docs/DynamicContentRow.md
Expand Down Expand Up @@ -190,6 +191,7 @@ src/VRChat.API/Model/CreateGroupRequest.cs
src/VRChat.API/Model/CreateGroupRoleRequest.cs
src/VRChat.API/Model/CreateWorldRequest.cs
src/VRChat.API/Model/CurrentUser.cs
src/VRChat.API/Model/CurrentUserPresence.cs
src/VRChat.API/Model/DeploymentGroup.cs
src/VRChat.API/Model/DeveloperType.cs
src/VRChat.API/Model/DynamicContentRow.cs
Expand Down
4 changes: 4 additions & 0 deletions docs/CurrentUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AcceptedTOSVersion** | **int** | |
**AcceptedPrivacyVersion** | **int** | | [optional]
**AccountDeletionDate** | **DateTime?** | | [optional]
**AccountDeletionLog** | [**List<AccountDeletionLog>**](AccountDeletionLog.md) | | [optional]
**ActiveFriends** | **List<string>** | | [optional]
Expand All @@ -30,6 +31,7 @@ Name | Type | Description | Notes
**HomeLocation** | **string** | WorldID be \"offline\" on User profiles if you are not friends with that user. |
**Id** | **string** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. |
**IsFriend** | **bool** | | [default to false]
**LastActivity** | **DateTime** | | [optional]
**LastLogin** | **DateTime** | |
**LastPlatform** | **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`. |
**ObfuscatedEmail** | **string** | |
Expand All @@ -38,6 +40,7 @@ Name | Type | Description | Notes
**OfflineFriends** | **List<string>** | | [optional]
**OnlineFriends** | **List<string>** | | [optional]
**PastDisplayNames** | [**List<PastDisplayName>**](PastDisplayName.md) | |
**Presence** | [**CurrentUserPresence**](CurrentUserPresence.md) | | [optional]
**ProfilePicOverride** | **string** | |
**State** | **UserState** | |
**Status** | **UserStatus** | |
Expand All @@ -50,6 +53,7 @@ Name | Type | Description | Notes
**TwoFactorAuthEnabled** | **bool** | |
**TwoFactorAuthEnabledDate** | **DateTime?** | | [optional]
**Unsubscribe** | **bool** | |
**UpdatedAt** | **DateTime** | | [optional]
**UserIcon** | **string** | |
**Username** | **string** | -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). | [optional]

Expand Down
22 changes: 22 additions & 0 deletions docs/CurrentUserPresence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# VRChat.API.Model.CurrentUserPresence

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AvatarThumbnail** | **string** | | [optional]
**DisplayName** | **string** | | [optional]
**Groups** | **List<string>** | | [optional]
**Id** | **string** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
**Instance** | **string** | | [optional]
**InstanceType** | **string** | either an InstanceType or an empty string | [optional]
**IsRejoining** | **string** | | [optional]
**Platform** | **string** | either a Platform or an empty string | [optional]
**ProfilePicOverride** | **string** | | [optional]
**Status** | **string** | either a UserStatus or empty string | [optional]
**TravelingToInstance** | **string** | | [optional]
**TravelingToWorld** | **string** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
**World** | **string** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]

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

2 changes: 1 addition & 1 deletion docs/LimitedUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**CurrentAvatarThumbnailImageUrl** | **string** | When profilePicOverride is not empty, use it instead. |
**DeveloperType** | **DeveloperType** | |
**DisplayName** | **string** | |
**FallbackAvatar** | **string** | |
**FallbackAvatar** | **string** | | [optional]
**Id** | **string** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. |
**IsFriend** | **bool** | |
**LastPlatform** | **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`. |
Expand Down
1 change: 1 addition & 0 deletions docs/World.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**AuthorId** | **string** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. |
**AuthorName** | **string** | |
**Capacity** | **int** | |
**RecommendedCapacity** | **int** | |
**CreatedAt** | **DateTime** | |
**Description** | **string** | |
**Favorites** | **int** | | [optional] [default to 0]
Expand Down
151 changes: 39 additions & 112 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@openapitools/openapi-generator-cli": "^2.6.0"
"@openapitools/openapi-generator-cli": "^2.7.0"
}
}
9 changes: 4 additions & 5 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ using VRChat.API.Api;
using VRChat.API.Client;
using VRChat.API.Model;


// Authentication credentials
Configuration Config = new Configuration();
Config.Username = "username";
Expand All @@ -52,13 +51,13 @@ WorldsApi WorldApi = new WorldsApi(Config);
try
{
// Calling "GetCurrentUser(Async)" logs you in if you are not already logged in.
CurrentUser CurrentUser = await AuthApi.GetCurrentUserAsync();
CurrentUser CurrentUser = AuthApi.GetCurrentUser();
Console.WriteLine("Logged in as {0}, Current Avatar {1}", CurrentUser.DisplayName, CurrentUser.CurrentAvatar);

User OtherUser = await UserApi.GetUserAsync("usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469");
User OtherUser = UserApi.GetUser("usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469");
Console.WriteLine("Found user {0}, joined {1}", OtherUser.DisplayName, OtherUser.DateJoined);

World World = await WorldApi.GetWorldAsync("wrld_ba913a96-fac4-4048-a062-9aa5db092812");
World World = WorldApi.GetWorld("wrld_ba913a96-fac4-4048-a062-9aa5db092812");
Console.WriteLine("Found world {0}, visits: {1}", World.Name, World.Visits);
}
catch (ApiException e)
Expand All @@ -77,4 +76,4 @@ catch (ApiException e)

Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.

Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.
Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.
Loading

0 comments on commit 377e64b

Please sign in to comment.