Skip to content

Commit f614706

Browse files
committed
Upgrade Java SDK to spec 1.17.0
1 parent f939abb commit f614706

File tree

167 files changed

+682
-174
lines changed

Some content is hidden

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

167 files changed

+682
-174
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ docs/FinishFileDataUploadRequest.md
4646
docs/FriendStatus.md
4747
docs/FriendsApi.md
4848
docs/Group.md
49+
docs/GroupAccessType.md
4950
docs/GroupAnnouncement.md
5051
docs/GroupAuditLogEntry.md
5152
docs/GroupGallery.md
@@ -223,6 +224,7 @@ src/main/java/io/github/vrchatapi/model/FileVersionUploadStatus.java
223224
src/main/java/io/github/vrchatapi/model/FinishFileDataUploadRequest.java
224225
src/main/java/io/github/vrchatapi/model/FriendStatus.java
225226
src/main/java/io/github/vrchatapi/model/Group.java
227+
src/main/java/io/github/vrchatapi/model/GroupAccessType.java
226228
src/main/java/io/github/vrchatapi/model/GroupAnnouncement.java
227229
src/main/java/io/github/vrchatapi/model/GroupAuditLogEntry.java
228230
src/main/java/io/github/vrchatapi/model/GroupGallery.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.16.8'
7+
version = '1.17.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.16.8",
5+
version := "1.17.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/FriendsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public class Example {
150150
| Status code | Description | Response headers |
151151
|-------------|-------------|------------------|
152152
| **200** | Returns a single Notifcation object. | - |
153+
| **400** | Bad request error response when sending a friend request | - |
153154
| **401** | Error response due to missing auth cookie. | - |
154155
| **404** | Error response when trying to send a friend request to a user which doesn't exist. | - |
155156

docs/GroupAccessType.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# GroupAccessType
4+
5+
## Enum
6+
7+
8+
* `PUBLIC` (value: `"public"`)
9+
10+
* `PLUS` (value: `"plus"`)
11+
12+
* `MEMBER` (value: `"member"`)
13+
14+
15+

docs/GroupsApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,9 @@ null (empty response body)
622622
| Status code | Description | Response headers |
623623
|-------------|-------------|------------------|
624624
| **200** | OK | - |
625-
| **400** | User <displayName> is already invited | - |
625+
| **400** | Bad request error response when creating a group invite. | - |
626626
| **401** | Error response due to missing auth cookie. | - |
627+
| **403** | Forbidden error response when creating a group invite. | - |
627628
| **404** | Error response when trying to perform operations on a non-existing group. | - |
628629

629630
<a name="createGroupRole"></a>
@@ -1882,6 +1883,7 @@ public class Example {
18821883
| Status code | Description | Response headers |
18831884
|-------------|-------------|------------------|
18841885
| **200** | Returns a list of GroupMember objects. | - |
1886+
| **400** | Bad request error response when responding to a group join request | - |
18851887
| **403** | Error response when trying to perform operations on a group you are not member of. | - |
18861888
| **404** | Error response when trying to perform operations on a non-existing group. | - |
18871889

docs/Instance.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
|**location** | **String** | InstanceID can be \&quot;offline\&quot; on User profiles if you are not friends with that user and \&quot;private\&quot; if you are friends and user is in private instance. | |
1919
|**nUsers** | **Integer** | | |
2020
|**name** | **String** | | |
21-
|**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] |
21+
|**ownerId** | **String** | A groupId if the instance type is \&quot;group\&quot;, null if instance type is public, or a userId otherwise | [optional] |
2222
|**permanent** | **Boolean** | | |
2323
|**photonRegion** | **Region** | | |
2424
|**platforms** | [**InstancePlatforms**](InstancePlatforms.md) | | |
@@ -34,11 +34,16 @@
3434
|**queueEnabled** | **Boolean** | | |
3535
|**queueSize** | **Integer** | | |
3636
|**recommendedCapacity** | **Integer** | | |
37-
|**roleRestricted** | **Boolean** | | |
37+
|**roleRestricted** | **Boolean** | | [optional] |
3838
|**strict** | **Boolean** | | |
3939
|**userCount** | **Integer** | | |
4040
|**world** | [**World**](World.md) | | |
4141
|**users** | [**List&lt;LimitedUser&gt;**](LimitedUser.md) | The users field is present on instances created by the requesting user. | [optional] |
42+
|**groupAccessType** | **GroupAccessType** | | [optional] |
43+
|**hasCapacityForYou** | **Boolean** | | [optional] |
44+
|**nonce** | **String** | | [optional] |
45+
|**closedAt** | **OffsetDateTime** | | [optional] |
46+
|**hardClose** | **Boolean** | | [optional] |
4247

4348

4449

docs/InstancesApi.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,89 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
44

55
| Method | HTTP request | Description |
66
|------------- | ------------- | -------------|
7+
| [**closeInstance**](InstancesApi.md#closeInstance) | **DELETE** /instances/{worldId}:{instanceId} | Close Instance |
78
| [**getInstance**](InstancesApi.md#getInstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance |
89
| [**getInstanceByShortName**](InstancesApi.md#getInstanceByShortName) | **GET** /instances/s/{shortName} | Get Instance By Short Name |
910
| [**getShortName**](InstancesApi.md#getShortName) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name |
1011
| [**sendSelfInvite**](InstancesApi.md#sendSelfInvite) | **POST** /instances/{worldId}:{instanceId}/invite | Send Self Invite |
1112

1213

14+
<a name="closeInstance"></a>
15+
# **closeInstance**
16+
> Instance closeInstance(worldId, instanceId, hardClose)
17+
18+
Close Instance
19+
20+
Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the &#x60;group-instance-moderate&#x60; permission.
21+
22+
### Example
23+
```java
24+
// Import classes:
25+
import io.github.vrchatapi.ApiClient;
26+
import io.github.vrchatapi.ApiException;
27+
import io.github.vrchatapi.Configuration;
28+
import io.github.vrchatapi.auth.*;
29+
import io.github.vrchatapi.models.*;
30+
import io.github.vrchatapi.api.InstancesApi;
31+
32+
public class Example {
33+
public static void main(String[] args) {
34+
ApiClient defaultClient = Configuration.getDefaultApiClient();
35+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
36+
37+
// Configure API key authorization: authCookie
38+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
39+
authCookie.setApiKey("YOUR API KEY");
40+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
41+
//authCookie.setApiKeyPrefix("Token");
42+
43+
InstancesApi apiInstance = new InstancesApi(defaultClient);
44+
String worldId = "worldId_example"; // String | Must be a valid world ID.
45+
String instanceId = "instanceId_example"; // String | Must be a valid instance ID.
46+
Boolean hardClose = true; // Boolean | Whether to hard close the instance. Defaults to false.
47+
try {
48+
Instance result = apiInstance.closeInstance(worldId, instanceId, hardClose);
49+
System.out.println(result);
50+
} catch (ApiException e) {
51+
System.err.println("Exception when calling InstancesApi#closeInstance");
52+
System.err.println("Status code: " + e.getCode());
53+
System.err.println("Reason: " + e.getResponseBody());
54+
System.err.println("Response headers: " + e.getResponseHeaders());
55+
e.printStackTrace();
56+
}
57+
}
58+
}
59+
```
60+
61+
### Parameters
62+
63+
| Name | Type | Description | Notes |
64+
|------------- | ------------- | ------------- | -------------|
65+
| **worldId** | **String**| Must be a valid world ID. | |
66+
| **instanceId** | **String**| Must be a valid instance ID. | |
67+
| **hardClose** | **Boolean**| Whether to hard close the instance. Defaults to false. | [optional] |
68+
69+
### Return type
70+
71+
[**Instance**](Instance.md)
72+
73+
### Authorization
74+
75+
[authCookie](../README.md#authCookie)
76+
77+
### HTTP request headers
78+
79+
- **Content-Type**: Not defined
80+
- **Accept**: application/json
81+
82+
### HTTP response details
83+
| Status code | Description | Response headers |
84+
|-------------|-------------|------------------|
85+
| **200** | Returns a single Instance object. | - |
86+
| **401** | Error response due to missing auth cookie. | - |
87+
| **403** | Error response due to not being allowed to close an instance | - |
88+
| **404** | Error response due to non existant instance | - |
89+
1390
<a name="getInstance"></a>
1491
# **getInstance**
1592
> Instance getInstance(worldId, instanceId)

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.16.8</version>
8+
<version>1.17.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.16.8
4+
* The version of the OpenAPI document: 1.17.0
55
* Contact: vrchatapi.lpv0t@aries.fyi
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)