Skip to content

Commit 82432f7

Browse files
committed
Upgrade Java SDK to spec 1.3.3
1 parent 9914c5b commit 82432f7

108 files changed

Lines changed: 3067 additions & 180 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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.gitignore
21
api/openapi.yaml
32
build.gradle
43
build.sbt
@@ -53,6 +52,8 @@ docs/InstancePlatforms.md
5352
docs/InviteApi.md
5453
docs/InviteMessage.md
5554
docs/InviteMessageType.md
55+
docs/InviteRequest.md
56+
docs/InviteResponse.md
5657
docs/LimitedUnityPackage.md
5758
docs/LimitedUser.md
5859
docs/LimitedWorld.md
@@ -72,6 +73,7 @@ docs/Success.md
7273
docs/SystemApi.md
7374
docs/UnityPackage.md
7475
docs/User.md
76+
docs/UserExists.md
7577
docs/UserState.md
7678
docs/UserStatus.md
7779
docs/UsersApi.md
@@ -160,6 +162,8 @@ src/main/java/io/github/vrchatapi/model/Instance.java
160162
src/main/java/io/github/vrchatapi/model/InstancePlatforms.java
161163
src/main/java/io/github/vrchatapi/model/InviteMessage.java
162164
src/main/java/io/github/vrchatapi/model/InviteMessageType.java
165+
src/main/java/io/github/vrchatapi/model/InviteRequest.java
166+
src/main/java/io/github/vrchatapi/model/InviteResponse.java
163167
src/main/java/io/github/vrchatapi/model/LimitedUnityPackage.java
164168
src/main/java/io/github/vrchatapi/model/LimitedUser.java
165169
src/main/java/io/github/vrchatapi/model/LimitedWorld.java
@@ -175,6 +179,7 @@ src/main/java/io/github/vrchatapi/model/Response.java
175179
src/main/java/io/github/vrchatapi/model/Success.java
176180
src/main/java/io/github/vrchatapi/model/UnityPackage.java
177181
src/main/java/io/github/vrchatapi/model/User.java
182+
src/main/java/io/github/vrchatapi/model/UserExists.java
178183
src/main/java/io/github/vrchatapi/model/UserState.java
179184
src/main/java/io/github/vrchatapi/model/UserStatus.java
180185
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
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'io.github.vrchatapi'
6-
version = '1.3.0'
6+
version = '1.3.3'
77

88
buildscript {
99
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.3.0",
5+
version := "1.3.3",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

‎docs/AuthenticationApi.md‎

Lines changed: 79 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**checkUserExists**](AuthenticationApi.md#checkUserExists) | **GET** /auth/exists | Check User Exists
78
[**deleteUser**](AuthenticationApi.md#deleteUser) | **PUT** /user/{userId}/delete | Delete User
89
[**getCurrentUser**](AuthenticationApi.md#getCurrentUser) | **GET** /auth/user | Login and/or Get Current User Info
910
[**logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout
@@ -12,6 +13,82 @@ Method | HTTP request | Description
1213
[**verifyRecoveryCode**](AuthenticationApi.md#verifyRecoveryCode) | **POST** /auth/twofactorauth/otp/verify | Verify 2FA code with Recovery code
1314

1415

16+
<a name="checkUserExists"></a>
17+
# **checkUserExists**
18+
> UserExists checkUserExists(email, displayName, userId, excludeUserId)
19+
20+
Check User Exists
21+
22+
Checks if a user by a given &#x60;username&#x60;, &#x60;displayName&#x60; or &#x60;email&#x60; exist. This is used during registration to check if a username has already been taken, during change of displayName to check if a displayName is available, and during change of email to check if the email is already used. In the later two cases the &#x60;excludeUserId&#x60; is used to exclude oneself, otherwise the result would always be true. It is **REQUIRED** to include **AT LEAST** &#x60;username&#x60;, &#x60;displayName&#x60; **or** &#x60;email&#x60; query parameter. Although they can be combined - in addition with &#x60;excludeUserId&#x60; (generally to exclude yourself) - to further fine-tune the search.
23+
24+
### Example
25+
```java
26+
// Import classes:
27+
import io.github.vrchatapi.ApiClient;
28+
import io.github.vrchatapi.ApiException;
29+
import io.github.vrchatapi.Configuration;
30+
import io.github.vrchatapi.auth.*;
31+
import io.github.vrchatapi.models.*;
32+
import io.github.vrchatapi.api.AuthenticationApi;
33+
34+
public class Example {
35+
public static void main(String[] args) {
36+
ApiClient defaultClient = Configuration.getDefaultApiClient();
37+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
38+
39+
// Configure API key authorization: apiKeyCookie
40+
ApiKeyAuth apiKeyCookie = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyCookie");
41+
apiKeyCookie.setApiKey("YOUR API KEY");
42+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
43+
//apiKeyCookie.setApiKeyPrefix("Token");
44+
45+
AuthenticationApi apiInstance = new AuthenticationApi(defaultClient);
46+
String email = "email_example"; // String | Filter by email.
47+
String displayName = "displayName_example"; // String | Filter by displayName.
48+
String userId = "userId_example"; // String | Filter by UserID.
49+
String excludeUserId = "excludeUserId_example"; // String | Exclude by UserID.
50+
try {
51+
UserExists result = apiInstance.checkUserExists(email, displayName, userId, excludeUserId);
52+
System.out.println(result);
53+
} catch (ApiException e) {
54+
System.err.println("Exception when calling AuthenticationApi#checkUserExists");
55+
System.err.println("Status code: " + e.getCode());
56+
System.err.println("Reason: " + e.getResponseBody());
57+
System.err.println("Response headers: " + e.getResponseHeaders());
58+
e.printStackTrace();
59+
}
60+
}
61+
}
62+
```
63+
64+
### Parameters
65+
66+
Name | Type | Description | Notes
67+
------------- | ------------- | ------------- | -------------
68+
**email** | **String**| Filter by email. | [optional]
69+
**displayName** | **String**| Filter by displayName. | [optional]
70+
**userId** | **String**| Filter by UserID. | [optional]
71+
**excludeUserId** | **String**| Exclude by UserID. | [optional]
72+
73+
### Return type
74+
75+
[**UserExists**](UserExists.md)
76+
77+
### Authorization
78+
79+
[apiKeyCookie](../README.md#apiKeyCookie)
80+
81+
### HTTP request headers
82+
83+
- **Content-Type**: Not defined
84+
- **Accept**: application/json
85+
86+
### HTTP response details
87+
| Status code | Description | Response headers |
88+
|-------------|-------------|------------------|
89+
**200** | Returns a response if a user exists or not. | - |
90+
**400** | Error response when missing at least 1 of the required parameters. | - |
91+
1592
<a name="deleteUser"></a>
1693
# **deleteUser**
1794
> CurrentUser deleteUser(userId)
@@ -94,7 +171,7 @@ Name | Type | Description | Notes
94171
95172
Login and/or Get Current User Info
96173

97-
Login and/or Get user data from your VRChat account. If &#x60;Authorization&#x60; header is present then a new login session will be generated, and a new &#x60;auth&#x60; cookie is returned. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the &#x60;auth&#x60; cookie whenever you can, and avoid sending the Authorization header unless strictly neccesary. While the exact number of simultaneous open sessions is secret, expect to **very fast** run into the rate-limit and be temporarily blocked from making new sessions until the old ones expire.
174+
This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid &#x60;auth&#x60; cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the &#x60;Authorization&#x60; header and set the &#x60;auth&#x60; cookie. The &#x60;auth&#x60; cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the &#x60;auth&#x60; cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
98175

99176
### Example
100177
```java
@@ -162,7 +239,7 @@ This endpoint does not need any parameter.
162239
### HTTP response details
163240
| Status code | Description | Response headers |
164241
|-------------|-------------|------------------|
165-
**200** | OK | * Set-Cookie - Authenticating returns an &#x60;auth&#x60; cookie. <br> * \0Set-Cookie - Authenticating also sets the &#x60;apiKey&#x60; if not already set. <br> |
242+
**200** | OK | * Set-Cookie - Successful authentication returns an &#x60;auth&#x60; cookie. <br> * \0Set-Cookie - This endpoint **always** sets the &#x60;apiKey&#x60; irrespective if it is already set. <br> |
166243
**401** | Error response due to missing apiKey or auth cookie. | - |
167244

168245
<a name="logout"></a>

‎docs/AvatarsApi.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public class Example {
383383
String featured = "featured_example"; // String | Filters on featured results.
384384
String sort = "popularity"; // String |
385385
String user = "user_example"; // String | Set to `me` for searching own avatars.
386-
String userId = "userId_example"; // String | Filter by author UserID
386+
String userId = "userId_example"; // String | Filter by UserID.
387387
Integer n = 60; // Integer | The number of objects to return.
388388
String order = "descending"; // String |
389389
Integer offset = 56; // Integer | A zero-based offset from the default object sorting from where search results start.
@@ -414,7 +414,7 @@ Name | Type | Description | Notes
414414
**featured** | **String**| Filters on featured results. | [optional]
415415
**sort** | **String**| | [optional] [default to popularity] [enum: popularity, heat, trust, shuffle, random, favorites, reportScore, reportCount, publicationDate, labsPublicationDate, created, _created_at, updated, _updated_at, order, relevance, magic, name]
416416
**user** | **String**| Set to &#x60;me&#x60; for searching own avatars. | [optional] [enum: me]
417-
**userId** | **String**| Filter by author UserID | [optional]
417+
**userId** | **String**| Filter by UserID. | [optional]
418418
**n** | **Integer**| The number of objects to return. | [optional] [default to 60]
419419
**order** | **String**| | [optional] [default to descending] [enum: ascending, descending]
420420
**offset** | **Integer**| A zero-based offset from the default object sorting from where search results start. | [optional]

‎docs/CurrentUser.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Name | Type | Description | Notes
2929
**friendGroupNames** | **List&lt;String&gt;** | Always empty array. |
3030
**currentAvatarImageUrl** | **String** | |
3131
**currentAvatarThumbnailImageUrl** | **String** | |
32-
**fallbackAvatar** | **String** | |
32+
**fallbackAvatar** | **String** | | [optional]
3333
**currentAvatar** | **String** | |
3434
**currentAvatarAssetUrl** | **String** | |
3535
**accountDeletionDate** | **LocalDate** | | [optional]

‎docs/InviteApi.md‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Name | Type | Description | Notes
171171

172172
<a name="inviteUser"></a>
173173
# **inviteUser**
174-
> Notification inviteUser(userId)
174+
> Notification inviteUser(userId, inviteRequest)
175175
176176
Invite User
177177

@@ -206,8 +206,9 @@ public class Example {
206206

207207
InviteApi apiInstance = new InviteApi(defaultClient);
208208
String userId = "userId_example"; // String |
209+
InviteRequest inviteRequest = new InviteRequest(); // InviteRequest | Instance ID when inviting a user.
209210
try {
210-
Notification result = apiInstance.inviteUser(userId);
211+
Notification result = apiInstance.inviteUser(userId, inviteRequest);
211212
System.out.println(result);
212213
} catch (ApiException e) {
213214
System.err.println("Exception when calling InviteApi#inviteUser");
@@ -225,6 +226,7 @@ public class Example {
225226
Name | Type | Description | Notes
226227
------------- | ------------- | ------------- | -------------
227228
**userId** | **String**| |
229+
**inviteRequest** | [**InviteRequest**](InviteRequest.md)| Instance ID when inviting a user. | [optional]
228230

229231
### Return type
230232

@@ -236,7 +238,7 @@ Name | Type | Description | Notes
236238

237239
### HTTP request headers
238240

239-
- **Content-Type**: Not defined
241+
- **Content-Type**: application/json
240242
- **Accept**: application/json
241243

242244
### HTTP response details
@@ -403,7 +405,7 @@ Name | Type | Description | Notes
403405

404406
<a name="respondInvite"></a>
405407
# **respondInvite**
406-
> Notification respondInvite(notificationId)
408+
> Notification respondInvite(notificationId, inviteResponse)
407409
408410
Respond Invite
409411

@@ -438,8 +440,9 @@ public class Example {
438440

439441
InviteApi apiInstance = new InviteApi(defaultClient);
440442
String notificationId = "notificationId_example"; // String |
443+
InviteResponse inviteResponse = new InviteResponse(); // InviteResponse | Instance ID when inviting a user.
441444
try {
442-
Notification result = apiInstance.respondInvite(notificationId);
445+
Notification result = apiInstance.respondInvite(notificationId, inviteResponse);
443446
System.out.println(result);
444447
} catch (ApiException e) {
445448
System.err.println("Exception when calling InviteApi#respondInvite");
@@ -457,6 +460,7 @@ public class Example {
457460
Name | Type | Description | Notes
458461
------------- | ------------- | ------------- | -------------
459462
**notificationId** | **String**| |
463+
**inviteResponse** | [**InviteResponse**](InviteResponse.md)| Instance ID when inviting a user. | [optional]
460464

461465
### Return type
462466

@@ -468,7 +472,7 @@ Name | Type | Description | Notes
468472

469473
### HTTP request headers
470474

471-
- **Content-Type**: Not defined
475+
- **Content-Type**: application/json
472476
- **Accept**: application/json
473477

474478
### HTTP response details

‎docs/InviteRequest.md‎

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

‎docs/InviteResponse.md‎

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

‎docs/User.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Name | Type | Description | Notes
1717
**statusDescription** | **String** | |
1818
**currentAvatarImageUrl** | **String** | |
1919
**currentAvatarThumbnailImageUrl** | **String** | |
20-
**fallbackAvatar** | **String** | |
2120
**state** | **UserState** | |
2221
**tags** | **List&lt;String&gt;** | |
2322
**developerType** | **DeveloperType** | |

0 commit comments

Comments
 (0)