Skip to content

Commit

Permalink
Upgrade Java SDK to spec 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Apr 21, 2024
1 parent f614706 commit cfa8ef4
Show file tree
Hide file tree
Showing 167 changed files with 788 additions and 169 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ docs/GroupAnnouncement.md
docs/GroupAuditLogEntry.md
docs/GroupGallery.md
docs/GroupGalleryImage.md
docs/GroupInstance.md
docs/GroupJoinRequestAction.md
docs/GroupJoinState.md
docs/GroupLimitedMember.md
Expand Down Expand Up @@ -229,6 +230,7 @@ src/main/java/io/github/vrchatapi/model/GroupAnnouncement.java
src/main/java/io/github/vrchatapi/model/GroupAuditLogEntry.java
src/main/java/io/github/vrchatapi/model/GroupGallery.java
src/main/java/io/github/vrchatapi/model/GroupGalleryImage.java
src/main/java/io/github/vrchatapi/model/GroupInstance.java
src/main/java/io/github/vrchatapi/model/GroupJoinRequestAction.java
src/main/java/io/github/vrchatapi/model/GroupJoinState.java
src/main/java/io/github/vrchatapi/model/GroupLimitedMember.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.0'
version = '1.17.1'

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


# GroupInstance


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**instanceId** | **String** | | |
|**location** | **String** | InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. | |
|**world** | [**World**](World.md) | | |
|**memberCount** | **Integer** | | |



73 changes: 73 additions & 0 deletions docs/GroupsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
| [**getGroupAuditLogs**](GroupsApi.md#getGroupAuditLogs) | **GET** /groups/{groupId}/auditLogs | Get Group Audit Logs |
| [**getGroupBans**](GroupsApi.md#getGroupBans) | **GET** /groups/{groupId}/bans | Get Group Bans |
| [**getGroupGalleryImages**](GroupsApi.md#getGroupGalleryImages) | **GET** /groups/{groupId}/galleries/{groupGalleryId} | Get Group Gallery Images |
| [**getGroupInstances**](GroupsApi.md#getGroupInstances) | **GET** /groups/{groupId}/instances | Get Group Instances |
| [**getGroupInvites**](GroupsApi.md#getGroupInvites) | **GET** /groups/{groupId}/invites | Get Group Invites Sent |
| [**getGroupMember**](GroupsApi.md#getGroupMember) | **GET** /groups/{groupId}/members/{userId} | Get Group Member |
| [**getGroupMembers**](GroupsApi.md#getGroupMembers) | **GET** /groups/{groupId}/members | List Group Members |
Expand Down Expand Up @@ -263,6 +264,7 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Returns a list of GroupMember objects. | - |
| **400** | Bad request error response when banning a user | - |
| **401** | Error response due to missing auth cookie. | - |
| **404** | Error response when trying to perform operations on a non-existing group. | - |

Expand Down Expand Up @@ -1512,6 +1514,77 @@ 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="getGroupInstances"></a>
# **getGroupInstances**
> List&lt;GroupInstance&gt; getGroupInstances(groupId)
Get Group Instances

Returns a list of group instances

### 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.
try {
List<GroupInstance> result = apiInstance.getGroupInstances(groupId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#getGroupInstances");
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. | |

### Return type

[**List&lt;GroupInstance&gt;**](GroupInstance.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 list of GroupInstance objects. | - |
| **401** | Error response due to missing auth cookie. | - |
| **404** | Error response when trying to perform operations on a non-existing group. | - |

<a name="getGroupInvites"></a>
# **getGroupInvites**
> List&lt;GroupMember&gt; getGroupInvites(groupId, n, offset)
Expand Down
90 changes: 83 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@openapitools/openapi-generator-cli": "^2.13.1"
"@openapitools/openapi-generator-cli": "^2.13.2"
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>vrchatapi</artifactId>
<packaging>jar</packaging>
<name>vrchatapi</name>
<version>1.17.0</version>
<version>1.17.1</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiCallback.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.17.0
* The version of the OpenAPI document: 1.17.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiClient.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.17.0
* The version of the OpenAPI document: 1.17.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiException.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.17.0
* The version of the OpenAPI document: 1.17.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/ApiResponse.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.17.0
* The version of the OpenAPI document: 1.17.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/vrchatapi/Configuration.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.17.0
* The version of the OpenAPI document: 1.17.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.17.0
* The version of the OpenAPI document: 1.17.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit cfa8ef4

Please sign in to comment.