Skip to content

Commit f2e8922

Browse files
committed
Upgrade Java SDK to spec 1.11.0
1 parent f62c0e1 commit f2e8922

159 files changed

Lines changed: 809 additions & 155 deletions

File tree

Some content is hidden

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

‎.openapi-generator/FILES‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ docs/TransactionStatus.md
114114
docs/TransactionSteamInfo.md
115115
docs/TransactionSteamWalletInfo.md
116116
docs/TwoFactorAuthCode.md
117+
docs/TwoFactorEmailCode.md
117118
docs/UnityPackage.md
118119
docs/UpdateAvatarRequest.md
119120
docs/UpdateFavoriteGroupRequest.md
@@ -130,6 +131,7 @@ docs/UserState.md
130131
docs/UserStatus.md
131132
docs/UserSubscription.md
132133
docs/UsersApi.md
134+
docs/Verify2FAEmailCodeResult.md
133135
docs/Verify2FAResult.md
134136
docs/VerifyAuthTokenResult.md
135137
docs/World.md
@@ -277,6 +279,7 @@ src/main/java/io/github/vrchatapi/model/TransactionStatus.java
277279
src/main/java/io/github/vrchatapi/model/TransactionSteamInfo.java
278280
src/main/java/io/github/vrchatapi/model/TransactionSteamWalletInfo.java
279281
src/main/java/io/github/vrchatapi/model/TwoFactorAuthCode.java
282+
src/main/java/io/github/vrchatapi/model/TwoFactorEmailCode.java
280283
src/main/java/io/github/vrchatapi/model/UnityPackage.java
281284
src/main/java/io/github/vrchatapi/model/UpdateAvatarRequest.java
282285
src/main/java/io/github/vrchatapi/model/UpdateFavoriteGroupRequest.java
@@ -292,6 +295,7 @@ src/main/java/io/github/vrchatapi/model/UserExists.java
292295
src/main/java/io/github/vrchatapi/model/UserState.java
293296
src/main/java/io/github/vrchatapi/model/UserStatus.java
294297
src/main/java/io/github/vrchatapi/model/UserSubscription.java
298+
src/main/java/io/github/vrchatapi/model/Verify2FAEmailCodeResult.java
295299
src/main/java/io/github/vrchatapi/model/Verify2FAResult.java
296300
src/main/java/io/github/vrchatapi/model/VerifyAuthTokenResult.java
297301
src/main/java/io/github/vrchatapi/model/World.java

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'io.github.vrchatapi'
7-
version = '1.10.1'
7+
version = '1.11.0'
88

99
buildscript {
1010
repositories {

‎build.sbt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "io.github.vrchatapi",
44
name := "vrchatapi",
5-
version := "1.10.1",
5+
version := "1.11.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

‎docs/AuthenticationApi.md‎

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
55
| Method | HTTP request | Description |
66
|------------- | ------------- | -------------|
77
| [**checkUserExists**](AuthenticationApi.md#checkUserExists) | **GET** /auth/exists | Check User Exists |
8-
| [**deleteUser**](AuthenticationApi.md#deleteUser) | **PUT** /user/{userId}/delete | Delete User |
8+
| [**deleteUser**](AuthenticationApi.md#deleteUser) | **PUT** /users/{userId}/delete | Delete User |
99
| [**getCurrentUser**](AuthenticationApi.md#getCurrentUser) | **GET** /auth/user | Login and/or Get Current User Info |
1010
| [**logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout |
1111
| [**verify2FA**](AuthenticationApi.md#verify2FA) | **POST** /auth/twofactorauth/totp/verify | Verify 2FA code |
12+
| [**verify2FAEmailCode**](AuthenticationApi.md#verify2FAEmailCode) | **POST** /auth/twofactorauth/emailotp/verify | Verify 2FA email code |
1213
| [**verifyAuthToken**](AuthenticationApi.md#verifyAuthToken) | **GET** /auth | Verify Auth Token |
1314
| [**verifyRecoveryCode**](AuthenticationApi.md#verifyRecoveryCode) | **POST** /auth/twofactorauth/otp/verify | Verify 2FA code with Recovery code |
1415

@@ -378,6 +379,76 @@ public class Example {
378379
| **200** | OK | * Set-Cookie - Provides a &#x60;twoFactorAuth&#x60; cookie, which can be used to bypasses the 2FA requirement for future logins on the same device. <br> |
379380
| **401** | Error response due to missing apiKey or auth cookie. | - |
380381

382+
<a name="verify2FAEmailCode"></a>
383+
# **verify2FAEmailCode**
384+
> Verify2FAEmailCodeResult verify2FAEmailCode(twoFactorEmailCode)
385+
386+
Verify 2FA email code
387+
388+
Finishes the login sequence with an 2FA email code.
389+
390+
### Example
391+
```java
392+
// Import classes:
393+
import io.github.vrchatapi.ApiClient;
394+
import io.github.vrchatapi.ApiException;
395+
import io.github.vrchatapi.Configuration;
396+
import io.github.vrchatapi.auth.*;
397+
import io.github.vrchatapi.models.*;
398+
import io.github.vrchatapi.api.AuthenticationApi;
399+
400+
public class Example {
401+
public static void main(String[] args) {
402+
ApiClient defaultClient = Configuration.getDefaultApiClient();
403+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
404+
405+
// Configure API key authorization: authCookie
406+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
407+
authCookie.setApiKey("YOUR API KEY");
408+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
409+
//authCookie.setApiKeyPrefix("Token");
410+
411+
AuthenticationApi apiInstance = new AuthenticationApi(defaultClient);
412+
TwoFactorEmailCode twoFactorEmailCode = new TwoFactorEmailCode(); // TwoFactorEmailCode |
413+
try {
414+
Verify2FAEmailCodeResult result = apiInstance.verify2FAEmailCode(twoFactorEmailCode);
415+
System.out.println(result);
416+
} catch (ApiException e) {
417+
System.err.println("Exception when calling AuthenticationApi#verify2FAEmailCode");
418+
System.err.println("Status code: " + e.getCode());
419+
System.err.println("Reason: " + e.getResponseBody());
420+
System.err.println("Response headers: " + e.getResponseHeaders());
421+
e.printStackTrace();
422+
}
423+
}
424+
}
425+
```
426+
427+
### Parameters
428+
429+
| Name | Type | Description | Notes |
430+
|------------- | ------------- | ------------- | -------------|
431+
| **twoFactorEmailCode** | [**TwoFactorEmailCode**](TwoFactorEmailCode.md)| | [optional] |
432+
433+
### Return type
434+
435+
[**Verify2FAEmailCodeResult**](Verify2FAEmailCodeResult.md)
436+
437+
### Authorization
438+
439+
[authCookie](../README.md#authCookie)
440+
441+
### HTTP request headers
442+
443+
- **Content-Type**: application/json
444+
- **Accept**: application/json
445+
446+
### HTTP response details
447+
| Status code | Description | Response headers |
448+
|-------------|-------------|------------------|
449+
| **200** | OK | * Set-Cookie - Provides a &#x60;twoFactorAuth&#x60; cookie, which can be used to bypasses the 2FA requirement for future logins on the same device. <br> |
450+
| **401** | Error response due to missing apiKey or auth cookie. | - |
451+
381452
<a name="verifyAuthToken"></a>
382453
# **verifyAuthToken**
383454
> VerifyAuthTokenResult verifyAuthToken()

‎docs/TwoFactorEmailCode.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# TwoFactorEmailCode
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**code** | **String** | | |
11+
12+
13+

‎docs/Verify2FAEmailCodeResult.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# Verify2FAEmailCodeResult
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**verified** | **Boolean** | | |
11+
12+
13+

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>vrchatapi</artifactId>
66
<packaging>jar</packaging>
77
<name>vrchatapi</name>
8-
<version>1.10.1</version>
8+
<version>1.11.0</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

‎src/main/java/io/github/vrchatapi/ApiCallback.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.10.1
4+
* The version of the OpenAPI document: 1.11.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

‎src/main/java/io/github/vrchatapi/ApiClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.10.1
4+
* The version of the OpenAPI document: 1.11.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

‎src/main/java/io/github/vrchatapi/ApiException.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.10.1
4+
* The version of the OpenAPI document: 1.11.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)