Skip to content

Commit

Permalink
Upgrade Java SDK to spec 1.16.6
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Feb 24, 2024
1 parent 8ceaf11 commit b9d5ba1
Show file tree
Hide file tree
Showing 165 changed files with 1,118 additions and 184 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ docs/PlayerModerationType.md
docs/PlayermoderationApi.md
docs/Region.md
docs/ReleaseStatus.md
docs/RepresentedGroup.md
docs/RequestInviteRequest.md
docs/RespondGroupJoinRequest.md
docs/Response.md
Expand Down Expand Up @@ -271,6 +272,7 @@ src/main/java/io/github/vrchatapi/model/PlayerModeration.java
src/main/java/io/github/vrchatapi/model/PlayerModerationType.java
src/main/java/io/github/vrchatapi/model/Region.java
src/main/java/io/github/vrchatapi/model/ReleaseStatus.java
src/main/java/io/github/vrchatapi/model/RepresentedGroup.java
src/main/java/io/github/vrchatapi/model/RequestInviteRequest.java
src/main/java/io/github/vrchatapi/model/RespondGroupJoinRequest.java
src/main/java/io/github/vrchatapi/model/Response.java
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'io.github.vrchatapi'
version = '1.16.5'
version = '1.16.6'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "io.github.vrchatapi",
name := "vrchatapi",
version := "1.16.5",
version := "1.16.6",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/CreateAvatarRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
|**releaseStatus** | **ReleaseStatus** | | [optional] |
|**version** | **BigDecimal** | | [optional] |
|**unityPackageUrl** | **String** | | [optional] |
|**unityVersion** | **String** | | [optional] |



2 changes: 1 addition & 1 deletion docs/GroupAuditLogEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|**createdAt** | **OffsetDateTime** | | [optional] |
|**groupId** | **String** | | [optional] |
|**actorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] |
|**actorDisplayname** | **String** | | [optional] |
|**actorDisplayName** | **String** | | [optional] |
|**targetId** | **String** | Typically GroupID or GroupRoleID, but could be other types of IDs. | [optional] |
|**eventType** | **String** | The type of event that occurred. This is a string that is prefixed with the type of object that the event occurred on. For example, a group role update event would be prefixed with `group.role`. | [optional] |
|**description** | **String** | A human-readable description of the event. | [optional] |
Expand Down
26 changes: 26 additions & 0 deletions docs/RepresentedGroup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@


# RepresentedGroup


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**name** | **String** | | [optional] |
|**shortCode** | **String** | | [optional] |
|**discriminator** | **String** | | [optional] |
|**description** | **String** | | [optional] |
|**iconId** | **String** | | [optional] |
|**iconUrl** | **String** | | [optional] |
|**bannerId** | **String** | | [optional] |
|**bannerUrl** | **String** | | [optional] |
|**privacy** | **GroupPrivacy** | | [optional] |
|**ownerId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] |
|**memberCount** | **Integer** | | [optional] |
|**groupId** | **String** | | [optional] |
|**memberVisibility** | **GroupUserVisibility** | | [optional] |
|**isRepresenting** | **Boolean** | | [optional] |



1 change: 1 addition & 0 deletions docs/UpdateAvatarRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
|**releaseStatus** | **ReleaseStatus** | | [optional] |
|**version** | **BigDecimal** | | [optional] |
|**unityPackageUrl** | **String** | | [optional] |
|**unityVersion** | **String** | | [optional] |



71 changes: 71 additions & 0 deletions docs/UsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
| [**getUserByName**](UsersApi.md#getUserByName) | **GET** /users/{username}/name | Get User by Username |
| [**getUserGroupRequests**](UsersApi.md#getUserGroupRequests) | **GET** /users/{userId}/groups/requested | Get User Group Requests |
| [**getUserGroups**](UsersApi.md#getUserGroups) | **GET** /users/{userId}/groups | Get User Groups |
| [**getUserRepresentedGroup**](UsersApi.md#getUserRepresentedGroup) | **GET** /users/{userId}/groups/represented | Get user's current represented group |
| [**searchUsers**](UsersApi.md#searchUsers) | **GET** /users | Search All Users |
| [**updateUser**](UsersApi.md#updateUser) | **PUT** /users/{userId} | Update User Info |

Expand Down Expand Up @@ -292,6 +293,76 @@ public class Example {
| **200** | Returns a list of Group objects. | - |
| **401** | Error response due to missing auth cookie. | - |

<a name="getUserRepresentedGroup"></a>
# **getUserRepresentedGroup**
> RepresentedGroup getUserRepresentedGroup(userId)
Get user&#39;s current represented group

Returns the current group that the user is currently representing

### Example
```java
// Import classes:
import io.github.vrchatapi.ApiClient;
import io.github.vrchatapi.ApiException;
import io.github.vrchatapi.Configuration;
import io.github.vrchatapi.auth.*;
import io.github.vrchatapi.models.*;
import io.github.vrchatapi.api.UsersApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");

// Configure API key authorization: authCookie
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
authCookie.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authCookie.setApiKeyPrefix("Token");

UsersApi apiInstance = new UsersApi(defaultClient);
String userId = "userId_example"; // String | Must be a valid user ID.
try {
RepresentedGroup result = apiInstance.getUserRepresentedGroup(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUserRepresentedGroup");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

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

### Return type

[**RepresentedGroup**](RepresentedGroup.md)

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **401** | Error response due to missing auth cookie. | - |

<a name="searchUsers"></a>
# **searchUsers**
> List&lt;LimitedUser&gt; searchUsers(search, developerType, n, offset)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>vrchatapi</artifactId>
<packaging>jar</packaging>
<name>vrchatapi</name>
<version>1.16.5</version>
<version>1.16.6</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiCallback.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiClient.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiException.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiResponse.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/Configuration.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/github/vrchatapi/JSON.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -159,6 +159,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.PastDisplayName.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.Permission.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.PlayerModeration.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.RepresentedGroup.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.RequestInviteRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.RespondGroupJoinRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.Response.CustomTypeAdapterFactory());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/Pair.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ProgressRequestBody.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/StringUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/AvatarsApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/EconomyApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/FavoritesApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/FilesApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/FriendsApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/GroupsApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/InstancesApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/InviteApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/api/PermissionsApi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit b9d5ba1

Please sign in to comment.