Skip to content

Commit b9fd21a

Browse files
committed
Upgrade Java SDK to spec 1.16.0
1 parent a6ea8d9 commit b9fd21a

6 files changed

Lines changed: 1010 additions & 0 deletions

File tree

‎.openapi-generator/FILES‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ docs/License.md
8181
docs/LicenseAction.md
8282
docs/LicenseGroup.md
8383
docs/LicenseType.md
84+
docs/LimitedGroup.md
8485
docs/LimitedUnityPackage.md
8586
docs/LimitedUser.md
8687
docs/LimitedWorld.md
@@ -251,6 +252,7 @@ src/main/java/io/github/vrchatapi/model/License.java
251252
src/main/java/io/github/vrchatapi/model/LicenseAction.java
252253
src/main/java/io/github/vrchatapi/model/LicenseGroup.java
253254
src/main/java/io/github/vrchatapi/model/LicenseType.java
255+
src/main/java/io/github/vrchatapi/model/LimitedGroup.java
254256
src/main/java/io/github/vrchatapi/model/LimitedUnityPackage.java
255257
src/main/java/io/github/vrchatapi/model/LimitedUser.java
256258
src/main/java/io/github/vrchatapi/model/LimitedWorld.java

‎docs/GroupsApi.md‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
3535
| [**leaveGroup**](GroupsApi.md#leaveGroup) | **POST** /groups/{groupId}/leave | Leave Group |
3636
| [**removeGroupMemberRole**](GroupsApi.md#removeGroupMemberRole) | **DELETE** /groups/{groupId}/members/{userId}/roles/{groupRoleId} | Remove Role from GroupMember |
3737
| [**respondGroupJoinRequest**](GroupsApi.md#respondGroupJoinRequest) | **PUT** /groups/{groupId}/requests/{userId} | Respond Group Join request |
38+
| [**searchGroups**](GroupsApi.md#searchGroups) | **GET** /groups | Search Group |
3839
| [**unbanGroupMember**](GroupsApi.md#unbanGroupMember) | **DELETE** /groups/{groupId}/bans/{userId} | Unban Group Member |
3940
| [**updateGroup**](GroupsApi.md#updateGroup) | **PUT** /groups/{groupId} | Update Group |
4041
| [**updateGroupGallery**](GroupsApi.md#updateGroupGallery) | **PUT** /groups/{groupId}/galleries/{groupGalleryId} | Update Group Gallery |
@@ -2309,6 +2310,73 @@ null (empty response body)
23092310
| **401** | Error response due to missing auth cookie. | - |
23102311
| **404** | Error response when trying to perform operations on a non-existing group. | - |
23112312

2313+
<a name="searchGroups"></a>
2314+
# **searchGroups**
2315+
> List&lt;LimitedGroup&gt; searchGroups(query, offset, n)
2316+
2317+
Search Group
2318+
2319+
Searches Groups by name or shortCode
2320+
2321+
### Example
2322+
```java
2323+
// Import classes:
2324+
import io.github.vrchatapi.ApiClient;
2325+
import io.github.vrchatapi.ApiException;
2326+
import io.github.vrchatapi.Configuration;
2327+
import io.github.vrchatapi.models.*;
2328+
import io.github.vrchatapi.api.GroupsApi;
2329+
2330+
public class Example {
2331+
public static void main(String[] args) {
2332+
ApiClient defaultClient = Configuration.getDefaultApiClient();
2333+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
2334+
2335+
GroupsApi apiInstance = new GroupsApi(defaultClient);
2336+
String query = "query_example"; // String | Query to search for, can be either Group Name or Group shortCode
2337+
Integer offset = 56; // Integer | A zero-based offset from the default object sorting from where search results start.
2338+
Integer n = 60; // Integer | The number of objects to return.
2339+
try {
2340+
List<LimitedGroup> result = apiInstance.searchGroups(query, offset, n);
2341+
System.out.println(result);
2342+
} catch (ApiException e) {
2343+
System.err.println("Exception when calling GroupsApi#searchGroups");
2344+
System.err.println("Status code: " + e.getCode());
2345+
System.err.println("Reason: " + e.getResponseBody());
2346+
System.err.println("Response headers: " + e.getResponseHeaders());
2347+
e.printStackTrace();
2348+
}
2349+
}
2350+
}
2351+
```
2352+
2353+
### Parameters
2354+
2355+
| Name | Type | Description | Notes |
2356+
|------------- | ------------- | ------------- | -------------|
2357+
| **query** | **String**| Query to search for, can be either Group Name or Group shortCode | [optional] |
2358+
| **offset** | **Integer**| A zero-based offset from the default object sorting from where search results start. | [optional] |
2359+
| **n** | **Integer**| The number of objects to return. | [optional] [default to 60] |
2360+
2361+
### Return type
2362+
2363+
[**List&lt;LimitedGroup&gt;**](LimitedGroup.md)
2364+
2365+
### Authorization
2366+
2367+
No authorization required
2368+
2369+
### HTTP request headers
2370+
2371+
- **Content-Type**: Not defined
2372+
- **Accept**: application/json
2373+
2374+
### HTTP response details
2375+
| Status code | Description | Response headers |
2376+
|-------------|-------------|------------------|
2377+
| **200** | Returns a list of LimitedGroup objects. | - |
2378+
| **401** | Error response due to missing auth cookie. | - |
2379+
23122380
<a name="unbanGroupMember"></a>
23132381
# **unbanGroupMember**
23142382
> GroupMember unbanGroupMember(groupId, userId)

‎docs/LimitedGroup.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
3+
# LimitedGroup
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**id** | **String** | | [optional] |
11+
|**name** | **String** | | [optional] |
12+
|**shortCode** | **String** | | [optional] |
13+
|**discriminator** | **String** | | [optional] |
14+
|**description** | **String** | | [optional] |
15+
|**iconUrl** | **String** | | [optional] |
16+
|**bannerUrl** | **String** | | [optional] |
17+
|**ownerId** | **String** | A users unique ID, usually in the form of &#x60;usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469&#x60;. Legacy players can have old IDs in the form of &#x60;8JoV9XEdpo&#x60;. The ID can never be changed. | [optional] |
18+
|**rules** | **String** | | [optional] |
19+
|**iconId** | **String** | | [optional] |
20+
|**bannerId** | **String** | | [optional] |
21+
|**memberCount** | **Integer** | | [optional] |
22+
|**tags** | **List&lt;String&gt;** | | [optional] |
23+
|**createdAt** | **OffsetDateTime** | | [optional] |
24+
|**membershipStatus** | **GroupMemberStatus** | | [optional] |
25+
|**isSearchable** | **Boolean** | | [optional] |
26+
|**galleries** | [**List&lt;GroupGallery&gt;**](GroupGallery.md) | | [optional] |
27+
28+
29+

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
148148
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InviteResponse.CustomTypeAdapterFactory());
149149
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.License.CustomTypeAdapterFactory());
150150
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.LicenseGroup.CustomTypeAdapterFactory());
151+
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.LimitedGroup.CustomTypeAdapterFactory());
151152
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.LimitedUnityPackage.CustomTypeAdapterFactory());
152153
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.LimitedUser.CustomTypeAdapterFactory());
153154
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.LimitedWorld.CustomTypeAdapterFactory());

‎src/main/java/io/github/vrchatapi/api/GroupsApi.java‎

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import io.github.vrchatapi.model.GroupMember;
4343
import io.github.vrchatapi.model.GroupPermission;
4444
import io.github.vrchatapi.model.GroupRole;
45+
import io.github.vrchatapi.model.LimitedGroup;
4546
import java.time.OffsetDateTime;
4647
import io.github.vrchatapi.model.PaginatedGroupAuditLogEntryList;
4748
import io.github.vrchatapi.model.RespondGroupJoinRequest;
@@ -4422,6 +4423,147 @@ public okhttp3.Call respondGroupJoinRequestAsync(String groupId, String userId,
44224423
localVarApiClient.executeAsync(localVarCall, _callback);
44234424
return localVarCall;
44244425
}
4426+
/**
4427+
* Build call for searchGroups
4428+
* @param query Query to search for, can be either Group Name or Group shortCode (optional)
4429+
* @param offset A zero-based offset from the default object sorting from where search results start. (optional)
4430+
* @param n The number of objects to return. (optional, default to 60)
4431+
* @param _callback Callback for upload/download progress
4432+
* @return Call to execute
4433+
* @throws ApiException If fail to serialize the request body object
4434+
* @http.response.details
4435+
<table summary="Response Details" border="1">
4436+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4437+
<tr><td> 200 </td><td> Returns a list of LimitedGroup objects. </td><td> - </td></tr>
4438+
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
4439+
</table>
4440+
*/
4441+
public okhttp3.Call searchGroupsCall(String query, Integer offset, Integer n, final ApiCallback _callback) throws ApiException {
4442+
String basePath = null;
4443+
// Operation Servers
4444+
String[] localBasePaths = new String[] { };
4445+
4446+
// Determine Base Path to Use
4447+
if (localCustomBaseUrl != null){
4448+
basePath = localCustomBaseUrl;
4449+
} else if ( localBasePaths.length > 0 ) {
4450+
basePath = localBasePaths[localHostIndex];
4451+
} else {
4452+
basePath = null;
4453+
}
4454+
4455+
Object localVarPostBody = null;
4456+
4457+
// create path and map variables
4458+
String localVarPath = "/groups";
4459+
4460+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
4461+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
4462+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
4463+
Map<String, String> localVarCookieParams = new HashMap<String, String>();
4464+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
4465+
4466+
if (query != null) {
4467+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query));
4468+
}
4469+
4470+
if (offset != null) {
4471+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset));
4472+
}
4473+
4474+
if (n != null) {
4475+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("n", n));
4476+
}
4477+
4478+
final String[] localVarAccepts = {
4479+
"application/json"
4480+
};
4481+
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
4482+
if (localVarAccept != null) {
4483+
localVarHeaderParams.put("Accept", localVarAccept);
4484+
}
4485+
4486+
final String[] localVarContentTypes = {
4487+
};
4488+
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
4489+
if (localVarContentType != null) {
4490+
localVarHeaderParams.put("Content-Type", localVarContentType);
4491+
}
4492+
4493+
String[] localVarAuthNames = new String[] { };
4494+
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
4495+
}
4496+
4497+
@SuppressWarnings("rawtypes")
4498+
private okhttp3.Call searchGroupsValidateBeforeCall(String query, Integer offset, Integer n, final ApiCallback _callback) throws ApiException {
4499+
return searchGroupsCall(query, offset, n, _callback);
4500+
4501+
}
4502+
4503+
/**
4504+
* Search Group
4505+
* Searches Groups by name or shortCode
4506+
* @param query Query to search for, can be either Group Name or Group shortCode (optional)
4507+
* @param offset A zero-based offset from the default object sorting from where search results start. (optional)
4508+
* @param n The number of objects to return. (optional, default to 60)
4509+
* @return List&lt;LimitedGroup&gt;
4510+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
4511+
* @http.response.details
4512+
<table summary="Response Details" border="1">
4513+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4514+
<tr><td> 200 </td><td> Returns a list of LimitedGroup objects. </td><td> - </td></tr>
4515+
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
4516+
</table>
4517+
*/
4518+
public List<LimitedGroup> searchGroups(String query, Integer offset, Integer n) throws ApiException {
4519+
ApiResponse<List<LimitedGroup>> localVarResp = searchGroupsWithHttpInfo(query, offset, n);
4520+
return localVarResp.getData();
4521+
}
4522+
4523+
/**
4524+
* Search Group
4525+
* Searches Groups by name or shortCode
4526+
* @param query Query to search for, can be either Group Name or Group shortCode (optional)
4527+
* @param offset A zero-based offset from the default object sorting from where search results start. (optional)
4528+
* @param n The number of objects to return. (optional, default to 60)
4529+
* @return ApiResponse&lt;List&lt;LimitedGroup&gt;&gt;
4530+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
4531+
* @http.response.details
4532+
<table summary="Response Details" border="1">
4533+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4534+
<tr><td> 200 </td><td> Returns a list of LimitedGroup objects. </td><td> - </td></tr>
4535+
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
4536+
</table>
4537+
*/
4538+
public ApiResponse<List<LimitedGroup>> searchGroupsWithHttpInfo(String query, Integer offset, Integer n) throws ApiException {
4539+
okhttp3.Call localVarCall = searchGroupsValidateBeforeCall(query, offset, n, null);
4540+
Type localVarReturnType = new TypeToken<List<LimitedGroup>>(){}.getType();
4541+
return localVarApiClient.execute(localVarCall, localVarReturnType);
4542+
}
4543+
4544+
/**
4545+
* Search Group (asynchronously)
4546+
* Searches Groups by name or shortCode
4547+
* @param query Query to search for, can be either Group Name or Group shortCode (optional)
4548+
* @param offset A zero-based offset from the default object sorting from where search results start. (optional)
4549+
* @param n The number of objects to return. (optional, default to 60)
4550+
* @param _callback The callback to be executed when the API call finishes
4551+
* @return The request call
4552+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
4553+
* @http.response.details
4554+
<table summary="Response Details" border="1">
4555+
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4556+
<tr><td> 200 </td><td> Returns a list of LimitedGroup objects. </td><td> - </td></tr>
4557+
<tr><td> 401 </td><td> Error response due to missing auth cookie. </td><td> - </td></tr>
4558+
</table>
4559+
*/
4560+
public okhttp3.Call searchGroupsAsync(String query, Integer offset, Integer n, final ApiCallback<List<LimitedGroup>> _callback) throws ApiException {
4561+
4562+
okhttp3.Call localVarCall = searchGroupsValidateBeforeCall(query, offset, n, _callback);
4563+
Type localVarReturnType = new TypeToken<List<LimitedGroup>>(){}.getType();
4564+
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
4565+
return localVarCall;
4566+
}
44254567
/**
44264568
* Build call for unbanGroupMember
44274569
* @param groupId Must be a valid group ID. (required)

0 commit comments

Comments
 (0)