Skip to content

Commit

Permalink
Upgrade Java SDK to spec 1.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Apr 23, 2024
1 parent cfa8ef4 commit b1cac62
Show file tree
Hide file tree
Showing 172 changed files with 1,964 additions and 195 deletions.
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ docs/CreateFileVersionRequest.md
docs/CreateGroupAnnouncementRequest.md
docs/CreateGroupGalleryRequest.md
docs/CreateGroupInviteRequest.md
docs/CreateGroupPostRequest.md
docs/CreateGroupRequest.md
docs/CreateGroupRoleRequest.md
docs/CreateWorldRequest.md
Expand Down Expand Up @@ -60,6 +61,8 @@ docs/GroupMemberLimitedUser.md
docs/GroupMemberStatus.md
docs/GroupMyMember.md
docs/GroupPermission.md
docs/GroupPost.md
docs/GroupPostVisibility.md
docs/GroupPrivacy.md
docs/GroupRole.md
docs/GroupRoleTemplate.md
Expand Down Expand Up @@ -204,6 +207,7 @@ src/main/java/io/github/vrchatapi/model/CreateFileVersionRequest.java
src/main/java/io/github/vrchatapi/model/CreateGroupAnnouncementRequest.java
src/main/java/io/github/vrchatapi/model/CreateGroupGalleryRequest.java
src/main/java/io/github/vrchatapi/model/CreateGroupInviteRequest.java
src/main/java/io/github/vrchatapi/model/CreateGroupPostRequest.java
src/main/java/io/github/vrchatapi/model/CreateGroupRequest.java
src/main/java/io/github/vrchatapi/model/CreateGroupRoleRequest.java
src/main/java/io/github/vrchatapi/model/CreateWorldRequest.java
Expand Down Expand Up @@ -239,6 +243,8 @@ src/main/java/io/github/vrchatapi/model/GroupMemberLimitedUser.java
src/main/java/io/github/vrchatapi/model/GroupMemberStatus.java
src/main/java/io/github/vrchatapi/model/GroupMyMember.java
src/main/java/io/github/vrchatapi/model/GroupPermission.java
src/main/java/io/github/vrchatapi/model/GroupPost.java
src/main/java/io/github/vrchatapi/model/GroupPostVisibility.java
src/main/java/io/github/vrchatapi/model/GroupPrivacy.java
src/main/java/io/github/vrchatapi/model/GroupRole.java
src/main/java/io/github/vrchatapi/model/GroupRoleTemplate.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.17.1'
version = '1.17.2'

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.17.1",
version := "1.17.2",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
18 changes: 18 additions & 0 deletions docs/CreateGroupPostRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


# CreateGroupPostRequest


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**title** | **String** | Post title | |
|**text** | **String** | Post text | |
|**imageId** | **String** | | [optional] |
|**sendNotification** | **Boolean** | Send notification to group members. | |
|**roleIds** | **List<String>** | | [optional] |
|**visibility** | **GroupPostVisibility** | | |



24 changes: 24 additions & 0 deletions docs/GroupPost.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@


# GroupPost


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **String** | | [optional] |
|**groupId** | **String** | | [optional] |
|**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] |
|**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] |
|**visibility** | **GroupPostVisibility** | | [optional] |
|**roleId** | **List<String>** | | [optional] |
|**title** | **String** | | [optional] |
|**text** | **String** | | [optional] |
|**imageId** | **String** | | [optional] |
|**imageUrl** | **String** | | [optional] |
|**createdAt** | **OffsetDateTime** | | [optional] |
|**updatedAt** | **OffsetDateTime** | | [optional] |



13 changes: 13 additions & 0 deletions docs/GroupPostVisibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# GroupPostVisibility

## Enum


* `GROUP` (value: `"group"`)

* `PUBLIC` (value: `"public"`)



225 changes: 225 additions & 0 deletions docs/GroupsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
|------------- | ------------- | -------------|
| [**addGroupGalleryImage**](GroupsApi.md#addGroupGalleryImage) | **POST** /groups/{groupId}/galleries/{groupGalleryId}/images | Add Group Gallery Image |
| [**addGroupMemberRole**](GroupsApi.md#addGroupMemberRole) | **PUT** /groups/{groupId}/members/{userId}/roles/{groupRoleId} | Add Role to GroupMember |
| [**addGroupPost**](GroupsApi.md#addGroupPost) | **POST** /groups/{groupId}/posts | Create a post in a Group |
| [**banGroupMember**](GroupsApi.md#banGroupMember) | **POST** /groups/{groupId}/bans | Ban Group Member |
| [**cancelGroupRequest**](GroupsApi.md#cancelGroupRequest) | **DELETE** /groups/{groupId}/requests | Cancel Group Join Request |
| [**createGroup**](GroupsApi.md#createGroup) | **POST** /groups | Create Group |
Expand All @@ -18,6 +19,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
| [**deleteGroupGallery**](GroupsApi.md#deleteGroupGallery) | **DELETE** /groups/{groupId}/galleries/{groupGalleryId} | Delete Group Gallery |
| [**deleteGroupGalleryImage**](GroupsApi.md#deleteGroupGalleryImage) | **DELETE** /groups/{groupId}/galleries/{groupGalleryId}/images/{groupGalleryImageId} | Delete Group Gallery Image |
| [**deleteGroupInvite**](GroupsApi.md#deleteGroupInvite) | **DELETE** /groups/{groupId}/invites/{userId} | Delete User Invite |
| [**deleteGroupPost**](GroupsApi.md#deleteGroupPost) | **DELETE** /groups/{groupId}/posts/{notificationId} | Delete a Group post |
| [**deleteGroupRole**](GroupsApi.md#deleteGroupRole) | **DELETE** /groups/{groupId}/roles/{groupRoleId} | Delete Group Role |
| [**getGroup**](GroupsApi.md#getGroup) | **GET** /groups/{groupId} | Get Group by ID |
| [**getGroupAnnouncements**](GroupsApi.md#getGroupAnnouncements) | **GET** /groups/{groupId}/announcement | Get Group Announcement |
Expand All @@ -29,6 +31,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
| [**getGroupMember**](GroupsApi.md#getGroupMember) | **GET** /groups/{groupId}/members/{userId} | Get Group Member |
| [**getGroupMembers**](GroupsApi.md#getGroupMembers) | **GET** /groups/{groupId}/members | List Group Members |
| [**getGroupPermissions**](GroupsApi.md#getGroupPermissions) | **GET** /groups/{groupId}/permissions | List Group Permissions |
| [**getGroupPost**](GroupsApi.md#getGroupPost) | **GET** /groups/{groupId}/posts | Get posts from a Group |
| [**getGroupRequests**](GroupsApi.md#getGroupRequests) | **GET** /groups/{groupId}/requests | Get Group Join Requests |
| [**getGroupRoles**](GroupsApi.md#getGroupRoles) | **GET** /groups/{groupId}/roles | Get Group Roles |
| [**joinGroup**](GroupsApi.md#joinGroup) | **POST** /groups/{groupId}/join | Join Group |
Expand Down Expand Up @@ -194,6 +197,78 @@ public class Example {
| **401** | Error response due to missing auth cookie. | - |
| **404** | Error response when trying to perform operations on a non-existing group. | - |

<a name="addGroupPost"></a>
# **addGroupPost**
> GroupPost addGroupPost(groupId, createGroupPostRequest)
Create a post in a Group

Create a post in a Group.

### 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.GroupsApi;

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");

GroupsApi apiInstance = new GroupsApi(defaultClient);
String groupId = "grp_00000000-0000-0000-0000-000000000000"; // String | Must be a valid group ID.
CreateGroupPostRequest createGroupPostRequest = new CreateGroupPostRequest(); // CreateGroupPostRequest |
try {
GroupPost result = apiInstance.addGroupPost(groupId, createGroupPostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#addGroupPost");
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 |
|------------- | ------------- | ------------- | -------------|
| **groupId** | **String**| Must be a valid group ID. | |
| **createGroupPostRequest** | [**CreateGroupPostRequest**](CreateGroupPostRequest.md)| | |

### Return type

[**GroupPost**](GroupPost.md)

### Authorization

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

### HTTP request headers

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

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

<a name="banGroupMember"></a>
# **banGroupMember**
> GroupMember banGroupMember(groupId, banGroupMemberRequest)
Expand Down Expand Up @@ -1062,7 +1137,81 @@ null (empty response body)
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad request error response when deleting a group invite | - |
| **401** | Error response due to missing auth cookie. | - |

<a name="deleteGroupPost"></a>
# **deleteGroupPost**
> Success deleteGroupPost(groupId, notificationId)
Delete a Group post

Delete a Group post

### 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.GroupsApi;

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");

GroupsApi apiInstance = new GroupsApi(defaultClient);
String groupId = "grp_00000000-0000-0000-0000-000000000000"; // String | Must be a valid group ID.
String notificationId = "notificationId_example"; // String | Must be a valid notification ID.
try {
Success result = apiInstance.deleteGroupPost(groupId, notificationId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#deleteGroupPost");
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 |
|------------- | ------------- | ------------- | -------------|
| **groupId** | **String**| Must be a valid group ID. | |
| **notificationId** | **String**| Must be a valid notification ID. | |

### Return type

[**Success**](Success.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** | Response after deleting a group post. | - |
| **401** | Error response due to missing auth cookie. | - |
| **404** | Response after deleting a group post. | - |

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

<a name="getGroupPost"></a>
# **getGroupPost**
> GroupPost getGroupPost(groupId, n, offset, publicOnly)
Get posts from a Group

Get posts from a Group

### 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.GroupsApi;

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");

GroupsApi apiInstance = new GroupsApi(defaultClient);
String groupId = "grp_00000000-0000-0000-0000-000000000000"; // String | Must be a valid group ID.
Integer n = 60; // Integer | The number of objects to return.
Integer offset = 56; // Integer | A zero-based offset from the default object sorting from where search results start.
Boolean publicOnly = true; // Boolean | See public posts only.
try {
GroupPost result = apiInstance.getGroupPost(groupId, n, offset, publicOnly);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#getGroupPost");
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 |
|------------- | ------------- | ------------- | -------------|
| **groupId** | **String**| Must be a valid group ID. | |
| **n** | **Integer**| The number of objects to return. | [optional] [default to 60] |
| **offset** | **Integer**| A zero-based offset from the default object sorting from where search results start. | [optional] |
| **publicOnly** | **Boolean**| See public posts only. | [optional] |

### Return type

[**GroupPost**](GroupPost.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** | Returns a GroupPost object. | - |
| **401** | Error response due to missing auth cookie. | - |

<a name="getGroupRequests"></a>
# **getGroupRequests**
> List&lt;GroupMember&gt; getGroupRequests(groupId, n, offset)
Expand Down
Loading

0 comments on commit b1cac62

Please sign in to comment.