Skip to content

Commit 713a215

Browse files
committed
Upgrade C# SDK to spec 1.20.5
1 parent 75c2577 commit 713a215

File tree

299 files changed

+3928
-641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+3928
-641
lines changed

.openapi-generator/FILES

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ docs/AdminUnityPackage.md
3232
docs/AgeVerificationStatus.md
3333
docs/AuthenticationApi.md
3434
docs/Avatar.md
35+
docs/AvatarModeration.md
36+
docs/AvatarModerationType.md
3537
docs/AvatarPerformance.md
3638
docs/AvatarPublishedListingsInner.md
3739
docs/AvatarStyle.md
@@ -56,12 +58,14 @@ docs/CreateGroupPostRequest.md
5658
docs/CreateGroupRequest.md
5759
docs/CreateGroupRoleRequest.md
5860
docs/CreateInstanceRequest.md
61+
docs/CreatePermissionRequest.md
5962
docs/CreateWorldRequest.md
6063
docs/CurrentUser.md
6164
docs/CurrentUserPlatformHistoryInner.md
6265
docs/CurrentUserPresence.md
6366
docs/DeveloperType.md
6467
docs/Disable2FAResult.md
68+
docs/DiscordDetails.md
6569
docs/DynamicContentRow.md
6670
docs/EconomyAccount.md
6771
docs/EconomyApi.md
@@ -237,6 +241,7 @@ docs/UpdateGroupRequest.md
237241
docs/UpdateGroupRoleRequest.md
238242
docs/UpdateInventoryItemRequest.md
239243
docs/UpdateInviteMessageRequest.md
244+
docs/UpdatePermissionRequest.md
240245
docs/UpdateUserBadgeRequest.md
241246
docs/UpdateUserNoteRequest.md
242247
docs/UpdateUserRequest.md
@@ -325,6 +330,8 @@ src/VRChat.API/Model/AdminAssetBundle.cs
325330
src/VRChat.API/Model/AdminUnityPackage.cs
326331
src/VRChat.API/Model/AgeVerificationStatus.cs
327332
src/VRChat.API/Model/Avatar.cs
333+
src/VRChat.API/Model/AvatarModeration.cs
334+
src/VRChat.API/Model/AvatarModerationType.cs
328335
src/VRChat.API/Model/AvatarPerformance.cs
329336
src/VRChat.API/Model/AvatarPublishedListingsInner.cs
330337
src/VRChat.API/Model/AvatarStyle.cs
@@ -347,12 +354,14 @@ src/VRChat.API/Model/CreateGroupPostRequest.cs
347354
src/VRChat.API/Model/CreateGroupRequest.cs
348355
src/VRChat.API/Model/CreateGroupRoleRequest.cs
349356
src/VRChat.API/Model/CreateInstanceRequest.cs
357+
src/VRChat.API/Model/CreatePermissionRequest.cs
350358
src/VRChat.API/Model/CreateWorldRequest.cs
351359
src/VRChat.API/Model/CurrentUser.cs
352360
src/VRChat.API/Model/CurrentUserPlatformHistoryInner.cs
353361
src/VRChat.API/Model/CurrentUserPresence.cs
354362
src/VRChat.API/Model/DeveloperType.cs
355363
src/VRChat.API/Model/Disable2FAResult.cs
364+
src/VRChat.API/Model/DiscordDetails.cs
356365
src/VRChat.API/Model/DynamicContentRow.cs
357366
src/VRChat.API/Model/EconomyAccount.cs
358367
src/VRChat.API/Model/Error.cs
@@ -514,6 +523,7 @@ src/VRChat.API/Model/UpdateGroupRequest.cs
514523
src/VRChat.API/Model/UpdateGroupRoleRequest.cs
515524
src/VRChat.API/Model/UpdateInventoryItemRequest.cs
516525
src/VRChat.API/Model/UpdateInviteMessageRequest.cs
526+
src/VRChat.API/Model/UpdatePermissionRequest.cs
517527
src/VRChat.API/Model/UpdateUserBadgeRequest.cs
518528
src/VRChat.API/Model/UpdateUserNoteRequest.cs
519529
src/VRChat.API/Model/UpdateUserRequest.cs

docs/AuthenticationApi.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
1111
| [**Disable2FA**](AuthenticationApi.md#disable2fa) | **DELETE** /auth/twofactorauth | Disable 2FA |
1212
| [**Enable2FA**](AuthenticationApi.md#enable2fa) | **POST** /auth/twofactorauth/totp/pending | Enable time-based 2FA codes |
1313
| [**GetCurrentUser**](AuthenticationApi.md#getcurrentuser) | **GET** /auth/user | Login and/or Get Current User Info |
14+
| [**GetGlobalAvatarModerations**](AuthenticationApi.md#getglobalavatarmoderations) | **GET** /auth/user/avatarmoderations | Get Global Avatar Moderations |
1415
| [**GetRecoveryCodes**](AuthenticationApi.md#getrecoverycodes) | **GET** /auth/user/twofactorauth/otp | Get 2FA Recovery codes |
1516
| [**Logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout |
1617
| [**RegisterUserAccount**](AuthenticationApi.md#registeruseraccount) | **POST** /auth/register | Register User Account |
@@ -681,6 +682,98 @@ This endpoint does not need any parameter.
681682

682683
[[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)
683684

685+
<a name="getglobalavatarmoderations"></a>
686+
# **GetGlobalAvatarModerations**
687+
> List&lt;AvatarModeration&gt; GetGlobalAvatarModerations ()
688+
689+
Get Global Avatar Moderations
690+
691+
Returns list of globally blocked avatars.
692+
693+
### Example
694+
```csharp
695+
using System.Collections.Generic;
696+
using System.Diagnostics;
697+
using VRChat.API.Api;
698+
using VRChat.API.Client;
699+
using VRChat.API.Model;
700+
701+
namespace Example
702+
{
703+
public class GetGlobalAvatarModerationsExample
704+
{
705+
public static void Main()
706+
{
707+
Configuration config = new Configuration();
708+
config.BasePath = "https://api.vrchat.cloud/api/1";
709+
// Configure API key authorization: authCookie
710+
config.AddApiKey("auth", "YOUR_API_KEY");
711+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
712+
// config.AddApiKeyPrefix("auth", "Bearer");
713+
714+
var apiInstance = new AuthenticationApi(config);
715+
716+
try
717+
{
718+
// Get Global Avatar Moderations
719+
List<AvatarModeration> result = apiInstance.GetGlobalAvatarModerations();
720+
Debug.WriteLine(result);
721+
}
722+
catch (ApiException e)
723+
{
724+
Debug.Print("Exception when calling AuthenticationApi.GetGlobalAvatarModerations: " + e.Message);
725+
Debug.Print("Status Code: " + e.ErrorCode);
726+
Debug.Print(e.StackTrace);
727+
}
728+
}
729+
}
730+
}
731+
```
732+
733+
#### Using the GetGlobalAvatarModerationsWithHttpInfo variant
734+
This returns an ApiResponse object which contains the response data, status code and headers.
735+
736+
```csharp
737+
try
738+
{
739+
// Get Global Avatar Moderations
740+
ApiResponse<List<AvatarModeration>> response = apiInstance.GetGlobalAvatarModerationsWithHttpInfo();
741+
Debug.Write("Status Code: " + response.StatusCode);
742+
Debug.Write("Response Headers: " + response.Headers);
743+
Debug.Write("Response Body: " + response.Data);
744+
}
745+
catch (ApiException e)
746+
{
747+
Debug.Print("Exception when calling AuthenticationApi.GetGlobalAvatarModerationsWithHttpInfo: " + e.Message);
748+
Debug.Print("Status Code: " + e.ErrorCode);
749+
Debug.Print(e.StackTrace);
750+
}
751+
```
752+
753+
### Parameters
754+
This endpoint does not need any parameter.
755+
### Return type
756+
757+
[**List&lt;AvatarModeration&gt;**](AvatarModeration.md)
758+
759+
### Authorization
760+
761+
[authCookie](../README.md#authCookie)
762+
763+
### HTTP request headers
764+
765+
- **Content-Type**: Not defined
766+
- **Accept**: application/json
767+
768+
769+
### HTTP response details
770+
| Status code | Description | Response headers |
771+
|-------------|-------------|------------------|
772+
| **200** | Returns list of globally blocked avatars with timestamps | - |
773+
| **401** | Error response due to missing auth cookie. | - |
774+
775+
[[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)
776+
684777
<a name="getrecoverycodes"></a>
685778
# **GetRecoveryCodes**
686779
> TwoFactorRecoveryCodes GetRecoveryCodes ()

docs/AvatarModeration.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# VRChat.API.Model.AvatarModeration
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**AvatarModerationType** | **AvatarModerationType** | |
8+
**Created** | **DateTime** | |
9+
**TargetAvatarId** | **string** | |
10+
11+
[[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+

docs/AvatarModerationType.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# VRChat.API.Model.AvatarModerationType
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+

docs/CalendarEvent.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**AccessType** | **string** | |
8-
**Category** | **string** | | [optional]
8+
**Category** | **string** | |
99
**CloseInstanceAfterEndMinutes** | **int** | | [optional]
1010
**CreatedAt** | **DateTime** | | [optional]
1111
**DeletedAt** | **DateTime?** | | [optional]
12-
**Description** | **string** | | [optional]
13-
**EndsAt** | **DateTime** | | [optional]
12+
**Description** | **string** | |
13+
**EndsAt** | **DateTime** | |
1414
**Featured** | **bool** | | [optional]
1515
**GuestEarlyJoinMinutes** | **int** | | [optional]
1616
**HostEarlyJoinMinutes** | **int** | | [optional]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
2323
**OwnerId** | **string** | | [optional]
2424
**Platforms** | **List&lt;string&gt;** | | [optional]
2525
**RoleIds** | **List&lt;string&gt;** | | [optional]
26-
**StartsAt** | **DateTime** | | [optional]
26+
**StartsAt** | **DateTime** | |
2727
**Tags** | **List&lt;string&gt;** | | [optional]
2828
**Title** | **string** | |
2929
**Type** | **string** | | [optional]

docs/CreateAvatarRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
1717
**ThumbnailImageUrl** | **string** | | [optional]
1818
**ReleaseStatus** | **ReleaseStatus** | | [optional]
1919
**_Version** | **int** | | [optional] [default to 1]
20+
**Featured** | **bool** | Enabling featured tag requires Admin Credentials. | [optional]
2021
**UnityPackageUrl** | **string** | | [optional]
2122
**UnityVersion** | **string** | | [optional] [default to "5.3.4p1"]
2223

docs/CreatePermissionRequest.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# VRChat.API.Model.CreatePermissionRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Name** | **string** | |
8+
**OwnerId** | **string** | A users unique ID, usually in the form of &#x60;usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469&#x60;. Legacy players can have old IDs in the form of &#x60;8JoV9XEdpo&#x60;. The ID can never be changed. | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

docs/CurrentUser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
2323
**CurrentAvatarTags** | **List&lt;string&gt;** | |
2424
**DateJoined** | **DateTime** | |
2525
**DeveloperType** | **DeveloperType** | |
26+
**DiscordDetails** | [**DiscordDetails**](DiscordDetails.md) | | [optional]
27+
**DiscordId** | **string** | https://discord.com/developers/docs/reference#snowflakes | [optional]
2628
**DisplayName** | **string** | |
2729
**EmailVerified** | **bool** | |
2830
**FallbackAvatar** | **string** | | [optional]

docs/DiscordDetails.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# VRChat.API.Model.DiscordDetails
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**GlobalName** | **string** | | [optional]
8+
**Id** | **string** | https://discord.com/developers/docs/reference#snowflakes | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

0 commit comments

Comments
 (0)