Skip to content

Commit b1cac62

Browse files
committed
Upgrade Java SDK to spec 1.17.2
1 parent cfa8ef4 commit b1cac62

File tree

172 files changed

+1964
-195
lines changed

Some content is hidden

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

172 files changed

+1964
-195
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ docs/CreateFileVersionRequest.md
2121
docs/CreateGroupAnnouncementRequest.md
2222
docs/CreateGroupGalleryRequest.md
2323
docs/CreateGroupInviteRequest.md
24+
docs/CreateGroupPostRequest.md
2425
docs/CreateGroupRequest.md
2526
docs/CreateGroupRoleRequest.md
2627
docs/CreateWorldRequest.md
@@ -60,6 +61,8 @@ docs/GroupMemberLimitedUser.md
6061
docs/GroupMemberStatus.md
6162
docs/GroupMyMember.md
6263
docs/GroupPermission.md
64+
docs/GroupPost.md
65+
docs/GroupPostVisibility.md
6366
docs/GroupPrivacy.md
6467
docs/GroupRole.md
6568
docs/GroupRoleTemplate.md
@@ -204,6 +207,7 @@ src/main/java/io/github/vrchatapi/model/CreateFileVersionRequest.java
204207
src/main/java/io/github/vrchatapi/model/CreateGroupAnnouncementRequest.java
205208
src/main/java/io/github/vrchatapi/model/CreateGroupGalleryRequest.java
206209
src/main/java/io/github/vrchatapi/model/CreateGroupInviteRequest.java
210+
src/main/java/io/github/vrchatapi/model/CreateGroupPostRequest.java
207211
src/main/java/io/github/vrchatapi/model/CreateGroupRequest.java
208212
src/main/java/io/github/vrchatapi/model/CreateGroupRoleRequest.java
209213
src/main/java/io/github/vrchatapi/model/CreateWorldRequest.java
@@ -239,6 +243,8 @@ src/main/java/io/github/vrchatapi/model/GroupMemberLimitedUser.java
239243
src/main/java/io/github/vrchatapi/model/GroupMemberStatus.java
240244
src/main/java/io/github/vrchatapi/model/GroupMyMember.java
241245
src/main/java/io/github/vrchatapi/model/GroupPermission.java
246+
src/main/java/io/github/vrchatapi/model/GroupPost.java
247+
src/main/java/io/github/vrchatapi/model/GroupPostVisibility.java
242248
src/main/java/io/github/vrchatapi/model/GroupPrivacy.java
243249
src/main/java/io/github/vrchatapi/model/GroupRole.java
244250
src/main/java/io/github/vrchatapi/model/GroupRoleTemplate.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.1'
7+
version = '1.17.2'
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.1",
5+
version := "1.17.2",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CreateGroupPostRequest.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
# CreateGroupPostRequest
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**title** | **String** | Post title | |
11+
|**text** | **String** | Post text | |
12+
|**imageId** | **String** | | [optional] |
13+
|**sendNotification** | **Boolean** | Send notification to group members. | |
14+
|**roleIds** | **List<String>** | | [optional] |
15+
|**visibility** | **GroupPostVisibility** | | |
16+
17+
18+

docs/GroupPost.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
3+
# GroupPost
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**id** | **String** | | [optional] |
11+
|**groupId** | **String** | | [optional] |
12+
|**authorId** | **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] |
13+
|**editorId** | **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] |
14+
|**visibility** | **GroupPostVisibility** | | [optional] |
15+
|**roleId** | **List<String>** | | [optional] |
16+
|**title** | **String** | | [optional] |
17+
|**text** | **String** | | [optional] |
18+
|**imageId** | **String** | | [optional] |
19+
|**imageUrl** | **String** | | [optional] |
20+
|**createdAt** | **OffsetDateTime** | | [optional] |
21+
|**updatedAt** | **OffsetDateTime** | | [optional] |
22+
23+
24+

docs/GroupPostVisibility.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# GroupPostVisibility
4+
5+
## Enum
6+
7+
8+
* `GROUP` (value: `"group"`)
9+
10+
* `PUBLIC` (value: `"public"`)
11+
12+
13+

docs/GroupsApi.md

Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
66
|------------- | ------------- | -------------|
77
| [**addGroupGalleryImage**](GroupsApi.md#addGroupGalleryImage) | **POST** /groups/{groupId}/galleries/{groupGalleryId}/images | Add Group Gallery Image |
88
| [**addGroupMemberRole**](GroupsApi.md#addGroupMemberRole) | **PUT** /groups/{groupId}/members/{userId}/roles/{groupRoleId} | Add Role to GroupMember |
9+
| [**addGroupPost**](GroupsApi.md#addGroupPost) | **POST** /groups/{groupId}/posts | Create a post in a Group |
910
| [**banGroupMember**](GroupsApi.md#banGroupMember) | **POST** /groups/{groupId}/bans | Ban Group Member |
1011
| [**cancelGroupRequest**](GroupsApi.md#cancelGroupRequest) | **DELETE** /groups/{groupId}/requests | Cancel Group Join Request |
1112
| [**createGroup**](GroupsApi.md#createGroup) | **POST** /groups | Create Group |
@@ -18,6 +19,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
1819
| [**deleteGroupGallery**](GroupsApi.md#deleteGroupGallery) | **DELETE** /groups/{groupId}/galleries/{groupGalleryId} | Delete Group Gallery |
1920
| [**deleteGroupGalleryImage**](GroupsApi.md#deleteGroupGalleryImage) | **DELETE** /groups/{groupId}/galleries/{groupGalleryId}/images/{groupGalleryImageId} | Delete Group Gallery Image |
2021
| [**deleteGroupInvite**](GroupsApi.md#deleteGroupInvite) | **DELETE** /groups/{groupId}/invites/{userId} | Delete User Invite |
22+
| [**deleteGroupPost**](GroupsApi.md#deleteGroupPost) | **DELETE** /groups/{groupId}/posts/{notificationId} | Delete a Group post |
2123
| [**deleteGroupRole**](GroupsApi.md#deleteGroupRole) | **DELETE** /groups/{groupId}/roles/{groupRoleId} | Delete Group Role |
2224
| [**getGroup**](GroupsApi.md#getGroup) | **GET** /groups/{groupId} | Get Group by ID |
2325
| [**getGroupAnnouncements**](GroupsApi.md#getGroupAnnouncements) | **GET** /groups/{groupId}/announcement | Get Group Announcement |
@@ -29,6 +31,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
2931
| [**getGroupMember**](GroupsApi.md#getGroupMember) | **GET** /groups/{groupId}/members/{userId} | Get Group Member |
3032
| [**getGroupMembers**](GroupsApi.md#getGroupMembers) | **GET** /groups/{groupId}/members | List Group Members |
3133
| [**getGroupPermissions**](GroupsApi.md#getGroupPermissions) | **GET** /groups/{groupId}/permissions | List Group Permissions |
34+
| [**getGroupPost**](GroupsApi.md#getGroupPost) | **GET** /groups/{groupId}/posts | Get posts from a Group |
3235
| [**getGroupRequests**](GroupsApi.md#getGroupRequests) | **GET** /groups/{groupId}/requests | Get Group Join Requests |
3336
| [**getGroupRoles**](GroupsApi.md#getGroupRoles) | **GET** /groups/{groupId}/roles | Get Group Roles |
3437
| [**joinGroup**](GroupsApi.md#joinGroup) | **POST** /groups/{groupId}/join | Join Group |
@@ -194,6 +197,78 @@ public class Example {
194197
| **401** | Error response due to missing auth cookie. | - |
195198
| **404** | Error response when trying to perform operations on a non-existing group. | - |
196199

200+
<a name="addGroupPost"></a>
201+
# **addGroupPost**
202+
> GroupPost addGroupPost(groupId, createGroupPostRequest)
203+
204+
Create a post in a Group
205+
206+
Create a post in a Group.
207+
208+
### Example
209+
```java
210+
// Import classes:
211+
import io.github.vrchatapi.ApiClient;
212+
import io.github.vrchatapi.ApiException;
213+
import io.github.vrchatapi.Configuration;
214+
import io.github.vrchatapi.auth.*;
215+
import io.github.vrchatapi.models.*;
216+
import io.github.vrchatapi.api.GroupsApi;
217+
218+
public class Example {
219+
public static void main(String[] args) {
220+
ApiClient defaultClient = Configuration.getDefaultApiClient();
221+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
222+
223+
// Configure API key authorization: authCookie
224+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
225+
authCookie.setApiKey("YOUR API KEY");
226+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
227+
//authCookie.setApiKeyPrefix("Token");
228+
229+
GroupsApi apiInstance = new GroupsApi(defaultClient);
230+
String groupId = "grp_00000000-0000-0000-0000-000000000000"; // String | Must be a valid group ID.
231+
CreateGroupPostRequest createGroupPostRequest = new CreateGroupPostRequest(); // CreateGroupPostRequest |
232+
try {
233+
GroupPost result = apiInstance.addGroupPost(groupId, createGroupPostRequest);
234+
System.out.println(result);
235+
} catch (ApiException e) {
236+
System.err.println("Exception when calling GroupsApi#addGroupPost");
237+
System.err.println("Status code: " + e.getCode());
238+
System.err.println("Reason: " + e.getResponseBody());
239+
System.err.println("Response headers: " + e.getResponseHeaders());
240+
e.printStackTrace();
241+
}
242+
}
243+
}
244+
```
245+
246+
### Parameters
247+
248+
| Name | Type | Description | Notes |
249+
|------------- | ------------- | ------------- | -------------|
250+
| **groupId** | **String**| Must be a valid group ID. | |
251+
| **createGroupPostRequest** | [**CreateGroupPostRequest**](CreateGroupPostRequest.md)| | |
252+
253+
### Return type
254+
255+
[**GroupPost**](GroupPost.md)
256+
257+
### Authorization
258+
259+
[authCookie](../README.md#authCookie)
260+
261+
### HTTP request headers
262+
263+
- **Content-Type**: application/json
264+
- **Accept**: application/json
265+
266+
### HTTP response details
267+
| Status code | Description | Response headers |
268+
|-------------|-------------|------------------|
269+
| **200** | Returns a GroupPost object. | - |
270+
| **401** | Error response due to missing auth cookie. | - |
271+
197272
<a name="banGroupMember"></a>
198273
# **banGroupMember**
199274
> GroupMember banGroupMember(groupId, banGroupMemberRequest)
@@ -1062,7 +1137,81 @@ null (empty response body)
10621137
| Status code | Description | Response headers |
10631138
|-------------|-------------|------------------|
10641139
| **200** | OK | - |
1140+
| **400** | Bad request error response when deleting a group invite | - |
1141+
| **401** | Error response due to missing auth cookie. | - |
1142+
1143+
<a name="deleteGroupPost"></a>
1144+
# **deleteGroupPost**
1145+
> Success deleteGroupPost(groupId, notificationId)
1146+
1147+
Delete a Group post
1148+
1149+
Delete a Group post
1150+
1151+
### Example
1152+
```java
1153+
// Import classes:
1154+
import io.github.vrchatapi.ApiClient;
1155+
import io.github.vrchatapi.ApiException;
1156+
import io.github.vrchatapi.Configuration;
1157+
import io.github.vrchatapi.auth.*;
1158+
import io.github.vrchatapi.models.*;
1159+
import io.github.vrchatapi.api.GroupsApi;
1160+
1161+
public class Example {
1162+
public static void main(String[] args) {
1163+
ApiClient defaultClient = Configuration.getDefaultApiClient();
1164+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
1165+
1166+
// Configure API key authorization: authCookie
1167+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
1168+
authCookie.setApiKey("YOUR API KEY");
1169+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1170+
//authCookie.setApiKeyPrefix("Token");
1171+
1172+
GroupsApi apiInstance = new GroupsApi(defaultClient);
1173+
String groupId = "grp_00000000-0000-0000-0000-000000000000"; // String | Must be a valid group ID.
1174+
String notificationId = "notificationId_example"; // String | Must be a valid notification ID.
1175+
try {
1176+
Success result = apiInstance.deleteGroupPost(groupId, notificationId);
1177+
System.out.println(result);
1178+
} catch (ApiException e) {
1179+
System.err.println("Exception when calling GroupsApi#deleteGroupPost");
1180+
System.err.println("Status code: " + e.getCode());
1181+
System.err.println("Reason: " + e.getResponseBody());
1182+
System.err.println("Response headers: " + e.getResponseHeaders());
1183+
e.printStackTrace();
1184+
}
1185+
}
1186+
}
1187+
```
1188+
1189+
### Parameters
1190+
1191+
| Name | Type | Description | Notes |
1192+
|------------- | ------------- | ------------- | -------------|
1193+
| **groupId** | **String**| Must be a valid group ID. | |
1194+
| **notificationId** | **String**| Must be a valid notification ID. | |
1195+
1196+
### Return type
1197+
1198+
[**Success**](Success.md)
1199+
1200+
### Authorization
1201+
1202+
[authCookie](../README.md#authCookie)
1203+
1204+
### HTTP request headers
1205+
1206+
- **Content-Type**: Not defined
1207+
- **Accept**: application/json
1208+
1209+
### HTTP response details
1210+
| Status code | Description | Response headers |
1211+
|-------------|-------------|------------------|
1212+
| **200** | Response after deleting a group post. | - |
10651213
| **401** | Error response due to missing auth cookie. | - |
1214+
| **404** | Response after deleting a group post. | - |
10661215

10671216
<a name="deleteGroupRole"></a>
10681217
# **deleteGroupRole**
@@ -1884,6 +2033,82 @@ public class Example {
18842033
| **401** | Error response due to missing auth cookie. | - |
18852034
| **404** | Error response when trying to perform operations on a non-existing group. | - |
18862035

2036+
<a name="getGroupPost"></a>
2037+
# **getGroupPost**
2038+
> GroupPost getGroupPost(groupId, n, offset, publicOnly)
2039+
2040+
Get posts from a Group
2041+
2042+
Get posts from a Group
2043+
2044+
### Example
2045+
```java
2046+
// Import classes:
2047+
import io.github.vrchatapi.ApiClient;
2048+
import io.github.vrchatapi.ApiException;
2049+
import io.github.vrchatapi.Configuration;
2050+
import io.github.vrchatapi.auth.*;
2051+
import io.github.vrchatapi.models.*;
2052+
import io.github.vrchatapi.api.GroupsApi;
2053+
2054+
public class Example {
2055+
public static void main(String[] args) {
2056+
ApiClient defaultClient = Configuration.getDefaultApiClient();
2057+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
2058+
2059+
// Configure API key authorization: authCookie
2060+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
2061+
authCookie.setApiKey("YOUR API KEY");
2062+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
2063+
//authCookie.setApiKeyPrefix("Token");
2064+
2065+
GroupsApi apiInstance = new GroupsApi(defaultClient);
2066+
String groupId = "grp_00000000-0000-0000-0000-000000000000"; // String | Must be a valid group ID.
2067+
Integer n = 60; // Integer | The number of objects to return.
2068+
Integer offset = 56; // Integer | A zero-based offset from the default object sorting from where search results start.
2069+
Boolean publicOnly = true; // Boolean | See public posts only.
2070+
try {
2071+
GroupPost result = apiInstance.getGroupPost(groupId, n, offset, publicOnly);
2072+
System.out.println(result);
2073+
} catch (ApiException e) {
2074+
System.err.println("Exception when calling GroupsApi#getGroupPost");
2075+
System.err.println("Status code: " + e.getCode());
2076+
System.err.println("Reason: " + e.getResponseBody());
2077+
System.err.println("Response headers: " + e.getResponseHeaders());
2078+
e.printStackTrace();
2079+
}
2080+
}
2081+
}
2082+
```
2083+
2084+
### Parameters
2085+
2086+
| Name | Type | Description | Notes |
2087+
|------------- | ------------- | ------------- | -------------|
2088+
| **groupId** | **String**| Must be a valid group ID. | |
2089+
| **n** | **Integer**| The number of objects to return. | [optional] [default to 60] |
2090+
| **offset** | **Integer**| A zero-based offset from the default object sorting from where search results start. | [optional] |
2091+
| **publicOnly** | **Boolean**| See public posts only. | [optional] |
2092+
2093+
### Return type
2094+
2095+
[**GroupPost**](GroupPost.md)
2096+
2097+
### Authorization
2098+
2099+
[authCookie](../README.md#authCookie)
2100+
2101+
### HTTP request headers
2102+
2103+
- **Content-Type**: Not defined
2104+
- **Accept**: application/json
2105+
2106+
### HTTP response details
2107+
| Status code | Description | Response headers |
2108+
|-------------|-------------|------------------|
2109+
| **200** | Returns a GroupPost object. | - |
2110+
| **401** | Error response due to missing auth cookie. | - |
2111+
18872112
<a name="getGroupRequests"></a>
18882113
# **getGroupRequests**
18892114
> List&lt;GroupMember&gt; getGroupRequests(groupId, n, offset)

0 commit comments

Comments
 (0)