Skip to content

Commit

Permalink
Set OpenAPI version back to 6.2.1 and fix GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Foorack committed Dec 4, 2022
1 parent 2d96f65 commit fd64b28
Show file tree
Hide file tree
Showing 157 changed files with 14,007 additions and 5,895 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install OpenAPI Generator CLI
run: npm install @openapitools/openapi-generator-cli
- name: Set OpenAPI Generator version
run: ./node_modules/\@openapitools/openapi-generator-cli/main.js version-manager set 5.3.0
run: ./node_modules/\@openapitools/openapi-generator-cli/main.js version-manager set 6.2.1
- name: Setup NuGet
uses: NuGet/[email protected]
- uses: actions/setup-dotnet@v3
Expand All @@ -46,7 +46,7 @@ jobs:
folder: .
commit-message: "Upgrade C# SDK to spec ${{ env.spec_version }}"
- name: Publish to NuGet
uses: rohith/publish-nuget@v2
uses: pairbit/publish-nuget@v2.5.8
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: src/VRChat.API/VRChat.API.csproj
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0
6.2.1
230 changes: 183 additions & 47 deletions docs/AuthenticationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**CheckUserExists**](AuthenticationApi.md#checkuserexists) | **GET** /auth/exists | Check User Exists
[**DeleteUser**](AuthenticationApi.md#deleteuser) | **PUT** /user/{userId}/delete | Delete User
[**GetCurrentUser**](AuthenticationApi.md#getcurrentuser) | **GET** /auth/user | Login and/or Get Current User Info
[**Logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout
[**Verify2FA**](AuthenticationApi.md#verify2fa) | **POST** /auth/twofactorauth/totp/verify | Verify 2FA code
[**VerifyAuthToken**](AuthenticationApi.md#verifyauthtoken) | **GET** /auth | Verify Auth Token
[**VerifyRecoveryCode**](AuthenticationApi.md#verifyrecoverycode) | **POST** /auth/twofactorauth/otp/verify | Verify 2FA code with Recovery code

| Method | HTTP request | Description |
|--------|--------------|-------------|
| [**CheckUserExists**](AuthenticationApi.md#checkuserexists) | **GET** /auth/exists | Check User Exists |
| [**DeleteUser**](AuthenticationApi.md#deleteuser) | **PUT** /user/{userId}/delete | Delete User |
| [**GetCurrentUser**](AuthenticationApi.md#getcurrentuser) | **GET** /auth/user | Login and/or Get Current User Info |
| [**Logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout |
| [**Verify2FA**](AuthenticationApi.md#verify2fa) | **POST** /auth/twofactorauth/totp/verify | Verify 2FA code |
| [**VerifyAuthToken**](AuthenticationApi.md#verifyauthtoken) | **GET** /auth | Verify Auth Token |
| [**VerifyRecoveryCode**](AuthenticationApi.md#verifyrecoverycode) | **POST** /auth/twofactorauth/otp/verify | Verify 2FA code with Recovery code |

<a name="checkuserexists"></a>
# **CheckUserExists**
Expand Down Expand Up @@ -43,10 +42,10 @@ namespace Example
// config.AddApiKeyPrefix("apiKey", "Bearer");
var apiInstance = new AuthenticationApi(config);
var email = email_example; // string | Filter by email. (optional)
var displayName = displayName_example; // string | Filter by displayName. (optional)
var userId = userId_example; // string | Filter by UserID. (optional)
var excludeUserId = excludeUserId_example; // string | Exclude by UserID. (optional)
var email = "email_example"; // string | Filter by email. (optional)
var displayName = "displayName_example"; // string | Filter by displayName. (optional)
var userId = "userId_example"; // string | Filter by UserID. (optional)
var excludeUserId = "excludeUserId_example"; // string | Exclude by UserID. (optional)
try
{
Expand All @@ -56,23 +55,43 @@ namespace Example
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.CheckUserExists: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print("Exception when calling AuthenticationApi.CheckUserExists: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the CheckUserExistsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Check User Exists
ApiResponse<UserExists> response = apiInstance.CheckUserExistsWithHttpInfo(email, displayName, userId, excludeUserId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.CheckUserExistsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**email** | **string**| Filter by email. | [optional]
**displayName** | **string**| Filter by displayName. | [optional]
**userId** | **string**| Filter by UserID. | [optional]
**excludeUserId** | **string**| Exclude by UserID. | [optional]
| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **email** | **string** | Filter by email. | [optional] |
| **displayName** | **string** | Filter by displayName. | [optional] |
| **userId** | **string** | Filter by UserID. | [optional] |
| **excludeUserId** | **string** | Exclude by UserID. | [optional] |

### Return type

Expand Down Expand Up @@ -130,7 +149,7 @@ namespace Example
// config.AddApiKeyPrefix("auth", "Bearer");
var apiInstance = new AuthenticationApi(config);
var userId = userId_example; // string | Must be a valid user ID.
var userId = "userId_example"; // string | Must be a valid user ID.
try
{
Expand All @@ -140,20 +159,40 @@ namespace Example
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.DeleteUser: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print("Exception when calling AuthenticationApi.DeleteUser: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the DeleteUserWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Delete User
ApiResponse<CurrentUser> response = apiInstance.DeleteUserWithHttpInfo(userId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.DeleteUserWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **string**| Must be a valid user ID. |
| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **userId** | **string** | Must be a valid user ID. | |

### Return type

Expand Down Expand Up @@ -223,18 +262,37 @@ namespace Example
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.GetCurrentUser: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print("Exception when calling AuthenticationApi.GetCurrentUser: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the GetCurrentUserWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Login and/or Get Current User Info
ApiResponse<CurrentUser> response = apiInstance.GetCurrentUserWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.GetCurrentUserWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**CurrentUser**](CurrentUser.md)
Expand Down Expand Up @@ -296,18 +354,37 @@ namespace Example
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.Logout: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print("Exception when calling AuthenticationApi.Logout: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the LogoutWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Logout
ApiResponse<Success> response = apiInstance.LogoutWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.LogoutWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**Success**](Success.md)
Expand Down Expand Up @@ -370,20 +447,40 @@ namespace Example
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.Verify2FA: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print("Exception when calling AuthenticationApi.Verify2FA: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the Verify2FAWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Verify 2FA code
ApiResponse<Verify2FAResult> response = apiInstance.Verify2FAWithHttpInfo(twoFactorAuthCode);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.Verify2FAWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**twoFactorAuthCode** | [**TwoFactorAuthCode**](TwoFactorAuthCode.md)| | [optional]
| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **twoFactorAuthCode** | [**TwoFactorAuthCode**](TwoFactorAuthCode.md) | | [optional] |

### Return type

Expand Down Expand Up @@ -446,18 +543,37 @@ namespace Example
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.VerifyAuthToken: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print("Exception when calling AuthenticationApi.VerifyAuthToken: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the VerifyAuthTokenWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Verify Auth Token
ApiResponse<VerifyAuthTokenResult> response = apiInstance.VerifyAuthTokenWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.VerifyAuthTokenWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**VerifyAuthTokenResult**](VerifyAuthTokenResult.md)
Expand Down Expand Up @@ -520,20 +636,40 @@ namespace Example
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.VerifyRecoveryCode: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print("Exception when calling AuthenticationApi.VerifyRecoveryCode: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the VerifyRecoveryCodeWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Verify 2FA code with Recovery code
ApiResponse<Verify2FAResult> response = apiInstance.VerifyRecoveryCodeWithHttpInfo(twoFactorAuthCode);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.VerifyRecoveryCodeWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**twoFactorAuthCode** | [**TwoFactorAuthCode**](TwoFactorAuthCode.md)| | [optional]
| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **twoFactorAuthCode** | [**TwoFactorAuthCode**](TwoFactorAuthCode.md) | | [optional] |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/Avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**ImageUrl** | **string** | |
**Name** | **string** | |
**ReleaseStatus** | **ReleaseStatus** | |
**Tags** | **List&lt;string&gt;** | |
**Tags** | **List&lt;string&gt;** | |
**ThumbnailImageUrl** | **string** | |
**UnityPackageUrl** | **string** | |
**UnityPackageUrlObject** | [**AvatarUnityPackageUrlObject**](AvatarUnityPackageUrlObject.md) | |
Expand Down
Loading

0 comments on commit fd64b28

Please sign in to comment.