Skip to content

Commit a776b40

Browse files
committed
Upgrade Java SDK to spec 1.17.3
1 parent b1cac62 commit a776b40

File tree

181 files changed

+2471
-196
lines changed

Some content is hidden

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

181 files changed

+2471
-196
lines changed

.openapi-generator/FILES

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ docs/CreateGroupInviteRequest.md
2424
docs/CreateGroupPostRequest.md
2525
docs/CreateGroupRequest.md
2626
docs/CreateGroupRoleRequest.md
27+
docs/CreateInstanceRequest.md
2728
docs/CreateWorldRequest.md
2829
docs/CurrentUser.md
2930
docs/CurrentUserPresence.md
@@ -96,6 +97,11 @@ docs/MIMEType.md
9697
docs/ModelFile.md
9798
docs/ModerateUserRequest.md
9899
docs/Notification.md
100+
docs/NotificationDetailInvite.md
101+
docs/NotificationDetailInviteResponse.md
102+
docs/NotificationDetailRequestInvite.md
103+
docs/NotificationDetailRequestInviteResponse.md
104+
docs/NotificationDetailVoteToKick.md
99105
docs/NotificationType.md
100106
docs/NotificationsApi.md
101107
docs/OrderOption.md
@@ -210,6 +216,7 @@ src/main/java/io/github/vrchatapi/model/CreateGroupInviteRequest.java
210216
src/main/java/io/github/vrchatapi/model/CreateGroupPostRequest.java
211217
src/main/java/io/github/vrchatapi/model/CreateGroupRequest.java
212218
src/main/java/io/github/vrchatapi/model/CreateGroupRoleRequest.java
219+
src/main/java/io/github/vrchatapi/model/CreateInstanceRequest.java
213220
src/main/java/io/github/vrchatapi/model/CreateWorldRequest.java
214221
src/main/java/io/github/vrchatapi/model/CurrentUser.java
215222
src/main/java/io/github/vrchatapi/model/CurrentUserPresence.java
@@ -275,6 +282,11 @@ src/main/java/io/github/vrchatapi/model/MIMEType.java
275282
src/main/java/io/github/vrchatapi/model/ModelFile.java
276283
src/main/java/io/github/vrchatapi/model/ModerateUserRequest.java
277284
src/main/java/io/github/vrchatapi/model/Notification.java
285+
src/main/java/io/github/vrchatapi/model/NotificationDetailInvite.java
286+
src/main/java/io/github/vrchatapi/model/NotificationDetailInviteResponse.java
287+
src/main/java/io/github/vrchatapi/model/NotificationDetailRequestInvite.java
288+
src/main/java/io/github/vrchatapi/model/NotificationDetailRequestInviteResponse.java
289+
src/main/java/io/github/vrchatapi/model/NotificationDetailVoteToKick.java
278290
src/main/java/io/github/vrchatapi/model/NotificationType.java
279291
src/main/java/io/github/vrchatapi/model/OrderOption.java
280292
src/main/java/io/github/vrchatapi/model/PaginatedGroupAuditLogEntryList.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.17.2'
7+
version = '1.17.3'
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.17.2",
5+
version := "1.17.3",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CreateInstanceRequest.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
# CreateInstanceRequest
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | |
11+
|**type** | **InstanceType** | | |
12+
|**region** | **Region** | | |
13+
|**ownerId** | **String** | A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise | [optional] |
14+
|**roleIds** | **List<String>** | Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" | [optional] |
15+
|**groupAccessType** | **GroupAccessType** | | [optional] |
16+
|**queueEnabled** | **Boolean** | | [optional] |
17+
|**closedAt** | **OffsetDateTime** | The time after which users won't be allowed to join the instance | [optional] |
18+
19+
20+

docs/GroupsApi.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
4444
| [**updateGroup**](GroupsApi.md#updateGroup) | **PUT** /groups/{groupId} | Update Group |
4545
| [**updateGroupGallery**](GroupsApi.md#updateGroupGallery) | **PUT** /groups/{groupId}/galleries/{groupGalleryId} | Update Group Gallery |
4646
| [**updateGroupMember**](GroupsApi.md#updateGroupMember) | **PUT** /groups/{groupId}/members/{userId} | Update Group Member |
47+
| [**updateGroupPost**](GroupsApi.md#updateGroupPost) | **PUT** /groups/{groupId}/posts/{notificationId} | Edits a Group post |
4748
| [**updateGroupRole**](GroupsApi.md#updateGroupRole) | **PUT** /groups/{groupId}/roles/{groupRoleId} | Update Group Role |
4849

4950

@@ -2983,6 +2984,81 @@ public class Example {
29832984
| **401** | Error response due to missing auth cookie. | - |
29842985
| **404** | Error response when trying to perform operations on a non-existing group. | - |
29852986

2987+
<a name="updateGroupPost"></a>
2988+
# **updateGroupPost**
2989+
> GroupPost updateGroupPost(groupId, notificationId, createGroupPostRequest)
2990+
2991+
Edits a Group post
2992+
2993+
Edits a Group post
2994+
2995+
### Example
2996+
```java
2997+
// Import classes:
2998+
import io.github.vrchatapi.ApiClient;
2999+
import io.github.vrchatapi.ApiException;
3000+
import io.github.vrchatapi.Configuration;
3001+
import io.github.vrchatapi.auth.*;
3002+
import io.github.vrchatapi.models.*;
3003+
import io.github.vrchatapi.api.GroupsApi;
3004+
3005+
public class Example {
3006+
public static void main(String[] args) {
3007+
ApiClient defaultClient = Configuration.getDefaultApiClient();
3008+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
3009+
3010+
// Configure API key authorization: authCookie
3011+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
3012+
authCookie.setApiKey("YOUR API KEY");
3013+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3014+
//authCookie.setApiKeyPrefix("Token");
3015+
3016+
GroupsApi apiInstance = new GroupsApi(defaultClient);
3017+
String groupId = "grp_00000000-0000-0000-0000-000000000000"; // String | Must be a valid group ID.
3018+
String notificationId = "notificationId_example"; // String | Must be a valid notification ID.
3019+
CreateGroupPostRequest createGroupPostRequest = new CreateGroupPostRequest(); // CreateGroupPostRequest |
3020+
try {
3021+
GroupPost result = apiInstance.updateGroupPost(groupId, notificationId, createGroupPostRequest);
3022+
System.out.println(result);
3023+
} catch (ApiException e) {
3024+
System.err.println("Exception when calling GroupsApi#updateGroupPost");
3025+
System.err.println("Status code: " + e.getCode());
3026+
System.err.println("Reason: " + e.getResponseBody());
3027+
System.err.println("Response headers: " + e.getResponseHeaders());
3028+
e.printStackTrace();
3029+
}
3030+
}
3031+
}
3032+
```
3033+
3034+
### Parameters
3035+
3036+
| Name | Type | Description | Notes |
3037+
|------------- | ------------- | ------------- | -------------|
3038+
| **groupId** | **String**| Must be a valid group ID. | |
3039+
| **notificationId** | **String**| Must be a valid notification ID. | |
3040+
| **createGroupPostRequest** | [**CreateGroupPostRequest**](CreateGroupPostRequest.md)| | |
3041+
3042+
### Return type
3043+
3044+
[**GroupPost**](GroupPost.md)
3045+
3046+
### Authorization
3047+
3048+
[authCookie](../README.md#authCookie)
3049+
3050+
### HTTP request headers
3051+
3052+
- **Content-Type**: application/json
3053+
- **Accept**: application/json
3054+
3055+
### HTTP response details
3056+
| Status code | Description | Response headers |
3057+
|-------------|-------------|------------------|
3058+
| **200** | Returns a GroupPost object. | - |
3059+
| **401** | Error response due to missing auth cookie. | - |
3060+
| **404** | Response after deleting a group post. | - |
3061+
29863062
<a name="updateGroupRole"></a>
29873063
# **updateGroupRole**
29883064
> List&lt;GroupRole&gt; updateGroupRole(groupId, groupRoleId, updateGroupRoleRequest)

docs/InstancesApi.md

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
55
| Method | HTTP request | Description |
66
|------------- | ------------- | -------------|
77
| [**closeInstance**](InstancesApi.md#closeInstance) | **DELETE** /instances/{worldId}:{instanceId} | Close Instance |
8+
| [**createInstance**](InstancesApi.md#createInstance) | **POST** /instances | Create Instance |
89
| [**getInstance**](InstancesApi.md#getInstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance |
910
| [**getInstanceByShortName**](InstancesApi.md#getInstanceByShortName) | **GET** /instances/s/{shortName} | Get Instance By Short Name |
1011
| [**getShortName**](InstancesApi.md#getShortName) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name |
@@ -13,11 +14,11 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
1314

1415
<a name="closeInstance"></a>
1516
# **closeInstance**
16-
> Instance closeInstance(worldId, instanceId, hardClose)
17+
> Instance closeInstance(worldId, instanceId, hardClose, closedAt)
1718
1819
Close Instance
1920

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+
Close an instance or update the closedAt time when it will be closed. 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.
2122

2223
### Example
2324
```java
@@ -44,8 +45,9 @@ public class Example {
4445
String worldId = "worldId_example"; // String | Must be a valid world ID.
4546
String instanceId = "instanceId_example"; // String | Must be a valid instance ID.
4647
Boolean hardClose = true; // Boolean | Whether to hard close the instance. Defaults to false.
48+
OffsetDateTime closedAt = OffsetDateTime.now(); // OffsetDateTime | The time after which users won't be allowed to join the instances. If omitted, the instance will be closed immediately.
4749
try {
48-
Instance result = apiInstance.closeInstance(worldId, instanceId, hardClose);
50+
Instance result = apiInstance.closeInstance(worldId, instanceId, hardClose, closedAt);
4951
System.out.println(result);
5052
} catch (ApiException e) {
5153
System.err.println("Exception when calling InstancesApi#closeInstance");
@@ -65,6 +67,7 @@ public class Example {
6567
| **worldId** | **String**| Must be a valid world ID. | |
6668
| **instanceId** | **String**| Must be a valid instance ID. | |
6769
| **hardClose** | **Boolean**| Whether to hard close the instance. Defaults to false. | [optional] |
70+
| **closedAt** | **OffsetDateTime**| The time after which users won&#39;t be allowed to join the instances. If omitted, the instance will be closed immediately. | [optional] |
6871

6972
### Return type
7073

@@ -87,6 +90,76 @@ public class Example {
8790
| **403** | Error response due to not being allowed to close an instance | - |
8891
| **404** | Error response due to non existant instance | - |
8992

93+
<a name="createInstance"></a>
94+
# **createInstance**
95+
> Instance createInstance(createInstanceRequest)
96+
97+
Create Instance
98+
99+
Create an instance
100+
101+
### Example
102+
```java
103+
// Import classes:
104+
import io.github.vrchatapi.ApiClient;
105+
import io.github.vrchatapi.ApiException;
106+
import io.github.vrchatapi.Configuration;
107+
import io.github.vrchatapi.auth.*;
108+
import io.github.vrchatapi.models.*;
109+
import io.github.vrchatapi.api.InstancesApi;
110+
111+
public class Example {
112+
public static void main(String[] args) {
113+
ApiClient defaultClient = Configuration.getDefaultApiClient();
114+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
115+
116+
// Configure API key authorization: authCookie
117+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
118+
authCookie.setApiKey("YOUR API KEY");
119+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
120+
//authCookie.setApiKeyPrefix("Token");
121+
122+
InstancesApi apiInstance = new InstancesApi(defaultClient);
123+
CreateInstanceRequest createInstanceRequest = new CreateInstanceRequest(); // CreateInstanceRequest |
124+
try {
125+
Instance result = apiInstance.createInstance(createInstanceRequest);
126+
System.out.println(result);
127+
} catch (ApiException e) {
128+
System.err.println("Exception when calling InstancesApi#createInstance");
129+
System.err.println("Status code: " + e.getCode());
130+
System.err.println("Reason: " + e.getResponseBody());
131+
System.err.println("Response headers: " + e.getResponseHeaders());
132+
e.printStackTrace();
133+
}
134+
}
135+
}
136+
```
137+
138+
### Parameters
139+
140+
| Name | Type | Description | Notes |
141+
|------------- | ------------- | ------------- | -------------|
142+
| **createInstanceRequest** | [**CreateInstanceRequest**](CreateInstanceRequest.md)| | |
143+
144+
### Return type
145+
146+
[**Instance**](Instance.md)
147+
148+
### Authorization
149+
150+
[authCookie](../README.md#authCookie)
151+
152+
### HTTP request headers
153+
154+
- **Content-Type**: application/json
155+
- **Accept**: application/json
156+
157+
### HTTP response details
158+
| Status code | Description | Response headers |
159+
|-------------|-------------|------------------|
160+
| **200** | Returns a single Instance object. | - |
161+
| **401** | Error response due to missing auth cookie. | - |
162+
90163
<a name="getInstance"></a>
91164
# **getInstance**
92165
> Instance getInstance(worldId, instanceId)

docs/NotificationDetailInvite.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# NotificationDetailInvite
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**inviteMessage** | **String** | | [optional] |
11+
|**worldId** | **String** | WorldID be \&quot;offline\&quot; on User profiles if you are not friends with that user. | |
12+
|**worldName** | **String** | | |
13+
14+
15+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# NotificationDetailInviteResponse
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**inResponseTo** | **String** | | |
11+
|**responseMessage** | **String** | | |
12+
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# NotificationDetailRequestInvite
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**platform** | **String** | TODO: Does this still exist? | [optional] |
11+
|**requestMessage** | **String** | Used when using InviteMessage Slot. | [optional] |
12+
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# NotificationDetailRequestInviteResponse
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**inResponseTo** | **String** | | |
11+
|**requestMessage** | **String** | Used when using InviteMessage Slot. | [optional] |
12+
13+
14+

0 commit comments

Comments
 (0)