Skip to content

Commit 5437b7e

Browse files
committed
Upgrade Java SDK to spec 1.20.10-nightly.1
1 parent 9862cfa commit 5437b7e

12 files changed

Lines changed: 737 additions & 279 deletions

File tree

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ docs/ProductPurchaseProduct.md
275275
docs/ProductPurchasePurchaseContext.md
276276
docs/ProductPurchaseRecord.md
277277
docs/ProductType.md
278+
docs/ProfileGroup.md
279+
docs/ProfileGroups.md
278280
docs/ProfileRepresentedGroup.md
279281
docs/Prop.md
280282
docs/PropPublishStatus.md
@@ -680,6 +682,8 @@ src/main/java/io/github/vrchatapi/model/ProductPurchaseProduct.java
680682
src/main/java/io/github/vrchatapi/model/ProductPurchasePurchaseContext.java
681683
src/main/java/io/github/vrchatapi/model/ProductPurchaseRecord.java
682684
src/main/java/io/github/vrchatapi/model/ProductType.java
685+
src/main/java/io/github/vrchatapi/model/ProfileGroup.java
686+
src/main/java/io/github/vrchatapi/model/ProfileGroups.java
683687
src/main/java/io/github/vrchatapi/model/ProfileRepresentedGroup.java
684688
src/main/java/io/github/vrchatapi/model/Prop.java
685689
src/main/java/io/github/vrchatapi/model/PropPublishStatus.java

docs/ProfileGroup.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# ProfileGroup
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**iconUrl** | **String** | | [optional] |
11+
|**id** | **String** | | [optional] |
12+
|**name** | **String** | | [optional] |
13+
14+
15+

docs/ProfileGroups.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# ProfileGroups
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**count** | **Integer** | | [optional] |
11+
|**_list** | [**List<ProfileGroup>**](ProfileGroup.md) | | [optional] |
12+
13+
14+

docs/PublicProfile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
|**badges** | [**List<Badge>**](Badge.md) | | [optional] |
1414
|**bannerColor** | **String** | | [optional] |
1515
|**bannerType** | **String** | | [optional] |
16+
|**bannerUrl** | **String** | | [optional] |
1617
|**bio** | **String** | | [optional] |
1718
|**bioLinks** | **List<String>** | | [optional] |
1819
|**displayName** | **String** | | [optional] |
20+
|**groups** | [**ProfileGroups**](ProfileGroups.md) | | [optional] |
1921
|**hasVrcPlus** | **Boolean** | | [optional] |
2022
|**iconFrame** | **String** | | [optional] |
2123
|**iconUrl** | **String** | | [optional] |
@@ -25,9 +27,12 @@
2527
|**nameplateEffect** | **String** | | [optional] |
2628
|**profileEffect** | **String** | | [optional] |
2729
|**pronouns** | **String** | | [optional] |
30+
|**publicWorlds** | **List<Object>** | | [optional] |
2831
|**representedGroup** | [**ProfileRepresentedGroup**](ProfileRepresentedGroup.md) | | [optional] |
2932
|**themeId** | **String** | | [optional] |
33+
|**totalPublicWorldsCount** | **Integer** | | [optional] |
3034
|**trustTags** | **List<String>** | | [optional] |
35+
|**worldFavoriteLists** | **List<Object>** | | [optional] |
3136

3237

3338

docs/User.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
|**bannerColor** | **String** | | [optional] |
2020
|**bannerType** | **String** | | [optional] |
2121
|**bannerUrl** | **String** | | [optional] |
22-
|**bio** | **String** | | |
23-
|**bioLinks** | **List<String>** | | |
24-
|**currentAvatarImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | |
25-
|**currentAvatarTags** | **List<String>** | | |
26-
|**currentAvatarThumbnailImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | |
2722
|**dateJoined** | **LocalDate** | | |
2823
|**developerType** | **DeveloperType** | | |
2924
|**displayName** | **String** | A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period. | |
@@ -44,8 +39,6 @@
4439
|**note** | **String** | | [optional] |
4540
|**platform** | **String** | | [optional] |
4641
|**profileEffect** | **String** | | [optional] |
47-
|**profilePicOverride** | **String** | | |
48-
|**profilePicOverrideThumbnail** | **String** | | |
4942
|**pronouns** | **String** | | |
5043
|**state** | **UserState** | | |
5144
|**status** | **UserStatus** | | |
@@ -54,7 +47,6 @@
5447
|**travelingToInstance** | **String** | | [optional] |
5548
|**travelingToLocation** | **String** | | [optional] |
5649
|**travelingToWorld** | **String** | | [optional] |
57-
|**userIcon** | **String** | | |
5850
|**worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] |
5951

6052

docs/UsersApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ public class Example {
753753

754754
<a id="getPublicProfile"></a>
755755
# **getPublicProfile**
756-
> PublicProfile getPublicProfile(userId)
756+
> PublicProfile getPublicProfile(userId, withGroupsAndWorlds)
757757
758758
Get Public Profile
759759

@@ -782,8 +782,9 @@ public class Example {
782782

783783
UsersApi apiInstance = new UsersApi(defaultClient);
784784
String userId = "userId_example"; // String | Must be a valid user ID.
785+
Boolean withGroupsAndWorlds = true; // Boolean | Include `groups`, `publicWorlds` and `totalPublicWorldsCount` in the response.
785786
try {
786-
PublicProfile result = apiInstance.getPublicProfile(userId);
787+
PublicProfile result = apiInstance.getPublicProfile(userId, withGroupsAndWorlds);
787788
System.out.println(result);
788789
} catch (ApiException e) {
789790
System.err.println("Exception when calling UsersApi#getPublicProfile");
@@ -801,6 +802,7 @@ public class Example {
801802
| Name | Type | Description | Notes |
802803
|------------- | ------------- | ------------- | -------------|
803804
| **userId** | **String**| Must be a valid user ID. | |
805+
| **withGroupsAndWorlds** | **Boolean**| Include &#x60;groups&#x60;, &#x60;publicWorlds&#x60; and &#x60;totalPublicWorldsCount&#x60; in the response. | [optional] |
804806

805807
### Return type
806808

src/main/java/io/github/vrchatapi/JSON.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
302302
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.ProductPurchaseProduct.CustomTypeAdapterFactory());
303303
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.ProductPurchasePurchaseContext.CustomTypeAdapterFactory());
304304
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.ProductPurchaseRecord.CustomTypeAdapterFactory());
305+
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.ProfileGroup.CustomTypeAdapterFactory());
306+
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.ProfileGroups.CustomTypeAdapterFactory());
305307
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.ProfileRepresentedGroup.CustomTypeAdapterFactory());
306308
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.Prop.CustomTypeAdapterFactory());
307309
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.PropPublishStatus.CustomTypeAdapterFactory());

src/main/java/io/github/vrchatapi/api/UsersApi.java

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,7 @@ public okhttp3.Call getPrivateProfileAsync(@javax.annotation.Nonnull String user
14781478
/**
14791479
* Build call for getPublicProfile
14801480
* @param userId Must be a valid user ID. (required)
1481+
* @param withGroupsAndWorlds Include &#x60;groups&#x60;, &#x60;publicWorlds&#x60; and &#x60;totalPublicWorldsCount&#x60; in the response. (optional)
14811482
* @param _callback Callback for upload/download progress
14821483
* @return Call to execute
14831484
* @throws ApiException If fail to serialize the request body object
@@ -1489,7 +1490,7 @@ public okhttp3.Call getPrivateProfileAsync(@javax.annotation.Nonnull String user
14891490
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
14901491
</table>
14911492
*/
1492-
public okhttp3.Call getPublicProfileCall(@javax.annotation.Nonnull String userId, final ApiCallback _callback) throws ApiException {
1493+
public okhttp3.Call getPublicProfileCall(@javax.annotation.Nonnull String userId, @javax.annotation.Nullable Boolean withGroupsAndWorlds, final ApiCallback _callback) throws ApiException {
14931494
String basePath = null;
14941495
// Operation Servers
14951496
String[] localBasePaths = new String[] { };
@@ -1515,6 +1516,10 @@ public okhttp3.Call getPublicProfileCall(@javax.annotation.Nonnull String userId
15151516
Map<String, String> localVarCookieParams = new HashMap<String, String>();
15161517
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
15171518

1519+
if (withGroupsAndWorlds != null) {
1520+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("withGroupsAndWorlds", withGroupsAndWorlds));
1521+
}
1522+
15181523
final String[] localVarAccepts = {
15191524
"application/json"
15201525
};
@@ -1535,20 +1540,21 @@ public okhttp3.Call getPublicProfileCall(@javax.annotation.Nonnull String userId
15351540
}
15361541

15371542
@SuppressWarnings("rawtypes")
1538-
private okhttp3.Call getPublicProfileValidateBeforeCall(@javax.annotation.Nonnull String userId, final ApiCallback _callback) throws ApiException {
1543+
private okhttp3.Call getPublicProfileValidateBeforeCall(@javax.annotation.Nonnull String userId, @javax.annotation.Nullable Boolean withGroupsAndWorlds, final ApiCallback _callback) throws ApiException {
15391544
// verify the required parameter 'userId' is set
15401545
if (userId == null) {
15411546
throw new ApiException("Missing the required parameter 'userId' when calling getPublicProfile(Async)");
15421547
}
15431548

1544-
return getPublicProfileCall(userId, _callback);
1549+
return getPublicProfileCall(userId, withGroupsAndWorlds, _callback);
15451550

15461551
}
15471552

15481553
/**
15491554
* Get Public Profile
15501555
* Get a user&#39;s public profile information.
15511556
* @param userId Must be a valid user ID. (required)
1557+
* @param withGroupsAndWorlds Include &#x60;groups&#x60;, &#x60;publicWorlds&#x60; and &#x60;totalPublicWorldsCount&#x60; in the response. (optional)
15521558
* @return PublicProfile
15531559
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
15541560
* @http.response.details
@@ -1559,15 +1565,16 @@ private okhttp3.Call getPublicProfileValidateBeforeCall(@javax.annotation.Nonnul
15591565
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
15601566
</table>
15611567
*/
1562-
public PublicProfile getPublicProfile(@javax.annotation.Nonnull String userId) throws ApiException {
1563-
ApiResponse<PublicProfile> localVarResp = getPublicProfileWithHttpInfo(userId);
1568+
public PublicProfile getPublicProfile(@javax.annotation.Nonnull String userId, @javax.annotation.Nullable Boolean withGroupsAndWorlds) throws ApiException {
1569+
ApiResponse<PublicProfile> localVarResp = getPublicProfileWithHttpInfo(userId, withGroupsAndWorlds);
15641570
return localVarResp.getData();
15651571
}
15661572

15671573
/**
15681574
* Get Public Profile
15691575
* Get a user&#39;s public profile information.
15701576
* @param userId Must be a valid user ID. (required)
1577+
* @param withGroupsAndWorlds Include &#x60;groups&#x60;, &#x60;publicWorlds&#x60; and &#x60;totalPublicWorldsCount&#x60; in the response. (optional)
15711578
* @return ApiResponse&lt;PublicProfile&gt;
15721579
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
15731580
* @http.response.details
@@ -1578,8 +1585,8 @@ public PublicProfile getPublicProfile(@javax.annotation.Nonnull String userId) t
15781585
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
15791586
</table>
15801587
*/
1581-
public ApiResponse<PublicProfile> getPublicProfileWithHttpInfo(@javax.annotation.Nonnull String userId) throws ApiException {
1582-
okhttp3.Call localVarCall = getPublicProfileValidateBeforeCall(userId, null);
1588+
public ApiResponse<PublicProfile> getPublicProfileWithHttpInfo(@javax.annotation.Nonnull String userId, @javax.annotation.Nullable Boolean withGroupsAndWorlds) throws ApiException {
1589+
okhttp3.Call localVarCall = getPublicProfileValidateBeforeCall(userId, withGroupsAndWorlds, null);
15831590
Type localVarReturnType = new TypeToken<PublicProfile>(){}.getType();
15841591
return localVarApiClient.execute(localVarCall, localVarReturnType);
15851592
}
@@ -1588,6 +1595,7 @@ public ApiResponse<PublicProfile> getPublicProfileWithHttpInfo(@javax.annotation
15881595
* Get Public Profile (asynchronously)
15891596
* Get a user&#39;s public profile information.
15901597
* @param userId Must be a valid user ID. (required)
1598+
* @param withGroupsAndWorlds Include &#x60;groups&#x60;, &#x60;publicWorlds&#x60; and &#x60;totalPublicWorldsCount&#x60; in the response. (optional)
15911599
* @param _callback The callback to be executed when the API call finishes
15921600
* @return The request call
15931601
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -1599,9 +1607,9 @@ public ApiResponse<PublicProfile> getPublicProfileWithHttpInfo(@javax.annotation
15991607
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
16001608
</table>
16011609
*/
1602-
public okhttp3.Call getPublicProfileAsync(@javax.annotation.Nonnull String userId, final ApiCallback<PublicProfile> _callback) throws ApiException {
1610+
public okhttp3.Call getPublicProfileAsync(@javax.annotation.Nonnull String userId, @javax.annotation.Nullable Boolean withGroupsAndWorlds, final ApiCallback<PublicProfile> _callback) throws ApiException {
16031611

1604-
okhttp3.Call localVarCall = getPublicProfileValidateBeforeCall(userId, _callback);
1612+
okhttp3.Call localVarCall = getPublicProfileValidateBeforeCall(userId, withGroupsAndWorlds, _callback);
16051613
Type localVarReturnType = new TypeToken<PublicProfile>(){}.getType();
16061614
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
16071615
return localVarCall;

0 commit comments

Comments
 (0)